dotfiles/vscode/.vscode/extensions/ms-toolsai.jupyter-2024.6.0-darwin-arm64/dist/node_modules/@vscode/extension-telemetry.js
Errol Sancaktar 5f8db31398 alacritty
2024-07-15 17:06:13 -06:00

112 lines
690 KiB
JavaScript

"use strict";var u1=Object.create;var mp=Object.defineProperty;var l1=Object.getOwnPropertyDescriptor;var p1=Object.getOwnPropertyNames;var d1=Object.getPrototypeOf,f1=Object.prototype.hasOwnProperty;var hr=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),m1=(e,t)=>{for(var n in t)mp(e,n,{get:t[n],enumerable:!0})},bx=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p1(t))!f1.call(e,i)&&i!==n&&mp(e,i,{get:()=>t[i],enumerable:!(r=l1(t,i))||r.enumerable});return e};var Oh=(e,t,n)=>(n=e!=null?u1(d1(e)):{},bx(t||!e||!e.__esModule?mp(n,"default",{value:e,enumerable:!0}):n,e)),v1=e=>bx(mp({},"__esModule",{value:!0}),e);var yx=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.BaseTelemetryReporter=void 0;var Ph=class{constructor(t,n,r){this.telemetrySender=t,this.vscodeAPI=n,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,r),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(t,n,r,i){i?this.telemetrySender.sendEventData(t,{properties:n,measurements:r}):this.telemetryLogger.logUsage(t,{properties:n,measurements:r})}sendTelemetryEvent(t,n,r){this.internalSendTelemetryEvent(t,n,r,!1)}sendDangerousTelemetryEvent(t,n,r){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(t,n,r,!0)}internalSendTelemetryErrorEvent(t,n,r,i){i?this.telemetrySender.sendEventData(t,{properties:n,measurements:r}):this.telemetryLogger.logError(t,{properties:n,measurements:r})}sendTelemetryErrorEvent(t,n,r){this.internalSendTelemetryErrorEvent(t,n,r,!1)}sendDangerousTelemetryErrorEvent(t,n,r){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(t,n,r,!0)}internalSendTelemetryException(t,n,r,i){i?this.telemetrySender.sendErrorData(t,{properties:n,measurements:r}):this.telemetryLogger.logError(t,{properties:n,measurements:r})}sendTelemetryException(t,n,r){this.internalSendTelemetryException(t,n,r,!1)}sendDangerousTelemetryException(t,n,r){this.telemetrySender.instantiateSender(),this.internalSendTelemetryException(t,n,r,!0)}dispose(){return this.telemetryLogger.dispose(),Promise.all(this.disposables.map(t=>t.dispose()))}};vp.BaseTelemetryReporter=Ph});var Ex=_(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.BaseTelemetrySender=void 0;var na;(function(e){e[e.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",e[e.INSTANTIATING=1]="INSTANTIATING",e[e.INSTANTIATED=2]="INSTANTIATED"})(na||(na={}));var Ch=class{constructor(t,n){this._instantiationStatus=na.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=n,this._key=t}sendEventData(t,n){if(!this._telemetryClient){this._instantiationStatus!==na.INSTANTIATED&&this._eventQueue.push({eventName:t,data:n});return}this._telemetryClient.logEvent(t,n)}sendErrorData(t,n){if(!this._telemetryClient){this._instantiationStatus!==na.INSTANTIATED&&this._exceptionQueue.push({exception:t,data:n});return}}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:t,data:n})=>this.sendEventData(t,n)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:t,data:n})=>this.sendErrorData(t,n)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===na.NOT_INSTANTIATED&&(this._instantiationStatus=na.INSTANTIATING,this._clientFactory(this._key).then(t=>{this._telemetryClient=t,this._instantiationStatus=na.INSTANTIATED,this._flushQueues()}).catch(t=>{console.error(t),this._instantiationStatus=na.INSTANTIATED}))}};hp.BaseTelemetrySender=Ch});var Tx=_(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.TelemetryUtil=void 0;var Rh=class e{static applyReplacements(t,n){for(let r of Object.keys(t))for(let i of n)i.lookup.test(r)&&(i.replacementString!==void 0?t[r]=i.replacementString:delete t[r])}static shouldUseOneDataSystemSDK(t){return t.length===74&&t[32]==="-"&&t[41]==="-"&&t[46]==="-"&&t[51]==="-"&&t[56]==="-"&&t[69]==="-"}static getAdditionalCommonProperties(t){return{"common.os":t.platform,"common.nodeArch":t.architecture,"common.platformversion":(t.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.7.7"}}static getInstance(){return e._instance||(e._instance=new e),e._instance}};_p.TelemetryUtil=Rh});var wh=_((gp,Sx)=>{(function(e,t){typeof gp=="object"&&typeof Sx<"u"?t(gp):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{},e.Microsoft.ApplicationInsights.Shims={})))})(gp,function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",a="hasOwnProperty",s="default",u=Object,l=u[i],c=u.assign,f=u.create,v=u.defineProperty,b=l[a],T=null;function x(O){O===void 0&&(O=!0);var P=O===!1?null:T;return P||(typeof globalThis!==r&&(P=globalThis),!P&&typeof self!==r&&(P=self),!P&&typeof window!==r&&(P=window),!P&&typeof global!==r&&(P=global),T=P),P}function M(O){throw new TypeError(O)}function N(O){var P=f;if(P)return P(O);if(O==null)return{};var F=typeof O;F!==n&&F!==t&&M("Object prototype may only be an Object:"+O);function ee(){}return ee[i]=O,new ee}var se=(x()||{}).Symbol,ce=(x()||{}).Reflect,be=!!ce,xe="decorate",ut="metadata",$t="getOwnPropertySymbols",It="iterator",we=function(O){for(var P,F=1,ee=arguments.length;F<ee;F++){P=arguments[F];for(var ye in P)l[a].call(P,ye)&&(O[ye]=P[ye])}return O},Ze=c||we,Ot=function(O,P){return Ot=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,ee){F.__proto__=ee}||function(F,ee){for(var ye in ee)ee[a](ye)&&(F[ye]=ee[ye])},Ot(O,P)};function Yt(O,P){typeof P!==t&&P!==null&&M("Class extends value "+String(P)+" is not a constructor or null"),Ot(O,P);function F(){this.constructor=O}O[i]=P===null?N(P):(F[i]=P[i],new F)}function Pt(O,P){var F={};for(var ee in O)b.call(O,ee)&&P.indexOf(ee)<0&&(F[ee]=O[ee]);if(O!=null&&typeof u[$t]===t)for(var ye=0,Ee=u[$t](O);ye<Ee.length;ye++)P.indexOf(Ee[ye])<0&&l.propertyIsEnumerable.call(O,Ee[ye])&&(F[Ee[ye]]=O[Ee[ye]]);return F}function Ae(O,P,F,ee){var ye=arguments.length,Ee=ye<3?P:ee===null?ee=u.getOwnPropertyDescriptor(P,F):ee,$e;if(be&&typeof ce[xe]===t)Ee=ce[xe](O,P,F,ee);else for(var De=O.length-1;De>=0;De--)($e=O[De])&&(Ee=(ye<3?$e(Ee):ye>3?$e(P,F,Ee):$e(P,F))||Ee);return ye>3&&Ee&&v(P,F,Ee),Ee}function Nn(O,P){return function(F,ee){P(F,ee,O)}}function dt(O,P){if(be&&ce[ut]===t)return ce[ut](O,P)}function ui(O,P){for(var F in O)F!==s&&!b.call(P,F)&&rn(P,O,F)}function rn(O,P,F,ee){ee===void 0&&(ee=F),f?v(O,ee,{enumerable:!0,get:function(){return P[F]}}):O[ee]=P[F]}function pr(O){var P=typeof se===t&&se[It],F=P&&O[P],ee=0;if(F)return F.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&ee>=O.length&&(O=void 0),{value:O&&O[ee++],done:!O}}};M(P?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dr(O,P){var F=typeof se===t&&O[se[It]];if(!F)return O;var ee=F.call(O),ye,Ee=[],$e;try{for(;(P===void 0||P-- >0)&&!(ye=ee.next()).done;)Ee.push(ye.value)}catch(De){$e={error:De}}finally{try{ye&&!ye.done&&(F=ee.return)&&F.call(ee)}finally{if($e)throw $e.error}}return Ee}function Mr(){for(var O=arguments,P=0,F=0,ee=O.length;F<ee;F++)P+=O[F].length;for(var ye=Array(P),Ee=0,F=0;F<ee;F++)for(var $e=O[F],De=0,zt=$e.length;De<zt;De++,Ee++)ye[Ee]=$e[De];return ye}function Er(O,P){for(var F=0,ee=P.length,ye=O.length;F<ee;F++,ye++)O[ye]=P[F];return O}function Dn(O,P){return v?v(O,"raw",{value:P}):O.raw=P,O}function Un(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var F in O)F!==s&&Object.prototype.hasOwnProperty.call(O,F)&&rn(P,O,F);return f?v(P,s,{enumerable:!0,value:O}):P[s]=O,P}function An(O){return O&&O.__esModule?O:{strDefault:O}}function W(){var O=x()||{};(function(P,F,ee,ye){P.__assign||(P.__assign=c||F),P.__extends||(P.__extends=ee),P.__createBinding||(P.__createBinding=ye)})(O,Ze,Yt,rn),__assign||(__assign=O.__assign),__extends||(__extends=O.__extends),__createBinding||(__createBinding=O.__createBinding)}e.ObjAssign=c,e.ObjClass=u,e.ObjCreate=f,e.ObjDefineProperty=v,e.ObjHasOwnProperty=b,e.ObjProto=l,e.__assignFn=Ze,e.__createBindingFn=rn,e.__decorateFn=Ae,e.__exportStarFn=ui,e.__exposeGlobalTsLib=W,e.__extendsFn=Yt,e.__importDefaultFn=An,e.__importStarFn=Un,e.__makeTemplateObjectFn=Dn,e.__metadataFn=dt,e.__paramFn=Nn,e.__readFn=Dr,e.__restFn=Pt,e.__spreadArrayFn=Er,e.__spreadArraysFn=Mr,e.__valuesFn=pr,e.getGlobal=x,e.objCreateFn=N,e.strDefault=s,e.strShimFunction=t,e.strShimHasOwnProperty=a,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=M,function(O,P,F){var ee=Object.defineProperty;if(ee)try{return ee(O,P,F)}catch{}return F&&typeof F.value!==void 0&&(O[P]=F.value),O}(e,"__esModule",{value:!0})})});var Ax=_((bp,xx)=>{(function(e,t){typeof bp=="object"&&typeof xx<"u"?t(bp):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})))})(bp,function(e){"use strict";var t=100,n="function",r="object",i="undefined",a="prototype",s="hasOwnProperty",u=Object,l=u[a],c=u.assign,f=u.create,v=u.defineProperty,b=l[s],T=null;function x(o){o===void 0&&(o=!0);var p=o===!1?null:T;return p||(typeof globalThis!==i&&(p=globalThis),!p&&typeof self!==i&&(p=self),!p&&typeof window!==i&&(p=window),!p&&typeof global!==i&&(p=global),T=p),p}function M(o){throw new TypeError(o)}function N(o){var p=f;if(p)return p(o);if(o==null)return{};var d=typeof o;d!==r&&d!==n&&M("Object prototype may only be an Object:"+o);function m(){}return m[a]=o,new m}(x()||{}).Symbol,(x()||{}).Reflect;var se=function(o,p){return se=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var h in m)m[s](h)&&(d[h]=m[h])},se(o,p)};function ce(o,p){typeof p!==n&&p!==null&&M("Class extends value "+String(p)+" is not a constructor or null"),se(o,p);function d(){this.constructor=o}o[a]=p===null?N(p):(d[a]=p[a],new d)}function be(o,p){for(var d=0,m=p.length,h=o.length;d<m;d++,h++)o[h]=p[d];return o}var xe="initialize",ut="name",$t="getNotifyMgr",It="identifier",we="push",Ze="isInitialized",Ot="config",Yt="instrumentationKey",Pt="logger",Ae="length",Nn="time",dt="processNext",ui="getProcessTelContext",rn="addNotificationListener",pr="removeNotificationListener",Dr="stopPollingInternalLogs",Mr="onComplete",Er="getPlugin",Dn="flush",Un="_extensions",An="splice",W="teardown",O="messageId",P="message",F="isAsync",ee="_doTeardown",ye="update",Ee="getNext",$e="diagLog",De="setNextPlugin",zt="createNew",fn="cookieCfg",Xt="indexOf",Fn="substring",Hn="userAgent",Ki="split",li="setEnabled",dr="substr",In="nodeType",Tr="apply",Mn="replace",_o="enableDebugExceptions",ga="logInternalMessage",U="toLowerCase",w="call",Q="type",Z="handler",Oe="listeners",fe="isChildEvt",ge="getCtx",Te="setCtx",Je="complete",Ue="traceId",de="spanId",Ne="traceFlags",pe="version",V="",ve="channels",Fe="core",Gt="createPerfMgr",Zn="disabled",Bn="extensionConfig",Lr="extensions",En="processTelemetry",Jn="priority",fr="eventsSent",Wi="eventsDiscarded",L="eventsSendRequest",Y="perfEvent",ue="errorToConsole",B="warnToConsole",_e="getPerfMgr",Ie="toISOString",oe="endsWith",st="startsWith",_t="indexOf",Ct="map",mn="reduce",Ln="trim",Qt="toString",On="__proto__",xt="constructor",Pe=v,Ke=u.freeze,mt=u.seal,an=u.keys,je=String[a],ft=je[Ln],Mt=je[oe],Ft=je[st],ot=Date[a],sn=ot[Ie],Pn=Array.isArray,Rt=l[Qt],vn=b[Qt],hn=vn[w](u),on=/-([a-z])/g,ze=/([^\w\d_$])/g,Me=/^(\d+[\w\d_$])/,_n=Object.getPrototypeOf;function Ai(o){if(o){if(_n)return _n(o);var p=o[On]||o[a]||o[xt];if(p)return p}return null}function Sr(o){return Rt[w](o)}function Vr(o,p){return typeof o===p}function ht(o){return o===void 0||typeof o===i}function $i(o){return!ht(o)}function Tt(o){return o===null||ht(o)}function Tn(o){return!Tt(o)}function Ii(o,p){return!!(o&&b[w](o,p))}function kn(o){return!!(o&&typeof o===r)}function lt(o){return!!(o&&typeof o===n)}function Kr(o){var p=o;return p&&kr(p)&&(p=p[Mn](on,function(d,m){return m.toUpperCase()}),p=p[Mn](ze,"_"),p=p[Mn](Me,function(d,m){return"_"+m})),p}function zn(o,p){if(o)for(var d in o)b[w](o,d)&&p[w](o,d,o[d])}function ls(o,p){var d=!1;return o&&p&&!(d=o===p)&&(d=Mt?o[oe](p):Yi(o,p)),d}function Yi(o,p){var d=!1,m=p?p[Ae]:0,h=o?o[Ae]:0;if(m&&h&&h>=m&&!(d=o===p)){for(var g=h-1,S=m-1;S>=0;S--){if(o[g]!=p[S])return!1;g--}d=!0}return d}function ba(o,p){var d=!1;return o&&p&&!(d=o===p)&&(d=Ft?o[st](p):Hc(o,p)),d}function Hc(o,p){var d=!1,m=p?p[Ae]:0;if(o&&m&&o[Ae]>=m&&!(d=o===p)){for(var h=0;h<m;h++)if(o[h]!==p[h])return!1;d=!0}return d}function cn(o,p){return o&&p?o[Xt](p)!==-1:!1}function ya(o){return!!(o&&Rt[w](o)==="[object Date]")}var Lt=Pn||ps;function ps(o){return!!(o&&Rt[w](o)==="[object Array]")}function ds(o){return!!(o&&Rt[w](o)==="[object Error]")}function kr(o){return typeof o=="string"}function Ea(o){return typeof o=="number"}function qn(o){return typeof o=="boolean"}function fs(o){return typeof o=="symbol"}function E(o){var p=!1;if(o&&typeof o=="object"){var d=_n?_n(o):Ai(o);d?(d[xt]&&b[w](d,xt)&&(d=d[xt]),p=typeof d===n&&vn[w](d)===hn):p=!0}return p}function H(o){if(o)return sn?o[Ie]():K(o)}function K(o){if(o&&o.getUTCFullYear){var p=function(d){var m=String(d);return m[Ae]===1&&(m="0"+m),m};return o.getUTCFullYear()+"-"+p(o.getUTCMonth()+1)+"-"+p(o.getUTCDate())+"T"+p(o.getUTCHours())+":"+p(o.getUTCMinutes())+":"+p(o.getUTCSeconds())+"."+String((o.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function q(o,p,d){var m=o[Ae];try{for(var h=0;h<m&&!(h in o&&p[w](d||o,o[h],h,o)===-1);h++);}catch{}}function ae(o,p,d){if(o){if(o[_t])return o[_t](p,d);var m=o[Ae],h=d||0;try{for(var g=Math.max(h>=0?h:m-Math.abs(h),0);g<m;g++)if(g in o&&o[g]===p)return g}catch{}}return-1}function Ge(o,p,d){var m;if(o){if(o[Ct])return o[Ct](p,d);var h=o[Ae],g=d||o;m=new Array(h);try{for(var S=0;S<h;S++)S in o&&(m[S]=p[w](g,o[S],o))}catch{}}return m}function Le(o,p,d){var m;if(o){if(o[mn])return o[mn](p,d);var h=o[Ae],g=0;if(arguments[Ae]>=3)m=arguments[2];else{for(;g<h&&!(g in o);)g++;m=o[g++]}for(;g<h;)g in o&&(m=p(m,o[g],g,o)),g++}return m}function y(o){return o&&(o=ft&&o[Ln]?o[Ln]():o[Mn]?o[Mn](/^\s+|(?=\s)\s+$/g,V):o),o}var R=!{toString:null}.propertyIsEnumerable("toString"),C=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function X(o){var p=typeof o;if(p!==n&&(p!==r||o===null)&&M("objKeys called on non-object"),!R&&an)return an(o);var d=[];for(var m in o)o&&b[w](o,m)&&d[we](m);if(R)for(var h=C[Ae],g=0;g<h;g++)o&&b[w](o,C[g])&&d[we](C[g]);return d}function le(o,p,d,m){if(Pe)try{var h={enumerable:!0,configurable:!0};return d&&(h.get=d),m&&(h.set=m),Pe(o,p,h),!0}catch{}return!1}function Ce(o){return o}function et(o){return Ke&&zn(o,function(p,d){(Lt(d)||kn(d))&&Ke(d)}),tt(o)}var tt=Ke||Ce,kt=mt||Ce;function qr(){var o=Date;return o.now?o.now():new o().getTime()}function Ta(o){return ds(o)?o[ut]:V}function er(o,p,d,m,h){var g=d;return o&&(g=o[p],g!==d&&(!h||h(g))&&(!m||m(d))&&(g=d,o[p]=g)),g}function tr(o,p,d){var m;return o?(m=o[p],!m&&Tt(m)&&(m=ht(d)?{}:d,o[p]=m)):m=ht(d)?{}:d,m}function xr(o,p){return Tt(o)?p:o}function Ov(o){return!o}function Pv(o){return!!o}function Wr(o){throw new Error(o)}function ST(o,p){var d=null,m=null;return lt(o)?d=o:m=o,function(){var h=arguments;if(d&&(m=d()),m)return m[p][Tr](m,h)}}function EL(o,p,d){if(o&&p&&kn(o)&&kn(p)){var m=function(g){if(kr(g)){var S=p[g];lt(S)?(!d||d(g,!0,p,o))&&(o[g]=ST(p,g)):(!d||d(g,!1,p,o))&&(Ii(o,g)&&delete o[g],le(o,g,function(){return p[g]},function(I){p[g]=I})||(o[g]=S))}};for(var h in p)m(h)}return o}function Ml(o,p,d,m,h){o&&p&&d&&(h!==!1||ht(o[p]))&&(o[p]=ST(d,m))}function Cv(o,p,d,m){return o&&p&&kn(o)&&Lt(d)&&q(d,function(h){kr(h)&&Ml(o,h,p,h,m)}),o}function TL(o){return function(){function p(){var d=this;o&&zn(o,function(m,h){d[m]=h})}return p}()}function SL(o){return o&&c&&(o=u(c({},o))),o}function Ll(o,p,d,m,h,g){var S=arguments,I=S[0]||{},A=S[Ae],D=!1,j=1;for(A>0&&qn(I)&&(D=I,I=S[j]||{},j++),kn(I)||(I={});j<A;j++){var z=S[j],ne=Lt(z),k=kn(z);for(var re in z){var me=ne&&re in z||k&&b[w](z,re);if(me){var Re=z[re],qe=void 0;if(D&&Re&&((qe=Lt(Re))||E(Re))){var Ve=I[re];qe?Lt(Ve)||(Ve=[]):E(Ve)||(Ve={}),Re=Ll(D,Ve,Re)}Re!==void 0&&(I[re]=Re)}}}return I}function kl(o){var p={};return zn(o,function(d,m){p[d]=m,p[m]=d}),et(p)}function xL(o){var p={};return zn(o,function(d,m){p[d]=d,p[m]=d}),et(p)}function AL(o){var p={};return zn(o,function(d,m){p[d]=m[1],p[m[0]]=m[1]}),et(p)}var IL=kl({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5});var ql,jl="undefined",Ul="constructor",Xi="prototype",Fl="function",Hl="_dynInstFuncs",Rv="_isDynProxy",go="_dynClass",OL="_dynCls$",wv="_dynInstChk",Bc=wv,xT="_dfOpts",AT="_unknown_",IT="__proto__",Bl="_dyn"+IT,OT="__dynProto$Gbl",Nv="_dynInstProto",zl="useBaseInst",Dv="setInstFuncs",Gl=Object,zc=Gl.getPrototypeOf,PT=Gl.getOwnPropertyNames;function PL(){var o;return typeof globalThis!==jl&&(o=globalThis),!o&&typeof self!==jl&&(o=self),!o&&typeof window!==jl&&(o=window),!o&&typeof global!==jl&&(o=global),o||{}}var CT=PL(),Mv=CT[OT]||(CT[OT]={o:(ql={},ql[Dv]=!0,ql[zl]=!0,ql),n:1e3});function Qi(o,p){return o&&Gl[Xi].hasOwnProperty.call(o,p)}function RT(o){return o&&(o===Gl[Xi]||o===Array[Xi])}function Lv(o){return RT(o)||o===Function[Xi]}function ms(o){var p;if(o){if(zc)return zc(o);var d=o[IT]||o[Xi]||(o[Ul]?o[Ul][Xi]:null);p=o[Bl]||d,Qi(o,Bl)||(delete o[Nv],p=o[Bl]=o[Nv]||o[Bl],o[Nv]=d)}return p}function Vl(o,p){var d=[];if(PT)d=PT(o);else for(var m in o)typeof m=="string"&&Qi(o,m)&&d.push(m);if(d&&d.length>0)for(var h=0;h<d.length;h++)p(d[h])}function kv(o,p,d){return p!==Ul&&typeof o[p]===Fl&&(d||Qi(o,p))}function Kl(o){throw new TypeError("DynamicProto: "+o)}function CL(o){var p={};return Vl(o,function(d){!p[d]&&kv(o,d,!1)&&(p[d]=o[d])}),p}function qv(o,p){for(var d=o.length-1;d>=0;d--)if(o[d]===p)return!0;return!1}function RL(o,p,d,m){function h(A,D,j){var z=D[j];if(z[Rv]&&m){var ne=A[Hl]||{};ne[Bc]!==!1&&(z=(ne[D[go]]||{})[j]||z)}return function(){return z.apply(A,arguments)}}var g={};Vl(d,function(A){g[A]=h(p,d,A)});for(var S=ms(o),I=[];S&&!Lv(S)&&!qv(I,S);)Vl(S,function(A){!g[A]&&kv(S,A,!zc)&&(g[A]=h(p,S,A))}),I.push(S),S=ms(S);return g}function wL(o,p,d,m){var h=null;if(o&&Qi(d,go)){var g=o[Hl]||{};if(h=(g[d[go]]||{})[p],h||Kl("Missing ["+p+"] "+Fl),!h[wv]&&g[Bc]!==!1){for(var S=!Qi(o,p),I=ms(o),A=[];S&&I&&!Lv(I)&&!qv(A,I);){var D=I[p];if(D){S=D===m;break}A.push(I),I=ms(I)}try{S&&(o[p]=h),h[wv]=1}catch{g[Bc]=!1}}}return h}function NL(o,p,d){var m=p[o];return m===d&&(m=ms(p)[o]),typeof m!==Fl&&Kl("["+o+"] is not a "+Fl),m}function DL(o,p,d,m,h){function g(A,D){var j=function(){var z=wL(this,D,A,j)||NL(D,A,j);return z.apply(this,arguments)};return j[Rv]=1,j}if(!RT(o)){var S=d[Hl]=d[Hl]||{},I=S[p]=S[p]||{};S[Bc]!==!1&&(S[Bc]=!!h),Vl(d,function(A){kv(d,A,!1)&&d[A]!==m[A]&&(I[A]=d[A],delete d[A],(!Qi(o,A)||o[A]&&!o[A][Rv])&&(o[A]=g(o,A)))})}}function ML(o,p){if(zc){for(var d=[],m=ms(p);m&&!Lv(m)&&!qv(d,m);){if(m===o)return!0;d.push(m),m=ms(m)}return!1}return!0}function jv(o,p){return Qi(o,Xi)?o.name||p||AT:((o||{})[Ul]||{}).name||p||AT}function Zi(o,p,d,m){Qi(o,Xi)||Kl("theClass is an invalid class definition.");var h=o[Xi];ML(h,p)||Kl("["+jv(o)+"] not in hierarchy of ["+jv(p)+"]");var g=null;Qi(h,go)?g=h[go]:(g=OL+jv(o,"_")+"$"+Mv.n,Mv.n++,h[go]=g);var S=Zi[xT],I=!!S[zl];I&&m&&m[zl]!==void 0&&(I=!!m[zl]);var A=CL(p),D=RL(h,p,A,I);d(p,D);var j=!!zc&&!!S[Dv];j&&m&&(j=!!m[Dv]),DL(h,g,p,A,j!==!1)}Zi[xT]=Mv.o;var wT="window",LL="document",kL="documentMode",qL="navigator",jL="history",UL="location",FL="console",HL="performance",NT="JSON",BL="crypto",zL="msCrypto",GL="ReactNative",Uv="msie",Fv="trident/",DT="XMLHttpRequest",Hv=null,Bv=null,MT=!1,bo=null,zv=null;function LT(o,p){var d=!1;if(o){try{if(d=p in o,!d){var m=o[a];m&&(d=p in m)}}catch{}if(!d)try{var h=new o;d=!ht(h[p])}catch{}}return d}function VL(o){MT=o}function Cn(o){var p=x();return p&&p[o]?p[o]:o===wT&&Gv()?window:null}function Gv(){return!!(typeof window===r&&window)}function Vv(){return Gv()?window:Cn(wT)}function kT(){return!!(typeof document===r&&document)}function Sa(){return kT()?document:Cn(LL)}function Kv(){return!!(typeof navigator===r&&navigator)}function vs(){return Kv()?navigator:Cn(qL)}function qT(){return!!(typeof history===r&&history)}function KL(){return qT()?history:Cn(jL)}function jT(o){if(o&&MT){var p=Cn("__mockLocation");if(p)return p}return typeof location===r&&location?location:Cn(UL)}function UT(){return typeof console!==i?console:Cn(FL)}function Wv(){return Cn(HL)}function Wl(){return!!(typeof JSON===r&&JSON||Cn(NT)!==null)}function $v(){return Wl()?JSON||Cn(NT):null}function FT(){return Cn(BL)}function HT(){return Cn(zL)}function WL(){var o=vs();return o&&o.product?o.product===GL:!1}function Gc(){var o=vs();if(o&&(o[Hn]!==Bv||Hv===null)){Bv=o[Hn];var p=(Bv||V)[U]();Hv=cn(p,Uv)||cn(p,Fv)}return Hv}function $L(o){if(o===void 0&&(o=null),!o){var p=vs()||{};o=p?(p[Hn]||V)[U]():V}var d=(o||V)[U]();if(cn(d,Uv)){var m=Sa()||{};return Math.max(parseInt(d[Ki](Uv)[1]),m[kL]||0)}else if(cn(d,Fv)){var h=parseInt(d[Ki](Fv)[1]);if(h)return h+4}return null}function xa(o){var p=Object[a].toString[w](o),d=V;return p==="[object Error]"?d="{ stack: '"+o.stack+"', message: '"+o.message+"', name: '"+o[ut]+"'":Wl()&&(d=$v().stringify(o)),p+d}function YL(o){if(!o||!kr(o)){var p=vs()||{};o=p?(p[Hn]||V)[U]():V}var d=(o||V)[U]();return d[Xt]("safari")>=0}function XL(){return zv===null&&(zv=Kv()&&!!vs().sendBeacon),zv}function QL(o){var p=!1;try{p=!!Cn("fetch");var d=Cn("Request");p&&o&&d&&(p=LT(d,"keepalive"))}catch{}return p}function ZL(){return bo===null&&(bo=typeof XDomainRequest!==i,bo&&BT()&&(bo=bo&&!LT(Cn(DT),"withCredentials"))),bo}function BT(){var o=!1;try{var p=Cn(DT);o=!!p}catch{}return o}function zT(o,p){if(o)for(var d=0;d<o[Ae];d++){var m=o[d];if(m[ut]&&m[ut]===p)return m}return{}}function GT(o){var p=Sa();return p&&o?zT(p.querySelectorAll("meta"),o).content:null}function VT(o){var p,d=Wv();if(d){var m=d.getEntriesByType("navigation")||[];p=zT((m[Ae]>0?m[0]:{}).serverTiming,o).description}return p}var Yv=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],$l=null,Yl;function JL(o,p){return function(){var d=arguments,m=Xv(p);if(m){var h=m.listener;h&&h[o]&&h[o][Tr](h,d)}}}function ek(){var o=Cn("Microsoft");return o&&($l=o.ApplicationInsights),$l}function Xv(o){var p=$l;return!p&&o.disableDbgExt!==!0&&(p=$l||ek()),p?p.ChromeDbgExt:null}function KT(o){if(!Yl){Yl={};for(var p=0;p<Yv[Ae];p++)Yl[Yv[p]]=JL(Yv[p],o)}return Yl}var tk="AI (Internal): ",nk="AI: ",rk="AITR_";function WT(o){return o?'"'+o[Mn](/\"/g,V)+'"':V}function $T(o,p){var d=UT();if(d){var m="log";d[o]&&(m=o),lt(d[m])&&d[m](p)}}var Xl=function(){function o(p,d,m,h){m===void 0&&(m=!1);var g=this;g[O]=p,g[P]=(m?nk:tk)+p;var S=V;Wl()&&(S=$v().stringify(h));var I=(d?" message:"+WT(d):V)+(h?" props:"+WT(S):V);g[P]+=I}return o.dataType="MessageData",o}();function YT(o,p){return(o||{})[Pt]||new Vc(p)}var Vc=function(){function o(p){this.identifier="DiagnosticLogger",this.queue=[];var d=0,m={},h,g,S,I;Zi(o,this,function(A){j(p||{}),A.consoleLoggingLevel=function(){return h},A.telemetryLoggingLevel=function(){return g},A.maxInternalMessageLimit=function(){return S},A[_o]=function(){return I},A.throwInternal=function(k,re,me,Re,qe){qe===void 0&&(qe=!1);var Ve=new Xl(re,me,qe,Re);if(I)throw xa(Ve);var Vt=k===1?ue:B;if(ht(Ve[P]))ne("throw"+(k===1?"Critical":"Warning"),Ve);else{if(qe){var gn=+Ve[O];!m[gn]&&h>=k&&(A[Vt](Ve[P]),m[gn]=!0)}else h>=k&&A[Vt](Ve[P]);D(k,Ve)}},A[B]=function(k){$T("warn",k),ne("warning",k)},A[ue]=function(k){$T("error",k),ne("error",k)},A.resetInternalMessageCount=function(){d=0,m={}},A[ga]=D;function D(k,re){if(!z()){var me=!0,Re=rk+re[O];if(m[Re]?me=!1:m[Re]=!0,me&&(k<=g&&(A.queue[we](re),d++,ne(k===1?"error":"warn",re)),d===S)){var qe="Internal events throttle limit per PageView reached for this app.",Ve=new Xl(23,qe,!1);A.queue[we](Ve),k===1?A[ue](qe):A[B](qe)}}}function j(k){h=xr(k.loggingLevelConsole,0),g=xr(k.loggingLevelTelemetry,1),S=xr(k.maxMessageLimit,25),I=xr(k[_o],!1)}function z(){return d>=S}function ne(k,re){var me=Xv(p||{});me&&me[$e]&&me[$e](k,re)}})}return o.__ieDyn=1,o}();function Qv(o){return o||new Vc}function hs(o,p,d,m,h,g){g===void 0&&(g=!1),Qv(o).throwInternal(p,d,m,h,g)}function XT(o,p){Qv(o)[B](p)}function ik(o,p,d){Qv(o)[ga](p,d)}var yo="ctx",Zv="ParentContextKey",Kc="ChildrenContextKey",QT=null,Wc=function(){function o(p,d,m){var h=this,g=!1;if(h.start=qr(),h[ut]=p,h[F]=m,h[fe]=function(){return!1},lt(d)){var S;g=le(h,"payload",function(){return!S&&lt(d)&&(S=d(),d=null),S})}h[ge]=function(I){return I?I===o[Zv]||I===o[Kc]?h[I]:(h[yo]||{})[I]:null},h[Te]=function(I,A){if(I)if(I===o[Zv])h[I]||(h[fe]=function(){return!0}),h[I]=A;else if(I===o[Kc])h[I]=A;else{var D=h[yo]=h[yo]||{};D[I]=A}},h[Je]=function(){var I=0,A=h[ge](o[Kc]);if(Lt(A))for(var D=0;D<A[Ae];D++){var j=A[D];j&&(I+=j[Nn])}h[Nn]=qr()-h.start,h.exTime=h[Nn]-I,h[Je]=function(){},!g&&lt(d)&&(h.payload=d())}}return o.ParentContextKey="parent",o.ChildrenContextKey="childEvts",o}(),ZT=function(){function o(p){this.ctx={},Zi(o,this,function(d){d.create=function(m,h,g){return new Wc(m,h,g)},d.fire=function(m){m&&(m[Je](),p&&lt(p[Y])&&p[Y](m))},d[Te]=function(m,h){if(m){var g=d[yo]=d[yo]||{};g[m]=h}},d[ge]=function(m){return(d[yo]||{})[m]}})}return o.__ieDyn=1,o}(),Jv="CoreUtils.doPerf";function eh(o,p,d,m,h){if(o){var g=o;if(g[_e]&&(g=g[_e]()),g){var S=void 0,I=g[ge](Jv);try{if(S=g.create(p(),m,h),S){if(I&&S[Te]&&(S[Te](Wc[Zv],I),I[ge]&&I[Te])){var A=I[ge](Wc[Kc]);A||(A=[],I[Te](Wc[Kc],A)),A[we](S)}return g[Te](Jv,S),d(S)}}catch(D){S&&S[Te]&&S[Te]("exception",D)}finally{S&&g.fire(S),g[Te](Jv,I)}}}return d()}function ak(o){QT=o}function JT(){return QT}var eS=4294967296,Aa=4294967295,tS=!1,$c=123456789,Yc=987654321;function nS(o){o<0&&(o>>>=0),$c=123456789+o&Aa,Yc=987654321-o&Aa,tS=!0}function rS(){try{var o=qr()&2147483647;nS((Math.random()*eS^o)+o)}catch{}}function iS(o){return o>0?Math.floor(_s()/Aa*(o+1))>>>0:0}function _s(o){var p=0,d=FT()||HT();return d&&d.getRandomValues&&(p=d.getRandomValues(new Uint32Array(1))[0]&Aa),p===0&&Gc()&&(tS||rS(),p=th()&Aa),p===0&&(p=Math.floor(eS*Math.random()|0)),o||(p>>>=0),p}function aS(o){o?nS(o):rS()}function th(o){Yc=36969*(Yc&65535)+(Yc>>16)&Aa,$c=18e3*($c&65535)+($c>>16)&Aa;var p=(Yc<<16)+($c&65535)>>>0&Aa|0;return o||(p>>>=0),p}function nh(o){o===void 0&&(o=22);for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=_s()>>>0,m=0,h=V;h[Ae]<o;)m++,h+=p.charAt(d&63),d>>>=6,m===5&&(d=(_s()<<2&4294967295|d&3)>>>0,m=0);return h}var sS=v,oS="2.8.10",sk="."+nh(6),ok=0;function ck(o,p,d){if(sS)try{return sS(o,p,{value:d,enumerable:!1,configurable:!0}),!0}catch{}return!1}function cS(o){return o[In]===1||o[In]===9||!+o[In]}function uk(o,p){var d=p[o.id];if(!d){d={};try{cS(p)&&(ck(p,o.id,d)||(p[o.id]=d))}catch{}}return d}function Xc(o,p){return p===void 0&&(p=!1),Kr(o+ok+++(p?"."+oS:V)+sk)}function uS(o){var p={id:Xc("_aiData-"+(o||V)+"."+oS),accept:function(d){return cS(d)},get:function(d,m,h,g){var S=d[p.id];return S?S[Kr(m)]:(g&&(S=uk(p,d),S[Kr(m)]=h),h)},kill:function(d,m){if(d&&d[m])try{delete d[m]}catch{}}};return p}var lS="toGMTString",pS="toUTCString",rh="cookie",ih="expires",ah="enabled",dS="isCookieUseDisabled",fS="disableCookiesUsage",Ia="_ckMgr",Ql=null,sh=null,mS=null,Qc=Sa(),vS={},Zl={};function hS(o,p){var d=Eo[Ia]||Zl[Ia];return d||(d=Eo[Ia]=Eo(o,p),Zl[Ia]=d),d}function Jl(o){return o?o.isEnabled():!0}function lk(o){var p=o[fn]=o[fn]||{};if(er(p,"domain",o.cookieDomain,Tn,Tt),er(p,"path",o.cookiePath||"/",null,Tt),Tt(p[ah])){var d=void 0;ht(o[dS])||(d=!o[dS]),ht(o[fS])||(d=!o[fS]),p[ah]=d}return p}function _S(o,p){return p&&o&&Lt(o.ignoreCookies)?o.ignoreCookies[Xt](p)!==-1:!1}function pk(o,p){return p&&o&&Lt(o.blockedCookies)&&o.blockedCookies[Xt](p)!==-1?!0:_S(o,p)}function dk(o,p){var d;if(o)d=o.getCookieMgr();else if(p){var m=p[fn];m[Ia]?d=m[Ia]:d=Eo(p)}return d||(d=hS(p,(o||{})[Pt])),d}function Eo(o,p){var d,m=lk(o||Zl),h=m.path||"/",g=m.domain,S=m[ah]!==!1,I=(d={isEnabled:function(){var A=S&&oh(p),D=Zl[Ia];return A&&D&&I!==D&&(A=Jl(D)),A}},d[li]=function(A){S=A!==!1},d.set=function(A,D,j,z,ne){var k=!1;if(Jl(I)&&!pk(m,A)){var re={},me=y(D||V),Re=me[Xt](";");if(Re!==-1&&(me=y(D[Fn](0,Re)),re=gS(D[Fn](Re+1))),er(re,"domain",z||g,Pv,ht),!Tt(j)){var qe=Gc();if(ht(re[ih])){var Ve=qr(),Vt=Ve+j*1e3;if(Vt>0){var gn=new Date;gn.setTime(Vt),er(re,ih,bS(gn,qe?lS:pS)||bS(gn,qe?lS:pS)||V,Pv)}}qe||er(re,"max-age",V+j,null,ht)}var mr=jT();mr&&mr.protocol==="https:"&&(er(re,"secure",null,null,ht),sh===null&&(sh=!TS((vs()||{})[Hn])),sh&&er(re,"SameSite","None",null,ht)),er(re,"path",ne||h,null,ht);var he=m.setCookie||ES;he(A,yS(me,re)),k=!0}return k},d.get=function(A){var D=V;return Jl(I)&&!_S(m,A)&&(D=(m.getCookie||fk)(A)),D},d.del=function(A,D){var j=!1;return Jl(I)&&(j=I.purge(A,D)),j},d.purge=function(A,D){var j,z=!1;if(oh(p)){var ne=(j={},j.path=D||"/",j[ih]="Thu, 01 Jan 1970 00:00:01 GMT",j);Gc()||(ne["max-age"]="0");var k=m.delCookie||ES;k(A,yS(V,ne)),z=!0}return z},d);return I[Ia]=I,I}function oh(o){if(Ql===null){Ql=!1;try{var p=Qc||{};Ql=p[rh]!==void 0}catch(d){hs(o,2,68,"Cannot access document.cookie - "+Ta(d),{exception:xa(d)})}}return Ql}function gS(o){var p={};if(o&&o[Ae]){var d=y(o)[Ki](";");q(d,function(m){if(m=y(m||V),m){var h=m[Xt]("=");h===-1?p[m]=null:p[y(m[Fn](0,h))]=y(m[Fn](h+1))}})}return p}function bS(o,p){return lt(o[p])?o[p]():null}function yS(o,p){var d=o||V;return zn(p,function(m,h){d+="; "+m+(Tt(h)?V:"="+h)}),d}function fk(o){var p=V;if(Qc){var d=Qc[rh]||V;mS!==d&&(vS=gS(d),mS=d),p=y(vS[o]||V)}return p}function ES(o,p){Qc&&(Qc[rh]=o+"="+p)}function TS(o){return kr(o)?!!(cn(o,"CPU iPhone OS 12")||cn(o,"iPad; CPU OS 12")||cn(o,"Macintosh; Intel Mac OS X 10_14")&&cn(o,"Version/")&&cn(o,"Safari")||cn(o,"Macintosh; Intel Mac OS X 10_14")&&ls(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||cn(o,"Chrome/5")||cn(o,"Chrome/6")||cn(o,"UnrealEngine")&&!cn(o,"Chrome")||cn(o,"UCBrowser/12")||cn(o,"UCBrowser/11")):!1}var SS="on",xS="attachEvent",AS="addEventListener",IS="detachEvent",OS="removeEventListener",ep="events",Zc="visibilitychange",tp="pagehide",PS="pageshow",CS="unload",RS="beforeunload",wS=Xc("aiEvtPageHide"),NS=Xc("aiEvtPageShow"),mk=/\.[\.]+/g,vk=/[\.]+$/,hk=1,Jc=uS("events"),_k=/^([^.]*)(?:\.(.+)|)/;function DS(o){return o&&o[Mn]?o[Mn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,V):o}function np(o,p){var d;if(p){var m=V;Lt(p)?(m=V,q(p,function(g){g=DS(g),g&&(g[0]!=="."&&(g="."+g),m+=g)})):m=DS(p),m&&(m[0]!=="."&&(m="."+m),o=(o||V)+m)}var h=_k.exec(o||V)||[];return d={},d[Q]=h[1],d.ns=(h[2]||V).replace(mk,".").replace(vk,V)[Ki](".").sort().join("."),d}function gk(o,p,d){var m=[],h=Jc.get(o,ep,{},!1),g=np(p,d);return zn(h,function(S,I){q(I,function(A){var D;(!g[Q]||g[Q]===A.evtName[Q])&&(!g.ns||g.ns===g.ns)&&m[we]((D={},D[ut]=A.evtName[Q]+(A.evtName.ns?"."+A.evtName.ns:V),D.handler=A[Z],D))})}),m}function MS(o,p,d){d===void 0&&(d=!0);var m=Jc.get(o,ep,{},d),h=m[p];return h||(h=m[p]=[]),h}function LS(o,p,d,m){o&&p&&p[Q]&&(o[OS]?o[OS](p[Q],d,m):o[IS]&&o[IS](SS+p[Q],d))}function bk(o,p,d,m){var h=!1;return o&&p&&p[Q]&&d&&(o[AS]?(o[AS](p[Q],d,m),h=!0):o[xS]&&(o[xS](SS+p[Q],d),h=!0)),h}function kS(o,p,d,m){for(var h=p[Ae];h--;){var g=p[h];g&&(!d.ns||d.ns===g.evtName.ns)&&(!m||m(g))&&(LS(o,g.evtName,g[Z],g.capture),p[An](h,1))}}function yk(o,p,d){if(p[Q])kS(o,MS(o,p[Q]),p,d);else{var m=Jc.get(o,ep,{});zn(m,function(h,g){kS(o,g,p,d)}),X(m)[Ae]===0&&Jc.kill(o,ep)}}function eu(o,p){var d;return p?(Lt(p)?d=[o].concat(p):d=[o,p],d=np("xx",d).ns[Ki](".")):d=o,d}function tu(o,p,d,m,h){var g;h===void 0&&(h=!1);var S=!1;if(o)try{var I=np(p,m);if(S=bk(o,I,d,h),S&&Jc.accept(o)){var A=(g={guid:hk++,evtName:I},g[Z]=d,g.capture=h,g);MS(o,I.type)[we](A)}}catch{}return S}function nu(o,p,d,m,h){if(h===void 0&&(h=!1),o)try{var g=np(p,m),S=!1;yk(o,g,function(I){return g.ns&&!d||I[Z]===d?(S=!0,!0):!1}),S||LS(o,g,d,h)}catch{}}function ch(o,p,d,m){return m===void 0&&(m=!1),tu(o,p,d,null,m)}function uh(o,p,d,m){m===void 0&&(m=!1),nu(o,p,d,null,m)}function lh(o,p,d){var m=!1,h=Vv();h&&(m=tu(h,o,p,d),m=tu(h.body,o,p,d)||m);var g=Sa();return g&&(m=tu(g,o,p,d)||m),m}function qS(o,p,d){var m=Vv();m&&(nu(m,o,p,d),nu(m.body,o,p,d));var h=Sa();h&&nu(h,o,p,d)}function To(o,p,d,m){var h=!1;return p&&o&&o[Ae]>0&&q(o,function(g){g&&(!d||ae(d,g)===-1)&&(h=lh(g,p,m)||h)}),h}function jS(o,p,d,m){var h=!1;return p&&o&&Lt(o)&&(h=To(o,p,d,m),!h&&d&&d[Ae]>0&&(h=To(o,p,null,m))),h}function So(o,p,d){o&&Lt(o)&&q(o,function(m){m&&qS(m,p,d)})}function Ek(o,p,d){return jS([RS,CS,tp],o,p,d)}function Tk(o,p){So([RS,CS,tp],o,p)}function US(o,p,d){function m(S){var I=Sa();o&&I&&I.visibilityState==="hidden"&&o(S)}var h=eu(wS,d),g=To([tp],o,p,h);return(!p||ae(p,Zc)===-1)&&(g=To([Zc],m,p,h)||g),!g&&p&&(g=US(o,null,d)),g}function Sk(o,p){var d=eu(wS,p);So([tp],o,d),So([Zc],null,d)}function FS(o,p,d){function m(S){var I=Sa();o&&I&&I.visibilityState==="visible"&&o(S)}var h=eu(NS,d),g=To([PS],o,p,h);return g=To([Zc],m,p,h)||g,!g&&p&&(g=FS(o,null,d)),g}function xk(o,p){var d=eu(NS,p);So([PS],o,d),So([Zc],null,d)}var ru=null,iu,Ak=i;function HS(){var o=au();return o[Fn](0,8)+"-"+o[Fn](8,12)+"-"+o[Fn](12,16)+"-"+o[Fn](16,20)+"-"+o[Fn](20)}function BS(){var o=Wv();return o&&o.now?o.now():qr()}function au(){for(var o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],p=V,d,m=0;m<4;m++)d=_s(),p+=o[d&15]+o[d>>4&15]+o[d>>8&15]+o[d>>12&15]+o[d>>16&15]+o[d>>20&15]+o[d>>24&15]+o[d>>28&15];var h=o[8+(_s()&3)|0];return p[dr](0,8)+p[dr](9,4)+"4"+p[dr](13,3)+h+p[dr](16,3)+p[dr](19,12)}var ph={_canUseCookies:void 0,isTypeof:Vr,isUndefined:ht,isNullOrUndefined:Tt,hasOwnProperty:Ii,isFunction:lt,isObject:kn,isDate:ya,isArray:Lt,isError:ds,isString:kr,isNumber:Ea,isBoolean:qn,toISOString:H,arrForEach:q,arrIndexOf:ae,arrMap:Ge,arrReduce:Le,strTrim:y,objCreate:N,objKeys:X,objDefineAccessors:le,addEventHandler:lh,dateNow:qr,isIE:Gc,disableCookies:zS,newGuid:HS,perfNow:BS,newId:nh,randomValue:iS,random32:_s,mwcRandomSeed:aS,mwcRandom32:th,generateW3CId:au},Ik={Attach:ch,AttachEvent:ch,Detach:uh,DetachEvent:uh};function xo(o,p){var d=hS(o,p),m=ph._canUseCookies;return ru===null&&(ru=[],iu=m,le(ph,"_canUseCookies",function(){return iu},function(h){iu=h,q(ru,function(g){g[li](h)})})),ae(ru,d)===-1&&ru[we](d),qn(m)&&d[li](m),qn(iu)&&d[li](iu),d}function zS(){xo()[li](!1)}function Ok(o){return xo(null,o).isEnabled()}function Pk(o,p){return xo(null,o).get(p)}function Ck(o,p,d,m){xo(null,o).set(p,d,null,m)}function Rk(o,p){return xo(null,o).del(p)}var wk=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,dh="00",fh="ff",rp="00000000000000000000000000000000",ip="0000000000000000",GS=1;function Ji(o,p,d){return o&&o[Ae]===p&&o!==d?!!o.match(/^[\da-f]*$/):!1}function VS(o,p,d){return Ji(o,p)?o:d}function KS(o){(isNaN(o)||o<0||o>255)&&(o=1);for(var p=o.toString(16);p[Ae]<2;)p="0"+p;return p}function Nk(o,p,d,m){var h;return h={},h[pe]=Ji(m,2,fh)?m:dh,h[Ue]=vh(o)?o:au(),h.spanId=hh(p)?p:au()[dr](0,16),h.traceFlags=d>=0&&d<=255?d:1,h}function mh(o){var p;if(!o||(Lt(o)&&(o=o[0]||""),!o||!kr(o)||o[Ae]>8192))return null;var d=wk.exec(y(o));return!d||d[1]===fh||d[2]===rp||d[3]===ip?null:(p={},p[pe]=d[1],p[Ue]=d[2],p[de]=d[3],p[Ne]=parseInt(d[4],16),p)}function vh(o){return Ji(o,32,rp)}function hh(o){return Ji(o,16,ip)}function WS(o){return!(!o||!Ji(o[pe],2,fh)||!Ji(o[Ue],32,rp)||!Ji(o[de],16,ip)||!Ji(KS(o[Ne]),2))}function Dk(o){return WS(o)?(o[Ne]&GS)===GS:!1}function Mk(o){if(o){var p=KS(o[Ne]);Ji(p,2)||(p="01");var d=o[pe]||dh;return d!=="00"&&d!=="ff"&&(d=dh),"".concat(d,"-").concat(VS(o.traceId,32,rp),"-").concat(VS(o.spanId,16,ip),"-").concat(p)}return""}function Lk(){var o="traceparent",p=mh(GT(o));return p||(p=mh(VT(o))),p}var kk=uS("plugin");function gs(o){return kk.get(o,"state",{},!0)}function _h(o,p){for(var d=[],m=null,h=o[Ee](),g;h;){var S=h[Er]();if(S){m&&lt(m[De])&&lt(S[En])&&m[De](S);var I=!1;lt(S[Ze])?I=S[Ze]():(g=gs(S),I=g[Ze]),I||d[we](S),m=S,h=h[Ee]()}}q(d,function(A){var D=o[Fe]();A[xe](o.getCfg(),D,p,o[Ee]()),g=gs(A),!A[Fe]&&!g[Fe]&&(g[Fe]=D),g[Ze]=!0,delete g[W]})}function ap(o){return o.sort(function(p,d){var m=0;if(d){var h=lt(d[En]);lt(p[En])?m=h?p[Jn]-d[Jn]:1:h&&(m=-1)}else m=p?1:-1;return m})}function qk(o,p,d,m){var h=0;function g(){for(;h<o[Ae];){var S=o[h++];if(S){var I=S._doUnload||S[ee];if(lt(I)&&I[w](S,p,d,g)===!0)return!0}}}return g()}function jk(o){var p={};return{getName:function(){return p[ut]},setName:function(d){o&&o.setName(d),p[ut]=d},getTraceId:function(){return p[Ue]},setTraceId:function(d){o&&o.setTraceId(d),vh(d)&&(p[Ue]=d)},getSpanId:function(){return p[de]},setSpanId:function(d){o&&o.setSpanId(d),hh(d)&&(p[de]=d)},getTraceFlags:function(){return p[Ne]},setTraceFlags:function(d){o&&o.setTraceFlags(d),p[Ne]=d}}}var Uk="TelemetryPluginChain",$S="_hasRun",YS="_getTelCtx",XS=0;function Fk(o,p,d){for(;o;){if(o[Er]()===d)return o;o=o[Ee]()}return Oa([d],p[Ot]||{},p)}function gh(o,p,d,m){var h=null,g=[];m!==null&&(h=m?Fk(o,d,m):o);var S={_next:A,ctx:{core:function(){return d},diagLog:function(){return YT(d,p)},getCfg:function(){return p},getExtCfg:D,getConfig:j,hasNext:function(){return!!h},getNext:function(){return h},setNext:function(ne){h=ne},iterate:z,onComplete:I}};function I(ne,k){for(var re=[],me=2;me<arguments.length;me++)re[me-2]=arguments[me];ne&&g[we]({func:ne,self:ht(k)?S.ctx:k,args:re})}function A(){var ne=h;if(h=ne?ne[Ee]():null,!ne){var k=g;k&&k[Ae]>0&&(q(k,function(re){try{re.func[w](re.self,re.args)}catch(me){hs(d[Pt],2,73,"Unexpected Exception during onComplete - "+xa(me))}}),g=[])}return ne}function D(ne,k,re){k===void 0&&(k={}),re===void 0&&(re=0);var me;if(p){var Re=p[Bn];Re&&ne&&(me=Re[ne])}if(!me)me=k;else if(kn(k)&&re!==0){var qe=Ll(!0,k,me);p&&re===2&&zn(k,function(Ve){if(Tt(qe[Ve])){var Vt=p[Ve];Tt(Vt)||(qe[Ve]=Vt)}}),me=qe}return me}function j(ne,k,re){re===void 0&&(re=!1);var me,Re=D(ne,null);return Re&&!Tt(Re[k])?me=Re[k]:p&&!Tt(p[k])&&(me=p[k]),Tt(me)?re:me}function z(ne){for(var k;k=S._next();){var re=k[Er]();re&&ne(re)}}return S}function ea(o,p,d,m){var h=gh(o,p,d,m),g=h.ctx;function S(A){var D=h._next();return D&&D[En](A,g),!D}function I(A,D){return A===void 0&&(A=null),Lt(A)&&(A=Oa(A,p,d,D)),ea(A||g[Ee](),p,d,D)}return g[dt]=S,g[zt]=I,g}function sp(o,p,d){var m=p[Ot]||{},h=gh(o,m,p,d),g=h.ctx;function S(A){var D=h._next();return D&&D.unload(g,A),!D}function I(A,D){return A===void 0&&(A=null),Lt(A)&&(A=Oa(A,m,p,D)),sp(A||g[Ee](),p,D)}return g[dt]=S,g[zt]=I,g}function bh(o,p,d){var m=p[Ot]||{},h=gh(o,m,p,d),g=h.ctx;function S(A){return g.iterate(function(D){lt(D[ye])&&D[ye](g,A)})}function I(A,D){return A===void 0&&(A=null),Lt(A)&&(A=Oa(A,m,p,D)),bh(A||g[Ee](),p,D)}return g[dt]=S,g[zt]=I,g}function Oa(o,p,d,m){var h=null,g=!m;if(Lt(o)&&o[Ae]>0){var S=null;q(o,function(I){if(!g&&m===I&&(g=!0),g&&I&&lt(I[En])){var A=Hk(I,p,d);h||(h=A),S&&S._setNext(A),S=A}})}return m&&!h?Oa([m],p,d):h}function Hk(o,p,d){var m=null,h=lt(o[En]),g=lt(o[De]),S;o?S=o[It]+"-"+o[Jn]+"-"+XS++:S="Unknown-0-"+XS++;var I={getPlugin:function(){return o},getNext:function(){return m},processTelemetry:j,unload:z,update:ne,_id:S,_setNext:function(k){m=k}};function A(){var k;return o&&lt(o[YS])&&(k=o[YS]()),k||(k=ea(I,p,d)),k}function D(k,re,me,Re,qe){var Ve=!1,Vt=o?o[It]:Uk,gn=k[$S];return gn||(gn=k[$S]={}),k.setNext(m),o&&eh(k[Fe](),function(){return Vt+":"+me},function(){gn[S]=!0;try{var mr=m?m._id:V;mr&&(gn[mr]=!1),Ve=re(k)}catch(dp){var he=m?gn[m._id]:!0;he&&(Ve=!0),(!m||!he)&&hs(k[$e](),1,73,"Plugin ["+Vt+"] failed during "+me+" - "+xa(dp)+", run flags: "+xa(gn))}},Re,qe),Ve}function j(k,re){re=re||A();function me(Re){if(!o||!h)return!1;var qe=gs(o);return qe[W]||qe[Zn]?!1:(g&&o[De](m),o[En](k,Re),!0)}D(re,me,"processTelemetry",function(){return{item:k}},!k.sync)||re[dt](k)}function z(k,re){function me(){var Re=!1;if(o){var qe=gs(o),Ve=o[Fe]||qe[Fe];o&&(!Ve||Ve===k.core())&&!qe[W]&&(qe[Fe]=null,qe[W]=!0,qe[Ze]=!1,o[W]&&o[W](k,re)===!0&&(Re=!0))}return Re}D(k,me,"unload",function(){},re[F])||k[dt](re)}function ne(k,re){function me(){var Re=!1;if(o){var qe=gs(o),Ve=o[Fe]||qe[Fe];o&&(!Ve||Ve===k.core())&&!qe[W]&&o[ye]&&o[ye](k,re)===!0&&(Re=!0)}return Re}D(k,me,"update",function(){},!1)||k[dt](re)}return tt(I)}var Bk=function(){function o(p,d,m,h){var g=this,S=ea(p,d,m,h);Cv(g,S,X(S))}return o}(),op=500,zk="Channel has invalid priority - ";function QS(o,p,d){p&&Lt(p)&&p[Ae]>0&&(p=p.sort(function(m,h){return m[Jn]-h[Jn]}),q(p,function(m){m[Jn]<op&&Wr(zk+m[It])}),o[we]({queue:tt(p),chain:Oa(p,d[Ot],d)}))}function Gk(o,p){function d(){return ea(null,p[Ot],p,null)}function m(D,j,z,ne){var k=D?D[Ae]+1:1;function re(){k--,k===0&&(ne&&ne(),ne=null)}k>0&&q(D,function(me){if(me&&me.queue[Ae]>0){var Re=me.chain,qe=j[zt](Re);qe[Mr](re),z(qe)}else k--}),re()}function h(D,j){var z=j||{reason:0};return m(o,D,function(ne){ne[dt](z)},function(){D[dt](z)}),!0}function g(D,j){var z=j||{reason:0,isAsync:!1};return m(o,D,function(ne){ne[dt](z)},function(){D[dt](z),I=!1}),!0}function S(D){var j=null;return o&&o[Ae]>0&&q(o,function(z){if(z&&z.queue[Ae]>0&&(q(z.queue,function(ne){if(ne[It]===D)return j=ne,-1}),j))return-1}),j}var I=!1,A={identifier:"ChannelControllerPlugin",priority:op,initialize:function(D,j,z,ne){I=!0,q(o,function(k){k&&k.queue[Ae]>0&&_h(ea(k.chain,D,j),z)})},isInitialized:function(){return I},processTelemetry:function(D,j){m(o,j||d(),function(z){z[dt](D)},function(){j[dt](D)})},update:h,pause:function(){m(o,d(),function(D){D.iterate(function(j){j.pause&&j.pause()})},null)},resume:function(){m(o,d(),function(D){D.iterate(function(j){j.resume&&j.resume()})},null)},teardown:g,getChannel:S,flush:function(D,j,z,ne){var k=1,re=!1,me=null;ne=ne||5e3;function Re(){k--,re&&k===0&&(me&&(clearTimeout(me),me=null),j&&j(re),j=null)}return m(o,d(),function(qe){qe.iterate(function(Ve){if(Ve[Dn]){k++;var Vt=!1;Ve[Dn](D,function(){Vt=!0,Re()},z)||Vt||(D&&me==null?me=setTimeout(function(){me=null,Re()},ne):Re())}})},function(){re=!0,Re()}),!0},_setQueue:function(D){o=D}};return A}function Vk(o,p,d){var m=[];if(o&&q(o,function(g){return QS(m,g,d)}),p){var h=[];q(p,function(g){g[Jn]>op&&h[we](g)}),QS(m,h,d)}return m}function yh(){var o=[];function p(m){m&&o[we](m)}function d(m,h){q(o,function(g){try{g(m,h)}catch(S){hs(m[$e](),2,73,"Unexpected error calling unload handler - "+xa(S))}}),o=[]}return{add:p,run:d}}var Pa="getPlugin",ZS=function(){function o(){var p=this,d,m,h,g,S;D(),Zi(o,p,function(j){j[xe]=function(z,ne,k,re){A(z,ne,re),d=!0},j[W]=function(z,ne){var k,re=j[Fe];if(!re||z&&re!==z[Fe]())return;var me,Re=!1,qe=z||sp(null,re,h&&h[Pa]?h[Pa]():h),Ve=ne||(k={reason:0},k[F]=!1,k);function Vt(){if(!Re){Re=!0,g.run(qe,ne);var gn=S;S=[],q(gn,function(mr){mr.rm()}),me===!0&&qe[dt](Ve),D()}}return!j[ee]||j[ee](qe,Ve,Vt)!==!0?Vt():me=!0,me},j[ye]=function(z,ne){var k=j[Fe];if(!k||z&&k!==z[Fe]())return;var re,me=!1,Re=z||bh(null,k,h&&h[Pa]?h[Pa]():h),qe=ne||{reason:0};function Ve(){me||(me=!0,A(Re.getCfg(),Re.core(),Re[Ee]()))}return!j._doUpdate||j._doUpdate(Re,qe,Ve)!==!0?Ve():re=!0,re},j._addHook=function(z){z&&(Lt(z)?S=S.concat(z):S[we](z))},Ml(j,"_addUnloadCb",function(){return g},"add")}),p[$e]=function(j){return I(j)[$e]()},p[Ze]=function(){return d},p.setInitialized=function(j){d=j},p[De]=function(j){h=j},p[dt]=function(j,z){z?z[dt](j):h&&lt(h[En])&&h[En](j,null)},p._getTelCtx=I;function I(j){j===void 0&&(j=null);var z=j;if(!z){var ne=m||ea(null,{},p[Fe]);h&&h[Pa]?z=ne[zt](null,h[Pa]):z=ne[zt](null,h)}return z}function A(j,z,ne){j&&er(j,Bn,[],null,Tt),!ne&&z&&(ne=z[ui]()[Ee]());var k=h;h&&h[Pa]&&(k=h[Pa]()),p[Fe]=z,m=ea(ne,j,z,k)}function D(){d=!1,p[Fe]=null,m=null,h=null,S=[],g=yh()}}return o.__ieDyn=1,o}(),Kk=function(o){ce(p,o);function p(){var d=o.call(this)||this;d.identifier="TelemetryInitializerPlugin",d.priority=199;var m,h;g(),Zi(p,d,function(S,I){S.addTelemetryInitializer=function(A){var D={id:m++,fn:A};h[we](D);var j={remove:function(){q(h,function(z,ne){if(z.id===D.id)return h[An](ne,1),-1})}};return j},S[En]=function(A,D){for(var j=!1,z=h[Ae],ne=0;ne<z;++ne){var k=h[ne];if(k)try{if(k.fn[Tr](null,[A])===!1){j=!0;break}}catch(re){hs(D[$e](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ta(re),{exception:xa(re)},!0)}}j||S[dt](A,D)},S[ee]=function(){g()}});function g(){m=0,h=[]}return d}return p.__ieDyn=1,p}(ZS),JS="Plugins must provide initialize method",ex="_notificationManager",tx="SDK is still unloading...",Wk="SDK is not initialized",$k={loggingLevelConsole:1};function Yk(o,p){return new ZT(p)}function Xk(o,p,d){var m,h=[],g={};return q(d,function(S){(Tt(S)||Tt(S[xe]))&&Wr(JS);var I=S[Jn],A=S[It];S&&I&&(Tt(g[I])?g[I]=A:XT(o,"Two extensions have same priority #"+I+" - "+g[I]+", "+A)),(!I||I<p)&&h[we](S)}),m={all:d},m[Fe]=h,m}function nx(o,p){var d=!1;return q(p,function(m){if(m===o)return d=!0,-1}),d}function Qk(){var o;return N((o={},o[rn]=function(p){},o[pr]=function(p){},o[fr]=function(p){},o[Wi]=function(p,d){},o[L]=function(p,d){},o))}var rx=function(){function o(){var p,d,m,h,g,S,I,A,D,j,z,ne,k,re,me,Re,qe,Ve,Vt,gn,mr=0;Zi(o,this,function(he){dp(),he[Ze]=function(){return d},he[xe]=function(ie,Qe,gt,nt){re&&Wr(tx),he[Ze]()&&Wr("Core should not be initialized more than once"),p=ie||{},he[Ot]=p,Tt(ie[Yt])&&Wr("Please provide instrumentation key"),h=nt,he[ex]=nt,a1(),s1(),o1(),gt&&(he[Pt]=gt);var wt=tr(p,Lr,[]);D=[],D[we].apply(D,be(be([],Qe,!1),wt)),ne=tr(p,ve,[]),Ah(null),(!k||k[Ae]===0)&&Wr("No "+ve+" available"),d=!0,he.releaseQueue()},he.getTransmissionControls=function(){var ie=[];return k&&q(k,function(Qe){ie[we](Qe.queue)}),tt(ie)},he.track=function(ie){ie.iKey=ie.iKey||p[Yt],ie[Nn]=ie[Nn]||H(new Date),ie.ver=ie.ver||"4.0",!re&&he[Ze]()?fp()[dt](ie):m[we](ie)},he[ui]=fp,he[$t]=function(){return h||(h=Qk(),he[ex]=h),h},he[rn]=function(ie){h&&h[rn](ie)},he[pr]=function(ie){h&&h[pr](ie)},he.getCookieMgr=function(){return I||(I=Eo(p,he[Pt])),I},he.setCookieMgr=function(ie){I=ie},he[_e]=function(){if(!g&&!S&&xr(p.enablePerfMgr)){var ie=xr(p[Gt]);lt(ie)&&(S=ie(he,he[$t]()))}return g||S||JT()},he.setPerfMgr=function(ie){g=ie},he.eventCnt=function(){return m[Ae]},he.releaseQueue=function(){if(d&&m[Ae]>0){var ie=m;m=[],q(ie,function(Qe){fp()[dt](Qe)})}},he.pollInternalLogs=function(ie){Re=ie||null;var Qe=xr(p.diagnosticLogInterval);return(!Qe||!(Qe>0))&&(Qe=1e4),mr&&clearInterval(mr),mr=setInterval(function(){mx()},Qe),mr},he[Dr]=function(){mr&&(clearInterval(mr),mr=0,mx())},Cv(he,function(){return me},["addTelemetryInitializer"]),he.unload=function(ie,Qe,gt){var nt;ie===void 0&&(ie=!0),d||Wr(Wk),re&&Wr(tx);var wt=(nt={reason:50},nt[F]=ie,nt.flushComplete=!1,nt),vr=sp(Ih(),he);vr[Mr](function(){dp(),Qe&&Qe(wt)},he);function $r(Oi){wt.flushComplete=Oi,re=!0,Ve.run(vr,wt),he[Dr](),vr[dt](wt)}vx(ie,$r,6,gt)||$r(!1)},he[Er]=dx,he.addPlugin=function(ie,Qe,gt,nt){if(!ie){nt&&nt(!1),hx(JS);return}var wt=dx(ie[It]);if(wt&&!Qe){nt&&nt(!1),hx("Plugin ["+ie[It]+"] is already loaded!");return}var vr={reason:16};function $r(ys){D[we](ie),vr.added=[ie],Ah(vr),nt&&nt(!0)}if(wt){var Oi=[wt.plugin],Ra={reason:2,isAsync:!!gt};fx(Oi,Ra,function(ys){ys?(vr.removed=Oi,vr.reason|=32,$r()):nt&&nt(!1)})}else $r()},he.evtNamespace=function(){return qe},he[Dn]=vx,he.getTraceCtx=function(ie){return gn||(gn=jk()),gn},he.setTraceCtx=function(ie){gn=ie||null},Ml(he,"addUnloadCb",function(){return Ve},"add");function dp(){d=!1,p=Ll(!0,{},$k),he[Ot]=p,he[Pt]=new Vc(p),he[Un]=[],me=new Kk,m=[],h=null,g=null,S=null,I=null,A=null,j=null,D=[],z=null,ne=null,k=null,re=!1,Re=null,qe=Xc("AIBaseCore",!0),Ve=yh(),gn=null}function fp(){return ea(Ih(),p,he)}function Ah(ie){var Qe=Xk(he[Pt],op,D);j=Qe[Fe],A=null;var gt=Qe.all;if(k=tt(Vk(ne,gt,he)),z){var nt=ae(gt,z);nt!==-1&&gt[An](nt,1),nt=ae(j,z),nt!==-1&&j[An](nt,1),z._setQueue(k)}else z=Gk(k,he);gt[we](z),j[we](z),he[Un]=ap(gt),z[xe](p,he,gt),_h(fp(),gt),he[Un]=tt(ap(j||[])).slice(),ie&&c1(ie)}function dx(ie){var Qe,gt=null,nt=null;return q(he[Un],function(wt){if(wt[It]===ie&&wt!==z&&wt!==me)return nt=wt,-1}),!nt&&z&&(nt=z.getChannel(ie)),nt&&(gt=(Qe={plugin:nt},Qe[li]=function(wt){gs(nt)[Zn]=!wt},Qe.isEnabled=function(){var wt=gs(nt);return!wt[W]&&!wt[Zn]},Qe.remove=function(wt,vr){var $r;wt===void 0&&(wt=!0);var Oi=[nt],Ra=($r={reason:1},$r[F]=wt,$r);fx(Oi,Ra,function(ys){ys&&Ah({reason:32,removed:Oi}),vr&&vr(ys)})},Qe)),gt}function Ih(){if(!A){var ie=(j||[]).slice();ae(ie,me)===-1&&ie[we](me),A=Oa(ap(ie),p,he)}return A}function fx(ie,Qe,gt){if(ie&&ie[Ae]>0){var nt=Oa(ie,p,he),wt=sp(nt,he);wt[Mr](function(){var vr=!1,$r=[];q(D,function(Ra,ys){nx(Ra,ie)?vr=!0:$r[we](Ra)}),D=$r;var Oi=[];ne&&(q(ne,function(Ra,ys){var _x=[];q(Ra,function(gx){nx(gx,ie)?vr=!0:_x[we](gx)}),Oi[we](_x)}),ne=Oi),gt&&gt(vr)}),wt[dt](Qe)}else gt(!1)}function mx(){var ie=he[Pt]?he[Pt].queue:[];ie&&(q(ie,function(Qe){var gt,nt=(gt={},gt[ut]=Re||"InternalMessageId: "+Qe[O],gt.iKey=xr(p[Yt]),gt.time=H(new Date),gt.baseType=Xl.dataType,gt.baseData={message:Qe[P]},gt);he.track(nt)}),ie[Ae]=0)}function vx(ie,Qe,gt,nt){return z?z[Dn](ie,Qe,gt||6,nt):(Qe&&Qe(!1),!0)}function a1(){var ie=xr(p.disableDbgExt);ie===!0&&Vt&&(h[pr](Vt),Vt=null),h&&!Vt&&ie!==!0&&(Vt=KT(p),h[rn](Vt))}function s1(){var ie=xr(p.enablePerfMgr);!ie&&S&&(S=null),ie&&tr(p,Gt,Yk)}function o1(){var ie=tr(p,Bn,{});ie.NotificationManager=h}function c1(ie){var Qe=bh(Ih(),he);(!he._updateHook||he._updateHook(Qe,ie)!==!0)&&Qe[dt](ie)}function hx(ie){var Qe=he[Pt];Qe?hs(Qe,2,73,ie):Wr(ie)}})}return o.__ieDyn=1,o}();function cp(o,p,d,m){q(o,function(h){if(h&&h[p])if(d)setTimeout(function(){return m(h)},0);else try{m(h)}catch{}})}var ix=function(){function o(p){this.listeners=[];var d=!!(p||{}).perfEvtsSendAll;Zi(o,this,function(m){m[rn]=function(h){m.listeners[we](h)},m[pr]=function(h){for(var g=ae(m[Oe],h);g>-1;)m.listeners[An](g,1),g=ae(m[Oe],h)},m[fr]=function(h){cp(m[Oe],fr,!0,function(g){g[fr](h)})},m[Wi]=function(h,g){cp(m[Oe],Wi,!0,function(S){S[Wi](h,g)})},m[L]=function(h,g){cp(m[Oe],L,g,function(S){S[L](h,g)})},m[Y]=function(h){h&&(d||!h[fe]())&&cp(m[Oe],Y,!1,function(g){h[F]?setTimeout(function(){return g[Y](h)},0):g[Y](h)})}})}return o.__ieDyn=1,o}(),Zk=function(o){ce(p,o);function p(){var d=o.call(this)||this;return Zi(p,d,function(m,h){m[xe]=function(I,A,D,j){h[xe](I,A,D||new Vc(I),j||new ix(I))},m.track=function(I){eh(m[_e](),function(){return"AppInsightsCore:track"},function(){I===null&&(S(I),Wr("Invalid telemetry item")),g(I),h.track(I)},function(){return{item:I}},!I.sync)};function g(I){Tt(I[ut])&&(S(I),Wr("telemetry name required"))}function S(I){var A=m[$t]();A&&A[Wi]([I],2)}}),d}return p.__ieDyn=1,p}(rx),J,At="Failed",bs=At+"MonitorAjax",pi="Track",ax="Start",sx="Stop",up="Event",Eh="AuthContext",su="Exception",lp="Local",Ao="Session",di="Storage",Ca="Browser",ta="Cannot",ou="Buffer",ox="InstrumentationKey",Jk=kl({CRITICAL:1,WARNING:2}),e1=kl((J={},J[Ca+"DoesNotSupport"+lp+di]=0,J[Ca+ta+"Read"+lp+di]=1,J[Ca+ta+"Read"+Ao+di]=2,J[Ca+ta+"Write"+lp+di]=3,J[Ca+ta+"Write"+Ao+di]=4,J[Ca+At+"RemovalFrom"+lp+di]=5,J[Ca+At+"RemovalFrom"+Ao+di]=6,J[ta+"SendEmptyTelemetry"]=7,J.ClientPerformanceMathError=8,J["ErrorParsingAI"+Ao+"Cookie"]=9,J.ErrorPVCalc=10,J[su+"WhileLoggingError"]=11,J[At+"AddingTelemetryTo"+ou]=12,J[bs+"Abort"]=13,J[bs+"Dur"]=14,J[bs+"Open"]=15,J[bs+"RSC"]=16,J[bs+"Send"]=17,J[bs+"GetCorrelationHeader"]=18,J[At+"ToAddHandlerForOnBeforeUnload"]=19,J[At+"ToSendQueuedTelemetry"]=20,J[At+"ToReportDataLoss"]=21,J["Flush"+At]=22,J.MessageLimitPerPVExceeded=23,J.MissingRequiredFieldSpecification=24,J.NavigationTimingNotSupported=25,J.OnError=26,J[Ao+"RenewalDateIsZero"]=27,J.SenderNotInitialized=28,J[ax+pi+up+At]=29,J[sx+pi+up+At]=30,J[ax+pi+At]=31,J[sx+pi+At]=32,J.TelemetrySampledAndNotSent=33,J[pi+up+At]=34,J[pi+su+At]=35,J[pi+"Metric"+At]=36,J[pi+"PV"+At]=37,J[pi+"PV"+At+"Calc"]=38,J[pi+"Trace"+At]=39,J["Transmission"+At]=40,J[At+"ToSet"+di+ou]=41,J[At+"ToRestore"+di+ou]=42,J.InvalidBackendResponse=43,J[At+"ToFixDepricatedValues"]=44,J.InvalidDurationValue=45,J.TelemetryEnvelopeInvalid=46,J.CreateEnvelopeError=47,J[ta+"SerializeObject"]=48,J[ta+"SerializeObjectNonSerializable"]=49,J.CircularReferenceDetected=50,J["Clear"+Eh+At]=51,J[su+"Truncated"]=52,J.IllegalCharsInName=53,J.ItemNotInArray=54,J.MaxAjaxPerPVExceeded=55,J.MessageTruncated=56,J.NameTooLong=57,J.SampleRateOutOfRange=58,J["Set"+Eh+At]=59,J["Set"+Eh+At+"AccountName"]=60,J.StringValueTooLong=61,J.StartCalledMoreThanOnce=62,J.StopCalledWithoutStart=63,J["TelemetryInitializer"+At]=64,J.TrackArgumentsNotSpecified=65,J.UrlTooLong=66,J[Ao+di+ou+"Full"]=67,J[ta+"AccessCookie"]=68,J.IdTooLong=69,J.InvalidEvent=70,J[bs+"SetRequestHeader"]=71,J["Send"+Ca+"InfoOnUserInit"]=72,J["Plugin"+su]=73,J["Notification"+su]=74,J.SnippetScriptLoadFailure=99,J["Invalid"+ox]=100,J[ta+"ParseAiBlobValue"]=101,J.InvalidContentBlob=102,J[pi+"PageAction"+up+At]=103,J[At+"AddingCustomDefinedRequestContext"]=104,J["InMemory"+di+ou+"Full"]=105,J[ox+"Deprecation"]=106,J)),cx="_aiHooks",ux=["req","rsp","hkErr","fnErr"];function pp(o,p){if(o)for(var d=0;d<o[Ae]&&!p(o[d],d);d++);}function Th(o,p,d,m,h){h>=0&&h<=2&&pp(o,function(g,S){var I=g.cbks,A=I[ux[h]];if(A){p.ctx=function(){var z=m[S]=m[S]||{};return z};try{A[Tr](p.inst,d)}catch(z){var D=p.err;try{var j=I[ux[2]];j&&(p.err=z,j[Tr](p.inst,d))}catch{}finally{p.err=D}}}})}function t1(o){return function(){var p,d=this,m=arguments,h=o.h,g=(p={},p[ut]=o.n,p.inst=d,p.ctx=null,p.set=D,p),S=[],I=A([g],m);g.evt=Cn("event");function A(z,ne){return pp(ne,function(k){z[we](k)}),z}function D(z,ne){m=A([],m),m[z]=ne,I=A([g],m)}Th(h,g,I,S,0);var j=o.f;if(j)try{g.rslt=j[Tr](d,m)}catch(z){throw g.err=z,Th(h,g,I,S,3),z}return Th(h,g,I,S,1),g.rslt}}function Sh(o,p,d){var m=null;return o&&(Ii(o,p)?m=o:d&&(m=Sh(Ai(o),p,!1))),m}function n1(o,p,d){return o?xh(o[a],p,d,!1):null}function r1(o,p,d){return o?px(o[a],p,d,!1):null}function lx(o,p,d,m){var h=d&&d[cx];if(!h){h={i:0,n:p,f:d,h:[]};var g=t1(h);g[cx]=h,o[p]=g}var S={id:h.i,cbks:m,rm:function(){var I=this.id;pp(h.h,function(A,D){if(A.id===I)return h.h[An](D,1),1})}};return h.i++,h.h[we](S),S}function xh(o,p,d,m){if(m===void 0&&(m=!0),o&&p&&d){var h=Sh(o,p,m);if(h){var g=h[p];if(typeof g===n)return lx(h,p,g,d)}}return null}function px(o,p,d,m){m===void 0&&(m=!0);var h=null;return pp(p,function(g){var S=xh(o,g,d,m);S&&(h||(h=[]),h[we](S))}),h}function i1(o,p,d,m){if(o&&p&&d){var h=Sh(o,p,m)||o;if(h)return lx(h,p,h[p],d)}return null}e.AppInsightsCore=Zk,e.BaseCore=rx,e.BaseTelemetryPlugin=ZS,e.CoreUtils=ph,e.DiagnosticLogger=Vc,e.EventHelper=Ik,e.EventsDiscardedReason=IL,e.InstrumentEvent=i1,e.InstrumentFunc=xh,e.InstrumentFuncs=px,e.InstrumentProto=n1,e.InstrumentProtos=r1,e.LoggingSeverity=Jk,e.MinChannelPriorty=t,e.NotificationManager=ix,e.PerfEvent=Wc,e.PerfManager=ZT,e.ProcessTelemetryContext=Bk,e.Undefined=Ak,e._InternalLogMessage=Xl,e._InternalMessageId=e1,e.__getRegisteredEvents=gk,e._legacyCookieMgr=xo,e._logInternalMessage=ik,e._throwInternal=hs,e._warnToConsole=XT,e.addEventHandler=lh,e.addEventListeners=jS,e.addPageHideEventListener=US,e.addPageShowEventListener=FS,e.addPageUnloadEventListener=Ek,e.areCookiesSupported=oh,e.arrForEach=q,e.arrIndexOf=ae,e.arrMap=Ge,e.arrReduce=Le,e.attachEvent=ch,e.canUseCookies=Ok,e.createClassFromInterface=TL,e.createCookieMgr=Eo,e.createEnumMap=xL,e.createEnumStyle=kl,e.createProcessTelemetryContext=ea,e.createTraceParent=Nk,e.createUniqueNamespace=Xc,e.createUnloadHandlerContainer=yh,e.createValueMap=AL,e.dateNow=qr,e.deepFreeze=et,e.deleteCookie=Rk,e.detachEvent=uh,e.disableCookies=zS,e.doPerf=eh,e.dumpObj=xa,e.eventOff=nu,e.eventOn=tu,e.findMetaTag=GT,e.findNamedServerTiming=VT,e.findW3cTraceParent=Lk,e.formatTraceParent=Mk,e.generateW3CId=au,e.getConsole=UT,e.getCookie=Pk,e.getCrypto=FT,e.getDebugExt=Xv,e.getDebugListener=KT,e.getDocument=Sa,e.getExceptionName=Ta,e.getGblPerfMgr=JT,e.getGlobal=x,e.getGlobalInst=Cn,e.getHistory=KL,e.getIEVersion=$L,e.getJSON=$v,e.getLocation=jT,e.getMsCrypto=HT,e.getNavigator=vs,e.getPerformance=Wv,e.getSetValue=tr,e.getWindow=Vv,e.hasDocument=kT,e.hasHistory=qT,e.hasJSON=Wl,e.hasNavigator=Kv,e.hasOwnProperty=Ii,e.hasWindow=Gv,e.initializePlugins=_h,e.isArray=Lt,e.isBeaconsSupported=XL,e.isBoolean=qn,e.isDate=ya,e.isError=ds,e.isFetchSupported=QL,e.isFunction=lt,e.isIE=Gc,e.isNotNullOrUndefined=Tn,e.isNotTruthy=Ov,e.isNotUndefined=$i,e.isNullOrUndefined=Tt,e.isNumber=Ea,e.isObject=kn,e.isReactNative=WL,e.isSafari=YL,e.isSampledFlag=Dk,e.isString=kr,e.isSymbol=fs,e.isTruthy=Pv,e.isTypeof=Vr,e.isUndefined=ht,e.isValidSpanId=hh,e.isValidTraceId=vh,e.isValidTraceParent=WS,e.isXhrSupported=BT,e.mergeEvtNamespace=eu,e.mwcRandom32=th,e.mwcRandomSeed=aS,e.newGuid=HS,e.newId=nh,e.normalizeJsName=Kr,e.objCreate=N,e.objDefineAccessors=le,e.objExtend=Ll,e.objForEachKey=zn,e.objFreeze=tt,e.objKeys=X,e.objSeal=kt,e.objToString=Sr,e.optimizeObject=SL,e.parseTraceParent=mh,e.perfNow=BS,e.proxyAssign=EL,e.proxyFunctionAs=Ml,e.proxyFunctions=Cv,e.random32=_s,e.randomValue=iS,e.removeEventHandler=qS,e.removeEventListeners=So,e.removePageHideEventListener=Sk,e.removePageShowEventListener=xk,e.removePageUnloadEventListener=Tk,e.safeGetCookieMgr=dk,e.safeGetLogger=YT,e.setCookie=Ck,e.setEnableEnvMocks=VL,e.setGblPerfMgr=ak,e.setValue=er,e.sortPlugins=ap,e.strContains=cn,e.strEndsWith=ls,e.strFunction=n,e.strObject=r,e.strPrototype=a,e.strStartsWith=ba,e.strTrim=y,e.strUndefined=i,e.throwError=Wr,e.toISOString=H,e.uaDisallowsSameSiteNone=TS,e.unloadComponents=qk,e.useXDomainRequest=ZL,function(o,p,d){var m=Object.defineProperty;if(m)try{return m(o,p,d)}catch{}return d&&typeof d.value!==void 0&&(o[p]=d.value),o}(e,"__esModule",{value:!0})})});var Mh=_((Nh,Dh)=>{(function(e,t){typeof Nh=="object"&&typeof Dh<"u"?Dh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.Microsoft=e.Microsoft||{},e.Microsoft["DynamicProto-JS"]=t())})(Nh,function(){"use strict";var e,t="undefined",n="constructor",r="prototype",i="function",a="_dynInstFuncs",s="_isDynProxy",u="_dynClass",l="_dynCls$",c="_dynInstChk",f=c,v="_dfOpts",b="_unknown_",T="__proto__",x="_dyn"+T,M="__dynProto$Gbl",N="_dynInstProto",se="useBaseInst",ce="setInstFuncs",be=Object,xe=be.getPrototypeOf,ut=be.getOwnPropertyNames;function $t(){var W;return typeof globalThis!==t&&(W=globalThis),!W&&typeof self!==t&&(W=self),!W&&typeof window!==t&&(W=window),!W&&typeof global!==t&&(W=global),W||{}}var It=$t(),we=It[M]||(It[M]={o:(e={},e[ce]=!0,e[se]=!0,e),n:1e3});function Ze(W,O){return W&&be[r].hasOwnProperty.call(W,O)}function Ot(W){return W&&(W===be[r]||W===Array[r])}function Yt(W){return Ot(W)||W===Function[r]}function Pt(W){var O;if(W){if(xe)return xe(W);var P=W[T]||W[r]||(W[n]?W[n][r]:null);O=W[x]||P,Ze(W,x)||(delete W[N],O=W[x]=W[N]||W[x],W[N]=P)}return O}function Ae(W,O){var P=[];if(ut)P=ut(W);else for(var F in W)typeof F=="string"&&Ze(W,F)&&P.push(F);if(P&&P.length>0)for(var ee=0;ee<P.length;ee++)O(P[ee])}function Nn(W,O,P){return O!==n&&typeof W[O]===i&&(P||Ze(W,O))}function dt(W){throw new TypeError("DynamicProto: "+W)}function ui(W){var O={};return Ae(W,function(P){!O[P]&&Nn(W,P,!1)&&(O[P]=W[P])}),O}function rn(W,O){for(var P=W.length-1;P>=0;P--)if(W[P]===O)return!0;return!1}function pr(W,O,P,F){function ee(De,zt,fn){var Xt=zt[fn];if(Xt[s]&&F){var Fn=De[a]||{};Fn[f]!==!1&&(Xt=(Fn[zt[u]]||{})[fn]||Xt)}return function(){return Xt.apply(De,arguments)}}var ye={};Ae(P,function(De){ye[De]=ee(O,P,De)});for(var Ee=Pt(W),$e=[];Ee&&!Yt(Ee)&&!rn($e,Ee);)Ae(Ee,function(De){!ye[De]&&Nn(Ee,De,!xe)&&(ye[De]=ee(O,Ee,De))}),$e.push(Ee),Ee=Pt(Ee);return ye}function Dr(W,O,P,F){var ee=null;if(W&&Ze(P,u)){var ye=W[a]||{};if(ee=(ye[P[u]]||{})[O],ee||dt("Missing ["+O+"] "+i),!ee[c]&&ye[f]!==!1){for(var Ee=!Ze(W,O),$e=Pt(W),De=[];Ee&&$e&&!Yt($e)&&!rn(De,$e);){var zt=$e[O];if(zt){Ee=zt===F;break}De.push($e),$e=Pt($e)}try{Ee&&(W[O]=ee),ee[c]=1}catch{ye[f]=!1}}}return ee}function Mr(W,O,P){var F=O[W];return F===P&&(F=Pt(O)[W]),typeof F!==i&&dt("["+W+"] is not a "+i),F}function Er(W,O,P,F,ee){function ye(De,zt){var fn=function(){var Xt=Dr(this,zt,De,fn)||Mr(zt,De,fn);return Xt.apply(this,arguments)};return fn[s]=1,fn}if(!Ot(W)){var Ee=P[a]=P[a]||{},$e=Ee[O]=Ee[O]||{};Ee[f]!==!1&&(Ee[f]=!!ee),Ae(P,function(De){Nn(P,De,!1)&&P[De]!==F[De]&&($e[De]=P[De],delete P[De],(!Ze(W,De)||W[De]&&!W[De][s])&&(W[De]=ye(W,De)))})}}function Dn(W,O){if(xe){for(var P=[],F=Pt(O);F&&!Yt(F)&&!rn(P,F);){if(F===W)return!0;P.push(F),F=Pt(F)}return!1}return!0}function Un(W,O){return Ze(W,r)?W.name||O||b:((W||{})[n]||{}).name||O||b}function An(W,O,P,F){Ze(W,r)||dt("theClass is an invalid class definition.");var ee=W[r];Dn(ee,O)||dt("["+Un(W)+"] not in hierarchy of ["+Un(O)+"]");var ye=null;Ze(ee,u)?ye=ee[u]:(ye=l+Un(W,"_")+"$"+we.n,we.n++,ee[u]=ye);var Ee=An[v],$e=!!Ee[se];$e&&F&&F[se]!==void 0&&($e=!!F[se]);var De=ui(O),zt=pr(ee,O,De,$e);P(O,zt);var fn=!!xe&&!!Ee[ce];fn&&F&&(fn=!!F[ce]),Er(ee,ye,O,De,fn!==!1)}return An[v]=we.o,An})});var Lh=_((yp,Ix)=>{(function(e,t){typeof yp=="object"&&typeof Ix<"u"?t(yp,wh(),Ax(),Mh()):typeof define=="function"&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/applicationinsights-core-js","@microsoft/dynamicproto-js"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.oneDS=e.oneDS||{},e.applicationinsightsShims,e.applicationinsightsCoreJs,e.dynamicProto))})(yp,function(e,t,n,r){"use strict";function i(U){return U&&typeof U=="object"&&"default"in U?U.default:U}var a=i(r),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}),u=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}),c=n.createEnumStyle({Normal:1,Critical:2}),f=n.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),v=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}))),b="",T="https://browser.events.data.microsoft.com/OneCollector/1.0/",x="version",M="properties",N,se="3.2.9",ce="1DS-Web-JS-"+se,be="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",xe="withCredentials",ut="timeout",$t=(N={},N[0]=0,N[2]=6,N[1]=1,N[3]=7,N[4098]=6,N[4097]=1,N[4099]=7,N),It=null,we=!!n.getDocument(),Ze=!!n.getWindow();function Ot(U){return!(U===b||n.isNullOrUndefined(U))}function Yt(U){if(U){var w=U.indexOf("-");if(w>-1)return U.substring(0,w)}return b}function Pt(){return It===null&&(It=!n.isUndefined(Uint8Array)&&!O()&&!n.isReactNative()),It}function Ae(U){return!!(U&&n.isNumber(U)&&U>=1&&U<=4)}function Nn(U,w,Q){if(!w&&!Ot(w)||typeof U!="string")return null;var Z=typeof w;if(Z==="string"||Z==="number"||Z==="boolean"||n.isArray(w))w={value:w};else if(Z==="object"&&!t.ObjHasOwnProperty.call(w,"value"))w={value:Q?JSON.stringify(w):w};else if(n.isNullOrUndefined(w.value)||w.value===b||!n.isString(w.value)&&!n.isNumber(w.value)&&!n.isBoolean(w.value)&&!n.isArray(w.value))return null;if(n.isArray(w.value)&&!P(w.value))return null;if(!n.isNullOrUndefined(w.kind)){if(n.isArray(w.value)||!An(w.kind))return null;w.value=w.value.toString()}return w}function dt(U,w,Q){var Z=-1;if(!n.isUndefined(U))if(w>0&&(w===32?Z=8192:w<=13&&(Z=w<<5)),W(Q))Z===-1&&(Z=0),Z|=Q;else{var Oe=$t[ee(U)]||-1;Z!==-1&&Oe!==-1?Z|=Oe:Oe===6&&(Z=Oe)}return Z}function ui(){n.safeGetCookieMgr(null).setEnabled(!1)}function rn(U,w,Q){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).set(U,w,Q*86400,null,"/")}function pr(U){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).del(U)}function Dr(U){return n.areCookiesSupported(null)?Mr(n.safeGetCookieMgr(null),U):b}function Mr(U,w,Q){Q===void 0&&(Q=!0);var Z;return U&&(Z=U.get(w),Q&&Z&&decodeURIComponent&&(Z=decodeURIComponent(Z))),Z||b}function Er(U){U===void 0&&(U="D");var w=n.newGuid();return U==="B"?w="{"+w+"}":U==="P"?w="("+w+")":U==="N"&&(w=w.replace(/-/g,b)),w}function Dn(U,w,Q,Z,Oe){var fe={},ge=!1,Te=0,Je=arguments.length,Ue=Object[t.strShimPrototype],de=arguments;for(Ue.toString.call(de[0])==="[object Boolean]"&&(ge=de[0],Te++);Te<Je;Te++){var U=de[Te];n.objForEachKey(U,function(pe,V){ge&&V&&n.isObject(V)?n.isArray(V)?(fe[pe]=fe[pe]||[],n.arrForEach(V,function(ve,Fe){ve&&n.isObject(ve)?fe[pe][Fe]=Dn(!0,fe[pe][Fe],ve):fe[pe][Fe]=ve})):fe[pe]=Dn(!0,fe[pe],V):fe[pe]=V})}return fe}var Un=n.perfNow;function An(U){return U===0||U>0&&U<=13||U===32}function W(U){return U>=0&&U<=9}function O(){var U=n.getNavigator();if(!n.isUndefined(U)&&U.userAgent){var w=U.userAgent.toLowerCase();if((w.indexOf("safari")>=0||w.indexOf("firefox")>=0)&&w.indexOf("chrome")<0)return!0}return!1}function P(U){return U.length>0}function F(U,w){var Q=U;Q.timings=Q.timings||{},Q.timings.processTelemetryStart=Q.timings.processTelemetryStart||{},Q.timings.processTelemetryStart[w]=Un()}function ee(U){var w=0;if(U!=null){var Q=typeof U;Q==="string"?w=1:Q==="number"?w=2:Q==="boolean"?w=3:Q===t.strShimObject&&(w=4,n.isArray(U)?(w=4096,U.length>0&&(w|=ee(U[0]))):t.ObjHasOwnProperty.call(U,"value")&&(w=8192|ee(U.value)))}return w}var ye={Version:se,FullVersionString:ce,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:we,isWindowObjectAvailable:Ze,isValueAssigned:Ot,getTenantId:Yt,isBeaconsSupported:n.isBeaconsSupported,isUint8ArrayAvailable:Pt,isLatency:Ae,sanitizeProperty:Nn,getISOString:n.toISOString,useXDomainRequest:n.useXDomainRequest,getCommonSchemaMetaData:dt,cookieAvailable:n.areCookiesSupported,disallowsSameSiteNone:n.uaDisallowsSameSiteNone,setCookie:rn,deleteCookie:pr,getCookie:Dr,createGuid:Er,extend:Dn,getTime:Un,isValueKind:An,isArrayValid:P,objDefineAccessors:n.objDefineAccessors,addPageUnloadEventListener:n.addPageUnloadEventListener,setProcessTelemetryTimings:F,addEventHandler:n.addEventHandler,getFieldValueType:ee,strEndsWith:n.strEndsWith,objForEachKey:n.objForEachKey},Ee={_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:ui,newGuid:n.newGuid,perfNow:n.perfNow,newId:n.newId,randomValue:n.randomValue,random32:n.random32,mwcRandomSeed:n.mwcRandomSeed,mwcRandom32:n.mwcRandom32,generateW3CId:n.generateW3CId};function $e(){return!!n.getGlobalInst("chrome")}function De(U,w,Q,Z,Oe,fe){Z===void 0&&(Z=!1),Oe===void 0&&(Oe=!1);function ge(Je,Ue,de){try{Je[Ue]=de}catch{}}var Te=new XMLHttpRequest;return Z&&ge(Te,be,Z),Q&&ge(Te,xe,Q),Te.open(U,w,!Oe),Q&&ge(Te,xe,Q),!Oe&&fe&&ge(Te,ut,fe),Te}var zt=function(U){t.__extendsFn(w,U);function w(){var Q=U.call(this)||this;return Q.pluginVersionStringArr=[],a(w,Q,function(Z,Oe){(!Z.logger||!Z.logger.queue)&&(Z.logger=new n.DiagnosticLogger({loggingLevelConsole:1})),Z.initialize=function(fe,ge,Te,Je){n.doPerf(Z,function(){return"AppInsightsCore.initialize"},function(){var Ue=Z.pluginVersionStringArr;if(fe){fe.endpointUrl||(fe.endpointUrl=T);var de=fe.propertyStorageOverride;de&&(!de.getProperty||!de.setProperty)&&n.throwError("Invalid property storage override passed."),fe.channels&&n.arrForEach(fe.channels,function(V){V&&n.arrForEach(V,function(ve){if(ve.identifier&&ve.version){var Fe=ve.identifier+"="+ve.version;Ue.push(Fe)}})})}Z.getWParam=function(){return typeof document<"u"||fe.enableWParam?0:-1},ge&&n.arrForEach(ge,function(V){if(V&&V.identifier&&V.version){var ve=V.identifier+"="+V.version;Ue.push(ve)}}),Z.pluginVersionString=Ue.join(";"),Z.pluginVersionStringArr=Ue;try{Oe.initialize(fe,ge,Te,Je),Z.pollInternalLogs("InternalLog")}catch(V){var Ne=Z.logger,pe=n.dumpObj(V);pe.indexOf("channels")!==-1&&(pe+=`
- Channels must be provided through config.channels only!`),n._throwInternal(Ne,1,514,"SDK Initialization Failed - no telemetry will be sent: "+pe)}},function(){return{config:fe,extensions:ge,logger:Te,notificationManager:Je}})},Z.track=function(fe){n.doPerf(Z,function(){return"AppInsightsCore.track"},function(){var ge=fe;if(ge){ge.timings=ge.timings||{},ge.timings.trackStart=Un(),Ae(ge.latency)||(ge.latency=1);var Te=ge.ext=ge.ext||{};Te.sdk=Te.sdk||{},Te.sdk.ver=ce;var Je=ge.baseData=ge.baseData||{};Je[M]=Je[M]||{};var Ue=Je[M];Ue[x]=Ue[x]||Z.pluginVersionString||b}Oe.track(ge)},function(){return{item:fe}},!fe.sync)}}),Q}return w.__ieDyn=1,w}(n.AppInsightsCore),fn=function(U){t.__extendsFn(w,U);function w(){var Q=U.call(this)||this;return a(w,Q,function(Z,Oe){Z.initialize=function(fe,ge,Te,Je){fe&&!fe.endpointUrl&&(fe.endpointUrl=T),Z.getWParam=function(){return we||fe.enableWParam?0:-1};try{Oe.initialize(fe,ge,Te,Je)}catch(Ue){n._throwInternal(Z.logger,1,514,"Initialization Failed: "+n.dumpObj(Ue)+`
- Note: Channels must be provided through config.channels only`)}},Z.track=function(fe){var ge=fe;if(ge){var Te=ge.ext=ge.ext||{};Te.sdk=Te.sdk||{},Te.sdk.ver=ce}Oe.track(ge)}}),Q}return w.__ieDyn=1,w}(n.BaseCore),Xt=n.isFunction;function Fn(U,w,Q){return function(Z){U[w]=Z,Q()}}var Hn=function(){function U(w){var Q=0,Z=null,Oe=[];a(U,this,function(Ue){Ue.then=function(de,Ne){return new U(function(pe,V){fe(de,Ne,pe,V)})},Ue.catch=function(de){return Ue.then(null,de)}});function fe(Ue,de,Ne,pe){Oe.push(function(){var V;try{Q===1?V=Xt(Ue)?Ue(Z):Z:V=Xt(de)?de(Z):Z,V instanceof U?V.then(Ne,pe):Q===2&&!Xt(de)?pe(V):Ne(V)}catch(ve){pe(ve);return}}),Q!==0&&ge()}function ge(){if(Oe.length>0){var Ue=Oe.slice();Oe=[],setTimeout(function(){for(var de=0,Ne=Ue.length;de<Ne;++de)try{Ue[de]()}catch{}},0)}}function Te(Ue){Q===0&&(Z=Ue,Q=1,ge())}function Je(Ue){Q===0&&(Z=Ue,Q=2,ge())}(function(){if(!Xt(w))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{w(Te,Je)}catch(de){Je(de)}})()}return U.resolve=function(w){return w instanceof U?w:w&&Xt(w.then)?new U(function(Q,Z){try{w.then(Q,Z)}catch(Oe){Z(Oe)}}):new U(function(Q){Q(w)})},U.reject=function(w){return new U(function(Q,Z){Z(w)})},U.all=function(w){if(!(!w||!w.length))return new U(function(Q,Z){try{for(var Oe=[],fe=0,ge=0;ge<w.length;ge++){var Te=w[ge];Te&&Xt(Te.then)?(fe++,Te.then(Fn(Oe,ge,function(){--fe===0&&Q(Oe)}),Z)):Oe[ge]=Te}fe===0&&setTimeout(function(){Q(Oe)},0)}catch(Je){Z(Je)}})},U.race=function(w){return new U(function(Q,Z){if(!(!w||!w.length))try{for(var Oe=function(ge){var Te=w[ge];Te&&Xt(Te.then)?Te.then(Q,Z):setTimeout(function(){Q(Te)},0)},fe=0;fe<w.length;fe++)Oe(fe)}catch(ge){Z(ge)}})},U}(),Ki=6e5,li=0,dr=[],In=[],Tr=[];function Mn(){return new Date().getTime()}var _o=function(){function U(w,Q){var Z=0,Oe=(w||"<unnamed>")+"."+li;li++,a(U,this,function(Te){var Je=null,Ue=0;Te.scheduleEvent=function(Ne,pe,V){var ve=Oe+"."+Ue;Ue++,pe&&(ve+="-("+pe+")");var Fe=ve+"{"+Z+"}";Z++;var Gt={evt:null,tm:Mn(),id:Fe,isRunning:!1,isAborted:!1};return Je?Gt.evt=Wi(Gt,Je):Gt.evt=fr(Gt),Je=Gt,Je.evt._schId=Fe,Gt.evt;function Zn(L){for(var Y=Mn(),ue=Y-Ki,B=L.length,_e=0;_e<B;){var Ie=L[_e];if(Ie&&Ie.tm<ue){var oe=null;Ie.abort?(oe="Aborting ["+Ie.id+"] due to Excessive runtime ("+(Y-Ie.tm)+" ms)",Ie.abort(oe)):oe="Removing ["+Ie.id+"] due to Excessive runtime ("+(Y-Ie.tm)+" ms)",ge(oe),L.splice(_e,1),B--}else _e++}}function Bn(L,Y){var ue=!1,B=de(dr,L);if(B||(B=de(Tr,L),ue=!0),B){B.to&&(clearTimeout(B.to),B.to=null);var _e=Mn()-B.tm;Y?ue?ge("Timed out event ["+L+"] finally complete -- "+_e+" ms"):fe("Promise ["+L+"] Complete -- "+_e+" ms"):(Tr.push(B),ge("Event ["+L+"] Timed out and removed -- "+_e+" ms"))}else fe("Failed to remove ["+L+"] from running queue");Je&&Je.id===L&&(Je=null),Zn(dr),Zn(In),Zn(Tr)}function Lr(L,Y){return function(ue){return Bn(L,!0),Y&&Y(ue),ue}}function En(L,Y,ue,B){Y.then(function(_e){return _e instanceof Hn?(fe("Event ["+L+"] returned a promise -- waiting"),En(L,_e,ue,B),_e):Lr(L,ue)(_e)},Lr(L,B))}function Jn(L,Y){var ue=L.id;return new Hn(function(B,_e){fe("Event ["+ue+"] Starting -- waited for "+(L.wTm||"--")+" ms"),L.isRunning=!0,L.abort=function(oe){L.abort=null,L.isAborted=!0,Bn(ue,!1),_e(new Error(oe))};var Ie=Y(ue);Ie instanceof Hn?(V&&(L.to=setTimeout(function(){Bn(ue,!1),_e(new Error("Timed out after ["+V+"] ms"))},V)),En(ue,Ie,function(oe){fe("Event ["+ue+"] Resolving after "+(Mn()-L.tm)+" ms"),B(oe)},_e)):(fe("Promise ["+ue+"] Auto completed as the start action did not return a promise"),B())})}function fr(L){var Y=Mn();return L.wTm=Y-L.tm,L.tm=Y,L.isAborted?Hn.reject(new Error("["+ve+"] was aborted")):(dr.push(L),Jn(L,Ne))}function Wi(L,Y){var ue=new Hn(function(B,_e){var Ie=Mn()-Y.tm,oe=Y.id;fe("["+ve+"] is waiting for ["+oe+":"+Ie+" ms] to complete before starting -- ["+In.length+"] waiting and ["+dr.length+"] running"),L.abort=function(st){L.abort=null,de(In,ve),L.isAborted=!0,_e(new Error(st))},Y.evt.then(function(st){de(In,ve),fr(L).then(B,_e)},function(st){de(In,ve),fr(L).then(B,_e)})});return In.push(L),ue}};function de(Ne,pe){for(var V=0;V<Ne.length;V++)if(Ne[V].id===pe)return Ne.splice(V,1)[0];return null}});function fe(Te){var Je=n.getGlobal();Je&&Je.QUnit&&console&&console.log("ESPromiseScheduler["+Oe+"] "+Te)}function ge(Te){n._warnToConsole(Q,"ESPromiseScheduler["+Oe+"] "+Te)}}return U.incomplete=function(){return dr},U.waitingToStart=function(){return In},U}(),ga=function(){function U(w){var Q=this,Z={},Oe=[],fe=[];w&&fe.push(w);function ge(de,Ne){var pe,V=Z[de];if(V&&(pe=V[Ne]),!pe&&pe!==null){if(n.isString(de)&&n.isString(Ne))if(fe.length>0){for(var ve=0;ve<fe.length;ve++)if(fe[ve].handleField(de,Ne)){pe={canHandle:!0,fieldHandler:fe[ve]};break}}else Oe.length===0&&(pe={canHandle:!0});if(!pe&&pe!==null){pe=null;for(var ve=0;ve<Oe.length;ve++)if(Oe[ve].handleField(de,Ne)){pe={canHandle:!0,handler:Oe[ve],fieldHandler:null};break}}V||(V=Z[de]={}),V[Ne]=pe}return pe}Q.addSanitizer=function(de){de&&(Oe.push(de),Z={})},Q.addFieldSanitizer=function(de){de&&(fe.push(de),Z={})},Q.handleField=function(de,Ne){var pe=ge(de,Ne);return pe?pe.canHandle:!1},Q.value=function(de,Ne,pe,V){var ve=ge(de,Ne);if(ve&&ve.canHandle){if(!ve||!ve.canHandle)return null;if(ve.handler)return ve.handler.value(de,Ne,pe,V);if(!n.isString(Ne)||n.isNullOrUndefined(pe)||pe===b)return null;var Fe=null,Gt=ee(pe);if((Gt&8192)===8192){var Zn=Gt&-8193;if(Fe=pe,!Ot(Fe.value)||Zn!==1&&Zn!==2&&Zn!==3&&(Zn&4096)!==4096)return null}else Gt===1||Gt===2||Gt===3||(Gt&4096)===4096?Fe=Je(de,Ne,pe):Gt===4&&(Fe=Je(de,Ne,V?JSON.stringify(pe):pe));if(Fe)return Te(ve,de,Ne,Gt,Fe,V)}return null},Q.property=function(de,Ne,pe,V){var ve=ge(de,Ne);if(!ve||!ve.canHandle||!n.isString(Ne)||n.isNullOrUndefined(pe)||!Ot(pe.value))return null;var Fe=ee(pe.value);return Fe===0?null:Te(ve,de,Ne,Fe,pe,V)};function Te(de,Ne,pe,V,ve,Fe){if(de.handler)return de.handler.property(Ne,pe,ve,Fe);if(!n.isNullOrUndefined(ve.kind)){if((V&4096)===4096||!An(ve.kind))return null;ve.value=ve.value.toString()}return Ue(de.fieldHandler,Ne,pe,V,ve)}function Je(de,Ne,pe){return Ot(pe)?{value:pe}:null}function Ue(de,Ne,pe,V,ve){if(ve&&de){var Fe=de.getSanitizer(Ne,pe,V,ve.kind,ve.propertyType);if(Fe)if(V===4){var Gt={},Zn=ve.value;n.objForEachKey(Zn,function(Lr,En){var Jn=Ne+"."+pe;if(Ot(En)){var fr=Je(Jn,Lr,En);fr=Ue(de,Jn,Lr,ee(En),fr),fr&&(Gt[Lr]=fr.value)}}),ve.value=Gt}else{var Bn={path:Ne,name:pe,type:V,prop:ve,sanitizer:Q};ve=Fe.call(Q,Bn)}}return ve}}return U.getFieldType=ee,U}();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._logInternalMessage=n._logInternalMessage,e._throwInternal=n._throwInternal,e._warnToConsole=n._warnToConsole,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=zt,e.BaseCore=fn,e.CoreUtils=Ee,e.ESPromise=Hn,e.ESPromiseScheduler=_o,e.EventLatency=u,e.EventPersistence=c,e.EventPropertyType=l,e.FullVersionString=ce,e.TraceLevel=f,e.Utils=ye,e.ValueKind=s,e.ValueSanitizer=ga,e.Version=se,e._ExtendedInternalMessageId=v,e.createGuid=Er,e.deleteCookie=pr,e.disableCookies=ui,e.extend=Dn,e.getCommonSchemaMetaData=dt,e.getCookie=Dr,e.getCookieValue=Mr,e.getFieldValueType=ee,e.getTenantId=Yt,e.getTime=Un,e.isArrayValid=P,e.isChromium=$e,e.isDocumentObjectAvailable=we,e.isLatency=Ae,e.isUint8ArrayAvailable=Pt,e.isValueAssigned=Ot,e.isValueKind=An,e.isWindowObjectAvailable=Ze,e.openXhr=De,e.sanitizeProperty=Nn,e.setCookie=rn,e.setProcessTelemetryTimings=F,function(U,w,Q){var Z=Object.defineProperty;if(Z)try{return Z(U,w,Q)}catch{}return Q&&typeof Q.value!==void 0&&(U[w]=Q.value),U}(e,"__esModule",{value:!0})})});var Px=_((Ep,Ox)=>{(function(e,t){typeof Ep=="object"&&typeof Ox<"u"?t(Ep,wh(),Mh(),Lh()):typeof define=="function"&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/dynamicproto-js","@microsoft/1ds-core-js"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.oneDS=e.oneDS||{},e.applicationinsightsShims,e.dynamicProto,e._1dsCoreJs))})(Ep,function(e,t,n,r){"use strict";function i(L){return L&&typeof L=="object"&&"default"in L?L.default:L}var a=i(n),s="REAL_TIME",u="NEAR_REAL_TIME",l="BEST_EFFORT",c="",f="POST",v="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",b="drop",T="send",x="requeue",M="rspFail",N="oth",se="no-cache, no-store",ce="application/x-json-stream",be="cache-control",xe="content-type",ut="kill-tokens",$t="kill-duration",It="kill-duration-seconds",we="time-delta-millis",Ze="client-version",Ot="client-id",Yt="time-delta-to-apply-millis",Pt="upload-time",Ae="apikey",Nn="AuthMsaDeviceTicket",dt="AuthXToken",ui="NoResponseBody",rn="msfpc",pr="trace",Dr="user";function Mr(L){var Y=(L.ext||{}).intweb;return Y&&r.isValueAssigned(Y[rn])?Y[rn]:null}function Er(L){for(var Y=null,ue=0;Y===null&&ue<L.length;ue++)Y=Mr(L[ue]);return Y}var Dn=function(){function L(Y,ue){var B=ue?[].concat(ue):[],_e=this,Ie=Er(B);_e.iKey=function(){return Y},_e.Msfpc=function(){return Ie||c},_e.count=function(){return B.length},_e.events=function(){return B},_e.addEvent=function(oe){return oe?(B.push(oe),Ie||(Ie=Mr(oe)),!0):!1},_e.split=function(oe,st){var _t;if(oe<B.length){var Ct=B.length-oe;r.isNullOrUndefined(st)||(Ct=st<Ct?st:Ct),_t=B.splice(oe,Ct),Ie=Er(B)}return new L(Y,_t)}}return L.create=function(Y,ue){return new L(Y,ue)},L}(),Un=function(){function L(){var Y=!0,ue=!0,B=!0,_e="use-collector-delta",Ie=!1;a(L,this,function(oe){oe.allowRequestSending=function(){return Y},oe.firstRequestSent=function(){B&&(B=!1,Ie||(Y=!1))},oe.shouldAddClockSkewHeaders=function(){return ue},oe.getClockSkewHeaderValue=function(){return _e},oe.setClockSkew=function(st){Ie||(st?(_e=st,ue=!0,Ie=!0):ue=!1,Y=!0)}})}return L.__ieDyn=1,L}(),An=1e3,W=function(){function L(){var Y={};function ue(B){var _e=[];return B&&r.arrForEach(B,function(Ie){_e.push(r.strTrim(Ie))}),_e}a(L,this,function(B){B.setKillSwitchTenants=function(_e,Ie){if(_e&&Ie)try{var oe=ue(_e.split(","));if(Ie==="this-request-only")return oe;for(var st=parseInt(Ie,10)*An,_t=0;_t<oe.length;++_t)Y[oe[_t]]=r.dateNow()+st}catch{return[]}return[]},B.isTenantKilled=function(_e){var Ie=Y,oe=r.strTrim(_e);return Ie[oe]!==void 0&&Ie[oe]>r.dateNow()?!0:(delete Ie[oe],!1)}})}return L.__ieDyn=1,L}(),O=.8,P=1.2,F=3e3,ee=6e5;function ye(L){return!(L>=300&&L<500&&L!=408&&L!=429||L==501||L==505)}function Ee(L){var Y=0,ue=F*O,B=F*P,_e=Math.floor(Math.random()*(B-ue))+ue;return Y=Math.pow(2,L)*_e,Math.min(Y,ee)}var $e=20,De=3984588,zt=65e3,fn=2e6,Xt=Math.min(fn,zt),Fn="metadata",Hn="f",Ki=/\./,li=function(){function L(Y,ue,B,_e){var Ie="data",oe="baseData",st="ext",_t=!!_e,Ct=!0,mn=ue,Ln={};a(L,this,function(Qt){Qt.createPayload=function(Pe,Ke,mt,an,je,ft){return{apiKeys:[],payloadBlob:c,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:Pe,isTeardown:Ke,isSync:mt,isBeacon:an,sendType:ft,sendReason:je}},Qt.appendPayload=function(Pe,Ke,mt){var an=Pe&&Ke&&!Pe.overflow;return an&&r.doPerf(Y,function(){return"Serializer:appendPayload"},function(){for(var je=Ke.events(),ft=Pe.payloadBlob,Mt=Pe.numEvents,Ft=!1,ot=[],sn=[],Pn=Pe.isBeacon,Rt=Pn?zt:De,vn=Pn?Xt:fn,hn=0,on=0;hn<je.length;){var ze=je[hn];if(ze){if(Mt>=mt){Pe.overflow=Ke.split(hn);break}var Me=Qt.getEventBlob(ze);if(Me&&Me.length<=vn){var _n=Me.length,Ai=ft.length;if(Ai+_n>Rt){Pe.overflow=Ke.split(hn);break}ft&&(ft+=`
`),ft+=Me,on++,on>$e&&(ft.substr(0,1),on=0),Ft=!0,Mt++}else Me?ot.push(ze):sn.push(ze),je.splice(hn,1),hn--}hn++}if(ot&&ot.length>0&&Pe.sizeExceed.push(Dn.create(Ke.iKey(),ot)),sn&&sn.length>0&&Pe.failedEvts.push(Dn.create(Ke.iKey(),sn)),Ft){Pe.batches.push(Ke),Pe.payloadBlob=ft,Pe.numEvents=Mt;var Sr=Ke.iKey();r.arrIndexOf(Pe.apiKeys,Sr)===-1&&Pe.apiKeys.push(Sr)}},function(){return{payload:Pe,theBatch:{iKey:Ke.iKey(),evts:Ke.events()},max:mt}}),an},Qt.getEventBlob=function(Pe){try{return r.doPerf(Y,function(){return"Serializer.getEventBlob"},function(){var Ke={};Ke.name=Pe.name,Ke.time=Pe.time,Ke.ver=Pe.ver,Ke.iKey="o:"+r.getTenantId(Pe.iKey);var mt={},an=Pe[st];an&&(Ke[st]=mt,r.objForEachKey(an,function(Mt,Ft){var ot=mt[Mt]={};xt(Ft,ot,"ext."+Mt,!0,null,null,!0)}));var je=Ke[Ie]={};je.baseType=Pe.baseType;var ft=je[oe]={};return xt(Pe.baseData,ft,oe,!1,[oe],function(Mt,Ft,ot){dr(mt,Mt,Ft,ot)},Ct),xt(Pe.data,je,Ie,!1,[],function(Mt,Ft,ot){dr(mt,Mt,Ft,ot)},Ct),JSON.stringify(Ke)},function(){return{item:Pe}})}catch{return null}};function On(Pe,Ke){var mt=Ln[Pe];return mt===void 0&&(Pe.length>=7&&(mt=r.strStartsWith(Pe,"ext.metadata")||r.strStartsWith(Pe,"ext.web")),Ln[Pe]=mt),mt}function xt(Pe,Ke,mt,an,je,ft,Mt){r.objForEachKey(Pe,function(Ft,ot){var sn=null;if(ot||r.isValueAssigned(ot)){var Pn=mt,Rt=Ft,vn=je,hn=Ke;if(_t&&!an&&Ki.test(Ft)){var on=Ft.split("."),ze=on.length;if(ze>1){vn&&(vn=vn.slice());for(var Me=0;Me<ze-1;Me++){var _n=on[Me];hn=hn[_n]=hn[_n]||{},Pn+="."+_n,vn&&vn.push(_n)}Rt=on[ze-1]}}var Ai=an&&On(Pn);if(!Ai&&mn&&mn.handleField(Pn,Rt)?sn=mn.value(Pn,Rt,ot,B):sn=r.sanitizeProperty(Rt,ot,B),sn){var Sr=sn.value;if(hn[Rt]=Sr,ft&&ft(vn,Rt,sn),Mt&&typeof Sr=="object"&&!r.isArray(Sr)){var Vr=vn;Vr&&(Vr=Vr.slice(),Vr.push(Rt)),xt(ot,Sr,Pn+"."+Rt,an,Vr,ft,Mt)}}}})}})}return L.__ieDyn=1,L}();function dr(L,Y,ue,B){if(B&&L){var _e=r.getCommonSchemaMetaData(B.value,B.kind,B.propertyType);if(_e>-1){var Ie=L[Fn];Ie||(Ie=L[Fn]={f:{}});var oe=Ie[Hn];if(oe||(oe=Ie[Hn]={}),Y)for(var st=0;st<Y.length;st++){var _t=Y[st];oe[_t]||(oe[_t]={f:{}});var Ct=oe[_t][Hn];Ct||(Ct=oe[_t][Hn]={}),oe=Ct}oe=oe[ue]={},r.isArray(B.value)?oe.a={t:_e}:oe.t=_e}}}var In,Tr="sendAttempt",Mn="&"+ui+"=true",_o=(In={},In[1]=x,In[100]=x,In[200]="sent",In[8004]=b,In[8003]=b,In),ga={},U={};function w(L,Y,ue){ga[L]=Y,ue!==!1&&(U[Y]=L)}w(Nn,Nn,!1),w(Ze,Ze),w(Ot,"Client-Id"),w(Ae,Ae),w(Yt,Yt),w(Pt,Pt),w(dt,dt);function Q(L){try{return L.responseText}catch{}return c}function Z(L,Y){var ue=!1;if(L&&Y){var B=r.objKeys(L);if(B&&B.length>0)for(var _e=Y.toLowerCase(),Ie=0;Ie<B.length;Ie++){var oe=B[Ie];if(oe&&r.hasOwnProperty(Y,oe)&&oe.toLowerCase()===_e){ue=!0;break}}}return ue}function Oe(L,Y,ue,B){Y&&ue&&ue.length>0&&(B&&ga[Y]?(L.hdrs[ga[Y]]=ue,L.useHdrs=!0):L.url+="&"+Y+"="+ue)}function fe(L,Y){return Y&&(r.isNumber(Y)?L=[Y].concat(L):r.isArray(Y)&&(L=Y.concat(L))),L}var ge=function(){function L(Y,ue,B,_e,Ie){this._responseHandlers=[];var oe="?cors=true&"+xe.toLowerCase()+"="+ce,st=new W,_t=!1,Ct=new Un,mn=!1,Ln=0,Qt,On,xt,Pe,Ke=!0,mt=[],an={},je=[],ft=null,Mt=!1,Ft,ot=!1,sn=!1,Pn,Rt,vn,hn,on;a(L,this,function(ze){var Me=!0;ze.initialize=function(E,H,K,q,ae){var Ge;ae||(ae={}),oe=E+oe,sn=r.isUndefined(ae.avoidOptions)?!0:!ae.avoidOptions,Pe=H,Ft=H.getCookieMgr(),Mt=!Pe.config.disableEventTimings;var Le=!!Pe.config.enableCompoundKey;Qt=K,On=Qt.diagLog();var y=ae.valueSanitizer,R=ae.stringifyObjects;r.isUndefined(ae.enableCompoundKey)||(Le=!!ae.enableCompoundKey),Pn=ae.xhrTimeout,Rt=!!ae.disableXhrSync,vn=!!ae.disableFetchKeepAlive,on=ae.addNoResponse!==!1,mn=!r.isReactNative(),ft=new li(Pe,y,R,Le),r.isNullOrUndefined(ae.useSendBeacon)||(mn=!!ae.useSendBeacon);var C=q,X=ae.alwaysUseXhrOverride?q:null,le=ae.alwaysUseXhrOverride?q:null,Ce=[3,2];if(!q){Ke=!1;var et=r.getLocation();et&&et.protocol&&et.protocol.toLowerCase()==="file:"&&(Me=!1);var tt=[];r.isReactNative()?(tt=[2,1],Ce=[2,1,3]):tt=[1,2,3],tt=fe(tt,ae.transports),q=_n(tt,!1),q||r._warnToConsole(On,"No available transport to send events"),C=_n(tt,!0)}X||(Ce=fe(Ce,ae.unloadTransports),X=_n(Ce,!0)),hn=!Ke&&(mn&&r.isBeaconsSupported()||!vn&&r.isFetchSupported(!0)),xt=(Ge={},Ge[0]=q,Ge[1]=C||_n([1,2,3],!0),Ge[2]=X||C||_n([1],!0),Ge[3]=le||_n([2,3],!0)||C||_n([1],!0),Ge)};function _n(E,H){for(var K=0,q=null,ae=0;q==null&&ae<E.length;)K=E[ae],K===1?r.useXDomainRequest()?q=Ai:r.isXhrSupported()&&(q=Vr):K===2&&r.isFetchSupported(H)&&(!H||H&&!vn)?q=Sr:mn&&K===3&&r.isBeaconsSupported()&&(q=$i),ae++;return q?{_transport:K,_isSync:H,sendPOST:q}:null}ze._getDbgPlgTargets=function(){return[xt[0],st,ft,xt]};function Ai(E,H,K){var q=new XDomainRequest;q.open(f,E.urlString),E.timeout&&(q.timeout=E.timeout),q.onload=function(){var ae=Q(q);ht(H,200,{},ae),Ea(ae)},q.onerror=function(){ht(H,400,{})},q.ontimeout=function(){ht(H,500,{})},q.onprogress=function(){},K?q.send(E.data):Ie.set(function(){q.send(E.data)},0)}function Sr(E,H,K){var q,ae=E.urlString,Ge=!1,Le=!1,y=(q={body:E.data,method:f},q[v]=!0,q);K&&(y.keepalive=!0,E._sendReason===2&&(Ge=!0,on&&(ae+=Mn))),Me&&(y.credentials="include"),E.headers&&r.objKeys(E.headers).length>0&&(y.headers=E.headers),fetch(ae,y).then(function(R){var C={},X=c,le=R.headers;le&&le.forEach(function(Ce,et){C[et]=Ce}),R.body&&R.text().then(function(Ce){X=Ce}),Le||(Le=!0,ht(H,R.status,C,X),Ea(X))}).catch(function(R){Le||(Le=!0,ht(H,0,{}))}),Ge&&!Le&&(Le=!0,ht(H,200,{})),!Le&&E.timeout>0&&Ie.set(function(){Le||(Le=!0,ht(H,500,{}))},E.timeout)}function Vr(E,H,K){var q=E.urlString;function ae(R,C,X){if(!R[X]&&C&&C.getResponseHeader){var le=C.getResponseHeader(X);le&&(R[X]=r.strTrim(le))}return R}function Ge(R){var C={};return R.getAllResponseHeaders?C=ds(R.getAllResponseHeaders()):(C=ae(C,R,we),C=ae(C,R,$t),C=ae(C,R,It)),C}function Le(R,C){ht(H,R.status,Ge(R),C)}K&&E.disableXhrSync&&(K=!1);var y=r.openXhr(f,q,Me,!0,K,E.timeout);r.objForEachKey(E.headers,function(R,C){y.setRequestHeader(R,C)}),y.onload=function(){var R=Q(y);Le(y,R),Ea(R)},y.onerror=function(){Le(y)},y.ontimeout=function(){Le(y)},y.send(E.data)}function ht(E,H,K,q){try{E(H,K,q)}catch(ae){r._throwInternal(On,2,518,r.dumpObj(ae))}}function $i(E,H,K){var q=E,ae=200,Ge=q._thePayload,Le=E.urlString+(on?Mn:c);try{var y=r.getNavigator();if(!y.sendBeacon(Le,E.data))if(Ge){var R=[];r.arrForEach(Ge.batches,function(C){if(R&&C&&C.count()>0){for(var X=C.events(),le=0;le<X.length;le++)if(!y.sendBeacon(Le,ft.getEventBlob(X[le]))){R.push(C.split(le));break}}else R.push(C.split(0))}),qn(R,8003,Ge.sendType,!0)}else ae=0}catch(C){r._warnToConsole(On,"Failed to send telemetry using sendBeacon API. Ex:"+r.dumpObj(C)),ae=0}finally{ht(H,ae,{},c)}}function Tt(E){return E===2||E===3}function Tn(E){return ot&&Tt(E)&&(E=2),E}ze.addQueryStringParameter=function(E,H){for(var K=0;K<mt.length;K++)if(mt[K].name===E){mt[K].value=H;return}mt.push({name:E,value:H})},ze.addHeader=function(E,H){an[E]=H},ze.canSendRequest=function(){return Ii()&&Ct.allowRequestSending()},ze.sendQueuedRequests=function(E,H){r.isUndefined(E)&&(E=0),ot&&(E=Tn(E),H=2),lt(je,E,0)&&zn(kn(),0,!1,E,H||0)},ze.isCompletelyIdle=function(){return!_t&&Ln===0&&je.length===0},ze.setUnloading=function(E){ot=E},ze.addBatch=function(E){if(E&&E.count()>0){if(st.isTenantKilled(E.iKey()))return!1;je.push(E)}return!0},ze.teardown=function(){je.length>0&&zn(kn(),0,!0,2,2)},ze.pause=function(){_t=!0},ze.resume=function(){_t=!1,ze.sendQueuedRequests(0,4)},ze.sendSynchronousBatch=function(E,H,K){E&&E.count()>0&&(r.isNullOrUndefined(H)&&(H=1),ot&&(H=Tn(H),K=2),zn([E],0,!1,H,K||0))};function Ii(){return!_t&&Ln<ue}function kn(){var E=je;return je=[],E}function lt(E,H,K){var q=!1;return E&&E.length>0&&!_t&&xt[H]&&ft&&(q=H!==0||Ii()&&(K>0||Ct.allowRequestSending())),q}function Kr(E){var H={};return E&&r.arrForEach(E,function(K,q){H[q]={iKey:K.iKey(),evts:K.events()}}),H}function zn(E,H,K,q,ae){if(!(!E||E.length===0)){if(_t){qn(E,1,q);return}q=Tn(q);try{var Ge=E,Le=q!==0;r.doPerf(Pe,function(){return"HttpManager:_sendBatches"},function(y){y&&(E=E.slice(0));for(var R=[],C=null,X=r.getTime(),le=xt[q]||(Le?xt[1]:xt[0]),Ce=le&&le._transport,et=hn&&(ot||Tt(q)||Ce===3||le._isSync&&Ce===2);lt(E,q,H);){var tt=E.shift();tt&&tt.count()>0&&(st.isTenantKilled(tt.iKey())?R.push(tt):(C=C||ft.createPayload(H,K,Le,et,ae,q),ft.appendPayload(C,tt,Y)?C.overflow!==null&&(E=[C.overflow].concat(E),C.overflow=null,ba(C,X,r.getTime(),ae),X=r.getTime(),C=null):(ba(C,X,r.getTime(),ae),X=r.getTime(),E=[tt].concat(E),C=null)))}C&&ba(C,X,r.getTime(),ae),E.length>0&&(je=E.concat(je)),qn(R,8004,q)},function(){return{batches:Kr(Ge),retryCount:H,isTeardown:K,isSynchronous:Le,sendReason:ae,useSendBeacon:Tt(q),sendType:q}},!Le)}catch(y){r._throwInternal(On,2,48,"Unexpected Exception sending batch: "+r.dumpObj(y))}}}function ls(E,H){var K={url:oe,hdrs:{},useHdrs:!1};H?(K.hdrs=r.extend(K.hdrs,an),K.useHdrs=r.objKeys(K.hdrs).length>0):r.objForEachKey(an,function(y,R){U[y]?Oe(K,U[y],R,!1):(K.hdrs[y]=R,K.useHdrs=!0)}),Oe(K,Ot,"NO_AUTH",H),Oe(K,Ze,r.FullVersionString,H);var q=c;r.arrForEach(E.apiKeys,function(y){q.length>0&&(q+=","),q+=y}),Oe(K,Ae,q,H),Oe(K,Pt,r.dateNow().toString(),H);var ae=kr(E);if(r.isValueAssigned(ae)&&(K.url+="&ext.intweb.msfpc="+ae),Ct.shouldAddClockSkewHeaders()&&Oe(K,Yt,Ct.getClockSkewHeaderValue(),H),Pe.getWParam){var Ge=Pe.getWParam();Ge>=0&&(K.url+="&w="+Ge)}for(var Le=0;Le<mt.length;Le++)K.url+="&"+mt[Le].name+"="+mt[Le].value;return K}function Yi(E,H,K){E[H]=E[H]||{},E[H][Qt.identifier]=K}function ba(E,H,K,q){if(E&&E.payloadBlob&&E.payloadBlob.length>0){var ae=!!ze.sendHook,Ge=xt[E.sendType];!Tt(E.sendType)&&E.isBeacon&&E.sendReason===2&&(Ge=xt[2]||xt[3]||Ge);var Le=sn;(E.isBeacon||Ge._transport===3)&&(Le=!1);var y=ls(E,Le);Le=Le||y.useHdrs;var R=r.getTime();r.doPerf(Pe,function(){return"HttpManager:_doPayloadSend"},function(){for(var C=0;C<E.batches.length;C++)for(var X=E.batches[C],le=X.events(),Ce=0;Ce<le.length;Ce++){var et=le[Ce];if(Mt){var tt=et.timings=et.timings||{};Yi(tt,"sendEventStart",R),Yi(tt,"serializationStart",H),Yi(tt,"serializationCompleted",K)}et[Tr]>0?et[Tr]++:et[Tr]=1}qn(E.batches,1e3+(q||0),E.sendType,!0);var kt={data:E.payloadBlob,urlString:y.url,headers:y.hdrs,_thePayload:E,_sendReason:q,timeout:Pn,disableXhrSync:Rt,disableFetchKeepAlive:vn};Le&&(Z(kt.headers,be)||(kt.headers[be]=se),Z(kt.headers,xe)||(kt.headers[xe]=ce));var qr=null;Ge&&(qr=function(Ta){Ct.firstRequestSent();var er=function(xr,Ov){cn(xr,Ov,E,q)},tr=E.isTeardown||E.isSync;try{Ge.sendPOST(Ta,er,tr),ze.sendListener&&ze.sendListener(kt,Ta,tr,E.isBeacon)}catch(xr){r._warnToConsole(On,"Unexpected exception sending payload. Ex:"+r.dumpObj(xr)),ht(er,0,{})}}),r.doPerf(Pe,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(qr)if(E.sendType===0&&Ln++,ae&&!E.isBeacon&&Ge._transport!==3){var Ta={data:kt.data,urlString:kt.urlString,headers:r.extend({},kt.headers),timeout:kt.timeout,disableXhrSync:kt.disableXhrSync,disableFetchKeepAlive:kt.disableFetchKeepAlive},er=!1;r.doPerf(Pe,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{ze.sendHook(Ta,function(tr){er=!0,!Ke&&!tr._thePayload&&(tr._thePayload=tr._thePayload||kt._thePayload,tr._sendReason=tr._sendReason||kt._sendReason),qr(tr)},E.isSync||E.isTeardown)}catch{er||qr(kt)}})}else qr(kt)})},function(){return{thePayload:E,serializationStart:H,serializationCompleted:K,sendReason:q}},E.isSync)}E.sizeExceed&&E.sizeExceed.length>0&&qn(E.sizeExceed,8003,E.sendType),E.failedEvts&&E.failedEvts.length>0&&qn(E.failedEvts,8002,E.sendType)}function Hc(E,H){Mt&&r.arrForEach(E,function(K){var q=K.timings=K.timings||{};Yi(q,"sendEventCompleted",H)})}function cn(E,H,K,q){var ae=9e3,Ge=null,Le=!1,y=!1;try{var R=!0;if(typeof E!==r.strUndefined){if(H){Ct.setClockSkew(H[we]);var C=H[$t]||H["kill-duration-seconds"];r.arrForEach(st.setKillSwitchTenants(H[ut],C),function(le){r.arrForEach(K.batches,function(Ce){if(Ce.iKey()===le){Ge=Ge||[];var et=Ce.split(0);K.numEvents-=et.count(),Ge.push(et)}})})}if(E==200||E==204){ae=200;return}(!ye(E)||K.numEvents<=0)&&(R=!1),ae=9e3+E%1e3}if(R){ae=100;var X=K.retryCnt;K.sendType===0&&(X<B?(Le=!0,ps(function(){K.sendType===0&&Ln--,zn(K.batches,X+1,K.isTeardown,ot?2:K.sendType,5)},ot,Ee(X))):(y=!0,ot&&(ae=8001)))}}finally{Le||(Ct.setClockSkew(),ya(K,ae,q,y)),qn(Ge,8004,K.sendType)}}function ya(E,H,K,q){try{q&&Qt._backOffTransmission(),H===200&&(!q&&!E.isSync&&Qt._clearBackOff(),Lt(E.batches)),qn(E.batches,H,E.sendType,!0)}finally{E.sendType===0&&(Ln--,K!==5&&ze.sendQueuedRequests(E.sendType,K))}}function Lt(E){if(Mt){var H=r.getTime();r.arrForEach(E,function(K){K&&K.count()>0&&Hc(K.events(),H)})}}function ps(E,H,K){H?E():Ie.set(E,K)}function ds(E){var H={};if(r.isString(E)){var K=r.strTrim(E).split(/[\r\n]+/);r.arrForEach(K,function(q){if(q){var ae=q.indexOf(": ");if(ae!==-1){var Ge=r.strTrim(q.substring(0,ae)).toLowerCase(),Le=r.strTrim(q.substring(ae+1));H[Ge]=Le}else H[r.strTrim(q)]=1}})}return H}function kr(E){for(var H=0;H<E.batches.length;H++){var K=E.batches[H].Msfpc();if(K)return encodeURIComponent(K)}return c}function Ea(E){var H=ze._responseHandlers;try{for(var K=0;K<H.length;K++)try{H[K](E)}catch(ae){r._throwInternal(On,1,519,"Response handler failed: "+ae)}if(E){var q=JSON.parse(E);r.isValueAssigned(q.webResult)&&r.isValueAssigned(q.webResult[rn])&&Ft.set("MSFPC",q.webResult[rn],365*86400)}}catch{}}function qn(E,H,K,q){if(E&&E.length>0&&_e){var ae=_e[fs(H)];if(ae){var Ge=K!==0;r.doPerf(Pe,function(){return"HttpManager:_sendBatchesNotification"},function(){ps(function(){try{ae.call(_e,E,H,Ge,K)}catch(Le){r._throwInternal(On,1,74,"send request notification failed: "+Le)}},q||Ge,0)},function(){return{batches:Kr(E),reason:H,isSync:Ge,sendSync:q,sendType:K}},!Ge)}}}function fs(E){var H=_o[E];return r.isValueAssigned(H)||(H=N,E>=9e3&&E<=9999?H=M:E>=8e3&&E<=8999?H=b:E>=1e3&&E<=1999&&(H=T)),H}})}return L.__ieDyn=1,L}();function Te(L,Y){for(var ue=[],B=2;B<arguments.length;B++)ue[B-2]=arguments[B];return setTimeout(L,Y,ue)}function Je(L){clearTimeout(L)}function Ue(L,Y){return{set:L||Te,clear:Y||Je}}var de=.25,Ne=500,pe=20,V=6,ve=2,Fe=4,Gt=2,Zn=1,Bn="eventsDiscarded",Lr="overrideInstrumentationKey",En="maxEventRetryAttempts",Jn="maxUnloadEventRetryAttempts",fr="addUnloadCb",Wi=function(L){t.__extendsFn(Y,L);function Y(){var ue=L.call(this)||this;ue.identifier="PostChannel",ue.priority=1011,ue.version="3.2.9";var B,_e=!1,Ie=[],oe=null,st=!1,_t=0,Ct=500,mn=0,Ln=1e4,Qt={},On=s,xt=null,Pe=null,Ke=0,mt=0,an,je,ft={},Mt,Ft,ot=-1,sn,Pn=!0,Rt=!1,vn=V,hn=ve,on,ze;return a(Y,ue,function(Me,_n){Ii(),Me._getDbgPlgTargets=function(){return[je]},Me.initialize=function(y,R,C){r.doPerf(R,function(){return"PostChannel:initialize"},function(){var X=R;_n.initialize(y,R,C);try{var le=!!R[fr];on=r.mergeEvtNamespace(r.createUniqueNamespace(Me.identifier),R.evtNamespace&&R.evtNamespace());var Ce=Me._getTelCtx();y.extensionConfig[Me.identifier]=y.extensionConfig[Me.identifier]||{},B=Ce.getExtCfg(Me.identifier),ze=Ue(B.setTimeoutOverride,B.clearTimeoutOverride),Pn=!B.disableOptimizeObj&&r.isChromium(),Ai(X),B.eventsLimitInMem>0&&(Ln=B.eventsLimitInMem),B.immediateEventLimit>0&&(Ct=B.immediateEventLimit),B.autoFlushEventsLimit>0&&(Mt=B.autoFlushEventsLimit),r.isNumber(B[En])&&(vn=B[En]),r.isNumber(B[Jn])&&(hn=B[Jn]),Le(),B.httpXHROverride&&B.httpXHROverride.sendPOST&&(an=B.httpXHROverride),r.isValueAssigned(y.anonCookieName)&&je.addQueryStringParameter("anoncknm",y.anonCookieName),je.sendHook=B.payloadPreprocessor,je.sendListener=B.payloadListener;var et=B.overrideEndpointUrl?B.overrideEndpointUrl:y.endpointUrl;Me._notificationManager=R.getNotifyMgr(),je.initialize(et,Me.core,Me,an,B);var tt=y.disablePageUnloadEvents||[];r.addPageUnloadEventListener(Sr,tt,on),r.addPageHideEventListener(Sr,tt,on),r.addPageShowEventListener(Vr,y.disablePageShowEvents,on)}catch(kt){throw Me.setInitialized(!1),kt}},function(){return{coreConfig:y,core:R,extensions:C}})},Me.processTelemetry=function(y,R){r.setProcessTelemetryTimings(y,Me.identifier),R=Me._getTelCtx(R);var C=R.getExtCfg(Me.identifier),X=!!B.disableTelemetry;C&&(X=X||!!C.disableTelemetry);var le=y;!X&&!_e&&(B[Lr]&&(le.iKey=B[Lr]),C&&C[Lr]&&(le.iKey=C[Lr]),ht(le,!0),Rt?Kr(2,2):Tn()),Me.processNext(le,R)},Me._doTeardown=function(y,R){Kr(2,2),_e=!0,je.teardown(),r.removePageUnloadEventListener(null,on),r.removePageHideEventListener(null,on),r.removePageShowEventListener(null,on),Ii()};function Ai(y){var R=y.getWParam;y.getWParam=function(){var C=0;return B.ignoreMc1Ms0CookieProcessing&&(C=C|2),C|R()}}function Sr(y){var R=y||r.getWindow().event;R.type!=="beforeunload"&&(Rt=!0,je.setUnloading(Rt)),Kr(2,2)}function Vr(y){Rt=!1,je.setUnloading(Rt)}function ht(y,R){if(y.sendAttempt||(y.sendAttempt=0),y.latency||(y.latency=1),y.ext&&y.ext[pr]&&delete y.ext[pr],y.ext&&y.ext[Dr]&&y.ext[Dr].id&&delete y.ext[Dr].id,Pn&&(y.ext=r.optimizeObject(y.ext),y.baseData&&(y.baseData=r.optimizeObject(y.baseData)),y.data&&(y.data=r.optimizeObject(y.data))),y.sync){if(Ke||st)y.latency=3,y.sync=!1;else if(je){Pn&&(y=r.optimizeObject(y)),je.sendSynchronousBatch(Dn.create(y.iKey,[y]),y.sync===!0?1:y.sync,3);return}}var C=y.latency,X=mn,le=Ln;C===4&&(X=_t,le=Ct);var Ce=!1;if(X<le)Ce=!ba(y,R);else{var et=1,tt=pe;C===4&&(et=4,tt=1),Ce=!0,Hc(y.iKey,y.latency,et,tt)&&(Ce=!ba(y,R))}Ce&&fs(Bn,[y],r.EventsDiscardedReason.QueueFull)}Me.setEventQueueLimits=function(y,R){Ln=y>0?y:1e4,Mt=R>0?R:0,Le();var C=mn>y;if(!C&&Ft>0)for(var X=1;!C&&X<=3;X++){var le=ft[X];le&&le.batches&&r.arrForEach(le.batches,function(Ce){Ce&&Ce.count()>=Ft&&(C=!0)})}Yi(!0,C)},Me.pause=function(){lt(),st=!0,je.pause()},Me.resume=function(){st=!1,je.resume(),Tn()},Me.addResponseHandler=function(y){je._responseHandlers.push(y)},Me._loadTransmitProfiles=function(y){ds(),r.objForEachKey(y,function(R,C){var X=C.length;if(X>=2){var le=X>2?C[2]:0;if(C.splice(0,X-2),C[1]<0&&(C[0]=-1),C[1]>0&&C[0]>0){var Ce=C[0]/C[1];C[0]=Math.ceil(Ce)*C[1]}le>=0&&C[1]>=0&&le>C[1]&&(le=C[1]),C.push(le),Qt[R]=C}})},Me.flush=function(y,R,C){if(y===void 0&&(y=!0),!st)if(C=C||1,y)oe==null?(lt(),ya(1,0,C),oe=kn(function(){oe=null,Lt(R,C)},0)):Ie.push(R);else{var X=lt();$i(1,1,C),R?.(),X&&Tn()}},Me.setMsaAuthTicket=function(y){je.addHeader(Nn,y)},Me.hasEvents=Tt,Me._setTransmitProfile=function(y){On!==y&&Qt[y]!==void 0&&(lt(),On=y,Tn())};function $i(y,R,C){var X=ya(y,R,C);return je.sendQueuedRequests(R,C),X}function Tt(){return mn>0}function Tn(){if(ot>=0&&ya(ot,0,sn)&&je.sendQueuedRequests(0,sn),_t>0&&!Pe&&!st){var y=Qt[On][2];y>=0&&(Pe=kn(function(){Pe=null,$i(4,0,1),Tn()},y))}var R=Qt[On][1];!xt&&!oe&&R>=0&&!st&&(Tt()?xt=kn(function(){xt=null,$i(mt===0?3:1,0,1),mt++,mt%=2,Tn()},R):mt=0)}Me._backOffTransmission=function(){Ke<Fe&&(Ke++,lt(),Tn())},Me._clearBackOff=function(){Ke&&(Ke=0,lt(),Tn())};function Ii(){B=null,_e=!1,Ie=[],oe=null,st=!1,_t=0,Ct=500,mn=0,Ln=1e4,Qt={},On=s,xt=null,Pe=null,Ke=0,mt=0,an=null,ft={},Mt=void 0,Ft=0,ot=-1,sn=null,Pn=!0,Rt=!1,vn=V,hn=ve,on=null,ze=Ue(),je=new ge(Ne,Gt,Zn,{requeue:Ea,send:H,sent:K,drop:q,rspFail:ae,oth:Ge},ze),kr(),zn(),Le()}function kn(y,R){R===0&&Ke&&(R=1);var C=1e3;return Ke&&(C=Ee(Ke-1)),ze.set(y,R*C)}function lt(){return xt!==null?(ze.clear(xt),xt=null,mt=0,!0):!1}function Kr(y,R){lt(),oe&&(ze.clear(oe),oe=null),st||$i(1,y,R)}function zn(){ft[4]={batches:[],iKeyMap:{}},ft[3]={batches:[],iKeyMap:{}},ft[2]={batches:[],iKeyMap:{}},ft[1]={batches:[],iKeyMap:{}}}function ls(y,R,C){var X=ft[R];X||(R=1,X=ft[R]);var le=X.iKeyMap[y];return!le&&C&&(le=Dn.create(y),X.batches.push(le),X.iKeyMap[y]=le),le}function Yi(y,R){je.canSendRequest()&&!Ke&&(Mt>0&&mn>Mt&&(R=!0),R&&oe==null&&Me.flush(y,null,20))}function ba(y,R){Pn&&(y=r.optimizeObject(y));var C=y.latency,X=ls(y.iKey,C,!0);return X.addEvent(y)?(C!==4?(mn++,R&&y.sendAttempt===0&&Yi(!y.sync,Ft>0&&X.count()>=Ft)):_t++,!0):!1}function Hc(y,R,C,X){for(;C<=R;){var le=ls(y,R,!0);if(le&&le.count()>0){var Ce=le.split(0,X),et=Ce.count();if(et>0)return C===4?_t-=et:mn-=et,E(Bn,[Ce],r.EventsDiscardedReason.QueueFull),!0}C++}return cn(),!1}function cn(){for(var y=0,R=0,C=function(le){var Ce=ft[le];Ce&&Ce.batches&&r.arrForEach(Ce.batches,function(et){le===4?y+=et.count():R+=et.count()})},X=1;X<=4;X++)C(X);mn=R,_t=y}function ya(y,R,C){var X=!1,le=R===0;return!le||je.canSendRequest()?r.doPerf(Me.core,function(){return"PostChannel._queueBatches"},function(){for(var Ce=[],et=4;et>=y;){var tt=ft[et];tt&&tt.batches&&tt.batches.length>0&&(r.arrForEach(tt.batches,function(kt){je.addBatch(kt)?X=X||kt&&kt.count()>0:Ce=Ce.concat(kt.events()),et===4?_t-=kt.count():mn-=kt.count()}),tt.batches=[],tt.iKeyMap={}),et--}Ce.length>0&&fs(Bn,Ce,r.EventsDiscardedReason.KillSwitch),X&&ot>=y&&(ot=-1,sn=0)},function(){return{latency:y,sendType:R,sendReason:C}},!le):(ot=ot>=0?Math.min(ot,y):y,sn=Math.max(sn,C)),X}function Lt(y,R){$i(1,0,R),cn(),ps(function(){y&&y(),Ie.length>0?oe=kn(function(){oe=null,Lt(Ie.shift(),R)},0):(oe=null,Tn())})}function ps(y){je.isCompletelyIdle()?y():oe=kn(function(){oe=null,ps(y)},de)}function ds(){lt(),kr(),On=s,Tn()}function kr(){Qt={},Qt[s]=[2,1,0],Qt[u]=[6,3,0],Qt[l]=[18,9,0]}function Ea(y,R){var C=[],X=vn;Rt&&(X=hn),r.arrForEach(y,function(le){le&&le.count()>0&&r.arrForEach(le.events(),function(Ce){Ce&&(Ce.sync&&(Ce.latency=4,Ce.sync=!1),Ce.sendAttempt<X?(r.setProcessTelemetryTimings(Ce,Me.identifier),ht(Ce,!1)):C.push(Ce))})}),C.length>0&&fs(Bn,C,r.EventsDiscardedReason.NonRetryableStatus),Rt&&Kr(2,2)}function qn(y,R){var C=Me._notificationManager||{},X=C[y];if(X)try{X.apply(C,R)}catch(le){r._throwInternal(Me.diagLog(),1,74,y+" notification failed: "+le)}}function fs(y,R){for(var C=[],X=2;X<arguments.length;X++)C[X-2]=arguments[X];R&&R.length>0&&qn(y,[R].concat(C))}function E(y,R){for(var C=[],X=2;X<arguments.length;X++)C[X-2]=arguments[X];R&&R.length>0&&r.arrForEach(R,function(le){le&&le.count()>0&&qn(y,[le.events()].concat(C))})}function H(y,R,C){y&&y.length>0&&qn("eventsSendRequest",[R>=1e3&&R<=1999?R-1e3:0,C!==!0])}function K(y,R){E("eventsSent",y,R),Tn()}function q(y,R){E(Bn,y,R>=8e3&&R<=8999?R-8e3:r.EventsDiscardedReason.Unknown)}function ae(y){E(Bn,y,r.EventsDiscardedReason.NonRetryableStatus),Tn()}function Ge(y,R){E(Bn,y,r.EventsDiscardedReason.Unknown),Tn()}function Le(){!B||!B.disableAutoBatchFlushLimit?Ft=Math.max(Ne*(Gt+1),Ln/6):Ft=0}r.objDefineAccessors(Me,"_setTimeoutOverride",function(){return ze.set},function(y){ze=Ue(y,ze.clear)}),r.objDefineAccessors(Me,"_clearTimeoutOverride",function(){return ze.clear},function(y){ze=Ue(ze.set,y)})}),ue}return Y.__ieDyn=1,Y}(r.BaseTelemetryPlugin);e.BE_PROFILE=l,e.NRT_PROFILE=u,e.PostChannel=Wi,e.RT_PROFILE=s,function(L,Y,ue){var B=Object.defineProperty;if(B)try{return B(L,Y,ue)}catch{}return ue&&typeof ue.value!==void 0&&(L[Y]=ue.value),L}(e,"__esModule",{value:!0})})});var Rx=_(Pi=>{"use strict";var h1=Pi&&Pi.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),_1=Pi&&Pi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Cx=Pi&&Pi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&h1(t,e,n);return _1(t,e),t};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.oneDataSystemClientFactory=void 0;var g1=async(e,t,n)=>{let r=await Promise.resolve().then(()=>Cx(Lh())),i=await Promise.resolve().then(()=>Cx(Px())),a=new r.AppInsightsCore,s=new i.PostChannel,u={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[s]]};if(n){u.extensionConfig={};let f={alwaysUseXhrOverride:!0,httpXHROverride:n};u.extensionConfig[s.identifier]=f}let c=t.workspace.getConfiguration("telemetry").get("internalTesting");return a.initialize(u,[]),a.addTelemetryInitializer(f=>{c&&(f.ext=f.ext??{},f.ext.utc=f.ext.utc??{},f.ext.utc.flags=8462029)}),a},b1=async(e,t,n)=>{let r=await g1(e,t,n);return{logEvent:(a,s)=>{try{r?.track({name:a,baseData:{name:a,properties:s?.properties,measurements:s?.measurements}})}catch(u){throw new Error(`Failed to log event to app insights!
`+u.message)}},flush:async()=>{try{r?.unload()}catch(a){throw new Error(`Failed to flush app insights!
`+a.message)}}}};Pi.oneDataSystemClientFactory=b1});var jh=_(rt=>{"use strict";var kh=rt&&rt.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},qh=rt&&rt.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(rt,"__esModule",{value:!0});rt.getShallowFileSize=rt.getShallowDirectorySizeSync=rt.getShallowDirectorySize=rt.confirmDirExists=rt.unlinkAsync=rt.readdirAsync=rt.readFileAsync=rt.writeFileAsync=rt.appendFileAsync=rt.accessAsync=rt.mkdirAsync=rt.lstatAsync=rt.statAsync=void 0;var fi=require("fs"),wx=require("path"),ra=require("util");rt.statAsync=ra.promisify(fi.stat);rt.lstatAsync=ra.promisify(fi.lstat);rt.mkdirAsync=ra.promisify(fi.mkdir);rt.accessAsync=ra.promisify(fi.access);rt.appendFileAsync=ra.promisify(fi.appendFile);rt.writeFileAsync=ra.promisify(fi.writeFile);rt.readFileAsync=ra.promisify(fi.readFile);rt.readdirAsync=ra.promisify(fi.readdir);rt.unlinkAsync=ra.promisify(fi.unlink);var y1=function(e){return kh(void 0,void 0,void 0,function(){var t,n,r;return qh(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,rt.lstatAsync(e)];case 1:if(t=i.sent(),!t.isDirectory())throw new Error("Path existed but was not a directory");return[3,7];case 2:if(n=i.sent(),!(n&&n.code==="ENOENT"))return[3,6];i.label=3;case 3:return i.trys.push([3,5,,6]),[4,rt.mkdirAsync(e)];case 4:return i.sent(),[3,6];case 5:if(r=i.sent(),r&&r.code!=="EEXIST")throw r;return[3,6];case 6:return[3,7];case 7:return[2]}})})};rt.confirmDirExists=y1;var E1=function(e){return kh(void 0,void 0,void 0,function(){var t,n,r,i,a,s;return qh(this,function(u){switch(u.label){case 0:return[4,rt.readdirAsync(e)];case 1:t=u.sent(),n=0,r=0,i=t,u.label=2;case 2:return r<i.length?(a=i[r],[4,rt.statAsync(wx.join(e,a))]):[3,5];case 3:s=u.sent(),s.isFile()&&(n+=s.size),u.label=4;case 4:return r++,[3,2];case 5:return[2,n]}})})};rt.getShallowDirectorySize=E1;var T1=function(e){for(var t=fi.readdirSync(e),n=0,r=0;r<t.length;r++)n+=fi.statSync(wx.join(e,t[r])).size;return n};rt.getShallowDirectorySizeSync=T1;var S1=function(e){return kh(void 0,void 0,void 0,function(){var t;return qh(this,function(n){switch(n.label){case 0:return[4,rt.statAsync(e)];case 1:return t=n.sent(),t.isFile()?[2,t.size]:[2]}})})};rt.getShallowFileSize=S1});var Mx=_((Ts,Dx)=>{"use strict";var Uh=Ts&&Ts.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},Fh=Ts&&Ts.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nx=Ts&&Ts.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,u=a.length;s<u;s++,i++)r[i]=a[s];return r},x1=require("fs"),A1=require("os"),Es=require("path"),Ci=jh(),I1=function(){function e(){var t=this;this.TAG="Logger",this._cleanupTimeOut=60*30*1e3,this._logToFile=!1,this._logToConsole=!0;var n=process.env.APPLICATIONINSIGHTS_LOG_DESTINATION;n=="file+console"&&(this._logToFile=!0),n=="file"&&(this._logToFile=!0,this._logToConsole=!1),this.maxSizeBytes=5e4,this.maxHistory=1,this._logFileName="applicationinsights.log";var r=process.env.APPLICATIONINSIGHTS_LOGDIR;r?Es.isAbsolute(r)?this._tempDir=r:this._tempDir=Es.join(process.cwd(),r):this._tempDir=Es.join(A1.tmpdir(),"appInsights-node"),this._fileFullPath=Es.join(this._tempDir,this._logFileName),this._backUpNameFormat="."+this._logFileName,this._logToFile&&(e._fileCleanupTimer||(e._fileCleanupTimer=setInterval(function(){t._fileCleanupTask()},this._cleanupTimeOut),e._fileCleanupTimer.unref()))}return e.prototype.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=t?Nx([t],n):n;this._logToFile&&this._storeToDisk(i),this._logToConsole&&console.info.apply(console,i)},e.prototype.warning=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=t?Nx([t],n):n;this._logToFile&&this._storeToDisk(i),this._logToConsole&&console.warn.apply(console,i)},e.getInstance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype._storeToDisk=function(t){return Uh(this,void 0,void 0,function(){var n,r,i,a,s,u;return Fh(this,function(l){switch(l.label){case 0:n=t+`\r
`,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Ci.confirmDirExists(this._tempDir)];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),console.log(this.TAG,"Failed to create directory for log file: "+(r&&r.message)),[2];case 4:return l.trys.push([4,6,,11]),[4,Ci.accessAsync(this._fileFullPath,x1.constants.F_OK)];case 5:return l.sent(),[3,11];case 6:i=l.sent(),l.label=7;case 7:return l.trys.push([7,9,,10]),[4,Ci.appendFileAsync(this._fileFullPath,n)];case 8:return l.sent(),[2];case 9:return a=l.sent(),console.log(this.TAG,"Failed to put log into file: "+(i&&i.message)),[2];case 10:return[3,11];case 11:return l.trys.push([11,17,,18]),[4,Ci.getShallowFileSize(this._fileFullPath)];case 12:return s=l.sent(),s>this.maxSizeBytes?[4,this._createBackupFile(n)]:[3,14];case 13:return l.sent(),[3,16];case 14:return[4,Ci.appendFileAsync(this._fileFullPath,n)];case 15:l.sent(),l.label=16;case 16:return[3,18];case 17:return u=l.sent(),console.log(this.TAG,"Failed to create backup file: "+(u&&u.message)),[3,18];case 18:return[2]}})})},e.prototype._createBackupFile=function(t){return Uh(this,void 0,void 0,function(){var n,r,i;return Fh(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,4,5]),[4,Ci.readFileAsync(this._fileFullPath)];case 1:return n=a.sent(),r=Es.join(this._tempDir,new Date().getTime()+"."+this._logFileName),[4,Ci.writeFileAsync(r,n)];case 2:return a.sent(),[3,5];case 3:return i=a.sent(),console.log("Failed to generate backup log file",i),[3,5];case 4:return Ci.writeFileAsync(this._fileFullPath,t),[7];case 5:return[2]}})})},e.prototype._fileCleanupTask=function(){return Uh(this,void 0,void 0,function(){var t,n,r,i,a,s=this;return Fh(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,Ci.readdirAsync(this._tempDir)];case 1:t=u.sent(),t=t.filter(function(l){return Es.basename(l).indexOf(s._backUpNameFormat)>-1}),t.sort(function(l,c){var f=new Date(parseInt(l.split(s._backUpNameFormat)[0])),v=new Date(parseInt(c.split(s._backUpNameFormat)[0]));if(f<v)return-1;if(f>=v)return 1}),n=t.length,r=0,u.label=2;case 2:return r<n-this.maxHistory?(i=Es.join(this._tempDir,t[r]),[4,Ci.unlinkAsync(i)]):[3,5];case 3:u.sent(),u.label=4;case 4:return r++,[3,2];case 5:return[3,7];case 6:return a=u.sent(),console.log(this.TAG,"Failed to cleanup log files: "+(a&&a.message)),[3,7];case 7:return[2]}})})},e._fileCleanupTimer=null,e}();Dx.exports=I1});var Zt=_((R$,kx)=>{"use strict";var Lx=Mx(),O1=function(){function e(){}return e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.enableDebug&&Lx.getInstance().info(this.TAG+t,n)},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.disableWarnings||Lx.getInstance().warning(this.TAG+t,n)},e.enableDebug=!1,e.disableWarnings=!1,e.TAG="ApplicationInsights:",e}();kx.exports=O1});var xp=_(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.JsonConfig=void 0;var P1=require("fs"),Tp=require("path"),qx=Zt(),C1="APPLICATIONINSIGHTS_CONFIGURATION_FILE",R1="APPLICATIONINSIGHTS_CONNECTION_STRING",jx="APPSETTING_",Ux="APPINSIGHTS_INSTRUMENTATIONKEY",Fx="APPINSIGHTS_INSTRUMENTATION_KEY",w1="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",N1="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",D1="http_proxy",M1="https_proxy",L1="APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL",k1="APPLICATION_INSIGHTS_NO_STATSBEAT",q1="APPLICATION_INSIGHTS_NO_HTTP_AGENT_KEEP_ALIVE",j1="APPLICATION_INSIGHTS_NO_PATCH_MODULES",U1="APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_ENABLED",F1="APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_CONNECTION_STRING",H1="APPLICATIONINSIGHTS_WEB_INSTRUMENTATION_SOURCE",B1="APPLICATIONINSIGHTS_WEB_SNIPPET_ENABLED",z1="APPLICATIONINSIGHTS_WEB_SNIPPET_CONNECTION_STRING",G1=function(){function e(){this.connectionString=process.env[R1],this.instrumentationKey=process.env[Ux]||process.env[jx+Ux]||process.env[Fx]||process.env[jx+Fx],!this.connectionString&&this.instrumentationKey&&qx.warn("APPINSIGHTS_INSTRUMENTATIONKEY is in path of deprecation, please use APPLICATIONINSIGHTS_CONNECTION_STRING env variable to setup the SDK."),this.disableAllExtendedMetrics=!!process.env[N1],this.extendedMetricDisablers=process.env[w1],this.proxyHttpUrl=process.env[D1],this.proxyHttpsUrl=process.env[M1],this.noDiagnosticChannel=!!process.env[L1],this.disableStatsbeat=!!process.env[k1],this.noHttpAgentKeepAlive=!!process.env[q1],this.noPatchModules=process.env[j1]||"",this.enableWebInstrumentation=!!process.env[U1]||!!process.env[B1],this.webInstrumentationSrc=process.env[H1]||"",this.webInstrumentationConnectionString=process.env[F1]||process.env[z1]||"",this.enableAutoWebSnippetInjection=this.enableWebInstrumentation,this.webSnippetConnectionString=this.webInstrumentationConnectionString,this._loadJsonFile()}return e.getInstance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype._loadJsonFile=function(){var t="applicationinsights.json",n=Tp.join(__dirname,"../../"),r=Tp.join(n,t),i=process.env[C1];i&&(Tp.isAbsolute(i)?r=i:r=Tp.join(n,i));try{var a=JSON.parse(P1.readFileSync(r,"utf8"));a.disableStatsbeat!=null&&(this.disableStatsbeat=a.disableStatsbeat),a.disableAllExtendedMetrics!=null&&(this.disableAllExtendedMetrics=a.disableStatsbeat),a.noDiagnosticChannel!=null&&(this.noDiagnosticChannel=a.noDiagnosticChannel),a.noHttpAgentKeepAlive!=null&&(this.noHttpAgentKeepAlive=a.noHttpAgentKeepAlive),a.connectionString!=null&&(this.connectionString=a.connectionString),a.extendedMetricDisablers!=null&&(this.extendedMetricDisablers=a.extendedMetricDisablers),a.noDiagnosticChannel!=null&&(this.noDiagnosticChannel=a.noDiagnosticChannel),a.proxyHttpUrl!=null&&(this.proxyHttpUrl=a.proxyHttpUrl),a.proxyHttpsUrl!=null&&(this.proxyHttpsUrl=a.proxyHttpsUrl),a.proxyHttpsUrl!=null&&(this.proxyHttpsUrl=a.proxyHttpsUrl),a.noPatchModules!=null&&(this.noPatchModules=a.noPatchModules),a.enableAutoWebSnippetInjection!=null&&(this.enableWebInstrumentation=a.enableAutoWebSnippetInjection,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation),a.enableWebInstrumentation!=null&&(this.enableWebInstrumentation=a.enableWebInstrumentation,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation),a.webSnippetConnectionString!=null&&(this.webInstrumentationConnectionString=a.webSnippetConnectionString,this.webSnippetConnectionString=this.webInstrumentationConnectionString),a.webInstrumentationConnectionString!=null&&(this.webInstrumentationConnectionString=a.webInstrumentationConnectionString,this.webSnippetConnectionString=this.webInstrumentationConnectionString),a.webInstrumentationConfig!=null&&(this.webInstrumentationConfig=a.webInstrumentationConfig),a.webInstrumentationSrc!=null&&(this.webInstrumentationSrc=a.webInstrumentationSrc),this.endpointUrl=a.endpointUrl,this.maxBatchSize=a.maxBatchSize,this.maxBatchIntervalMs=a.maxBatchIntervalMs,this.disableAppInsights=a.disableAppInsights,this.samplingPercentage=a.samplingPercentage,this.correlationIdRetryIntervalMs=a.correlationIdRetryIntervalMs,this.correlationHeaderExcludedDomains=a.correlationHeaderExcludedDomains,this.ignoreLegacyHeaders=a.ignoreLegacyHeaders,this.distributedTracingMode=a.distributedTracingMode,this.enableAutoCollectExternalLoggers=a.enableAutoCollectExternalLoggers,this.enableAutoCollectConsole=a.enableAutoCollectConsole,this.enableAutoCollectExceptions=a.enableAutoCollectExceptions,this.enableAutoCollectPerformance=a.enableAutoCollectPerformance,this.enableAutoCollectExtendedMetrics=a.enableAutoCollectExtendedMetrics,this.enableAutoCollectPreAggregatedMetrics=a.enableAutoCollectPreAggregatedMetrics,this.enableAutoCollectHeartbeat=a.enableAutoCollectHeartbeat,this.enableAutoCollectRequests=a.enableAutoCollectRequests,this.enableAutoCollectDependencies=a.enableAutoCollectDependencies,this.enableAutoDependencyCorrelation=a.enableAutoDependencyCorrelation,this.enableAutoCollectIncomingRequestAzureFunctions=a.enableAutoCollectIncomingRequestAzureFunctions,this.enableUseAsyncHooks=a.enableUseAsyncHooks,this.enableUseDiskRetryCaching=a.enableUseDiskRetryCaching,this.enableResendInterval=a.enableResendInterval,this.enableMaxBytesOnDisk=a.enableMaxBytesOnDisk,this.enableInternalDebugLogging=a.enableInternalDebugLogging,this.enableInternalWarningLogging=a.enableInternalWarningLogging,this.enableSendLiveMetrics=a.enableSendLiveMetrics,this.quickPulseHost=a.quickPulseHost}catch(s){qx.info("Missing or invalid JSON config file: ",s)}},e}();Sp.JsonConfig=G1});var Mp=_((He,n0)=>{He=n0.exports=pt;var St;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?St=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:St=function(){};He.SEMVER_SPEC_VERSION="2.0.0";var cu=256,Ap=Number.MAX_SAFE_INTEGER||9007199254740991,Hh=16,V1=cu-6,uu=He.re=[],qt=He.safeRe=[],G=He.src=[],ct=0,Kh="[a-zA-Z0-9-]",Bh=[["\\s",1],["\\d",cu],[Kh,V1]];function wp(e){for(var t=0;t<Bh.length;t++){var n=Bh[t][0],r=Bh[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}var Io=ct++;G[Io]="0|[1-9]\\d*";var Oo=ct++;G[Oo]="\\d+";var Wh=ct++;G[Wh]="\\d*[a-zA-Z-]"+Kh+"*";var Bx=ct++;G[Bx]="("+G[Io]+")\\.("+G[Io]+")\\.("+G[Io]+")";var zx=ct++;G[zx]="("+G[Oo]+")\\.("+G[Oo]+")\\.("+G[Oo]+")";var zh=ct++;G[zh]="(?:"+G[Io]+"|"+G[Wh]+")";var Gh=ct++;G[Gh]="(?:"+G[Oo]+"|"+G[Wh]+")";var $h=ct++;G[$h]="(?:-("+G[zh]+"(?:\\."+G[zh]+")*))";var Yh=ct++;G[Yh]="(?:-?("+G[Gh]+"(?:\\."+G[Gh]+")*))";var Vh=ct++;G[Vh]=Kh+"+";var pu=ct++;G[pu]="(?:\\+("+G[Vh]+"(?:\\."+G[Vh]+")*))";var Xh=ct++,Gx="v?"+G[Bx]+G[$h]+"?"+G[pu]+"?";G[Xh]="^"+Gx+"$";var Qh="[v=\\s]*"+G[zx]+G[Yh]+"?"+G[pu]+"?",Zh=ct++;G[Zh]="^"+Qh+"$";var No=ct++;G[No]="((?:<|>)?=?)";var Ip=ct++;G[Ip]=G[Oo]+"|x|X|\\*";var Op=ct++;G[Op]=G[Io]+"|x|X|\\*";var Ss=ct++;G[Ss]="[v=\\s]*("+G[Op]+")(?:\\.("+G[Op]+")(?:\\.("+G[Op]+")(?:"+G[$h]+")?"+G[pu]+"?)?)?";var Co=ct++;G[Co]="[v=\\s]*("+G[Ip]+")(?:\\.("+G[Ip]+")(?:\\.("+G[Ip]+")(?:"+G[Yh]+")?"+G[pu]+"?)?)?";var Vx=ct++;G[Vx]="^"+G[No]+"\\s*"+G[Ss]+"$";var Kx=ct++;G[Kx]="^"+G[No]+"\\s*"+G[Co]+"$";var Wx=ct++;G[Wx]="(?:^|[^\\d])(\\d{1,"+Hh+"})(?:\\.(\\d{1,"+Hh+"}))?(?:\\.(\\d{1,"+Hh+"}))?(?:$|[^\\d])";var Np=ct++;G[Np]="(?:~>?)";var Ro=ct++;G[Ro]="(\\s*)"+G[Np]+"\\s+";uu[Ro]=new RegExp(G[Ro],"g");qt[Ro]=new RegExp(wp(G[Ro]),"g");var K1="$1~",$x=ct++;G[$x]="^"+G[Np]+G[Ss]+"$";var Yx=ct++;G[Yx]="^"+G[Np]+G[Co]+"$";var Dp=ct++;G[Dp]="(?:\\^)";var wo=ct++;G[wo]="(\\s*)"+G[Dp]+"\\s+";uu[wo]=new RegExp(G[wo],"g");qt[wo]=new RegExp(wp(G[wo]),"g");var W1="$1^",Xx=ct++;G[Xx]="^"+G[Dp]+G[Ss]+"$";var Qx=ct++;G[Qx]="^"+G[Dp]+G[Co]+"$";var Jh=ct++;G[Jh]="^"+G[No]+"\\s*("+Qh+")$|^$";var e_=ct++;G[e_]="^"+G[No]+"\\s*("+Gx+")$|^$";var xs=ct++;G[xs]="(\\s*)"+G[No]+"\\s*("+Qh+"|"+G[Ss]+")";uu[xs]=new RegExp(G[xs],"g");qt[xs]=new RegExp(wp(G[xs]),"g");var $1="$1$2$3",Zx=ct++;G[Zx]="^\\s*("+G[Ss]+")\\s+-\\s+("+G[Ss]+")\\s*$";var Jx=ct++;G[Jx]="^\\s*("+G[Co]+")\\s+-\\s+("+G[Co]+")\\s*$";var e0=ct++;G[e0]="(<|>)?=?\\s*\\*";for(Ri=0;Ri<ct;Ri++)St(Ri,G[Ri]),uu[Ri]||(uu[Ri]=new RegExp(G[Ri]),qt[Ri]=new RegExp(wp(G[Ri])));var Ri;He.parse=As;function As(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof pt)return e;if(typeof e!="string"||e.length>cu)return null;var n=t.loose?qt[Zh]:qt[Xh];if(!n.test(e))return null;try{return new pt(e,t)}catch{return null}}He.valid=Y1;function Y1(e,t){var n=As(e,t);return n?n.version:null}He.clean=X1;function X1(e,t){var n=As(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}He.SemVer=pt;function pt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof pt){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>cu)throw new TypeError("version is longer than "+cu+" characters");if(!(this instanceof pt))return new pt(e,t);St("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?qt[Zh]:qt[Xh]);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>Ap||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ap||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ap||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i<Ap)return i}return r}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}pt.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};pt.prototype.toString=function(){return this.version};pt.prototype.compare=function(e){return St("SemVer.compare",this.version,this.options,e),e instanceof pt||(e=new pt(e,this.options)),this.compareMain(e)||this.comparePre(e)};pt.prototype.compareMain=function(e){return e instanceof pt||(e=new pt(e,this.options)),Po(this.major,e.major)||Po(this.minor,e.minor)||Po(this.patch,e.patch)};pt.prototype.comparePre=function(e){if(e instanceof pt||(e=new pt(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 n=this.prerelease[t],r=e.prerelease[t];if(St("prerelease compare",t,n,r),n===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(n===void 0)return-1;if(n===r)continue;return Po(n,r)}while(++t)};pt.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":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&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};He.inc=Q1;function Q1(e,t,n,r){typeof n=="string"&&(r=n,n=void 0);try{return new pt(e,n).inc(t,r).version}catch{return null}}He.diff=Z1;function Z1(e,t){if(t_(e,t))return null;var n=As(e),r=As(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var a="prerelease"}for(var s in n)if((s==="major"||s==="minor"||s==="patch")&&n[s]!==r[s])return i+s;return a}He.compareIdentifiers=Po;var Hx=/^[0-9]+$/;function Po(e,t){var n=Hx.test(e),r=Hx.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}He.rcompareIdentifiers=J1;function J1(e,t){return Po(t,e)}He.major=eq;function eq(e,t){return new pt(e,t).major}He.minor=tq;function tq(e,t){return new pt(e,t).minor}He.patch=nq;function nq(e,t){return new pt(e,t).patch}He.compare=ia;function ia(e,t,n){return new pt(e,n).compare(new pt(t,n))}He.compareLoose=rq;function rq(e,t){return ia(e,t,!0)}He.rcompare=iq;function iq(e,t,n){return ia(t,e,n)}He.sort=aq;function aq(e,t){return e.sort(function(n,r){return He.compare(n,r,t)})}He.rsort=sq;function sq(e,t){return e.sort(function(n,r){return He.rcompare(n,r,t)})}He.gt=lu;function lu(e,t,n){return ia(e,t,n)>0}He.lt=Pp;function Pp(e,t,n){return ia(e,t,n)<0}He.eq=t_;function t_(e,t,n){return ia(e,t,n)===0}He.neq=t0;function t0(e,t,n){return ia(e,t,n)!==0}He.gte=n_;function n_(e,t,n){return ia(e,t,n)>=0}He.lte=r_;function r_(e,t,n){return ia(e,t,n)<=0}He.cmp=Cp;function Cp(e,t,n,r){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return t_(e,n,r);case"!=":return t0(e,n,r);case">":return lu(e,n,r);case">=":return n_(e,n,r);case"<":return Pp(e,n,r);case"<=":return r_(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}He.Comparator=Yr;function Yr(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Yr){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof Yr))return new Yr(e,t);e=e.trim().split(/\s+/).join(" "),St("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===du?this.value="":this.value=this.operator+this.semver.version,St("comp",this)}var du={};Yr.prototype.parse=function(e){var t=this.options.loose?qt[Jh]:qt[e_],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 pt(n[2],this.options.loose):this.semver=du};Yr.prototype.toString=function(){return this.value};Yr.prototype.test=function(e){return St("Comparator.test",e,this.options.loose),this.semver===du?!0:(typeof e=="string"&&(e=new pt(e,this.options)),Cp(e,this.operator,this.semver,this.options))};Yr.prototype.intersects=function(e,t){if(!(e instanceof Yr))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var n;if(this.operator==="")return n=new Jt(e.value,t),Rp(this.value,n,t);if(e.operator==="")return n=new Jt(this.value,t),Rp(e.semver,n,t);var r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),a=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),u=Cp(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=Cp(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||a&&s||u||l};He.Range=Jt;function Jt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Jt)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Jt(e.raw,t);if(e instanceof Yr)return new Jt(e.value,t);if(!(this instanceof Jt))return new Jt(e,t);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(function(n){return this.parseRange(n.trim())},this).filter(function(n){return n.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}Jt.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Jt.prototype.toString=function(){return this.range};Jt.prototype.parseRange=function(e){var t=this.options.loose,n=t?qt[Jx]:qt[Zx];e=e.replace(n,hq),St("hyphen replace",e),e=e.replace(qt[xs],$1),St("comparator trim",e,qt[xs]),e=e.replace(qt[Ro],K1),e=e.replace(qt[wo],W1);var r=t?qt[Jh]:qt[e_],i=e.split(" ").map(function(a){return cq(a,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(a){return!!a.match(r)})),i=i.map(function(a){return new Yr(a,this.options)},this),i};Jt.prototype.intersects=function(e,t){if(!(e instanceof Jt))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(r){return e.set.some(function(i){return i.every(function(a){return r.intersects(a,t)})})})})};He.toComparators=oq;function oq(e,t){return new Jt(e,t).set.map(function(n){return n.map(function(r){return r.value}).join(" ").trim().split(" ")})}function cq(e,t){return St("comp",e,t),e=pq(e,t),St("caret",e),e=uq(e,t),St("tildes",e),e=fq(e,t),St("xrange",e),e=vq(e,t),St("stars",e),e}function _r(e){return!e||e.toLowerCase()==="x"||e==="*"}function uq(e,t){return e.trim().split(/\s+/).map(function(n){return lq(n,t)}).join(" ")}function lq(e,t){var n=t.loose?qt[Yx]:qt[$x];return e.replace(n,function(r,i,a,s,u){St("tilde",e,r,i,a,s,u);var l;return _r(i)?l="":_r(a)?l=">="+i+".0.0 <"+(+i+1)+".0.0":_r(s)?l=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0":u?(St("replaceTilde pr",u),l=">="+i+"."+a+"."+s+"-"+u+" <"+i+"."+(+a+1)+".0"):l=">="+i+"."+a+"."+s+" <"+i+"."+(+a+1)+".0",St("tilde return",l),l})}function pq(e,t){return e.trim().split(/\s+/).map(function(n){return dq(n,t)}).join(" ")}function dq(e,t){St("caret",e,t);var n=t.loose?qt[Qx]:qt[Xx];return e.replace(n,function(r,i,a,s,u){St("caret",e,r,i,a,s,u);var l;return _r(i)?l="":_r(a)?l=">="+i+".0.0 <"+(+i+1)+".0.0":_r(s)?i==="0"?l=">="+i+"."+a+".0 <"+i+"."+(+a+1)+".0":l=">="+i+"."+a+".0 <"+(+i+1)+".0.0":u?(St("replaceCaret pr",u),i==="0"?a==="0"?l=">="+i+"."+a+"."+s+"-"+u+" <"+i+"."+a+"."+(+s+1):l=">="+i+"."+a+"."+s+"-"+u+" <"+i+"."+(+a+1)+".0":l=">="+i+"."+a+"."+s+"-"+u+" <"+(+i+1)+".0.0"):(St("no pr"),i==="0"?a==="0"?l=">="+i+"."+a+"."+s+" <"+i+"."+a+"."+(+s+1):l=">="+i+"."+a+"."+s+" <"+i+"."+(+a+1)+".0":l=">="+i+"."+a+"."+s+" <"+(+i+1)+".0.0"),St("caret return",l),l})}function fq(e,t){return St("replaceXRanges",e,t),e.split(/\s+/).map(function(n){return mq(n,t)}).join(" ")}function mq(e,t){e=e.trim();var n=t.loose?qt[Kx]:qt[Vx];return e.replace(n,function(r,i,a,s,u,l){St("xRange",e,r,i,a,s,u,l);var c=_r(a),f=c||_r(s),v=f||_r(u),b=v;return i==="="&&b&&(i=""),c?i===">"||i==="<"?r="<0.0.0":r="*":i&&b?(f&&(s=0),u=0,i===">"?(i=">=",f?(a=+a+1,s=0,u=0):(s=+s+1,u=0)):i==="<="&&(i="<",f?a=+a+1:s=+s+1),r=i+a+"."+s+"."+u):f?r=">="+a+".0.0 <"+(+a+1)+".0.0":v&&(r=">="+a+"."+s+".0 <"+a+"."+(+s+1)+".0"),St("xRange return",r),r})}function vq(e,t){return St("replaceStars",e,t),e.trim().replace(qt[e0],"")}function hq(e,t,n,r,i,a,s,u,l,c,f,v,b){return _r(n)?t="":_r(r)?t=">="+n+".0.0":_r(i)?t=">="+n+"."+r+".0":t=">="+t,_r(l)?u="":_r(c)?u="<"+(+l+1)+".0.0":_r(f)?u="<"+l+"."+(+c+1)+".0":v?u="<="+l+"."+c+"."+f+"-"+v:u="<="+u,(t+" "+u).trim()}Jt.prototype.test=function(e){if(!e)return!1;typeof e=="string"&&(e=new pt(e,this.options));for(var t=0;t<this.set.length;t++)if(_q(this.set[t],e,this.options))return!0;return!1};function _q(e,t,n){for(var r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(r=0;r<e.length;r++)if(St(e[r].semver),e[r].semver!==du&&e[r].semver.prerelease.length>0){var i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}He.satisfies=Rp;function Rp(e,t,n){try{t=new Jt(t,n)}catch{return!1}return t.test(e)}He.maxSatisfying=gq;function gq(e,t,n){var r=null,i=null;try{var a=new Jt(t,n)}catch{return null}return e.forEach(function(s){a.test(s)&&(!r||i.compare(s)===-1)&&(r=s,i=new pt(r,n))}),r}He.minSatisfying=bq;function bq(e,t,n){var r=null,i=null;try{var a=new Jt(t,n)}catch{return null}return e.forEach(function(s){a.test(s)&&(!r||i.compare(s)===1)&&(r=s,i=new pt(r,n))}),r}He.minVersion=yq;function yq(e,t){e=new Jt(e,t);var n=new pt("0.0.0");if(e.test(n)||(n=new pt("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r){var i=e.set[r];i.forEach(function(a){var s=new pt(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!n||lu(n,s))&&(n=s);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+a.operator)}})}return n&&e.test(n)?n:null}He.validRange=Eq;function Eq(e,t){try{return new Jt(e,t).range||"*"}catch{return null}}He.ltr=Tq;function Tq(e,t,n){return i_(e,t,"<",n)}He.gtr=Sq;function Sq(e,t,n){return i_(e,t,">",n)}He.outside=i_;function i_(e,t,n,r){e=new pt(e,r),t=new Jt(t,r);var i,a,s,u,l;switch(n){case">":i=lu,a=r_,s=Pp,u=">",l=">=";break;case"<":i=Pp,a=n_,s=lu,u="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Rp(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var f=t.set[c],v=null,b=null;if(f.forEach(function(T){T.semver===du&&(T=new Yr(">=0.0.0")),v=v||T,b=b||T,i(T.semver,v.semver,r)?v=T:s(T.semver,b.semver,r)&&(b=T)}),v.operator===u||v.operator===l||(!b.operator||b.operator===u)&&a(e,b.semver))return!1;if(b.operator===l&&s(e,b.semver))return!1}return!0}He.prerelease=xq;function xq(e,t){var n=As(e,t);return n&&n.prerelease.length?n.prerelease:null}He.intersects=Aq;function Aq(e,t,n){return e=new Jt(e,n),t=new Jt(t,n),e.intersects(t)}He.coerce=Iq;function Iq(e){if(e instanceof pt)return e;if(typeof e!="string")return null;var t=e.match(qt[Wx]);return t==null?null:As(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}});var a_=_(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.makePatchingRequire=void 0;var Oq=require("path"),Pq=Mp(),r0=un(),a0=require("module"),Cq=Object.keys(process.binding("natives")),i0=a0.prototype.require;function Rq(e){var t={};return function(r){var i=i0.apply(this,arguments);if(e[r]){var a=a0._resolveFilename(r,this);if(t.hasOwnProperty(a))return t[a];var s=void 0;if(Cq.indexOf(r)<0)try{s=i0.call(this,Oq.join(r,"package.json")).version}catch{return i}else s=process.version.substring(1);var u=s.indexOf("-");u>=0&&(s=s.substring(0,u));for(var l=i,c=0,f=e[r];c<f.length;c++){var v=f[c];if(Pq.satisfies(s,v.versionSpecifier)&&(l=v.patch(l,a),r0.channel)){var b=v.publisherName||r;r0.channel.addPatchedModule(b,s)}}return t[a]=l}return i}}Lp.makePatchingRequire=Rq});var s0=_((D$,wq)=>{wq.exports={name:"diagnostic-channel",version:"1.1.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",debug:"mocha --inspect-brk ./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",sinon:"1.17.6",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}});var un=_(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.channel=Xr.ContextPreservingEventEmitter=Xr.trueFilter=Xr.makePatchingRequire=void 0;var Nq=a_(),Dq=a_();Object.defineProperty(Xr,"makePatchingRequire",{enumerable:!0,get:function(){return Dq.makePatchingRequire}});var Mq=function(e){return!0};Xr.trueFilter=Mq;var c0=function(){function e(){this.version=s0().version,this.subscribers={},this.contextPreservationFunction=function(t){return t},this.knownPatches={},this.modulesPatched=[],this.currentlyPublishing=!1}return e.prototype.shouldPublish=function(t){var n=this.subscribers[t];return n?n.some(function(r){var i=r.filter;return!i||i(!1)}):!1},e.prototype.publish=function(t,n){if(!this.currentlyPublishing){var r=this.subscribers[t];if(r){var i={timestamp:Date.now(),data:n};this.currentlyPublishing=!0,r.forEach(function(a){var s=a.listener,u=a.filter;try{u&&u(!0)&&s(i)}catch{}}),this.currentlyPublishing=!1}}},e.prototype.subscribe=function(t,n,r,i){r===void 0&&(r=Xr.trueFilter),this.subscribers[t]||(this.subscribers[t]=[]),this.subscribers[t].push({listener:n,filter:r,patchCallback:i});var a=this.checkIfModuleIsAlreadyPatched(t);a&&i&&i(a.name,a.version)},e.prototype.unsubscribe=function(t,n,r){r===void 0&&(r=Xr.trueFilter);var i=this.subscribers[t];if(i){for(var a=0;a<i.length;++a)if(i[a].listener===n&&i[a].filter===r)return i.splice(a,1),!0}return!1},e.prototype.reset=function(){var t=this;this.subscribers={},this.contextPreservationFunction=function(n){return n},Object.getOwnPropertyNames(this.knownPatches).forEach(function(n){return delete t.knownPatches[n]})},e.prototype.bindToContext=function(t){return this.contextPreservationFunction(t)},e.prototype.addContextPreservation=function(t){var n=this.contextPreservationFunction;this.contextPreservationFunction=function(r){return t(n(r))}},e.prototype.registerMonkeyPatch=function(t,n){this.knownPatches[t]||(this.knownPatches[t]=[]),this.knownPatches[t].push(n)},e.prototype.getPatchesObject=function(){return this.knownPatches},e.prototype.addPatchedModule=function(t,n){for(var r=0,i=this.modulesPatched;r<i.length;r++){var a=i[r];if(a.name===t)return}this.modulesPatched.push({name:t,version:n});var s=this.subscribers[t];s&&s.forEach(function(u){u.patchCallback&&u.patchCallback(t,n)})},e.prototype.checkIfModuleIsAlreadyPatched=function(t){for(var n=0,r=this.modulesPatched;n<r.length;n++){var i=r[n];if(i.name===t)return i}return null},e}();Xr.ContextPreservingEventEmitter=c0;global.diagnosticsSource||(global.diagnosticsSource=new c0,o0=require("module"),o0.prototype.require=Nq.makePatchingRequire(global.diagnosticsSource.getPatchesObject()));var o0;Xr.channel=global.diagnosticsSource});var u0=_(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp._globalThis=void 0;kp._globalThis=typeof globalThis=="object"?globalThis:global});var l0=_(Is=>{"use strict";var Lq=Is&&Is.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),kq=Is&&Is.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Lq(t,e,n)};Object.defineProperty(Is,"__esModule",{value:!0});kq(u0(),Is)});var p0=_(Os=>{"use strict";var qq=Os&&Os.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),jq=Os&&Os.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qq(t,e,n)};Object.defineProperty(Os,"__esModule",{value:!0});jq(l0(),Os)});var s_=_(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.VERSION=void 0;qp.VERSION="1.4.1"});var m0=_(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.isCompatible=Do._makeCompatibilityCheck=void 0;var Uq=s_(),d0=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function f0(e){let t=new Set([e]),n=new Set,r=e.match(d0);if(!r)return()=>!1;let i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===e};function a(u){return n.add(u),!1}function s(u){return t.add(u),!0}return function(l){if(t.has(l))return!0;if(n.has(l))return!1;let c=l.match(d0);if(!c)return a(l);let f={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return f.prerelease!=null||i.major!==f.major?a(l):i.major===0?i.minor===f.minor&&i.patch<=f.patch?s(l):a(l):i.minor<=f.minor?s(l):a(l)}}Do._makeCompatibilityCheck=f0;Do.isCompatible=f0(Uq.VERSION)});var Ps=_(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.unregisterGlobal=wa.getGlobal=wa.registerGlobal=void 0;var Fq=p0(),Mo=s_(),Hq=m0(),Bq=Mo.VERSION.split(".")[0],fu=Symbol.for(`opentelemetry.js.api.${Bq}`),mu=Fq._globalThis;function zq(e,t,n,r=!1){var i;let a=mu[fu]=(i=mu[fu])!==null&&i!==void 0?i:{version:Mo.VERSION};if(!r&&a[e]){let s=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return n.error(s.stack||s.message),!1}if(a.version!==Mo.VERSION){let s=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${Mo.VERSION}`);return n.error(s.stack||s.message),!1}return a[e]=t,n.debug(`@opentelemetry/api: Registered a global for ${e} v${Mo.VERSION}.`),!0}wa.registerGlobal=zq;function Gq(e){var t,n;let r=(t=mu[fu])===null||t===void 0?void 0:t.version;if(!(!r||!(0,Hq.isCompatible)(r)))return(n=mu[fu])===null||n===void 0?void 0:n[e]}wa.getGlobal=Gq;function Vq(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${Mo.VERSION}.`);let n=mu[fu];n&&delete n[e]}wa.unregisterGlobal=Vq});var v0=_(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.DiagComponentLogger=void 0;var Kq=Ps(),o_=class{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return vu("debug",this._namespace,t)}error(...t){return vu("error",this._namespace,t)}info(...t){return vu("info",this._namespace,t)}warn(...t){return vu("warn",this._namespace,t)}verbose(...t){return vu("verbose",this._namespace,t)}};jp.DiagComponentLogger=o_;function vu(e,t,n){let r=(0,Kq.getGlobal)("diag");if(r)return n.unshift(t),r[e](...n)}});var Up=_(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.DiagLogLevel=void 0;var Wq;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Wq=hu.DiagLogLevel||(hu.DiagLogLevel={}))});var h0=_(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.createLogLevelDiagLogger=void 0;var aa=Up();function $q(e,t){e<aa.DiagLogLevel.NONE?e=aa.DiagLogLevel.NONE:e>aa.DiagLogLevel.ALL&&(e=aa.DiagLogLevel.ALL),t=t||{};function n(r,i){let a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",aa.DiagLogLevel.ERROR),warn:n("warn",aa.DiagLogLevel.WARN),info:n("info",aa.DiagLogLevel.INFO),debug:n("debug",aa.DiagLogLevel.DEBUG),verbose:n("verbose",aa.DiagLogLevel.VERBOSE)}}Fp.createLogLevelDiagLogger=$q});var Cs=_(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.DiagAPI=void 0;var Yq=v0(),Xq=h0(),_0=Up(),Hp=Ps(),Qq="diag",c_=class e{constructor(){function t(i){return function(...a){let s=(0,Hp.getGlobal)("diag");if(s)return s[i](...a)}}let n=this,r=(i,a={logLevel:_0.DiagLogLevel.INFO})=>{var s,u,l;if(i===n){let v=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((s=v.stack)!==null&&s!==void 0?s:v.message),!1}typeof a=="number"&&(a={logLevel:a});let c=(0,Hp.getGlobal)("diag"),f=(0,Xq.createLogLevelDiagLogger)((u=a.logLevel)!==null&&u!==void 0?u:_0.DiagLogLevel.INFO,i);if(c&&!a.suppressOverrideMessage){let v=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";c.warn(`Current logger will be overwritten from ${v}`),f.warn(`Current logger will overwrite one already registered from ${v}`)}return(0,Hp.registerGlobal)("diag",f,n,!0)};n.setLogger=r,n.disable=()=>{(0,Hp.unregisterGlobal)(Qq,n)},n.createComponentLogger=i=>new Yq.DiagComponentLogger(i),n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}static instance(){return this._instance||(this._instance=new e),this._instance}};Bp.DiagAPI=c_});var g0=_(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.BaggageImpl=void 0;var u_=class e{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){let n=this._entries.get(t);if(n)return Object.assign({},n)}getAllEntries(){return Array.from(this._entries.entries()).map(([t,n])=>[t,n])}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let r of t)n._entries.delete(r);return n}clear(){return new e}};zp.BaggageImpl=u_});var b0=_(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.baggageEntryMetadataSymbol=void 0;Gp.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var l_=_(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.baggageEntryMetadataFromString=Lo.createBaggage=void 0;var Zq=Cs(),Jq=g0(),ej=b0(),tj=Zq.DiagAPI.instance();function nj(e={}){return new Jq.BaggageImpl(new Map(Object.entries(e)))}Lo.createBaggage=nj;function rj(e){return typeof e!="string"&&(tj.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:ej.baggageEntryMetadataSymbol,toString(){return e}}}Lo.baggageEntryMetadataFromString=rj});var _u=_(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ROOT_CONTEXT=ko.createContextKey=void 0;function ij(e){return Symbol.for(e)}ko.createContextKey=ij;var p_=class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=r=>n._currentContext.get(r),n.setValue=(r,i)=>{let a=new e(n._currentContext);return a._currentContext.set(r,i),a},n.deleteValue=r=>{let i=new e(n._currentContext);return i._currentContext.delete(r),i}}};ko.ROOT_CONTEXT=new p_});var y0=_(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.DiagConsoleLogger=void 0;var d_=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],f_=class{constructor(){function t(n){return function(...r){if(console){let i=console[n];if(typeof i!="function"&&(i=console.log),typeof i=="function")return i.apply(console,r)}}}for(let n=0;n<d_.length;n++)this[d_[n].n]=t(d_[n].c)}};Vp.DiagConsoleLogger=f_});var m_=_(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.createNoopMeter=We.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=We.NOOP_OBSERVABLE_GAUGE_METRIC=We.NOOP_OBSERVABLE_COUNTER_METRIC=We.NOOP_UP_DOWN_COUNTER_METRIC=We.NOOP_HISTOGRAM_METRIC=We.NOOP_COUNTER_METRIC=We.NOOP_METER=We.NoopObservableUpDownCounterMetric=We.NoopObservableGaugeMetric=We.NoopObservableCounterMetric=We.NoopObservableMetric=We.NoopHistogramMetric=We.NoopUpDownCounterMetric=We.NoopCounterMetric=We.NoopMetric=We.NoopMeter=void 0;var Kp=class{constructor(){}createHistogram(t,n){return We.NOOP_HISTOGRAM_METRIC}createCounter(t,n){return We.NOOP_COUNTER_METRIC}createUpDownCounter(t,n){return We.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(t,n){return We.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(t,n){return We.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(t,n){return We.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(t,n){}removeBatchObservableCallback(t){}};We.NoopMeter=Kp;var qo=class{};We.NoopMetric=qo;var Wp=class extends qo{add(t,n){}};We.NoopCounterMetric=Wp;var $p=class extends qo{add(t,n){}};We.NoopUpDownCounterMetric=$p;var Yp=class extends qo{record(t,n){}};We.NoopHistogramMetric=Yp;var jo=class{addCallback(t){}removeCallback(t){}};We.NoopObservableMetric=jo;var Xp=class extends jo{};We.NoopObservableCounterMetric=Xp;var Qp=class extends jo{};We.NoopObservableGaugeMetric=Qp;var Zp=class extends jo{};We.NoopObservableUpDownCounterMetric=Zp;We.NOOP_METER=new Kp;We.NOOP_COUNTER_METRIC=new Wp;We.NOOP_HISTOGRAM_METRIC=new Yp;We.NOOP_UP_DOWN_COUNTER_METRIC=new $p;We.NOOP_OBSERVABLE_COUNTER_METRIC=new Xp;We.NOOP_OBSERVABLE_GAUGE_METRIC=new Qp;We.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new Zp;function aj(){return We.NOOP_METER}We.createNoopMeter=aj});var E0=_(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.ValueType=void 0;var sj;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(sj=gu.ValueType||(gu.ValueType={}))});var v_=_(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.defaultTextMapSetter=Uo.defaultTextMapGetter=void 0;Uo.defaultTextMapGetter={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}};Uo.defaultTextMapSetter={set(e,t,n){e!=null&&(e[t]=n)}}});var T0=_(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.NoopContextManager=void 0;var oj=_u(),h_=class{active(){return oj.ROOT_CONTEXT}with(t,n,r,...i){return n.call(r,...i)}bind(t,n){return n}enable(){return this}disable(){return this}};Jp.NoopContextManager=h_});var bu=_(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.ContextAPI=void 0;var cj=T0(),__=Ps(),S0=Cs(),g_="context",uj=new cj.NoopContextManager,b_=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalContextManager(t){return(0,__.registerGlobal)(g_,t,S0.DiagAPI.instance())}active(){return this._getContextManager().active()}with(t,n,r,...i){return this._getContextManager().with(t,n,r,...i)}bind(t,n){return this._getContextManager().bind(t,n)}_getContextManager(){return(0,__.getGlobal)(g_)||uj}disable(){this._getContextManager().disable(),(0,__.unregisterGlobal)(g_,S0.DiagAPI.instance())}};ed.ContextAPI=b_});var y_=_(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.TraceFlags=void 0;var lj;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(lj=yu.TraceFlags||(yu.TraceFlags={}))});var td=_(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.INVALID_SPAN_CONTEXT=wi.INVALID_TRACEID=wi.INVALID_SPANID=void 0;var pj=y_();wi.INVALID_SPANID="0000000000000000";wi.INVALID_TRACEID="00000000000000000000000000000000";wi.INVALID_SPAN_CONTEXT={traceId:wi.INVALID_TRACEID,spanId:wi.INVALID_SPANID,traceFlags:pj.TraceFlags.NONE}});var rd=_(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.NonRecordingSpan=void 0;var dj=td(),E_=class{constructor(t=dj.INVALID_SPAN_CONTEXT){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,n){return this}setAttributes(t){return this}addEvent(t,n){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,n){}};nd.NonRecordingSpan=E_});var x_=_(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getSpanContext=Ar.setSpanContext=Ar.deleteSpan=Ar.setSpan=Ar.getActiveSpan=Ar.getSpan=void 0;var fj=_u(),mj=rd(),vj=bu(),T_=(0,fj.createContextKey)("OpenTelemetry Context Key SPAN");function S_(e){return e.getValue(T_)||void 0}Ar.getSpan=S_;function hj(){return S_(vj.ContextAPI.getInstance().active())}Ar.getActiveSpan=hj;function x0(e,t){return e.setValue(T_,t)}Ar.setSpan=x0;function _j(e){return e.deleteValue(T_)}Ar.deleteSpan=_j;function gj(e,t){return x0(e,new mj.NonRecordingSpan(t))}Ar.setSpanContext=gj;function bj(e){var t;return(t=S_(e))===null||t===void 0?void 0:t.spanContext()}Ar.getSpanContext=bj});var id=_(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.wrapSpanContext=Ni.isSpanContextValid=Ni.isValidSpanId=Ni.isValidTraceId=void 0;var A0=td(),yj=rd(),Ej=/^([0-9a-f]{32})$/i,Tj=/^[0-9a-f]{16}$/i;function I0(e){return Ej.test(e)&&e!==A0.INVALID_TRACEID}Ni.isValidTraceId=I0;function O0(e){return Tj.test(e)&&e!==A0.INVALID_SPANID}Ni.isValidSpanId=O0;function Sj(e){return I0(e.traceId)&&O0(e.spanId)}Ni.isSpanContextValid=Sj;function xj(e){return new yj.NonRecordingSpan(e)}Ni.wrapSpanContext=xj});var P_=_(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.NoopTracer=void 0;var Aj=bu(),P0=x_(),A_=rd(),Ij=id(),I_=Aj.ContextAPI.getInstance(),O_=class{startSpan(t,n,r=I_.active()){if(!!n?.root)return new A_.NonRecordingSpan;let a=r&&(0,P0.getSpanContext)(r);return Oj(a)&&(0,Ij.isSpanContextValid)(a)?new A_.NonRecordingSpan(a):new A_.NonRecordingSpan}startActiveSpan(t,n,r,i){let a,s,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=r):(a=n,s=r,u=i);let l=s??I_.active(),c=this.startSpan(t,a,l),f=(0,P0.setSpan)(l,c);return I_.with(f,u,void 0,c)}};ad.NoopTracer=O_;function Oj(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}});var R_=_(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.ProxyTracer=void 0;var Pj=P_(),Cj=new Pj.NoopTracer,C_=class{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}startSpan(t,n,r){return this._getTracer().startSpan(t,n,r)}startActiveSpan(t,n,r,i){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Cj}};sd.ProxyTracer=C_});var C0=_(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.NoopTracerProvider=void 0;var Rj=P_(),w_=class{getTracer(t,n,r){return new Rj.NoopTracer}};od.NoopTracerProvider=w_});var D_=_(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.ProxyTracerProvider=void 0;var wj=R_(),Nj=C0(),Dj=new Nj.NoopTracerProvider,N_=class{getTracer(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new wj.ProxyTracer(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Dj}setDelegate(t){this._delegate=t}getDelegateTracer(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)}};cd.ProxyTracerProvider=N_});var R0=_(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.SamplingDecision=void 0;var Mj;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Mj=Eu.SamplingDecision||(Eu.SamplingDecision={}))});var w0=_(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.SpanKind=void 0;var Lj;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Lj=Tu.SpanKind||(Tu.SpanKind={}))});var N0=_(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.SpanStatusCode=void 0;var kj;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(kj=Su.SpanStatusCode||(Su.SpanStatusCode={}))});var D0=_(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.validateValue=Fo.validateKey=void 0;var M_="[_0-9a-z-*/]",qj=`[a-z]${M_}{0,255}`,jj=`[a-z0-9]${M_}{0,240}@[a-z]${M_}{0,13}`,Uj=new RegExp(`^(?:${qj}|${jj})$`),Fj=/^[ -~]{0,255}[!-~]$/,Hj=/,|=/;function Bj(e){return Uj.test(e)}Fo.validateKey=Bj;function zj(e){return Fj.test(e)&&!Hj.test(e)}Fo.validateValue=zj});var j0=_(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.TraceStateImpl=void 0;var M0=D0(),L0=32,Gj=512,k0=",",q0="=",L_=class e{constructor(t){this._internalState=new Map,t&&this._parse(t)}set(t,n){let r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){let n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+q0+this.get(n)),t),[]).join(k0)}_parse(t){t.length>Gj||(this._internalState=t.split(k0).reverse().reduce((n,r)=>{let i=r.trim(),a=i.indexOf(q0);if(a!==-1){let s=i.slice(0,a),u=i.slice(a+1,r.length);(0,M0.validateKey)(s)&&(0,M0.validateValue)(u)&&n.set(s,u)}return n},new Map),this._internalState.size>L0&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,L0))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}};ud.TraceStateImpl=L_});var U0=_(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.createTraceState=void 0;var Vj=j0();function Kj(e){return new Vj.TraceStateImpl(e)}ld.createTraceState=Kj});var F0=_(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.context=void 0;var Wj=bu();pd.context=Wj.ContextAPI.getInstance()});var H0=_(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.diag=void 0;var $j=Cs();dd.diag=$j.DiagAPI.instance()});var B0=_(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.NOOP_METER_PROVIDER=Ho.NoopMeterProvider=void 0;var Yj=m_(),fd=class{getMeter(t,n,r){return Yj.NOOP_METER}};Ho.NoopMeterProvider=fd;Ho.NOOP_METER_PROVIDER=new fd});var G0=_(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.MetricsAPI=void 0;var Xj=B0(),k_=Ps(),z0=Cs(),q_="metrics",j_=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalMeterProvider(t){return(0,k_.registerGlobal)(q_,t,z0.DiagAPI.instance())}getMeterProvider(){return(0,k_.getGlobal)(q_)||Xj.NOOP_METER_PROVIDER}getMeter(t,n,r){return this.getMeterProvider().getMeter(t,n,r)}disable(){(0,k_.unregisterGlobal)(q_,z0.DiagAPI.instance())}};md.MetricsAPI=j_});var V0=_(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.metrics=void 0;var Qj=G0();vd.metrics=Qj.MetricsAPI.getInstance()});var K0=_(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.NoopTextMapPropagator=void 0;var U_=class{inject(t,n){}extract(t,n){return t}fields(){return[]}};hd.NoopTextMapPropagator=U_});var $0=_(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.deleteBaggage=Di.setBaggage=Di.getActiveBaggage=Di.getBaggage=void 0;var Zj=bu(),Jj=_u(),F_=(0,Jj.createContextKey)("OpenTelemetry Baggage Key");function W0(e){return e.getValue(F_)||void 0}Di.getBaggage=W0;function eU(){return W0(Zj.ContextAPI.getInstance().active())}Di.getActiveBaggage=eU;function tU(e,t){return e.setValue(F_,t)}Di.setBaggage=tU;function nU(e){return e.deleteValue(F_)}Di.deleteBaggage=nU});var Q0=_(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.PropagationAPI=void 0;var H_=Ps(),rU=K0(),Y0=v_(),_d=$0(),iU=l_(),X0=Cs(),B_="propagation",aU=new rU.NoopTextMapPropagator,z_=class e{constructor(){this.createBaggage=iU.createBaggage,this.getBaggage=_d.getBaggage,this.getActiveBaggage=_d.getActiveBaggage,this.setBaggage=_d.setBaggage,this.deleteBaggage=_d.deleteBaggage}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalPropagator(t){return(0,H_.registerGlobal)(B_,t,X0.DiagAPI.instance())}inject(t,n,r=Y0.defaultTextMapSetter){return this._getGlobalPropagator().inject(t,n,r)}extract(t,n,r=Y0.defaultTextMapGetter){return this._getGlobalPropagator().extract(t,n,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,H_.unregisterGlobal)(B_,X0.DiagAPI.instance())}_getGlobalPropagator(){return(0,H_.getGlobal)(B_)||aU}};gd.PropagationAPI=z_});var Z0=_(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.propagation=void 0;var sU=Q0();bd.propagation=sU.PropagationAPI.getInstance()});var nA=_(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.TraceAPI=void 0;var G_=Ps(),J0=D_(),eA=id(),Bo=x_(),tA=Cs(),V_="trace",K_=class e{constructor(){this._proxyTracerProvider=new J0.ProxyTracerProvider,this.wrapSpanContext=eA.wrapSpanContext,this.isSpanContextValid=eA.isSpanContextValid,this.deleteSpan=Bo.deleteSpan,this.getSpan=Bo.getSpan,this.getActiveSpan=Bo.getActiveSpan,this.getSpanContext=Bo.getSpanContext,this.setSpan=Bo.setSpan,this.setSpanContext=Bo.setSpanContext}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalTracerProvider(t){let n=(0,G_.registerGlobal)(V_,this._proxyTracerProvider,tA.DiagAPI.instance());return n&&this._proxyTracerProvider.setDelegate(t),n}getTracerProvider(){return(0,G_.getGlobal)(V_)||this._proxyTracerProvider}getTracer(t,n){return this.getTracerProvider().getTracer(t,n)}disable(){(0,G_.unregisterGlobal)(V_,tA.DiagAPI.instance()),this._proxyTracerProvider=new J0.ProxyTracerProvider}};yd.TraceAPI=K_});var rA=_(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.trace=void 0;var oU=nA();Ed.trace=oU.TraceAPI.getInstance()});var it=_(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.trace=Se.propagation=Se.metrics=Se.diag=Se.context=Se.INVALID_SPAN_CONTEXT=Se.INVALID_TRACEID=Se.INVALID_SPANID=Se.isValidSpanId=Se.isValidTraceId=Se.isSpanContextValid=Se.createTraceState=Se.TraceFlags=Se.SpanStatusCode=Se.SpanKind=Se.SamplingDecision=Se.ProxyTracerProvider=Se.ProxyTracer=Se.defaultTextMapSetter=Se.defaultTextMapGetter=Se.ValueType=Se.createNoopMeter=Se.DiagLogLevel=Se.DiagConsoleLogger=Se.ROOT_CONTEXT=Se.createContextKey=Se.baggageEntryMetadataFromString=void 0;var cU=l_();Object.defineProperty(Se,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return cU.baggageEntryMetadataFromString}});var iA=_u();Object.defineProperty(Se,"createContextKey",{enumerable:!0,get:function(){return iA.createContextKey}});Object.defineProperty(Se,"ROOT_CONTEXT",{enumerable:!0,get:function(){return iA.ROOT_CONTEXT}});var uU=y0();Object.defineProperty(Se,"DiagConsoleLogger",{enumerable:!0,get:function(){return uU.DiagConsoleLogger}});var lU=Up();Object.defineProperty(Se,"DiagLogLevel",{enumerable:!0,get:function(){return lU.DiagLogLevel}});var pU=m_();Object.defineProperty(Se,"createNoopMeter",{enumerable:!0,get:function(){return pU.createNoopMeter}});var dU=E0();Object.defineProperty(Se,"ValueType",{enumerable:!0,get:function(){return dU.ValueType}});var aA=v_();Object.defineProperty(Se,"defaultTextMapGetter",{enumerable:!0,get:function(){return aA.defaultTextMapGetter}});Object.defineProperty(Se,"defaultTextMapSetter",{enumerable:!0,get:function(){return aA.defaultTextMapSetter}});var fU=R_();Object.defineProperty(Se,"ProxyTracer",{enumerable:!0,get:function(){return fU.ProxyTracer}});var mU=D_();Object.defineProperty(Se,"ProxyTracerProvider",{enumerable:!0,get:function(){return mU.ProxyTracerProvider}});var vU=R0();Object.defineProperty(Se,"SamplingDecision",{enumerable:!0,get:function(){return vU.SamplingDecision}});var hU=w0();Object.defineProperty(Se,"SpanKind",{enumerable:!0,get:function(){return hU.SpanKind}});var _U=N0();Object.defineProperty(Se,"SpanStatusCode",{enumerable:!0,get:function(){return _U.SpanStatusCode}});var gU=y_();Object.defineProperty(Se,"TraceFlags",{enumerable:!0,get:function(){return gU.TraceFlags}});var bU=U0();Object.defineProperty(Se,"createTraceState",{enumerable:!0,get:function(){return bU.createTraceState}});var W_=id();Object.defineProperty(Se,"isSpanContextValid",{enumerable:!0,get:function(){return W_.isSpanContextValid}});Object.defineProperty(Se,"isValidTraceId",{enumerable:!0,get:function(){return W_.isValidTraceId}});Object.defineProperty(Se,"isValidSpanId",{enumerable:!0,get:function(){return W_.isValidSpanId}});var $_=td();Object.defineProperty(Se,"INVALID_SPANID",{enumerable:!0,get:function(){return $_.INVALID_SPANID}});Object.defineProperty(Se,"INVALID_TRACEID",{enumerable:!0,get:function(){return $_.INVALID_TRACEID}});Object.defineProperty(Se,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return $_.INVALID_SPAN_CONTEXT}});var sA=F0();Object.defineProperty(Se,"context",{enumerable:!0,get:function(){return sA.context}});var oA=H0();Object.defineProperty(Se,"diag",{enumerable:!0,get:function(){return oA.diag}});var cA=V0();Object.defineProperty(Se,"metrics",{enumerable:!0,get:function(){return cA.metrics}});var uA=Z0();Object.defineProperty(Se,"propagation",{enumerable:!0,get:function(){return uA.propagation}});var lA=rA();Object.defineProperty(Se,"trace",{enumerable:!0,get:function(){return lA.trace}});Se.default={context:sA.context,diag:oA.diag,metrics:cA.metrics,propagation:uA.propagation,trace:lA.trace}});var xu=_(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.isTracingSuppressed=Na.unsuppressTracing=Na.suppressTracing=void 0;var yU=it(),Y_=(0,yU.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function EU(e){return e.setValue(Y_,!0)}Na.suppressTracing=EU;function TU(e){return e.deleteValue(Y_)}Na.unsuppressTracing=TU;function SU(e){return e.getValue(Y_)===!0}Na.isTracingSuppressed=SU});var X_=_(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.BAGGAGE_MAX_TOTAL_LENGTH=nr.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=nr.BAGGAGE_MAX_NAME_VALUE_PAIRS=nr.BAGGAGE_HEADER=nr.BAGGAGE_ITEMS_SEPARATOR=nr.BAGGAGE_PROPERTIES_SEPARATOR=nr.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;nr.BAGGAGE_KEY_PAIR_SEPARATOR="=";nr.BAGGAGE_PROPERTIES_SEPARATOR=";";nr.BAGGAGE_ITEMS_SEPARATOR=",";nr.BAGGAGE_HEADER="baggage";nr.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;nr.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;nr.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Q_=_(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.parseKeyPairsIntoRecord=Mi.parsePairKeyValue=Mi.getKeyPairs=Mi.serializeKeyPairs=void 0;var xU=it(),Rs=X_();function AU(e){return e.reduce((t,n)=>{let r=`${t}${t!==""?Rs.BAGGAGE_ITEMS_SEPARATOR:""}${n}`;return r.length>Rs.BAGGAGE_MAX_TOTAL_LENGTH?t:r},"")}Mi.serializeKeyPairs=AU;function IU(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=Rs.BAGGAGE_PROPERTIES_SEPARATOR+n.metadata.toString()),r})}Mi.getKeyPairs=IU;function pA(e){let t=e.split(Rs.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let n=t.shift();if(!n)return;let r=n.split(Rs.BAGGAGE_KEY_PAIR_SEPARATOR);if(r.length!==2)return;let i=decodeURIComponent(r[0].trim()),a=decodeURIComponent(r[1].trim()),s;return t.length>0&&(s=(0,xU.baggageEntryMetadataFromString)(t.join(Rs.BAGGAGE_PROPERTIES_SEPARATOR))),{key:i,value:a,metadata:s}}Mi.parsePairKeyValue=pA;function OU(e){return typeof e!="string"||e.length===0?{}:e.split(Rs.BAGGAGE_ITEMS_SEPARATOR).map(t=>pA(t)).filter(t=>t!==void 0&&t.value.length>0).reduce((t,n)=>(t[n.key]=n.value,t),{})}Mi.parseKeyPairsIntoRecord=OU});var dA=_(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.W3CBaggagePropagator=void 0;var Z_=it(),PU=xu(),ws=X_(),J_=Q_(),eg=class{inject(t,n,r){let i=Z_.propagation.getBaggage(t);if(!i||(0,PU.isTracingSuppressed)(t))return;let a=(0,J_.getKeyPairs)(i).filter(u=>u.length<=ws.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ws.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,J_.serializeKeyPairs)(a);s.length>0&&r.set(n,ws.BAGGAGE_HEADER,s)}extract(t,n,r){let i=r.get(n,ws.BAGGAGE_HEADER),a=Array.isArray(i)?i.join(ws.BAGGAGE_ITEMS_SEPARATOR):i;if(!a)return t;let s={};return a.length===0||(a.split(ws.BAGGAGE_ITEMS_SEPARATOR).forEach(l=>{let c=(0,J_.parsePairKeyValue)(l);if(c){let f={value:c.value};c.metadata&&(f.metadata=c.metadata),s[c.key]=f}}),Object.entries(s).length===0)?t:Z_.propagation.setBaggage(t,Z_.propagation.createBaggage(s))}fields(){return[ws.BAGGAGE_HEADER]}};Td.W3CBaggagePropagator=eg});var fA=_(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.AnchoredClock=void 0;var tg=class{constructor(t,n){this._monotonicClock=n,this._epochMillis=t.now(),this._performanceMillis=n.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};Sd.AnchoredClock=tg});var gA=_(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.isAttributeValue=Da.isAttributeKey=Da.sanitizeAttributes=void 0;var mA=it();function CU(e){let t={};if(typeof e!="object"||e==null)return t;for(let[n,r]of Object.entries(e)){if(!vA(n)){mA.diag.warn(`Invalid attribute key: ${n}`);continue}if(!hA(r)){mA.diag.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}Da.sanitizeAttributes=CU;function vA(e){return typeof e=="string"&&e.length>0}Da.isAttributeKey=vA;function hA(e){return e==null?!0:Array.isArray(e)?RU(e):_A(e)}Da.isAttributeValue=hA;function RU(e){let t;for(let n of e)if(n!=null){if(!t){if(_A(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function _A(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}});var ng=_(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.loggingErrorHandler=void 0;var wU=it();function NU(){return e=>{wU.diag.error(DU(e))}}xd.loggingErrorHandler=NU;function DU(e){return typeof e=="string"?e:JSON.stringify(MU(e))}function MU(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;let i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}});var rg=_(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.globalErrorHandler=zo.setGlobalErrorHandler=void 0;var LU=ng(),bA=(0,LU.loggingErrorHandler)();function kU(e){bA=e}zo.setGlobalErrorHandler=kU;function qU(e){try{bA(e)}catch{}}zo.globalErrorHandler=qU});var ig=_(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.TracesSamplerValues=void 0;var jU;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(jU=Au.TracesSamplerValues||(Au.TracesSamplerValues={}))});var yA=_(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad._globalThis=void 0;Ad._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var sg=_(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.getEnvWithoutDefaults=en.parseEnvironment=en.DEFAULT_ENVIRONMENT=en.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=en.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=en.DEFAULT_ATTRIBUTE_COUNT_LIMIT=en.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Ma=it(),UU=ig(),FU=yA(),HU=",",BU=["OTEL_SDK_DISABLED"];function zU(e){return BU.indexOf(e)>-1}var GU=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function VU(e){return GU.indexOf(e)>-1}var KU=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function WU(e){return KU.indexOf(e)>-1}en.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;en.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;en.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;en.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;en.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,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_AGENT_PORT:6832,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_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Ma.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:en.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:en.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:en.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:en.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:en.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:en.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:UU.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function $U(e,t,n){if(typeof n[e]>"u")return;let r=String(n[e]);t[e]=r.toLowerCase()==="true"}function YU(e,t,n,r=-1/0,i=1/0){if(typeof n[e]<"u"){let a=Number(n[e]);isNaN(a)||(a<r?t[e]=r:a>i?t[e]=i:t[e]=a)}}function XU(e,t,n,r=HU){let i=n[e];typeof i=="string"&&(t[e]=i.split(r).map(a=>a.trim()))}var QU={ALL:Ma.DiagLogLevel.ALL,VERBOSE:Ma.DiagLogLevel.VERBOSE,DEBUG:Ma.DiagLogLevel.DEBUG,INFO:Ma.DiagLogLevel.INFO,WARN:Ma.DiagLogLevel.WARN,ERROR:Ma.DiagLogLevel.ERROR,NONE:Ma.DiagLogLevel.NONE};function ZU(e,t,n){let r=n[e];if(typeof r=="string"){let i=QU[r.toUpperCase()];i!=null&&(t[e]=i)}}function ag(e){let t={};for(let n in en.DEFAULT_ENVIRONMENT){let r=n;switch(r){case"OTEL_LOG_LEVEL":ZU(r,t,e);break;default:if(zU(r))$U(r,t,e);else if(VU(r))YU(r,t,e);else if(WU(r))XU(r,t,e);else{let i=e[r];typeof i<"u"&&i!==null&&(t[r]=String(i))}}}return t}en.parseEnvironment=ag;function JU(){return typeof process<"u"&&process&&process.env?ag(process.env):ag(FU._globalThis)}en.getEnvWithoutDefaults=JU});var TA=_(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.getEnv=void 0;var eF=require("os"),EA=sg();function tF(){let e=(0,EA.parseEnvironment)(process.env);return Object.assign({HOSTNAME:eF.hostname()},EA.DEFAULT_ENVIRONMENT,e)}Id.getEnv=tF});var SA=_(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od._globalThis=void 0;Od._globalThis=typeof globalThis=="object"?globalThis:global});var AA=_(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.hexToBase64=void 0;function xA(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}var nF=Buffer.alloc(8),rF=Buffer.alloc(16);function iF(e){let t;e.length===16?t=nF:e.length===32?t=rF:t=Buffer.alloc(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){let i=xA(e.charCodeAt(r)),a=xA(e.charCodeAt(r+1));t.writeUInt8(i<<4|a,n++)}return t.toString("base64")}Pd.hexToBase64=iF});var PA=_(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.RandomIdGenerator=void 0;var aF=8,OA=16,og=class{constructor(){this.generateTraceId=IA(OA),this.generateSpanId=IA(aF)}};Rd.RandomIdGenerator=og;var Cd=Buffer.allocUnsafe(OA);function IA(e){return function(){for(let n=0;n<e/4;n++)Cd.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(Cd[n]>0);n++)n===e-1&&(Cd[e-1]=1);return Cd.toString("hex",0,e)}}});var CA=_(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.otperformance=void 0;var sF=require("perf_hooks");wd.otperformance=sF.performance});var Dd=_(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.VERSION=void 0;Nd.VERSION="1.10.1"});var RA=_(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MessageTypeValues=Et.RpcGrpcStatusCodeValues=Et.MessagingOperationValues=Et.MessagingDestinationKindValues=Et.HttpFlavorValues=Et.NetHostConnectionSubtypeValues=Et.NetHostConnectionTypeValues=Et.NetTransportValues=Et.FaasInvokedProviderValues=Et.FaasDocumentOperationValues=Et.FaasTriggerValues=Et.DbCassandraConsistencyLevelValues=Et.DbSystemValues=Et.SemanticAttributes=void 0;Et.SemanticAttributes={AWS_LAMBDA_INVOKED_ARN:"aws.lambda.invoked_arn",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",NET_HOST_CONNECTION_TYPE:"net.host.connection.type",NET_HOST_CONNECTION_SUBTYPE:"net.host.connection.subtype",NET_HOST_CARRIER_NAME:"net.host.carrier.name",NET_HOST_CARRIER_MCC:"net.host.carrier.mcc",NET_HOST_CARRIER_MNC:"net.host.carrier.mnc",NET_HOST_CARRIER_ICC:"net.host.carrier.icc",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_CONSUMER_ID:"messaging.consumer_id",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_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message",MESSAGE_TYPE:"message.type",MESSAGE_ID:"message.id",MESSAGE_COMPRESSED_SIZE:"message.compressed_size",MESSAGE_UNCOMPRESSED_SIZE:"message.uncompressed_size"};Et.DbSystemValues={OTHER_SQL:"other_sql",MSSQL:"mssql",MYSQL:"mysql",ORACLE:"oracle",DB2:"db2",POSTGRESQL:"postgresql",REDSHIFT:"redshift",HIVE:"hive",CLOUDSCAPE:"cloudscape",HSQLDB:"hsqldb",PROGRESS:"progress",MAXDB:"maxdb",HANADB:"hanadb",INGRES:"ingres",FIRSTSQL:"firstsql",EDB:"edb",CACHE:"cache",ADABAS:"adabas",FIREBIRD:"firebird",DERBY:"derby",FILEMAKER:"filemaker",INFORMIX:"informix",INSTANTDB:"instantdb",INTERBASE:"interbase",MARIADB:"mariadb",NETEZZA:"netezza",PERVASIVE:"pervasive",POINTBASE:"pointbase",SQLITE:"sqlite",SYBASE:"sybase",TERADATA:"teradata",VERTICA:"vertica",H2:"h2",COLDFUSION:"coldfusion",CASSANDRA:"cassandra",HBASE:"hbase",MONGODB:"mongodb",REDIS:"redis",COUCHBASE:"couchbase",COUCHDB:"couchdb",COSMOSDB:"cosmosdb",DYNAMODB:"dynamodb",NEO4J:"neo4j",GEODE:"geode",ELASTICSEARCH:"elasticsearch",MEMCACHED:"memcached",COCKROACHDB:"cockroachdb"};Et.DbCassandraConsistencyLevelValues={ALL:"all",EACH_QUORUM:"each_quorum",QUORUM:"quorum",LOCAL_QUORUM:"local_quorum",ONE:"one",TWO:"two",THREE:"three",LOCAL_ONE:"local_one",ANY:"any",SERIAL:"serial",LOCAL_SERIAL:"local_serial"};Et.FaasTriggerValues={DATASOURCE:"datasource",HTTP:"http",PUBSUB:"pubsub",TIMER:"timer",OTHER:"other"};Et.FaasDocumentOperationValues={INSERT:"insert",EDIT:"edit",DELETE:"delete"};Et.FaasInvokedProviderValues={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"};Et.NetTransportValues={IP_TCP:"ip_tcp",IP_UDP:"ip_udp",IP:"ip",UNIX:"unix",PIPE:"pipe",INPROC:"inproc",OTHER:"other"};Et.NetHostConnectionTypeValues={WIFI:"wifi",WIRED:"wired",CELL:"cell",UNAVAILABLE:"unavailable",UNKNOWN:"unknown"};Et.NetHostConnectionSubtypeValues={GPRS:"gprs",EDGE:"edge",UMTS:"umts",CDMA:"cdma",EVDO_0:"evdo_0",EVDO_A:"evdo_a",CDMA2000_1XRTT:"cdma2000_1xrtt",HSDPA:"hsdpa",HSUPA:"hsupa",HSPA:"hspa",IDEN:"iden",EVDO_B:"evdo_b",LTE:"lte",EHRPD:"ehrpd",HSPAP:"hspap",GSM:"gsm",TD_SCDMA:"td_scdma",IWLAN:"iwlan",NR:"nr",NRNSA:"nrnsa",LTE_CA:"lte_ca"};Et.HttpFlavorValues={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"};Et.MessagingDestinationKindValues={QUEUE:"queue",TOPIC:"topic"};Et.MessagingOperationValues={RECEIVE:"receive",PROCESS:"process"};Et.RpcGrpcStatusCodeValues={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16};Et.MessageTypeValues={SENT:"SENT",RECEIVED:"RECEIVED"}});var wA=_(Ns=>{"use strict";var oF=Ns&&Ns.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cF=Ns&&Ns.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&oF(t,e,n)};Object.defineProperty(Ns,"__esModule",{value:!0});cF(RA(),Ns)});var NA=_(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.TelemetrySdkLanguageValues=rr.OsTypeValues=rr.HostArchValues=rr.AwsEcsLaunchtypeValues=rr.CloudPlatformValues=rr.CloudProviderValues=rr.SemanticResourceAttributes=void 0;rr.SemanticResourceAttributes={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"};rr.CloudProviderValues={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"};rr.CloudPlatformValues={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"};rr.AwsEcsLaunchtypeValues={EC2:"ec2",FARGATE:"fargate"};rr.HostArchValues={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"};rr.OsTypeValues={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"};rr.TelemetrySdkLanguageValues={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}});var DA=_(Ds=>{"use strict";var uF=Ds&&Ds.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),lF=Ds&&Ds.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&uF(t,e,n)};Object.defineProperty(Ds,"__esModule",{value:!0});lF(NA(),Ds)});var mi=_(La=>{"use strict";var pF=La&&La.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),MA=La&&La.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pF(t,e,n)};Object.defineProperty(La,"__esModule",{value:!0});MA(wA(),La);MA(DA(),La)});var LA=_(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.SDK_INFO=void 0;var dF=Dd(),Iu=mi();Md.SDK_INFO={[Iu.SemanticResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[Iu.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[Iu.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]:Iu.TelemetrySdkLanguageValues.NODEJS,[Iu.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]:dF.VERSION}});var kA=_(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.unrefTimer=void 0;function fF(e){e.unref()}Ld.unrefTimer=fF});var qA=_(jr=>{"use strict";var mF=jr&&jr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ms=jr&&jr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&mF(t,e,n)};Object.defineProperty(jr,"__esModule",{value:!0});Ms(TA(),jr);Ms(SA(),jr);Ms(AA(),jr);Ms(PA(),jr);Ms(CA(),jr);Ms(LA(),jr);Ms(kA(),jr)});var cg=_(Ls=>{"use strict";var vF=Ls&&Ls.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),hF=Ls&&Ls.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vF(t,e,n)};Object.defineProperty(Ls,"__esModule",{value:!0});hF(qA(),Ls)});var HA=_(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.addHrTimes=jt.isTimeInput=jt.isTimeInputHrTime=jt.hrTimeToMicroseconds=jt.hrTimeToMilliseconds=jt.hrTimeToNanoseconds=jt.hrTimeToTimeStamp=jt.hrTimeDuration=jt.timeInputToHrTime=jt.hrTime=jt.getTimeOrigin=jt.millisToHrTime=void 0;var ug=cg(),jA=9,_F=6,gF=Math.pow(10,_F),kd=Math.pow(10,jA);function Ou(e){let t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*gF);return[n,r]}jt.millisToHrTime=Ou;function lg(){let e=ug.otperformance.timeOrigin;if(typeof e!="number"){let t=ug.otperformance;e=t.timing&&t.timing.fetchStart}return e}jt.getTimeOrigin=lg;function UA(e){let t=Ou(lg()),n=Ou(typeof e=="number"?e:ug.otperformance.now());return FA(t,n)}jt.hrTime=UA;function bF(e){if(pg(e))return e;if(typeof e=="number")return e<lg()?UA(e):Ou(e);if(e instanceof Date)return Ou(e.getTime());throw TypeError("Invalid input type")}jt.timeInputToHrTime=bF;function yF(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=kd),[n,r]}jt.hrTimeDuration=yF;function EF(e){let t=jA,n=`${"0".repeat(t)}${e[1]}Z`,r=n.substr(n.length-t-1);return new Date(e[0]*1e3).toISOString().replace("000Z",r)}jt.hrTimeToTimeStamp=EF;function TF(e){return e[0]*kd+e[1]}jt.hrTimeToNanoseconds=TF;function SF(e){return Math.round(e[0]*1e3+e[1]/1e6)}jt.hrTimeToMilliseconds=SF;function xF(e){return Math.round(e[0]*1e6+e[1]/1e3)}jt.hrTimeToMicroseconds=xF;function pg(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}jt.isTimeInputHrTime=pg;function AF(e){return pg(e)||typeof e=="number"||e instanceof Date}jt.isTimeInput=AF;function FA(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=kd&&(n[1]-=kd,n[0]+=1),n}jt.addHrTimes=FA});var zA=_(BA=>{"use strict";Object.defineProperty(BA,"__esModule",{value:!0})});var GA=_(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.ExportResultCode=void 0;var IF;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(IF=Pu.ExportResultCode||(Pu.ExportResultCode={}))});var KA=_(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.CompositePropagator=void 0;var VA=it(),dg=class{constructor(t={}){var n;this._propagators=(n=t.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(r=>typeof r.fields=="function"?r.fields():[]).reduce((r,i)=>r.concat(i),[])))}inject(t,n,r){for(let i of this._propagators)try{i.inject(t,n,r)}catch(a){VA.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${a.message}`)}}extract(t,n,r){return this._propagators.reduce((i,a)=>{try{return a.extract(i,n,r)}catch(s){VA.diag.warn(`Failed to inject with ${a.constructor.name}. Err: ${s.message}`)}return i},t)}fields(){return this._fields.slice()}};qd.CompositePropagator=dg});var WA=_(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.validateValue=Go.validateKey=void 0;var fg="[_0-9a-z-*/]",OF=`[a-z]${fg}{0,255}`,PF=`[a-z0-9]${fg}{0,240}@[a-z]${fg}{0,13}`,CF=new RegExp(`^(?:${OF}|${PF})$`),RF=/^[ -~]{0,255}[!-~]$/,wF=/,|=/;function NF(e){return CF.test(e)}Go.validateKey=NF;function DF(e){return RF.test(e)&&!wF.test(e)}Go.validateValue=DF});var vg=_(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.TraceState=void 0;var $A=WA(),YA=32,MF=512,XA=",",QA="=",mg=class e{constructor(t){this._internalState=new Map,t&&this._parse(t)}set(t,n){let r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){let n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+QA+this.get(n)),t),[]).join(XA)}_parse(t){t.length>MF||(this._internalState=t.split(XA).reverse().reduce((n,r)=>{let i=r.trim(),a=i.indexOf(QA);if(a!==-1){let s=i.slice(0,a),u=i.slice(a+1,r.length);(0,$A.validateKey)(s)&&(0,$A.validateValue)(u)&&n.set(s,u)}return n},new Map),this._internalState.size>YA&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,YA))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}};jd.TraceState=mg});var JA=_(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.W3CTraceContextPropagator=ir.parseTraceParent=ir.TRACE_STATE_HEADER=ir.TRACE_PARENT_HEADER=void 0;var Ud=it(),LF=xu(),kF=vg();ir.TRACE_PARENT_HEADER="traceparent";ir.TRACE_STATE_HEADER="tracestate";var qF="00",jF="(?!ff)[\\da-f]{2}",UF="(?![0]{32})[\\da-f]{32}",FF="(?![0]{16})[\\da-f]{16}",HF="[\\da-f]{2}",BF=new RegExp(`^\\s?(${jF})-(${UF})-(${FF})-(${HF})(-.*)?\\s?$`);function ZA(e){let t=BF.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}ir.parseTraceParent=ZA;var hg=class{inject(t,n,r){let i=Ud.trace.getSpanContext(t);if(!i||(0,LF.isTracingSuppressed)(t)||!(0,Ud.isSpanContextValid)(i))return;let a=`${qF}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Ud.TraceFlags.NONE).toString(16)}`;r.set(n,ir.TRACE_PARENT_HEADER,a),i.traceState&&r.set(n,ir.TRACE_STATE_HEADER,i.traceState.serialize())}extract(t,n,r){let i=r.get(n,ir.TRACE_PARENT_HEADER);if(!i)return t;let a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;let s=ZA(a);if(!s)return t;s.isRemote=!0;let u=r.get(n,ir.TRACE_STATE_HEADER);if(u){let l=Array.isArray(u)?u.join(","):u;s.traceState=new kF.TraceState(typeof l=="string"?l:void 0)}return Ud.trace.setSpanContext(t,s)}fields(){return[ir.TRACE_PARENT_HEADER,ir.TRACE_STATE_HEADER]}};ir.W3CTraceContextPropagator=hg});var tI=_(eI=>{"use strict";Object.defineProperty(eI,"__esModule",{value:!0})});var nI=_(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getRPCMetadata=vi.deleteRPCMetadata=vi.setRPCMetadata=vi.RPCType=void 0;var zF=it(),_g=(0,zF.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),GF;(function(e){e.HTTP="http"})(GF=vi.RPCType||(vi.RPCType={}));function VF(e,t){return e.setValue(_g,t)}vi.setRPCMetadata=VF;function KF(e){return e.deleteValue(_g)}vi.deleteRPCMetadata=KF;function WF(e){return e.getValue(_g)}vi.getRPCMetadata=WF});var bg=_(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.AlwaysOffSampler=void 0;var $F=it(),gg=class{shouldSample(){return{decision:$F.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Fd.AlwaysOffSampler=gg});var Eg=_(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.AlwaysOnSampler=void 0;var YF=it(),yg=class{shouldSample(){return{decision:YF.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Hd.AlwaysOnSampler=yg});var iI=_(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.ParentBasedSampler=void 0;var Bd=it(),XF=rg(),rI=bg(),Tg=Eg(),Sg=class{constructor(t){var n,r,i,a;this._root=t.root,this._root||((0,XF.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Tg.AlwaysOnSampler),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new Tg.AlwaysOnSampler,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new rI.AlwaysOffSampler,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Tg.AlwaysOnSampler,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new rI.AlwaysOffSampler}shouldSample(t,n,r,i,a,s){let u=Bd.trace.getSpanContext(t);return!u||!(0,Bd.isSpanContextValid)(u)?this._root.shouldSample(t,n,r,i,a,s):u.isRemote?u.traceFlags&Bd.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,s):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,s):u.traceFlags&Bd.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,s):this._localParentNotSampled.shouldSample(t,n,r,i,a,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};zd.ParentBasedSampler=Sg});var aI=_(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.TraceIdRatioBasedSampler=void 0;var xg=it(),Ag=class{constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:(0,xg.isValidTraceId)(n)&&this._accumulate(n)<this._upperBound?xg.SamplingDecision.RECORD_AND_SAMPLED:xg.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){let i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n}};Gd.TraceIdRatioBasedSampler=Ag});var lI=_(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.isPlainObject=void 0;var QF="[object Object]",ZF="[object Null]",JF="[object Undefined]",eH=Function.prototype,sI=eH.toString,tH=sI.call(Object),nH=rH(Object.getPrototypeOf,Object),oI=Object.prototype,cI=oI.hasOwnProperty,ks=Symbol?Symbol.toStringTag:void 0,uI=oI.toString;function rH(e,t){return function(n){return e(t(n))}}function iH(e){if(!aH(e)||sH(e)!==QF)return!1;let t=nH(e);if(t===null)return!0;let n=cI.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&sI.call(n)===tH}Vd.isPlainObject=iH;function aH(e){return e!=null&&typeof e=="object"}function sH(e){return e==null?e===void 0?JF:ZF:ks&&ks in Object(e)?oH(e):cH(e)}function oH(e){let t=cI.call(e,ks),n=e[ks],r=!1;try{e[ks]=void 0,r=!0}catch{}let i=uI.call(e);return r&&(t?e[ks]=n:delete e[ks]),i}function cH(e){return uI.call(e)}});var vI=_($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.merge=void 0;var pI=lI(),uH=20;function lH(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=fI(t,e.shift(),0,n);return t}$d.merge=lH;function Ig(e){return Wd(e)?e.slice():e}function fI(e,t,n=0,r){let i;if(!(n>uH)){if(n++,Kd(e)||Kd(t)||mI(t))i=Ig(t);else if(Wd(e)){if(i=e.slice(),Wd(t))for(let a=0,s=t.length;a<s;a++)i.push(Ig(t[a]));else if(Cu(t)){let a=Object.keys(t);for(let s=0,u=a.length;s<u;s++){let l=a[s];i[l]=Ig(t[l])}}}else if(Cu(e))if(Cu(t)){if(!pH(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let s=0,u=a.length;s<u;s++){let l=a[s],c=t[l];if(Kd(c))typeof c>"u"?delete i[l]:i[l]=c;else{let f=i[l],v=c;if(dI(e,l,r)||dI(t,l,r))delete i[l];else{if(Cu(f)&&Cu(v)){let b=r.get(f)||[],T=r.get(v)||[];b.push({obj:e,key:l}),T.push({obj:t,key:l}),r.set(f,b),r.set(v,T)}i[l]=fI(i[l],c,n,r)}}}}else i=t;return i}}function dI(e,t,n){let r=n.get(e[t])||[];for(let i=0,a=r.length;i<a;i++){let s=r[i];if(s.key===t&&s.obj===e)return!0}return!1}function Wd(e){return Array.isArray(e)}function mI(e){return typeof e=="function"}function Cu(e){return!Kd(e)&&!Wd(e)&&!mI(e)&&typeof e=="object"}function Kd(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function pH(e,t){return!(!(0,pI.isPlainObject)(e)||!(0,pI.isPlainObject)(t))}});var _I=_(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.isUrlIgnored=Vo.urlMatches=void 0;function hI(e,t){return typeof t=="string"?e===t:!!e.match(t)}Vo.urlMatches=hI;function dH(e,t){if(!t)return!1;for(let n of t)if(hI(e,n))return!0;return!1}Vo.isUrlIgnored=dH});var gI=_(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.isWrapped=void 0;function fH(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}Yd.isWrapped=fH});var bI=_(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.Deferred=void 0;var Og=class{constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};Xd.Deferred=Og});var yI=_(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.BindOnceFuture=void 0;var mH=bI(),Pg=class{constructor(t,n){this._callback=t,this._that=n,this._isCalled=!1,this._deferred=new mH.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}};Qd.BindOnceFuture=Pg});var TI=_(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd._export=void 0;var EI=it(),vH=xu();function hH(e,t){return new Promise(n=>{EI.context.with((0,vH.suppressTracing)(EI.context.active()),()=>{e.export(t,r=>{n(r)})})})}Zd._export=hH});var gr=_(at=>{"use strict";var _H=at&&at.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Nt=at&&at.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&_H(t,e,n)};Object.defineProperty(at,"__esModule",{value:!0});at.internal=at.baggageUtils=void 0;Nt(dA(),at);Nt(fA(),at);Nt(gA(),at);Nt(rg(),at);Nt(ng(),at);Nt(HA(),at);Nt(zA(),at);Nt(GA(),at);Nt(Dd(),at);at.baggageUtils=Q_();Nt(cg(),at);Nt(KA(),at);Nt(JA(),at);Nt(tI(),at);Nt(nI(),at);Nt(bg(),at);Nt(Eg(),at);Nt(iI(),at);Nt(aI(),at);Nt(xu(),at);Nt(vg(),at);Nt(sg(),at);Nt(vI(),at);Nt(ig(),at);Nt(_I(),at);Nt(gI(),at);Nt(yI(),at);Nt(Dd(),at);var gH=TI();at.internal={_export:gH._export}});var SI=_(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.ExceptionEventName=void 0;Jd.ExceptionEventName="exception"});var Rg=_(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.Span=void 0;var Li=it(),ar=gr(),qs=mi(),bH=SI(),Cg=class{constructor(t,n,r,i,a,s,u=[],l,c){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Li.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=i,this.parentSpanId=s,this.kind=a,this.links=u;let f=Date.now();this._performanceStartTime=ar.otperformance.now(),this._performanceOffset=f-(this._performanceStartTime+(0,ar.getTimeOrigin)()),this._startTimeProvided=l!=null,this.startTime=this._getTime(l??f),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}spanContext(){return this._spanContext}setAttribute(t,n){return n==null||this._isSpanEnded()?this:t.length===0?(Li.diag.warn(`Invalid attribute key: ${t}`),this):(0,ar.isAttributeValue)(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this):(Li.diag.warn(`Invalid attribute value set for key: ${t}`),this)}setAttributes(t){for(let[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Li.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(Li.diag.warn("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,ar.isTimeInput)(n)&&((0,ar.isTimeInput)(r)||(r=n),n=void 0);let i=(0,ar.sanitizeAttributes)(n);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}setStatus(t){return this._isSpanEnded()?this:(this.status=t,this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Li.diag.error("You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=(0,ar.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(Li.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<ar.otperformance.now())return(0,ar.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,ar.millisToHrTime)(t);if(t instanceof Date)return(0,ar.millisToHrTime)(t.getTime());if((0,ar.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,ar.millisToHrTime)(Date.now());let n=ar.otperformance.now()-this._performanceStartTime;return(0,ar.addHrTimes)(this.startTime,(0,ar.millisToHrTime)(n))}isRecording(){return this._ended===!1}recordException(t,n){let r={};typeof t=="string"?r[qs.SemanticAttributes.EXCEPTION_MESSAGE]=t:t&&(t.code?r[qs.SemanticAttributes.EXCEPTION_TYPE]=t.code.toString():t.name&&(r[qs.SemanticAttributes.EXCEPTION_TYPE]=t.name),t.message&&(r[qs.SemanticAttributes.EXCEPTION_MESSAGE]=t.message),t.stack&&(r[qs.SemanticAttributes.EXCEPTION_STACKTRACE]=t.stack)),r[qs.SemanticAttributes.EXCEPTION_TYPE]||r[qs.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(bH.ExceptionEventName,r,n):Li.diag.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){return this._ended&&Li.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substr(0,n)}_truncateToSize(t){let n=this._attributeValueLengthLimit;return n<=0?(Li.diag.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}};ef.Span=Cg});var wu=_(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.SamplingDecision=void 0;var yH;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(yH=Ru.SamplingDecision||(Ru.SamplingDecision={}))});var nf=_(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.AlwaysOffSampler=void 0;var EH=wu(),wg=class{shouldSample(){return{decision:EH.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};tf.AlwaysOffSampler=wg});var af=_(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.AlwaysOnSampler=void 0;var TH=wu(),Ng=class{shouldSample(){return{decision:TH.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};rf.AlwaysOnSampler=Ng});var Lg=_(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.ParentBasedSampler=void 0;var sf=it(),SH=gr(),xI=nf(),Dg=af(),Mg=class{constructor(t){var n,r,i,a;this._root=t.root,this._root||((0,SH.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Dg.AlwaysOnSampler),this._remoteParentSampled=(n=t.remoteParentSampled)!==null&&n!==void 0?n:new Dg.AlwaysOnSampler,this._remoteParentNotSampled=(r=t.remoteParentNotSampled)!==null&&r!==void 0?r:new xI.AlwaysOffSampler,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Dg.AlwaysOnSampler,this._localParentNotSampled=(a=t.localParentNotSampled)!==null&&a!==void 0?a:new xI.AlwaysOffSampler}shouldSample(t,n,r,i,a,s){let u=sf.trace.getSpanContext(t);return!u||!(0,sf.isSpanContextValid)(u)?this._root.shouldSample(t,n,r,i,a,s):u.isRemote?u.traceFlags&sf.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,s):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,s):u.traceFlags&sf.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,s):this._localParentNotSampled.shouldSample(t,n,r,i,a,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};of.ParentBasedSampler=Mg});var qg=_(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.TraceIdRatioBasedSampler=void 0;var xH=it(),AI=wu(),kg=class{constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:(0,xH.isValidTraceId)(n)&&this._accumulate(n)<this._upperBound?AI.SamplingDecision.RECORD_AND_SAMPLED:AI.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){let i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n}};cf.TraceIdRatioBasedSampler=kg});var Fg=_(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.buildSamplerFromEnv=Wo.loadDefaultConfig=void 0;var uf=it(),Gn=gr(),II=nf(),jg=af(),Ug=Lg(),OI=qg(),AH=(0,Gn.getEnv)(),IH=Gn.TracesSamplerValues.AlwaysOn,Ko=1;function OH(){return{sampler:CI(AH),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,Gn.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,Gn.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,Gn.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,Gn.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,Gn.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,Gn.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,Gn.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,Gn.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}Wo.loadDefaultConfig=OH;function CI(e=(0,Gn.getEnv)()){switch(e.OTEL_TRACES_SAMPLER){case Gn.TracesSamplerValues.AlwaysOn:return new jg.AlwaysOnSampler;case Gn.TracesSamplerValues.AlwaysOff:return new II.AlwaysOffSampler;case Gn.TracesSamplerValues.ParentBasedAlwaysOn:return new Ug.ParentBasedSampler({root:new jg.AlwaysOnSampler});case Gn.TracesSamplerValues.ParentBasedAlwaysOff:return new Ug.ParentBasedSampler({root:new II.AlwaysOffSampler});case Gn.TracesSamplerValues.TraceIdRatio:return new OI.TraceIdRatioBasedSampler(PI(e));case Gn.TracesSamplerValues.ParentBasedTraceIdRatio:return new Ug.ParentBasedSampler({root:new OI.TraceIdRatioBasedSampler(PI(e))});default:return uf.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${IH}".`),new jg.AlwaysOnSampler}}Wo.buildSamplerFromEnv=CI;function PI(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return uf.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Ko}.`),Ko;let t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(uf.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Ko}.`),Ko):t<0||t>1?(uf.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Ko}.`),Ko):t}});var Bg=_($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.reconfigureLimits=$o.mergeConfig=void 0;var RI=Fg(),Hg=gr();function PH(e){let t={sampler:(0,RI.buildSamplerFromEnv)()},n=(0,RI.loadDefaultConfig)(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}$o.mergeConfig=PH;function CH(e){var t,n,r,i,a,s,u,l,c,f,v,b;let T=Object.assign({},e.spanLimits),x=(0,Hg.getEnvWithoutDefaults)();return T.attributeCountLimit=(s=(a=(i=(n=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&n!==void 0?n:(r=e.generalLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&i!==void 0?i:x.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:x.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:Hg.DEFAULT_ATTRIBUTE_COUNT_LIMIT,T.attributeValueLengthLimit=(b=(v=(f=(l=(u=e.spanLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&l!==void 0?l:(c=e.generalLimits)===null||c===void 0?void 0:c.attributeValueLengthLimit)!==null&&f!==void 0?f:x.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&v!==void 0?v:x.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&b!==void 0?b:Hg.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:T})}$o.reconfigureLimits=CH});var wI=_(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.BatchSpanProcessorBase=void 0;var Yo=it(),js=gr(),zg=class{constructor(t,n){this._exporter=t,this._finishedSpans=[],this._droppedSpansCount=0;let r=(0,js.getEnv)();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new js.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Yo.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,n){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&Yo.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Yo.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Yo.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,n)=>{let r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let a=0,s=i;a<s;a++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,n)=>{let r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Yo.context.with((0,js.suppressTracing)(Yo.context.active()),()=>{let i=this._finishedSpans.splice(0,this._maxExportBatchSize),a=()=>this._exporter.export(i,u=>{var l;clearTimeout(r),u.code===js.ExportResultCode.SUCCESS?t():n((l=u.error)!==null&&l!==void 0?l:new Error("BatchSpanProcessor: span export failed"))}),s=i.map(u=>u.resource).filter(u=>u.asyncAttributesPending);s.length===0?a():Promise.all(s.map(u=>{var l;return(l=u.waitForAsyncAttributes)===null||l===void 0?void 0:l.call(u)})).then(a,u=>{(0,js.globalErrorHandler)(u),n(u)})})})}_maybeStartTimer(){this._timer===void 0&&(this._timer=setTimeout(()=>{this._flushOneBatch().then(()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(t=>{(0,js.globalErrorHandler)(t)})},this._scheduledDelayMillis),(0,js.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};lf.BatchSpanProcessorBase=zg});var NI=_(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.BatchSpanProcessor=void 0;var RH=wI(),Gg=class extends RH.BatchSpanProcessorBase{onShutdown(){}};pf.BatchSpanProcessor=Gg});var LI=_(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.RandomIdGenerator=void 0;var wH=8,MI=16,Vg=class{constructor(){this.generateTraceId=DI(MI),this.generateSpanId=DI(wH)}};ff.RandomIdGenerator=Vg;var df=Buffer.allocUnsafe(MI);function DI(e){return function(){for(let n=0;n<e/4;n++)df.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(df[n]>0);n++)n===e-1&&(df[e-1]=1);return df.toString("hex",0,e)}}});var qI=_(ka=>{"use strict";var NH=ka&&ka.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),kI=ka&&ka.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&NH(t,e,n)};Object.defineProperty(ka,"__esModule",{value:!0});kI(NI(),ka);kI(LI(),ka)});var mf=_(Us=>{"use strict";var DH=Us&&Us.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),MH=Us&&Us.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&DH(t,e,n)};Object.defineProperty(Us,"__esModule",{value:!0});MH(qI(),Us)});var jI=_(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.Tracer=void 0;var Vn=it(),vf=gr(),LH=Rg(),kH=Bg(),qH=mf(),Kg=class{constructor(t,n,r){this._tracerProvider=r;let i=(0,kH.mergeConfig)(n);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=n.idGenerator||new qH.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=t}startSpan(t,n={},r=Vn.context.active()){var i,a,s;n.root&&(r=Vn.trace.deleteSpan(r));let u=Vn.trace.getSpan(r);if((0,vf.isTracingSuppressed)(r))return Vn.diag.debug("Instrumentation suppressed, returning Noop Span"),Vn.trace.wrapSpanContext(Vn.INVALID_SPAN_CONTEXT);let l=u?.spanContext(),c=this._idGenerator.generateSpanId(),f,v,b;!l||!Vn.trace.isSpanContextValid(l)?f=this._idGenerator.generateTraceId():(f=l.traceId,v=l.traceState,b=l.spanId);let T=(i=n.kind)!==null&&i!==void 0?i:Vn.SpanKind.INTERNAL,x=((a=n.links)!==null&&a!==void 0?a:[]).map(ut=>({context:ut.context,attributes:(0,vf.sanitizeAttributes)(ut.attributes)})),M=(0,vf.sanitizeAttributes)(n.attributes),N=this._sampler.shouldSample(r,f,t,T,M,x);v=(s=N.traceState)!==null&&s!==void 0?s:v;let se=N.decision===Vn.SamplingDecision.RECORD_AND_SAMPLED?Vn.TraceFlags.SAMPLED:Vn.TraceFlags.NONE,ce={traceId:f,spanId:c,traceFlags:se,traceState:v};if(N.decision===Vn.SamplingDecision.NOT_RECORD)return Vn.diag.debug("Recording is off, propagating context in a non-recording span"),Vn.trace.wrapSpanContext(ce);let be=new LH.Span(this,r,t,ce,T,b,x,n.startTime),xe=(0,vf.sanitizeAttributes)(Object.assign(M,N.attributes));return be.setAttributes(xe),be}startActiveSpan(t,n,r,i){let a,s,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=r):(a=n,s=r,u=i);let l=s??Vn.context.active(),c=this.startSpan(t,a,l),f=Vn.trace.setSpan(l,c);return Vn.context.with(f,u,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};hf.Tracer=Kg});var UI=_(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.defaultServiceName=void 0;function jH(){return`unknown_service:${process.argv0}`}_f.defaultServiceName=jH});var Wg=_(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.normalizeType=Xo.normalizeArch=void 0;var UH=e=>{switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}};Xo.normalizeArch=UH;var FH=e=>{switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};Xo.normalizeType=FH});var bf=_(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.execAsync=void 0;var HH=require("child_process"),BH=require("util");gf.execAsync=BH.promisify(HH.exec)});var FI=_(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.getMachineId=void 0;var zH=bf(),GH=it();async function VH(){try{let t=(await(0,zH.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
`).find(r=>r.includes("IOPlatformUUID"));if(!t)return"";let n=t.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(e){GH.diag.debug(`error reading machine id: ${e}`)}return""}yf.getMachineId=VH});var HI=_(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.getMachineId=void 0;var KH=require("fs"),WH=it();async function $H(){let e=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let t of e)try{return(await KH.promises.readFile(t,{encoding:"utf8"})).trim()}catch(n){WH.diag.debug(`error reading machine id: ${n}`)}return""}Ef.getMachineId=$H});var zI=_(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.getMachineId=void 0;var YH=require("fs"),XH=bf(),BI=it();async function QH(){try{return(await YH.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(e){BI.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,XH.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(e){BI.diag.debug(`error reading machine id: ${e}`)}return""}Tf.getMachineId=QH});var VI=_(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.getMachineId=void 0;var GI=require("process"),ZH=bf(),JH=it();async function eB(){let e="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",t="%windir%\\System32\\REG.exe";GI.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in GI.env&&(t="%windir%\\sysnative\\cmd.exe /c "+t);try{let r=(await(0,ZH.execAsync)(`${t} ${e}`)).stdout.split("REG_SZ");if(r.length===2)return r[1].trim()}catch(n){JH.diag.debug(`error reading machine id: ${n}`)}return""}Sf.getMachineId=eB});var KI=_(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.getMachineId=void 0;var tB=it();async function nB(){return tB.diag.debug("could not read machine-id: unsupported platform"),""}xf.getMachineId=nB});var WI=_(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.getMachineId=void 0;var rB=require("process"),Qo;sa.getMachineId=Qo;switch(rB.platform){case"darwin":sa.getMachineId=Qo=FI().getMachineId;break;case"linux":sa.getMachineId=Qo=HI().getMachineId;break;case"freebsd":sa.getMachineId=Qo=zI().getMachineId;break;case"win32":sa.getMachineId=Qo=VI().getMachineId;break;default:sa.getMachineId=Qo=KI().getMachineId}});var Xg=_(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.hostDetectorSync=void 0;var $g=mi(),iB=Fs(),$I=require("os"),aB=Wg(),sB=WI(),Yg=class{detect(t){let n={[$g.SemanticResourceAttributes.HOST_NAME]:(0,$I.hostname)(),[$g.SemanticResourceAttributes.HOST_ARCH]:(0,aB.normalizeArch)((0,$I.arch)())};return new iB.Resource(n,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,sB.getMachineId)().then(t=>{let n={};return t&&(n[$g.SemanticResourceAttributes.HOST_ID]=t),n})}};Af.hostDetectorSync=new Yg});var YI=_(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.hostDetector=void 0;var oB=Xg(),Qg=class{detect(t){return Promise.resolve(oB.hostDetectorSync.detect(t))}};If.hostDetector=new Qg});var Jg=_(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.osDetectorSync=void 0;var XI=mi(),cB=Fs(),QI=require("os"),uB=Wg(),Zg=class{detect(t){let n={[XI.SemanticResourceAttributes.OS_TYPE]:(0,uB.normalizeType)((0,QI.platform)()),[XI.SemanticResourceAttributes.OS_VERSION]:(0,QI.release)()};return new cB.Resource(n)}};Of.osDetectorSync=new Zg});var ZI=_(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.osDetector=void 0;var lB=Jg(),eb=class{detect(t){return Promise.resolve(lB.osDetectorSync.detect(t))}};Pf.osDetector=new eb});var JI=_(hi=>{"use strict";var pB=hi&&hi.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Nu=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pB(t,e,n)};Object.defineProperty(hi,"__esModule",{value:!0});Nu(UI(),hi);Nu(YI(),hi);Nu(ZI(),hi);Nu(Xg(),hi);Nu(Jg(),hi)});var tb=_(Hs=>{"use strict";var dB=Hs&&Hs.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),fB=Hs&&Hs.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&dB(t,e,n)};Object.defineProperty(Hs,"__esModule",{value:!0});fB(JI(),Hs)});var Fs=_(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Resource=void 0;var eO=it(),Bs=mi(),nb=gr(),mB=tb(),Du=class e{constructor(t,n){var r;this._attributes=t,this.asyncAttributesPending=n!=null,this._syncAttributes=(r=this._attributes)!==null&&r!==void 0?r:{},this._asyncAttributesPromise=n?.then(i=>(this._attributes=Object.assign({},this._attributes,i),this.asyncAttributesPending=!1,i),i=>(eO.diag.debug("a resource's async attributes promise rejected: %s",i),this.asyncAttributesPending=!1,{}))}static empty(){return e.EMPTY}static default(){return new e({[Bs.SemanticResourceAttributes.SERVICE_NAME]:(0,mB.defaultServiceName)(),[Bs.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]:nb.SDK_INFO[Bs.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],[Bs.SemanticResourceAttributes.TELEMETRY_SDK_NAME]:nb.SDK_INFO[Bs.SemanticResourceAttributes.TELEMETRY_SDK_NAME],[Bs.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]:nb.SDK_INFO[Bs.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]})}get attributes(){var t;return this.asyncAttributesPending&&eO.diag.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(t){var n;if(!t)return this;let r=Object.assign(Object.assign({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(r);let i=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(([a,s])=>{var u;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),a),(u=t._syncAttributes)!==null&&u!==void 0?u:t.attributes),s)});return new e(r,i)}};Cf.Resource=Du;Du.EMPTY=new Du({})});var nO=_(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var iO=_(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0})});var sO=_(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var oO=_(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.browserDetector=void 0;var vB=wf(),rb=class{detect(t){return Promise.resolve(vB.browserDetectorSync.detect(t))}};Rf.browserDetector=new rb});var ab=_(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.envDetectorSync=void 0;var hB=it(),_B=gr(),gB=mi(),bB=Fs(),ib=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."}detect(t){let n={},r=(0,_B.getEnv)(),i=r.OTEL_RESOURCE_ATTRIBUTES,a=r.OTEL_SERVICE_NAME;if(i)try{let s=this._parseResourceAttributes(i);Object.assign(n,s)}catch(s){hB.diag.debug(`EnvDetector failed: ${s.message}`)}return a&&(n[gB.SemanticResourceAttributes.SERVICE_NAME]=a),new bB.Resource(n)}_parseResourceAttributes(t){if(!t)return{};let n={},r=t.split(this._COMMA_SEPARATOR,-1);for(let i of r){let a=i.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length!==2)continue;let[s,u]=a;if(s=s.trim(),u=u.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(u))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);n[s]=decodeURIComponent(u)}return n}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r<33||r===44||r===59||r===92||r>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}};Nf.envDetectorSync=new ib});var cO=_(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.envDetector=void 0;var yB=ab(),sb=class{detect(t){return Promise.resolve(yB.envDetectorSync.detect(t))}};Df.envDetector=new sb});var ub=_(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.processDetectorSync=void 0;var EB=it(),Qr=mi(),ob=Fs(),cb=class{detect(t){if(typeof process!="object")return ob.Resource.empty();let n={[Qr.SemanticResourceAttributes.PROCESS_PID]:process.pid,[Qr.SemanticResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[Qr.SemanticResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[Qr.SemanticResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||"",[Qr.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]:process.versions.node,[Qr.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]:"nodejs",[Qr.SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};return this._getResourceAttributes(n,t)}_getResourceAttributes(t,n){return t[Qr.SemanticResourceAttributes.PROCESS_EXECUTABLE_NAME]===""||t[Qr.SemanticResourceAttributes.PROCESS_EXECUTABLE_PATH]===""||t[Qr.SemanticResourceAttributes.PROCESS_COMMAND]===""||t[Qr.SemanticResourceAttributes.PROCESS_COMMAND_LINE]===""||t[Qr.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]===""?(EB.diag.debug("ProcessDetector failed: Unable to find required process resources. "),ob.Resource.empty()):new ob.Resource(Object.assign({},t))}};Mf.processDetectorSync=new cb});var uO=_(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.processDetector=void 0;var TB=ub(),lb=class{detect(t){return Promise.resolve(TB.processDetectorSync.detect(t))}};Lf.processDetector=new lb});var lO=_(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.browserDetectorSync=void 0;var kf=mi(),pb=wf(),SB=it(),db=class{detect(t){if(!(typeof navigator<"u"))return pb.Resource.empty();let r={[kf.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]:"browser",[kf.SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[kf.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(r,t)}_getResourceAttributes(t,n){return t[kf.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]===""?(SB.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),pb.Resource.empty()):new pb.Resource(Object.assign({},t))}};qf.browserDetectorSync=new db});var pO=_(Zr=>{"use strict";var xB=Zr&&Zr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Zo=Zr&&Zr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xB(t,e,n)};Object.defineProperty(Zr,"__esModule",{value:!0});Zo(oO(),Zr);Zo(cO(),Zr);Zo(uO(),Zr);Zo(lO(),Zr);Zo(ab(),Zr);Zo(ub(),Zr)});var dO=_(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.isPromiseLike=void 0;var AB=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";jf.isPromiseLike=AB});var mO=_(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.detectResourcesSync=ec.detectResources=void 0;var Mu=Fs(),Jo=it(),IB=dO(),OB=async(e={})=>{let t=await Promise.all((e.detectors||[]).map(async n=>{try{let r=await n.detect(e);return Jo.diag.debug(`${n.constructor.name} found resource.`,r),r}catch(r){return Jo.diag.debug(`${n.constructor.name} failed: ${r.message}`),Mu.Resource.empty()}}));return fO(t),t.reduce((n,r)=>n.merge(r),Mu.Resource.empty())};ec.detectResources=OB;var PB=(e={})=>{var t;let n=((t=e.detectors)!==null&&t!==void 0?t:[]).map(i=>{try{let a=i.detect(e),s;if((0,IB.isPromiseLike)(a)){let u=async()=>(await a).attributes;s=new Mu.Resource({},u())}else s=a;return s.waitForAsyncAttributes?s.waitForAsyncAttributes().then(()=>Jo.diag.debug(`${i.constructor.name} found resource.`,s)):Jo.diag.debug(`${i.constructor.name} found resource.`,s),s}catch(a){return Jo.diag.error(`${i.constructor.name} failed: ${a.message}`),Mu.Resource.empty()}}),r=n.reduce((i,a)=>i.merge(a),Mu.Resource.empty());return r.waitForAsyncAttributes&&r.waitForAsyncAttributes().then(()=>{fO(n)}),r};ec.detectResourcesSync=PB;var fO=e=>{e.forEach(t=>{if(Object.keys(t.attributes).length>0){let n=JSON.stringify(t.attributes,null,4);Jo.diag.verbose(n)}})}});var wf=_(Ur=>{"use strict";var CB=Ur&&Ur.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),zs=Ur&&Ur.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&CB(t,e,n)};Object.defineProperty(Ur,"__esModule",{value:!0});zs(Fs(),Ur);zs(nO(),Ur);zs(tb(),Ur);zs(iO(),Ur);zs(sO(),Ur);zs(pO(),Ur);zs(mO(),Ur)});var vO=_(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.MultiSpanProcessor=void 0;var RB=gr(),fb=class{constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{(0,RB.globalErrorHandler)(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(let r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(let n of this._spanProcessors)n.onEnd(t)}shutdown(){let t=[];for(let n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}};Uf.MultiSpanProcessor=fb});var vb=_(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.NoopSpanProcessor=void 0;var mb=class{onStart(t,n){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};Ff.NoopSpanProcessor=mb});var _O=_(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.BasicTracerProvider=Gs.ForceFlushState=void 0;var tc=it(),rc=gr(),hO=wf(),wB=hb(),NB=Fg(),DB=vO(),MB=vb(),LB=mf(),kB=Bg(),nc;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(nc=Gs.ForceFlushState||(Gs.ForceFlushState={}));var Lu=class{constructor(t={}){var n;this._registeredSpanProcessors=[],this._tracers=new Map;let r=(0,rc.merge)({},(0,NB.loadDefaultConfig)(),(0,kB.reconfigureLimits)(t));this.resource=(n=r.resource)!==null&&n!==void 0?n:hO.Resource.empty(),this.resource=hO.Resource.default().merge(this.resource),this._config=Object.assign({},r,{resource:this.resource});let i=this._buildExporterFromEnv();if(i!==void 0){let a=new LB.BatchSpanProcessor(i);this.activeSpanProcessor=a}else this.activeSpanProcessor=new MB.NoopSpanProcessor}getTracer(t,n,r){let i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new wB.Tracer({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this)),this._tracers.get(i)}addSpanProcessor(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(n=>tc.diag.error("Error while trying to shutdown current span processor",n)),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new DB.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(t={}){tc.trace.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&tc.context.setGlobalContextManager(t.contextManager),t.propagator&&tc.propagation.setGlobalPropagator(t.propagator)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(r=>new Promise(i=>{let a,s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=nc.timeout},t);r.forceFlush().then(()=>{clearTimeout(s),a!==nc.timeout&&(a=nc.resolved,i(a))}).catch(u=>{clearTimeout(s),a=nc.error,i(u)})}));return new Promise((r,i)=>{Promise.all(n).then(a=>{let s=a.filter(u=>u!==nc.resolved);s.length>0?i(s):r()}).catch(a=>i([a]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(t){var n;return(n=this.constructor._registeredPropagators.get(t))===null||n===void 0?void 0:n()}_getSpanExporter(t){var n;return(n=this.constructor._registeredExporters.get(t))===null||n===void 0?void 0:n()}_buildPropagatorFromEnv(){let t=Array.from(new Set((0,rc.getEnv)().OTEL_PROPAGATORS)),r=t.map(i=>{let a=this._getPropagator(i);return a||tc.diag.warn(`Propagator "${i}" requested through environment variable is unavailable.`),a}).reduce((i,a)=>(a&&i.push(a),i),[]);if(r.length!==0)return t.length===1?r[0]:new rc.CompositePropagator({propagators:r})}_buildExporterFromEnv(){let t=(0,rc.getEnv)().OTEL_TRACES_EXPORTER;if(t==="none"||t==="")return;let n=this._getSpanExporter(t);return n||tc.diag.error(`Exporter "${t}" requested through environment variable is unavailable.`),n}};Gs.BasicTracerProvider=Lu;Lu._registeredPropagators=new Map([["tracecontext",()=>new rc.W3CTraceContextPropagator],["baggage",()=>new rc.W3CBaggagePropagator]]);Lu._registeredExporters=new Map});var gO=_(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.ConsoleSpanExporter=void 0;var _b=gr(),gb=class{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(t){var n;return{traceId:t.spanContext().traceId,parentId:t.parentSpanId,traceState:(n=t.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:(0,_b.hrTimeToMicroseconds)(t.startTime),duration:(0,_b.hrTimeToMicroseconds)(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(let r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:_b.ExportResultCode.SUCCESS})}};Hf.ConsoleSpanExporter=gb});var yO=_(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.InMemorySpanExporter=void 0;var bO=gr(),bb=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(t,n){if(this._stopped)return n({code:bO.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>n({code:bO.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};Bf.InMemorySpanExporter=bb});var TO=_(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0})});var SO=_(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.SimpleSpanProcessor=void 0;var qB=it(),ic=gr(),yb=class{constructor(t){this._exporter=t,this._shutdownOnce=new ic.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports))}onStart(t,n){}onEnd(t){var n,r;if(this._shutdownOnce.isCalled||!(t.spanContext().traceFlags&qB.TraceFlags.SAMPLED))return;let i=()=>ic.internal._export(this._exporter,[t]).then(a=>{var s;a.code!==ic.ExportResultCode.SUCCESS&&(0,ic.globalErrorHandler)((s=a.error)!==null&&s!==void 0?s:new Error(`SimpleSpanProcessor: span export failed (status ${a})`))}).catch(a=>{(0,ic.globalErrorHandler)(a)});if(t.resource.asyncAttributesPending){let a=(r=(n=t.resource).waitForAsyncAttributes)===null||r===void 0?void 0:r.call(n).then(()=>(a!=null&&this._unresolvedExports.delete(a),i()),s=>(0,ic.globalErrorHandler)(s));a!=null&&this._unresolvedExports.add(a)}else i()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};zf.SimpleSpanProcessor=yb});var AO=_(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0})});var OO=_(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var CO=_(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var wO=_(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0})});var DO=_(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var hb=_(Ht=>{"use strict";var jB=Ht&&Ht.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Rn=Ht&&Ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jB(t,e,n)};Object.defineProperty(Ht,"__esModule",{value:!0});Rn(jI(),Ht);Rn(_O(),Ht);Rn(mf(),Ht);Rn(gO(),Ht);Rn(yO(),Ht);Rn(TO(),Ht);Rn(SO(),Ht);Rn(AO(),Ht);Rn(vb(),Ht);Rn(nf(),Ht);Rn(af(),Ht);Rn(Lg(),Ht);Rn(qg(),Ht);Rn(wu(),Ht);Rn(Rg(),Ht);Rn(OO(),Ht);Rn(CO(),Ht);Rn(wO(),Ht);Rn(DO(),Ht)});var LO=_(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.enable=Jr.azureCoreTracing=Jr.AzureMonitorSymbol=void 0;var Eb=un();Jr.AzureMonitorSymbol="Azure_Monitor_Tracer";var Tb="azure-coretracing",MO=!1,UB=function(e){if(MO)return e;try{var t=hb(),n=it(),r=new t.BasicTracerProvider,i=r.getTracer("applicationinsights tracer");if(e.setTracer){var a=e.setTracer;e.setTracer=function(c){var f=c.startSpan;c.startSpan=function(v,b,T){var x=f.call(this,v,b,T),M=x.end;return x.end=function(){var N=M.apply(this,arguments);return Eb.channel.publish(Tb,x),N},x},c[Jr.AzureMonitorSymbol]=!0,a.call(this,c)},n.trace.getSpan(n.context.active()),e.setTracer(i)}else{var s=n.trace.setGlobalTracerProvider;n.trace.setGlobalTracerProvider=function(c){var f=c.getTracer;return c.getTracer=function(v,b){var T=f.call(this,v,b);if(!T[Jr.AzureMonitorSymbol]){var x=T.startSpan;T.startSpan=function(M,N,se){var ce=x.call(this,M,N,se),be=ce.end;return ce.end=function(){var xe=be.apply(this,arguments);return Eb.channel.publish(Tb,ce),xe},ce},T[Jr.AzureMonitorSymbol]=!0}return T},s.call(this,c)},r.register(),n.trace.getSpan(n.context.active());var u=require("@opentelemetry/instrumentation"),l=require("@azure/opentelemetry-instrumentation-azure-sdk");u.registerInstrumentations({instrumentations:[l.createAzureSdkInstrumentation()]})}MO=!0}catch{}return e};Jr.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:UB,publisherName:Tb};function FB(){Eb.channel.registerMonkeyPatch("@azure/core-tracing",Jr.azureCoreTracing)}Jr.enable=FB});var qO=_(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.enable=Vs.bunyan=void 0;var kO=un(),HB=function(e){var t=e.prototype._emit;return e.prototype._emit=function(n,r){var i=t.apply(this,arguments);if(!r){var a=i;a||(a=t.call(this,n,!0)),kO.channel.publish("bunyan",{level:n.level,result:a})}return i},e};Vs.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:HB};function BB(){kO.channel.registerMonkeyPatch("bunyan",Vs.bunyan)}Vs.enable=BB});var UO=_(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.enable=Ks.console=void 0;var Sb=un(),jO=require("stream"),zB=function(e){var t=new jO.Writable,n=new jO.Writable;t.write=function(c){if(!c)return!0;var f=c.toString();return Sb.channel.publish("console",{message:f}),!0},n.write=function(c){if(!c)return!0;var f=c.toString();return Sb.channel.publish("console",{message:f,stderr:!0}),!0};for(var r=new e.Console(t,n),i=["log","info","warn","error","dir","time","timeEnd","trace","assert"],a=function(c){var f=e[c];f&&(e[c]=function(){if(r[c])try{r[c].apply(r,arguments)}catch{}return f.apply(e,arguments)})},s=0,u=i;s<u.length;s++){var l=u[s];a(l)}return e};Ks.console={versionSpecifier:">= 4.0.0",patch:zB};function GB(){Sb.channel.registerMonkeyPatch("console",Ks.console),require("console")}Ks.enable=GB});var FO=_(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.enable=Ws.mongoCore=void 0;var xb=un(),VB=function(e){var t=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var r=t.apply(this,arguments),i=this.s.pool.write;this.s.pool.write=function(){var u=typeof arguments[1]=="function"?1:2;return typeof arguments[u]=="function"&&(arguments[u]=xb.channel.bindToContext(arguments[u])),i.apply(this,arguments)};var a=this.s.pool.logout;return this.s.pool.logout=function(){return typeof arguments[1]=="function"&&(arguments[1]=xb.channel.bindToContext(arguments[1])),a.apply(this,arguments)},r},e};Ws.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:VB};function KB(){xb.channel.registerMonkeyPatch("mongodb-core",Ws.mongoCore)}Ws.enable=KB});var HO=_(br=>{"use strict";var ac=br&&br.__assign||function(){return ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ac.apply(this,arguments)};Object.defineProperty(br,"__esModule",{value:!0});br.enable=br.mongo330=br.mongo3=br.mongo2=void 0;var sr=un(),WB=function(e){var t=e.instrument({operationIdGenerator:{next:function(){return sr.channel.bindToContext(function(r){return r()})}}}),n={};return t.on("started",function(r){n[r.requestId]||(n[r.requestId]=ac(ac({},r),{time:new Date}))}),t.on("succeeded",function(r){var i=n[r.requestId];i&&delete n[r.requestId],typeof r.operationId=="function"?r.operationId(function(){return sr.channel.publish("mongodb",{startedData:i,event:r,succeeded:!0})}):sr.channel.publish("mongodb",{startedData:i,event:r,succeeded:!0})}),t.on("failed",function(r){var i=n[r.requestId];i&&delete n[r.requestId],typeof r.operationId=="function"?r.operationId(function(){return sr.channel.publish("mongodb",{startedData:i,event:r,succeeded:!1})}):sr.channel.publish("mongodb",{startedData:i,event:r,succeeded:!1})}),e},$B=function(e){var t=e.instrument(),n={},r={};return t.on("started",function(i){n[i.requestId]||(r[i.requestId]=sr.channel.bindToContext(function(a){return a()}),n[i.requestId]=ac(ac({},i),{time:new Date}))}),t.on("succeeded",function(i){var a=n[i.requestId];a&&delete n[i.requestId],typeof i=="object"&&typeof r[i.requestId]=="function"&&(r[i.requestId](function(){return sr.channel.publish("mongodb",{startedData:a,event:i,succeeded:!0})}),delete r[i.requestId])}),t.on("failed",function(i){var a=n[i.requestId];a&&delete n[i.requestId],typeof i=="object"&&typeof r[i.requestId]=="function"&&(r[i.requestId](function(){return sr.channel.publish("mongodb",{startedData:a,event:i,succeeded:!1})}),delete r[i.requestId])}),e},YB=function(e){var t=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var r=t.apply(this,arguments),i=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var u=typeof arguments[1]=="function"?1:2;return typeof arguments[u]=="function"&&(arguments[u]=sr.channel.bindToContext(arguments[u])),i.apply(this,arguments)};var a=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return typeof arguments[1]=="function"&&(arguments[1]=sr.channel.bindToContext(arguments[1])),a.apply(this,arguments)},r},e},XB=function(e){YB(e);var t=e.instrument(),n={},r={};return t.on("started",function(i){n[i.requestId]||(r[i.requestId]=sr.channel.bindToContext(function(a){return a()}),n[i.requestId]=i)}),t.on("succeeded",function(i){var a=n[i.requestId];a&&delete n[i.requestId],typeof i=="object"&&typeof r[i.requestId]=="function"&&(r[i.requestId](function(){return sr.channel.publish("mongodb",{startedData:a,event:i,succeeded:!0})}),delete r[i.requestId])}),t.on("failed",function(i){var a=n[i.requestId];a&&delete n[i.requestId],typeof i=="object"&&typeof r[i.requestId]=="function"&&(r[i.requestId](function(){return sr.channel.publish("mongodb",{startedData:a,event:i,succeeded:!1})}),delete r[i.requestId])}),e};br.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:WB};br.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:$B};br.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:XB};function QB(){sr.channel.registerMonkeyPatch("mongodb",br.mongo2),sr.channel.registerMonkeyPatch("mongodb",br.mongo3),sr.channel.registerMonkeyPatch("mongodb",br.mongo330)}br.enable=QB});var zO=_($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.enable=$s.mysql=void 0;var Gf=un(),BO=require("path"),ZB=function(e,t){var n=function(l,c){return function(f,v){var b=l[f];b&&(l[f]=function(){for(var x=arguments.length-1,M=arguments.length-1;M>=0;--M)if(typeof arguments[M]=="function"){x=M;break}else if(typeof arguments[M]<"u")break;var N=arguments[x],se={result:null,startTime:null,startDate:null};typeof N=="function"&&(v?(se.startTime=process.hrtime(),se.startDate=new Date,arguments[x]=Gf.channel.bindToContext(v(se,N))):arguments[x]=Gf.channel.bindToContext(N));var ce=b.apply(this,arguments);return se.result=ce,ce})}},r=function(l,c){return n(l.prototype,c+".prototype")},i=["connect","changeUser","ping","statistics","end"],a=require(BO.dirname(t)+"/lib/Connection");i.forEach(function(l){return r(a,"Connection")(l)}),n(a,"Connection")("createQuery",function(l,c){return function(f){var v=process.hrtime(l.startTime),b=v[0]*1e3+v[1]/1e6|0;Gf.channel.publish("mysql",{query:l.result,callbackArgs:arguments,err:f,duration:b,time:l.startDate}),c.apply(this,arguments)}});var s=["_enqueueCallback"],u=require(BO.dirname(t)+"/lib/Pool");return s.forEach(function(l){return r(u,"Pool")(l)}),e};$s.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:ZB};function JB(){Gf.channel.registerMonkeyPatch("mysql",$s.mysql)}$s.enable=JB});var VO=_(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.enable=Ys.postgresPool1=void 0;var GO=un();function e2(e){var t=e.prototype.connect;return e.prototype.connect=function(r){return r&&(arguments[0]=GO.channel.bindToContext(r)),t.apply(this,arguments)},e}Ys.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:e2};function t2(){GO.channel.registerMonkeyPatch("pg-pool",Ys.postgresPool1)}Ys.enable=t2});var WO=_(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.enable=ki.postgres7=ki.postgres6=void 0;var sc=un(),KO=require("events"),Ab="postgres";function n2(e,t){var n=e.Client.prototype.query,r="__diagnosticOriginalFunc";return e.Client.prototype.query=function(a,s,u){var l={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},c=process.hrtime(),f;function v(b){b&&b[r]&&(b=b[r]);var T=sc.channel.bindToContext(function(x,M){var N=process.hrtime(c);if(l.result=M&&{rowCount:M.rowCount,command:M.command},l.error=x,l.duration=Math.ceil(N[0]*1e3+N[1]/1e6),sc.channel.publish(Ab,l),x){if(b)return b.apply(this,arguments);f&&f instanceof KO.EventEmitter&&f.emit("error",x)}else b&&b.apply(this,arguments)});try{return Object.defineProperty(T,r,{value:b}),T}catch{return b}}try{typeof a=="string"?s instanceof Array?(l.query.preparable={text:a,args:s},u=v(u)):(l.query.text=a,u?u=v(u):s=v(s)):(typeof a.name=="string"?l.query.plan=a.name:a.values instanceof Array?l.query.preparable={text:a.text,args:a.values}:l.query.text=a.text,u?u=v(u):s?s=v(s):a.callback=v(a.callback))}catch{return n.apply(this,arguments)}return arguments[0]=a,arguments[1]=s,arguments[2]=u,arguments.length=arguments.length>3?arguments.length:3,f=n.apply(this,arguments),f},e}function r2(e,t){var n=e.Client.prototype.query,r="__diagnosticOriginalFunc";return e.Client.prototype.query=function(a,s,u){var l=this,c=!!u,f={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},v=process.hrtime(),b;function T(x){x&&x[r]&&(x=x[r]);var M=sc.channel.bindToContext(function(N,se){var ce=process.hrtime(v);if(f.result=se&&{rowCount:se.rowCount,command:se.command},f.error=N,f.duration=Math.ceil(ce[0]*1e3+ce[1]/1e6),sc.channel.publish(Ab,f),N){if(x)return x.apply(this,arguments);b&&b instanceof KO.EventEmitter&&b.emit("error",N)}else x&&x.apply(this,arguments)});try{return Object.defineProperty(M,r,{value:x}),M}catch{return x}}try{typeof a=="string"?s instanceof Array?(f.query.preparable={text:a,args:s},c=typeof u=="function",u=c?T(u):u):(f.query.text=a,u?(c=typeof u=="function",u=c?T(u):u):(c=typeof s=="function",s=c?T(s):s)):(typeof a.name=="string"?f.query.plan=a.name:a.values instanceof Array?f.query.preparable={text:a.text,args:a.values}:f.query.text=a.text,u?(c=typeof u=="function",u=T(u)):s?(c=typeof s=="function",s=c?T(s):s):(c=typeof a.callback=="function",a.callback=c?T(a.callback):a.callback))}catch{return n.apply(this,arguments)}return arguments[0]=a,arguments[1]=s,arguments[2]=u,arguments.length=arguments.length>3?arguments.length:3,b=n.apply(this,arguments),c?b:b.then(function(x){return T()(void 0,x),new l._Promise(function(M,N){M(x)})}).catch(function(x){return T()(x,void 0),new l._Promise(function(M,N){N(x)})})},e}ki.postgres6={versionSpecifier:"6.*",patch:n2};ki.postgres7={versionSpecifier:">=7.* <=8.*",patch:r2,publisherName:Ab};function i2(){sc.channel.registerMonkeyPatch("pg",ki.postgres6),sc.channel.registerMonkeyPatch("pg",ki.postgres7)}ki.enable=i2});var $O=_(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.enable=Xs.redis=void 0;var Ib=un(),a2=function(e){var t=e.RedisClient.prototype.internal_send_command;return e.RedisClient.prototype.internal_send_command=function(n){if(n){var r=n.callback;if(!r||!r.pubsubBound){var i=this.address,a=process.hrtime(),s=new Date;n.callback=Ib.channel.bindToContext(function(u,l){var c=process.hrtime(a),f=c[0]*1e3+c[1]/1e6|0;Ib.channel.publish("redis",{duration:f,address:i,commandObj:n,err:u,result:l,time:s}),typeof r=="function"&&r.apply(this,arguments)}),n.callback.pubsubBound=!0}}return t.call(this,n)},e};Xs.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:a2};function s2(){Ib.channel.registerMonkeyPatch("redis",Xs.redis)}Xs.enable=s2});var YO=_(oa=>{"use strict";var Vf=oa&&oa.__assign||function(){return Vf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vf.apply(this,arguments)};Object.defineProperty(oa,"__esModule",{value:!0});oa.enable=oa.tedious=void 0;var Ob=un(),o2=function(e){var t=e.Connection.prototype.makeRequest;return e.Connection.prototype.makeRequest=function(){function r(a){var s=process.hrtime(),u={query:{},database:{host:null,port:null},result:null,error:null,duration:0};return Ob.channel.bindToContext(function(l,c,f){var v=process.hrtime(s);u=Vf(Vf({},u),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!l&&{rowCount:c,rows:f},query:{text:this.parametersByName.statement.value},error:l,duration:Math.ceil(v[0]*1e3+v[1]/1e6)}),Ob.channel.publish("tedious",u),a.call(this,l,c,f)})}var i=arguments[0];arguments[0].callback=r(i.callback),t.apply(this,arguments)},e};oa.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:o2};function c2(){Ob.channel.registerMonkeyPatch("tedious",oa.tedious)}oa.enable=c2});var XO=_(Ir=>{"use strict";var u2=Ir&&Ir.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),l2=Ir&&Ir.__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(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,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(Ir,"__esModule",{value:!0});Ir.enable=Ir.winston2=Ir.winston3=void 0;var Kf=un(),p2=function(e){var t=e.Logger.prototype.log,n,r=function(i,a,s){var u;return n===e.config.npm.levels?u="npm":n===e.config.syslog.levels?u="syslog":u="unknown",Kf.channel.publish("winston",{level:i,message:a,meta:s,levelKind:u}),a};return e.Logger.prototype.log=function(){return n=this.levels,!this.filters||this.filters.length===0?this.filters=[r]:this.filters[this.filters.length-1]!==r&&(this.filters=this.filters.filter(function(a){return a!==r}),this.filters.push(r)),t.apply(this,arguments)},e},d2=function(e){var t=function(s,u){var l;return s.config.npm.levels[u]!=null?l="npm":s.config.syslog.levels[u]!=null?l="syslog":l="unknown",l},n=function(s){u2(u,s);function u(l,c){var f=s.call(this,c)||this;return f.winston=l,f}return u.prototype.log=function(l,c){var f=l.message,v=l.level,b=l.meta,T=l2(l,["message","level","meta"]);v=typeof Symbol.for=="function"?l[Symbol.for("level")]:v,f=l instanceof Error?l:f;var x=t(this.winston,v);b=b||{};for(var M in T)T.hasOwnProperty(M)&&(b[M]=T[M]);Kf.channel.publish("winston",{message:f,level:v,levelKind:x,meta:b}),c()},u}(e.Transport);function r(){var s=e.config.npm.levels;arguments&&arguments[0]&&arguments[0].levels&&(s=arguments[0].levels);var u;for(var l in s)s.hasOwnProperty(l)&&(u=u===void 0||s[l]>s[u]?l:u);this.add(new n(e,{level:u}))}var i=e.createLogger;e.createLogger=function(){var u=e.config.npm.levels;arguments&&arguments[0]&&arguments[0].levels&&(u=arguments[0].levels);var l;for(var c in u)u.hasOwnProperty(c)&&(l=l===void 0||u[c]>u[l]?c:l);var f=i.apply(this,arguments);f.add(new n(e,{level:l}));var v=f.configure;return f.configure=function(){v.apply(this,arguments),r.apply(this,arguments)},f};var a=e.configure;return e.configure=function(){a.apply(this,arguments),r.apply(this,arguments)},e.add(new n(e)),e};Ir.winston3={versionSpecifier:"3.x",patch:d2};Ir.winston2={versionSpecifier:"2.x",patch:p2};function f2(){Kf.channel.registerMonkeyPatch("winston",Ir.winston2),Kf.channel.registerMonkeyPatch("winston",Ir.winston3)}Ir.enable=f2});var cP=_(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.enable=Ut.tedious=Ut.pgPool=Ut.pg=Ut.winston=Ut.redis=Ut.mysql=Ut.mongodb=Ut.mongodbCore=Ut.console=Ut.bunyan=Ut.azuresdk=void 0;var QO=LO();Ut.azuresdk=QO;var ZO=qO();Ut.bunyan=ZO;var JO=UO();Ut.console=JO;var eP=FO();Ut.mongodbCore=eP;var tP=HO();Ut.mongodb=tP;var nP=zO();Ut.mysql=nP;var rP=VO();Ut.pgPool=rP;var iP=WO();Ut.pg=iP;var aP=$O();Ut.redis=aP;var sP=YO();Ut.tedious=sP;var oP=XO();Ut.winston=oP;function m2(){ZO.enable(),JO.enable(),eP.enable(),tP.enable(),nP.enable(),iP.enable(),rP.enable(),aP.enable(),oP.enable(),QO.enable(),sP.enable()}Ut.enable=m2});var Yf=_(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.registerContextPreservation=qa.IsInitialized=void 0;var Pb=Zt(),lP=xp();qa.IsInitialized=!lP.JsonConfig.getInstance().noDiagnosticChannel;var Cb="DiagnosticChannel";if(qa.IsInitialized){_i=cP(),uP=lP.JsonConfig.getInstance().noPatchModules,Wf=uP.split(","),Rb={bunyan:_i.bunyan,console:_i.console,mongodb:_i.mongodb,mongodbCore:_i.mongodbCore,mysql:_i.mysql,redis:_i.redis,pg:_i.pg,pgPool:_i.pgPool,winston:_i.winston,azuresdk:_i.azuresdk};for($f in Rb)Wf.indexOf($f)===-1&&(Rb[$f].enable(),Pb.info(Cb,"Subscribed to "+$f+" events"));Wf.length>0&&Pb.info(Cb,"Some modules will not be patched",Wf)}else Pb.info(Cb,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");var _i,uP,Wf,Rb,$f;function v2(e){if(qa.IsInitialized){var t=un();t.channel.addContextPreservation(e)}}qa.registerContextPreservation=v2});var oc=_((qX,pP)=>{"use strict";pP.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"}});var Kn=_((Db,dP)=>{"use strict";var Ua=Db&&Db.__assign||function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ua.apply(this,arguments)},h2=require("http"),wb=require("https"),Nb=require("url"),ja=require("constants"),Qs=Zt(),cc=oc(),_2=xp(),g2=function(){function e(){e._addCloseHandler()}return e.getCookie=function(t,n){var r="";if(t&&t.length&&typeof n=="string")for(var i=t+"=",a=n.split(";"),s=0;s<a.length;s++){var n=a[s];if(n=e.trim(n),n&&n.indexOf(i)===0){r=n.substring(i.length,a[s].length);break}}return r},e.trim=function(t){return typeof t=="string"?t.replace(/^\s+|\s+$/g,""):""},e.int32ArrayToBase64=function(t){var n=function(u,l){return String.fromCharCode(u>>l&255)},r=function(u){return n(u,24)+n(u,16)+n(u,8)+n(u,0)},i=t.map(r).join(""),a=Buffer.from?Buffer.from(i,"binary"):new Buffer(i,"binary"),s=a.toString("base64");return s.substr(0,s.indexOf("="))},e.random32=function(){return 4294967296*Math.random()|0},e.randomu32=function(){return e.random32()+2147483648},e.w3cTraceId=function(){for(var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r,i=0;i<4;i++)r=e.random32(),n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15];var a=t[8+Math.random()*4|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)},e.w3cSpanId=function(){return e.w3cTraceId().substring(16)},e.isValidW3CId=function(t){return t.length===32&&t!=="00000000000000000000000000000000"},e.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"},e.isError=function(t){return Object.prototype.toString.call(t)==="[object Error]"},e.isPrimitive=function(t){var n=typeof t;return n==="string"||n==="number"||n==="boolean"},e.isDate=function(t){return Object.prototype.toString.call(t)==="[object Date]"},e.msToTimeSpan=function(t){(isNaN(t)||t<0)&&(t=0);var n=(t/1e3%60).toFixed(7).replace(/0{0,4}$/,""),r=""+Math.floor(t/(1e3*60))%60,i=""+Math.floor(t/(1e3*60*60))%24,a=Math.floor(t/(1e3*60*60*24));n=n.indexOf(".")<2?"0"+n:n,r=r.length<2?"0"+r:r,i=i.length<2?"0"+i:i;var s=a>0?a+".":"";return s+i+":"+r+":"+n},e.extractError=function(t){var n=t;return{message:t.message,code:n.code||n.id||""}},e.extractObject=function(t){return t instanceof Error?e.extractError(t):typeof t.toJSON=="function"?t.toJSON():t},e.validateStringMap=function(t){if(typeof t!="object"){Qs.info("Invalid properties dropped from payload");return}var n={};for(var r in t){var i="",a=t[r],s=typeof a;if(e.isPrimitive(a))i=a.toString();else if(a===null||s==="undefined")i="";else if(s==="function"){Qs.info("key: "+r+" was function; will not serialize");continue}else{var u=e.isArray(a)?a:e.extractObject(a);try{e.isPrimitive(u)?i=u:i=JSON.stringify(u)}catch(l){i=a.constructor.name.toString()+" (Error: "+l.message+")",Qs.info("key: "+r+", could not be serialized")}}n[r]=i.substring(0,e.MAX_PROPERTY_LENGTH)}return n},e.canIncludeCorrelationHeader=function(t,n){var r=t&&t.config&&t.config.correlationHeaderExcludedDomains;if(!r||r.length==0||!n)return!0;for(var i=0;i<r.length;i++){var a=new RegExp(r[i].replace(/\./g,".").replace(/\*/g,".*"));try{if(a.test(new Nb.URL(n).hostname))return!1}catch{}}return!0},e.getCorrelationContextTarget=function(t,n){var r=t.headers&&t.headers[cc.requestContextHeader];if(r)for(var i=r.split(","),a=0;a<i.length;++a){var s=i[a].split("=");if(s.length==2&&s[0]==n)return s[1]}},e.makeRequest=function(t,n,r,i,a,s){a===void 0&&(a=!0),s===void 0&&(s=!0),n&&n.indexOf("//")===0&&(n="https:"+n);var u=new Nb.URL(n),l=Ua(Ua({},r),{host:u.hostname,port:u.port,path:u.pathname}),c=void 0;if(a&&(u.protocol==="https:"&&(c=t.proxyHttpsUrl||void 0),u.protocol==="http:"&&(c=t.proxyHttpUrl||void 0),c)){c.indexOf("//")===0&&(c="http:"+c);try{var f=new Nb.URL(c);f.protocol==="https:"?(Qs.info("Proxies that use HTTPS are not supported"),c=void 0):l=Ua(Ua({},l),{host:f.hostname,port:f.port||"80",path:n,headers:Ua(Ua({},l.headers),{Host:u.hostname})})}catch{Qs.warn("Wrong proxy URL provided")}}var v=u.protocol==="https:"&&!c;return s&&(v&&t.httpsAgent!==void 0?l.agent=t.httpsAgent:!v&&t.httpAgent!==void 0?l.agent=t.httpAgent:v&&(l.agent=e._useKeepAlive?e.keepAliveAgent:e.tlsRestrictedAgent)),v?wb.request(l,i):h2.request(l,i)},e.safeIncludeCorrelationHeader=function(t,n,r){var i;if(typeof r=="string")i=r;else if(r instanceof Array)i=r.join(",");else if(r&&typeof r.toString=="function")try{i=r.toString()}catch(a){Qs.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",a,r)}i?e.addCorrelationIdHeaderFromString(t,n,i):n.setHeader(cc.requestContextHeader,cc.requestContextSourceKey+"="+t.config.correlationId)},e.dumpObj=function(t){if(t)try{var n=Object.prototype.toString.call(t),r="";return n==="[object Error]"?r="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":r=this.stringify(t),n+r}catch{return t.toString()}},e.stringify=function(t){try{return JSON.stringify(t)}catch(n){Qs.warn("Failed to serialize payload",n,t)}},e.addCorrelationIdHeaderFromString=function(t,n,r){var i=r.split(","),a=cc.requestContextSourceKey+"=",s=i.some(function(u){return u.substring(0,a.length)===a});s||n.setHeader(cc.requestContextHeader,r+","+cc.requestContextSourceKey+"="+t.config.correlationId)},e._addCloseHandler=function(){e._listenerAttached||(process.on("exit",function(){e.isNodeExit=!0,e._useKeepAlive=!1}),e._listenerAttached=!0)},e._useKeepAlive=!_2.JsonConfig.getInstance().noHttpAgentKeepAlive,e._listenerAttached=!1,e.MAX_PROPERTY_LENGTH=8192,e.keepAliveAgent=new wb.Agent({keepAlive:!0,maxSockets:25,secureOptions:ja.SSL_OP_NO_SSLv2|ja.SSL_OP_NO_SSLv3|ja.SSL_OP_NO_TLSv1|ja.SSL_OP_NO_TLSv1_1}),e.tlsRestrictedAgent=new wb.Agent({secureOptions:ja.SSL_OP_NO_SSLv2|ja.SSL_OP_NO_SSLv3|ja.SSL_OP_NO_TLSv1|ja.SSL_OP_NO_TLSv1_1}),e.isNodeExit=!1,e}();dP.exports=g2});var Zs=_((jX,fP)=>{"use strict";var Mb=Kn(),b2=function(){function e(){}return e.queryCorrelationId=function(t,n){},e.cancelCorrelationIdQuery=function(t,n){},e.generateRequestId=function(t){if(t){t=t[0]=="|"?t:"|"+t,t[t.length-1]!=="."&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}else return e.generateRootId()},e.getRootId=function(t){var n=t.indexOf(".");n<0&&(n=t.length);var r=t[0]==="|"?1:0;return t.substring(r,n)},e.generateRootId=function(){return"|"+Mb.w3cTraceId()+"."},e.appendSuffix=function(t,n,r){if(t.length+n.length<e.requestIdMaxLength)return t+n+r;var i=e.requestIdMaxLength-9;if(t.length>i)for(;i>1;--i){var a=t[i-1];if(a==="."||a==="_")break}if(i<=1)return e.generateRootId();for(n=Mb.randomu32().toString(16);n.length<8;)n="0"+n;return t.substring(0,i)+n+"#"},e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.HTTP_TIMEOUT=2500,e.requestIdMaxLength=1024,e.currentRootId=Mb.randomu32(),e}();fP.exports=b2});var Xf=_((UX,mP)=>{"use strict";var Wn=Kn(),y2=Zs(),E2=function(){function e(t,n){if(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&typeof t=="string")if(t.split(",").length>1)this.traceId=Wn.w3cTraceId(),this.spanId=Wn.w3cTraceId().substr(0,16);else{var r=t.trim().split("-"),i=r.length;i>=4?(this.version=r[0],this.traceId=r[1],this.spanId=r[2],this.traceFlag=r[3]):(this.traceId=Wn.w3cTraceId(),this.spanId=Wn.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=e.DEFAULT_VERSION,this.traceId=Wn.w3cTraceId()),this.version==="00"&&i!==4&&(this.traceId=Wn.w3cTraceId(),this.spanId=Wn.w3cTraceId().substr(0,16)),this.version==="ff"&&(this.version=e.DEFAULT_VERSION,this.traceId=Wn.w3cTraceId(),this.spanId=Wn.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=Wn.w3cTraceId()),e.isValidTraceId(this.traceId)||(this.traceId=Wn.w3cTraceId()),e.isValidSpanId(this.spanId)||(this.spanId=Wn.w3cTraceId().substr(0,16),this.traceId=Wn.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(n){this.parentId=n.slice();var a=y2.getRootId(n);e.isValidTraceId(a)||(this.legacyRootId=a,a=Wn.w3cTraceId()),n.indexOf("|")!==-1&&(n=n.substring(1+n.substring(0,n.length-1).lastIndexOf("."),n.length-1)),this.traceId=a,this.spanId=n}else this.traceId=Wn.w3cTraceId(),this.spanId=Wn.w3cTraceId().substr(0,16)}return e.isValidTraceId=function(t){return t.match(/^[0-9a-f]{32}$/)&&t!=="00000000000000000000000000000000"},e.isValidSpanId=function(t){return t.match(/^[0-9a-f]{16}$/)&&t!=="0000000000000000"},e.formatOpenTelemetryTraceFlags=function(t){var n="0"+t.toString(16);return n.substring(n.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=Wn.w3cTraceId().substr(0,16)},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}();mP.exports=E2});var Lb=_((FX,vP)=>{"use strict";var T2=function(){function e(t){this.fieldmap=[],t&&(this.fieldmap=this.parseHeader(t))}return e.prototype.toString=function(){var t=this.fieldmap;return!t||t.length==0?null:t.join(", ")},e.validateKeyChars=function(t){var n=t.split("@");if(n.length==2){var r=n[0].trim(),i=n[1].trim(),a=!!r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/),s=!!i.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/);return a&&s}else if(n.length==1)return!!t.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/);return!1},e.prototype.parseHeader=function(t){var n=[],r={},i=t.split(",");if(i.length>32)return null;for(var a=0,s=i;a<s.length;a++){var u=s[a],l=u.trim();if(l.length!==0){var c=l.split("=");if(c.length!==2||!e.validateKeyChars(c[0])||r[c[0]])return null;r[c[0]]=!0,n.push(l)}}return n},e.strict=!0,e}();vP.exports=T2});var ca=_((HX,hP)=>{"use strict";var S2=function(){function e(){}return e}();hP.exports=S2});var gP=_((kb,_P)=>{"use strict";var x2=kb&&kb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),A2=ca(),I2=function(e){x2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.properties={},n.measurements={},n}return t}(A2);_P.exports=I2});var qb=_((BX,bP)=>{"use strict";var O2=function(){function e(){}return e}();bP.exports=O2});var EP=_((zX,yP)=>{"use strict";var P2=function(){function e(){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"}return e}();yP.exports=P2});var SP=_((jb,TP)=>{"use strict";var C2=jb&&jb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),R2=qb(),w2=function(e){C2(t,e);function t(){return e.call(this)||this}return t}(R2);TP.exports=w2});var Fb=_((GX,xP)=>{"use strict";var Ub;(function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"})(Ub||(Ub={}));xP.exports=Ub});var IP=_((VX,AP)=>{"use strict";var N2=Fb(),D2=function(){function e(){this.kind=N2.Measurement}return e}();AP.exports=D2});var PP=_((KX,OP)=>{"use strict";var M2=function(){function e(){this.ver=1,this.sampleRate=100,this.tags={}}return e}();OP.exports=M2});var Bb=_((Hb,CP)=>{"use strict";var L2=Hb&&Hb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),k2=ca(),q2=function(e){L2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.properties={},n.measurements={},n}return t}(k2);CP.exports=q2});var wP=_((zb,RP)=>{"use strict";var j2=zb&&zb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),U2=ca(),F2=function(e){j2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.exceptions=[],n.properties={},n.measurements={},n}return t}(U2);RP.exports=F2});var DP=_((WX,NP)=>{"use strict";var H2=function(){function e(){this.hasFullStack=!0,this.parsedStack=[]}return e}();NP.exports=H2});var LP=_((Gb,MP)=>{"use strict";var B2=Gb&&Gb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),z2=ca(),G2=function(e){B2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.properties={},n}return t}(z2);MP.exports=G2});var qP=_((Vb,kP)=>{"use strict";var V2=Vb&&Vb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),K2=ca(),W2=function(e){V2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.metrics=[],n.properties={},n}return t}(K2);kP.exports=W2});var UP=_((Kb,jP)=>{"use strict";var $2=Kb&&Kb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y2=Bb(),X2=function(e){$2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.properties={},n.measurements={},n}return t}(Y2);jP.exports=X2});var HP=_((Wb,FP)=>{"use strict";var Q2=Wb&&Wb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Z2=ca(),J2=function(e){Q2(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.success=!0,n.properties={},n.measurements={},n}return t}(Z2);FP.exports=J2});var zP=_(($b,BP)=>{"use strict";var e3=$b&&$b.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),t3=ca(),n3=function(e){e3(t,e);function t(){var n=e.call(this)||this;return n.ver=2,n.properties={},n.measurements={},n}return t}(t3);BP.exports=n3});var VP=_(($X,GP)=>{"use strict";var Yb;(function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"})(Yb||(Yb={}));GP.exports=Yb});var WP=_((YX,KP)=>{"use strict";var r3=function(){function e(){}return e}();KP.exports=r3});var Xb=_(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.AvailabilityData=gP();Sn.Base=qb();Sn.ContextTagKeys=EP();Sn.Data=SP();Sn.DataPoint=IP();Sn.DataPointType=Fb();Sn.Domain=ca();Sn.Envelope=PP();Sn.EventData=Bb();Sn.ExceptionData=wP();Sn.ExceptionDetails=DP();Sn.MessageData=LP();Sn.MetricData=qP();Sn.PageViewData=UP();Sn.RemoteDependencyData=HP();Sn.RequestData=zP();Sn.SeverityLevel=VP();Sn.StackFrame=WP()});var $P=_(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.domainSupportsProperties=uc.RemoteDependencyDataConstants=void 0;var Js=Xb(),i3=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();uc.RemoteDependencyDataConstants=i3;function a3(e){return"properties"in e||e instanceof Js.EventData||e instanceof Js.ExceptionData||e instanceof Js.MessageData||e instanceof Js.MetricData||e instanceof Js.PageViewData||e instanceof Js.RemoteDependencyData||e instanceof Js.RequestData}uc.domainSupportsProperties=a3});var XP=_(YP=>{"use strict";Object.defineProperty(YP,"__esModule",{value:!0})});var ZP=_(QP=>{"use strict";Object.defineProperty(QP,"__esModule",{value:!0})});var eC=_(JP=>{"use strict";Object.defineProperty(JP,"__esModule",{value:!0})});var nC=_(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0})});var iC=_(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0})});var sC=_(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0})});var cC=_(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0})});var lC=_(uC=>{"use strict";Object.defineProperty(uC,"__esModule",{value:!0})});var dC=_(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0})});var mC=_(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0})});var hC=_(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0})});var gC=_(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0})});var bC=_(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.TelemetryType=gi.TelemetryTypeString=gi.baseTypeToTelemetryType=gi.telemetryTypeToBaseType=void 0;function s3(e){switch(e){case $n.Event:return"EventData";case $n.Exception:return"ExceptionData";case $n.Trace:return"MessageData";case $n.Metric:return"MetricData";case $n.Request:return"RequestData";case $n.Dependency:return"RemoteDependencyData";case $n.Availability:return"AvailabilityData";case $n.PageView:return"PageViewData"}}gi.telemetryTypeToBaseType=s3;function o3(e){switch(e){case"EventData":return $n.Event;case"ExceptionData":return $n.Exception;case"MessageData":return $n.Trace;case"MetricData":return $n.Metric;case"RequestData":return $n.Request;case"RemoteDependencyData":return $n.Dependency;case"AvailabilityData":return $n.Availability;case"PageViewData":return $n.PageView}}gi.baseTypeToTelemetryType=o3;gi.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"};var $n;(function(e){e[e.Event=0]="Event",e[e.Exception=1]="Exception",e[e.Trace=2]="Trace",e[e.Metric=3]="Metric",e[e.Request=4]="Request",e[e.Dependency=5]="Dependency",e[e.Availability=6]="Availability",e[e.PageView=7]="PageView"})($n=gi.TelemetryType||(gi.TelemetryType={}))});var yC=_(wn=>{"use strict";var c3=wn&&wn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Fr=wn&&wn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&c3(t,e,n)};Object.defineProperty(wn,"__esModule",{value:!0});Fr(XP(),wn);Fr(ZP(),wn);Fr(eC(),wn);Fr(nC(),wn);Fr(iC(),wn);Fr(sC(),wn);Fr(cC(),wn);Fr(lC(),wn);Fr(dC(),wn);Fr(mC(),wn);Fr(hC(),wn);Fr(gC(),wn);Fr(bC(),wn)});var TC=_(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0})});var xC=_(SC=>{"use strict";Object.defineProperty(SC,"__esModule",{value:!0})});var IC=_(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0})});var PC=_(OC=>{"use strict";Object.defineProperty(OC,"__esModule",{value:!0})});var RC=_(CC=>{"use strict";Object.defineProperty(CC,"__esModule",{value:!0})});var NC=_(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0})});var MC=_(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0})});var kC=_(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0})});var qC=_(Or=>{"use strict";var u3=Or&&Or.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Fa=Or&&Or.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&u3(t,e,n)};Object.defineProperty(Or,"__esModule",{value:!0});Fa(TC(),Or);Fa(xC(),Or);Fa(IC(),Or);Fa(PC(),Or);Fa(RC(),Or);Fa(NC(),Or);Fa(MC(),Or);Fa(kC(),Or)});var or=_(qi=>{"use strict";var l3=qi&&qi.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Qf=qi&&qi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l3(t,e,n)};Object.defineProperty(qi,"__esModule",{value:!0});Qf($P(),qi);Qf(Xb(),qi);Qf(yC(),qi);Qf(qC(),qi)});var Qb=_((T5,jC)=>{"use strict";var p3=function(){function e(){}return e.prototype.getUrl=function(){return this.url},e.prototype.RequestParser=function(){this.startTime=+new Date},e.prototype._setStatus=function(t,n){var r=+new Date;this.duration=r-this.startTime,this.statusCode=t;var i=this.properties||{};if(n){if(typeof n=="string")i.error=n;else if(n instanceof Error)i.error=n.message;else if(typeof n=="object")for(var a in n)i[a]=n[a]&&n[a].toString&&n[a].toString()}this.properties=i},e.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},e}();jC.exports=p3});var ey=_((Jb,FC)=>{"use strict";var d3=Jb&&Jb.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zf=require("url"),f3=or(),UC=Kn(),Hr=oc(),m3=Qb(),Ha=Zs(),v3=Lb(),Zb=Xf(),h3=function(e){d3(t,e);function t(n,r){var i=e.call(this)||this;return n&&(i.method=n.method,i.url=i._getAbsoluteUrl(n),i.startTime=+new Date,i.socketRemoteAddress=n.socket&&n.socket.remoteAddress,i.parseHeaders(n,r),n.connection&&(i.connectionRemoteAddress=n.connection.remoteAddress,i.legacySocketRemoteAddress=n.connection.socket&&n.connection.socket.remoteAddress)),i}return t.prototype.onError=function(n,r){this._setStatus(void 0,n),r&&(this.duration=r)},t.prototype.onResponse=function(n,r){this._setStatus(n.statusCode,void 0),r&&(this.duration=r)},t.prototype.getRequestTelemetry=function(n){var r=this.method;try{r+=" "+new Zf.URL(this.url).pathname}catch{}var i={id:this.requestId,name:r,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(n&&n.time?i.time=n.time:this.startTime&&(i.time=new Date(this.startTime)),n){for(var a in n)i[a]||(i[a]=n[a]);if(n.properties)for(var a in n.properties)i.properties[a]=n.properties[a]}return i},t.prototype.getRequestTags=function(n){var r={};for(var i in n)r[i]=n[i];return r[t.keys.locationIp]=n[t.keys.locationIp]||this._getIp(),r[t.keys.sessionId]=n[t.keys.sessionId]||this._getId("ai_session"),r[t.keys.userId]=n[t.keys.userId]||this._getId("ai_user"),r[t.keys.userAuthUserId]=n[t.keys.userAuthUserId]||this._getId("ai_authUser"),r[t.keys.operationName]=this.getOperationName(n),r[t.keys.operationParentId]=this.getOperationParentId(n),r[t.keys.operationId]=this.getOperationId(n),r},t.prototype.getOperationId=function(n){return n[t.keys.operationId]||this.operationId},t.prototype.getOperationParentId=function(n){return n[t.keys.operationParentId]||this.parentId||this.getOperationId(n)},t.prototype.getOperationName=function(n){if(n[t.keys.operationName])return n[t.keys.operationName];var r="";try{r=new Zf.URL(this.url).pathname}catch{}var i=this.method;return r&&(i+=" "+r),i},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(n){if(!n.headers)return n.url;var r=n.connection?n.connection.encrypted:null,i=r||n.headers["x-forwarded-proto"]=="https"?"https":"http",a=i+"://"+n.headers.host+"/",s="",u="";try{var l=new Zf.URL(n.url,a);s=l.pathname,u=l.search}catch{}var c=Zf.format({protocol:i,host:n.headers.host,pathname:s,search:u});return c},t.prototype._getIp=function(){var n=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,r=function(a){var s=n.exec(a);if(s)return s[0]},i=r(this.rawHeaders["x-forwarded-for"])||r(this.rawHeaders["x-client-ip"])||r(this.rawHeaders["x-real-ip"])||r(this.connectionRemoteAddress)||r(this.socketRemoteAddress)||r(this.legacySocketRemoteAddress);return!i&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&this.connectionRemoteAddress.substr(0,2)==="::"&&(i="127.0.0.1"),i},t.prototype._getId=function(n){var r=this.rawHeaders&&this.rawHeaders.cookie&&typeof this.rawHeaders.cookie=="string"&&this.rawHeaders.cookie||"",i=t.parseId(UC.getCookie(n,r));return i},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(n,r){if(this.rawHeaders=n.headers||n.rawHeaders,this.userAgent=n.headers&&n.headers["user-agent"],this.sourceCorrelationId=UC.getCorrelationContextTarget(n,Hr.requestContextSourceKey),n.headers){var i=n.headers[Hr.traceStateHeader]?n.headers[Hr.traceStateHeader].toString():null,a=n.headers[Hr.traceparentHeader]?n.headers[Hr.traceparentHeader].toString():null,s=n.headers[Hr.requestIdHeader]?n.headers[Hr.requestIdHeader].toString():null,u=n.headers[Hr.parentIdHeader]?n.headers[Hr.parentIdHeader].toString():null,l=n.headers[Hr.rootIdHeader]?n.headers[Hr.rootIdHeader].toString():null;this.correlationContextHeader=n.headers[Hr.correlationContextHeader]?n.headers[Hr.correlationContextHeader].toString():null,Ha.w3cEnabled&&(a||i)?(this.traceparent=new Zb(a?a.toString():null),this.tracestate=a&&i&&new v3(i?i.toString():null),this.setBackCompatFromThisTraceContext()):s?Ha.w3cEnabled?(this.traceparent=new Zb(null,s),this.setBackCompatFromThisTraceContext()):(this.parentId=s,this.requestId=Ha.generateRequestId(this.parentId),this.operationId=Ha.getRootId(this.requestId)):Ha.w3cEnabled?(this.traceparent=new Zb,this.traceparent.parentId=u,this.traceparent.legacyRootId=l||u,this.setBackCompatFromThisTraceContext()):(this.parentId=u,this.requestId=Ha.generateRequestId(l||this.parentId),this.correlationContextHeader=null,this.operationId=Ha.getRootId(this.requestId)),r&&(this.requestId=r,this.operationId=Ha.getRootId(this.requestId))}},t.parseId=function(n){var r=n.split("|");return r.length>0?r[0]:""},t.keys=new f3.ContextTagKeys,t}(m3);FC.exports=h3});var Jf=_((S5,zC)=>{"use strict";function ty(e){return typeof e=="function"}var yr=console.error.bind(console);function ku(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function qu(e){e&&e.logger&&(ty(e.logger)?yr=e.logger:yr("new logger isn't a function, not replacing"))}function HC(e,t,n){if(!e||!e[t]){yr("no original function "+t+" to wrap");return}if(!n){yr("no wrapper function"),yr(new Error().stack);return}if(!ty(e[t])||!ty(n)){yr("original object and wrapper must be functions");return}var r=e[t],i=n(r,t);return ku(i,"__original",r),ku(i,"__unwrap",function(){e[t]===i&&ku(e,t,r)}),ku(i,"__wrapped",!0),ku(e,t,i),i}function _3(e,t,n){if(e)Array.isArray(e)||(e=[e]);else{yr("must provide one or more modules to patch"),yr(new Error().stack);return}if(!(t&&Array.isArray(t))){yr("must provide one or more functions to wrap on modules");return}e.forEach(function(r){t.forEach(function(i){HC(r,i,n)})})}function BC(e,t){if(!e||!e[t]){yr("no function to unwrap."),yr(new Error().stack);return}if(!e[t].__unwrap)yr("no original to unwrap to -- has "+t+" already been unwrapped?");else return e[t].__unwrap()}function g3(e,t){if(e)Array.isArray(e)||(e=[e]);else{yr("must provide one or more modules to patch"),yr(new Error().stack);return}if(!(t&&Array.isArray(t))){yr("must provide one or more functions to unwrap on modules");return}e.forEach(function(n){t.forEach(function(r){BC(n,r)})})}qu.wrap=HC;qu.massWrap=_3;qu.unwrap=BC;qu.massUnwrap=g3;zC.exports=qu});var nm=_((x5,WC)=>{"use strict";var VC=Jf(),lc=VC.wrap,em=VC.unwrap,ua="wrap@before";function tm(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function b3(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r],a=e[ua];if(typeof a=="function")a(i);else if(Array.isArray(a))for(var s=a.length,u=0;u<s;u++)a[u](i)}}function KC(e,t){var n;return n=e._events&&e._events[t],Array.isArray(n)||(n?n=[n]:n=[]),n}function y3(e,t,n){var r=KC(e,t),i=r.filter(function(a){return n.indexOf(a)===-1});i.length>0&&b3(e,i)}function GC(e,t){if(e){var n=e;if(typeof e=="function")n=t(e);else if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r])}return n}}WC.exports=function(t,n,r){if(!t||!t.on||!t.addListener||!t.removeListener||!t.emit)throw new Error("can only wrap real EEs");if(!n)throw new Error("must have function to run on listener addition");if(!r)throw new Error("must have function to wrap listeners when emitting");function i(s){return function(l,c){var f=KC(this,l).slice();try{var v=s.call(this,l,c);return y3(this,l,f),v}finally{this.on.__wrapped||lc(this,"on",i),this.addListener.__wrapped||lc(this,"addListener",i)}}}function a(s){return function(l){if(!this._events||!this._events[l])return s.apply(this,arguments);var c=this._events[l];function f(v){return function(){this._events[l]=c;try{return v.apply(this,arguments)}finally{c=this._events[l],this._events[l]=GC(c,r)}}}lc(this,"removeListener",f);try{return this._events[l]=GC(c,r),s.apply(this,arguments)}finally{em(this,"removeListener"),this._events[l]=c}}}t[ua]?typeof t[ua]=="function"?tm(t,ua,[t[ua],n]):Array.isArray(t[ua])&&t[ua].push(n):tm(t,ua,n),t.__wrapped||(lc(t,"addListener",i),lc(t,"on",i),lc(t,"emit",a),tm(t,"__unwrap",function(){em(t,"addListener"),em(t,"on"),em(t,"emit"),delete t[ua],delete t.__wrapped}),tm(t,"__wrapped",!0))}});var QC=_((A5,XC)=>{"use strict";var yt=require("util"),la=require("assert"),E3=nm(),Bt=require("async_hooks"),ju="cls@contexts",Uu="error@context",tn=process.env.DEBUG_CLS_HOOKED,bt=-1;XC.exports={getNamespace:$C,createNamespace:T3,destroyNamespace:YC,reset:S3,ERROR_SYMBOL:Uu};function ei(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}ei.prototype.set=function(t,n){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");if(this.active[t]=n,tn){let r=" ".repeat(this._indent<0?0:this._indent);Kt(r+"CONTEXT-SET KEY:"+t+"="+n+" in ns:"+this.name+" currentUid:"+bt+" active:"+yt.inspect(this.active,{showHidden:!0,depth:2,colors:!0}))}return n};ei.prototype.get=function(t){if(!this.active){if(tn){let n=Bt.currentId(),r=Bt.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);Kt(`${i}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${t}=undefined currentUid:${bt} asyncHooksCurrentId:${n} triggerId:${r} len:${this._set.length}`)}return}if(tn){let n=Bt.executionAsyncId(),r=Bt.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);Kt(i+"CONTEXT-GETTING KEY:"+t+"="+this.active[t]+" ("+this.name+") currentUid:"+bt+" active:"+yt.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),Kt(`${i}CONTEXT-GETTING KEY: (${this.name}) ${t}=${this.active[t]} currentUid:${bt} asyncHooksCurrentId:${n} triggerId:${r} len:${this._set.length} active:${yt.inspect(this.active)}`)}return this.active[t]};ei.prototype.createContext=function(){let t=Object.create(this.active?this.active:Object.prototype);if(t._ns_name=this.name,t.id=bt,tn){let n=Bt.executionAsyncId(),r=Bt.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);Kt(`${i}CONTEXT-CREATED Context: (${this.name}) currentUid:${bt} asyncHooksCurrentId:${n} triggerId:${r} len:${this._set.length} context:${yt.inspect(t,{showHidden:!0,depth:2,colors:!0})}`)}return t};ei.prototype.run=function(t){let n=this.createContext();this.enter(n);try{if(tn){let r=Bt.triggerAsyncId(),i=Bt.executionAsyncId(),a=" ".repeat(this._indent<0?0:this._indent);Kt(`${a}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${bt} triggerId:${r} asyncHooksCurrentId:${i} len:${this._set.length} context:${yt.inspect(n)}`)}return t(n),n}catch(r){throw r&&(r[Uu]=n),r}finally{if(tn){let r=Bt.triggerAsyncId(),i=Bt.executionAsyncId(),a=" ".repeat(this._indent<0?0:this._indent);Kt(`${a}CONTEXT-RUN END: (${this.name}) currentUid:${bt} triggerId:${r} asyncHooksCurrentId:${i} len:${this._set.length} ${yt.inspect(n)}`)}this.exit(n)}};ei.prototype.runAndReturn=function(t){let n;return this.run(function(r){n=t(r)}),n};ei.prototype.runPromise=function(t){let n=this.createContext();this.enter(n);let r=t(n);if(!r||!r.then||!r.catch)throw new Error("fn must return a promise.");return tn&&Kt("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+bt+" len:"+this._set.length+" "+yt.inspect(n)),r.then(i=>(tn&&Kt("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+bt+" len:"+this._set.length+" "+yt.inspect(n)),this.exit(n),i)).catch(i=>{throw i[Uu]=n,tn&&Kt("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+bt+" len:"+this._set.length+" "+yt.inspect(n)),this.exit(n),i})};ei.prototype.bind=function(t,n){n||(this.active?n=this.active:n=this.createContext());let r=this;return function(){r.enter(n);try{return t.apply(this,arguments)}catch(a){throw a&&(a[Uu]=n),a}finally{r.exit(n)}}};ei.prototype.enter=function(t){if(la.ok(t,"context must be provided for entering"),tn){let n=Bt.executionAsyncId(),r=Bt.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);Kt(`${i}CONTEXT-ENTER: (${this.name}) currentUid:${bt} triggerId:${r} asyncHooksCurrentId:${n} len:${this._set.length} ${yt.inspect(t)}`)}this._set.push(this.active),this.active=t};ei.prototype.exit=function(t){if(la.ok(t,"context must be provided for exiting"),tn){let r=Bt.executionAsyncId(),i=Bt.triggerAsyncId(),a=" ".repeat(this._indent<0?0:this._indent);Kt(`${a}CONTEXT-EXIT: (${this.name}) currentUid:${bt} triggerId:${i} asyncHooksCurrentId:${r} len:${this._set.length} ${yt.inspect(t)}`)}if(this.active===t){la.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}let n=this._set.lastIndexOf(t);n<0?(tn&&Kt("??ERROR?? context exiting but not entered - ignoring: "+yt.inspect(t)),la.ok(n>=0,`context not currently entered; can't exit.
`+yt.inspect(this)+`
`+yt.inspect(t))):(la.ok(n,"can't remove top context"),this._set.splice(n,1))};ei.prototype.bindEmitter=function(t){la.ok(t.on&&t.addListener&&t.emit,"can only bind real EEs");let n=this,r="context@"+this.name;function i(s){s&&(s[ju]||(s[ju]=Object.create(null)),s[ju][r]={namespace:n,context:n.active})}function a(s){if(!(s&&s[ju]))return s;let u=s,l=s[ju];return Object.keys(l).forEach(function(c){let f=l[c];u=f.namespace.bind(u,f.context)}),u}E3(t,i,a)};ei.prototype.fromException=function(t){return t[Uu]};function $C(e){return process.namespaces[e]}function T3(e){la.ok(e,"namespace must be given a name."),tn&&Kt(`NS-CREATING NAMESPACE (${e})`);let t=new ei(e);return t.id=bt,Bt.createHook({init(r,i,a,s){if(bt=Bt.executionAsyncId(),t.active){if(t._contexts.set(r,t.active),tn){let u=" ".repeat(t._indent<0?0:t._indent);Kt(`${u}INIT [${i}] (${e}) asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}}else if(bt===0){let u=Bt.triggerAsyncId(),l=t._contexts.get(u);if(l){if(t._contexts.set(r,l),tn){let c=" ".repeat(t._indent<0?0:t._indent);Kt(`${c}INIT USING CONTEXT FROM TRIGGERID [${i}] (${e}) asyncId:${r} currentUid:${bt} triggerId:${u} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}}else if(tn){let c=" ".repeat(t._indent<0?0:t._indent);Kt(`${c}INIT MISSING CONTEXT [${i}] (${e}) asyncId:${r} currentUid:${bt} triggerId:${u} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}}if(tn&&i==="PROMISE"){Kt(yt.inspect(s,{showHidden:!0}));let u=s.parentId,l=" ".repeat(t._indent<0?0:t._indent);Kt(`${l}INIT RESOURCE-PROMISE [${i}] (${e}) parentId:${u} asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}},before(r){bt=Bt.executionAsyncId();let i;if(i=t._contexts.get(r)||t._contexts.get(bt),i){if(tn){let a=Bt.triggerAsyncId(),s=" ".repeat(t._indent<0?0:t._indent);Kt(`${s}BEFORE (${e}) asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${yt.inspect(i)}`),t._indent+=2}t.enter(i)}else if(tn){let a=Bt.triggerAsyncId(),s=" ".repeat(t._indent<0?0:t._indent);Kt(`${s}BEFORE MISSING CONTEXT (${e}) asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${yt.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`),t._indent+=2}},after(r){bt=Bt.executionAsyncId();let i;if(i=t._contexts.get(r)||t._contexts.get(bt),i){if(tn){let a=Bt.triggerAsyncId();t._indent-=2;let s=" ".repeat(t._indent<0?0:t._indent);Kt(`${s}AFTER (${e}) asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${yt.inspect(i)}`)}t.exit(i)}else if(tn){let a=Bt.triggerAsyncId();t._indent-=2;let s=" ".repeat(t._indent<0?0:t._indent);Kt(`${s}AFTER MISSING CONTEXT (${e}) asyncId:${r} currentUid:${bt} triggerId:${a} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${yt.inspect(i)}`)}},destroy(r){if(bt=Bt.executionAsyncId(),tn){let i=Bt.triggerAsyncId(),a=" ".repeat(t._indent<0?0:t._indent);Kt(`${a}DESTROY (${e}) currentUid:${bt} asyncId:${r} triggerId:${i} active:${yt.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${yt.inspect(t._contexts.get(bt))}`)}t._contexts.delete(r)}}).enable(),process.namespaces[e]=t,t}function YC(e){let t=$C(e);la.ok(t,`can't delete nonexistent namespace! "`+e+'"'),la.ok(t.id,"don't assign to process.namespaces directly! "+yt.inspect(t)),process.namespaces[e]=null}function S3(){process.namespaces&&Object.keys(process.namespaces).forEach(function(e){YC(e)}),process.namespaces=Object.create(null)}process.namespaces={};function Kt(...e){tn&&process._rawDebug(`${yt.format(...e)}`)}});var JC=_((I5,ZC)=>{"use strict";function x3(){}ZC.exports=function(){let t=this._hooks,n=this._state,r=process.nextTick;process.nextTick=function(){if(!n.enabled)return r.apply(process,arguments);let i=new Array(arguments.length);for(let l=0;l<arguments.length;l++)i[l]=arguments[l];let a=i[0];if(typeof a!="function")throw new TypeError("callback is not a function");let s=new x3,u=--n.counter;return t.init.call(s,u,0,null,null),i[0]=function(){t.pre.call(s,u);let l=!0;try{a.apply(this,arguments),l=!1}finally{l&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",function(){t.post.call(s,u,!0),t.destroy.call(null,u)})}t.post.call(s,u,!1),t.destroy.call(null,u)},r.apply(process,i)}}});var tR=_((O5,eR)=>{"use strict";function A3(){}eR.exports=function(){let t=this._hooks,n=this._state,r=global.Promise,i=r.prototype.then;r.prototype.then=l;function a(c,f,v,b){return typeof c!="function"?b?s(v):u(v):function(){t.pre.call(f,v);try{return c.apply(this,arguments)}finally{t.post.call(f,v,!1),t.destroy.call(null,v)}}}function s(c){return function(v){return t.destroy.call(null,c),v}}function u(c){return function(v){throw t.destroy.call(null,c),v}}function l(c,f){if(!n.enabled)return i.call(this,c,f);let v=new A3,b=--n.counter;return t.init.call(v,b,0,null,null),i.call(this,a(c,v,b,!0),a(f,v,b,!1))}}});var rR=_((P5,nR)=>{"use strict";var Br=require("timers");function I3(){}function O3(){}function P3(){}var C3=new Map,R3=new Map,w3=new Map,ny=null,ry=!1;nR.exports=function(){iy(this._hooks,this._state,"setTimeout","clearTimeout",I3,C3,!0),iy(this._hooks,this._state,"setInterval","clearInterval",O3,R3,!1),iy(this._hooks,this._state,"setImmediate","clearImmediate",P3,w3,!0),global.setTimeout=Br.setTimeout,global.setInterval=Br.setInterval,global.setImmediate=Br.setImmediate,global.clearTimeout=Br.clearTimeout,global.clearInterval=Br.clearInterval,global.clearImmediate=Br.clearImmediate};function iy(e,t,n,r,i,a,s){let u=Br[n],l=Br[r];Br[n]=function(){if(!t.enabled)return u.apply(Br,arguments);let c=new Array(arguments.length);for(let x=0;x<arguments.length;x++)c[x]=arguments[x];let f=c[0];if(typeof f!="function")throw new TypeError('"callback" argument must be a function');let v=new i,b=--t.counter,T;return e.init.call(v,b,0,null,null),c[0]=function(){ny=T,e.pre.call(v,b);let x=!0;try{f.apply(this,arguments),x=!1}finally{x&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",function(){e.post.call(v,b,!0),a.delete(T),e.destroy.call(null,b)})}e.post.call(v,b,!1),ny=null,(s||ry)&&(ry=!1,a.delete(T),e.destroy.call(null,b))},T=u.apply(Br,c),a.set(T,b),T},Br[r]=function(c){if(ny===c&&c!==null)ry=!0;else if(a.has(c)){let f=a.get(c);a.delete(c),e.destroy.call(null,f)}l.apply(Br,arguments)}}});var ay=_((C5,N3)=>{N3.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"}}});var sR=_((R5,aR)=>{"use strict";var Hu=process.binding("async_wrap"),D3=Hu.Providers.TIMERWRAP,iR={nextTick:JC(),promise:tR(),timers:rR()},Fu=new Set;function M3(){this.enabled=!1,this.counter=0}function sy(){let e=this.initFns=[],t=this.preFns=[],n=this.postFns=[],r=this.destroyFns=[];this.init=function(i,a,s,u){if(a===D3){Fu.add(i);return}for(let l of e)l(i,this,a,s,u)},this.pre=function(i){if(!Fu.has(i))for(let a of t)a(i,this)},this.post=function(i,a){if(!Fu.has(i))for(let s of n)s(i,this,a)},this.destroy=function(i){if(Fu.has(i)){Fu.delete(i);return}for(let a of r)a(i)}}sy.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)};function rm(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}sy.prototype.remove=function(e){e.init&&rm(this.initFns,e.init),e.pre&&rm(this.preFns,e.pre),e.post&&rm(this.postFns,e.post),e.destroy&&rm(this.destroyFns,e.destroy)};function Bu(){this._state=new M3,this._hooks=new sy,this.version=ay().version,this.providers=Hu.Providers;for(let e of Object.keys(iR))iR[e].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),Hu.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}aR.exports=Bu;Bu.prototype.addHooks=function(e){this._hooks.add(e)};Bu.prototype.removeHooks=function(e){this._hooks.remove(e)};Bu.prototype.enable=function(){this._state.enabled=!0,Hu.enable()};Bu.prototype.disable=function(){this._state.enabled=!1,Hu.disable()}});var oy=_((w5,L3)=>{L3.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"}});var cR=_((N5,oR)=>{function k3(e){try{return Error.prototype.toString.call(e)}catch(t){try{return"<error: "+t+">"}catch{return"<error>"}}}oR.exports=function(t,n){var r=[];r.push(k3(t));for(var i=0;i<n.length;i++){var a=n[i],s;try{s=a.toString()}catch(u){try{s="<error: "+u+">"}catch{s="<error>"}}r.push(" at "+s)}return r.join(`
`)}});var dR=_((D5,pR)=>{var im=cR();function lR(){this.extend=new zu,this.filter=new zu,this.format=new Gu,this.version=oy().version}var uy=!1;lR.prototype.callSite=function e(t){t||(t={}),uy=!0;var n={};Error.captureStackTrace(n,e);var r=n.stack;return uy=!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 Ba=new lR;function zu(){this._modifiers=[]}zu.prototype._modify=function(e,t){for(var n=0,r=this._modifiers.length;n<r;n++)t=this._modifiers[n](e,t);return t};zu.prototype.attach=function(e){this._modifiers.push(e)};zu.prototype.deattach=function(e){var t=this._modifiers.indexOf(e);return t===-1?!1:(this._modifiers.splice(t,1),!0)};function Gu(){this._formater=im,this._previous=void 0}Gu.prototype.replace=function(e){e?this._formater=e:this.restore()};Gu.prototype.restore=function(){this._formater=im,this._previous=void 0};Gu.prototype._backup=function(){this._previous=this._formater};Gu.prototype._roolback=function(){this._previous===im?this.replace(void 0):this.replace(this._previous),this._previous=void 0};Error.prepareStackTrace&&Ba.format.replace(Error.prepareStackTrace);var cy=!1;function uR(e,t){if(uy)return t;if(cy)return im(e,t);var n=t.concat();n=Ba.extend._modify(e,n),n=Ba.filter._modify(e,n),n=n.slice(0,Error.stackTraceLimit),Object.isExtensible(e)&&Object.getOwnPropertyDescriptor(e,"callSite")===void 0&&(e.callSite={original:t,mutated:n}),cy=!0;var r=Ba.format._formater(e,n);return cy=!1,r}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return uR},set:function(e){e===uR?Ba.format._roolback():(Ba.format._backup(),Ba.format.replace(e))}});function q3(){return this.stack,this.callSite}Object.defineProperty(Error.prototype,"callSite",{get:q3,set:function(e){Object.defineProperty(this,"callSite",{value:e,writable:!0,configurable:!0})},configurable:!0});pR.exports=Ba});var py=_((M5,ly)=>{if(global._stackChain)if(global._stackChain.version===oy().version)ly.exports=global._stackChain;else throw new Error("Conflicting version of stack-chain found");else ly.exports=global._stackChain=dR()});var fR=_((L5,dy)=>{"use strict";var j3=sR();if(global._asyncHook)if(global._asyncHook.version===ay().version)dy.exports=global._asyncHook;else throw new Error("Conflicting version of async-hook-jl found");else py().filter.attach(function(t,n){return n.filter(function(r){let i=r.getFileName();return!(i&&i.slice(0,__dirname.length)===__dirname)})}),dy.exports=global._asyncHook=new j3});var bR=_((k5,gR)=>{"use strict";var yn=require("util"),pa=require("assert"),U3=nm(),pc=fR(),Vu="cls@contexts",Ku="error@context",vR=[];for(let e in pc.providers)vR[pc.providers[e]]=e;var ln=process.env.DEBUG_CLS_HOOKED,xn=-1;gR.exports={getNamespace:hR,createNamespace:F3,destroyNamespace:_R,reset:H3,ERROR_SYMBOL:Ku};function ti(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map}ti.prototype.set=function(t,n){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return ln&&bn(" SETTING KEY:"+t+"="+n+" in ns:"+this.name+" uid:"+xn+" active:"+yn.inspect(this.active,!0)),this.active[t]=n,n};ti.prototype.get=function(t){if(!this.active){ln&&bn(" GETTING KEY:"+t+"=undefined "+this.name+" uid:"+xn+" active:"+yn.inspect(this.active,!0));return}return ln&&bn(" GETTING KEY:"+t+"="+this.active[t]+" "+this.name+" uid:"+xn+" active:"+yn.inspect(this.active,!0)),this.active[t]};ti.prototype.createContext=function(){ln&&bn(" CREATING Context: "+this.name+" uid:"+xn+" len:"+this._set.length+" active:"+yn.inspect(this.active,!0,2,!0));let t=Object.create(this.active?this.active:Object.prototype);return t._ns_name=this.name,t.id=xn,ln&&bn(" CREATED Context: "+this.name+" uid:"+xn+" len:"+this._set.length+" context:"+yn.inspect(t,!0,2,!0)),t};ti.prototype.run=function(t){let n=this.createContext();this.enter(n);try{return ln&&bn(" BEFORE RUN: "+this.name+" uid:"+xn+" len:"+this._set.length+" "+yn.inspect(n)),t(n),n}catch(r){throw r&&(r[Ku]=n),r}finally{ln&&bn(" AFTER RUN: "+this.name+" uid:"+xn+" len:"+this._set.length+" "+yn.inspect(n)),this.exit(n)}};ti.prototype.runAndReturn=function(t){var n;return this.run(function(r){n=t(r)}),n};ti.prototype.runPromise=function(t){let n=this.createContext();this.enter(n);let r=t(n);if(!r||!r.then||!r.catch)throw new Error("fn must return a promise.");return ln&&bn(" BEFORE runPromise: "+this.name+" uid:"+xn+" len:"+this._set.length+" "+yn.inspect(n)),r.then(i=>(ln&&bn(" AFTER runPromise: "+this.name+" uid:"+xn+" len:"+this._set.length+" "+yn.inspect(n)),this.exit(n),i)).catch(i=>{throw i[Ku]=n,ln&&bn(" AFTER runPromise: "+this.name+" uid:"+xn+" len:"+this._set.length+" "+yn.inspect(n)),this.exit(n),i})};ti.prototype.bind=function(t,n){n||(this.active?n=this.active:n=this.createContext());let r=this;return function(){r.enter(n);try{return t.apply(this,arguments)}catch(a){throw a&&(a[Ku]=n),a}finally{r.exit(n)}}};ti.prototype.enter=function(t){pa.ok(t,"context must be provided for entering"),ln&&bn(" ENTER "+this.name+" uid:"+xn+" len:"+this._set.length+" context: "+yn.inspect(t)),this._set.push(this.active),this.active=t};ti.prototype.exit=function(t){if(pa.ok(t,"context must be provided for exiting"),ln&&bn(" EXIT "+this.name+" uid:"+xn+" len:"+this._set.length+" context: "+yn.inspect(t)),this.active===t){pa.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}let n=this._set.lastIndexOf(t);n<0?(ln&&bn("??ERROR?? context exiting but not entered - ignoring: "+yn.inspect(t)),pa.ok(n>=0,`context not currently entered; can't exit.
`+yn.inspect(this)+`
`+yn.inspect(t))):(pa.ok(n,"can't remove top context"),this._set.splice(n,1))};ti.prototype.bindEmitter=function(t){pa.ok(t.on&&t.addListener&&t.emit,"can only bind real EEs");let n=this,r="context@"+this.name;function i(s){s&&(s[Vu]||(s[Vu]=Object.create(null)),s[Vu][r]={namespace:n,context:n.active})}function a(s){if(!(s&&s[Vu]))return s;let u=s,l=s[Vu];return Object.keys(l).forEach(function(c){let f=l[c];u=f.namespace.bind(u,f.context)}),u}U3(t,i,a)};ti.prototype.fromException=function(t){return t[Ku]};function hR(e){return process.namespaces[e]}function F3(e){pa.ok(e,"namespace must be given a name."),ln&&bn("CREATING NAMESPACE "+e);let t=new ti(e);return t.id=xn,pc.addHooks({init(n,r,i,a,s){xn=n,a?(t._contexts.set(n,t._contexts.get(a)),ln&&bn("PARENTID: "+e+" uid:"+n+" parent:"+a+" provider:"+i)):t._contexts.set(xn,t.active),ln&&bn("INIT "+e+" uid:"+n+" parent:"+a+" provider:"+vR[i]+" active:"+yn.inspect(t.active,!0))},pre(n,r){xn=n;let i=t._contexts.get(n);i?(ln&&bn(" PRE "+e+" uid:"+n+" handle:"+am(r)+" context:"+yn.inspect(i)),t.enter(i)):ln&&bn(" PRE MISSING CONTEXT "+e+" uid:"+n+" handle:"+am(r))},post(n,r){xn=n;let i=t._contexts.get(n);i?(ln&&bn(" POST "+e+" uid:"+n+" handle:"+am(r)+" context:"+yn.inspect(i)),t.exit(i)):ln&&bn(" POST MISSING CONTEXT "+e+" uid:"+n+" handle:"+am(r))},destroy(n){xn=n,ln&&bn("DESTROY "+e+" uid:"+n+" context:"+yn.inspect(t._contexts.get(xn))+" active:"+yn.inspect(t.active,!0)),t._contexts.delete(n)}}),process.namespaces[e]=t,t}function _R(e){let t=hR(e);pa.ok(t,`can't delete nonexistent namespace! "`+e+'"'),pa.ok(t.id,"don't assign to process.namespaces directly! "+yn.inspect(t)),process.namespaces[e]=null}function H3(){process.namespaces&&Object.keys(process.namespaces).forEach(function(e){_R(e)}),process.namespaces=Object.create(null)}process.namespaces={};pc._state&&!pc._state.enabled&&pc.enable();function bn(e){process.env.DEBUG&&process._rawDebug(e)}function am(e){if(!e)return e;if(typeof e=="function")return e.name?e.name:(e.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1];if(e.constructor&&e.constructor.name)return e.constructor.name}if(ln){fy=py();for(mR in fy.filter._modifiers)fy.filter.deattach(mR)}var fy,mR});var yR=_((q5,my)=>{"use strict";var B3=Mp();process&&B3.gte(process.versions.node,"8.0.0")?my.exports=QC():my.exports=bR()});var SR=_((j5,TR)=>{var z3=Jf().wrap,hy=1,_y=2,gy=4,om=8,Dt=[],G3=0,cr=!1,za=[],dc,by;function yy(e,t){var n=e.length,r=t.length,i=[];if(n===0&&r===0)return i;for(var a=0;a<n;a++)i[a]=e[a];if(r===0)return i;for(var s=0;s<r;s++){var u=!0;for(a=0;a<n;a++)if(e[a].uid===t[s].uid){u=!1;break}u&&i.push(t[s])}return i}process._fatalException?(sm=!1,dc=function(t){var n=Dt.length;if(sm||n===0)return!1;var r=!1;sm=!0;for(var i=0;i<n;++i){var a=Dt[i];if(a.flags&om){var s=fc&&fc[a.uid];r=a.error(s,t)||r}}return sm=!1,za.length>0&&(Dt=za.pop()),fc=void 0,r&&!cr},by=function(t,n,r){var i=[];cr=!0;for(var a=0;a<r;++a){var s=n[a];if(i[s.uid]=s.data,!!(s.flags&hy)){var u=s.create(s.data);u!==void 0&&(i[s.uid]=u)}}return cr=!1,function(){fc=i,za.push(Dt),Dt=yy(n,Dt),cr=!0;for(var l=0;l<r;++l)(n[l].flags&_y)>0&&n[l].before(this,i[n[l].uid]);cr=!1;var c=t.apply(this,arguments);for(cr=!0,l=0;l<r;++l)(n[l].flags&gy)>0&&n[l].after(this,i[n[l].uid]);return cr=!1,Dt=za.pop(),fc=void 0,c}},z3(process,"_fatalException",function(e){return function(n){return dc(n)||e(n)}})):(vy=!1,dc=function(t){if(vy)throw t;for(var n=!1,r=Dt.length,i=0;i<r;++i){var a=Dt[i];a.flags&om&&(n=a.error(null,t)||n)}if(!n&&cr)throw t},by=function(t,n,r){var i=[];cr=!0;for(var a=0;a<r;++a){var s=n[a];if(i[s.uid]=s.data,!!(s.flags&hy)){var u=s.create(s.data);u!==void 0&&(i[s.uid]=u)}}return cr=!1,function(){var l=!1,c=!1;za.push(Dt),Dt=yy(n,Dt),cr=!0;for(var f=0;f<r;++f)(n[f].flags&_y)>0&&n[f].before(this,i[n[f].uid]);cr=!1;var v;try{v=t.apply(this,arguments)}catch(b){l=!0;for(var f=0;f<r;++f)if(Dt[f].flags&om)try{c=Dt[f].error(i[n[f].uid],b)||c}catch(x){throw vy=!0,x}if(!c)throw process.removeListener("uncaughtException",dc),process._originalNextTick(function(){process.addListener("uncaughtException",dc)}),b}finally{if(!l||c){for(cr=!0,f=0;f<r;++f)(n[f].flags&gy)>0&&n[f].after(this,i[n[f].uid]);cr=!1}Dt=za.pop()}return v}},process.addListener("uncaughtException",dc));var sm,fc,vy;function V3(e,t,n){cr=!0;for(var r=0;r<n;++r){var i=t[r];i.create&&i.create(i.data)}return cr=!1,function(){za.push(Dt),Dt=yy(t,Dt);var a=e.apply(this,arguments);return Dt=za.pop(),a}}function K3(e){var t=Dt.length;if(t===0)return e;for(var n=Dt.slice(),r=0;r<t;++r)if(n[r].flags>0)return by(e,n,t);return V3(e,n,t)}function ji(e,t){typeof e.create=="function"&&(this.create=e.create,this.flags|=hy),typeof e.before=="function"&&(this.before=e.before,this.flags|=_y),typeof e.after=="function"&&(this.after=e.after,this.flags|=gy),typeof e.error=="function"&&(this.error=e.error,this.flags|=om),this.uid=++G3,this.data=t===void 0?null:t}ji.prototype.create=void 0;ji.prototype.before=void 0;ji.prototype.after=void 0;ji.prototype.error=void 0;ji.prototype.data=void 0;ji.prototype.uid=0;ji.prototype.flags=0;function ER(e,t){if(typeof e!="object"||!e)throw new TypeError("callbacks argument must be an object");return e instanceof ji?e:new ji(e,t)}function W3(e,t){var n;e instanceof ji?n=e:n=ER(e,t);for(var r=!1,i=0;i<Dt.length;i++)if(n===Dt[i]){r=!0;break}return r||Dt.push(n),n}function $3(e){for(var t=0;t<Dt.length;t++)if(e===Dt[t]){Dt.splice(t,1);break}}process.createAsyncListener=ER;process.addAsyncListener=W3;process.removeAsyncListener=$3;TR.exports=K3});var AR=_((F5,xR)=>{"use strict";xR.exports=(e,t)=>class extends e{constructor(r){var i,a;super(u);var s=this;try{r.apply(i,a)}catch(l){a[1](l)}return s;function u(l,c){i=this,a=[f,v];function f(b){return t(s,!1),l(b)}function v(b){return t(s,!1),c(b)}}}}});var NR=_(()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var CR=Jf(),um=Mp(),Pr=CR.wrap,Ga=CR.massWrap,nn=SR(),Y3=require("util"),X3=um.gte(process.version,"6.0.0"),Sy=um.gte(process.version,"7.0.0"),Q3=um.gte(process.version,"8.0.0"),Z3=um.gte(process.version,"11.0.0"),Ui=require("net");Sy&&!Ui._normalizeArgs?Ui._normalizeArgs=function(e){if(e.length===0)return[{},null];var t=e[0],n={};typeof t=="object"&&t!==null?n=t:rz(t)?n.path=t:(n.port=t,e.length>1&&typeof e[1]=="string"&&(n.host=e[1]));var r=e[e.length-1];return typeof r!="function"?[n,null]:[n,r]}:!Sy&&!Ui._normalizeConnectArgs&&(Ui._normalizeConnectArgs=function(e){var t={};function n(i){return(i=Number(i))>=0?i:!1}typeof e[0]=="object"&&e[0]!==null?t=e[0]:typeof e[0]=="string"&&n(e[0])===!1?t.path=e[0]:(t.port=e[0],typeof e[1]=="string"&&(t.host=e[1]));var r=e[e.length-1];return typeof r=="function"?[t,r]:[t]});"_setUpListenHandle"in Ui.Server.prototype?Pr(Ui.Server.prototype,"_setUpListenHandle",IR):Pr(Ui.Server.prototype,"_listen2",IR);function IR(e){return function(){this.on("connection",function(t){t._handle&&(t._handle.onread=nn(t._handle.onread))});try{return e.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=nn(this._handle.onconnection))}}}function RR(e){if(e&&e._handle){var t=e._handle;t._originalOnread||(t._originalOnread=t.onread),t.onread=nn(t._originalOnread)}}Pr(Ui.Socket.prototype,"connect",function(e){return function(){var t;Q3&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?t=arguments[0]:t=Sy?Ui._normalizeArgs(arguments):Ui._normalizeConnectArgs(arguments),t[1]&&(t[1]=nn(t[1]));var n=e.apply(this,t);return RR(this),n}});var J3=require("http");Pr(J3.Agent.prototype,"addRequest",function(e){return function(t){var n=t.onSocket;return t.onSocket=nn(function(r){return RR(r),n.apply(this,arguments)}),e.apply(this,arguments)}});var Ey=require("child_process");function OR(e){Array.isArray(e.stdio)&&e.stdio.forEach(function(t){t&&t._handle&&(t._handle.onread=nn(t._handle.onread),Pr(t._handle,"close",lm))}),e._handle&&(e._handle.onexit=nn(e._handle.onexit))}Ey.ChildProcess?Pr(Ey.ChildProcess.prototype,"spawn",function(e){return function(){var t=e.apply(this,arguments);return OR(this),t}}):Ga(Ey,["execFile","fork","spawn"],function(e){return function(){var t=e.apply(this,arguments);return OR(t),t}});process._fatalException||(process._originalNextTick=process.nextTick);var Iy=[];process._nextDomainTick&&Iy.push("_nextDomainTick");process._tickDomainCallback&&Iy.push("_tickDomainCallback");Ga(process,Iy,Fi);Pr(process,"nextTick",lm);var Oy=["setTimeout","setInterval"];global.setImmediate&&Oy.push("setImmediate");var wR=require("timers"),ez=global.setTimeout===wR.setTimeout;Ga(wR,Oy,lm);ez&&Ga(global,Oy,lm);var xy=require("dns");Ga(xy,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],Fi);xy.resolveNaptr&&Pr(xy,"resolveNaptr",Fi);var to=require("fs");Ga(to,["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"],Fi);to.lchown&&Pr(to,"lchown",Fi);to.lchmod&&Pr(to,"lchmod",Fi);to.ftruncate&&Pr(to,"ftruncate",Fi);var Wu;try{Wu=require("zlib")}catch{}Wu&&Wu.Deflate&&Wu.Deflate.prototype&&(eo=Object.getPrototypeOf(Wu.Deflate.prototype),eo._transform?Pr(eo,"_transform",Fi):eo.write&&eo.flush&&eo.end&&Ga(eo,["write","flush","end"],Fi));var eo,Ay;try{Ay=require("crypto")}catch{}Ay&&(Ty=["pbkdf2","randomBytes"],Z3||Ty.push("pseudoRandomBytes"),Ga(Ay,Ty,Fi));var Ty,cm=!!global.Promise&&Promise.toString()==="function Promise() { [native code] }"&&Promise.toString.toString()==="function toString() { [native code] }";cm&&(PR=process.addAsyncListener({create:function(){cm=!1}}),global.Promise.resolve(!0).then(function(){cm=!1}),process.removeAsyncListener(PR));var PR;cm&&tz();function tz(){var e=global.Promise;function t(s){if(!(this instanceof t))return e(s);if(typeof s!="function")return new e(s);var u,l,c=new e(f);c.__proto__=t.prototype;try{s.apply(u,l)}catch(v){l[1](v)}return c;function f(v,b){u=this,l=[T,x];function T(M){return r(c,!1),v(M)}function x(M){return r(c,!1),b(M)}}}if(Y3.inherits(t,e),Pr(e.prototype,"then",a),e.prototype.chain&&Pr(e.prototype,"chain",a),X3)global.Promise=AR()(e,r);else{var n=["all","race","reject","resolve","accept","defer"];n.forEach(function(s){typeof e[s]=="function"&&(t[s]=e[s])}),global.Promise=t}function r(s,u){(!s.__asl_wrapper||u)&&(s.__asl_wrapper=nn(i))}function i(s,u,l,c){var f;try{return f=u.call(s,l),{returnVal:f,error:!1}}catch(v){return{errorVal:v,error:!0}}finally{f instanceof e?c.__asl_wrapper=function(){var b=f.__asl_wrapper||i;return b.apply(this,arguments)}:r(c,!0)}}function a(s){return function(){var l=this,c=s.apply(l,Array.prototype.map.call(arguments,f));return c.__asl_wrapper=function(b,T,x,M){return l.__asl_wrapper?(l.__asl_wrapper(b,function(){},null,c),c.__asl_wrapper(b,T,x,M)):i(b,T,x,M)},c;function f(v){return typeof v!="function"?v:nn(function(b){var T=(l.__asl_wrapper||i)(this,v,b,c);if(T.error)throw T.errorVal;return T.returnVal})}}}}function Fi(e){var t=function(){var n,r=arguments.length-1;if(typeof arguments[r]=="function"){n=Array(arguments.length);for(var i=0;i<arguments.length-1;i++)n[i]=arguments[i];n[r]=nn(arguments[r])}return e.apply(this,n||arguments)};switch(e.length){case 1:return function(n){return arguments.length!==1?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n))};case 2:return function(n,r){return arguments.length!==2?t.apply(this,arguments):(typeof r=="function"&&(r=nn(r)),e.call(this,n,r))};case 3:return function(n,r,i){return arguments.length!==3?t.apply(this,arguments):(typeof i=="function"&&(i=nn(i)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return arguments.length!==4?t.apply(this,arguments):(typeof a=="function"&&(a=nn(a)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return arguments.length!==5?t.apply(this,arguments):(typeof s=="function"&&(s=nn(s)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,u){return arguments.length!==6?t.apply(this,arguments):(typeof u=="function"&&(u=nn(u)),e.call(this,n,r,i,a,s,u))};default:return t}}function lm(e){var t=function(){var n;if(typeof arguments[0]=="function"){n=Array(arguments.length),n[0]=nn(arguments[0]);for(var r=1;r<arguments.length;r++)n[r]=arguments[r]}return e.apply(this,n||arguments)};switch(e.length){case 1:return function(n){return arguments.length!==1?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n))};case 2:return function(n,r){return arguments.length!==2?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n,r))};case 3:return function(n,r,i){return arguments.length!==3?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return arguments.length!==4?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return arguments.length!==5?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,u){return arguments.length!==6?t.apply(this,arguments):(typeof n=="function"&&(n=nn(n)),e.call(this,n,r,i,a,s,u))};default:return t}}function nz(e){return(e=Number(e))>=0?e:!1}function rz(e){return typeof e=="string"&&nz(e)===!1}});var qR=_((z5,kR)=>{"use strict";var da=require("assert"),iz=nm(),$u="cls@contexts",Py="error@context";process.addAsyncListener||NR();function bi(e){this.name=e,this.active=null,this._set=[],this.id=null}bi.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};bi.prototype.get=function(e){if(this.active)return this.active[e]};bi.prototype.createContext=function(){return Object.create(this.active)};bi.prototype.run=function(e){var t=this.createContext();this.enter(t);try{return e(t),t}catch(n){throw n&&(n[Py]=t),n}finally{this.exit(t)}};bi.prototype.runAndReturn=function(e){var t;return this.run(function(n){t=e(n)}),t};bi.prototype.bind=function(e,t){t||(this.active?t=this.active:t=this.createContext());var n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(r){throw r&&(r[Py]=t),r}finally{n.exit(t)}}};bi.prototype.enter=function(e){da.ok(e,"context must be provided for entering"),this._set.push(this.active),this.active=e};bi.prototype.exit=function(e){if(da.ok(e,"context must be provided for exiting"),this.active===e){da.ok(this._set.length,"can't remove top context"),this.active=this._set.pop();return}var t=this._set.lastIndexOf(e);da.ok(t>=0,"context not currently entered; can't exit"),da.ok(t,"can't remove top context"),this._set.splice(t,1)};bi.prototype.bindEmitter=function(e){da.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");var t=this,n="context@"+this.name;function r(a){a&&(a[$u]||(a[$u]=Object.create(null)),a[$u][n]={namespace:t,context:t.active})}function i(a){if(!(a&&a[$u]))return a;var s=a,u=a[$u];return Object.keys(u).forEach(function(l){var c=u[l];s=c.namespace.bind(s,c.context)}),s}iz(e,r,i)};bi.prototype.fromException=function(e){return e[Py]};function DR(e){return process.namespaces[e]}function az(e){da.ok(e,"namespace must be given a name!");var t=new bi(e);return t.id=process.addAsyncListener({create:function(){return t.active},before:function(n,r){r&&t.enter(r)},after:function(n,r){r&&t.exit(r)},error:function(n){n&&t.exit(n)}}),process.namespaces[e]=t,t}function MR(e){var t=DR(e);da.ok(t,"can't delete nonexistent namespace!"),da.ok(t.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(t.id),process.namespaces[e]=null}function LR(){process.namespaces&&Object.keys(process.namespaces).forEach(function(e){MR(e)}),process.namespaces=Object.create(null)}process.namespaces||LR();kR.exports={getNamespace:DR,createNamespace:az,destroyNamespace:MR,reset:LR}});var Va=_(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.CorrelationContextManager=void 0;var mc=Zt(),sz=Yf(),no=Xf(),Cy=Lb(),jR=ey(),pm=Kn(),oz=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return t===void 0?null:t},e.generateContextObject=function(t,n,r,i,a,s){return n=n||t,this.enabled?{operation:{name:r,id:t,parentId:n,traceparent:a,tracestate:s},customProperties:new cz(i)}:null},e.spanToContextObject=function(t,n,r){var i=new no;return i.traceId=t.traceId,i.spanId=t.spanId,i.traceFlag=no.formatOpenTelemetryTraceFlags(t.traceFlags)||no.DEFAULT_TRACE_FLAG,i.parentId=n,e.generateContextObject(i.traceId,i.parentId,r,null,i)},e.runWithContext=function(t,n){var r;if(e.enabled)try{return e.session.bind(n,(r={},r[e.CONTEXT_NAME]=t,r))()}catch(i){mc.warn("Error binding to session context",pm.dumpObj(i))}return n()},e.wrapEmitter=function(t){if(e.enabled)try{e.session.bindEmitter(t)}catch(n){mc.warn("Error binding to session context",pm.dumpObj(n))}},e.wrapCallback=function(t,n){var r;if(e.enabled)try{return e.session.bind(t,n?(r={},r[e.CONTEXT_NAME]=n,r):void 0)}catch(i){mc.warn("Error binding to session context",pm.dumpObj(i))}return t},e.enable=function(t){if(!this.enabled){if(!this.isNodeVersionCompatible()){this.enabled=!1;return}e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,typeof this.cls>"u"&&(e.forceClsHooked===!0||e.forceClsHooked===void 0&&e.shouldUseClsHooked()?this.cls=yR():this.cls=qR()),e.session=this.cls.createNamespace("AI-CLS-Session"),sz.registerContextPreservation(function(n){try{return e.session.bind(n)}catch(r){mc.warn("Error binding to session context",pm.dumpObj(r))}})),this.enabled=!0}},e.startOperation=function(t,n){var r=t&&t.traceContext||null,i=t&&t.spanContext?t:null,a=t&&t.traceId?t:null,s=t&&t.headers;if(i)return this.spanToContextObject(i.spanContext(),i.parentSpanId,i.name);if(a)return this.spanToContextObject(a,"|"+a.traceId+"."+a.spanId+".",typeof n=="string"?n:"");var u=typeof n=="string"?n:"";if(r){var l=null,c=null;if(u=r.attributes.OperationName||u,n){var f=n;f.headers&&(f.headers.traceparent?l=new no(f.headers.traceparent):f.headers["request-id"]&&(l=new no(null,f.headers["request-id"])),f.headers.tracestate&&(c=new Cy(f.headers.tracestate)))}l||(l=new no(r.traceparent)),c||(c=new Cy(r.tracestate));var v=void 0;if(typeof n=="object"){var b=new jR(n);v=b.getCorrelationContextHeader(),u=b.getOperationName({})}var T=e.generateContextObject(l.traceId,l.parentId,u,v,l,c);return T}if(s){var l=new no(s.traceparent?s.traceparent.toString():null),c=new Cy(s.tracestate?s.tracestate.toString():null),b=new jR(t),T=e.generateContextObject(l.traceId,l.parentId,b.getOperationName({}),b.getCorrelationContextHeader(),l,c);return T}return mc.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 t=process.versions.node.split(".");return parseInt(t[0])>3||parseInt(t[0])>2&&parseInt(t[1])>2},e.shouldUseClsHooked=function(){var t=process.versions.node.split(".");return parseInt(t[0])>8||parseInt(t[0])>=8&&parseInt(t[1])>=2},e.canUseClsHooked=function(){var t=process.versions.node.split("."),n=parseInt(t[0])>8||parseInt(t[0])>=8&&parseInt(t[1])>=0,r=parseInt(t[0])<8||parseInt(t[0])<=8&&parseInt(t[1])<2,i=parseInt(t[0])>4||parseInt(t[0])>=4&&parseInt(t[1])>=7;return!(n&&r)&&i},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();dm.CorrelationContextManager=oz;var cz=function(){function e(t){this.props=[],this.addHeaderData(t)}return e.prototype.addHeaderData=function(t){var n=t?t.split(", "):[];this.props=n.map(function(r){var i=r.split("=");return{key:i[0],value:i[1]}}).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map(function(t){return t.key+"="+t.value}).join(", ")},e.prototype.getProperty=function(t){for(var n=0;n<this.props.length;++n){var r=this.props[n];if(r.key===t)return r.value}},e.prototype.setProperty=function(t,n){if(e.bannedCharacters.test(t)||e.bannedCharacters.test(n)){mc.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+t+" and value: "+n);return}for(var r=0;r<this.props.length;++r){var i=this.props[r];if(i.key===t){i.value=n;return}}this.props.push({key:t,value:n})},e.bannedCharacters=/[,=]/,e}()});var pn=_(te=>{"use strict";var yi;Object.defineProperty(te,"__esModule",{value:!0});te.WEB_INSTRUMENTATION_DEPRECATED_SOURCE=te.WEB_INSTRUMENTATION_DEFAULT_SOURCE=te.TIME_SINCE_ENQUEUED=te.ENQUEUED_TIME=te.MessageBusDestination=te.MicrosoftEventHub=te.AzNamespace=te.StatsbeatNetworkCategory=te.StatsbeatFeatureType=te.StatsbeatInstrumentation=te.StatsbeatFeature=te.StatsbeatCounter=te.StatsbeatAttach=te.StatsbeatResourceProvider=te.StatsbeatTelemetryName=te.HeartBeatMetricName=te.DependencyTypeName=te.TelemetryTypeStringToQuickPulseDocumentType=te.TelemetryTypeStringToQuickPulseType=te.QuickPulseType=te.QuickPulseDocumentType=te.PerformanceToQuickPulseCounter=te.MetricId=te.PerformanceCounter=te.QuickPulseCounter=te.DEFAULT_LIVEMETRICS_HOST=te.DEFAULT_LIVEMETRICS_ENDPOINT=te.DEFAULT_BREEZE_ENDPOINT=te.APPLICATION_INSIGHTS_SDK_VERSION=void 0;te.APPLICATION_INSIGHTS_SDK_VERSION="2.5.0";te.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com";te.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com";te.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com";var ur;(function(e){e.COMMITTED_BYTES="\\Memory\\Committed Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",e.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",e.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",e.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",e.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",e.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",e.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec"})(ur=te.QuickPulseCounter||(te.QuickPulseCounter={}));var fm;(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"})(fm=te.PerformanceCounter||(te.PerformanceCounter={}));var uz;(function(e){e.REQUESTS_DURATION="requests/duration",e.DEPENDENCIES_DURATION="dependencies/duration",e.EXCEPTIONS_COUNT="exceptions/count",e.TRACES_COUNT="traces/count"})(uz=te.MetricId||(te.MetricId={}));te.PerformanceToQuickPulseCounter=(yi={},yi[fm.PROCESSOR_TIME]=ur.PROCESSOR_TIME,yi[fm.REQUEST_RATE]=ur.REQUEST_RATE,yi[fm.REQUEST_DURATION]=ur.REQUEST_DURATION,yi[ur.COMMITTED_BYTES]=ur.COMMITTED_BYTES,yi[ur.REQUEST_FAILURE_RATE]=ur.REQUEST_FAILURE_RATE,yi[ur.DEPENDENCY_RATE]=ur.DEPENDENCY_RATE,yi[ur.DEPENDENCY_FAILURE_RATE]=ur.DEPENDENCY_FAILURE_RATE,yi[ur.DEPENDENCY_DURATION]=ur.DEPENDENCY_DURATION,yi[ur.EXCEPTION_RATE]=ur.EXCEPTION_RATE,yi);te.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"};te.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"};te.TelemetryTypeStringToQuickPulseType={EventData:te.QuickPulseType.Event,ExceptionData:te.QuickPulseType.Exception,MessageData:te.QuickPulseType.Trace,MetricData:te.QuickPulseType.Metric,RequestData:te.QuickPulseType.Request,RemoteDependencyData:te.QuickPulseType.Dependency,AvailabilityData:te.QuickPulseType.Availability,PageViewData:te.QuickPulseType.PageView};te.TelemetryTypeStringToQuickPulseDocumentType={EventData:te.QuickPulseDocumentType.Event,ExceptionData:te.QuickPulseDocumentType.Exception,MessageData:te.QuickPulseDocumentType.Trace,MetricData:te.QuickPulseDocumentType.Metric,RequestData:te.QuickPulseDocumentType.Request,RemoteDependencyData:te.QuickPulseDocumentType.Dependency,AvailabilityData:te.QuickPulseDocumentType.Availability,PageViewData:te.QuickPulseDocumentType.PageView};te.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc",Sql:"SQL",QueueMessage:"Queue Message"};te.HeartBeatMetricName="HeartBeat";te.StatsbeatTelemetryName="Statsbeat";te.StatsbeatResourceProvider={appsvc:"appsvc",functions:"functions",vm:"vm",unknown:"unknown"};te.StatsbeatAttach={codeless:"codeless",sdk:"sdk"};te.StatsbeatCounter={REQUEST_SUCCESS:"Request Success Count",REQUEST_FAILURE:"Request Failure Count",REQUEST_DURATION:"Request Duration",RETRY_COUNT:"Retry Count",THROTTLE_COUNT:"Throttle Count",EXCEPTION_COUNT:"Exception Count",ATTACH:"Attach",FEATURE:"Feature"};var lz;(function(e){e[e.NONE=0]="NONE",e[e.DISK_RETRY=1]="DISK_RETRY",e[e.AAD_HANDLING=2]="AAD_HANDLING",e[e.WEB_SNIPPET=4]="WEB_SNIPPET"})(lz=te.StatsbeatFeature||(te.StatsbeatFeature={}));var pz;(function(e){e[e.NONE=0]="NONE",e[e.AZURE_CORE_TRACING=1]="AZURE_CORE_TRACING",e[e.MONGODB=2]="MONGODB",e[e.MYSQL=4]="MYSQL",e[e.REDIS=8]="REDIS",e[e.POSTGRES=16]="POSTGRES",e[e.BUNYAN=32]="BUNYAN",e[e.WINSTON=64]="WINSTON",e[e.CONSOLE=128]="CONSOLE"})(pz=te.StatsbeatInstrumentation||(te.StatsbeatInstrumentation={}));var dz;(function(e){e[e.Feature=0]="Feature",e[e.Instrumentation=1]="Instrumentation"})(dz=te.StatsbeatFeatureType||(te.StatsbeatFeatureType={}));var fz;(function(e){e[e.Breeze=0]="Breeze",e[e.Quickpulse=1]="Quickpulse"})(fz=te.StatsbeatNetworkCategory||(te.StatsbeatNetworkCategory={}));te.AzNamespace="az.namespace";te.MicrosoftEventHub="Microsoft.EventHub";te.MessageBusDestination="message_bus.destination";te.ENQUEUED_TIME="enqueuedTime";te.TIME_SINCE_ENQUEUED="timeSinceEnqueued";te.WEB_INSTRUMENTATION_DEFAULT_SOURCE="https://js.monitor.azure.com/scripts/b/ai";te.WEB_INSTRUMENTATION_DEPRECATED_SOURCE="https://az416426.vo.msecnd.net/scripts/b/ai"});var FR=_(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.dispose=vc.enable=void 0;var UR=or(),mz=pn(),mm=un(),Ka=[],Ry=function(e){var t=e.data.message;Ka.forEach(function(n){t instanceof Error?n.trackException({exception:t}):(t.lastIndexOf(`
`)==t.length-1&&(t=t.substring(0,t.length-1)),n.trackTrace({message:t,severity:e.data.stderr?UR.SeverityLevel.Warning:UR.SeverityLevel.Information}))})};function vz(e,t){if(e){var n=Ka.find(function(r){return r==t});if(n)return;Ka.length===0&&mm.channel.subscribe("console",Ry,mm.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(mz.StatsbeatInstrumentation.CONSOLE)}),Ka.push(t)}else Ka=Ka.filter(function(r){return r!=t}),Ka.length===0&&mm.channel.unsubscribe("console",Ry)}vc.enable=vz;function hz(){mm.channel.unsubscribe("console",Ry),Ka=[]}vc.dispose=hz});var HR=_(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.dispose=_c.enable=void 0;var hc=or(),_z=pn(),vm=un(),Wa=[],gz={10:hc.SeverityLevel.Verbose,20:hc.SeverityLevel.Verbose,30:hc.SeverityLevel.Information,40:hc.SeverityLevel.Warning,50:hc.SeverityLevel.Error,60:hc.SeverityLevel.Critical},wy=function(e){var t=e.data.result;Wa.forEach(function(n){try{var r=JSON.parse(t);if(r.err){var i=new Error(r.err.message);i.name=r.err.name,i.stack=r.err.stack,n.trackException({exception:i});return}}catch{}var a=gz[e.data.level];n.trackTrace({message:t,severity:a})})};function bz(e,t){if(e){var n=Wa.find(function(r){return r==t});if(n)return;Wa.length===0&&vm.channel.subscribe("bunyan",wy,vm.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(_z.StatsbeatInstrumentation.BUNYAN)}),Wa.push(t)}else Wa=Wa.filter(function(r){return r!=t}),Wa.length===0&&vm.channel.unsubscribe("bunyan",wy)}_c.enable=bz;function yz(){vm.channel.unsubscribe("bunyan",wy),Wa=[]}_c.dispose=yz});var BR=_(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.dispose=gc.enable=void 0;var Ez=pn(),Yn=or(),hm=un(),$a=[],Tz={syslog:function(e){var t={emerg:Yn.SeverityLevel.Critical,alert:Yn.SeverityLevel.Critical,crit:Yn.SeverityLevel.Critical,error:Yn.SeverityLevel.Error,warning:Yn.SeverityLevel.Warning,notice:Yn.SeverityLevel.Information,info:Yn.SeverityLevel.Information,debug:Yn.SeverityLevel.Verbose};return t[e]===void 0?Yn.SeverityLevel.Information:t[e]},npm:function(e){var t={error:Yn.SeverityLevel.Error,warn:Yn.SeverityLevel.Warning,info:Yn.SeverityLevel.Information,verbose:Yn.SeverityLevel.Verbose,debug:Yn.SeverityLevel.Verbose,silly:Yn.SeverityLevel.Verbose};return t[e]===void 0?Yn.SeverityLevel.Information:t[e]},unknown:function(e){return Yn.SeverityLevel.Information}},Ny=function(e){var t=e.data.message;$a.forEach(function(n){if(t instanceof Error)n.trackException({exception:t,properties:e.data.meta});else{var r=Tz[e.data.levelKind](e.data.level);n.trackTrace({message:t,severity:r,properties:e.data.meta})}})};function Sz(e,t){if(e){var n=$a.find(function(r){return r==t});if(n)return;$a.length===0&&hm.channel.subscribe("winston",Ny,hm.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(Ez.StatsbeatInstrumentation.WINSTON)}),$a.push(t)}else $a=$a.filter(function(r){return r!=t}),$a.length===0&&hm.channel.unsubscribe("winston",Ny)}gc.enable=Sz;function xz(){hm.channel.unsubscribe("winston",Ny),$a=[]}gc.dispose=xz});var GR=_((Y5,zR)=>{"use strict";var Az=Yf(),Iz=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(t,n){Az.IsInitialized&&(FR().enable(t&&n,this._client),HR().enable(t,this._client),BR().enable(t,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}();zR.exports=Iz});var KR=_((X5,VR)=>{"use strict";var Oz=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||parseInt(n[0])===13&&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(i,a,s){s===void 0&&(s=new Error(e._FALLBACK_ERROR_MESSAGE));var u={exception:s};u.contextObjects={},u.contextObjects.Error=s,n._client.trackException(u),n._client.flush({isAppCrashing:!0}),i&&a&&process.listeners(a).length===1&&(console.error(s),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}();VR.exports=Oz});var gm=_((Q5,WR)=>{"use strict";var _m=require("os"),ni=pn(),Pz=function(){function e(t,n,r){n===void 0&&(n=6e4),r===void 0&&(r=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,e.INSTANCE||(e.INSTANCE=this),this._lastRequests={totalRequestCount:0,totalFailedRequestCount:0,time:0},this._lastDependencies={totalDependencyCount:0,totalFailedDependencyCount:0,time:0},this._lastExceptions={totalExceptionCount:0,time:0},this._isInitialized=!1,this._client=t,this._collectionInterval=n,this._enableLiveMetricsCounters=r}return e.prototype.enable=function(t,n){var r=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._lastCpus=_m.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},typeof process.cpuUsage=="function"&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=n||this._collectionInterval,this._handle=setInterval(function(){return r.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(typeof t=="string")r=+new Date("1970-01-01T"+t+"Z");else if(typeof t=="number")r=t;else return;e._intervalRequestExecutionTime+=r,n===!1&&e._totalFailedRequestCount++,e._totalRequestCount++}},e.countException=function(){e._totalExceptionCount++},e.countDependency=function(t,n){var r;if(e.isEnabled()){if(typeof t=="string")r=+new Date("1970-01-01T"+t+"Z");else if(typeof t=="number")r=t;else return;e._intervalDependencyExecutionTime+=r,n===!1&&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 t=_m.cpus();if(t&&t.length&&this._lastCpus&&t.length===this._lastCpus.length){for(var n=0,r=0,i=0,a=0,s=0,u=0;t&&u<t.length;u++){var l=t[u],c=this._lastCpus[u],f="% cpu("+u+") ",v=l.model,b=l.speed,T=l.times,x=c.times,M=T.user-x.user||0;n+=M;var N=T.sys-x.sys||0;r+=N;var se=T.nice-x.nice||0;i+=se;var ce=T.idle-x.idle||0;a+=ce;var be=T.irq-x.irq||0;s+=be}var xe=void 0;if(typeof process.cpuUsage=="function"){var ut=process.cpuUsage(),$t=process.hrtime(),It=ut.user-this._lastAppCpuUsage.user+(ut.system-this._lastAppCpuUsage.system)||0;if(typeof this._lastHrtime<"u"&&this._lastHrtime.length===2){var we=($t[0]-this._lastHrtime[0])*1e6+($t[1]-this._lastHrtime[1])/1e3||0;xe=100*It/(we*t.length)}this._lastAppCpuUsage=ut,this._lastHrtime=$t}var Ze=n+r+i+a+s||1;this._client.trackMetric({name:ni.PerformanceCounter.PROCESSOR_TIME,value:(Ze-a)/Ze*100}),this._client.trackMetric({name:ni.PerformanceCounter.PROCESS_TIME,value:xe||n/Ze*100})}this._lastCpus=t},e.prototype._trackMemory=function(){var t=_m.freemem(),n=process.memoryUsage().rss,r=_m.totalmem()-t;this._client.trackMetric({name:ni.PerformanceCounter.PRIVATE_BYTES,value:n}),this._client.trackMetric({name:ni.PerformanceCounter.AVAILABLE_BYTES,value:t}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:ni.QuickPulseCounter.COMMITTED_BYTES,value:r})},e.prototype._trackNetwork=function(){var t=this._lastRequests,n={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},r=n.totalRequestCount-t.totalRequestCount||0,i=n.totalFailedRequestCount-t.totalFailedRequestCount||0,a=n.time-t.time,s=a/1e3,u=(e._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/r||0;if(this._lastIntervalRequestExecutionTime=e._intervalRequestExecutionTime,a>0){var l=r/s,c=i/s;this._client.trackMetric({name:ni.PerformanceCounter.REQUEST_RATE,value:l}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:ni.PerformanceCounter.REQUEST_DURATION,value:u}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:ni.QuickPulseCounter.REQUEST_FAILURE_RATE,value:c})}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,i=n.totalFailedDependencyCount-t.totalFailedDependencyCount||0,a=n.time-t.time,s=a/1e3,u=(e._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/r||0;if(this._lastIntervalDependencyExecutionTime=e._intervalDependencyExecutionTime,a>0){var l=r/s,c=i/s;this._client.trackMetric({name:ni.QuickPulseCounter.DEPENDENCY_RATE,value:l}),this._client.trackMetric({name:ni.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:c}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:ni.QuickPulseCounter.DEPENDENCY_DURATION,value:u})}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,i=n.time-t.time,a=i/1e3;if(i>0){var s=r/a;this._client.trackMetric({name:ni.QuickPulseCounter.EXCEPTION_RATE,value:s})}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}();WR.exports=Pz});var $R=_(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.AggregatedMetricCounter=void 0;var Cz=function(){function e(t){this.dimensions=t,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}return e}();bm.AggregatedMetricCounter=Cz});var YR=_(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.PreaggregatedMetricPropertyNames=void 0;ym.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"}});var My=_((Dy,XR)=>{"use strict";var Tm=Dy&&Dy.__assign||function(){return Tm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tm.apply(this,arguments)},Em=pn(),Rz=$R(),wz=YR(),Nz=function(){function e(t,n){n===void 0&&(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(t,n){var r=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._collectionInterval=n||this._collectionInterval,this._handle=setInterval(function(){return r.trackPreAggregatedMetrics()},this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countException=function(t){if(e.isEnabled()){var n=e._getAggregatedCounter(t,this._exceptionCountersCollection);n.totalCount++}},e.countTrace=function(t){if(e.isEnabled()){var n=e._getAggregatedCounter(t,this._traceCountersCollection);n.totalCount++}},e.countRequest=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._requestCountersCollection);if(typeof t=="string")r=+new Date("1970-01-01T"+t+"Z");else if(typeof t=="number")r=t;else return;i.intervalExecutionTime+=r,i.totalCount++}},e.countDependency=function(t,n){if(e.isEnabled()){var r=e._getAggregatedCounter(n,this._dependencyCountersCollection),i;if(typeof t=="string")i=+new Date("1970-01-01T"+t+"Z");else if(typeof t=="number")i=t;else return;r.intervalExecutionTime+=i,r.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(t,n){for(var r=!1,i=0;i<n.length;i++){if(t===n[i].dimensions)return n[i];if(Object.keys(t).length===Object.keys(n[i].dimensions).length){for(var a in t)if(t[a]!=n[i].dimensions[a]){r=!0;break}if(!r)return n[i];r=!1}}var s=new Rz.AggregatedMetricCounter(t);return n.push(s),s},e.prototype._trackRequestMetrics=function(){for(var t=0;t<e._requestCountersCollection.length;t++){var n=e._requestCountersCollection[t];n.time=+new Date;var r=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/r||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,i>0&&r>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:n.dimensions,value:a,count:r,aggregationInterval:i,metricType:Em.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 r=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/r||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,i>0&&r>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:n.dimensions,value:a,count:r,aggregationInterval:i,metricType:Em.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];n.time=+new Date;var r=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime;i>0&&r>0&&this._trackPreAggregatedMetric({name:"Exceptions",dimensions:n.dimensions,value:r,count:r,aggregationInterval:i,metricType:Em.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];n.time=+new Date;var r=n.totalCount-n.lastTotalCount||0,i=n.time-n.lastTime;i>0&&r>0&&this._trackPreAggregatedMetric({name:"Traces",dimensions:n.dimensions,value:r,count:r,aggregationInterval:i,metricType:Em.MetricId.TRACES_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackPreAggregatedMetric=function(t){var n={};for(var r in t.dimensions)n[wz.PreaggregatedMetricPropertyNames[r]]=t.dimensions[r];n=Tm(Tm({},n),{"_MS.MetricId":t.metricType,"_MS.AggregationIntervalMs":String(t.aggregationInterval),"_MS.IsAutocollected":"True"});var i={name:t.name,value:t.value,count:t.count,properties:n,kind:"Aggregation"};this._client.trackMetric(i)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();XR.exports=Nz});var ZR=_((ky,QR)=>{"use strict";var Dz=ky&&ky.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ri=require("url"),Ly=or(),Mz=Kn(),Lz=oc(),kz=Qb(),qz=Zs(),jz=function(e){Dz(t,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 t.prototype.onError=function(n){this._setStatus(void 0,n)},t.prototype.onResponse=function(n){this._setStatus(n.statusCode,void 0),this.correlationId=Mz.getCorrelationContextTarget(n,Lz.requestContextTargetKey)},t.prototype.getDependencyTelemetry=function(n,r){var i=this.method.toUpperCase(),a=Ly.RemoteDependencyDataConstants.TYPE_HTTP,s="";try{var u=new ri.URL(this.url);u.search=void 0,u.hash=void 0,i+=" "+u.pathname,s=u.hostname,u.port&&(s+=":"+u.port)}catch{}this.correlationId?(a=Ly.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==qz.correlationIdPrefix&&(s+=" | "+this.correlationId)):a=Ly.RemoteDependencyDataConstants.TYPE_HTTP;var l={id:r,name:i,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:a,target:s};if(n&&n.time?l.time=n.time:this.startTime&&(l.time=new Date(this.startTime)),n){for(var c in n)l[c]||(l[c]=n[c]);if(n.properties)for(var c in n.properties)l.properties[c]=n.properties[c]}return l},t._getUrlFromRequestOptions=function(n,r){if(typeof n=="string")if(n.indexOf("http://")===0||n.indexOf("https://")===0)try{n=new ri.URL(n)}catch{}else try{var i=new ri.URL("http://"+n);i.port==="443"?n=new ri.URL("https://"+n):n=new ri.URL("http://"+n)}catch{}else{if(n&&typeof ri.URL=="function"&&n instanceof ri.URL)return ri.format(n);var a=n;n={},a&&Object.keys(a).forEach(function(l){n[l]=a[l]})}if(n.path&&n.host)try{var s=new ri.URL(n.path,"http://"+n.host+n.path);n.pathname=s.pathname,n.search=s.search}catch{}if(n.path&&n.hostname&&!n.host)try{var s=new ri.URL(n.path,"http://"+n.hostname+n.path);n.pathname=s.pathname,n.search=s.search}catch{}if(n.host&&n.port)try{var u=new ri.URL("http://"+n.host);!u.port&&n.port&&(n.hostname=n.host,delete n.host)}catch{}return n.protocol=n.protocol||r.agent&&r.agent.protocol||r.protocol||void 0,n.hostname=n.hostname||"localhost",ri.format(n)},t}(kz);QR.exports=jz});var JR=_(bc=>{"use strict";var Sm=bc&&bc.__assign||function(){return Sm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Sm.apply(this,arguments)};Object.defineProperty(bc,"__esModule",{value:!0});bc.parseEventHubSpan=void 0;var qy=it(),Uz=gr(),Fz=mi(),Yu=pn(),Hz=function(e){var t=0,n=0,r=Uz.hrTimeToMilliseconds(e.startTime);return e.links.forEach(function(i){var a=i.attributes,s=a?.[Yu.ENQUEUED_TIME];s&&(t+=1,n+=r-(parseFloat(s.toString())||0))}),Math.max(n/(t||1),0)},Bz=function(e,t){var n,r=e.attributes[Yu.AzNamespace],i=(e.attributes[Fz.SemanticAttributes.NET_PEER_NAME]||e.attributes["peer.address"]||"unknown").replace(/\/$/g,""),a=e.attributes[Yu.MessageBusDestination]||"unknown";switch(e.kind){case qy.SpanKind.CLIENT:t.dependencyTypeName=r,t.target=i+"/"+a;break;case qy.SpanKind.PRODUCER:t.dependencyTypeName=Yu.DependencyTypeName.QueueMessage+" | "+r,t.target=i+"/"+a;break;case qy.SpanKind.CONSUMER:t.source=i+"/"+a,t.measurements=Sm(Sm({},t.measurements),(n={},n[Yu.TIME_SINCE_ENQUEUED]=Hz(e),n));break;default:}};bc.parseEventHubSpan=Bz});var nw=_(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.spanToTelemetryContract=void 0;var ew=require("url"),Ei=it(),Ye=mi(),fa=pn(),zz=JR(),Gz=Kn();function Vz(e){for(var t={},n=0,r=Object.keys(e.attributes);n<r.length;n++){var i=r[n];i.startsWith("http.")||i.startsWith("rpc.")||i.startsWith("db.")||i.startsWith("peer.")||i.startsWith("net.")||(t[i]=e.attributes[i])}var a=e.links.map(function(s){return{operation_Id:s.context.traceId,id:s.context.spanId}});return a.length>0&&(t["_MS.links"]=Gz.stringify(a)),t}function Kz(e){return e===Ye.DbSystemValues.DB2||e===Ye.DbSystemValues.DERBY||e===Ye.DbSystemValues.MARIADB||e===Ye.DbSystemValues.MSSQL||e===Ye.DbSystemValues.ORACLE||e===Ye.DbSystemValues.SQLITE||e===Ye.DbSystemValues.OTHER_SQL||e===Ye.DbSystemValues.HSQLDB||e===Ye.DbSystemValues.H2}function tw(e){var t=e.attributes[Ye.SemanticAttributes.HTTP_METHOD];if(t){var n=e.attributes[Ye.SemanticAttributes.HTTP_URL];if(n)return String(n);var r=e.attributes[Ye.SemanticAttributes.HTTP_SCHEME],i=e.attributes[Ye.SemanticAttributes.HTTP_TARGET];if(r&&i){var a=e.attributes[Ye.SemanticAttributes.HTTP_HOST];if(a)return r+"://"+a+i;var s=e.attributes[Ye.SemanticAttributes.NET_PEER_PORT];if(s){var u=e.attributes[Ye.SemanticAttributes.NET_PEER_NAME];if(u)return r+"://"+u+":"+s+i;var l=e.attributes[Ye.SemanticAttributes.NET_PEER_IP];if(l)return r+"://"+l+":"+s+i}}}return""}function jy(e){var t=e.attributes[Ye.SemanticAttributes.PEER_SERVICE],n=e.attributes[Ye.SemanticAttributes.HTTP_HOST],r=e.attributes[Ye.SemanticAttributes.HTTP_URL],i=e.attributes[Ye.SemanticAttributes.NET_PEER_NAME],a=e.attributes[Ye.SemanticAttributes.NET_PEER_IP];return t?String(t):n?String(n):r?String(r):i?String(i):a?String(a):""}function Wz(e){var t={name:e.name,success:e.status.code!=Ei.SpanStatusCode.ERROR,resultCode:"0",duration:0,data:"",dependencyTypeName:""};e.kind===Ei.SpanKind.PRODUCER&&(t.dependencyTypeName=fa.DependencyTypeName.QueueMessage),e.kind===Ei.SpanKind.INTERNAL&&e.parentSpanId&&(t.dependencyTypeName=fa.DependencyTypeName.InProc);var n=e.attributes[Ye.SemanticAttributes.HTTP_METHOD],r=e.attributes[Ye.SemanticAttributes.DB_SYSTEM],i=e.attributes[Ye.SemanticAttributes.RPC_SYSTEM];if(n){t.dependencyTypeName=fa.DependencyTypeName.Http;var a=e.attributes[Ye.SemanticAttributes.HTTP_URL];if(a){var s="";try{var u=new ew.URL(String(a));s=u.pathname}catch{}t.name=n+" "+s}t.data=tw(e);var l=e.attributes[Ye.SemanticAttributes.HTTP_STATUS_CODE];l&&(t.resultCode=String(l));var c=jy(e);if(c){try{var f=new RegExp(/(https?)(:\/\/.*)(:\d+)(\S*)/),v=f.exec(c);if(v!=null){var b=v[1],T=v[3];(b=="https"&&T==":443"||b=="http"&&T==":80")&&(c=v[1]+v[2]+v[4])}}catch{}t.target=""+c}}else if(r){String(r)===Ye.DbSystemValues.MYSQL?t.dependencyTypeName="mysql":String(r)===Ye.DbSystemValues.POSTGRESQL?t.dependencyTypeName="postgresql":String(r)===Ye.DbSystemValues.MONGODB?t.dependencyTypeName="mongodb":String(r)===Ye.DbSystemValues.REDIS?t.dependencyTypeName="redis":Kz(String(r))?t.dependencyTypeName="SQL":t.dependencyTypeName=String(r);var x=e.attributes[Ye.SemanticAttributes.DB_STATEMENT],M=e.attributes[Ye.SemanticAttributes.DB_OPERATION];x?t.data=String(x):M&&(t.data=String(M));var c=jy(e),N=e.attributes[Ye.SemanticAttributes.DB_NAME];c?t.target=N?c+"|"+N:""+c:t.target=N?""+N:""+r}else if(i){t.dependencyTypeName=fa.DependencyTypeName.Grpc;var se=e.attributes[Ye.SemanticAttributes.RPC_GRPC_STATUS_CODE];se&&(t.resultCode=String(se));var c=jy(e);c?t.target=""+c:i&&(t.target=String(i))}return t}function $z(e){var t={name:e.name,success:e.status.code!=Ei.SpanStatusCode.ERROR,resultCode:"0",duration:0,url:"",source:void 0},n=e.attributes[Ye.SemanticAttributes.HTTP_METHOD],r=e.attributes[Ye.SemanticAttributes.RPC_GRPC_STATUS_CODE];if(n){if(e.kind==Ei.SpanKind.SERVER){var i=e.attributes[Ye.SemanticAttributes.HTTP_ROUTE],a=e.attributes[Ye.SemanticAttributes.HTTP_URL];if(i)t.name=n+" "+i;else if(a)try{var s=new ew.URL(String(a));t.name=n+" "+s.pathname}catch{}}t.url=tw(e);var u=e.attributes[Ye.SemanticAttributes.HTTP_STATUS_CODE];u&&(t.resultCode=String(u))}else r&&(t.resultCode=String(r));return t}function Yz(e){var t;switch(e.kind){case Ei.SpanKind.CLIENT:case Ei.SpanKind.PRODUCER:case Ei.SpanKind.INTERNAL:t=Wz(e);break;case Ei.SpanKind.SERVER:case Ei.SpanKind.CONSUMER:t=$z(e);break}var n=e.spanContext?e.spanContext():e.context(),r=""+n.spanId,i=Math.round(e.duration[0]*1e3+e.duration[1]/1e6);return t.id=r,t.duration=i,t.properties=Vz(e),e.attributes[fa.AzNamespace]&&(e.kind===Ei.SpanKind.INTERNAL&&(t.dependencyTypeName=fa.DependencyTypeName.InProc+" | "+e.attributes[fa.AzNamespace]),e.attributes[fa.AzNamespace]===fa.MicrosoftEventHub&&zz.parseEventHubSpan(e,t)),t}xm.spanToTelemetryContract=Yz});var iw=_(Xa=>{"use strict";var yc=Xa&&Xa.__assign||function(){return yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},yc.apply(this,arguments)};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.AsyncScopeManager=Xa.OpenTelemetryScopeManagerWrapper=void 0;var Ya=Va(),Xz=require("events"),rw=function(){function e(){}return e.prototype.active=function(){var t=this,n=Ya.CorrelationContextManager.getCurrentContext();return yc(yc({},n),{getValue:function(r){return t._activeSymbol?r===t._activeSymbol?n:!1:(t._activeSymbol=r,n)},setValue:function(){}})},e.prototype.with=function(t,n){var r=t.parentSpanId,i=t.name,a=e._spanToContext(t,r,i);return Ya.CorrelationContextManager.runWithContext(a,n)()},e.prototype.bind=function(t){return typeof t=="function"?Ya.CorrelationContextManager.wrapCallback(t):(t instanceof Xz.EventEmitter&&Ya.CorrelationContextManager.wrapEmitter(t),t)},e.prototype.enable=function(){return Ya.CorrelationContextManager.enable(),this},e.prototype.disable=function(){return Ya.CorrelationContextManager.disable(),this},e._spanToContext=function(t,n,r){var i=t.spanContext?t.spanContext():t.context(),a=yc(yc({},t.spanContext()),{traceFlags:t.spanContext().traceFlags}),s=n?"|"+i.traceId+"."+n+".":i.traceId,u=Ya.CorrelationContextManager.getCurrentContext();u&&(a.traceId=u.operation.id,n||(s=u.operation.parentId));var l=Ya.CorrelationContextManager.spanToContextObject(a,s,r);return l},e}();Xa.OpenTelemetryScopeManagerWrapper=rw;Xa.AsyncScopeManager=new rw});var aw=_(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.enable=Qa.subscriber=void 0;var Xu=it(),Qz=pn(),Uy=un(),Zz=nw(),Jz=iw(),ro=[],eG=function(e){try{var t=e.data,n=Zz.spanToTelemetryContract(t);Jz.AsyncScopeManager.with(t,function(){ro.forEach(function(r){t.kind===Xu.SpanKind.SERVER||t.kind===Xu.SpanKind.CONSUMER?r.trackRequest(n):(t.kind===Xu.SpanKind.CLIENT||t.kind===Xu.SpanKind.INTERNAL||t.kind===Xu.SpanKind.PRODUCER)&&r.trackDependency(n)})})}catch{}};Qa.subscriber=eG;function tG(e,t){if(e){var n=ro.find(function(r){return r==t});if(n)return;ro.length===0&&Uy.channel.subscribe("azure-coretracing",Qa.subscriber,Uy.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(Qz.StatsbeatInstrumentation.AZURE_CORE_TRACING)}),ro.push(t)}else ro=ro.filter(function(r){return r!=t}),ro.length===0&&Uy.channel.unsubscribe("azure-coretracing",Qa.subscriber)}Qa.enable=tG});var sw=_(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.enable=Za.subscriber=void 0;var nG=pn(),Fy=un(),io=[],rG=function(e){e.data.event.commandName!=="ismaster"&&io.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"})})};Za.subscriber=rG;function iG(e,t){if(e){var n=io.find(function(r){return r==t});if(n)return;io.length===0&&Fy.channel.subscribe("mongodb",Za.subscriber,Fy.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(nG.StatsbeatInstrumentation.MONGODB)}),io.push(t)}else io=io.filter(function(r){return r!=t}),io.length===0&&Fy.channel.unsubscribe("mongodb",Za.subscriber)}Za.enable=iG});var ow=_(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.enable=Ja.subscriber=void 0;var aG=pn(),Hy=un(),ao=[],sG=function(e){ao.forEach(function(t){var n=e.data.query||{},r=n.sql||"Unknown query",i=!e.data.err,a=n._connection||{},s=a.config||{},u=s.socketPath?s.socketPath:(s.host||"localhost")+":"+s.port;t.trackDependency({target:u,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})})};Ja.subscriber=sG;function oG(e,t){if(e){var n=ao.find(function(r){return r==t});if(n)return;ao.length===0&&Hy.channel.subscribe("mysql",Ja.subscriber,Hy.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(aG.StatsbeatInstrumentation.MYSQL)}),ao.push(t)}else ao=ao.filter(function(r){return r!=t}),ao.length===0&&Hy.channel.unsubscribe("mysql",Ja.subscriber)}Ja.enable=oG});var cw=_(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.enable=es.subscriber=void 0;var cG=pn(),By=un(),so=[],uG=function(e){so.forEach(function(t){e.data.commandObj.command!=="info"&&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"})})};es.subscriber=uG;function lG(e,t){if(e){var n=so.find(function(r){return r==t});if(n)return;so.length===0&&By.channel.subscribe("redis",es.subscriber,By.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(cG.StatsbeatInstrumentation.REDIS)}),so.push(t)}else so=so.filter(function(r){return r!=t}),so.length===0&&By.channel.unsubscribe("redis",es.subscriber)}es.enable=lG});var uw=_(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.enable=ts.subscriber=void 0;var pG=pn(),zy=un(),oo=[],dG=function(e){oo.forEach(function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",i=!e.data.error,a=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})})};ts.subscriber=dG;function fG(e,t){if(e){var n=oo.find(function(r){return r==t});if(n)return;oo.length===0&&zy.channel.subscribe("postgres",ts.subscriber,zy.trueFilter,function(r,i){var a=t.getStatsbeat();a&&a.addInstrumentation(pG.StatsbeatInstrumentation.POSTGRES)}),oo.push(t)}else oo=oo.filter(function(r){return r!=t}),oo.length===0&&zy.channel.unsubscribe("postgres",ts.subscriber)}ts.enable=fG});var Sc=_((Vy,lw)=>{"use strict";var Am=Vy&&Vy.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,u=a.length;s<u;s++,i++)r[i]=a[s];return r},Ec=require("http"),Tc=require("https"),Im=Zt(),Gy=Kn(),ns=oc(),mG=ZR(),Qu=Va(),Om=Xf(),vG=Yf(),Zu=Zs(),hG=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(t){this._isEnabled=t,this._isEnabled&&!this._isInitialized&&this._initialize(),vG.IsInitialized&&(aw().enable(t,this._client),sw().enable(t,this._client),ow().enable(t,this._client),cw().enable(t,this._client),uw().enable(t,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=Ec.request,r=Tc.request,i=function(a,s){try{var u=!s[e.disableCollectionRequestOption]&&!a[e.alreadyAutoCollectedFlag],l=null;if(s.headers&&(l=s.headers["User-Agent"]||s.headers["user-agent"],l&&l.toString().indexOf("azsdk-js")!==-1&&(u=!1)),a&&s&&u&&(Qu.CorrelationContextManager.wrapEmitter(a),t._isEnabled))if(a[e.alreadyAutoCollectedFlag]=!0,Qu.CorrelationContextManager.getCurrentContext())e.trackRequest(t._client,{options:s,request:a});else{var c=null;if(Zu.w3cEnabled){var f=new Om;c=f.traceId}else{var v=Zu.generateRequestId(null);c=Zu.getRootId(v)}var b=Qu.CorrelationContextManager.generateContextObject(c);Qu.CorrelationContextManager.runWithContext(b,function(){e.trackRequest(t._client,{options:s,request:a})})}}catch(T){Im.warn("Failed to generate dependency telemetry.",Gy.dumpObj(T))}};Ec.request=function(a){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];var l=n.call.apply(n,Am([Ec,a],s));return i(l,a),l},Tc.request=function(a){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];var l=r.call.apply(r,Am([Tc,a],s));return i(l,a),l},Ec.get=function(a){for(var s,u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var c=(s=Ec.request).call.apply(s,Am([Ec,a],u));return c.end(),c},Tc.get=function(a){for(var s,u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var c=(s=Tc.request).call.apply(s,Am([Tc,a],u));return c.end(),c}},e.trackRequest=function(t,n){if(!n.options||!n.request||!t){Im.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!n.options,!n.request,!t);return}var r=new mG(n.options,n.request),i=Qu.CorrelationContextManager.getCurrentContext(),a,s;if(i&&i.operation&&i.operation.traceparent&&Om.isValidTraceId(i.operation.traceparent.traceId))i.operation.traceparent.updateSpanId(),a=i.operation.traceparent.getBackCompatRequestId();else if(Zu.w3cEnabled){var u=new Om;s=u.toString(),a=u.getBackCompatRequestId()}else a=i&&i.operation&&i.operation.parentId+e.requestNumber+++".";if(Gy.canIncludeCorrelationHeader(t,r.getUrl())&&n.request.getHeader&&n.request.setHeader&&t.config&&t.config.correlationId){var l=n.request.getHeader(ns.requestContextHeader);try{Gy.safeIncludeCorrelationHeader(t,n.request,l)}catch(v){Im.warn("Request-Context header could not be set. Correlation of requests may be lost",v)}if(i&&i.operation)try{if(n.request.setHeader(ns.requestIdHeader,a),t.config.ignoreLegacyHeaders||(n.request.setHeader(ns.parentIdHeader,i.operation.id),n.request.setHeader(ns.rootIdHeader,a)),s||i.operation.traceparent)n.request.setHeader(ns.traceparentHeader,s||i.operation.traceparent.toString());else if(Zu.w3cEnabled){var u=new Om().toString();n.request.setHeader(ns.traceparentHeader,u)}if(i.operation.tracestate){var c=i.operation.tracestate.toString();c&&n.request.setHeader(ns.traceStateHeader,c)}var f=i.customProperties.serializeToHeader();f&&n.request.setHeader(ns.correlationContextHeader,f)}catch(v){Im.warn("Correlation headers could not be set. Correlation of requests may be lost.",v)}}n.request.on&&(n.request.on("response",function(v){if(!n.isProcessed){n.isProcessed=!0,r.onResponse(v);var b=r.getDependencyTelemetry(n,a);b.contextObjects=b.contextObjects||{},b.contextObjects["http.RequestOptions"]=n.options,b.contextObjects["http.ClientRequest"]=n.request,b.contextObjects["http.ClientResponse"]=v,t.trackDependency(b)}}),n.request.on("error",function(v){if(!n.isProcessed){n.isProcessed=!0,r.onError(v);var b=r.getDependencyTelemetry(n,a);b.contextObjects=b.contextObjects||{},b.contextObjects["http.RequestOptions"]=n.options,b.contextObjects["http.ClientRequest"]=n.request,b.contextObjects.Error=v,t.trackDependency(b)}}),n.request.on("abort",function(){if(!n.isProcessed){n.isProcessed=!0,r.onError(new Error("The request has been aborted and the network socket has closed."));var v=r.getDependencyTelemetry(n,a);v.contextObjects=v.contextObjects||{},v.contextObjects["http.RequestOptions"]=n.options,v.contextObjects["http.ClientRequest"]=n.request,t.trackDependency(v)}}))},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.disableCollectionRequestOption="disableAppInsightsAutoCollection",e.requestNumber=1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();lw.exports=hG});var Ky=_(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.AzureVirtualMachine=void 0;var pw=Zt(),_G=Kn(),gG=Sc(),bG="http://169.254.169.254/metadata/instance/compute",yG="api-version=2017-12-01",EG="format=json",TG="UNREACH",SG=function(){function e(){}return e.getAzureComputeMetadata=function(t,n){var r,i=this,a={},s=bG+"?"+yG+"&"+EG,u=(r={method:"GET"},r[gG.disableCollectionRequestOption]=!0,r.headers={Metadata:"True"},r),l=_G.makeRequest(t,s,u,function(c){if(c.statusCode===200){a.isVM=!0;var f="";c.on("data",function(v){f+=v}),c.on("end",function(){try{var v=JSON.parse(f);a.id=v.vmId||"",a.subscriptionId=v.subscriptionId||"",a.osType=v.osType||""}catch(b){pw.info(e.TAG,b)}n(a)})}else n(a)},!1,!1);l&&(setTimeout(function(){i._requestTimedOut=!0,l.abort()},e.HTTP_TIMEOUT),l.on("error",function(c){i._requestTimedOut&&c&&(c.name="telemetry timeout",c.message="telemetry request timed out"),c&&c.message&&c.message.indexOf(TG)>-1?a.isVM=!1:pw.info(e.TAG,c),n(a)}),l.end())},e.HTTP_TIMEOUT=2500,e.TAG="AzureVirtualMachine",e}();Pm.AzureVirtualMachine=SG});var xc=_((u9,dw)=>{"use strict";var ma=require("os"),xG=require("fs"),AG=require("path"),IG=or(),OG=pn(),PG=Zt(),CG=function(){function e(t){this.keys=new IG.ContextTagKeys,this.tags={},this._loadApplicationContext(t),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){if(t=t||AG.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";try{var n=JSON.parse(xG.readFileSync(t,"utf8"));n&&typeof n.version=="string"&&(e.appVersion[t]=n.version)}catch(r){PG.info("unable to read app version: ",r)}}this.tags[this.keys.applicationVersion]=e.appVersion[t]},e.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=ma&&ma.hostname(),this.tags[this.keys.deviceOSVersion]=ma&&ma.type()+" "+ma.release(),this.tags[this.keys.cloudRole]=e.DefaultRoleName,this.tags["ai.device.osArchitecture"]=ma&&ma.arch(),this.tags["ai.device.osPlatform"]=ma&&ma.platform()},e.prototype._loadInternalContext=function(){e.sdkVersion=OG.APPLICATION_INSIGHTS_SDK_VERSION,this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();dw.exports=CG});var vw=_((l9,mw)=>{"use strict";var RG=require("os"),wG=Ky(),fw=pn(),NG=xc(),DG=function(){function e(t){this._collectionInterval=9e5,e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t}return e.prototype.enable=function(t){var n=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._handle=setInterval(function(){return n.trackHeartBeat(n._client.config,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(t,n){var r=this,i=!1,a={},s=NG.sdkVersion;a.sdk=s,a.osType=RG.type(),process.env.WEBSITE_SITE_NAME?(a.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",a.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",a.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?a.azfunction_appId=process.env.WEBSITE_HOSTNAME:t&&this._isVM===void 0&&(i=!0,wG.AzureVirtualMachine.getAzureComputeMetadata(t,function(u){r._isVM=u.isVM,r._isVM&&(a.azInst_vmId=u.id,a.azInst_subscriptionId=u.subscriptionId,a.azInst_osType=u.osType),r._client.trackMetric({name:fw.HeartBeatMetricName,value:0,properties:a}),n()})),i||(this._client.trackMetric({name:fw.HeartBeatMetricName,value:0,properties:a}),n())},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();mw.exports=DG});var hw=_(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.isContentTypeHeaderHtml=Be.insertSnippetByIndex=Be.getContentEncodingFromHeaders=Be.isSupportedContentEncoding=Be.findBufferEncodingType=Be.isBufferType=Be.getBrotliDecompressSync=Be.getBrotliDecompressAsync=Be.getBrotliCompressSync=Be.getBrotliCompressAsync=Be.inflateAsync=Be.deflateAsync=Be.gunzipAsync=Be.gzipAsync=Be.isBrotliSupperted=Be.bufferEncodingTypes=Be.contentEncodingMethod=void 0;var Rm=require("zlib"),Ac=require("util"),Cm;(function(e){e.GZIP="gzip",e.DEFLATE="deflate",e.BR="br"})(Cm=Be.contentEncodingMethod||(Be.contentEncodingMethod={}));Be.bufferEncodingTypes=["utf8","utf16le","latin1","base64","hex","ascii","binary","ucs2"];var MG=function(){var e=process.versions.node.split(".")[0];return parseInt(e)>=10};Be.isBrotliSupperted=MG;Be.gzipAsync=Ac.promisify(Rm.gzip);Be.gunzipAsync=Ac.promisify(Rm.gunzip);Be.deflateAsync=Ac.promisify(Rm.deflate);Be.inflateAsync=Ac.promisify(Rm.inflate);var LG=function(e){var t=Be.isBrotliSupperted();return t&&typeof e.brotliCompress=="function"?Ac.promisify(e.brotliCompress):null};Be.getBrotliCompressAsync=LG;var kG=function(e){var t=Be.isBrotliSupperted();return t&&typeof e.brotliCompressSync=="function"?e.brotliCompressSync:null};Be.getBrotliCompressSync=kG;var qG=function(e){var t=Be.isBrotliSupperted();return t&&typeof e.brotliDecompress=="function"?Ac.promisify(e.brotliDecompress):null};Be.getBrotliDecompressAsync=qG;var jG=function(e){var t=Be.isBrotliSupperted();return t&&typeof e.brotliDecompressSync=="function"?e.brotliDecompressSync:null};Be.getBrotliDecompressSync=jG;var UG=function(e,t){var n=t||"utf8",r=!1;if(Buffer.isEncoding(n)){var i=Buffer.from(e.toString(n),n);r=i.toJSON().data.toString()===e.toJSON().data.toString()}return r};Be.isBufferType=UG;var FG=function(e){var t=null;for(var n in Be.bufferEncodingTypes){var r=Be.bufferEncodingTypes[n];if(Buffer.isEncoding(r)&&Be.isBufferType(e,r)){t=r;break}}return t};Be.findBufferEncodingType=FG;var HG=function(e){var t=null;switch(e){case"gzip":t=Cm.GZIP;break;case"br":t=Cm.BR;break;case"deflate":t=Cm.DEFLATE;break;default:}return t};Be.isSupportedContentEncoding=HG;var BG=function(e){var t=[],n=e.getHeader("Content-Encoding");if(!n)return null;if(typeof n=="string"){var r=Be.isSupportedContentEncoding(n);r&&t.push(r)}return t};Be.getContentEncodingFromHeaders=BG;var zG=function(e,t,n){if(e<0)return null;var r=null,i=t.substring(0,e),a=t.substring(e);return r=i+'<script type="text/javascript">'+n+"</script>"+a,r};Be.insertSnippetByIndex=zG;var GG=function(e){var t=!1,n=e.getHeader("Content-Type");return n&&(typeof n=="string"?t=n.indexOf("html")>=0:t=n.toString().indexOf("html")>=0),t};Be.isContentTypeHeaderHtml=GG});var _w=_(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.getResourceProvider=jn.getOsPrefix=jn.isFunctionApp=jn.isWebApp=jn.isLinux=jn.isWindows=void 0;var VG=function(){return process.platform==="win32"};jn.isWindows=VG;var KG=function(){return process.platform==="linux"};jn.isLinux=KG;var WG=function(){return!!process.env.WEBSITE_SITE_NAME};jn.isWebApp=WG;var $G=function(){return!!process.env.FUNCTIONS_WORKER_RUNTIME};jn.isFunctionApp=$G;var YG=function(){return jn.isWindows()?"w":jn.isLinux()?"l":"u"};jn.getOsPrefix=YG;var XG=function(){return jn.isWebApp()?"a":jn.isFunctionApp()?"f":"u"};jn.getResourceProvider=XG});var Wy=_((f9,bw)=>{"use strict";var gw=pn(),QG=function(){function e(){}return e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),r=n.reduce(function(a,s){var u=s.split(e._FIELD_KEY_VALUE_SEPARATOR);if(u.length===2){var l=u[0].toLowerCase(),c=u[1];a[l]=c}return a},{});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||gw.DEFAULT_BREEZE_ENDPOINT,r.liveendpoint=r.liveendpoint||gw.DEFAULT_LIVEMETRICS_ENDPOINT}return r},e.isIkeyValid=function(t){if(!t||t=="")return!1;var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",r=new RegExp(n);return r.test(t)},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();bw.exports=QG});var Ew=_((wm,yw)=>{(function(e,t){typeof wm=="object"&&typeof yw<"u"?t(wm):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t((e.Microsoft=e.Microsoft||{},e.Microsoft["ApplicationInsights-Web-Snippet"]=e.Microsoft["ApplicationInsights-Web-Snippet"]||{})))})(wm,function(e){"use strict";var t=`!function(T,l,y){var S=T.location,k="script",D="instrumentationKey",C="ingestionendpoint",I="disableExceptionTracking",E="ai.device.",b="toLowerCase",w="crossOrigin",N="POST",e="appInsightsSDK",t=y.name||"appInsights";(y.name||T[e])&&(T[e]=t);var n=T[t]||function(d){var g=!1,f=!1,m={initialize:!0,queue:[],sv:"5",version:2,config:d};function v(e,t){var n={},a="Browser";return n[E+"id"]=a[b](),n[E+"type"]=a,n["ai.operation.name"]=S&&S.pathname||"_unknown_",n["ai.internal.sdkVersion"]="javascript:snippet_"+(m.sv||m.version),{time:function(){var e=new Date;function t(e){var t=""+e;return 1===t.length&&(t="0"+t),t}return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}(),iKey:e,name:"Microsoft.ApplicationInsights."+e.replace(/-/g,"")+"."+t,sampleRate:100,tags:n,data:{baseData:{ver:2}}}}var h=d.url||y.src;if(h){function a(e){var t,n,a,i,r,o,s,c,u,p,l;g=!0,m.queue=[],f||(f=!0,t=h,s=function(){var e={},t=d.connectionString;if(t)for(var n=t.split(";"),a=0;a<n.length;a++){var i=n[a].split("=");2===i.length&&(e[i[0][b]()]=i[1])}if(!e[C]){var r=e.endpointsuffix,o=r?e.location:null;e[C]="https://"+(o?o+".":"")+"dc."+(r||"services.visualstudio.com")}return e}(),c=s[D]||d[D]||"",u=s[C],p=u?u+"/v2/track":d.endpointUrl,(l=[]).push((n="SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details)",a=t,i=p,(o=(r=v(c,"Exception")).data).baseType="ExceptionData",o.baseData.exceptions=[{typeName:"SDKLoadFailed",message:n.replace(/\\./g,"-"),hasFullStack:!1,stack:n+"\\nSnippet failed to load ["+a+"] -- Telemetry is disabled\\nHelp Link: https://go.microsoft.com/fwlink/?linkid=2128109\\nHost: "+(S&&S.pathname||"_unknown_")+"\\nEndpoint: "+i,parsedStack:[]}],r)),l.push(function(e,t,n,a){var i=v(c,"Message"),r=i.data;r.baseType="MessageData";var o=r.baseData;return o.message='AI (Internal): 99 message:"'+("SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details) ("+n+")").replace(/\\"/g,"")+'"',o.properties={endpoint:a},i}(0,0,t,p)),function(e,t){if(JSON){var n=T.fetch;if(n&&!y.useXhr)n(t,{method:N,body:JSON.stringify(e),mode:"cors"});else if(XMLHttpRequest){var a=new XMLHttpRequest;a.open(N,t),a.setRequestHeader("Content-type","application/json"),a.send(JSON.stringify(e))}}}(l,p))}function i(e,t){f||setTimeout(function(){!t&&m.core||a()},500)}var e=function(){var n=l.createElement(k);n.src=h;var e=y[w];return!e&&""!==e||"undefined"==n[w]||(n[w]=e),n.onload=i,n.onerror=a,n.onreadystatechange=function(e,t){"loaded"!==n.readyState&&"complete"!==n.readyState||i(0,t)},n}();y.ld<0?l.getElementsByTagName("head")[0].appendChild(e):setTimeout(function(){l.getElementsByTagName(k)[0].parentNode.appendChild(e)},y.ld||0)}try{m.cookie=l.cookie}catch(p){}function t(e){for(;e.length;)!function(t){m[t]=function(){var e=arguments;g||m.queue.push(function(){m[t].apply(m,e)})}}(e.pop())}var n="track",r="TrackPage",o="TrackEvent";t([n+"Event",n+"PageView",n+"Exception",n+"Trace",n+"DependencyData",n+"Metric",n+"PageViewPerformance","start"+r,"stop"+r,"start"+o,"stop"+o,"addTelemetryInitializer","setAuthenticatedUserContext","clearAuthenticatedUserContext","flush"]),m.SeverityLevel={Verbose:0,Information:1,Warning:2,Error:3,Critical:4};var s=(d.extensionConfig||{}).ApplicationInsightsAnalytics||{};if(!0!==d[I]&&!0!==s[I]){var c="onerror";t(["_"+c]);var u=T[c];T[c]=function(e,t,n,a,i){var r=u&&u(e,t,n,a,i);return!0!==r&&m["_"+c]({message:e,url:t,lineNumber:n,columnNumber:a,error:i}),r},d.autoExceptionInstrumented=!0}return m}(y.cfg);function a(){y.onInit&&y.onInit(n)}(T[t]=n).queue&&0===n.queue.length?(n.queue.push(a),n.trackPageView({})):a()}(window,document,{\r
src: "https://js.monitor.azure.com/scripts/b/ai.2.min.js", // The SDK URL Source\r
// name: "appInsights", // Global SDK Instance name defaults to "appInsights" when not supplied\r
// ld: 0, // Defines the load delay (in ms) before attempting to load the sdk. -1 = block page load and add to head. (default) = 0ms load after timeout,\r
// useXhr: 1, // Use XHR instead of fetch to report failures (if available),\r
// crossOrigin: "anonymous", // When supplied this will add the provided value as the cross origin attribute on the script tag\r
// onInit: null, // Once the application insights instance has loaded and initialized this callback function will be called with 1 argument -- the sdk instance (DO NOT ADD anything to the sdk.queue -- As they won't get called)\r
cfg: { // Application Insights Configuration\r
instrumentationKey: "INSTRUMENTATION_KEY"\r
}});`;e.webSnippet=t,Object.defineProperty(e,"__esModule",{value:!0})})});var Ow=_((m9,Iw)=>{"use strict";var Tw=require("http"),Sw=require("https"),Ic=require("zlib"),Hi=Zt(),ii=hw(),xw=_w(),Ju=pn(),Aw=Wy(),ZG=Ew(),JG=function(){function e(t){var n;if(this._isIkeyValid=!0,e.INSTANCE)throw new Error("Web snippet injection should be configured from the applicationInsights object");e.INSTANCE=this,e._aiUrl=Ju.WEB_INSTRUMENTATION_DEFAULT_SOURCE,e._aiDeprecatedUrl=Ju.WEB_INSTRUMENTATION_DEPRECATED_SOURCE;var r=this._getWebSnippetIkey((n=t.config)===null||n===void 0?void 0:n.webInstrumentationConnectionString);this._webInstrumentationIkey=r||t.config.instrumentationKey,this._clientWebInstrumentationConfig=t.config.webInstrumentationConfig,this._clientWebInstrumentationSrc=t.config.webInstrumentationSrc,this._statsbeat=t.getStatsbeat()}return e.prototype.enable=function(t,n){this._isEnabled=t,this._webInstrumentationIkey=this._getWebSnippetIkey(n)||this._webInstrumentationIkey,e._snippet=this._getWebInstrumentationReplacedStr(),this._isEnabled&&!this._isInitialized&&this._isIkeyValid?(this._statsbeat&&this._statsbeat.addFeature(Ju.StatsbeatFeature.WEB_SNIPPET),this._initialize()):this._isEnabled||this._statsbeat&&this._statsbeat.removeFeature(Ju.StatsbeatFeature.WEB_SNIPPET)},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._getWebSnippetIkey=function(t){var n=null;try{var r=Aw.parse(t),i=r.instrumentationkey||"";Aw.isIkeyValid(i)?(this._isIkeyValid=!0,n=i):(this._isIkeyValid=!1,Hi.info("Invalid web Instrumentation connection string, web Instrumentation is not enabled."))}catch(a){Hi.info("get web snippet ikey error: "+a)}return n},e.prototype._getWebInstrumentationReplacedStr=function(){var t=this._getClientWebInstrumentationConfigStr(this._clientWebInstrumentationConfig),n=xw.getOsPrefix(),r=xw.getResourceProvider(),i=this._webInstrumentationIkey+`",\r
`+t+` disableIkeyDeprecationMessage: true,\r
sdkExtension: "`+r+n+"d_n_",a=ZG.webSnippet.replace("INSTRUMENTATION_KEY",i);return this._clientWebInstrumentationSrc?a.replace(Ju.WEB_INSTRUMENTATION_DEFAULT_SOURCE+".2.min.js",this._clientWebInstrumentationSrc):a},e.prototype._getClientWebInstrumentationConfigStr=function(t){var n="";try{t!=null&&t.length>0&&t.forEach(function(r){var i=r.name;if(i!==void 0){var a=r.value,s="";switch(typeof a){case"function":break;case"object":break;case"string":s=" "+i+': "'+a+`",\r
`,n+=s;break;default:s=" "+i+": "+a+`,\r
`,n+=s;break}}})}catch{this._isEnabled=!1,Hi.info("Parse client web instrumentation error. Web Instrumentation is disabled")}return n},e.prototype._initialize=function(){this._isInitialized=!0;var t=Tw.createServer,n=Sw.createServer,r=this._isEnabled;Tw.createServer=function(i){var a=i;return a&&(i=function(s,u){var l=u.write,c=s.method=="GET";u.write=function(b,T,x){try{if(r&&c){var M=ii.getContentEncodingFromHeaders(u),N=void 0;if(typeof T=="string"&&(N=T),M==null)e.INSTANCE.ValidateInjection(u,b)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(u,b,void 0,N));else if(M.length){var se=M[0];arguments[0]=e.INSTANCE.InjectWebSnippet(u,b,se)}}}catch(ce){Hi.warn("Inject snippet error: "+ce)}return l.apply(u,arguments)};var f=u.end;return u.end=function(b,T,x){if(r&&c)try{if(r&&c){var M=ii.getContentEncodingFromHeaders(u),N=void 0;if(typeof T=="string"&&(N=T),M==null)e.INSTANCE.ValidateInjection(u,b)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(u,b,void 0,N));else if(M.length){var se=M[0];arguments[0]=e.INSTANCE.InjectWebSnippet(u,b,se)}}}catch(ce){Hi.warn("Inject snipet error: "+ce)}return f.apply(u,arguments)},a(s,u)}),t(i)},Sw.createServer=function(i,a){var s=a;if(s)return a=function(u,l){var c=u.method=="GET",f=l.write,v=l.end;return l.write=function(T,x,M){try{if(r&&c){var N=ii.getContentEncodingFromHeaders(l),se=void 0;if(typeof x=="string"&&(se=x),N==null)e.INSTANCE.ValidateInjection(l,T)&&(arguments[0]=this.InjectWebSnippet(l,T,void 0,se));else if(N.length){var ce=N[0];arguments[0]=e.INSTANCE.InjectWebSnippet(l,T,ce)}}}catch(be){Hi.warn("Inject snippet error: "+be)}return f.apply(l,arguments)},l.end=function(T,x,M){try{if(r&&c){var N=ii.getContentEncodingFromHeaders(l),se=void 0;if(typeof x=="string"&&(se=x),N==null)e.INSTANCE.ValidateInjection(l,T)&&(arguments[0]=e.INSTANCE.InjectWebSnippet(l,T,void 0,se));else if(N.length){var ce=N[0];arguments[0]=e.INSTANCE.InjectWebSnippet(l,T,ce)}}}catch(be){Hi.warn("Inject snippet error: "+be)}return v.apply(l,arguments)},s(u,l)},n(i,a)}},e.prototype.ValidateInjection=function(t,n){try{if(!t||!n||t.statusCode!=200)return!1;var r=ii.isContentTypeHeaderHtml(t);if(!r)return!1;var i=n.slice().toString();if(i.indexOf("<head>")>=0&&i.indexOf("</head>")>=0&&i.indexOf(e._aiUrl)<0&&i.indexOf(e._aiDeprecatedUrl)<0)return!0}catch(a){Hi.info("validate injections error: "+a)}return!1},e.prototype.InjectWebSnippet=function(t,n,r,i){try{var a=!!r;if(a)t.removeHeader("Content-Length"),n=this._getInjectedCompressBuffer(t,n,r),t.setHeader("Content-Length",n.length);else{var s=n.toString(),u=s.indexOf("</head>");if(u<0)return n;var l=ii.insertSnippetByIndex(u,s,e._snippet);if(typeof n=="string")t.removeHeader("Content-Length"),n=l,t.setHeader("Content-Length",Buffer.byteLength(n));else if(Buffer.isBuffer(n)){var c=i||"utf8",f=ii.isBufferType(n,c);if(f){t.removeHeader("Content-Length");var v=Buffer.from(l).toString(c);n=Buffer.from(v,c),t.setHeader("Content-Length",n.length)}}}}catch(b){Hi.warn("Failed to inject web snippet and change content-lenght headers. Exception:"+b)}return n},e.prototype._getInjectedCompressBuffer=function(t,n,r){try{switch(r){case ii.contentEncodingMethod.GZIP:var i=Ic.gunzipSync(n);if(this.ValidateInjection(t,i)){var a=this.InjectWebSnippet(t,i);n=Ic.gzipSync(a)}break;case ii.contentEncodingMethod.DEFLATE:var s=Ic.inflateSync(n);if(this.ValidateInjection(t,s)){var u=this.InjectWebSnippet(t,s);n=Ic.deflateSync(u)}break;case ii.contentEncodingMethod.BR:var l=ii.getBrotliDecompressSync(Ic),c=ii.getBrotliCompressSync(Ic);if(l&&c){var f=l(n);if(this.ValidateInjection(t,f)){var v=this.InjectWebSnippet(t,f);n=c(v)}break}}}catch(b){Hi.info("get web injection compress buffer error: "+b)}return n},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();Iw.exports=JG});var Yy=_((v9,Nw)=>{"use strict";var Pw=require("http"),Cw=require("https"),Rw=Zt(),ww=Kn(),eV=oc(),$y=ey(),va=Va(),tV=gm(),nV=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(t){this._isEnabled=t,(this._isAutoCorrelating||this._isEnabled||tV.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},e.prototype.useAutoCorrelation=function(t,n){t&&!this._isAutoCorrelating?va.CorrelationContextManager.enable(n):!t&&this._isAutoCorrelating&&va.CorrelationContextManager.disable(),this._isAutoCorrelating=t},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},e.prototype._generateCorrelationContext=function(t){if(this._isAutoCorrelating)return va.CorrelationContextManager.generateContextObject(t.getOperationId(this._client.context.tags),t.getRequestId(),t.getOperationName(this._client.context.tags),t.getCorrelationContextHeader(),t.getTraceparent(),t.getTracestate())},e.prototype._registerRequest=function(t,n,r){var i=this,a=new $y(t),s=this._generateCorrelationContext(a);va.CorrelationContextManager.runWithContext(s,function(){i._isEnabled&&(t[e.alreadyAutoCollectedFlag]=!0,e.trackRequest(i._client,{request:t,response:n},a)),typeof r=="function"&&r(t,n)})},e.prototype._initialize=function(){if(this._isInitialized=!0,!e.HANDLER_READY){e.HANDLER_READY=!0;var t=function(a){if(a){if(typeof a!="function")throw new Error("onRequest handler must be a function");return function(s,u){var l;va.CorrelationContextManager.wrapEmitter(s),va.CorrelationContextManager.wrapEmitter(u);var c=s&&!s[e.alreadyAutoCollectedFlag];s&&c?(l=e.INSTANCE)===null||l===void 0||l._registerRequest(s,u,a):typeof a=="function"&&a(s,u)}}},n=function(a){var s=a.addListener.bind(a);a.addListener=function(u,l){switch(u){case"request":case"checkContinue":return s(u,t(l));default:return s(u,l)}},a.on=a.addListener},r=Pw.createServer;Pw.createServer=function(a,s){if(s&&typeof s=="function"){var u=r(a,t(s));return n(u),u}else{var u=r(t(a));return n(u),u}};var i=Cw.createServer;Cw.createServer=function(a,s){var u=i(a,t(s));return n(u),u}}},e.trackRequestSync=function(t,n){if(!n.request||!n.response||!t){Rw.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!n.request,!n.response,!t);return}n.isProcessed=!1,e.addResponseCorrelationIdHeader(t,n.response);var r=va.CorrelationContextManager.getCurrentContext(),i=new $y(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)},e.trackRequest=function(t,n,r){if(!n.request||!n.response||!t){Rw.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!n.request,!n.response,!t);return}n.isProcessed=!1;var i=va.CorrelationContextManager.getCurrentContext(),a=r||new $y(n.request,i&&i.operation.parentId);ww.canIncludeCorrelationHeader(t,a.getUrl())&&e.addResponseCorrelationIdHeader(t,n.response),i&&!r&&(i.operation.id=a.getOperationId(t.context.tags)||i.operation.id,i.operation.name=a.getOperationName(t.context.tags)||i.operation.name,i.operation.parentId=a.getOperationParentId(t.context.tags)||i.operation.parentId,i.customProperties.addHeaderData(a.getCorrelationContextHeader())),n.response.once&&n.response.once("finish",function(){e.endRequest(t,a,n,null,null)}),n.request.on&&n.request.on("error",function(s){e.endRequest(t,a,n,null,s)}),n.request.on&&n.request.on("aborted",function(){var s="The request has been aborted and the network socket has closed.";e.endRequest(t,a,n,null,s)})},e.addResponseCorrelationIdHeader=function(t,n){if(t.config&&t.config.correlationId&&n.getHeader&&n.setHeader&&!n.headersSent){var r=n.getHeader(eV.requestContextHeader);ww.safeIncludeCorrelationHeader(t,n,r)}},e.endRequest=function(t,n,r,i,a){if(!r.isProcessed){r.isProcessed=!0,a?n.onError(a,i):n.onResponse(r.response,i);var s=n.getRequestTelemetry(r);if(s.tagOverrides=n.getRequestTags(t.context.tags),r.tagOverrides)for(var u in r.tagOverrides)s.tagOverrides[u]=r.tagOverrides[u];var l=n.getLegacyRootId();l&&(s.properties.ai_legacyRootId=l),s.contextObjects=s.contextObjects||{},s.contextObjects["http.ServerRequest"]=r.request,s.contextObjects["http.ServerResponse"]=r.response,t.trackRequest(s)}},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1,va.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},e.HANDLER_READY=!1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();Nw.exports=nV});var Lw=_((Qy,Mw)=>{"use strict";var ai=Qy&&Qy.__assign||function(){return ai=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ai.apply(this,arguments)},Xy=require("os"),co=or(),Dw=pn(),rV=Kn(),iV=Zt(),aV=rV.w3cTraceId(),sV=function(){function e(){}return e.createQuickPulseEnvelope=function(t,n,r,i){var a=Xy&&typeof Xy.hostname=="function"&&Xy.hostname()||"Unknown",s=i.tags&&i.keys&&i.keys.cloudRoleInstance&&i.tags[i.keys.cloudRoleInstance]||a,u=i.tags&&i.keys&&i.keys.cloudRole&&i.tags[i.keys.cloudRole]||null,l={Documents:n.length>0?n:null,InstrumentationKey:r.instrumentationKey||"",Metrics:t.length>0?t:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:i.tags[i.keys.internalSdkVersion],StreamId:aV,MachineName:a,Instance:s,RoleName:u};return l},e.createQuickPulseMetric=function(t){var n;return n={Name:t.name,Value:t.value,Weight:t.count||1},n},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case co.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case co.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case co.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case co.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case co.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),r=t.data.baseData.name,i=ai(ai({},n),{Name:r});return i},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),r=t.data.baseData.severityLevel||0,i=ai(ai({},n),{Message:t.data.baseData.message,SeverityLevel:co.SeverityLevel[r]});return i},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),r=t.data.baseData.exceptions,i="",a="",s="";r&&r.length>0&&(r[0].parsedStack&&r[0].parsedStack.length>0?r[0].parsedStack.forEach(function(l){i+=l.assembly+`
`}):r[0].stack&&r[0].stack.length>0&&(i=r[0].stack),a=r[0].message,s=r[0].typeName);var u=ai(ai({},n),{Exception:i,ExceptionMessage:a,ExceptionType:s});return u},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),r=t.data.baseData,i=ai(ai({},n),{Name:r.name,Success:r.success,Duration:r.duration,ResponseCode:r.responseCode,OperationName:r.name});return i},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),r=t.data.baseData,i=ai(ai({},n),{Name:r.name,Target:r.target,Success:r.success,Duration:r.duration,ResultCode:r.resultCode,CommandName:r.data,OperationName:n.OperationId,DependencyTypeName:r.type});return i},e.createQuickPulseDocument=function(t){var n,r,i,a;t.data.baseType?(r=Dw.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=Dw.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):iV.warn("Document type invalid; not sending live metric document",t.data.baseType),i=t.tags[e.keys.operationId],a=e.aggregateProperties(t);var s={DocumentType:n,__type:r,OperationId:i,Version:"1.0",Properties:a};return s},e.aggregateProperties=function(t){var n=[],r=t.data.baseData.measurements||{};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i],s={key:i,value:a};n.push(s)}var u=t.data.baseData.properties||{};for(var i in u)if(u.hasOwnProperty(i)){var a=u[i],s={key:i,value:a};n.push(s)}return n},e.keys=new co.ContextTagKeys,e}();Mw.exports=sV});var qw=_((h9,kw)=>{"use strict";var oV=function(){return(Date.now()+621355968e5)*1e4};kw.exports={getTransmissionTime:oV}});var Hw=_((el,Fw)=>{"use strict";var jw=el&&el.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},Uw=el&&el.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cV=require("https"),uV=Sc(),Zy=Zt(),lV=qw(),Jy=Kn(),pV=require("url"),si={method:"POST",time:"x-ms-qps-transmission-time",pollingIntervalHint:"x-ms-qps-service-polling-interval-hint",endpointRedirect:"x-ms-qps-service-endpoint-redirect-v2",instanceName:"x-ms-qps-instance-name",streamId:"x-ms-qps-stream-id",machineName:"x-ms-qps-machine-name",roleName:"x-ms-qps-role-name",streamid:"x-ms-qps-stream-id",invariantVersion:"x-ms-qps-invariant-version",subscribed:"x-ms-qps-subscribed"},dV=function(){function e(t,n){this._config=t,this._consecutiveErrors=0,this._getAuthorizationHandler=n}return e.prototype.ping=function(t,n,r){var i=[{name:si.streamId,value:t.StreamId},{name:si.machineName,value:t.MachineName},{name:si.roleName,value:t.RoleName},{name:si.instanceName,value:t.Instance},{name:si.invariantVersion,value:t.InvariantVersion.toString()}];this._submitData(t,n,r,"ping",i)},e.prototype.post=function(t,n,r){return jw(this,void 0,void 0,function(){return Uw(this,function(i){switch(i.label){case 0:return[4,this._submitData([t],n,r,"post")];case 1:return i.sent(),[2]}})})},e.prototype._submitData=function(t,n,r,i,a){return jw(this,void 0,void 0,function(){var s,u,l,c,f,v,b,T,x=this;return Uw(this,function(M){switch(M.label){case 0:if(s=Jy.stringify(t),u=(b={},b[uV.disableCollectionRequestOption]=!0,b.host=n&&n.length>0?n:this._config.quickPulseHost,b.method=si.method,b.path="/QuickPulseService.svc/"+i+"?ikey="+this._config.instrumentationKey,b.headers=(T={Expect:"100-continue"},T[si.time]=lV.getTransmissionTime(),T["Content-Type"]="application/json",T["Content-Length"]=Buffer.byteLength(s),T),b),a&&a.length>0&&a.forEach(function(N){return u.headers[N.name]=N.value}),i!=="post")return[3,4];if(l=this._getAuthorizationHandler?this._getAuthorizationHandler(this._config):null,!l)return[3,4];M.label=1;case 1:return M.trys.push([1,3,,4]),[4,l.addAuthorizationHeader(u)];case 2:return M.sent(),[3,4];case 3:return c=M.sent(),f="Failed to get AAD bearer token for the Application. Error:",Zy.info(e.TAG,f,c),[2];case 4:return this._config.httpsAgent?u.agent=this._config.httpsAgent:u.agent=Jy.tlsRestrictedAgent,v=cV.request(u,function(N){if(N.statusCode==200){var se=N.headers[si.subscribed]==="true",ce=null;try{ce=N.headers[si.endpointRedirect]?new pV.URL(N.headers[si.endpointRedirect].toString()).host:null}catch(xe){x._onError("Failed to parse redirect header from QuickPulse: "+Jy.dumpObj(xe))}var be=N.headers[si.pollingIntervalHint]?parseInt(N.headers[si.pollingIntervalHint].toString()):null;x._consecutiveErrors=0,r(se,N,ce,be)}else x._onError("StatusCode:"+N.statusCode+" StatusMessage:"+N.statusMessage),r()}),v.on("error",function(N){x._onError(N),r()}),v.write(s),v.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:",Zy.warn(e.TAG,n,t)):Zy.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();Fw.exports=dV});var Kw=_((tl,Vw)=>{"use strict";var Bw=tl&&tl.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},zw=tl&&tl.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Gw=Zt(),eE=Lw(),fV=Hw(),mV=pn(),vV=xc(),hV=function(){function e(t,n,r){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=t,this.context=n||new vV,this._sender=new fV(this.config,r),this._isEnabled=!1}return e.prototype.addCollector=function(t){this._collectors.push(t)},e.prototype.trackMetric=function(t){this._addMetric(t)},e.prototype.addDocument=function(t){if(this._isCollectingData){var n=eE.telemetryEnvelopeToQuickPulseDocument(t);n&&this._documents.push(n)}},e.prototype.enable=function(t){t&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!t&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},e.prototype.enableCollectors=function(t){this._collectors.forEach(function(n){n.enable(t)})},e.prototype._addMetric=function(t){var n=t.value,r=t.count||1,i=mV.PerformanceToQuickPulseCounter[t.name];i&&(this._metrics[i]?(this._metrics[i].Value=(this._metrics[i].Value*this._metrics[i].Weight+n*r)/(this._metrics[i].Weight+r),this._metrics[i].Weight+=r):(this._metrics[i]=eE.createQuickPulseMetric(t),this._metrics[i].Name=i,this._metrics[i].Weight=1))},e.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},e.prototype._goQuickPulse=function(){return Bw(this,void 0,void 0,function(){var t,n,r,i,a=this;return zw(this,function(s){switch(s.label){case 0:return t=Object.keys(this._metrics).map(function(u){return a._metrics[u]}),n=eE.createQuickPulseEnvelope(t,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(n)]:[3,2];case 1:return s.sent(),[3,3];case 2:this._ping(n),s.label=3;case 3:return r=this._pollingIntervalHint>0?this._pollingIntervalHint:e.PING_INTERVAL,i=this._isCollectingData?e.POST_INTERVAL:r,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,i=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(i=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),i),this._handle.unref(),[2]}})})},e.prototype._ping=function(t){this._sender.ping(t,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(t){return Bw(this,void 0,void 0,function(){return zw(this,function(n){switch(n.label){case 0:return[4,this._sender.post(t,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return n.sent(),[2]}})})},e.prototype._quickPulseDone=function(t,n,r,i){t!=null?(this._isCollectingData!==t&&(Gw.info("Live Metrics sending data",t),this.enableCollectors(t)),this._isCollectingData=t,r&&r.length>0&&(this._redirectedHost=r,Gw.info("Redirecting endpoint to: ",r)),i&&i>0&&(this._pollingIntervalHint=i),n&&n.statusCode<300&&n.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}();Vw.exports=hV});var Ww=_(Oc=>{"use strict";var Nm=Oc&&Oc.__assign||function(){return Nm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Nm.apply(this,arguments)};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AutoCollectNativePerformance=void 0;var nl=xc(),_V=Zt(),gV=function(){function e(t){this._disabledMetrics={},e.INSTANCE&&e.INSTANCE.dispose(),e.INSTANCE=this,this._client=t}return e.prototype.enable=function(t,n,r){var i=this;if(n===void 0&&(n={}),r===void 0&&(r=6e4),e._metricsAvailable==null&&t&&!this._isInitialized)try{var a=require("applicationinsights-native-metrics");e._emitter=new a,e._metricsAvailable=!0,_V.info("Native metrics module successfully loaded!")}catch{e._metricsAvailable=!1;return}this._isEnabled=t,this._disabledMetrics=n,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&e._emitter?(e._emitter.enable(!0,r),this._handle||(this._handle=setInterval(function(){return i._trackNativeMetrics()},r),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(t,n){var r=n.disableAllExtendedMetrics,i=n.extendedMetricDisablers;if(r)return{isEnabled:!1,disabledMetrics:{}};if(i){var a=i.split(","),s={};if(a.length>0)for(var u=0,l=a;u<l.length;u++){var c=l[u];s[c]=!0}return typeof t=="object"?{isEnabled:!0,disabledMetrics:Nm(Nm({},t),s)}:{isEnabled:t,disabledMetrics:s}}return typeof t=="boolean"?{isEnabled:t,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:t}},e.prototype._trackNativeMetrics=function(){var t=!0;typeof this._isEnabled!="object"&&(t=this._isEnabled),t&&(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 i=n[r].metrics,a=r+" Garbage Collection Duration",s=Math.sqrt(i.sumSquares/i.count-Math.pow(i.total/i.count,2))||0;this._client.trackMetric({name:a,value:i.total,count:i.count,max:i.max,min:i.min,stdDev:s,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+nl.sdkVersion,t)})}}},e.prototype._trackEventLoop=function(){var t;if(!this._disabledMetrics.loop){var n=e._emitter.getLoopData(),r=n.loopUsage;if(r.count!=0){var i="Event Loop CPU Time",a=Math.sqrt(r.sumSquares/r.count-Math.pow(r.total/r.count,2))||0;this._client.trackMetric({name:i,value:r.total,count:r.count,min:r.min,max:r.max,stdDev:a,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+nl.sdkVersion,t)})}}},e.prototype._trackHeapUsage=function(){var t,n,r;if(!this._disabledMetrics.heap){var i=process.memoryUsage(),a=i.heapUsed,s=i.heapTotal,u=i.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:a,count:1,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+nl.sdkVersion,t)}),this._client.trackMetric({name:"Memory Total (Heap)",value:s,count:1,tagOverrides:(n={},n[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+nl.sdkVersion,n)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:u-s,count:1,tagOverrides:(r={},r[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+nl.sdkVersion,r)})}},e}();Oc.AutoCollectNativePerformance=gV});var Xw=_(rs=>{"use strict";var $w=rs&&rs.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},Yw=rs&&rs.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(rs,"__esModule",{value:!0});rs.AzureFunctionsHook=void 0;var Dm=Zt(),tE=Va(),bV=function(){function e(t){this._client=t,this._autoGenerateIncomingRequests=!1;try{this._functionsCoreModule=require("@azure/functions-core");var n=this._functionsCoreModule.getProgrammingModel();n.name==="@azure/functions"&&n.version.startsWith("3.")?(this._addPreInvocationHook(),this._addPostInvocationHook()):Dm.warn('AzureFunctionsHook does not support model "'+n.name+'" version "'+n.version+'"')}catch{Dm.info("AzureFunctionsHook failed to load, not running in Azure Functions")}}return e.prototype.enable=function(t){this._autoGenerateIncomingRequests=t},e.prototype.dispose=function(){this.enable(!1),this._removeInvocationHooks(),this._functionsCoreModule=void 0},e.prototype._addPreInvocationHook=function(){var t=this;this._preInvocationHook||(this._preInvocationHook=this._functionsCoreModule.registerHook("preInvocation",function(n){return $w(t,void 0,void 0,function(){var r,i;return Yw(this,function(a){r=n.invocationContext;try{i=tE.CorrelationContextManager.startOperation(r),i.customProperties.setProperty("InvocationId",r.invocationId),r.traceContext.attributes&&(i.customProperties.setProperty("ProcessId",r.traceContext.attributes.ProcessId),i.customProperties.setProperty("LogLevel",r.traceContext.attributes.LogLevel),i.customProperties.setProperty("Category",r.traceContext.attributes.Category),i.customProperties.setProperty("HostInstanceId",r.traceContext.attributes.HostInstanceId),i.customProperties.setProperty("AzFuncLiveLogsSessionId",r.traceContext.attributes["#AzFuncLiveLogsSessionId"])),n.functionCallback=tE.CorrelationContextManager.wrapCallback(n.functionCallback,i),this._isHttpTrigger(r)&&this._autoGenerateIncomingRequests&&(n.hookData.appInsightsExtractedContext=i,n.hookData.appInsightsStartTime=Date.now())}catch(s){return Dm.warn("Failed to propagate context in Azure Functions",s),[2]}return[2]})})}))},e.prototype._addPostInvocationHook=function(){var t=this;this._postInvocationHook||(this._postInvocationHook=this._functionsCoreModule.registerHook("postInvocation",function(n){return $w(t,void 0,void 0,function(){var r,i,a,s,u,l=this;return Yw(this,function(c){try{this._autoGenerateIncomingRequests&&(r=n.invocationContext,this._isHttpTrigger(r)&&(i=n.inputs[0],i&&(a=n.hookData.appInsightsStartTime||Date.now(),s=this._getAzureFunctionResponse(n,r),u=n.hookData.appInsightsExtractedContext,u?tE.CorrelationContextManager.runWithContext(u,function(){l._createIncomingRequestTelemetry(i,s,a,u.operation.parentId)}):this._createIncomingRequestTelemetry(i,s,a,null))))}catch(f){Dm.warn("Error creating automatic incoming request in Azure Functions",f)}return[2]})})}))},e.prototype._createIncomingRequestTelemetry=function(t,n,r,i){for(var a=200,s=0,u=[n.statusCode,n.status];s<u.length;s++){var l=u[s];if(typeof l=="number"&&Number.isInteger(l)){a=l;break}else if(typeof l=="string"){var c=parseInt(l);if(!isNaN(c)){a=c;break}}}this._client.trackRequest({name:t.method+" "+t.url,resultCode:a,success:0<a&&a<400,url:t.url,time:new Date(r),duration:Date.now()-r,id:i}),this._client.flush()},e.prototype._getAzureFunctionResponse=function(t,n){var r=n.bindingDefinitions.find(function(i){return i.direction==="out"&&i.type.toLowerCase()==="http"});return r?.name==="$return"?t.result:r&&n.bindings&&n.bindings[r.name]!==void 0?n.bindings[r.name]:n.res},e.prototype._isHttpTrigger=function(t){return t.bindingDefinitions.find(function(n){var r;return((r=n.type)===null||r===void 0?void 0:r.toLowerCase())==="httptrigger"})},e.prototype._removeInvocationHooks=function(){this._preInvocationHook&&(this._preInvocationHook.dispose(),this._preInvocationHook=void 0),this._postInvocationHook&&(this._postInvocationHook.dispose(),this._postInvocationHook=void 0)},e}();rs.AzureFunctionsHook=bV});var nE=_((b9,Jw)=>{"use strict";var yV=Zs(),Qw=Wy(),EV=Zt(),Zw=pn(),TV=require("url"),SV=xp(),xV=function(){function e(t){this._endpointBase=Zw.DEFAULT_BREEZE_ENDPOINT,this._mergeConfig();var n=this._connectionString,r=Qw.parse(t),i=Qw.parse(n),a=!r.instrumentationkey&&Object.keys(r).length>0?null:t,s=this._instrumentationKey;this.instrumentationKey=r.instrumentationkey||a||i.instrumentationkey||s;var u=""+(this.endpointUrl||r.ingestionendpoint||i.ingestionendpoint||this._endpointBase);u.endsWith("/")&&(u=u.slice(0,-1)),this.endpointUrl=u+"/v2.1/track",this.maxBatchSize=this.maxBatchSize||250,this.maxBatchIntervalMs=this.maxBatchIntervalMs||15e3,this.disableAppInsights=this.disableAppInsights||!1,this.samplingPercentage=this.samplingPercentage||100,this.correlationIdRetryIntervalMs=this.correlationIdRetryIntervalMs||30*1e3,this.enableWebInstrumentation=this.enableWebInstrumentation||this.enableAutoWebSnippetInjection||!1,this.webInstrumentationConfig=this.webInstrumentationConfig||null,this.enableAutoWebSnippetInjection=this.enableWebInstrumentation,this.correlationHeaderExcludedDomains=this.correlationHeaderExcludedDomains||["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.ignoreLegacyHeaders=this.ignoreLegacyHeaders||!1,this.profileQueryEndpoint=r.ingestionendpoint||i.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this._endpointBase,this.quickPulseHost=this.quickPulseHost||r.liveendpoint||i.liveendpoint||process.env[e.ENV_quickPulseHost]||Zw.DEFAULT_LIVEMETRICS_HOST,this.webInstrumentationConnectionString=this.webInstrumentationConnectionString||this._webInstrumentationConnectionString||"",this.webSnippetConnectionString=this.webInstrumentationConnectionString,this.quickPulseHost.match(/^https?:\/\//)&&(this.quickPulseHost=new TV.URL(this.quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(t){this._profileQueryEndpoint=t,this.correlationId=yV.correlationIdPrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentationKey",{get:function(){return this._instrumentationKey},set:function(t){e._validateInstrumentationKey(t)||EV.warn("An invalid instrumentation key was provided. There may be resulting telemetry loss",this.instrumentationKey),this._instrumentationKey=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webSnippetConnectionString",{get:function(){return this._webInstrumentationConnectionString},set:function(t){this._webInstrumentationConnectionString=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webInstrumentationConnectionString",{get:function(){return this._webInstrumentationConnectionString},set:function(t){this._webInstrumentationConnectionString=t},enumerable:!1,configurable:!0}),e.prototype._mergeConfig=function(){var t=SV.JsonConfig.getInstance();this._connectionString=t.connectionString,this._instrumentationKey=t.instrumentationKey,this.correlationHeaderExcludedDomains=t.correlationHeaderExcludedDomains,this.correlationIdRetryIntervalMs=t.correlationIdRetryIntervalMs,this.disableAllExtendedMetrics=t.disableAllExtendedMetrics,this.disableAppInsights=t.disableAppInsights,this.disableStatsbeat=t.disableStatsbeat,this.distributedTracingMode=t.distributedTracingMode,this.enableAutoCollectConsole=t.enableAutoCollectConsole,this.enableAutoCollectDependencies=t.enableAutoCollectDependencies,this.enableAutoCollectIncomingRequestAzureFunctions=t.enableAutoCollectIncomingRequestAzureFunctions,this.enableAutoCollectExceptions=t.enableAutoCollectExceptions,this.enableAutoCollectExtendedMetrics=t.enableAutoCollectExtendedMetrics,this.enableAutoCollectExternalLoggers=t.enableAutoCollectExternalLoggers,this.enableAutoCollectHeartbeat=t.enableAutoCollectHeartbeat,this.enableAutoCollectPerformance=t.enableAutoCollectPerformance,this.enableAutoCollectPreAggregatedMetrics=t.enableAutoCollectPreAggregatedMetrics,this.enableAutoCollectRequests=t.enableAutoCollectRequests,this.enableAutoDependencyCorrelation=t.enableAutoDependencyCorrelation,this.enableInternalDebugLogging=t.enableInternalDebugLogging,this.enableInternalWarningLogging=t.enableInternalWarningLogging,this.enableResendInterval=t.enableResendInterval,this.enableMaxBytesOnDisk=t.enableMaxBytesOnDisk,this.enableSendLiveMetrics=t.enableSendLiveMetrics,this.enableUseAsyncHooks=t.enableUseAsyncHooks,this.enableUseDiskRetryCaching=t.enableUseDiskRetryCaching,this.endpointUrl=t.endpointUrl,this.extendedMetricDisablers=t.extendedMetricDisablers,this.ignoreLegacyHeaders=t.ignoreLegacyHeaders,this.maxBatchIntervalMs=t.maxBatchIntervalMs,this.maxBatchSize=t.maxBatchSize,this.proxyHttpUrl=t.proxyHttpUrl,this.proxyHttpsUrl=t.proxyHttpsUrl,this.quickPulseHost=t.quickPulseHost,this.samplingPercentage=t.samplingPercentage,this.enableWebInstrumentation=t.enableWebInstrumentation,this._webInstrumentationConnectionString=t.webInstrumentationConnectionString,this.webInstrumentationConfig=t.webInstrumentationConfig,this.webInstrumentationSrc=t.webInstrumentationSrc},e._validateInstrumentationKey=function(t){var n="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",r=new RegExp(n);return r.test(t)},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}();Jw.exports=xV});var lN=_(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var AV=require("os"),IV=require("util");function OV(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var PV=OV(IV);function CV(e,...t){process.stderr.write(`${PV.default.format(e,...t)}${AV.EOL}`)}var eN=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,nN,rE=[],iE=[],km=[];eN&&aE(eN);var rN=Object.assign(e=>iN(e),{enable:aE,enabled:sE,disable:RV,log:CV});function aE(e){nN=e,rE=[],iE=[];let t=/\*/g,n=e.split(",").map(r=>r.trim().replace(t,".*?"));for(let r of n)r.startsWith("-")?iE.push(new RegExp(`^${r.substr(1)}$`)):rE.push(new RegExp(`^${r}$`));for(let r of km)r.enabled=sE(r.namespace)}function sE(e){if(e.endsWith("*"))return!0;for(let t of iE)if(t.test(e))return!1;for(let t of rE)if(t.test(e))return!0;return!1}function RV(){let e=nN||"";return aE(""),e}function iN(e){let t=Object.assign(n,{enabled:sE(e),destroy:wV,log:rN.log,namespace:e,extend:NV});function n(...r){t.enabled&&(r.length>0&&(r[0]=`${e} ${r[0]}`),t.log(...r))}return km.push(t),t}function wV(){let e=km.indexOf(this);return e>=0?(km.splice(e,1),!0):!1}function NV(e){let t=iN(`${this.namespace}:${e}`);return t.log=this.log,t}var rl=rN,aN=new Set,Mm=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,qm,jm=rl("azure");jm.log=(...e)=>{rl.log(...e)};var oE=["verbose","info","warning","error"];Mm&&(uN(Mm)?sN(Mm):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Mm}'; logging is not enabled. Acceptable values: ${oE.join(", ")}.`));function sN(e){if(e&&!uN(e))throw new Error(`Unknown log level '${e}'. Acceptable values: ${oE.join(",")}`);qm=e;let t=[];for(let n of aN)cN(n)&&t.push(n.namespace);rl.enable(t.join(","))}function DV(){return qm}var tN={verbose:400,info:300,warning:200,error:100};function MV(e){let t=jm.extend(e);return oN(jm,t),{error:Lm(t,"error"),warning:Lm(t,"warning"),info:Lm(t,"info"),verbose:Lm(t,"verbose")}}function oN(e,t){t.log=(...n)=>{e.log(...n)}}function Lm(e,t){let n=Object.assign(e.extend(t),{level:t});if(oN(e,n),cN(n)){let r=rl.disable();rl.enable(r+","+n.namespace)}return aN.add(n),n}function cN(e){return!!(qm&&tN[e.level]<=tN[qm])}function uN(e){return oE.includes(e)}Pc.AzureLogger=jm;Pc.createClientLogger=MV;Pc.getLogLevel=DV;Pc.setLogLevel=sN});var lE=_(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Cc=new WeakMap,Um=new WeakMap,il=class e{constructor(){this.onabort=null,Cc.set(this,[]),Um.set(this,!1)}get aborted(){if(!Um.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return Um.get(this)}static get none(){return new e}addEventListener(t,n){if(!Cc.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Cc.get(this).push(n)}removeEventListener(t,n){if(!Cc.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let r=Cc.get(this),i=r.indexOf(n);i>-1&&r.splice(i,1)}dispatchEvent(t){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function pN(e){if(e.aborted)return;e.onabort&&e.onabort.call(e);let t=Cc.get(e);t&&t.slice().forEach(n=>{n.call(e,{type:"abort"})}),Um.set(e,!0)}var cE=class extends Error{constructor(t){super(t),this.name="AbortError"}},uE=class{constructor(t){if(this._signal=new il,!!t){Array.isArray(t)||(t=arguments);for(let n of t)n.aborted?this.abort():n.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){pN(this._signal)}static timeout(t){let n=new il,r=setTimeout(pN,t,n);return typeof r.unref=="function"&&r.unref(),n}};al.AbortController=uE;al.AbortError=cE;al.AbortSignal=il});var _N=_(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var LV=lE(),dN=require("crypto"),pE,kV=typeof process<"u"&&!!process.version&&!!(!((pE=process.versions)===null||pE===void 0)&&pE.node);function fN(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((a,s)=>{function u(){s(new LV.AbortError(i??"The operation was aborted."))}function l(){r?.removeEventListener("abort",c)}function c(){n?.(),l(),u()}if(r?.aborted)return u();try{e(f=>{l(),a(f)},f=>{l(),s(f)})}catch(f){s(f)}r?.addEventListener("abort",c)})}var qV="The delay was aborted.";function jV(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return fN(a=>{n=setTimeout(a,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??qV})}function UV(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}function mN(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function vN(e){if(mN(e)){let t=typeof e.name=="string",n=typeof e.message=="string";return t&&n}return!1}function FV(e){if(vN(e))return e.message;{let t;try{typeof e=="object"&&e?t=JSON.stringify(e):t=String(e)}catch{t="[unable to stringify input]"}return`Unknown error ${t}`}}async function HV(e,t,n){let r=Buffer.from(e,"base64");return dN.createHmac("sha256",r).update(t).digest(n)}async function BV(e,t){return dN.createHash("sha256").update(e).digest(t)}function dE(e){return typeof e<"u"&&e!==null}function zV(e,t){if(!dE(e)||typeof e!="object")return!1;for(let n of t)if(!hN(e,n))return!1;return!0}function hN(e,t){return dE(e)&&typeof e=="object"&&t in e}Cr.computeSha256Hash=BV;Cr.computeSha256Hmac=HV;Cr.createAbortablePromise=fN;Cr.delay=jV;Cr.getErrorMessage=FV;Cr.getRandomIntegerInclusive=UV;Cr.isDefined=dE;Cr.isError=vN;Cr.isNode=kV;Cr.isObject=mN;Cr.isObjectWithProperties=zV;Cr.objectHasProperty=hN});var yN=_((S9,bN)=>{var gN=require("stream").Stream,GV=require("util");bN.exports=Ti;function Ti(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}GV.inherits(Ti,gN);Ti.create=function(e,t){var n=new this;t=t||{};for(var r in 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(Ti.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Ti.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Ti.prototype.resume=function(){this._released||this.release(),this.source.resume()};Ti.prototype.pause=function(){this.source.pause()};Ti.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Ti.prototype.pipe=function(){var e=gN.prototype.pipe.apply(this,arguments);return this.resume(),e};Ti.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Ti.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))}}});var xN=_((x9,SN)=>{var VV=require("util"),TN=require("stream").Stream,EN=yN();SN.exports=dn;function dn(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}VV.inherits(dn,TN);dn.create=function(e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];return t};dn.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};dn.prototype.append=function(e){var t=dn.isStreamLike(e);if(t){if(!(e instanceof EN)){var n=EN.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};dn.prototype.pipe=function(e,t){return TN.prototype.pipe.call(this,e,t),this.resume(),e};dn.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};dn.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(n){var r=dn.isStreamLike(n);r&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};dn.prototype._pipeNext=function(e){this._currentStream=e;var t=dn.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var n=e;this.write(n),this._getNext()};dn.prototype._handleErrors=function(e){var t=this;e.on("error",function(n){t._emitError(n)})};dn.prototype.write=function(e){this.emit("data",e)};dn.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};dn.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};dn.prototype.end=function(){this._reset(),this.emit("end")};dn.prototype.destroy=function(){this._reset(),this.emit("close")};dn.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};dn.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};dn.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)};dn.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var AN=_((A9,KV)=>{KV.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"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:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,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:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"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:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,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:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"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:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,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:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,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:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"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:!0},"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:!1,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:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,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:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,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:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,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:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"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:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"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:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"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:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,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:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,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:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"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:!1,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:!0,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:!0},"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:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,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:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,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:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,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:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,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:!0,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:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"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:!0},"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:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"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:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"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:!1},"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:!1},"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:!1},"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:!0},"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:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"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:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"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:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"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:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,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:!1},"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:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"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:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"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:!0},"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:!0},"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:!0,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:!1,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:!0,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:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,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:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,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:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"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:!1,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:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,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:!0},"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:!1,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:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,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:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,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:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"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:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"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:!0,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:!0},"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:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"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:!0},"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:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,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:!0,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:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,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:!0,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:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"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:!0},"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:!0,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:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"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:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,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:!1,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:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,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:!1},"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:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,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:!0,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:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,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:!1},"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:!0,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:!1,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:!1,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:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,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:!0,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:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"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:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,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:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,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:!1,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:!1,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:!1},"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:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,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:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,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:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,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:!1,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:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,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:!1},"image/png":{source:"iana",compressible:!1,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:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,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:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,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:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,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:!1},"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:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,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:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,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:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,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:!0},"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:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"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:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"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:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,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:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,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:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,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:!0,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:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,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:!0,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:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,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:!0,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:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,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:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,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:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,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:!1,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:!0},"x-shader/x-vertex":{compressible:!0}}});var ON=_((I9,IN)=>{IN.exports=AN()});var RN=_(Rr=>{"use strict";var Fm=ON(),WV=require("path").extname,PN=/^\s*([^;\s]*)(?:;|\s|$)/,$V=/^text\//i;Rr.charset=CN;Rr.charsets={lookup:CN};Rr.contentType=YV;Rr.extension=XV;Rr.extensions=Object.create(null);Rr.lookup=QV;Rr.types=Object.create(null);ZV(Rr.extensions,Rr.types);function CN(e){if(!e||typeof e!="string")return!1;var t=PN.exec(e),n=t&&Fm[t[1].toLowerCase()];return n&&n.charset?n.charset:t&&$V.test(t[1])?"UTF-8":!1}function YV(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Rr.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var n=Rr.charset(t);n&&(t+="; charset="+n.toLowerCase())}return t}function XV(e){if(!e||typeof e!="string")return!1;var t=PN.exec(e),n=t&&Rr.extensions[t[1].toLowerCase()];return!n||!n.length?!1:n[0]}function QV(e){if(!e||typeof e!="string")return!1;var t=WV("x."+e).toLowerCase().substr(1);return t&&Rr.types[t]||!1}function ZV(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(Fm).forEach(function(i){var a=Fm[i],s=a.extensions;if(!(!s||!s.length)){e[i]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var c=n.indexOf(Fm[t[l]].source),f=n.indexOf(a.source);if(t[l]!=="application/octet-stream"&&(c>f||c===f&&t[l].substr(0,12)==="application/"))continue}t[l]=i}}})}});var NN=_((P9,wN)=>{wN.exports=JV;function JV(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var fE=_((C9,MN)=>{var DN=NN();MN.exports=e4;function e4(e){var t=!1;return DN(function(){t=!0}),function(r,i){t?e(r,i):DN(function(){e(r,i)})}}});var mE=_((R9,LN)=>{LN.exports=t4;function t4(e){Object.keys(e.jobs).forEach(n4.bind(e)),e.jobs={}}function n4(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var vE=_((w9,qN)=>{var kN=fE(),r4=mE();qN.exports=i4;function i4(e,t,n,r){var i=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[i]=a4(t,i,e[i],function(a,s){i in n.jobs&&(delete n.jobs[i],a?r4(n):n.results[i]=s,r(a,n.results))})}function a4(e,t,n,r){var i;return e.length==2?i=e(n,kN(r)):i=e(n,t,kN(r)),i}});var hE=_((N9,jN)=>{jN.exports=s4;function s4(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(i,a){return t(e[i],e[a])}),r}});var _E=_((D9,UN)=>{var o4=mE(),c4=fE();UN.exports=u4;function u4(e){Object.keys(this.jobs).length&&(this.index=this.size,o4(this),c4(e)(null,this.results))}});var HN=_((M9,FN)=>{var l4=vE(),p4=hE(),d4=_E();FN.exports=f4;function f4(e,t,n){for(var r=p4(e);r.index<(r.keyedList||e).length;)l4(e,t,r,function(i,a){if(i){n(i,a);return}if(Object.keys(r.jobs).length===0){n(null,r.results);return}}),r.index++;return d4.bind(r,n)}});var gE=_((L9,Hm)=>{var BN=vE(),m4=hE(),v4=_E();Hm.exports=h4;Hm.exports.ascending=zN;Hm.exports.descending=_4;function h4(e,t,n,r){var i=m4(e,n);return BN(e,t,i,function a(s,u){if(s){r(s,u);return}if(i.index++,i.index<(i.keyedList||e).length){BN(e,t,i,a);return}r(null,i.results)}),v4.bind(i,r)}function zN(e,t){return e<t?-1:e>t?1:0}function _4(e,t){return-1*zN(e,t)}});var VN=_((k9,GN)=>{var g4=gE();GN.exports=b4;function b4(e,t,n){return g4(e,t,null,n)}});var WN=_((q9,KN)=>{KN.exports={parallel:HN(),serial:VN(),serialOrdered:gE()}});var YN=_((j9,$N)=>{$N.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}});var ZN=_((U9,QN)=>{var TE=xN(),XN=require("util"),bE=require("path"),y4=require("http"),E4=require("https"),T4=require("url").parse,S4=require("fs"),x4=require("stream").Stream,yE=RN(),A4=WN(),EE=YN();QN.exports=vt;XN.inherits(vt,TE);function vt(e){if(!(this instanceof vt))return new vt(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],TE.call(this),e=e||{};for(var t in e)this[t]=e[t]}vt.LINE_BREAK=`\r
`;vt.DEFAULT_CONTENT_TYPE="application/octet-stream";vt.prototype.append=function(e,t,n){n=n||{},typeof n=="string"&&(n={filename:n});var r=TE.prototype.append.bind(this);if(typeof t=="number"&&(t=""+t),XN.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,n),a=this._multiPartFooter();r(i),r(t),r(a),this._trackLength(i,t,n)};vt.prototype._trackLength=function(e,t,n){var r=0;n.knownLength!=null?r+=+n.knownLength:Buffer.isBuffer(t)?r=t.length:typeof t=="string"&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+vt.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))&&!(t instanceof x4))&&(n.knownLength||this._valuesToMeasure.push(t))};vt.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):S4.stat(e.path,function(n,r){var i;if(n){t(n);return}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")};vt.prototype._multiPartHeader=function(e,t,n){if(typeof n.header=="string")return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header=="object"&&EE(s,n.header);var u;for(var l in s)s.hasOwnProperty(l)&&(u=s[l],u!=null&&(Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+vt.LINE_BREAK)));return"--"+this.getBoundary()+vt.LINE_BREAK+a+vt.LINE_BREAK};vt.prototype._getContentDisposition=function(e,t){var n,r;return typeof t.filepath=="string"?n=bE.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=bE.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=bE.basename(e.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r};vt.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=yE.lookup(e.name)),!n&&e.path&&(n=yE.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),!n&&(t.filepath||t.filename)&&(n=yE.lookup(t.filepath||t.filename)),!n&&typeof e=="object"&&(n=vt.DEFAULT_CONTENT_TYPE),n};vt.prototype._multiPartFooter=function(){return function(e){var t=vt.LINE_BREAK,n=this._streams.length===0;n&&(t+=this._lastBoundary()),e(t)}.bind(this)};vt.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+vt.LINE_BREAK};vt.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};vt.prototype.setBoundary=function(e){this._boundary=e};vt.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};vt.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!="function"&&(Buffer.isBuffer(this._streams[n])?e=Buffer.concat([e,this._streams[n]]):e=Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!="string"||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(vt.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};vt.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(Math.random()*10).toString(16);this._boundary=e};vt.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};vt.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};vt.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}A4.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){if(n){e(n);return}r.forEach(function(i){t+=i}),e(null,t)})};vt.prototype.submit=function(e,t){var n,r,i={method:"post"};return typeof e=="string"?(e=T4(e),r=EE({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=EE(e,i),r.port||(r.port=r.protocol=="https:"?443:80)),r.headers=this.getHeaders(e.headers),r.protocol=="https:"?n=E4.request(r):n=y4.request(r),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&n.setHeader("Content-Length",s),this.pipe(n),t){var u,l=function(c,f){return n.removeListener("error",l),n.removeListener("response",u),t.call(this,c,f)};u=l.bind(this,null),n.on("error",l),n.on("response",u)}}.bind(this)),n};vt.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};vt.prototype.toString=function(){return"[object FormData]"}});var eD=_((F9,JN)=>{var Rc=1e3,wc=Rc*60,Nc=wc*60,uo=Nc*24,I4=uo*7,O4=uo*365.25;JN.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return P4(e);if(n==="number"&&isFinite(e))return t.long?R4(e):C4(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function P4(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*O4;case"weeks":case"week":case"w":return n*I4;case"days":case"day":case"d":return n*uo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Nc;case"minutes":case"minute":case"mins":case"min":case"m":return n*wc;case"seconds":case"second":case"secs":case"sec":case"s":return n*Rc;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function C4(e){var t=Math.abs(e);return t>=uo?Math.round(e/uo)+"d":t>=Nc?Math.round(e/Nc)+"h":t>=wc?Math.round(e/wc)+"m":t>=Rc?Math.round(e/Rc)+"s":e+"ms"}function R4(e){var t=Math.abs(e);return t>=uo?Bm(e,t,uo,"day"):t>=Nc?Bm(e,t,Nc,"hour"):t>=wc?Bm(e,t,wc,"minute"):t>=Rc?Bm(e,t,Rc,"second"):e+" ms"}function Bm(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+" "+r+(i?"s":"")}});var SE=_((H9,tD)=>{function w4(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=s,n.humanize=eD(),n.destroy=c,Object.keys(e).forEach(f=>{n[f]=e[f]}),n.names=[],n.skips=[],n.formatters={};function t(f){let v=0;for(let b=0;b<f.length;b++)v=(v<<5)-v+f.charCodeAt(b),v|=0;return n.colors[Math.abs(v)%n.colors.length]}n.selectColor=t;function n(f){let v,b=null,T,x;function M(...N){if(!M.enabled)return;let se=M,ce=Number(new Date),be=ce-(v||ce);se.diff=be,se.prev=v,se.curr=ce,v=ce,N[0]=n.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let xe=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,($t,It)=>{if($t==="%%")return"%";xe++;let we=n.formatters[It];if(typeof we=="function"){let Ze=N[xe];$t=we.call(se,Ze),N.splice(xe,1),xe--}return $t}),n.formatArgs.call(se,N),(se.log||n.log).apply(se,N)}return M.namespace=f,M.useColors=n.useColors(),M.color=n.selectColor(f),M.extend=r,M.destroy=n.destroy,Object.defineProperty(M,"enabled",{enumerable:!0,configurable:!1,get:()=>b!==null?b:(T!==n.namespaces&&(T=n.namespaces,x=n.enabled(f)),x),set:N=>{b=N}}),typeof n.init=="function"&&n.init(M),M}function r(f,v){let b=n(this.namespace+(typeof v>"u"?":":v)+f);return b.log=this.log,b}function i(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let v,b=(typeof f=="string"?f:"").split(/[\s,]+/),T=b.length;for(v=0;v<T;v++)b[v]&&(f=b[v].replace(/\*/g,".*?"),f[0]==="-"?n.skips.push(new RegExp("^"+f.slice(1)+"$")):n.names.push(new RegExp("^"+f+"$")))}function a(){let f=[...n.names.map(u),...n.skips.map(u).map(v=>"-"+v)].join(",");return n.enable(""),f}function s(f){if(f[f.length-1]==="*")return!0;let v,b;for(v=0,b=n.skips.length;v<b;v++)if(n.skips[v].test(f))return!1;for(v=0,b=n.names.length;v<b;v++)if(n.names[v].test(f))return!0;return!1}function u(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function l(f){return f instanceof Error?f.stack||f.message:f}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}tD.exports=w4});var nD=_((zr,zm)=>{zr.formatArgs=D4;zr.save=M4;zr.load=L4;zr.useColors=N4;zr.storage=k4();zr.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`."))}})();zr.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"];function N4(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function D4(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+zm.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let n=0,r=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(n++,i==="%c"&&(r=n))}),e.splice(r,0,t)}zr.log=console.debug||console.log||(()=>{});function M4(e){try{e?zr.storage.setItem("debug",e):zr.storage.removeItem("debug")}catch{}}function L4(){let e;try{e=zr.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function k4(){try{return localStorage}catch{}}zm.exports=SE()(zr);var{formatters:q4}=zm.exports;q4.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var iD=_((B9,rD)=>{"use strict";rD.exports=(e,t)=>{t=t||process.argv;let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return r!==-1&&(i===-1?!0:r<i)}});var sD=_((z9,aD)=>{"use strict";var j4=require("os"),Si=iD(),lr=process.env,Dc;Si("no-color")||Si("no-colors")||Si("color=false")?Dc=!1:(Si("color")||Si("colors")||Si("color=true")||Si("color=always"))&&(Dc=!0);"FORCE_COLOR"in lr&&(Dc=lr.FORCE_COLOR.length===0||parseInt(lr.FORCE_COLOR,10)!==0);function U4(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function F4(e){if(Dc===!1)return 0;if(Si("color=16m")||Si("color=full")||Si("color=truecolor"))return 3;if(Si("color=256"))return 2;if(e&&!e.isTTY&&Dc!==!0)return 0;let t=Dc?1:0;if(process.platform==="win32"){let n=j4.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in lr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in lr)||lr.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in lr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(lr.TEAMCITY_VERSION)?1:0;if(lr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in lr){let n=parseInt((lr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(lr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(lr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(lr.TERM)||"COLORTERM"in lr?1:(lr.TERM==="dumb",t)}function xE(e){let t=F4(e);return U4(t)}aD.exports={supportsColor:xE,stdout:xE(process.stdout),stderr:xE(process.stderr)}});var cD=_((Xn,Vm)=>{var H4=require("tty"),Gm=require("util");Xn.init=$4;Xn.log=V4;Xn.formatArgs=z4;Xn.save=K4;Xn.load=W4;Xn.useColors=B4;Xn.destroy=Gm.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Xn.colors=[6,2,3,4,5,1];try{let e=sD();e&&(e.stderr||e).level>=2&&(Xn.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{}Xn.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,a)=>a.toUpperCase()),r=process.env[t];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),e[n]=r,e},{});function B4(){return"colors"in Xn.inspectOpts?!!Xn.inspectOpts.colors:H4.isatty(process.stderr.fd)}function z4(e){let{namespace:t,useColors:n}=this;if(n){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),a=` ${i};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
`).join(`
`+a),e.push(i+"m+"+Vm.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=G4()+t+" "+e[0]}function G4(){return Xn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function V4(...e){return process.stderr.write(Gm.format(...e)+`
`)}function K4(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function W4(){return process.env.DEBUG}function $4(e){e.inspectOpts={};let t=Object.keys(Xn.inspectOpts);for(let n=0;n<t.length;n++)e.inspectOpts[t[n]]=Xn.inspectOpts[t[n]]}Vm.exports=SE()(Xn);var{formatters:oD}=Vm.exports;oD.o=function(e){return this.inspectOpts.colors=this.useColors,Gm.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};oD.O=function(e){return this.inspectOpts.colors=this.useColors,Gm.inspect(e,this.inspectOpts)}});var sl=_((G9,AE)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?AE.exports=nD():AE.exports=cD()});var uD=_(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});function Y4(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(a,s)=>{a?i(a):r(s)})})}}IE.default=Y4});var CE=_((PE,pD)=>{"use strict";var lD=PE&&PE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},X4=require("events"),Q4=lD(sl()),Z4=lD(uD()),ol=Q4.default("agent-base");function J4(e){return!!e&&typeof e.addRequest=="function"}function OE(){let{stack:e}=new Error;return typeof e!="string"?!1:e.split(`
`).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}function Km(e,t){return new Km.Agent(e,t)}(function(e){class t extends X4.EventEmitter{constructor(r,i){super();let a=i;typeof r=="function"?this.callback=r:r&&(a=r),this.timeout=null,a&&typeof a.timeout=="number"&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:OE()?443:80}set defaultPort(r){this.explicitDefaultPort=r}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:OE()?"https:":"http:"}set protocol(r){this.explicitProtocol=r}callback(r,i,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(r,i){let a=Object.assign({},i);typeof a.secureEndpoint!="boolean"&&(a.secureEndpoint=OE()),a.host==null&&(a.host="localhost"),a.port==null&&(a.port=a.secureEndpoint?443:80),a.protocol==null&&(a.protocol=a.secureEndpoint?"https:":"http:"),a.host&&a.path&&delete a.path,delete a.agent,delete a.hostname,delete a._defaultAgent,delete a.defaultPort,delete a.createConnection,r._last=!0,r.shouldKeepAlive=!1;let s=!1,u=null,l=a.timeout||this.timeout,c=T=>{r._hadError||(r.emit("error",T),r._hadError=!0)},f=()=>{u=null,s=!0;let T=new Error(`A "socket" was not created for HTTP request before ${l}ms`);T.code="ETIMEOUT",c(T)},v=T=>{s||(u!==null&&(clearTimeout(u),u=null),c(T))},b=T=>{if(s)return;if(u!=null&&(clearTimeout(u),u=null),J4(T)){ol("Callback returned another Agent instance %o",T.constructor.name),T.addRequest(r,a);return}if(T){T.once("free",()=>{this.freeSocket(T,a)}),r.onSocket(T);return}let x=new Error(`no Duplex stream was returned to agent-base for \`${r.method} ${r.path}\``);c(x)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(ol("Converting legacy callback function to promise"),this.promisifiedCallback=Z4.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(u=setTimeout(f,l)),"port"in a&&typeof a.port!="number"&&(a.port=Number(a.port));try{ol("Resolving socket for %o request: %o",a.protocol,`${r.method} ${r.path}`),Promise.resolve(this.promisifiedCallback(r,a)).then(b,v)}catch(T){Promise.reject(T).catch(v)}}freeSocket(r,i){ol("Freeing socket %o %o",r.constructor.name,i),r.destroy()}destroy(){ol("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(Km||(Km={}));pD.exports=Km});var dD=_(ul=>{"use strict";var e6=ul&&ul.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ul,"__esModule",{value:!0});var t6=e6(sl()),cl=t6.default("https-proxy-agent:parse-proxy-response");function n6(e){return new Promise((t,n)=>{let r=0,i=[];function a(){let v=e.read();v?f(v):e.once("readable",a)}function s(){e.removeListener("end",l),e.removeListener("error",c),e.removeListener("close",u),e.removeListener("readable",a)}function u(v){cl("onclose had error %o",v)}function l(){cl("onend")}function c(v){s(),cl("onerror %o",v),n(v)}function f(v){i.push(v),r+=v.length;let b=Buffer.concat(i,r);if(b.indexOf(`\r
\r
`)===-1){cl("have not received end of HTTP headers yet..."),a();return}let x=b.toString("ascii",0,b.indexOf(`\r
`)),M=+x.split(" ")[1];cl("got proxy server response: %o",x),t({statusCode:M,buffered:b})}e.on("error",c),e.on("close",u),e.on("end",l),a()})}ul.default=n6});var vD=_(lo=>{"use strict";var r6=lo&&lo.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},Mc=lo&&lo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lo,"__esModule",{value:!0});var fD=Mc(require("net")),mD=Mc(require("tls")),i6=Mc(require("url")),a6=Mc(require("assert")),s6=Mc(sl()),o6=CE(),c6=Mc(dD()),ll=s6.default("https-proxy-agent:agent"),RE=class extends o6.Agent{constructor(t){let n;if(typeof t=="string"?n=i6.default.parse(t):n=t,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");ll("creating new HttpsProxyAgent instance: %o",n),super(n);let r=Object.assign({},n);this.secureProxy=n.secureProxy||p6(r.protocol),r.host=r.hostname||r.host,typeof r.port=="string"&&(r.port=parseInt(r.port,10)),!r.port&&r.host&&(r.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in r)&&(r.ALPNProtocols=["http 1.1"]),r.host&&r.path&&(delete r.path,delete r.pathname),this.proxy=r}callback(t,n){return r6(this,void 0,void 0,function*(){let{proxy:r,secureProxy:i}=this,a;i?(ll("Creating `tls.Socket`: %o",r),a=mD.default.connect(r)):(ll("Creating `net.Socket`: %o",r),a=fD.default.connect(r));let s=Object.assign({},r.headers),l=`CONNECT ${`${n.host}:${n.port}`} HTTP/1.1\r
`;r.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(r.auth).toString("base64")}`);let{host:c,port:f,secureEndpoint:v}=n;l6(f,v)||(c+=`:${f}`),s.Host=c,s.Connection="close";for(let N of Object.keys(s))l+=`${N}: ${s[N]}\r
`;let b=c6.default(a);a.write(`${l}\r
`);let{statusCode:T,buffered:x}=yield b;if(T===200){if(t.once("socket",u6),n.secureEndpoint){ll("Upgrading socket connection to TLS");let N=n.servername||n.host;return mD.default.connect(Object.assign(Object.assign({},d6(n,"host","hostname","path","port")),{socket:a,servername:N}))}return a}a.destroy();let M=new fD.default.Socket({writable:!1});return M.readable=!0,t.once("socket",N=>{ll("replaying proxy buffer for failed request"),a6.default(N.listenerCount("data")>0),N.push(x),N.push(null)}),M})}};lo.default=RE;function u6(e){e.resume()}function l6(e,t){return!!(!t&&e===80||t&&e===443)}function p6(e){return typeof e=="string"?/^https:?$/i.test(e):!1}function d6(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}});var _D=_((DE,hD)=>{"use strict";var f6=DE&&DE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},wE=f6(vD());function NE(e){return new wE.default(e)}(function(e){e.HttpsProxyAgent=wE.default,e.prototype=wE.default.prototype})(NE||(NE={}));hD.exports=NE});var gD=_(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});function m6(e,t,{signal:n}={}){return new Promise((r,i)=>{function a(){n?.removeEventListener("abort",a),e.removeListener(t,s),e.removeListener("error",u)}function s(...l){a(),r(l)}function u(l){a(),i(l)}n?.addEventListener("abort",a),e.on(t,s),e.on("error",u)})}ME.default=m6});var bD=_(po=>{"use strict";var v6=po&&po.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},pl=po&&po.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(po,"__esModule",{value:!0});var h6=pl(require("net")),_6=pl(require("tls")),LE=pl(require("url")),g6=pl(sl()),b6=pl(gD()),y6=CE(),is=(0,g6.default)("http-proxy-agent");function E6(e){return typeof e=="string"?/^https:?$/i.test(e):!1}var kE=class extends y6.Agent{constructor(t){let n;if(typeof t=="string"?n=LE.default.parse(t):n=t,!n)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");is("Creating new HttpProxyAgent instance: %o",n),super(n);let r=Object.assign({},n);this.secureProxy=n.secureProxy||E6(r.protocol),r.host=r.hostname||r.host,typeof r.port=="string"&&(r.port=parseInt(r.port,10)),!r.port&&r.host&&(r.port=this.secureProxy?443:80),r.host&&r.path&&(delete r.path,delete r.pathname),this.proxy=r}callback(t,n){return v6(this,void 0,void 0,function*(){let{proxy:r,secureProxy:i}=this,a=LE.default.parse(t.path);a.protocol||(a.protocol="http:"),a.hostname||(a.hostname=n.hostname||n.host||null),a.port==null&&typeof n.port&&(a.port=String(n.port)),a.port==="80"&&(a.port=""),t.path=LE.default.format(a),r.auth&&t.setHeader("Proxy-Authorization",`Basic ${Buffer.from(r.auth).toString("base64")}`);let s;if(i?(is("Creating `tls.Socket`: %o",r),s=_6.default.connect(r)):(is("Creating `net.Socket`: %o",r),s=h6.default.connect(r)),t._header){let u,l;is("Regenerating stored HTTP header string for request"),t._header=null,t._implicitHeader(),t.output&&t.output.length>0?(is("Patching connection write() output buffer with updated header"),u=t.output[0],l=u.indexOf(`\r
\r
`)+4,t.output[0]=t._header+u.substring(l),is("Output buffer: %o",t.output)):t.outputData&&t.outputData.length>0&&(is("Patching connection write() output buffer with updated header"),u=t.outputData[0].data,l=u.indexOf(`\r
\r
`)+4,t.outputData[0].data=t._header+u.substring(l),is("Output buffer: %o",t.outputData[0].data))}return yield(0,b6.default)(s,"connect"),s})}};po.default=kE});var ED=_((UE,yD)=>{"use strict";var T6=UE&&UE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qE=T6(bD());function jE(e){return new qE.default(e)}(function(e){e.HttpProxyAgent=qE.default,e.prototype=qE.default.prototype})(jE||(jE={}));yD.exports=jE});var TD=_(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var dl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function S6(e={}){let t=new FE(e.parentContext);return e.span&&(t=t.setValue(dl.span,e.span)),e.namespace&&(t=t.setValue(dl.namespace,e.namespace)),t}var FE=class e{constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(t){return this._contextMap.get(t)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};function x6(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{}}}function A6(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:x6(),tracingContext:S6({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}var $m;function I6(e){$m=e}function Wm(){return $m||($m=A6()),$m}function O6(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(c,f,v){var b;let T=Wm().startSpan(c,Object.assign(Object.assign({},v),{packageName:n,packageVersion:r,tracingContext:(b=f?.tracingOptions)===null||b===void 0?void 0:b.tracingContext})),x=T.tracingContext,M=T.span;x.getValue(dl.namespace)||(x=x.setValue(dl.namespace,t)),M.setAttribute("az.namespace",x.getValue(dl.namespace));let N=Object.assign({},f,{tracingOptions:Object.assign(Object.assign({},f?.tracingOptions),{tracingContext:x})});return{span:M,updatedOptions:N}}async function a(c,f,v,b){let{span:T,updatedOptions:x}=i(c,f,b);try{let M=await s(x.tracingOptions.tracingContext,()=>Promise.resolve(v(x,T)));return T.setStatus({status:"success"}),M}catch(M){throw T.setStatus({status:"error",error:M}),M}finally{T.end()}}function s(c,f,...v){return Wm().withContext(c,f,...v)}function u(c){return Wm().parseTraceparentHeader(c)}function l(c){return Wm().createRequestHeaders(c)}return{startSpan:i,withSpan:a,withContext:s,parseTraceparentHeader:u,createRequestHeaders:l}}Ym.createTracingClient=O6;Ym.useInstrumenter=I6});function fl(){return Xm>Qm.length-16&&(SD.default.randomFillSync(Qm),Xm=0),Qm.slice(Xm,Xm+=16)}var SD,Qm,Xm,HE=hr(()=>{SD=Oh(require("crypto")),Qm=new Uint8Array(256),Xm=Qm.length});var xD,AD=hr(()=>{xD=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function P6(e){return typeof e=="string"&&xD.test(e)}var as,ml=hr(()=>{AD();as=P6});function C6(e,t=0){let n=(Qn[e[t+0]]+Qn[e[t+1]]+Qn[e[t+2]]+Qn[e[t+3]]+"-"+Qn[e[t+4]]+Qn[e[t+5]]+"-"+Qn[e[t+6]]+Qn[e[t+7]]+"-"+Qn[e[t+8]]+Qn[e[t+9]]+"-"+Qn[e[t+10]]+Qn[e[t+11]]+Qn[e[t+12]]+Qn[e[t+13]]+Qn[e[t+14]]+Qn[e[t+15]]).toLowerCase();if(!as(n))throw TypeError("Stringified UUID is invalid");return n}var Qn,ss,vl=hr(()=>{ml();Qn=[];for(let e=0;e<256;++e)Qn.push((e+256).toString(16).substr(1));ss=C6});function R6(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let a=e.node||ID,s=e.clockseq!==void 0?e.clockseq:BE;if(a==null||s==null){let b=e.random||(e.rng||fl)();a==null&&(a=ID=[b[0]|1,b[1],b[2],b[3],b[4],b[5]]),s==null&&(s=BE=(b[6]<<8|b[7])&16383)}let u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:GE+1,c=u-zE+(l-GE)/1e4;if(c<0&&e.clockseq===void 0&&(s=s+1&16383),(c<0||u>zE)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");zE=u,GE=l,BE=s,u+=122192928e5;let f=((u&268435455)*1e4+l)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=f&255;let v=u/4294967296*1e4&268435455;i[r++]=v>>>8&255,i[r++]=v&255,i[r++]=v>>>24&15|16,i[r++]=v>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let b=0;b<6;++b)i[r+b]=a[b];return t||ss(i)}var ID,BE,zE,GE,OD,PD=hr(()=>{HE();vl();zE=0,GE=0;OD=R6});function w6(e){if(!as(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var Zm,VE=hr(()=>{ml();Zm=w6});function N6(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}function Jm(e,t,n){function r(i,a,s,u){if(typeof i=="string"&&(i=N6(i)),typeof a=="string"&&(a=Zm(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+i.length);if(l.set(a),l.set(i,a.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,s){u=u||0;for(let c=0;c<16;++c)s[u+c]=l[c];return s}return ss(l)}try{r.name=e}catch{}return r.DNS=D6,r.URL=M6,r}var D6,M6,KE=hr(()=>{vl();VE();D6="6ba7b810-9dad-11d1-80b4-00c04fd430c8",M6="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function L6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),CD.default.createHash("md5").update(e).digest()}var CD,RD,wD=hr(()=>{CD=Oh(require("crypto"));RD=L6});var k6,ND,DD=hr(()=>{KE();wD();k6=Jm("v3",48,RD),ND=k6});function q6(e,t,n){e=e||{};let r=e.random||(e.rng||fl)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return ss(r)}var MD,LD=hr(()=>{HE();vl();MD=q6});function j6(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),kD.default.createHash("sha1").update(e).digest()}var kD,qD,jD=hr(()=>{kD=Oh(require("crypto"));qD=j6});var U6,UD,FD=hr(()=>{KE();jD();U6=Jm("v5",80,qD),UD=U6});var HD,BD=hr(()=>{HD="00000000-0000-0000-0000-000000000000"});function F6(e){if(!as(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var zD,GD=hr(()=>{ml();zD=F6});var VD={};m1(VD,{NIL:()=>HD,parse:()=>Zm,stringify:()=>ss,v1:()=>OD,v3:()=>ND,v4:()=>MD,v5:()=>UD,validate:()=>as,version:()=>zD});var KD=hr(()=>{PD();DD();LD();FD();BD();GD();ml();vl();VE()});var kM=_(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var tM=lN(),Bi=_N(),H6=require("os"),_l=lE(),B6=ZN(),z6=_D(),G6=ED(),V6=TD(),K6=require("util"),W6=require("http"),$6=require("https"),Y6=require("zlib"),X6=require("stream"),Q6=(KD(),v1(VD));function Z6(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function iv(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var WE=iv(H6),J6=Z6(B6),$E=iv(W6),YE=iv($6),WD=iv(Y6),$D=new Set(["Deserialize","Serialize","Retry","Sign"]),QE=class e{constructor(t){var n;this._policies=[],this._policies=(n=t?.slice(0))!==null&&n!==void 0?n:[],this._orderedPolicies=void 0}addPolicy(t,n={}){if(n.phase&&n.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(n.phase&&!$D.has(n.phase))throw new Error(`Invalid phase name: ${n.phase}`);if(n.afterPhase&&!$D.has(n.afterPhase))throw new Error(`Invalid afterPhase name: ${n.afterPhase}`);this._policies.push({policy:t,options:n}),this._orderedPolicies=void 0}removePolicy(t){let n=[];return this._policies=this._policies.filter(r=>t.name&&r.policy.name===t.name||t.phase&&r.options.phase===t.phase?(n.push(r.policy),!1):!0),this._orderedPolicies=void 0,n}sendRequest(t,n){return this.getOrderedPolicies().reduceRight((a,s)=>u=>s.sendRequest(u,a),a=>t.sendRequest(a))(n)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let t=[],n=new Map;function r(x){return{name:x,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let i=r("Serialize"),a=r("None"),s=r("Deserialize"),u=r("Retry"),l=r("Sign"),c=[i,a,s,u,l];function f(x){return x==="Retry"?u:x==="Serialize"?i:x==="Deserialize"?s:x==="Sign"?l:a}for(let x of this._policies){let M=x.policy,N=x.options,se=M.name;if(n.has(se))throw new Error("Duplicate policy names not allowed in pipeline");let ce={policy:M,dependsOn:new Set,dependants:new Set};N.afterPhase&&(ce.afterPhase=f(N.afterPhase),ce.afterPhase.hasAfterPolicies=!0),n.set(se,ce),f(N.phase).policies.add(ce)}for(let x of this._policies){let{policy:M,options:N}=x,se=M.name,ce=n.get(se);if(!ce)throw new Error(`Missing node for policy ${se}`);if(N.afterPolicies)for(let be of N.afterPolicies){let xe=n.get(be);xe&&(ce.dependsOn.add(xe),xe.dependants.add(ce))}if(N.beforePolicies)for(let be of N.beforePolicies){let xe=n.get(be);xe&&(xe.dependsOn.add(ce),ce.dependants.add(xe))}}function v(x){x.hasRun=!0;for(let M of x.policies)if(!(M.afterPhase&&(!M.afterPhase.hasRun||M.afterPhase.policies.size))&&M.dependsOn.size===0){t.push(M.policy);for(let N of M.dependants)N.dependsOn.delete(M);n.delete(M.policy.name),x.policies.delete(M)}}function b(){for(let x of c){if(v(x),x.policies.size>0&&x!==a){a.hasRun||v(a);return}x.hasAfterPolicies&&v(a)}}let T=0;for(;n.size>0;){T++;let x=t.length;if(b(),t.length<=x&&T>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return t}};function nM(){return QE.create()}var oi=tM.createClientLogger("core-rest-pipeline"),XE="REDACTED",eK=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],tK=["api-version"],nv=class{constructor({additionalAllowedHeaderNames:t=[],additionalAllowedQueryParameters:n=[]}={}){t=eK.concat(t),n=tK.concat(n),this.allowedHeaderNames=new Set(t.map(r=>r.toLowerCase())),this.allowedQueryParameters=new Set(n.map(r=>r.toLowerCase()))}sanitize(t){let n=new Set;return JSON.stringify(t,(r,i)=>{if(i instanceof Error)return Object.assign(Object.assign({},i),{name:i.name,message:i.message});if(r==="headers")return this.sanitizeHeaders(i);if(r==="url")return this.sanitizeUrl(i);if(r==="query")return this.sanitizeQuery(i);if(r==="body")return;if(r==="response")return;if(r==="operationSpec")return;if(Array.isArray(i)||Bi.isObject(i)){if(n.has(i))return"[Circular]";n.add(i)}return i},2)}sanitizeHeaders(t){let n={};for(let r of Object.keys(t))this.allowedHeaderNames.has(r.toLowerCase())?n[r]=t[r]:n[r]=XE;return n}sanitizeQuery(t){if(typeof t!="object"||t===null)return t;let n={};for(let r of Object.keys(t))this.allowedQueryParameters.has(r.toLowerCase())?n[r]=t[r]:n[r]=XE;return n}sanitizeUrl(t){if(typeof t!="string"||t===null)return t;let n=new URL(t);if(!n.search)return t;for(let[r]of n.searchParams)this.allowedQueryParameters.has(r.toLowerCase())||n.searchParams.set(r,XE);return n.toString()}},rM="logPolicy";function iM(e={}){var t;let n=(t=e.logger)!==null&&t!==void 0?t:oi.info,r=new nv({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:rM,async sendRequest(i,a){if(!n.enabled)return a(i);n(`Request: ${r.sanitize(i)}`);let s=await a(i);return n(`Response status code: ${s.status}`),n(`Headers: ${r.sanitize(s.headers)}`),s}}}var aM="redirectPolicy",YD=["GET","HEAD"];function sM(e={}){let{maxRetries:t=20}=e;return{name:aM,async sendRequest(n,r){let i=await r(n);return oM(r,i,t)}}}async function oM(e,t,n,r=0){let{request:i,status:a,headers:s}=t,u=s.get("location");if(u&&(a===300||a===301&&YD.includes(i.method)||a===302&&YD.includes(i.method)||a===303&&i.method==="POST"||a===307)&&r<n){let l=new URL(u,i.url);i.url=l.toString(),a===303&&(i.method="GET",i.headers.delete("Content-Length"),delete i.body),i.headers.delete("Authorization");let c=await e(i);return oM(e,c,n,r+1)}return t}function nK(){return"User-Agent"}function rK(e){e.set("Node",process.version),e.set("OS",`(${WE.arch()}-${WE.type()}-${WE.release()})`)}var cM="1.10.2",Lc=3;function iK(e){let t=[];for(let[n,r]of e){let i=r?`${n}/${r}`:n;t.push(i)}return t.join(" ")}function aK(){return nK()}function uM(e){let t=new Map;t.set("core-rest-pipeline",cM),rK(t);let n=iK(t);return e?`${e} ${n}`:n}var XD=aK(),lM="userAgentPolicy";function pM(e={}){let t=uM(e.userAgentPrefix);return{name:lM,async sendRequest(n,r){return n.headers.has(XD)||n.headers.set(XD,t),r(n)}}}var dM="decompressResponsePolicy";function fM(){return{name:dM,async sendRequest(e,t){return e.method!=="HEAD"&&e.headers.set("Accept-Encoding","gzip,deflate"),t(e)}}}var sK="The operation was aborted.";function mM(e,t,n){return new Promise((r,i)=>{let a,s,u=()=>i(new _l.AbortError(n?.abortErrorMsg?n?.abortErrorMsg:sK)),l=()=>{n?.abortSignal&&s&&n.abortSignal.removeEventListener("abort",s)};if(s=()=>(a&&clearTimeout(a),l(),u()),n?.abortSignal&&n.abortSignal.aborted)return u();a=setTimeout(()=>{l(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener("abort",s)})}function oK(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}var ZE="Retry-After",cK=["retry-after-ms","x-ms-retry-after-ms",ZE];function vM(e){if(e&&[429,503].includes(e.status))try{for(let i of cK){let a=oK(e,i);if(a===0||a)return a*(i===ZE?1e3:1)}let t=e.headers.get(ZE);if(!t)return;let r=Date.parse(t)-Date.now();return Number.isFinite(r)?Math.max(0,r):void 0}catch{return}}function uK(e){return Number.isFinite(vM(e))}function hM(){return{name:"throttlingRetryStrategy",retry({response:e}){let t=vM(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}var lK=1e3,pK=1e3*64;function nT(e={}){var t,n;let r=(t=e.retryDelayInMs)!==null&&t!==void 0?t:lK,i=(n=e.maxRetryDelayInMs)!==null&&n!==void 0?n:pK,a=r;return{name:"exponentialRetryStrategy",retry({retryCount:s,response:u,responseError:l}){let c=fK(l),f=c&&e.ignoreSystemErrors,v=dK(u),b=v&&e.ignoreHttpStatusCodes;if(u&&(uK(u)||!v)||b||f)return{skipStrategy:!0};if(l&&!c&&!v)return{errorToThrow:l};let x=a*Math.pow(2,s),M=Math.min(i,x);return a=M/2+Bi.getRandomIntegerInclusive(0,M/2),{retryAfterInMs:a}}}}function dK(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function fK(e){return e?e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT":!1}var QD=tM.createClientLogger("core-rest-pipeline retryPolicy"),mK="retryPolicy";function gl(e,t={maxRetries:Lc}){let n=t.logger||QD;return{name:mK,async sendRequest(r,i){var a,s;let u,l,c=-1;e:for(;;){c+=1,u=void 0,l=void 0;try{n.info(`Retry ${c}: Attempting to send request`,r.requestId),u=await i(r),n.info(`Retry ${c}: Received a response from request`,r.requestId)}catch(f){if(n.error(`Retry ${c}: Received an error from request`,r.requestId),l=f,!f||l.name!=="RestError")throw f;u=l.response}if(!((a=r.abortSignal)===null||a===void 0)&&a.aborted)throw n.error(`Retry ${c}: Request aborted.`),new _l.AbortError;if(c>=((s=t.maxRetries)!==null&&s!==void 0?s:Lc)){if(n.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),l)throw l;if(u)return u;throw new Error("Maximum retries reached with no response or error to throw")}n.info(`Retry ${c}: Processing ${e.length} retry strategies.`);t:for(let f of e){let v=f.logger||QD;v.info(`Retry ${c}: Processing retry strategy ${f.name}.`);let b=f.retry({retryCount:c,response:u,responseError:l});if(b.skipStrategy){v.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:T,retryAfterInMs:x,redirectTo:M}=b;if(T)throw v.error(`Retry ${c}: Retry strategy ${f.name} throws error:`,T),T;if(x||x===0){v.info(`Retry ${c}: Retry strategy ${f.name} retries after ${x}`),await mM(x,void 0,{abortSignal:r.abortSignal});continue e}if(M){v.info(`Retry ${c}: Retry strategy ${f.name} redirects to ${M}`),r.url=M;continue e}}if(l)throw n.info("None of the retry strategies could work with the received error. Throwing it."),l;if(u)return n.info("None of the retry strategies could work with the received response. Returning it."),u}}}}var vK="defaultRetryPolicy";function _M(e={}){var t;return{name:vK,sendRequest:gl([hM(),nT(e)],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:Lc}).sendRequest}}var gM="formDataPolicy";function bM(){return{name:gM,async sendRequest(e,t){if(e.formData){let n=e.headers.get("Content-Type");n&&n.indexOf("application/x-www-form-urlencoded")!==-1?(e.body=hK(e.formData),e.formData=void 0):await _K(e.formData,e)}return t(e)}}}function hK(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let i of r)t.append(n,i.toString());else t.append(n,r.toString());return t.toString()}async function _K(e,t){let n=new J6.default;for(let i of Object.keys(e)){let a=e[i];if(Array.isArray(a))for(let s of a)n.append(i,s);else n.append(i,a)}t.body=n,t.formData=void 0;let r=t.headers.get("Content-Type");r&&r.indexOf("multipart/form-data")!==-1&&t.headers.set("Content-Type",`multipart/form-data; boundary=${n.getBoundary()}`);try{let i=await new Promise((a,s)=>{n.getLength((u,l)=>{u?s(u):a(l)})});t.headers.set("Content-Length",i)}catch{}}var gK="HTTPS_PROXY",bK="HTTP_PROXY",yK="ALL_PROXY",EK="NO_PROXY",yM="proxyPolicy",ZD=[],EM=!1,TK=new Map;function tv(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function SK(){if(!process)return;let e=tv(gK),t=tv(yK),n=tv(bK);return e||t||n}function xK(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let a of t)a[0]==="."?(r.endsWith(a)||r.length===a.length-1&&r===a.slice(1))&&(i=!0):r===a&&(i=!0);return n?.set(r,i),i}function AK(){let e=tv(EK);return EM=!0,e?e.split(",").map(t=>t.trim()).filter(t=>t.length):[]}function TM(e){if(!e&&(e=SK(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+"//":"")+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function JD(e,{headers:t,tlsSettings:n}){let r;try{r=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}n&&oi.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let i={hostname:r.hostname,port:e.port,protocol:r.protocol,headers:t.toJSON()};return e.username&&e.password?i.auth=`${e.username}:${e.password}`:e.username&&(i.auth=`${e.username}`),i}function IK(e,t){if(e.agent)return;let r=new URL(e.url).protocol!=="https:",i=e.proxySettings;if(i)if(r){if(!t.httpProxyAgent){let a=JD(i,e);t.httpProxyAgent=new G6.HttpProxyAgent(a)}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){let a=JD(i,e);t.httpsProxyAgent=new z6.HttpsProxyAgent(a)}e.agent=t.httpsProxyAgent}}function SM(e=TM(),t){EM||ZD.push(...AK());let n={};return{name:yM,async sendRequest(r,i){var a;return!r.proxySettings&&!xK(r.url,(a=t?.customNoProxyList)!==null&&a!==void 0?a:ZD,t?.customNoProxyList?void 0:TK)&&(r.proxySettings=e),r.proxySettings&&IK(r,n),i(r)}}}var xM="setClientRequestIdPolicy";function AM(e="x-ms-client-request-id"){return{name:xM,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}var IM="tlsPolicy";function OM(e){return{name:IM,sendRequest:async(t,n)=>(t.tlsSettings||(t.tlsSettings=e),n(t))}}var OK=K6.inspect.custom,PK=new nv,xi=class e extends Error{constructor(t,n={}){super(t),this.name="RestError",this.code=n.code,this.statusCode=n.statusCode,this.request=n.request,this.response=n.response,Object.setPrototypeOf(this,e.prototype)}[OK](){return`RestError: ${this.message}
${PK.sanitize(this)}`}};xi.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";xi.PARSE_ERROR="PARSE_ERROR";function PM(e){return e instanceof xi?!0:Bi.isError(e)&&e.name==="RestError"}var CM="tracingPolicy";function RM(e={}){let t=uM(e.userAgentPrefix),n=CK();return{name:CM,async sendRequest(r,i){var a,s;if(!n||!(!((a=r.tracingOptions)===null||a===void 0)&&a.tracingContext))return i(r);let{span:u,tracingContext:l}=(s=RK(n,r,t))!==null&&s!==void 0?s:{};if(!u||!l)return i(r);try{let c=await n.withContext(l,i,r);return NK(u,c),c}catch(c){throw wK(u,c),c}}}}function CK(){try{return V6.createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:cM})}catch(e){oi.warning(`Error when creating the TracingClient: ${Bi.getErrorMessage(e)}`);return}}function RK(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:{"http.method":t.method,"http.url":t.url,requestId:t.requestId}});if(!r.isRecording()){r.end();return}n&&r.setAttribute("http.user_agent",n);let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[s,u]of Object.entries(a))t.headers.set(s,u);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(r){oi.warning(`Skipping creating a tracing span due to an error: ${Bi.getErrorMessage(r)}`);return}}function wK(e,t){try{e.setStatus({status:"error",error:Bi.isError(t)?t:void 0}),PM(t)&&t.statusCode&&e.setAttribute("http.status_code",t.statusCode),e.end()}catch(n){oi.warning(`Skipping tracing span processing due to an error: ${Bi.getErrorMessage(n)}`)}}function NK(e,t){try{e.setAttribute("http.status_code",t.status);let n=t.headers.get("x-ms-request-id");n&&e.setAttribute("serviceRequestId",n),e.setStatus({status:"success"}),e.end()}catch(n){oi.warning(`Skipping tracing span processing due to an error: ${Bi.getErrorMessage(n)}`)}}function DK(e){let t=nM();return Bi.isNode&&(e.tlsOptions&&t.addPolicy(OM(e.tlsOptions)),t.addPolicy(SM(e.proxyOptions)),t.addPolicy(fM())),t.addPolicy(bM()),t.addPolicy(pM(e.userAgentOptions)),t.addPolicy(AM()),t.addPolicy(_M(e.retryOptions),{phase:"Retry"}),t.addPolicy(RM(e.userAgentOptions),{afterPhase:"Retry"}),Bi.isNode&&t.addPolicy(sM(e.redirectOptions),{afterPhase:"Retry"}),t.addPolicy(iM(e.loggingOptions),{afterPhase:"Sign"}),t}function ev(e){return e.toLowerCase()}function*MK(e){for(let t of e.values())yield[t.name,t.value]}var JE=class{constructor(t){if(this._headersMap=new Map,t)for(let n of Object.keys(t))this.set(n,t[n])}set(t,n){this._headersMap.set(ev(t),{name:t,value:String(n)})}get(t){var n;return(n=this._headersMap.get(ev(t)))===null||n===void 0?void 0:n.value}has(t){return this._headersMap.has(ev(t))}delete(t){this._headersMap.delete(ev(t))}toJSON(t={}){let n={};if(t.preserveCase)for(let r of this._headersMap.values())n[r.name]=r.value;else for(let[r,i]of this._headersMap)n[r]=i.value;return n}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return MK(this._headersMap)}};function rT(e){return new JE(e)}var LK={};function hl(e){return e&&typeof e.pipe=="function"}function eM(e){return new Promise(t=>{e.on("close",t),e.on("end",t),e.on("error",t)})}function wM(e){return e&&typeof e.byteLength=="number"}var rv=class extends X6.Transform{constructor(t){super(),this.loadedBytes=0,this.progressCallback=t}_transform(t,n,r){this.push(t),this.loadedBytes+=t.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),r()}catch(i){r(i)}}},eT=class{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(t){var n,r,i;let a=new _l.AbortController,s;if(t.abortSignal){if(t.abortSignal.aborted)throw new _l.AbortError("The operation was aborted.");s=v=>{v.type==="abort"&&a.abort()},t.abortSignal.addEventListener("abort",s)}t.timeout>0&&setTimeout(()=>{a.abort()},t.timeout);let u=t.headers.get("Accept-Encoding"),l=u?.includes("gzip")||u?.includes("deflate"),c=typeof t.body=="function"?t.body():t.body;if(c&&!t.headers.has("Content-Length")){let v=UK(c);v!==null&&t.headers.set("Content-Length",v)}let f;try{if(c&&t.onUploadProgress){let N=t.onUploadProgress,se=new rv(N);se.on("error",ce=>{oi.error("Error in upload progress",ce)}),hl(c)?c.pipe(se):se.end(c),c=se}let v=await this.makeRequest(t,a,c),b=kK(v),x={status:(n=v.statusCode)!==null&&n!==void 0?n:0,headers:b,request:t};if(t.method==="HEAD")return v.resume(),x;f=l?qK(v,b):v;let M=t.onDownloadProgress;if(M){let N=new rv(M);N.on("error",se=>{oi.error("Error in download progress",se)}),f.pipe(N),f=N}return!((r=t.streamResponseStatusCodes)===null||r===void 0)&&r.has(Number.POSITIVE_INFINITY)||!((i=t.streamResponseStatusCodes)===null||i===void 0)&&i.has(x.status)?x.readableStreamBody=f:x.bodyAsText=await jK(f),x}finally{if(t.abortSignal&&s){let v=Promise.resolve();hl(c)&&(v=eM(c));let b=Promise.resolve();hl(f)&&(b=eM(f)),Promise.all([v,b]).then(()=>{var T;s&&((T=t.abortSignal)===null||T===void 0||T.removeEventListener("abort",s))}).catch(T=>{oi.warning("Error when cleaning up abortListener on httpRequest",T)})}}}makeRequest(t,n,r){var i;let a=new URL(t.url),s=a.protocol!=="https:";if(s&&!t.allowInsecureConnection)throw new Error(`Cannot connect to ${t.url} while allowInsecureConnection is false.`);let l={agent:(i=t.agent)!==null&&i!==void 0?i:this.getOrCreateAgent(t,s),hostname:a.hostname,path:`${a.pathname}${a.search}`,port:a.port,method:t.method,headers:t.headers.toJSON({preserveCase:!0})};return new Promise((c,f)=>{let v=s?$E.request(l,c):YE.request(l,c);v.once("error",b=>{var T;f(new xi(b.message,{code:(T=b.code)!==null&&T!==void 0?T:xi.REQUEST_SEND_ERROR,request:t}))}),n.signal.addEventListener("abort",()=>{let b=new _l.AbortError("The operation was aborted.");v.destroy(b),f(b)}),r&&hl(r)?r.pipe(v):r?typeof r=="string"||Buffer.isBuffer(r)?v.end(r):wM(r)?v.end(ArrayBuffer.isView(r)?Buffer.from(r.buffer):Buffer.from(r)):(oi.error("Unrecognized body type",r),f(new xi("Unrecognized body type"))):v.end()})}getOrCreateAgent(t,n){var r;let i=t.disableKeepAlive;if(n)return i?$E.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new $E.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(i&&!t.tlsSettings)return YE.globalAgent;let a=(r=t.tlsSettings)!==null&&r!==void 0?r:LK,s=this.cachedHttpsAgents.get(a);return s&&s.options.keepAlive===!i||(oi.info("No cached TLS Agent exist, creating a new Agent"),s=new YE.Agent(Object.assign({keepAlive:!i},a)),this.cachedHttpsAgents.set(a,s)),s}}};function kK(e){let t=rT();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function qK(e,t){let n=t.get("Content-Encoding");if(n==="gzip"){let r=WD.createGunzip();return e.pipe(r),r}else if(n==="deflate"){let r=WD.createInflate();return e.pipe(r),r}return e}function jK(e){return new Promise((t,n)=>{let r=[];e.on("data",i=>{Buffer.isBuffer(i)?r.push(i):r.push(Buffer.from(i))}),e.on("end",()=>{t(Buffer.concat(r).toString("utf8"))}),e.on("error",i=>{i&&i?.name==="AbortError"?n(i):n(new xi(`Error reading response as text: ${i.message}`,{code:xi.PARSE_ERROR}))})})}function UK(e){return e?Buffer.isBuffer(e)?e.length:hl(e)?null:wM(e)?e.byteLength:typeof e=="string"?Buffer.from(e).length:null:0}function FK(){return new eT}function HK(){return FK()}function BK(){return Q6.v4()}var tT=class{constructor(t){var n,r,i,a,s,u,l;this.url=t.url,this.body=t.body,this.headers=(n=t.headers)!==null&&n!==void 0?n:rT(),this.method=(r=t.method)!==null&&r!==void 0?r:"GET",this.timeout=(i=t.timeout)!==null&&i!==void 0?i:0,this.formData=t.formData,this.disableKeepAlive=(a=t.disableKeepAlive)!==null&&a!==void 0?a:!1,this.proxySettings=t.proxySettings,this.streamResponseStatusCodes=t.streamResponseStatusCodes,this.withCredentials=(s=t.withCredentials)!==null&&s!==void 0?s:!1,this.abortSignal=t.abortSignal,this.tracingOptions=t.tracingOptions,this.onUploadProgress=t.onUploadProgress,this.onDownloadProgress=t.onDownloadProgress,this.requestId=t.requestId||BK(),this.allowInsecureConnection=(u=t.allowInsecureConnection)!==null&&u!==void 0?u:!1,this.enableBrowserStreams=(l=t.enableBrowserStreams)!==null&&l!==void 0?l:!1}};function zK(e){return new tT(e)}var GK="exponentialRetryPolicy";function VK(e={}){var t;return gl([nT(Object.assign(Object.assign({},e),{ignoreSystemErrors:!0}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:Lc})}var NM="systemErrorRetryPolicy";function KK(e={}){var t;return{name:NM,sendRequest:gl([nT(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:!0}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:Lc}).sendRequest}}var DM="throttlingRetryPolicy";function WK(e={}){var t;return{name:DM,sendRequest:gl([hM()],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:Lc}).sendRequest}}var $K={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function YK(e,t,n){async function r(){if(Date.now()<n)try{return await e()}catch{return null}else{let a=await e();if(a===null)throw new Error("Failed to refresh access token.");return a}}let i=await r();for(;i===null;)await mM(t),i=await r();return i}function XK(e,t){let n=null,r=null,i,a=Object.assign(Object.assign({},$K),t),s={get isRefreshing(){return n!==null},get shouldRefresh(){var l;return!s.isRefreshing&&((l=r?.expiresOnTimestamp)!==null&&l!==void 0?l:0)-a.refreshWindowInMs<Date.now()},get mustRefresh(){return r===null||r.expiresOnTimestamp-a.forcedRefreshWindowInMs<Date.now()}};function u(l,c){var f;return s.isRefreshing||(n=YK(()=>e.getToken(l,c),a.retryIntervalInMs,(f=r?.expiresOnTimestamp)!==null&&f!==void 0?f:Date.now()).then(b=>(n=null,r=b,i=c.tenantId,r)).catch(b=>{throw n=null,r=null,i=void 0,b})),n}return async(l,c)=>i!==c.tenantId||!!c.claims||s.mustRefresh?u(l,c):(s.shouldRefresh&&u(l,c),r)}var MM="bearerTokenAuthenticationPolicy";async function QK(e){let{scopes:t,getAccessToken:n,request:r}=e,i={abortSignal:r.abortSignal,tracingOptions:r.tracingOptions},a=await n(t,i);a&&e.request.headers.set("Authorization",`Bearer ${a.token}`)}function ZK(e){let t=e.headers.get("WWW-Authenticate");if(e.status===401&&t)return t}function JK(e){var t;let{credential:n,scopes:r,challengeCallbacks:i}=e,a=e.logger||oi,s=Object.assign({authorizeRequest:(t=i?.authorizeRequest)!==null&&t!==void 0?t:QK,authorizeRequestOnChallenge:i?.authorizeRequestOnChallenge},i),u=n?XK(n):()=>Promise.resolve(null);return{name:MM,async sendRequest(l,c){if(!l.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await s.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:l,getAccessToken:u,logger:a});let f,v;try{f=await c(l)}catch(b){v=b,f=b.response}if(s.authorizeRequestOnChallenge&&f?.status===401&&ZK(f)&&await s.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:l,response:f,getAccessToken:u,logger:a}))return c(l);if(v)throw v;return f}}}var LM="ndJsonPolicy";function eW(){return{name:LM,async sendRequest(e,t){if(typeof e.body=="string"&&e.body.startsWith("[")){let n=JSON.parse(e.body);Array.isArray(n)&&(e.body=n.map(r=>JSON.stringify(r)+`
`).join(""))}return t(e)}}}Xe.RestError=xi;Xe.bearerTokenAuthenticationPolicy=JK;Xe.bearerTokenAuthenticationPolicyName=MM;Xe.createDefaultHttpClient=HK;Xe.createEmptyPipeline=nM;Xe.createHttpHeaders=rT;Xe.createPipelineFromOptions=DK;Xe.createPipelineRequest=zK;Xe.decompressResponsePolicy=fM;Xe.decompressResponsePolicyName=dM;Xe.defaultRetryPolicy=_M;Xe.exponentialRetryPolicy=VK;Xe.exponentialRetryPolicyName=GK;Xe.formDataPolicy=bM;Xe.formDataPolicyName=gM;Xe.getDefaultProxySettings=TM;Xe.isRestError=PM;Xe.logPolicy=iM;Xe.logPolicyName=rM;Xe.ndJsonPolicy=eW;Xe.ndJsonPolicyName=LM;Xe.proxyPolicy=SM;Xe.proxyPolicyName=yM;Xe.redirectPolicy=sM;Xe.redirectPolicyName=aM;Xe.retryPolicy=gl;Xe.setClientRequestIdPolicy=AM;Xe.setClientRequestIdPolicyName=xM;Xe.systemErrorRetryPolicy=KK;Xe.systemErrorRetryPolicyName=NM;Xe.throttlingRetryPolicy=WK;Xe.throttlingRetryPolicyName=DM;Xe.tlsPolicy=OM;Xe.tlsPolicyName=IM;Xe.tracingPolicy=RM;Xe.tracingPolicyName=CM;Xe.userAgentPolicy=pM;Xe.userAgentPolicyName=lM});var UM=_((bl,jM)=>{"use strict";var tW=bl&&bl.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},nW=bl&&bl.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},qM=kM(),rW="https://monitor.azure.com//.default";function iW(e){return null}var aW=function(){function e(t){var n=[rW];this._azureTokenPolicy=qM.bearerTokenAuthenticationPolicy({credential:t,scopes:n})}return e.prototype.addAuthorizationHeader=function(t){return tW(this,void 0,void 0,function(){var n,r;return nW(this,function(i){switch(i.label){case 0:return n="authorization",r=qM.createPipelineRequest({url:"https://"}),[4,this._azureTokenPolicy.sendRequest(r,iW)];case 1:return i.sent(),t.headers[n]=r.headers.get(n),[2]}})})},e}();jM.exports=aW});var HM=_((LQ,FM)=>{"use strict";var sW=Zt(),oW=Kn(),cW=function(){function e(t,n,r,i){this._buffer=[],this._lastSend=0,this._isDisabled=t,this._getBatchSize=n,this._getBatchIntervalMs=r,this._sender=i}return e.prototype.setUseDiskRetryCaching=function(t,n,r){this._sender.setDiskRetryMode(t,n,r)},e.prototype.send=function(t){var n=this;if(!this._isDisabled()){if(!t){sW.warn("Cannot send null/undefined telemetry");return}if(this._buffer.push(t),this._buffer.length>=this._getBatchSize()){this.triggerSend(!1);return}!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout(function(){n._timeoutHandle=null,n.triggerSend(!1)},this._getBatchIntervalMs()))}},e.prototype.triggerSend=function(t,n){var r=this._buffer.length<1;r||(t||oW.isNodeExit?(this._sender.saveOnCrash(this._buffer),typeof n=="function"&&n("data saved on crash")):this._sender.send(this._buffer,n)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,r&&typeof n=="function"&&n("no data to send")},e}();FM.exports=cW});var BM=_(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});av.azureRoleEnvironmentTelemetryProcessor=void 0;function uW(e,t){process.env.WEBSITE_SITE_NAME&&(e.tags[t.keys.cloudRole]=process.env.WEBSITE_SITE_NAME),process.env.WEBSITE_INSTANCE_ID&&(e.tags[t.keys.cloudRoleInstance]=process.env.WEBSITE_INSTANCE_ID)}av.azureRoleEnvironmentTelemetryProcessor=uW});var VM=_(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.getSamplingHashCode=kc.samplingTelemetryProcessor=void 0;var zM=or();function lW(e,t){var n=e.sampleRate,r=!1;return n==null||n>=100||e.data&&zM.TelemetryType.Metric===zM.baseTypeToTelemetryType(e.data.baseType)?!0:(t.correlationContext&&t.correlationContext.operation?r=GM(t.correlationContext.operation.id)<n:r=Math.random()*100<n,r)}kc.samplingTelemetryProcessor=lW;function GM(e){var t=-2147483648,n=2147483647,r=5381;if(!e)return 0;for(;e.length<8;)e=e+e;for(var i=0;i<e.length;i++)r=((r<<5)+r|0)+e.charCodeAt(i)|0;return r=r<=t?n:Math.abs(r),r/n*100}kc.getSamplingHashCode=GM});var KM=_(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.performanceMetricsTelemetryProcessor=void 0;var iT=gm(),aT=or();function pW(e,t){switch(t&&t.addDocument(e),e.data.baseType){case aT.TelemetryTypeString.Exception:iT.countException();break;case aT.TelemetryTypeString.Request:var n=e.data.baseData;iT.countRequest(n.duration,n.success);break;case aT.TelemetryTypeString.Dependency:var r=e.data.baseData;iT.countDependency(r.duration,r.success);break}return!0}sv.performanceMetricsTelemetryProcessor=pW});var WM=_(qc=>{"use strict";var zi=qc&&qc.__assign||function(){return zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},zi.apply(this,arguments)};Object.defineProperty(qc,"__esModule",{value:!0});qc.preAggregatedMetricsTelemetryProcessor=void 0;var dW=or(),yl=My(),ov=or();function fW(e,t){if(yl.isEnabled())switch(e.data.baseType){case ov.TelemetryTypeString.Exception:var n=e.data.baseData;n.properties=zi(zi({},n.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var r={cloudRoleInstance:e.tags[t.keys.cloudRoleInstance],cloudRoleName:e.tags[t.keys.cloudRole]};yl.countException(r);break;case ov.TelemetryTypeString.Trace:var i=e.data.baseData;i.properties=zi(zi({},i.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var a={cloudRoleInstance:e.tags[t.keys.cloudRoleInstance],cloudRoleName:e.tags[t.keys.cloudRole],traceSeverityLevel:dW.SeverityLevel[i.severity]};yl.countTrace(a);break;case ov.TelemetryTypeString.Request:var s=e.data.baseData;s.properties=zi(zi({},s.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var u={cloudRoleInstance:e.tags[t.keys.cloudRoleInstance],cloudRoleName:e.tags[t.keys.cloudRole],operationSynthetic:e.tags[t.keys.operationSyntheticSource],requestSuccess:s.success,requestResultCode:s.responseCode};yl.countRequest(s.duration,u);break;case ov.TelemetryTypeString.Dependency:var l=e.data.baseData;l.properties=zi(zi({},l.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var c={cloudRoleInstance:e.tags[t.keys.cloudRoleInstance],cloudRoleName:e.tags[t.keys.cloudRole],operationSynthetic:e.tags[t.keys.operationSyntheticSource],dependencySuccess:l.success,dependencyType:l.type,dependencyTarget:l.target,dependencyResultCode:l.resultCode};yl.countDependency(l.duration,c);break}return!0}qc.preAggregatedMetricsTelemetryProcessor=fW});var $M=_(Gi=>{"use strict";var mW=Gi&&Gi.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cv=Gi&&Gi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&mW(t,e,n)};Object.defineProperty(Gi,"__esModule",{value:!0});cv(BM(),Gi);cv(VM(),Gi);cv(KM(),Gi);cv(WM(),Gi)});var sT=_((HQ,QM)=>{"use strict";var ke=or(),ci=Kn(),YM=Va(),vW=function(){function e(){}return e.createEnvelope=function(t,n,r,i,a){var s=null;switch(n){case ke.TelemetryType.Trace:s=e.createTraceData(t);break;case ke.TelemetryType.Dependency:s=e.createDependencyData(t);break;case ke.TelemetryType.Event:s=e.createEventData(t);break;case ke.TelemetryType.Exception:s=e.createExceptionData(t);break;case ke.TelemetryType.Request:s=e.createRequestData(t);break;case ke.TelemetryType.Metric:s=e.createMetricData(t);break;case ke.TelemetryType.Availability:s=e.createAvailabilityData(t);break;case ke.TelemetryType.PageView:s=e.createPageViewData(t);break}if(s&&s.baseData&&ke.domainSupportsProperties(s.baseData)){if(r)if(!s.baseData.properties)s.baseData.properties=r;else for(var u in r)s.baseData.properties[u]||(s.baseData.properties[u]=r[u]);e.addAzureFunctionsCorrelationProperties(s.baseData.properties),s.baseData.properties&&(s.baseData.properties=ci.validateStringMap(s.baseData.properties))}var l=a&&a.instrumentationKey||"",c=new ke.Envelope;return c.data=s,c.iKey=l,c.name="Microsoft.ApplicationInsights."+l.replace(/-/g,"")+"."+s.baseType.substr(0,s.baseType.length-4),c.tags=this.getTags(i,t.tagOverrides),c.time=new Date().toISOString(),c.ver=1,c.sampleRate=a?a.samplingPercentage:100,n===ke.TelemetryType.Metric&&(c.sampleRate=100),c},e.addAzureFunctionsCorrelationProperties=function(t){var n=YM.CorrelationContextManager.getCurrentContext();if(n&&n.customProperties&&n.customProperties.getProperty instanceof Function){t=t||{};var r=n.customProperties.getProperty("InvocationId");r&&(t.InvocationId=r),r=n.customProperties.getProperty("ProcessId"),r&&(t.ProcessId=r),r=n.customProperties.getProperty("LogLevel"),r&&(t.LogLevel=r),r=n.customProperties.getProperty("Category"),r&&(t.Category=r),r=n.customProperties.getProperty("HostInstanceId"),r&&(t.HostInstanceId=r),r=n.customProperties.getProperty("AzFuncLiveLogsSessionId"),r&&(t.AzFuncLiveLogsSessionId=r)}},e.createTraceData=function(t){var n=new ke.MessageData;n.message=t.message,n.properties=t.properties,isNaN(t.severity)?n.severityLevel=ke.SeverityLevel.Information:n.severityLevel=t.severity;var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Trace),r.baseData=n,r},e.createDependencyData=function(t){var n=new ke.RemoteDependencyData;typeof t.name=="string"&&(n.name=t.name.length>1024?t.name.slice(0,1021)+"...":t.name),n.data=t.data,n.target=t.target,n.duration=ci.msToTimeSpan(t.duration),n.success=t.success,n.type=t.dependencyTypeName,n.properties=t.properties,n.resultCode=t.resultCode?t.resultCode.toString():"0",t.id?n.id=t.id:n.id=ci.w3cTraceId();var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Dependency),r.baseData=n,r},e.createEventData=function(t){var n=new ke.EventData;n.name=t.name,n.properties=t.properties,n.measurements=t.measurements;var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Event),r.baseData=n,r},e.createExceptionData=function(t){var n=new ke.ExceptionData;n.properties=t.properties,isNaN(t.severity)?n.severityLevel=ke.SeverityLevel.Error:n.severityLevel=t.severity,n.measurements=t.measurements,n.exceptions=[];var r=t.exception.stack,i=new ke.ExceptionDetails;i.message=t.exception.message,i.typeName=t.exception.name,i.parsedStack=this.parseStack(r),i.hasFullStack=ci.isArray(i.parsedStack)&&i.parsedStack.length>0,n.exceptions.push(i);var a=new ke.Data;return a.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Exception),a.baseData=n,a},e.createRequestData=function(t){var n=new ke.RequestData;t.id?n.id=t.id:n.id=ci.w3cTraceId(),n.name=t.name,n.url=t.url,n.source=t.source,n.duration=ci.msToTimeSpan(t.duration),n.responseCode=t.resultCode?t.resultCode.toString():"0",n.success=t.success,n.properties=t.properties,n.measurements=t.measurements;var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Request),r.baseData=n,r},e.createMetricData=function(t){var n=new ke.MetricData;n.metrics=[];var r=new ke.DataPoint;r.count=isNaN(t.count)?1:t.count,r.kind=ke.DataPointType.Aggregation,r.max=isNaN(t.max)?t.value:t.max,r.min=isNaN(t.min)?t.value:t.min,r.name=t.name,r.stdDev=isNaN(t.stdDev)?0:t.stdDev,r.value=t.value,r.ns=t.namespace,n.metrics.push(r),n.properties=t.properties;var i=new ke.Data;return i.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Metric),i.baseData=n,i},e.createAvailabilityData=function(t){var n=new ke.AvailabilityData;t.id?n.id=t.id:n.id=ci.w3cTraceId(),n.name=t.name,n.duration=ci.msToTimeSpan(t.duration),n.success=t.success,n.runLocation=t.runLocation,n.message=t.message,n.measurements=t.measurements,n.properties=t.properties;var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.Availability),r.baseData=n,r},e.createPageViewData=function(t){var n=new ke.PageViewData;n.name=t.name,n.duration=ci.msToTimeSpan(t.duration),n.url=t.url,n.measurements=t.measurements,n.properties=t.properties;var r=new ke.Data;return r.baseType=ke.telemetryTypeToBaseType(ke.TelemetryType.PageView),r.baseData=n,r},e.getTags=function(t,n){var r=YM.CorrelationContextManager.getCurrentContext(),i={};if(t&&t.tags)for(var a in t.tags)i[a]=t.tags[a];if(n)for(var a in n)i[a]=n[a];return r&&(i[t.keys.operationId]=i[t.keys.operationId]||r.operation.id,i[t.keys.operationName]=i[t.keys.operationName]||r.operation.name,i[t.keys.operationParentId]=i[t.keys.operationParentId]||r.operation.parentId),i},e.parseStack=function(t){var n=void 0;if(typeof t=="string"){var r=t.split(`
`);n=[];for(var i=0,a=0,s=0;s<=r.length;s++){var u=r[s];if(XM.regex.test(u)){var l=new XM(r[s],i++);a+=l.sizeInBytes,n.push(l)}}var c=32*1024;if(a>c)for(var f=0,v=n.length-1,b=0,T=f,x=v;f<v;){var M=n[f].sizeInBytes,N=n[v].sizeInBytes;if(b+=M+N,b>c){var se=x-T+1;n.splice(T,se);break}T=f,x=v,f++,v--}}return n},e}(),XM=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="<no_method>",this.assembly=ci.trim(t);var r=t.match(e.regex);r&&r.length>=5&&(this.method=ci.trim(r[2])||this.method,this.fileName=ci.trim(r[4])||"<no_filename>",this.line=parseInt(r[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}();QM.exports=vW});var ZM=_(os=>{"use strict";var hW=os&&os.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},_W=os&&os.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(os,"__esModule",{value:!0});os.FileAccessControl=void 0;var gW=require("fs"),bW=require("os"),jc=require("child_process"),yW=Zt(),EW=function(){function e(){}return e.checkFileProtection=function(){if(!e.OS_PROVIDES_FILE_PROTECTION&&!e.OS_FILE_PROTECTION_CHECKED)if(e.OS_FILE_PROTECTION_CHECKED=!0,e.USE_ICACLS){try{e.OS_PROVIDES_FILE_PROTECTION=gW.existsSync(e.ICACLS_PATH)}catch{}e.OS_PROVIDES_FILE_PROTECTION||yW.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},e.applyACLRules=function(t){return hW(this,void 0,void 0,function(){var n,r;return _W(this,function(i){switch(i.label){case 0:if(!e.USE_ICACLS)return[3,7];if(e.ACLED_DIRECTORIES[t]!==void 0)return[3,6];e.ACLED_DIRECTORIES[t]=!1,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,this._getACLIdentity()];case 2:return n=i.sent(),[4,this._runICACLS(this._getACLArguments(t,n))];case 3:return i.sent(),e.ACLED_DIRECTORIES[t]=!0,[3,5];case 4:throw r=i.sent(),e.ACLED_DIRECTORIES[t]=!1,r;case 5:return[3,7];case 6:if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)");i.label=7;case 7:return[2]}})})},e.applyACLRulesSync=function(t){if(e.USE_ICACLS){if(e.ACLED_DIRECTORIES[t]===void 0){this._runICACLSSync(this._getACLArguments(t,this._getACLIdentitySync())),e.ACLED_DIRECTORIES[t]=!0;return}else if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},e._runICACLS=function(t){return new Promise(function(n,r){var i=jc.spawn(e.ICACLS_PATH,t,{windowsHide:!0});i.on("error",function(a){return r(a)}),i.on("close",function(a,s){a===0?n():r(new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+a+")"))})})},e._runICACLSSync=function(t){if(jc.spawnSync){var n=jc.spawnSync(e.ICACLS_PATH,t,{windowsHide:!0});if(n.error)throw n.error;if(n.status!==0)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+n.status+")")}else throw new Error("Could not synchronously call ICACLS under current version of Node.js")},e._getACLIdentity=function(){return new Promise(function(t,n){e.ACL_IDENTITY&&t(e.ACL_IDENTITY);var r=jc.spawn(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),i="";r.stdout.on("data",function(a){return i+=a}),r.on("error",function(a){return n(a)}),r.on("close",function(a,s){e.ACL_IDENTITY=i&&i.trim(),a===0?t(e.ACL_IDENTITY):n(new Error("Getting ACL identity did not succeed (PS returned code "+a+")"))})})},e._getACLIdentitySync=function(){if(e.ACL_IDENTITY)return e.ACL_IDENTITY;if(jc.spawnSync){var t=jc.spawnSync(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(t.error)throw t.error;if(t.status!==0)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}else throw new Error("Could not synchronously get ACL identity under current version of Node.js")},e._getACLArguments=function(t,n){return[t,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",n+":(OI)(CI)F","/inheritance:r"]},e.TAG="FileAccessControl",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.OS_FILE_PROTECTION_CHECKED=!1,e.OS_PROVIDES_FILE_PROTECTION=!1,e.USE_ICACLS=bW.type()==="Windows_NT",e}();os.FileAccessControl=EW});var cT=_((Tl,eL)=>{"use strict";var uv=Tl&&Tl.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},lv=Tl&&Tl.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},oT=require("fs"),TW=require("os"),fo=require("path"),SW=require("zlib"),cs=pn(),xW=Sc(),ha=jh(),wr=Kn(),AW=require("url"),JM=Zt(),El=ZM(),IW=439,OW=402,PW=[200,206,402,408,429,439,500],CW=function(){function e(t,n,r,i,a,s,u){this._redirectedHost=null,this._config=t,this._onSuccess=r,this._onError=i,this._statsbeat=a,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._getAuthorizationHandler=n,this._fileCleanupTimer=null,this._tempDir=fo.join(TW.tmpdir(),e.TEMPDIR_PREFIX+this._config.instrumentationKey),this._isStatsbeatSender=s||!1,this._shutdownStatsbeat=u,this._failedToIngestCounter=0,this._statsbeatHasReachedIngestionAtLeastOnce=!1}return e.prototype.setDiskRetryMode=function(t,n,r){var i=this;t&&El.FileAccessControl.checkFileProtection(),this._enableDiskRetryMode=El.FileAccessControl.OS_PROVIDES_FILE_PROTECTION&&t,typeof n=="number"&&n>=0&&(this._resendInterval=Math.floor(n)),typeof r=="number"&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!El.FileAccessControl.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,this._logWarn("Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?(this._statsbeat&&this._statsbeat.addFeature(cs.StatsbeatFeature.DISK_RETRY),this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout(function(){i._fileCleanupTask()},e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref())):(this._statsbeat&&this._statsbeat.removeFeature(cs.StatsbeatFeature.DISK_RETRY),this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer))},e.prototype.send=function(t,n){return uv(this,void 0,void 0,function(){var r,i,a,s,u,l,c,f,v=this;return lv(this,function(b){switch(b.label){case 0:if(!t)return[3,5];if(r=this._redirectedHost||this._config.endpointUrl,i=new AW.URL(r).hostname,a={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},s=this._getAuthorizationHandler?this._getAuthorizationHandler(this._config):null,!s)return[3,4];this._statsbeat&&this._statsbeat.addFeature(cs.StatsbeatFeature.AAD_HANDLING),b.label=1;case 1:return b.trys.push([1,3,,4]),[4,s.addAuthorizationHeader(a)];case 2:return b.sent(),[3,4];case 3:return u=b.sent(),l="Failed to get AAD bearer token for the Application.",this._enableDiskRetryMode&&(l+="This batch of telemetry items will be retried. ",this._storeToDisk(t)),l+="Error:"+u.toString(),this._logWarn(l),typeof n=="function"&&n(l),[2];case 4:c="",t.forEach(function(T){var x=wr.stringify(T);typeof x=="string"&&(c+=x+`
`)}),c.length>0&&(c=c.substring(0,c.length-1)),f=Buffer.from?Buffer.from(c):new Buffer(c),SW.gzip(f,function(T,x){var M=x;T?(v._logWarn(wr.dumpObj(T)),M=f,a.headers["Content-Length"]=f.length.toString()):(a.headers["Content-Encoding"]="gzip",a.headers["Content-Length"]=x.length.toString()),v._logInfo(wr.dumpObj(a)),a[xW.disableCollectionRequestOption]=!0;var N=+new Date,se=function(be){be.setEncoding("utf-8");var xe="";be.on("data",function(ut){xe+=ut}),be.on("end",function(){var ut=+new Date,$t=ut-N;if(v._numConsecutiveFailures=0,v._isStatsbeatSender&&!v._statsbeatHasReachedIngestionAtLeastOnce&&(PW.includes(be.statusCode)?v._statsbeatHasReachedIngestionAtLeastOnce=!0:v._statsbeatFailedToIngest()),v._statsbeat&&(be.statusCode==OW||be.statusCode==IW?v._statsbeat.countThrottle(cs.StatsbeatNetworkCategory.Breeze,i,be.statusCode):v._statsbeat.countRequest(cs.StatsbeatNetworkCategory.Breeze,i,$t,be.statusCode===200,be.statusCode)),v._enableDiskRetryMode){if(be.statusCode===200)v._resendTimer||(v._resendTimer=setTimeout(function(){v._resendTimer=null,v._sendFirstFileOnDisk()},v._resendInterval),v._resendTimer.unref());else if(v._isRetriable(be.statusCode))try{v._statsbeat&&v._statsbeat.countRetry(cs.StatsbeatNetworkCategory.Breeze,i,be.statusCode);var It=JSON.parse(xe),we=[];It.errors&&(It.errors.forEach(function(Yt){(Yt.statusCode==429||Yt.statusCode==500||Yt.statusCode==503)&&we.push(t[Yt.index])}),we.length>0&&v._storeToDisk(we))}catch{v._storeToDisk(t)}}if(be.statusCode===307||be.statusCode===308)if(v._numConsecutiveRedirects++,v._numConsecutiveRedirects<10){var Ze=be.headers.location?be.headers.location.toString():null;Ze&&(v._redirectedHost=Ze,v.send(t,n))}else{var Ot={name:"Circular Redirect",message:"Error sending telemetry because of circular redirects."};v._statsbeat&&v._statsbeat.countException(cs.StatsbeatNetworkCategory.Breeze,i,Ot),typeof n=="function"&&n("Error sending telemetry because of circular redirects.")}else v._numConsecutiveRedirects=0,typeof n=="function"&&n(xe),v._logInfo(xe),typeof v._onSuccess=="function"&&v._onSuccess(xe)})},ce=wr.makeRequest(v._config,r,a,se);ce.setTimeout(e.HTTP_TIMEOUT,function(){v._requestTimedOut=!0,ce.abort()}),ce.on("error",function(be){if(v._isStatsbeatSender&&!v._statsbeatHasReachedIngestionAtLeastOnce&&v._statsbeatFailedToIngest(),v._numConsecutiveFailures++,v._statsbeat&&v._statsbeat.countException(cs.StatsbeatNetworkCategory.Breeze,i,be),!v._enableDiskRetryMode||v._numConsecutiveFailures>0&&v._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN===0){var xe="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:";v._enableDiskRetryMode&&(xe="Ingestion endpoint could not be reached "+v._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),v._logWarn(xe,wr.dumpObj(be))}else{var xe="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:";v._logInfo(xe,wr.dumpObj(be))}v._onErrorHelper(be),typeof n=="function"&&(be?(v._requestTimedOut&&(be.name="telemetry timeout",be.message="telemetry request timed out"),n(wr.dumpObj(be))):n("Error sending telemetry")),v._enableDiskRetryMode&&v._storeToDisk(t)}),ce.write(M),ce.end()}),b.label=5;case 5:return[2]}})})},e.prototype.saveOnCrash=function(t){this._enableDiskRetryMode&&this._storeToDiskSync(wr.stringify(t))},e.prototype._isRetriable=function(t){return t===206||t===401||t===403||t===408||t===429||t===500||t===502||t===503||t===504},e.prototype._logInfo=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._isStatsbeatSender||JM.info(e.TAG,t,n)},e.prototype._logWarn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this._isStatsbeatSender||JM.warn(e.TAG,t,n)},e.prototype._statsbeatFailedToIngest=function(){this._shutdownStatsbeat&&(this._failedToIngestCounter++,this._failedToIngestCounter>=3&&this._shutdownStatsbeat())},e.prototype._storeToDisk=function(t){return uv(this,void 0,void 0,function(){var n,r,i,a,s,u,l;return lv(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),this._logInfo("Checking existence of data storage directory: "+this._tempDir),[4,ha.confirmDirExists(this._tempDir)];case 1:return c.sent(),[3,3];case 2:return n=c.sent(),this._logWarn("Failed to create folder to put telemetry: "+wr.dumpObj(n)),this._onErrorHelper(n),[2];case 3:return c.trys.push([3,5,,6]),[4,El.FileAccessControl.applyACLRules(this._tempDir)];case 4:return c.sent(),[3,6];case 5:return r=c.sent(),this._logWarn("Failed to apply file access control to folder: "+wr.dumpObj(r)),this._onErrorHelper(r),[2];case 6:return c.trys.push([6,8,,9]),[4,ha.getShallowDirectorySize(this._tempDir)];case 7:return i=c.sent(),i>this._maxBytesOnDisk?(this._logWarn("Not saving data due to max size limit being met. Directory size in bytes is: "+i),[2]):[3,9];case 8:return a=c.sent(),this._logWarn("Failed to read directory for retriable telemetry: "+wr.dumpObj(a)),this._onErrorHelper(a),[2];case 9:return c.trys.push([9,11,,12]),s=new Date().getTime()+".ai.json",u=fo.join(this._tempDir,s),this._logInfo("saving data to disk at: "+u),[4,ha.writeFileAsync(u,wr.stringify(t),{mode:384})];case 10:return c.sent(),[3,12];case 11:return l=c.sent(),this._logWarn("Failed to persist telemetry to disk: "+wr.dumpObj(l)),this._onErrorHelper(l),[2];case 12:return[2]}})})},e.prototype._storeToDiskSync=function(t){try{this._logInfo("Checking existence of data storage directory: "+this._tempDir),oT.existsSync(this._tempDir)||oT.mkdirSync(this._tempDir),El.FileAccessControl.applyACLRulesSync(this._tempDir);var n=ha.getShallowDirectorySizeSync(this._tempDir);if(n>this._maxBytesOnDisk){this._logInfo("Not saving data due to max size limit being met. Directory size in bytes is: "+n);return}var r=new Date().getTime()+".ai.json",i=fo.join(this._tempDir,r);this._logInfo("saving data before crash to disk at: "+i),oT.writeFileSync(i,t,{mode:384})}catch(a){this._logWarn("Error while saving data to disk: "+wr.dumpObj(a)),this._onErrorHelper(a)}},e.prototype._sendFirstFileOnDisk=function(){return uv(this,void 0,void 0,function(){var t,n,r,i,a,s;return lv(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,ha.readdirAsync(this._tempDir)];case 1:return t=u.sent(),t=t.filter(function(l){return fo.basename(l).indexOf(".ai.json")>-1}),t.length>0?(n=t[0],r=fo.join(this._tempDir,n),[4,ha.readFileAsync(r)]):[3,5];case 2:return i=u.sent(),[4,ha.unlinkAsync(r)];case 3:return u.sent(),a=JSON.parse(i.toString()),[4,this.send(a)];case 4:u.sent(),u.label=5;case 5:return[3,7];case 6:return s=u.sent(),this._onErrorHelper(s),[3,7];case 7:return[2]}})})},e.prototype._onErrorHelper=function(t){typeof this._onError=="function"&&this._onError(t)},e.prototype._fileCleanupTask=function(){return uv(this,void 0,void 0,function(){var t,n,r,i,a,s,u=this;return lv(this,function(l){switch(l.label){case 0:return l.trys.push([0,6,,7]),[4,ha.readdirAsync(this._tempDir)];case 1:if(t=l.sent(),t=t.filter(function(c){return fo.basename(c).indexOf(".ai.json")>-1}),!(t.length>0))return[3,5];n=0,l.label=2;case 2:return n<t.length?(r=new Date(parseInt(t[n].split(".ai.json")[0])),i=new Date(+new Date-e.FILE_RETEMPTION_PERIOD)>r,i?(a=fo.join(this._tempDir,t[n]),[4,ha.unlinkAsync(a).catch(function(c){u._onErrorHelper(c)})]):[3,4]):[3,5];case 3:l.sent(),l.label=4;case 4:return n++,[3,2];case 5:return[3,7];case 6:return s=l.sent(),s.code!="ENOENT"&&this._onErrorHelper(s),[3,7];case 7:return[2]}})})},e.TAG="Sender",e.WAIT_BETWEEN_RESEND=60*1e3,e.MAX_BYTES_ON_DISK=50*1024*1024,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=60*60*1e3,e.FILE_RETEMPTION_PERIOD=7*24*60*60*1e3,e.TEMPDIR_PREFIX="appInsights-node",e.HTTP_TIMEOUT=2e4,e}();eL.exports=CW});var tL=_(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.NetworkStatsbeat=void 0;var RW=function(){function e(t,n){this.endpoint=t,this.host=n,this.totalRequestCount=0,this.totalSuccesfulRequestCount=0,this.totalFailedRequestCount=[],this.retryCount=[],this.exceptionCount=[],this.throttleCount=[],this.intervalRequestExecutionTime=0,this.lastIntervalRequestExecutionTime=0,this.lastTime=+new Date,this.lastRequestCount=0}return e}();pv.NetworkStatsbeat=RW});var sL=_((mo,aL)=>{"use strict";var Vi=mo&&mo.__assign||function(){return Vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vi.apply(this,arguments)},uT=mo&&mo.__awaiter||function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function u(f){try{c(r.next(f))}catch(v){s(v)}}function l(f){try{c(r.throw(f))}catch(v){s(v)}}function c(f){f.done?a(f.value):i(f.value).then(u,l)}c((r=r.apply(e,t||[])).next())})},lT=mo&&mo.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},wW=require("os"),NW=sT(),nL=Zt(),DW=cT(),Wt=pn(),MW=or(),LW=Ky(),kW=nE(),rL=xc(),qW=tL(),iL=Kn(),jW="node",UW=function(){function e(t,n){this._attach=Wt.StatsbeatAttach.sdk,this._feature=Wt.StatsbeatFeature.NONE,this._instrumentation=Wt.StatsbeatInstrumentation.NONE,this._isInitialized=!1,this._statbeatMetrics=[],this._networkStatsbeatCollection=[],this._config=t,this._context=n||new rL;var r=this._getConnectionString(t);this._statsbeatConfig=new kW(r),this._statsbeatConfig.samplingPercentage=100,this._sender=new DW(this._statsbeatConfig,null,null,null,null,!0,this._shutdownStatsbeat.bind(this))}return e.prototype.enable=function(t){var n=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._getCustomProperties(),this._isInitialized=!0),t?(this._handle||(this._handle=setInterval(function(){n.trackShortIntervalStatsbeats()},e.STATS_COLLECTION_SHORT_INTERVAL),this._handle.unref()),this._longHandle||(this.trackLongIntervalStatsbeats(),this._longHandle=setInterval(function(){n.trackLongIntervalStatsbeats()},e.STATS_COLLECTION_LONG_INTERVAL),this._longHandle.unref())):(this._handle&&(clearInterval(this._handle),this._handle=null),this._longHandle&&(clearInterval(this._longHandle),this._longHandle=null))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isEnabled=function(){return this._isEnabled},e.prototype.setCodelessAttach=function(){this._attach=Wt.StatsbeatAttach.codeless},e.prototype.addFeature=function(t){this._feature|=t},e.prototype.removeFeature=function(t){this._feature&=~t},e.prototype.addInstrumentation=function(t){this._instrumentation|=t},e.prototype.removeInstrumentation=function(t){this._instrumentation&=~t},e.prototype.countRequest=function(t,n,r,i,a){if(this.isEnabled()){var s=this._getNetworkStatsbeatCounter(t,n);if(s.totalRequestCount++,s.intervalRequestExecutionTime+=r,i===!1){if(!a)return;var u=s.totalFailedRequestCount.find(function(l){return a===l.statusCode});u?u.count++:s.totalFailedRequestCount.push({statusCode:a,count:1})}else s.totalSuccesfulRequestCount++}},e.prototype.countException=function(t,n,r){if(this.isEnabled()){var i=this._getNetworkStatsbeatCounter(t,n),a=i.exceptionCount.find(function(s){return r.name===s.exceptionType});a?a.count++:i.exceptionCount.push({exceptionType:r.name,count:1})}},e.prototype.countThrottle=function(t,n,r){if(this.isEnabled()){var i=this._getNetworkStatsbeatCounter(t,n),a=i.throttleCount.find(function(s){return r===s.statusCode});a?a.count++:i.throttleCount.push({statusCode:r,count:1})}},e.prototype.countRetry=function(t,n,r){if(this.isEnabled()){var i=this._getNetworkStatsbeatCounter(t,n),a=i.retryCount.find(function(s){return r===s.statusCode});a?a.count++:i.retryCount.push({statusCode:r,count:1})}},e.prototype.trackShortIntervalStatsbeats=function(){return uT(this,void 0,void 0,function(){var t,n;return lT(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this._getResourceProvider()];case 1:return r.sent(),t={os:this._os,rp:this._resourceProvider,cikey:this._cikey,runtimeVersion:this._runtimeVersion,language:this._language,version:this._sdkVersion,attach:this._attach},this._trackRequestDuration(t),this._trackRequestsCount(t),[4,this._sendStatsbeats()];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),nL.info(e.TAG,"Failed to send Statsbeat metrics: "+iL.dumpObj(n)),[3,4];case 4:return[2]}})})},e.prototype.trackLongIntervalStatsbeats=function(){return uT(this,void 0,void 0,function(){var t,n,r,i,a;return lT(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,this._getResourceProvider()];case 1:return s.sent(),t={os:this._os,rp:this._resourceProvider,cikey:this._cikey,runtimeVersion:this._runtimeVersion,language:this._language,version:this._sdkVersion,attach:this._attach},n=Object.assign({rpId:this._resourceIdentifier},t),this._statbeatMetrics.push({name:Wt.StatsbeatCounter.ATTACH,value:1,properties:n}),this._instrumentation!=Wt.StatsbeatInstrumentation.NONE&&(r=Object.assign({feature:this._instrumentation,type:Wt.StatsbeatFeatureType.Instrumentation},t),this._statbeatMetrics.push({name:Wt.StatsbeatCounter.FEATURE,value:1,properties:r})),this._feature!=Wt.StatsbeatFeature.NONE&&(i=Object.assign({feature:this._feature,type:Wt.StatsbeatFeatureType.Feature},t),this._statbeatMetrics.push({name:Wt.StatsbeatCounter.FEATURE,value:1,properties:i})),[4,this._sendStatsbeats()];case 2:return s.sent(),[3,4];case 3:return a=s.sent(),nL.info(e.TAG,"Failed to send Statsbeat metrics: "+iL.dumpObj(a)),[3,4];case 4:return[2]}})})},e.prototype._getNetworkStatsbeatCounter=function(t,n){for(var r=this._getShortHost(n),i=0;i<this._networkStatsbeatCollection.length;i++)if(t===this._networkStatsbeatCollection[i].endpoint&&r===this._networkStatsbeatCollection[i].host)return this._networkStatsbeatCollection[i];var a=new qW.NetworkStatsbeat(t,r);return this._networkStatsbeatCollection.push(a),a},e.prototype._trackRequestDuration=function(t){for(var n=0;n<this._networkStatsbeatCollection.length;n++){var r=this._networkStatsbeatCollection[n];r.time=+new Date;var i=r.totalRequestCount-r.lastRequestCount||0,a=r.intervalRequestExecutionTime-r.lastIntervalRequestExecutionTime,s=a>0&&a/i||0;if(r.lastIntervalRequestExecutionTime=r.intervalRequestExecutionTime,i>0){var u=Object.assign({endpoint:this._networkStatsbeatCollection[n].endpoint,host:this._networkStatsbeatCollection[n].host},t);this._statbeatMetrics.push({name:Wt.StatsbeatCounter.REQUEST_DURATION,value:s,properties:u})}r.lastRequestCount=r.totalRequestCount,r.lastTime=r.time}},e.prototype._getShortHost=function(t){var n=t;try{var r=new RegExp(/^https?:\/\/(?:www\.)?([^\/.-]+)/),i=r.exec(t);i!=null&&i.length>1&&(n=i[1]),n=n.replace(".in.applicationinsights.azure.com","")}catch{}return n},e.prototype._trackRequestsCount=function(t){for(var n=this,r=function(u){a=i._networkStatsbeatCollection[u];var l=Object.assign({endpoint:a.endpoint,host:a.host},t);a.totalSuccesfulRequestCount>0&&(i._statbeatMetrics.push({name:Wt.StatsbeatCounter.REQUEST_SUCCESS,value:a.totalSuccesfulRequestCount,properties:l}),a.totalSuccesfulRequestCount=0),a.totalFailedRequestCount.length>0&&(a.totalFailedRequestCount.forEach(function(c){l=Object.assign(Vi(Vi({},l),{statusCode:c.statusCode})),n._statbeatMetrics.push({name:Wt.StatsbeatCounter.REQUEST_FAILURE,value:c.count,properties:l})}),a.totalFailedRequestCount=[]),a.retryCount.length>0&&(a.retryCount.forEach(function(c){l=Object.assign(Vi(Vi({},l),{statusCode:c.statusCode})),n._statbeatMetrics.push({name:Wt.StatsbeatCounter.RETRY_COUNT,value:c.count,properties:l})}),a.retryCount=[]),a.throttleCount.length>0&&(a.throttleCount.forEach(function(c){l=Object.assign(Vi(Vi({},l),{statusCode:c.statusCode})),n._statbeatMetrics.push({name:Wt.StatsbeatCounter.THROTTLE_COUNT,value:c.count,properties:l})}),a.throttleCount=[]),a.exceptionCount.length>0&&(a.exceptionCount.forEach(function(c){l=Object.assign(Vi(Vi({},l),{exceptionType:c.exceptionType})),n._statbeatMetrics.push({name:Wt.StatsbeatCounter.EXCEPTION_COUNT,value:c.count,properties:l})}),a.exceptionCount=[])},i=this,a,s=0;s<this._networkStatsbeatCollection.length;s++)r(s)},e.prototype._sendStatsbeats=function(){return uT(this,void 0,void 0,function(){var t,n,r,i;return lT(this,function(a){switch(a.label){case 0:for(t=[],n=0;n<this._statbeatMetrics.length;n++)r={name:this._statbeatMetrics[n].name,value:this._statbeatMetrics[n].value,properties:this._statbeatMetrics[n].properties},i=NW.createEnvelope(r,MW.TelemetryType.Metric,null,this._context,this._statsbeatConfig),i.name=Wt.StatsbeatTelemetryName,t.push(i);return this._statbeatMetrics=[],[4,this._sender.send(t)];case 1:return a.sent(),[2]}})})},e.prototype._getCustomProperties=function(){this._language=jW,this._cikey=this._config.instrumentationKey,this._sdkVersion=rL.sdkVersion,this._os=wW.type(),this._runtimeVersion=process.version},e.prototype._getResourceProvider=function(){var t=this;return new Promise(function(n,r){var i=!1;t._resourceProvider=Wt.StatsbeatResourceProvider.unknown,t._resourceIdentifier=Wt.StatsbeatResourceProvider.unknown,process.env.WEBSITE_SITE_NAME?(t._resourceProvider=Wt.StatsbeatResourceProvider.appsvc,t._resourceIdentifier=process.env.WEBSITE_SITE_NAME,process.env.WEBSITE_HOME_STAMPNAME&&(t._resourceIdentifier+="/"+process.env.WEBSITE_HOME_STAMPNAME)):process.env.FUNCTIONS_WORKER_RUNTIME?(t._resourceProvider=Wt.StatsbeatResourceProvider.functions,process.env.WEBSITE_HOSTNAME&&(t._resourceIdentifier=process.env.WEBSITE_HOSTNAME)):t._config&&(t._isVM===void 0||t._isVM==!0?(i=!0,LW.AzureVirtualMachine.getAzureComputeMetadata(t._config,function(a){t._isVM=a.isVM,t._isVM&&(t._resourceProvider=Wt.StatsbeatResourceProvider.vm,t._resourceIdentifier=a.id+"/"+a.subscriptionId,a.osType&&(t._os=a.osType)),n()})):t._resourceProvider=Wt.StatsbeatResourceProvider.unknown),i||n()})},e.prototype._shutdownStatsbeat=function(){this.enable(!1)},e.prototype._getConnectionString=function(t){for(var n=t.endpointUrl,r=["westeurope","northeurope","francecentral","francesouth","germanywestcentral","norwayeast","norwaywest","swedencentral","switzerlandnorth","switzerlandwest","uksouth","ukwest"],i=0;i<r.length;i++)if(n.indexOf(r[i])>-1)return e.EU_CONNECTION_STRING;return e.NON_EU_CONNECTION_STRING},e.NON_EU_CONNECTION_STRING="InstrumentationKey=c4a29126-a7cb-47e5-b348-11414998b11e;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com",e.EU_CONNECTION_STRING="InstrumentationKey=7dc56bab-3c0c-4e9f-9ebb-d1acadee8d0f;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com",e.STATS_COLLECTION_SHORT_INTERVAL=9e5,e.STATS_COLLECTION_LONG_INTERVAL=864e5,e.TAG="Statsbeat",e}();aL.exports=UW});var uL=_((GQ,cL)=>{"use strict";var FW=require("url"),HW=nE(),BW=UM(),zW=xc(),_a=or(),GW=HM(),dv=$M(),oL=Va(),VW=sL(),KW=cT(),pT=Kn(),fv=Zt(),WW=sT(),$W=function(){function e(t){this._telemetryProcessors=[],this._enableAzureProperties=!1;var n=new HW(t);if(this.config=n,!this.config.instrumentationKey||this.config.instrumentationKey=="")throw new Error("Instrumentation key not found, please provide a connection string before starting Application Insights SDK.");this.context=new zW,this.commonProperties={},this.authorizationHandler=null,this.config.disableStatsbeat||(this._statsbeat=new VW(this.config,this.context),this._statsbeat.enable(!0));var r=new KW(this.config,this.getAuthorizationHandler,null,null,this._statsbeat);this.channel=new GW(function(){return n.disableAppInsights},function(){return n.maxBatchSize},function(){return n.maxBatchIntervalMs},r)}return e.prototype.trackAvailability=function(t){this.track(t,_a.TelemetryType.Availability)},e.prototype.trackPageView=function(t){this.track(t,_a.TelemetryType.PageView)},e.prototype.trackTrace=function(t){this.track(t,_a.TelemetryType.Trace)},e.prototype.trackMetric=function(t){this.track(t,_a.TelemetryType.Metric)},e.prototype.trackException=function(t){t&&t.exception&&!pT.isError(t.exception)&&(t.exception=new Error(t.exception.toString())),this.track(t,_a.TelemetryType.Exception)},e.prototype.trackEvent=function(t){this.track(t,_a.TelemetryType.Event)},e.prototype.trackRequest=function(t){this.track(t,_a.TelemetryType.Request)},e.prototype.trackDependency=function(t){if(t&&!t.target&&t.data)try{t.target=new FW.URL(t.data).host}catch(n){t.target=null,fv.warn(e.TAG,"The URL object is failed to create.",n)}this.track(t,_a.TelemetryType.Dependency)},e.prototype.flush=function(t){this.channel.triggerSend(t?!!t.isAppCrashing:!1,t?t.callback:void 0)},e.prototype.track=function(t,n){if(t&&_a.telemetryTypeToBaseType(n)){var r=WW.createEnvelope(t,n,this.commonProperties,this.context,this.config);t.time&&(r.time=t.time.toISOString()),this._enableAzureProperties&&dv.azureRoleEnvironmentTelemetryProcessor(r,this.context);var i=this.runTelemetryProcessors(r,t.contextObjects);i=i&&dv.samplingTelemetryProcessor(r,{correlationContext:oL.CorrelationContextManager.getCurrentContext()}),dv.preAggregatedMetricsTelemetryProcessor(r,this.context),i&&(dv.performanceMetricsTelemetryProcessor(r,this.quickPulseClient),this.channel.send(r))}else fv.warn(e.TAG,"track() requires telemetry object and telemetryType to be specified.")},e.prototype.setAutoPopulateAzureProperties=function(t){this._enableAzureProperties=t},e.prototype.getAuthorizationHandler=function(t){return t&&t.aadTokenCredential?(this.authorizationHandler||(fv.info(e.TAG,"Adding authorization handler"),this.authorizationHandler=new BW(t.aadTokenCredential)),this.authorizationHandler):null},e.prototype.addTelemetryProcessor=function(t){this._telemetryProcessors.push(t)},e.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},e.prototype.runTelemetryProcessors=function(t,n){var r=!0,i=this._telemetryProcessors.length;if(i===0)return r;n=n||{},n.correlationContext=oL.CorrelationContextManager.getCurrentContext();for(var a=0;a<i;++a)try{var s=this._telemetryProcessors[a];if(s&&s.apply(null,[t,n])===!1){r=!1;break}}catch(u){r=!0,fv.warn(e.TAG,"One of telemetry processors failed, telemetry item will be sent.",u,t)}return r&&(t&&t.tags&&(t.tags=pT.validateStringMap(t.tags)),t&&t.data&&t.data.baseData&&t.data.baseData.properties&&(t.data.baseData.properties=pT.validateStringMap(t.data.baseData.properties))),r},e.prototype.getStatsbeat=function(){return this._statsbeat},e.TAG="TelemetryClient",e}();cL.exports=$W});var dL=_((dT,pL)=>{"use strict";var YW=dT&&dT.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),XW=uL(),lL=Yy(),QW=Sc(),mv=Zt(),ZW=function(e){YW(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.trackNodeHttpRequestSync=function(n){n&&n.request&&n.response&&n.duration?lL.trackRequestSync(this,n):mv.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},t.prototype.trackNodeHttpRequest=function(n){(n.duration||n.error)&&mv.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),n&&n.request&&n.response?lL.trackRequest(this,n):mv.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},t.prototype.trackNodeHttpDependency=function(n){n&&n.request?QW.trackRequest(this,n):mv.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},t}(XW);pL.exports=ZW});var mL=_(fL=>{"use strict";Object.defineProperty(fL,"__esModule",{value:!0})});var yL=_($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.dispose=$.Configuration=$.wrapWithCorrelationContext=$.startOperation=$.getCorrelationContext=$.start=$.setup=$.liveMetricsClient=$.defaultClient=$.DistributedTracingModes=void 0;var hT=Va(),JW=GR(),e$=KR(),hL=gm(),t$=My(),n$=vw(),r$=Ow(),i$=Sc(),a$=Yy(),_L=Zs(),xl=Zt(),s$=Kw(),_T=Ww(),o$=Xw();$.TelemetryClient=dL();$.Contracts=or();$.azureFunctionsTypes=mL();var gL;(function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C"})(gL=$.DistributedTracingModes||($.DistributedTracingModes={}));var Nr=c$(),vv=Nr.isConsole(),hv=Nr.isConsoleLog(),_v=Nr.isExceptions(),gv=Nr.isPerformance(),bv=Nr.isPreAggregatedMetrics(),yv=Nr.isHeartBeat(),Ev=Nr.isRequests(),Tv=Nr.isDependencies(),fT=Nr.isDiskRetry(),Al=Nr.isCorrelating(),Sv,xv=Nr.isSendingLiveMetrics(),gT=Nr.isNativePerformance(),bT,vo=Nr.isSnippetInjection(),Av=Nr.isAzureFunctions();function c$(){return{isConsole:function(){return!0},isConsoleLog:function(){return!1},isExceptions:function(){return!0},isPerformance:function(){return!0},isPreAggregatedMetrics:function(){return!0},isHeartBeat:function(){return!1},isRequests:function(){return!0},isDependencies:function(){return!0},isDiskRetry:function(){return!0},isCorrelating:function(){return!0},isSendingLiveMetrics:function(){return!1},isNativePerformance:function(){return!0},isSnippetInjection:function(){return!1},isAzureFunctions:function(){return!1}}}var mT=void 0,vT=void 0,Sl=void 0,Il,Ol,Pl,Cl,Rl,Uc,Fc,ho,wl,Nl,Gr=!1,vL;function u$(e){return $.defaultClient?xl.info("The default client is already setup"):($.defaultClient=new $.TelemetryClient(e),l$(),Il=new JW($.defaultClient),Ol=new e$($.defaultClient),Pl=new hL($.defaultClient),Cl=new t$($.defaultClient),Rl=new n$($.defaultClient),Uc=new r$($.defaultClient),ho=new a$($.defaultClient),wl=new i$($.defaultClient),Fc||(Fc=new _T.AutoCollectNativePerformance($.defaultClient)),Nl=new o$.AzureFunctionsHook($.defaultClient)),$.defaultClient&&$.defaultClient.channel&&$.defaultClient.channel.setUseDiskRetryCaching(fT,mT,vT),yT}$.setup=u$;function bL(){return $.defaultClient?(Gr=!0,Il.enable(vv,hv),Ol.enable(_v),Pl.enable(gv),Cl.enable(bv),Rl.enable(yv),Fc.enable(gT,bT),ho.useAutoCorrelation(Al,Sv),ho.enable(Ev),wl.enable(Tv),Uc.enable(vo,Sl),$.liveMetricsClient&&xv&&$.liveMetricsClient.enable(xv),Nl.enable(Av)):xl.warn("Start cannot be called before setup"),yT}$.start=bL;function l$(){vv=$.defaultClient.config.enableAutoCollectExternalLoggers!==void 0?$.defaultClient.config.enableAutoCollectExternalLoggers:vv,hv=$.defaultClient.config.enableAutoCollectConsole!==void 0?$.defaultClient.config.enableAutoCollectConsole:hv,_v=$.defaultClient.config.enableAutoCollectExceptions!==void 0?$.defaultClient.config.enableAutoCollectExceptions:_v,gv=$.defaultClient.config.enableAutoCollectPerformance!==void 0?$.defaultClient.config.enableAutoCollectPerformance:gv,bv=$.defaultClient.config.enableAutoCollectPreAggregatedMetrics!==void 0?$.defaultClient.config.enableAutoCollectPreAggregatedMetrics:bv,yv=$.defaultClient.config.enableAutoCollectHeartbeat!==void 0?$.defaultClient.config.enableAutoCollectHeartbeat:yv,Ev=$.defaultClient.config.enableAutoCollectRequests!==void 0?$.defaultClient.config.enableAutoCollectRequests:Ev,Tv=$.defaultClient.config.enableAutoDependencyCorrelation!==void 0?$.defaultClient.config.enableAutoDependencyCorrelation:Tv,Al=$.defaultClient.config.enableAutoDependencyCorrelation!==void 0?$.defaultClient.config.enableAutoDependencyCorrelation:Al,Sv=$.defaultClient.config.enableUseAsyncHooks!==void 0?$.defaultClient.config.enableUseAsyncHooks:Sv,vo=$.defaultClient.config.enableWebInstrumentation!==void 0?$.defaultClient.config.enableWebInstrumentation:vo,vo=$.defaultClient.config.enableAutoWebSnippetInjection===!0?!0:vo,Av=$.defaultClient.config.enableAutoCollectIncomingRequestAzureFunctions!==void 0?$.defaultClient.config.enableAutoCollectIncomingRequestAzureFunctions:Av;var e=_T.AutoCollectNativePerformance.parseEnabled($.defaultClient.config.enableAutoCollectExtendedMetrics,$.defaultClient.config);gT=e.isEnabled,bT=e.disabledMetrics}function p$(){return Al?hT.CorrelationContextManager.getCurrentContext():null}$.getCorrelationContext=p$;function d$(e,t){return hT.CorrelationContextManager.startOperation(e,t)}$.startOperation=d$;function f$(e,t){return hT.CorrelationContextManager.wrapCallback(e,t)}$.wrapWithCorrelationContext=f$;var yT=function(){function e(){}return e.setDistributedTracingMode=function(t){return _L.w3cEnabled=t===gL.AI_AND_W3C,e},e.setAutoCollectConsole=function(t,n){return n===void 0&&(n=!1),vv=t,hv=n,Gr&&Il.enable(t,n),e},e.setAutoCollectExceptions=function(t){return _v=t,Gr&&Ol.enable(t),e},e.setAutoCollectPerformance=function(t,n){n===void 0&&(n=!0),gv=t;var r=_T.AutoCollectNativePerformance.parseEnabled(n,$.defaultClient.config);return gT=r.isEnabled,bT=r.disabledMetrics,Gr&&(Pl.enable(t),Fc.enable(r.isEnabled,r.disabledMetrics)),e},e.setAutoCollectPreAggregatedMetrics=function(t){return bv=t,Gr&&Cl.enable(t),e},e.setAutoCollectHeartbeat=function(t){return yv=t,Gr&&Rl.enable(t),e},e.enableAutoWebSnippetInjection=function(t,n){return vo=t,Sl=n,Gr&&Uc.enable(t,Sl),e},e.enableWebInstrumentation=function(t,n){return vo=t,Sl=n,Gr&&Uc.enable(t,Sl),e},e.setAutoCollectRequests=function(t){return Ev=t,Gr&&ho.enable(t),e},e.setAutoCollectDependencies=function(t){return Tv=t,Gr&&wl.enable(t),e},e.setAutoDependencyCorrelation=function(t,n){return Al=t,Sv=n,Gr&&ho.useAutoCorrelation(t,n),e},e.setUseDiskRetryCaching=function(t,n,r){return fT=t,mT=n,vT=r,$.defaultClient&&$.defaultClient.channel&&$.defaultClient.channel.setUseDiskRetryCaching(fT,mT,vT),e},e.setInternalLogging=function(t,n){return t===void 0&&(t=!1),n===void 0&&(n=!0),xl.enableDebug=t,xl.disableWarnings=!n,e},e.setAutoCollectIncomingRequestAzureFunctions=function(t){return Av=t,Gr&&Nl.enable(t),e},e.setSendLiveMetrics=function(t){return t===void 0&&(t=!1),$.defaultClient?(!$.liveMetricsClient&&t?($.liveMetricsClient=new s$($.defaultClient.config,$.defaultClient.context,$.defaultClient.getAuthorizationHandler),vL=new hL($.liveMetricsClient,1e3,!0),$.liveMetricsClient.addCollector(vL),$.defaultClient.quickPulseClient=$.liveMetricsClient):$.liveMetricsClient&&$.liveMetricsClient.enable(t),xv=t,e):(xl.warn("Live metrics client cannot be setup without the default client"),e)},e.start=bL,e}();$.Configuration=yT;function m$(){_L.w3cEnabled=!0,$.defaultClient=null,Gr=!1,Il&&Il.dispose(),Ol&&Ol.dispose(),Pl&&Pl.dispose(),Cl&&Cl.dispose(),Rl&&Rl.dispose(),Uc&&Uc.dispose(),Fc&&Fc.dispose(),ho&&ho.dispose(),wl&&wl.dispose(),$.liveMetricsClient&&($.liveMetricsClient.enable(!1),xv=!1,$.liveMetricsClient=void 0),Nl&&Nl.dispose()}$.dispose=m$});var v$=exports&&exports.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),h$=exports&&exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Iv=exports&&exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&v$(t,e,n);return h$(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0});var ET=Iv(require("os")),us=Iv(require("vscode")),_$=Iv(require("https")),g$=yx(),b$=Ex(),Dl=Tx(),y$=Rx(),E$=async(e,t)=>{let n;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let i=await Promise.resolve().then(()=>Iv(yL()));i.defaultClient?(n=new i.TelemetryClient(e),n.channel.setUseDiskRetryCaching(!0)):(i.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),n=i.defaultClient),us&&us.env&&(n.context.tags[n.context.keys.userId]=us.env.machineId,n.context.tags[n.context.keys.sessionId]=us.env.sessionId,n.context.tags[n.context.keys.cloudRole]=us.env.appName,n.context.tags[n.context.keys.cloudRoleInstance]=us.env.appName)}catch(i){return Promise.reject(`Failed to initialize app insights!
`+i.message)}return t?.length&&T$(n,t),{logEvent:(i,a)=>{try{n?.trackEvent({name:i,properties:a?.properties,measurements:a?.measurements})}catch(s){throw new Error(`Failed to log event to app insights!
`+s.message)}},flush:async()=>{try{n?.flush()}catch(i){throw new Error(`Failed to flush app insights!
`+i.message)}}}};function T$(e,t){e.addTelemetryProcessor(n=>(Array.isArray(n.tags)?n.tags.forEach(r=>Dl.TelemetryUtil.applyReplacements(r,t)):n.tags&&Dl.TelemetryUtil.applyReplacements(n.tags,t),n.data.baseData&&Dl.TelemetryUtil.applyReplacements(n.data.baseData,t),!0))}function S$(){return{sendPOST:(t,n)=>{let r={method:"POST",headers:{...t.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(t.data)}};try{let i=_$.request(t.urlString,r,a=>{a.on("data",function(s){n(a.statusCode??200,a.headers,s.toString())}),a.on("error",function(){n(0,{})})});i.write(t.data),i.end()}catch{n(0,{})}}}}var TT=class extends g$.BaseTelemetryReporter{constructor(t,n){let r=s=>E$(s,n);Dl.TelemetryUtil.shouldUseOneDataSystemSDK(t)&&(r=s=>(0,y$.oneDataSystemClientFactory)(s,us,S$()));let i={release:ET.release(),platform:ET.platform(),architecture:ET.arch()},a=new b$.BaseTelemetrySender(t,r);if(t&&t.indexOf("AIF-")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(a,us,{additionalCommonProperties:Dl.TelemetryUtil.getAdditionalCommonProperties(i)})}};exports.default=TT;
/*! Bundled license information:
@microsoft/applicationinsights-shims/dist/umd/applicationinsights-shims.js:
(*!
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*)
@microsoft/applicationinsights-core-js/dist/applicationinsights-core-js.js:
(*!
* Application Insights JavaScript SDK - Core, 2.8.10
* Copyright (c) Microsoft and contributors. All rights reserved.
*)
(*!
* Microsoft Dynamic Proto Utility, 1.1.7
* Copyright (c) Microsoft and contributors. All rights reserved.
*)
@microsoft/dynamicproto-js/lib/dist/node/dynamicproto-js.js:
(*!
* Microsoft Dynamic Proto Utility, 1.1.8
* Copyright (c) Microsoft and contributors. All rights reserved.
*)
@microsoft/1ds-core-js/dist/ms.core.js:
(*!
* 1DS JS SDK Core, 3.2.9
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*)
@microsoft/1ds-post-js/dist/ms.post.js:
(*!
* 1DS JS SDK POST plugin, 3.2.9
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*)
@microsoft/applicationinsights-web-snippet/dist/node/applicationinsights-web-snippet.js:
(*!
* Application Insights JavaScript SDK - Web Snippet, 1.0.1
* Copyright (c) Microsoft and contributors. All rights reserved.
*)
mime-db/index.js:
(*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*)
mime-types/index.js:
(*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
*/