@drenso/homey-log 3.0.0-beta.0 → 8.37.1-cjs
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/node-homey-log.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +15 -3
- package/build/index.d.ts +86 -0
- package/build/index.js +39 -0
- package/build/index.mjs +39 -0
- package/build.js +37 -0
- package/index.js +213 -2
- package/package.json +23 -25
- package/lib/Log.js +0 -236
- package/tsconfig.json +0 -10
- package/types/index.d.ts +0 -2
- package/types/lib/Log.d.ts +0 -98
package/build/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";var Foe=Object.create;var zp=Object.defineProperty;var koe=Object.getOwnPropertyDescriptor;var Woe=Object.getOwnPropertyNames;var Yoe=Object.getPrototypeOf,Koe=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(t&&(e=t(t=0)),e);var c=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),M1=(t,e)=>{for(var r in e)zp(t,r,{get:e[r],enumerable:!0})},L1=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Woe(e))!Koe.call(t,o)&&o!==r&&zp(t,o,{get:()=>e[o],enumerable:!(n=koe(e,o))||n.enumerable});return t};var MR=(t,e,r)=>(r=t!=null?Foe(Yoe(t)):{},L1(e||!t||!t.__esModule?zp(r,"default",{value:t,enumerable:!0}):r,t)),m=t=>L1(zp({},"__esModule",{value:!0}),t);var gr=c(ct=>{Object.defineProperty(ct,"__esModule",{value:!0});var D1=Object.prototype.toString;function Xoe(t){switch(D1.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Jp(t,Error)}}function na(t,e){return D1.call(t)===`[object ${e}]`}function Zoe(t){return na(t,"ErrorEvent")}function zoe(t){return na(t,"DOMError")}function Joe(t){return na(t,"DOMException")}function $oe(t){return na(t,"String")}function G1(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Qoe(t){return t===null||G1(t)||typeof t!="object"&&typeof t!="function"}function U1(t){return na(t,"Object")}function eie(t){return typeof Event<"u"&&Jp(t,Event)}function tie(t){return typeof Element<"u"&&Jp(t,Element)}function rie(t){return na(t,"RegExp")}function nie(t){return!!(t&&t.then&&typeof t.then=="function")}function oie(t){return U1(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Jp(t,e){try{return t instanceof e}catch{return!1}}function iie(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}ct.isDOMError=zoe;ct.isDOMException=Joe;ct.isElement=tie;ct.isError=Xoe;ct.isErrorEvent=Zoe;ct.isEvent=eie;ct.isInstanceOf=Jp;ct.isParameterizedString=G1;ct.isPlainObject=U1;ct.isPrimitive=Qoe;ct.isRegExp=rie;ct.isString=$oe;ct.isSyntheticEvent=oie;ct.isThenable=nie;ct.isVueViewModel=iie});var ll=c(ns=>{Object.defineProperty(ns,"__esModule",{value:!0});var $p=gr();function sie(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function aie(t,e){let r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);let o=Math.max(e-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),i<n&&(r+=" {snip}"),r}function uie(t,e){if(!Array.isArray(t))return"";let r=[];for(let n=0;n<t.length;n++){let o=t[n];try{$p.isVueViewModel(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}function x1(t,e,r=!1){return $p.isString(t)?$p.isRegExp(e)?e.test(t):$p.isString(e)?r?t===e:t.includes(e):!1:!1}function cie(t,e=[],r=!1){return e.some(n=>x1(t,n,r))}ns.isMatchingPattern=x1;ns.safeJoin=uie;ns.snipLine=aie;ns.stringMatchesSomePattern=cie;ns.truncate=sie});var B1=c(GR=>{Object.defineProperty(GR,"__esModule",{value:!0});var LR=gr(),lie=ll();function die(t,e,r=250,n,o,i,s){if(!i.exception||!i.exception.values||!s||!LR.isInstanceOf(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=pie(DR(t,e,o,s.originalException,n,i.exception.values,a,0),r))}function DR(t,e,r,n,o,i,s,a){if(i.length>=r+1)return i;let u=[...i];if(LR.isInstanceOf(n[o],Error)){w1(s,a);let l=t(e,n[o]),d=u.length;V1(l,o,d,a),u=DR(t,e,r,n[o],o,[l,...u],l,d)}return Array.isArray(n.errors)&&n.errors.forEach((l,d)=>{if(LR.isInstanceOf(l,Error)){w1(s,a);let p=t(e,l),_=u.length;V1(p,`errors[${d}]`,_,a),u=DR(t,e,r,l,o,[p,...u],p,_)}}),u}function w1(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function V1(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function pie(t,e){return t.map(r=>(r.value&&(r.value=lie.truncate(r.value,e)),r))}GR.applyAggregateErrorsToEvent=die});var q1=c(UR=>{Object.defineProperty(UR,"__esModule",{value:!0});function _ie(t){let e=[],r=n=>{n.forEach(o=>{Array.isArray(o)?r(o):e.push(o)})};return r(t),e}UR.flatten=_ie});var j1=c(xR=>{Object.defineProperty(xR,"__esModule",{value:!0});function fie(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}xR.getBreadcrumbLogLevelFromHttpStatusCode=fie});var VR=c(wR=>{Object.defineProperty(wR,"__esModule",{value:!0});var gie="8.37.1";wR.SDK_VERSION=gie});var Bt=c(Qp=>{Object.defineProperty(Qp,"__esModule",{value:!0});var H1=VR(),F1=globalThis;function Eie(t,e,r){let n=r||F1,o=n.__SENTRY__=n.__SENTRY__||{},i=o[H1.SDK_VERSION]=o[H1.SDK_VERSION]||{};return i[t]||(i[t]=e())}Qp.GLOBAL_OBJ=F1;Qp.getGlobalSingleton=Eie});var BR=c(ia=>{Object.defineProperty(ia,"__esModule",{value:!0});var hie=gr(),mie=Bt(),oa=mie.GLOBAL_OBJ,Tie=80;function Sie(t,e={}){if(!t)return"<unknown>";try{let r=t,n=5,o=[],i=0,s=0,a=" > ",u=a.length,l,d=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||Tie;for(;r&&i++<n&&(l=Aie(r,d),!(l==="html"||i>1&&s+o.length*u+l.length>=p));)o.push(l),s+=l.length,r=r.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function Aie(t,e){let r=t,n=[];if(!r||!r.tagName)return"";if(oa.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let o=e&&e.length?e.filter(s=>r.getAttribute(s)).map(s=>[s,r.getAttribute(s)]):null;if(o&&o.length)o.forEach(s=>{n.push(`[${s[0]}="${s[1]}"]`)});else{r.id&&n.push(`#${r.id}`);let s=r.className;if(s&&hie.isString(s)){let a=s.split(/\s+/);for(let u of a)n.push(`.${u}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=r.getAttribute(s);a&&n.push(`[${s}="${a}"]`)}return n.join("")}function Rie(){try{return oa.document.location.href}catch{return""}}function Oie(t){return oa.document&&oa.document.querySelector?oa.document.querySelector(t):null}function Iie(t){if(!oa.HTMLElement)return null;let e=t,r=5;for(let n=0;n<r;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}ia.getComponentName=Iie;ia.getDomElement=Oie;ia.getLocationHref=Rie;ia.htmlTreeAsString=Sie});var vo=c(qR=>{Object.defineProperty(qR,"__esModule",{value:!0});var bie=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;qR.DEBUG_BUILD=bie});var Hn=c(sa=>{Object.defineProperty(sa,"__esModule",{value:!0});var Pie=vo(),e_=Bt(),yie="Sentry Logger ",jR=["debug","info","warn","error","log","assert","trace"],HR={};function k1(t){if(!("console"in e_.GLOBAL_OBJ))return t();let e=e_.GLOBAL_OBJ.console,r={},n=Object.keys(HR);n.forEach(o=>{let i=HR[o];r[o]=e[o],e[o]=i});try{return t()}finally{n.forEach(o=>{e[o]=r[o]})}}function vie(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Pie.DEBUG_BUILD?jR.forEach(r=>{e[r]=(...n)=>{t&&k1(()=>{e_.GLOBAL_OBJ.console[r](`${yie}[${r}]:`,...n)})}}):jR.forEach(r=>{e[r]=()=>{}}),e}var Nie=e_.getGlobalSingleton("logger",vie);sa.CONSOLE_LEVELS=jR;sa.consoleSandbox=k1;sa.logger=Nie;sa.originalConsoleMethods=HR});var FR=c(pl=>{Object.defineProperty(pl,"__esModule",{value:!0});var Cie=vo(),dl=Hn(),Mie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Lie(t){return t==="http"||t==="https"}function Die(t,e=!1){let{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n&&`${n}/`}${s}`}function W1(t){let e=Mie.exec(t);if(!e){dl.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[r,n,o="",i="",s="",a=""]=e.slice(1),u="",l=a,d=l.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),l=d.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0])}return Y1({host:i,pass:o,path:u,projectId:l,port:s,protocol:r,publicKey:n})}function Y1(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Gie(t){if(!Cie.DEBUG_BUILD)return!0;let{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(dl.logger.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Lie(n)?e&&isNaN(parseInt(e,10))?(dl.logger.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(dl.logger.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(dl.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Uie(t){let e=typeof t=="string"?W1(t):Y1(t);if(!(!e||!Gie(e)))return e}pl.dsnFromString=W1;pl.dsnToString=Die;pl.makeDsn=Uie});var YR=c(WR=>{Object.defineProperty(WR,"__esModule",{value:!0});var kR=class extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};WR.SentryError=kR});var Fn=c(qr=>{Object.defineProperty(qr,"__esModule",{value:!0});var xie=BR(),wie=vo(),aa=gr(),Vie=Hn(),K1=ll();function Bie(t,e,r){if(!(e in t))return;let n=t[e],o=r(n);typeof o=="function"&&J1(o,n),t[e]=o}function z1(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{wie.DEBUG_BUILD&&Vie.logger.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function J1(t,e){try{let r=e.prototype||{};t.prototype=e.prototype=r,z1(t,"__sentry_original__",e)}catch{}}function qie(t){return t.__sentry_original__}function jie(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function $1(t){if(aa.isError(t))return{message:t.message,name:t.name,stack:t.stack,...Z1(t)};if(aa.isEvent(t)){let e={type:t.type,target:X1(t.target),currentTarget:X1(t.currentTarget),...Z1(t)};return typeof CustomEvent<"u"&&aa.isInstanceOf(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function X1(t){try{return aa.isElement(t)?xie.htmlTreeAsString(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Z1(t){if(typeof t=="object"&&t!==null){let e={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function Hie(t,e=40){let r=Object.keys($1(t));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=e)return K1.truncate(n,e);for(let o=r.length;o>0;o--){let i=r.slice(0,o).join(", ");if(!(i.length>e))return o===r.length?i:K1.truncate(i,e)}return""}function Fie(t){return KR(t,new Map)}function KR(t,e){if(kie(t)){let r=e.get(t);if(r!==void 0)return r;let n={};e.set(t,n);for(let o of Object.getOwnPropertyNames(t))typeof t[o]<"u"&&(n[o]=KR(t[o],e));return n}if(Array.isArray(t)){let r=e.get(t);if(r!==void 0)return r;let n=[];return e.set(t,n),t.forEach(o=>{n.push(KR(o,e))}),n}return t}function kie(t){if(!aa.isPlainObject(t))return!1;try{let e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}function Wie(t){let e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case aa.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}qr.addNonEnumerableProperty=z1;qr.convertToPlainObject=$1;qr.dropUndefinedKeys=Fie;qr.extractExceptionKeysForMessage=Hie;qr.fill=Bie;qr.getOriginalFunction=qie;qr.markFunctionWrapped=J1;qr.objectify=Wie;qr.urlEncode=jie});var ua=c(No=>{Object.defineProperty(No,"__esModule",{value:!0});var tU=50,rU="?",Q1=/\(error: (.*)\)/,eU=/captureMessage|captureException/;function nU(...t){let e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0,o=0)=>{let i=[],s=r.split(`
|
|
2
|
+
`);for(let a=n;a<s.length;a++){let u=s[a];if(u.length>1024)continue;let l=Q1.test(u)?u.replace(Q1,"$1"):u;if(!l.match(/\S*Error: /)){for(let d of e){let p=d(l);if(p){i.push(p);break}}if(i.length>=tU+o)break}}return oU(i.slice(o))}}function Yie(t){return Array.isArray(t)?nU(...t):t}function oU(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(t_(e).function||"")&&e.pop(),e.reverse(),eU.test(t_(e).function||"")&&(e.pop(),eU.test(t_(e).function||"")&&e.pop()),e.slice(0,tU).map(r=>({...r,filename:r.filename||t_(e).filename,function:r.function||rU}))}function t_(t){return t[t.length-1]||{}}var XR="<anonymous>";function Kie(t){try{return!t||typeof t!="function"?XR:t.name||XR}catch{return XR}}function Xie(t){let e=t.exception;if(e){let r=[];try{return e.values.forEach(n=>{n.stacktrace.frames&&r.push(...n.stacktrace.frames)}),r}catch{return}}}No.UNKNOWN_FUNCTION=rU;No.createStackParser=nU;No.getFramesFromEvent=Xie;No.getFunctionName=Kie;No.stackParserFromStackParserOptions=Yie;No.stripSentryFramesAndReverse=oU});var da=c(la=>{Object.defineProperty(la,"__esModule",{value:!0});var sU=vo(),aU=Hn(),Zie=ua(),ca={},iU={};function zie(t,e){ca[t]=ca[t]||[],ca[t].push(e)}function Jie(){Object.keys(ca).forEach(t=>{ca[t]=void 0})}function $ie(t,e){if(!iU[t]){iU[t]=!0;try{e()}catch(r){sU.DEBUG_BUILD&&aU.logger.error(`Error while instrumenting ${t}`,r)}}}function Qie(t,e){let r=t&&ca[t];if(r)for(let n of r)try{n(e)}catch(o){sU.DEBUG_BUILD&&aU.logger.error(`Error while triggering instrumentation handler.
|
|
3
|
+
Type: ${t}
|
|
4
|
+
Name: ${Zie.getFunctionName(n)}
|
|
5
|
+
Error:`,o)}}la.addHandler=zie;la.maybeInstrument=$ie;la.resetInstrumentationHandlers=Jie;la.triggerHandlers=Qie});var uU=c(JR=>{Object.defineProperty(JR,"__esModule",{value:!0});var ZR=Hn(),ese=Fn(),r_=Bt(),zR=da();function tse(t){let e="console";zR.addHandler(e,t),zR.maybeInstrument(e,rse)}function rse(){"console"in r_.GLOBAL_OBJ&&ZR.CONSOLE_LEVELS.forEach(function(t){t in r_.GLOBAL_OBJ.console&&ese.fill(r_.GLOBAL_OBJ.console,t,function(e){return ZR.originalConsoleMethods[t]=e,function(...r){let n={args:r,level:t};zR.triggerHandlers("console",n);let o=ZR.originalConsoleMethods[t];o&&o.apply(r_.GLOBAL_OBJ.console,r)}})})}JR.addConsoleInstrumentationHandler=tse});var eO=c(rn=>{Object.defineProperty(rn,"__esModule",{value:!0});var nse=vo(),ose=Hn(),ise=Bt(),n_=ise.GLOBAL_OBJ;function sse(){try{return new ErrorEvent(""),!0}catch{return!1}}function ase(){try{return new DOMError(""),!0}catch{return!1}}function use(){try{return new DOMException(""),!0}catch{return!1}}function QR(){if(!("fetch"in n_))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function $R(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function cse(){if(typeof EdgeRuntime=="string")return!0;if(!QR())return!1;if($R(n_.fetch))return!0;let t=!1,e=n_.document;if(e&&typeof e.createElement=="function")try{let r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=$R(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){nse.DEBUG_BUILD&&ose.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function lse(){return"ReportingObserver"in n_}function dse(){if(!QR())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}rn.isNativeFunction=$R;rn.supportsDOMError=ase;rn.supportsDOMException=use;rn.supportsErrorEvent=sse;rn.supportsFetch=QR;rn.supportsNativeFetch=cse;rn.supportsReferrerPolicy=dse;rn.supportsReportingObserver=lse});var o_=c(nn=>{Object.defineProperty(nn,"__esModule",{value:!0});var cU=Bt(),lU=1e3;function dU(){return Date.now()/lU}function pse(){let{performance:t}=cU.GLOBAL_OBJ;if(!t||!t.now)return dU;let e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/lU}var _se=pse();nn._browserPerformanceTimeOriginMode=void 0;var fse=(()=>{let{performance:t}=cU.GLOBAL_OBJ;if(!t||!t.now){nn._browserPerformanceTimeOriginMode="none";return}let e=3600*1e3,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o<e,s=t.timing&&t.timing.navigationStart,u=typeof s=="number"?Math.abs(s+r-n):e,l=u<e;return i||l?o<=u?(nn._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(nn._browserPerformanceTimeOriginMode="navigationStart",s):(nn._browserPerformanceTimeOriginMode="dateNow",n)})();nn.browserPerformanceTimeOrigin=fse;nn.dateTimestampInSeconds=dU;nn.timestampInSeconds=_se});var hU=c(_l=>{Object.defineProperty(_l,"__esModule",{value:!0});var gse=gr(),pU=Fn(),Ese=eO(),i_=o_(),_U=Bt(),Co=da();function hse(t,e){let r="fetch";Co.addHandler(r,t),Co.maybeInstrument(r,()=>gU(void 0,e))}function mse(t){let e="fetch-body-resolved";Co.addHandler(e,t),Co.maybeInstrument(e,()=>gU(Sse))}function gU(t,e=!1){e&&!Ese.supportsNativeFetch()||pU.fill(_U.GLOBAL_OBJ,"fetch",function(r){return function(...n){let{method:o,url:i}=EU(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:i_.timestampInSeconds()*1e3};t||Co.triggerHandlers("fetch",{...s});let a=new Error().stack;return r.apply(_U.GLOBAL_OBJ,n).then(async u=>(t?t(u):Co.triggerHandlers("fetch",{...s,endTimestamp:i_.timestampInSeconds()*1e3,response:u}),u),u=>{throw Co.triggerHandlers("fetch",{...s,endTimestamp:i_.timestampInSeconds()*1e3,error:u}),gse.isError(u)&&u.stack===void 0&&(u.stack=a,pU.addNonEnumerableProperty(u,"framesToPop",1)),u})}})}async function Tse(t,e){if(t&&t.body){let r=t.body,n=r.getReader(),o=setTimeout(()=>{r.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:a}=await n.read();clearTimeout(s),a&&(e(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,()=>{})}}function Sse(t){let e;try{e=t.clone()}catch{return}Tse(e,()=>{Co.triggerHandlers("fetch-body-resolved",{endTimestamp:i_.timestampInSeconds()*1e3,response:t})})}function tO(t,e){return!!t&&typeof t=="object"&&!!t[e]}function fU(t){return typeof t=="string"?t:t?tO(t,"url")?t.url:t.toString?t.toString():"":""}function EU(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[r,n]=t;return{url:fU(r),method:tO(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:fU(e),method:tO(e,"method")?String(e.method).toUpperCase():"GET"}}_l.addFetchEndInstrumentationHandler=mse;_l.addFetchInstrumentationHandler=hse;_l.parseFetchArgs=EU});var mU=c(oO=>{Object.defineProperty(oO,"__esModule",{value:!0});var rO=Bt(),nO=da(),s_=null;function Ase(t){let e="error";nO.addHandler(e,t),nO.maybeInstrument(e,Rse)}function Rse(){s_=rO.GLOBAL_OBJ.onerror,rO.GLOBAL_OBJ.onerror=function(t,e,r,n,o){let i={column:n,error:o,line:r,msg:t,url:e};return nO.triggerHandlers("error",i),s_&&!s_.__SENTRY_LOADER__?s_.apply(this,arguments):!1},rO.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}oO.addGlobalErrorInstrumentationHandler=Ase});var TU=c(aO=>{Object.defineProperty(aO,"__esModule",{value:!0});var iO=Bt(),sO=da(),a_=null;function Ose(t){let e="unhandledrejection";sO.addHandler(e,t),sO.maybeInstrument(e,Ise)}function Ise(){a_=iO.GLOBAL_OBJ.onunhandledrejection,iO.GLOBAL_OBJ.onunhandledrejection=function(t){let e=t;return sO.triggerHandlers("unhandledrejection",e),a_&&!a_.__SENTRY_LOADER__?a_.apply(this,arguments):!0},iO.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}aO.addGlobalUnhandledRejectionInstrumentationHandler=Ose});var uO=c(u_=>{Object.defineProperty(u_,"__esModule",{value:!0});function bse(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Pse(){return"npm"}u_.getSDKSource=Pse;u_.isBrowserBundle=bse});var cO=c((fl,l_)=>{Object.defineProperty(fl,"__esModule",{value:!0});var yse=uO();function vse(){return!yse.isBrowserBundle()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function c_(t,e){return t.require(e)}function Nse(t){let e;try{e=c_(l_,t)}catch{}if(!e)try{let{cwd:r}=c_(l_,"process");e=c_(l_,`${r()}/node_modules/${t}`)}catch{}return e}fl.dynamicRequire=c_;fl.isNodeEnv=vse;fl.loadModule=Nse});var AU=c(lO=>{Object.defineProperty(lO,"__esModule",{value:!0});var Cse=cO(),SU=Bt();function Mse(){return typeof window<"u"&&(!Cse.isNodeEnv()||Lse())}function Lse(){return SU.GLOBAL_OBJ.process!==void 0&&SU.GLOBAL_OBJ.process.type==="renderer"}lO.isBrowser=Mse});var pO=c(dO=>{Object.defineProperty(dO,"__esModule",{value:!0});function Dse(){let t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(o){if(t)return e.has(o)?!0:(e.add(o),!1);for(let i=0;i<e.length;i++)if(e[i]===o)return!0;return e.push(o),!1}function n(o){if(t)e.delete(o);else for(let i=0;i<e.length;i++)if(e[i]===o){e.splice(i,1);break}}return[r,n]}dO.memoBuilder=Dse});var gl=c(on=>{Object.defineProperty(on,"__esModule",{value:!0});var Gse=Fn(),_O=ll(),Use=Bt();function xse(){let t=Use.GLOBAL_OBJ,e=t.crypto||t.msCrypto,r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function RU(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function wse(t){let{message:e,event_id:r}=t;if(e)return e;let n=RU(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Vse(t,e,r){let n=t.exception=t.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=r||"Error")}function Bse(t,e){let r=RU(t);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...e},e&&"data"in e){let i={...o&&o.data,...e.data};r.mechanism.data=i}}var qse=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function fO(t){return parseInt(t||"",10)}function jse(t){let e=t.match(qse)||[],r=fO(e[1]),n=fO(e[2]),o=fO(e[3]);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:e[4]}}function Hse(t,e,r=5){if(e.lineno===void 0)return;let n=t.length,o=Math.max(Math.min(n-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(s=>_O.snipLine(s,0));let i=Math.min(n-1,o);e.context_line=_O.snipLine(t[i],e.colno||0),e.post_context=t.slice(Math.min(o+1,n),o+1+r).map(s=>_O.snipLine(s,0))}function Fse(t){if(t&&t.__sentry_captured__)return!0;try{Gse.addNonEnumerableProperty(t,"__sentry_captured__",!0)}catch{}return!1}function kse(t){return Array.isArray(t)?t:[t]}on.addContextToFrame=Hse;on.addExceptionMechanism=Bse;on.addExceptionTypeValue=Vse;on.arrayify=kse;on.checkOrSetAlreadyCaught=Fse;on.getEventDescription=wse;on.parseSemver=jse;on.uuid4=xse});var hl=c(El=>{Object.defineProperty(El,"__esModule",{value:!0});var OU=gr(),Wse=pO(),Yse=Fn(),Kse=ua();function IU(t,e=100,r=1/0){try{return gO("",t,e,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function bU(t,e=3,r=100*1024){let n=IU(t,e);return Jse(n)>r?bU(t,e-1,r):n}function gO(t,e,r=1/0,n=1/0,o=Wse.memoBuilder()){let[i,s]=o;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=Xse(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return a.replace("object ","");if(i(e))return"[Circular ~]";let l=e;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return gO("",f,u-1,n,o)}catch{}let d=Array.isArray(e)?[]:{},p=0,_=Yse.convertToPlainObject(e);for(let f in _){if(!Object.prototype.hasOwnProperty.call(_,f))continue;if(p>=n){d[f]="[MaxProperties ~]";break}let g=_[f];d[f]=gO(f,g,u-1,n,o),p++}return s(e),d}function Xse(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(OU.isVueViewModel(e))return"[VueViewModel]";if(OU.isSyntheticEvent(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Kse.getFunctionName(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let r=Zse(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Zse(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function zse(t){return~-encodeURI(t).split(/%..|./).length}function Jse(t){return zse(JSON.stringify(t))}function $se(t,e){let r=e.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=t;try{n=decodeURI(t)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}El.normalize=IU;El.normalizeToSize=bU;El.normalizeUrlToBase=$se});var MU=c(kn=>{Object.defineProperty(kn,"__esModule",{value:!0});function yU(t,e){let r=0;for(let n=t.length-1;n>=0;n--){let o=t[n];o==="."?t.splice(n,1):o===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var Qse=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function vU(t){let e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,r=Qse.exec(e);return r?r.slice(1):[]}function EO(...t){let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let o=n>=0?t[n]:"/";o&&(e=`${o}/${e}`,r=o.charAt(0)==="/")}return e=yU(e.split("/").filter(n=>!!n),!r).join("/"),(r?"/":"")+e||"."}function PU(t){let e=0;for(;e<t.length&&t[e]==="";e++);let r=t.length-1;for(;r>=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function eae(t,e){t=EO(t).slice(1),e=EO(e).slice(1);let r=PU(t.split("/")),n=PU(e.split("/")),o=Math.min(r.length,n.length),i=o;for(let a=0;a<o;a++)if(r[a]!==n[a]){i=a;break}let s=[];for(let a=i;a<r.length;a++)s.push("..");return s=s.concat(n.slice(i)),s.join("/")}function NU(t){let e=CU(t),r=t.slice(-1)==="/",n=yU(t.split("/").filter(o=>!!o),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}function CU(t){return t.charAt(0)==="/"}function tae(...t){return NU(t.join("/"))}function rae(t){let e=vU(t),r=e[0]||"",n=e[1];return!r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}function nae(t,e){let r=vU(t)[2]||"";return e&&r.slice(e.length*-1)===e&&(r=r.slice(0,r.length-e.length)),r}kn.basename=nae;kn.dirname=rae;kn.isAbsolute=CU;kn.join=tae;kn.normalizePath=NU;kn.relative=eae;kn.resolve=EO});var hO=c(Tl=>{Object.defineProperty(Tl,"__esModule",{value:!0});var oae=gr(),Wn;(function(t){t[t.PENDING=0]="PENDING";let r=1;t[t.RESOLVED=r]="RESOLVED";let n=2;t[t.REJECTED=n]="REJECTED"})(Wn||(Wn={}));function iae(t){return new ml(e=>{e(t)})}function sae(t){return new ml((e,r)=>{r(t)})}var ml=class t{constructor(e){t.prototype.__init.call(this),t.prototype.__init2.call(this),t.prototype.__init3.call(this),t.prototype.__init4.call(this),this._state=Wn.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new t((n,o)=>{this._handlers.push([!1,i=>{if(!e)n(i);else try{n(e(i))}catch(s){o(s)}},i=>{if(!r)o(i);else try{n(r(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new t((r,n)=>{let o,i;return this.then(s=>{i=!1,o=s,e&&e()},s=>{i=!0,o=s,e&&e()}).then(()=>{if(i){n(o);return}r(o)})})}__init(){this._resolve=e=>{this._setResult(Wn.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Wn.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===Wn.PENDING){if(oae.isThenable(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Wn.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===Wn.RESOLVED&&r[1](this._value),this._state===Wn.REJECTED&&r[2](this._value),r[0]=!0)})}}};Tl.SyncPromise=ml;Tl.rejectedSyncPromise=sae;Tl.resolvedSyncPromise=iae});var LU=c(TO=>{Object.defineProperty(TO,"__esModule",{value:!0});var aae=YR(),mO=hO();function uae(t){let e=[];function r(){return t===void 0||e.length<t}function n(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!r())return mO.rejectedSyncPromise(new aae.SentryError("Not adding Promise because buffer limit was reached."));let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>n(a)).then(null,()=>n(a).then(null,()=>{})),a}function i(s){return new mO.SyncPromise((a,u)=>{let l=e.length;if(!l)return a(!0);let d=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(p=>{mO.resolvedSyncPromise(p).then(()=>{--l||(clearTimeout(d),a(!0))},u)})})}return{$:e,add:o,drain:i}}TO.makePromiseBuffer=uae});var DU=c(SO=>{Object.defineProperty(SO,"__esModule",{value:!0});function cae(t){let e={},r=0;for(;r<t.length;){let n=t.indexOf("=",r);if(n===-1)break;let o=t.indexOf(";",r);if(o===-1)o=t.length;else if(o<n){r=t.lastIndexOf(";",n-1)+1;continue}let i=t.slice(r,n).trim();if(e[i]===void 0){let s=t.slice(n+1,o).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1));try{e[i]=s.indexOf("%")!==-1?decodeURIComponent(s):s}catch{e[i]=s}}r=o+1}return e}SO.parseCookie=cae});var AO=c(pa=>{Object.defineProperty(pa,"__esModule",{value:!0});function lae(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}function dae(t){return t.split(/[?#]/,1)[0]}function pae(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}function _ae(t){let{protocol:e,host:r,path:n}=t,o=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${e?`${e}://`:""}${o}${n}`}pa.getNumberOfUrlSegments=pae;pa.getSanitizedUrlString=_ae;pa.parseUrl=lae;pa.stripUrlQueryAndFragment=dae});var UU=c(d_=>{Object.defineProperty(d_,"__esModule",{value:!0});var GU=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function fae(t){return GU.map(o=>{let i=t[o],s=Array.isArray(i)?i.join(";"):i;return o==="Forwarded"?gae(s):s&&s.split(",").map(a=>a.trim())}).reduce((o,i)=>i?o.concat(i):o,[]).find(o=>o!==null&&Eae(o))||null}function gae(t){if(!t)return null;for(let e of t.split(";"))if(e.startsWith("for="))return e.slice(4);return null}function Eae(t){return/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t)}d_.getClientIPAddress=fae;d_.ipHeaderNames=GU});var HU=c(Mo=>{Object.defineProperty(Mo,"__esModule",{value:!0});var hae=DU(),mae=vo(),xU=gr(),Tae=Hn(),Sae=hl(),Aae=AO(),wU=UU(),Rae={ip:!1,request:!0,transaction:!0,user:!0},VU=["cookies","data","headers","method","query_string","url"],BU=["id","username","email"];function RO(t,e={}){let r=t.method&&t.method.toUpperCase(),n="",o="url";e.customRoute||t.route?(n=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,o="route"):(t.originalUrl||t.url)&&(n=Aae.stripUrlQueryAndFragment(t.originalUrl||t.url||""));let i="";return e.method&&r&&(i+=r),e.method&&e.path&&(i+=" "),e.path&&n&&(i+=n),[i,o]}function Oae(t,e){switch(e){case"path":return RO(t,{path:!0})[0];case"handler":return t.route&&t.route.stack&&t.route.stack[0]&&t.route.stack[0].name||"<anonymous>";case"methodPath":default:{let r=t._reconstructedRoute?t._reconstructedRoute:void 0;return RO(t,{path:!0,method:!0,customRoute:r})[0]}}}function Iae(t,e){let r={};return(Array.isArray(e)?e:BU).forEach(o=>{t&&o in t&&(r[o]=t[o])}),r}function qU(t,e={}){let{include:r=VU}=e,n={},o=t.headers||{},i=t.method,s=o.host||t.hostname||t.host||"<no host>",a=t.protocol==="https"||t.socket&&t.socket.encrypted?"https":"http",u=t.originalUrl||t.url||"",l=u.startsWith(a)?u:`${a}://${s}${u}`;return r.forEach(d=>{switch(d){case"headers":{n.headers=o,r.includes("cookies")||delete n.headers.cookie,r.includes("ip")||wU.ipHeaderNames.forEach(p=>{delete n.headers[p]});break}case"method":{n.method=i;break}case"url":{n.url=l;break}case"cookies":{n.cookies=t.cookies||o.cookie&&hae.parseCookie(o.cookie)||{};break}case"query_string":{n.query_string=Pae(t);break}case"data":{if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(n.data=xU.isString(t.body)?t.body:JSON.stringify(Sae.normalize(t.body)));break}default:({}).hasOwnProperty.call(t,d)&&(n[d]=t[d])}}),n}function bae(t,e,r){let n={...Rae,...r&&r.include};if(n.request){let o=Array.isArray(n.request)?[...n.request]:[...VU];n.ip&&o.push("ip");let i=qU(e,{include:o});t.request={...t.request,...i}}if(n.user){let o=e.user&&xU.isPlainObject(e.user)?Iae(e.user,n.user):{};Object.keys(o).length&&(t.user={...t.user,...o})}if(n.ip){let o=e.headers&&wU.getClientIPAddress(e.headers)||e.ip||e.socket&&e.socket.remoteAddress;o&&(t.user={...t.user,ip_address:o})}return n.transaction&&!t.transaction&&t.type==="transaction"&&(t.transaction=Oae(e,n.transaction)),t}function Pae(t){let e=t.originalUrl||t.url||"";if(e){e.startsWith("/")&&(e=`http://dogs.are.great${e}`);try{let r=t.query||new URL(e).search.slice(1);return r.length?r:void 0}catch{return}}}function jU(t){let e={};try{t.forEach((r,n)=>{typeof r=="string"&&(e[n]=r)})}catch{mae.DEBUG_BUILD&&Tae.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return e}function yae(t){let e=jU(t.headers);return{method:t.method,url:t.url,headers:e}}Mo.DEFAULT_USER_INCLUDES=BU;Mo.addRequestDataToEvent=bae;Mo.extractPathForTransaction=RO;Mo.extractRequestData=qU;Mo.winterCGHeadersToDict=jU;Mo.winterCGRequestToRequestData=yae});var kU=c(p_=>{Object.defineProperty(p_,"__esModule",{value:!0});var FU=["fatal","error","warning","log","info","debug"];function vae(t){return t==="warn"?"warning":FU.includes(t)?t:"log"}p_.severityLevelFromString=vae;p_.validSeverityLevels=FU});var OO=c(Sl=>{Object.defineProperty(Sl,"__esModule",{value:!0});var Nae=ua();function YU(t,e=!1){return!(e||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&t!==void 0&&!t.includes("node_modules/")}function KU(t){let e=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let o=n.match(r);if(o){let i,s,a,u,l;if(o[1]){a=o[1];let _=a.lastIndexOf(".");if(a[_-1]==="."&&_--,_>0){i=a.slice(0,_),s=a.slice(_+1);let f=i.indexOf(".Module");f>0&&(a=a.slice(f+1),i=i.slice(0,f))}u=void 0}s&&(u=i,l=s),s==="<anonymous>"&&(l=void 0,a=void 0),a===void 0&&(l=l||Nae.UNKNOWN_FUNCTION,a=u?`${u}.${l}`:l);let d=o[2]&&o[2].startsWith("file://")?o[2].slice(7):o[2],p=o[5]==="native";return d&&d.match(/\/[A-Z]:/)&&(d=d.slice(1)),!d&&o[5]&&!p&&(d=o[5]),{filename:d,module:t?t(d):void 0,function:a,lineno:WU(o[3]),colno:WU(o[4]),in_app:YU(d||"",p)}}if(n.match(e))return{filename:n}}}function Cae(t){return[90,KU(t)]}function WU(t){return parseInt(t||"",10)||void 0}Sl.filenameIsInApp=YU;Sl.node=KU;Sl.nodeStackLineParser=Cae});var bO=c(Yn=>{Object.defineProperty(Yn,"__esModule",{value:!0});var Mae=vo(),Lae=gr(),Dae=Hn(),Gae="baggage",IO="sentry-",ZU=/^sentry-/,zU=8192;function Uae(t){let e=JU(t);if(!e)return;let r=Object.entries(e).reduce((n,[o,i])=>{if(o.match(ZU)){let s=o.slice(IO.length);n[s]=i}return n},{});if(Object.keys(r).length>0)return r}function xae(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,o])=>(o&&(r[`${IO}${n}`]=o),r),{});return wae(e)}function JU(t){if(!(!t||!Lae.isString(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{let n=XU(r);return Object.entries(n).forEach(([o,i])=>{e[o]=i}),e},{}):XU(t)}function XU(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}function wae(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],o)=>{let i=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=o===0?i:`${e},${i}`;return s.length>zU?(Mae.DEBUG_BUILD&&Dae.logger.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}Yn.BAGGAGE_HEADER_NAME=Gae;Yn.MAX_BAGGAGE_STRING_LENGTH=zU;Yn.SENTRY_BAGGAGE_KEY_PREFIX=IO;Yn.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=ZU;Yn.baggageHeaderToDynamicSamplingContext=Uae;Yn.dynamicSamplingContextToSentryBaggageHeader=xae;Yn.parseBaggageHeader=JU});var ex=c(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});var Vae=bO(),os=gl(),$U=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function QU(t){if(!t)return;let e=t.match($U);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function Bae(t,e){let r=QU(t),n=Vae.baggageHeaderToDynamicSamplingContext(e),{traceId:o,parentSpanId:i,parentSampled:s}=r||{};return r?{traceId:o||os.uuid4(),parentSpanId:i||os.uuid4().substring(16),spanId:os.uuid4().substring(16),sampled:s,dsc:n||{}}:{traceId:o||os.uuid4(),spanId:os.uuid4().substring(16)}}function qae(t=os.uuid4(),e=os.uuid4().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}_a.TRACEPARENT_REGEXP=$U;_a.extractTraceparentData=QU;_a.generateSentryTraceHeader=qae;_a.propagationContextFromHeaders=Bae});var PO=c(ar=>{Object.defineProperty(ar,"__esModule",{value:!0});var jae=FR(),Hae=hl(),tx=Fn(),fa=Bt();function Fae(t,e=[]){return[t,e]}function kae(t,e){let[r,n]=t;return[r,[...n,e]]}function rx(t,e){let r=t[1];for(let n of r){let o=n[0].type;if(e(n,o))return!0}return!1}function Wae(t,e){return rx(t,(r,n)=>e.includes(n))}function __(t){return fa.GLOBAL_OBJ.__SENTRY__&&fa.GLOBAL_OBJ.__SENTRY__.encodePolyfill?fa.GLOBAL_OBJ.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function Yae(t){return fa.GLOBAL_OBJ.__SENTRY__&&fa.GLOBAL_OBJ.__SENTRY__.decodePolyfill?fa.GLOBAL_OBJ.__SENTRY__.decodePolyfill(t):new TextDecoder().decode(t)}function Kae(t){let[e,r]=t,n=JSON.stringify(e);function o(i){typeof n=="string"?n=typeof i=="string"?n+i:[__(n),i]:n.push(typeof i=="string"?__(i):i)}for(let i of r){let[s,a]=i;if(o(`
|
|
6
|
+
${JSON.stringify(s)}
|
|
7
|
+
`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let u;try{u=JSON.stringify(a)}catch{u=JSON.stringify(Hae.normalize(a))}o(u)}}return typeof n=="string"?n:Xae(n)}function Xae(t){let e=t.reduce((o,i)=>o+i.length,0),r=new Uint8Array(e),n=0;for(let o of t)r.set(o,n),n+=o.length;return r}function Zae(t){let e=typeof t=="string"?__(t):t;function r(s){let a=e.subarray(0,s);return e=e.subarray(s+1),a}function n(){let s=e.indexOf(10);return s<0&&(s=e.length),JSON.parse(Yae(r(s)))}let o=n(),i=[];for(;e.length;){let s=n(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?r(a):n()])}return[o,i]}function zae(t){return[{type:"span"},t]}function Jae(t){let e=typeof t.data=="string"?__(t.data):t.data;return[tx.dropUndefinedKeys({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}var $ae={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Qae(t){return $ae[t]}function eue(t){if(!t||!t.sdk)return;let{name:e,version:r}=t.sdk;return{name:e,version:r}}function tue(t,e,r,n){let o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:jae.dsnToString(n)},...o&&{trace:tx.dropUndefinedKeys({...o})}}}ar.addItemToEnvelope=kae;ar.createAttachmentEnvelopeItem=Jae;ar.createEnvelope=Fae;ar.createEventEnvelopeHeaders=tue;ar.createSpanEnvelopeItem=zae;ar.envelopeContainsItemType=Wae;ar.envelopeItemTypeToDataCategory=Qae;ar.forEachEnvelopeItem=rx;ar.getSdkMetadataForEnvelopeHeader=eue;ar.parseEnvelope=Zae;ar.serializeEnvelope=Kae});var nx=c(yO=>{Object.defineProperty(yO,"__esModule",{value:!0});var rue=PO(),nue=o_();function oue(t,e,r){let n=[{type:"client_report"},{timestamp:r||nue.dateTimestampInSeconds(),discarded_events:t}];return rue.createEnvelope(e?{dsn:e}:{},[n])}yO.createClientReportEnvelope=oue});var ax=c(is=>{Object.defineProperty(is,"__esModule",{value:!0});var ox=60*1e3;function ix(t,e=Date.now()){let r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${t}`);return isNaN(n)?ox:n-e}function sx(t,e){return t[e]||t.all||0}function iue(t,e,r=Date.now()){return sx(t,e)>r}function sue(t,{statusCode:e,headers:r},n=Date.now()){let o={...t},i=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(i)for(let a of i.trim().split(",")){let[u,l,,,d]=a.split(":",5),p=parseInt(u,10),_=(isNaN(p)?60:p)*1e3;if(!l)o.all=n+_;else for(let f of l.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[f]=n+_):o[f]=n+_}else s?o.all=n+ix(s,n):e===429&&(o.all=n+60*1e3);return o}is.DEFAULT_RETRY_AFTER=ox;is.disabledUntil=sx;is.isRateLimited=iue;is.parseRetryAfterHeader=ix;is.updateRateLimits=sue});var ux=c(vO=>{Object.defineProperty(vO,"__esModule",{value:!0});function aue(t){let e=[],r={};return{add(n,o){for(;e.length>=t;){let i=e.shift();i!==void 0&&delete r[i]}r[n]&&this.delete(n),e.push(n),r[n]=o},clear(){r={},e=[]},get(n){return r[n]},size(){return e.length},delete(n){if(!r[n])return!1;delete r[n];for(let o=0;o<e.length;o++)if(e[o]===n){e.splice(o,1);break}return!0}}}vO.makeFifoCache=aue});var dx=c(ga=>{Object.defineProperty(ga,"__esModule",{value:!0});var f_=gr(),cx=gl(),uue=hl(),cue=Fn();function NO(t,e){return t(e.stack||"",1)}function lx(t,e){let r={type:e.name||e.constructor.name,value:e.message},n=NO(t,e);return n.length&&(r.stacktrace={frames:n}),r}function lue(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];if(r instanceof Error)return r}}function due(t){if("name"in t&&typeof t.name=="string"){let n=`'${t.name}' captured as exception`;return"message"in t&&typeof t.message=="string"&&(n+=` with message '${t.message}'`),n}else if("message"in t&&typeof t.message=="string")return t.message;let e=cue.extractExceptionKeysForMessage(t);if(f_.isErrorEvent(t))return`Event \`ErrorEvent\` captured as exception with message \`${t.message}\``;let r=pue(t);return`${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${e}`}function pue(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function _ue(t,e,r,n){if(f_.isError(r))return[r,void 0];if(e.synthetic=!0,f_.isPlainObject(r)){let i=t&&t.getOptions().normalizeDepth,s={__serialized__:uue.normalizeToSize(r,i)},a=lue(r);if(a)return[a,s];let u=due(r),l=n&&n.syntheticException||new Error(u);return l.message=u,[l,s]}let o=n&&n.syntheticException||new Error(r);return o.message=`${r}`,[o,void 0]}function fue(t,e,r,n){let i=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},[s,a]=_ue(t,i,r,n),u={exception:{values:[lx(e,s)]}};return a&&(u.extra=a),cx.addExceptionTypeValue(u,void 0,void 0),cx.addExceptionMechanism(u,i),{...u,event_id:n&&n.event_id}}function gue(t,e,r="info",n,o){let i={event_id:n&&n.event_id,level:r};if(o&&n&&n.syntheticException){let s=NO(t,n.syntheticException);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}if(f_.isParameterizedString(e)){let{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}ga.eventFromMessage=gue;ga.eventFromUnknownInput=fue;ga.exceptionFromError=lx;ga.parseStackFrames=NO});var px=c(g_=>{Object.defineProperty(g_,"__esModule",{value:!0});var Eue=OO(),hue=Fn(),mue=ua();function Tue(t,e,r,n){let o=t(),i=!1,s=!0;return setInterval(()=>{let a=o.getTimeMs();i===!1&&a>e+r&&(i=!0,s&&n()),a<e+r&&(i=!1)},20),{poll:()=>{o.reset()},enabled:a=>{s=a}}}function Sue(t,e,r){let n=e?e.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,i=t.location.lineNumber?t.location.lineNumber+1:void 0;return hue.dropUndefinedKeys({filename:n,module:r(n),function:t.functionName||mue.UNKNOWN_FUNCTION,colno:o,lineno:i,in_app:n?Eue.filenameIsInApp(n):void 0})}g_.callFrameToStackFrame=Sue;g_.watchdogTimer=Tue});var _x=c(MO=>{Object.defineProperty(MO,"__esModule",{value:!0});var CO=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let r=this._cache.get(e);if(r!==void 0)return this._cache.delete(e),this._cache.set(e,r),r}set(e,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,r)}remove(e){let r=this._cache.get(e);return r&&this._cache.delete(e),r}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(r=>e.push(r)),e}};MO.LRUMap=CO});var DO=c(LO=>{Object.defineProperty(LO,"__esModule",{value:!0});function Aue(t,e){return t??e()}LO._nullishCoalesce=Aue});var fx=c(GO=>{Object.defineProperty(GO,"__esModule",{value:!0});var Rue=DO();async function Oue(t,e){return Rue._nullishCoalesce(t,e)}GO._asyncNullishCoalesce=Oue});var xO=c(UO=>{Object.defineProperty(UO,"__esModule",{value:!0});async function Iue(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=await i(r)):(o==="call"||o==="optionalCall")&&(r=await i((...s)=>r.call(e,...s)),e=void 0)}return r}UO._asyncOptionalChain=Iue});var gx=c(wO=>{Object.defineProperty(wO,"__esModule",{value:!0});var bue=xO();async function Pue(t){let e=await bue._asyncOptionalChain(t);return e??!0}wO._asyncOptionalChainDelete=Pue});var BO=c(VO=>{Object.defineProperty(VO,"__esModule",{value:!0});function yue(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}VO._optionalChain=yue});var Ex=c(qO=>{Object.defineProperty(qO,"__esModule",{value:!0});var vue=BO();function Nue(t){let e=vue._optionalChain(t);return e??!0}qO._optionalChainDelete=Nue});var mx=c(jO=>{Object.defineProperty(jO,"__esModule",{value:!0});var hx=gl();function Cue(){return{traceId:hx.uuid4(),spanId:hx.uuid4().substring(16)}}jO.generatePropagationContext=Cue});var Tx=c(HO=>{Object.defineProperty(HO,"__esModule",{value:!0});var Mue=Bt();function Lue(t){let e=Mue.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=e&&e.get&&e.get()?e.get():{};r&&r.waitUntil&&r.waitUntil(t)}HO.vercelWaitUntil=Lue});var Sx=c(FO=>{Object.defineProperty(FO,"__esModule",{value:!0});function Due(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}FO.escapeStringForRegex=Due});var Ax=c(kO=>{Object.defineProperty(kO,"__esModule",{value:!0});var Gue=Bt(),E_=Gue.GLOBAL_OBJ;function Uue(){let t=E_.chrome,e=t&&t.app&&t.app.runtime,r="history"in E_&&!!E_.history.pushState&&!!E_.history.replaceState;return!e&&r}kO.supportsHistory=Uue});var I=c(h=>{Object.defineProperty(h,"__esModule",{value:!0});var xue=B1(),wue=q1(),Vue=j1(),h_=BR(),WO=FR(),Bue=YR(),Rx=Bt(),que=uU(),Ox=hU(),jue=mU(),Hue=TU(),m_=da(),qt=gr(),Fue=AU(),T_=Hn(),kue=pO(),Lo=gl(),YO=cO(),KO=hl(),Kn=Fn(),ss=MU(),Wue=LU(),Ea=HU(),Ix=kU(),ha=ua(),XO=OO(),Al=ll(),Do=eO(),ZO=hO(),S_=o_(),A_=ex(),bx=uO(),jr=PO(),Yue=nx(),Rl=ax(),as=bO(),R_=AO(),Kue=ux(),O_=dx(),Px=px(),Xue=_x(),Zue=fx(),zue=xO(),Jue=gx(),$ue=DO(),Que=BO(),ece=Ex(),tce=mx(),rce=Tx(),nce=VR(),oce=Sx(),ice=Ax();h.applyAggregateErrorsToEvent=xue.applyAggregateErrorsToEvent;h.flatten=wue.flatten;h.getBreadcrumbLogLevelFromHttpStatusCode=Vue.getBreadcrumbLogLevelFromHttpStatusCode;h.getComponentName=h_.getComponentName;h.getDomElement=h_.getDomElement;h.getLocationHref=h_.getLocationHref;h.htmlTreeAsString=h_.htmlTreeAsString;h.dsnFromString=WO.dsnFromString;h.dsnToString=WO.dsnToString;h.makeDsn=WO.makeDsn;h.SentryError=Bue.SentryError;h.GLOBAL_OBJ=Rx.GLOBAL_OBJ;h.getGlobalSingleton=Rx.getGlobalSingleton;h.addConsoleInstrumentationHandler=que.addConsoleInstrumentationHandler;h.addFetchEndInstrumentationHandler=Ox.addFetchEndInstrumentationHandler;h.addFetchInstrumentationHandler=Ox.addFetchInstrumentationHandler;h.addGlobalErrorInstrumentationHandler=jue.addGlobalErrorInstrumentationHandler;h.addGlobalUnhandledRejectionInstrumentationHandler=Hue.addGlobalUnhandledRejectionInstrumentationHandler;h.addHandler=m_.addHandler;h.maybeInstrument=m_.maybeInstrument;h.resetInstrumentationHandlers=m_.resetInstrumentationHandlers;h.triggerHandlers=m_.triggerHandlers;h.isDOMError=qt.isDOMError;h.isDOMException=qt.isDOMException;h.isElement=qt.isElement;h.isError=qt.isError;h.isErrorEvent=qt.isErrorEvent;h.isEvent=qt.isEvent;h.isInstanceOf=qt.isInstanceOf;h.isParameterizedString=qt.isParameterizedString;h.isPlainObject=qt.isPlainObject;h.isPrimitive=qt.isPrimitive;h.isRegExp=qt.isRegExp;h.isString=qt.isString;h.isSyntheticEvent=qt.isSyntheticEvent;h.isThenable=qt.isThenable;h.isVueViewModel=qt.isVueViewModel;h.isBrowser=Fue.isBrowser;h.CONSOLE_LEVELS=T_.CONSOLE_LEVELS;h.consoleSandbox=T_.consoleSandbox;h.logger=T_.logger;h.originalConsoleMethods=T_.originalConsoleMethods;h.memoBuilder=kue.memoBuilder;h.addContextToFrame=Lo.addContextToFrame;h.addExceptionMechanism=Lo.addExceptionMechanism;h.addExceptionTypeValue=Lo.addExceptionTypeValue;h.arrayify=Lo.arrayify;h.checkOrSetAlreadyCaught=Lo.checkOrSetAlreadyCaught;h.getEventDescription=Lo.getEventDescription;h.parseSemver=Lo.parseSemver;h.uuid4=Lo.uuid4;h.dynamicRequire=YO.dynamicRequire;h.isNodeEnv=YO.isNodeEnv;h.loadModule=YO.loadModule;h.normalize=KO.normalize;h.normalizeToSize=KO.normalizeToSize;h.normalizeUrlToBase=KO.normalizeUrlToBase;h.addNonEnumerableProperty=Kn.addNonEnumerableProperty;h.convertToPlainObject=Kn.convertToPlainObject;h.dropUndefinedKeys=Kn.dropUndefinedKeys;h.extractExceptionKeysForMessage=Kn.extractExceptionKeysForMessage;h.fill=Kn.fill;h.getOriginalFunction=Kn.getOriginalFunction;h.markFunctionWrapped=Kn.markFunctionWrapped;h.objectify=Kn.objectify;h.urlEncode=Kn.urlEncode;h.basename=ss.basename;h.dirname=ss.dirname;h.isAbsolute=ss.isAbsolute;h.join=ss.join;h.normalizePath=ss.normalizePath;h.relative=ss.relative;h.resolve=ss.resolve;h.makePromiseBuffer=Wue.makePromiseBuffer;h.DEFAULT_USER_INCLUDES=Ea.DEFAULT_USER_INCLUDES;h.addRequestDataToEvent=Ea.addRequestDataToEvent;h.extractPathForTransaction=Ea.extractPathForTransaction;h.extractRequestData=Ea.extractRequestData;h.winterCGHeadersToDict=Ea.winterCGHeadersToDict;h.winterCGRequestToRequestData=Ea.winterCGRequestToRequestData;h.severityLevelFromString=Ix.severityLevelFromString;h.validSeverityLevels=Ix.validSeverityLevels;h.UNKNOWN_FUNCTION=ha.UNKNOWN_FUNCTION;h.createStackParser=ha.createStackParser;h.getFramesFromEvent=ha.getFramesFromEvent;h.getFunctionName=ha.getFunctionName;h.stackParserFromStackParserOptions=ha.stackParserFromStackParserOptions;h.stripSentryFramesAndReverse=ha.stripSentryFramesAndReverse;h.filenameIsInApp=XO.filenameIsInApp;h.node=XO.node;h.nodeStackLineParser=XO.nodeStackLineParser;h.isMatchingPattern=Al.isMatchingPattern;h.safeJoin=Al.safeJoin;h.snipLine=Al.snipLine;h.stringMatchesSomePattern=Al.stringMatchesSomePattern;h.truncate=Al.truncate;h.isNativeFunction=Do.isNativeFunction;h.supportsDOMError=Do.supportsDOMError;h.supportsDOMException=Do.supportsDOMException;h.supportsErrorEvent=Do.supportsErrorEvent;h.supportsFetch=Do.supportsFetch;h.supportsNativeFetch=Do.supportsNativeFetch;h.supportsReferrerPolicy=Do.supportsReferrerPolicy;h.supportsReportingObserver=Do.supportsReportingObserver;h.SyncPromise=ZO.SyncPromise;h.rejectedSyncPromise=ZO.rejectedSyncPromise;h.resolvedSyncPromise=ZO.resolvedSyncPromise;Object.defineProperty(h,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>S_._browserPerformanceTimeOriginMode});h.browserPerformanceTimeOrigin=S_.browserPerformanceTimeOrigin;h.dateTimestampInSeconds=S_.dateTimestampInSeconds;h.timestampInSeconds=S_.timestampInSeconds;h.TRACEPARENT_REGEXP=A_.TRACEPARENT_REGEXP;h.extractTraceparentData=A_.extractTraceparentData;h.generateSentryTraceHeader=A_.generateSentryTraceHeader;h.propagationContextFromHeaders=A_.propagationContextFromHeaders;h.getSDKSource=bx.getSDKSource;h.isBrowserBundle=bx.isBrowserBundle;h.addItemToEnvelope=jr.addItemToEnvelope;h.createAttachmentEnvelopeItem=jr.createAttachmentEnvelopeItem;h.createEnvelope=jr.createEnvelope;h.createEventEnvelopeHeaders=jr.createEventEnvelopeHeaders;h.createSpanEnvelopeItem=jr.createSpanEnvelopeItem;h.envelopeContainsItemType=jr.envelopeContainsItemType;h.envelopeItemTypeToDataCategory=jr.envelopeItemTypeToDataCategory;h.forEachEnvelopeItem=jr.forEachEnvelopeItem;h.getSdkMetadataForEnvelopeHeader=jr.getSdkMetadataForEnvelopeHeader;h.parseEnvelope=jr.parseEnvelope;h.serializeEnvelope=jr.serializeEnvelope;h.createClientReportEnvelope=Yue.createClientReportEnvelope;h.DEFAULT_RETRY_AFTER=Rl.DEFAULT_RETRY_AFTER;h.disabledUntil=Rl.disabledUntil;h.isRateLimited=Rl.isRateLimited;h.parseRetryAfterHeader=Rl.parseRetryAfterHeader;h.updateRateLimits=Rl.updateRateLimits;h.BAGGAGE_HEADER_NAME=as.BAGGAGE_HEADER_NAME;h.MAX_BAGGAGE_STRING_LENGTH=as.MAX_BAGGAGE_STRING_LENGTH;h.SENTRY_BAGGAGE_KEY_PREFIX=as.SENTRY_BAGGAGE_KEY_PREFIX;h.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=as.SENTRY_BAGGAGE_KEY_PREFIX_REGEX;h.baggageHeaderToDynamicSamplingContext=as.baggageHeaderToDynamicSamplingContext;h.dynamicSamplingContextToSentryBaggageHeader=as.dynamicSamplingContextToSentryBaggageHeader;h.parseBaggageHeader=as.parseBaggageHeader;h.getNumberOfUrlSegments=R_.getNumberOfUrlSegments;h.getSanitizedUrlString=R_.getSanitizedUrlString;h.parseUrl=R_.parseUrl;h.stripUrlQueryAndFragment=R_.stripUrlQueryAndFragment;h.makeFifoCache=Kue.makeFifoCache;h.eventFromMessage=O_.eventFromMessage;h.eventFromUnknownInput=O_.eventFromUnknownInput;h.exceptionFromError=O_.exceptionFromError;h.parseStackFrames=O_.parseStackFrames;h.callFrameToStackFrame=Px.callFrameToStackFrame;h.watchdogTimer=Px.watchdogTimer;h.LRUMap=Xue.LRUMap;h._asyncNullishCoalesce=Zue._asyncNullishCoalesce;h._asyncOptionalChain=zue._asyncOptionalChain;h._asyncOptionalChainDelete=Jue._asyncOptionalChainDelete;h._nullishCoalesce=$ue._nullishCoalesce;h._optionalChain=Que._optionalChain;h._optionalChainDelete=ece._optionalChainDelete;h.generatePropagationContext=tce.generatePropagationContext;h.vercelWaitUntil=rce.vercelWaitUntil;h.SDK_VERSION=nce.SDK_VERSION;h.escapeStringForRegex=oce.escapeStringForRegex;h.supportsHistory=ice.supportsHistory});var yx,vx=H(()=>{yx=typeof globalThis=="object"?globalThis:global});var Nx=H(()=>{vx()});var Cx=H(()=>{Nx()});var Xn,zO=H(()=>{Xn="1.9.0"});function sce(t){var e=new Set([t]),r=new Set,n=t.match(Mx);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(u){return u===t};function i(a){return r.add(a),!1}function s(a){return e.add(a),!0}return function(u){if(e.has(u))return!0;if(r.has(u))return!1;var l=u.match(Mx);if(!l)return i(u);var d={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return d.prerelease!=null||o.major!==d.major?i(u):o.major===0?o.minor===d.minor&&o.patch<=d.patch?s(u):i(u):o.minor<=d.minor?s(u):i(u)}}var Mx,Lx,Dx=H(()=>{zO();Mx=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;Lx=sce(Xn)});function sn(t,e,r,n){var o;n===void 0&&(n=!1);var i=Il[Ol]=(o=Il[Ol])!==null&&o!==void 0?o:{version:Xn};if(!n&&i[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(s.stack||s.message),!1}if(i.version!==Xn){var s=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+Xn);return r.error(s.stack||s.message),!1}return i[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+Xn+"."),!0}function ur(t){var e,r,n=(e=Il[Ol])===null||e===void 0?void 0:e.version;if(!(!n||!Lx(n)))return(r=Il[Ol])===null||r===void 0?void 0:r[t]}function an(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Xn+".");var r=Il[Ol];r&&delete r[t]}var ace,Ol,Il,us=H(()=>{Cx();zO();Dx();ace=Xn.split(".")[0],Ol=Symbol.for("opentelemetry.js.api."+ace),Il=yx});function bl(t,e,r){var n=ur("diag");if(n)return r.unshift(e),n[t].apply(n,cce([],uce(r),!1))}var uce,cce,Gx,Ux=H(()=>{us();uce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},cce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Gx=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bl("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bl("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bl("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bl("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return bl("verbose",this._namespace,e)},t}()});var lt,I_=H(()=>{(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(lt||(lt={}))});function xx(t,e){t<lt.NONE?t=lt.NONE:t>lt.ALL&&(t=lt.ALL),e=e||{};function r(n,o){var i=e[n];return typeof i=="function"&&t>=o?i.bind(e):function(){}}return{error:r("error",lt.ERROR),warn:r("warn",lt.WARN),info:r("info",lt.INFO),debug:r("debug",lt.DEBUG),verbose:r("verbose",lt.VERBOSE)}}var wx=H(()=>{I_()});var lce,dce,pce,Et,cs=H(()=>{Ux();wx();I_();us();lce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},dce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},pce="diag",Et=function(){function t(){function e(o){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=ur("diag");if(a)return a[o].apply(a,dce([],lce(i),!1))}}var r=this,n=function(o,i){var s,a,u;if(i===void 0&&(i={logLevel:lt.INFO}),o===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((s=l.stack)!==null&&s!==void 0?s:l.message),!1}typeof i=="number"&&(i={logLevel:i});var d=ur("diag"),p=xx((a=i.logLevel)!==null&&a!==void 0?a:lt.INFO,o);if(d&&!i.suppressOverrideMessage){var _=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";d.warn("Current logger will be overwritten from "+_),p.warn("Current logger will overwrite one already registered from "+_)}return sn("diag",p,r,!0)};r.setLogger=n,r.disable=function(){an(pce,r)},r.createComponentLogger=function(o){return new Gx(o)},r.verbose=e("verbose"),r.debug=e("debug"),r.info=e("info"),r.warn=e("warn"),r.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}()});var _ce,fce,Vx,Bx=H(()=>{_ce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},fce=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Vx=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var r=this._entries.get(e);if(r)return Object.assign({},r)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var r=_ce(e,2),n=r[0],o=r[1];return[n,o]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=new t(this._entries);try{for(var s=fce(n),a=s.next();!a.done;a=s.next()){var u=a.value;i._entries.delete(u)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}()});var qx,jx=H(()=>{qx=Symbol("BaggageEntryMetadata")});function Hx(t){return t===void 0&&(t={}),new Vx(new Map(Object.entries(t)))}function Fx(t){return typeof t!="string"&&(gce.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:qx,toString:function(){return t}}}var gce,JO=H(()=>{cs();Bx();jx();gce=Et.instance()});function ma(t){return Symbol.for(t)}var Ece,b_,Pl=H(()=>{Ece=function(){function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,o){var i=new t(r._currentContext);return i._currentContext.set(n,o),i},r.deleteValue=function(n){var o=new t(r._currentContext);return o._currentContext.delete(n),o}}return t}(),b_=new Ece});var $O,kx,Wx=H(()=>{$O=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],kx=function(){function t(){function e(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(console){var s=console[n];if(typeof s!="function"&&(s=console.log),typeof s=="function")return s.apply(console,o)}}}for(var r=0;r<$O.length;r++)this[$O[r].n]=e($O[r].c)}return t}()});function Yx(){return eI}var ls,hce,P_,mce,Tce,Sce,Ace,QO,Rce,Oce,Ice,eI,bce,Pce,yce,vce,Nce,Cce,Mce,tI=H(()=>{ls=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hce=function(){function t(){}return t.prototype.createGauge=function(e,r){return Pce},t.prototype.createHistogram=function(e,r){return yce},t.prototype.createCounter=function(e,r){return bce},t.prototype.createUpDownCounter=function(e,r){return vce},t.prototype.createObservableGauge=function(e,r){return Cce},t.prototype.createObservableCounter=function(e,r){return Nce},t.prototype.createObservableUpDownCounter=function(e,r){return Mce},t.prototype.addBatchObservableCallback=function(e,r){},t.prototype.removeBatchObservableCallback=function(e){},t}(),P_=function(){function t(){}return t}(),mce=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(P_),Tce=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(r,n){},e}(P_),Sce=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(P_),Ace=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(r,n){},e}(P_),QO=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),Rce=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),Oce=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),Ice=function(t){ls(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(QO),eI=new hce,bce=new mce,Pce=new Sce,yce=new Ace,vce=new Tce,Nce=new Rce,Cce=new Oce,Mce=new Ice});var y_,Kx=H(()=>{(function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"})(y_||(y_={}))});var v_,N_,rI=H(()=>{v_={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},N_={set:function(t,e,r){t!=null&&(t[e]=r)}}});var Lce,Dce,Xx,Zx=H(()=>{Pl();Lce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Dce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},Xx=function(){function t(){}return t.prototype.active=function(){return b_},t.prototype.with=function(e,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return r.call.apply(r,Dce([n],Lce(o),!1))},t.prototype.bind=function(e,r){return r},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}()});var Gce,Uce,nI,xce,Go,yl=H(()=>{Zx();us();cs();Gce=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Uce=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))},nI="context",xce=new Xx,Go=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return sn(nI,e,Et.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,r,n){for(var o,i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return(o=this._getContextManager()).with.apply(o,Uce([e,r,n],Gce(i),!1))},t.prototype.bind=function(e,r){return this._getContextManager().bind(e,r)},t.prototype._getContextManager=function(){return ur(nI)||xce},t.prototype.disable=function(){this._getContextManager().disable(),an(nI,Et.instance())},t}()});var Ta,oI=H(()=>{(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Ta||(Ta={}))});var vl,Nl,C_,M_=H(()=>{oI();vl="0000000000000000",Nl="00000000000000000000000000000000",C_={traceId:Nl,spanId:vl,traceFlags:Ta.NONE}});var Uo,L_=H(()=>{M_();Uo=function(){function t(e){e===void 0&&(e=C_),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,r){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,r){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,r){},t}()});function D_(t){return t.getValue(iI)||void 0}function zx(){return D_(Go.getInstance().active())}function Cl(t,e){return t.setValue(iI,e)}function Jx(t){return t.deleteValue(iI)}function $x(t,e){return Cl(t,new Uo(e))}function G_(t){var e;return(e=D_(t))===null||e===void 0?void 0:e.spanContext()}var iI,sI=H(()=>{Pl();L_();yl();iI=ma("OpenTelemetry Context Key SPAN")});function aI(t){return wce.test(t)&&t!==Nl}function uI(t){return Vce.test(t)&&t!==vl}function Sa(t){return aI(t.traceId)&&uI(t.spanId)}function Qx(t){return new Uo(t)}var wce,Vce,U_=H(()=>{M_();L_();wce=/^([0-9a-f]{32})$/i,Vce=/^[0-9a-f]{16}$/i});function Bce(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var cI,x_,lI=H(()=>{yl();sI();L_();U_();cI=Go.getInstance(),x_=function(){function t(){}return t.prototype.startSpan=function(e,r,n){n===void 0&&(n=cI.active());var o=!!r?.root;if(o)return new Uo;var i=n&&G_(n);return Bce(i)&&Sa(i)?new Uo(i):new Uo},t.prototype.startActiveSpan=function(e,r,n,o){var i,s,a;if(!(arguments.length<2)){arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);var u=s??cI.active(),l=this.startSpan(e,i,u),d=Cl(u,l);return cI.with(d,a,void 0,l)}},t}()});var qce,w_,dI=H(()=>{lI();qce=new x_,w_=function(){function t(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}return t.prototype.startSpan=function(e,r,n){return this._getTracer().startSpan(e,r,n)},t.prototype.startActiveSpan=function(e,r,n,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):qce},t}()});var ew,tw=H(()=>{lI();ew=function(){function t(){}return t.prototype.getTracer=function(e,r,n){return new x_},t}()});var jce,Ml,pI=H(()=>{dI();tw();jce=new ew,Ml=function(){function t(){}return t.prototype.getTracer=function(e,r,n){var o;return(o=this.getDelegateTracer(e,r,n))!==null&&o!==void 0?o:new w_(this,e,r,n)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:jce},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,r,n)},t}()});var V_,rw=H(()=>{(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(V_||(V_={}))});var B_,nw=H(()=>{(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(B_||(B_={}))});var q_,ow=H(()=>{(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(q_||(q_={}))});function iw(t){return kce.test(t)}function sw(t){return Wce.test(t)&&!Yce.test(t)}var _I,Hce,Fce,kce,Wce,Yce,aw=H(()=>{_I="[_0-9a-z-*/]",Hce="[a-z]"+_I+"{0,255}",Fce="[a-z0-9]"+_I+"{0,240}@[a-z]"+_I+"{0,13}",kce=new RegExp("^(?:"+Hce+"|"+Fce+")$"),Wce=/^[ -~]{0,255}[!-~]$/,Yce=/,|=/});var uw,Kce,cw,lw,dw,pw=H(()=>{aw();uw=32,Kce=512,cw=",",lw="=",dw=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,r){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n},t.prototype.unset=function(e){var r=this._clone();return r._internalState.delete(e),r},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(r,n){return r.push(n+lw+e.get(n)),r},[]).join(cw)},t.prototype._parse=function(e){e.length>Kce||(this._internalState=e.split(cw).reverse().reduce(function(r,n){var o=n.trim(),i=o.indexOf(lw);if(i!==-1){var s=o.slice(0,i),a=o.slice(i+1,n.length);iw(s)&&sw(a)&&r.set(s,a)}return r},new Map),this._internalState.size>uw&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,uw))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function _w(t){return new dw(t)}var fw=H(()=>{pw()});var fI,gw=H(()=>{yl();fI=Go.getInstance()});var gI,Ew=H(()=>{cs();gI=Et.instance()});var Xce,hw,mw=H(()=>{tI();Xce=function(){function t(){}return t.prototype.getMeter=function(e,r,n){return eI},t}(),hw=new Xce});var EI,Tw,Sw=H(()=>{mw();us();cs();EI="metrics",Tw=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return sn(EI,e,Et.instance())},t.prototype.getMeterProvider=function(){return ur(EI)||hw},t.prototype.getMeter=function(e,r,n){return this.getMeterProvider().getMeter(e,r,n)},t.prototype.disable=function(){an(EI,Et.instance())},t}()});var hI,Aw=H(()=>{Sw();hI=Tw.getInstance()});var Rw,Ow=H(()=>{Rw=function(){function t(){}return t.prototype.inject=function(e,r){},t.prototype.extract=function(e,r){return e},t.prototype.fields=function(){return[]},t}()});function TI(t){return t.getValue(mI)||void 0}function Iw(){return TI(Go.getInstance().active())}function bw(t,e){return t.setValue(mI,e)}function Pw(t){return t.deleteValue(mI)}var mI,yw=H(()=>{yl();Pl();mI=ma("OpenTelemetry Baggage Key")});var SI,Zce,vw,Nw=H(()=>{us();Ow();rI();yw();JO();cs();SI="propagation",Zce=new Rw,vw=function(){function t(){this.createBaggage=Hx,this.getBaggage=TI,this.getActiveBaggage=Iw,this.setBaggage=bw,this.deleteBaggage=Pw}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return sn(SI,e,Et.instance())},t.prototype.inject=function(e,r,n){return n===void 0&&(n=N_),this._getGlobalPropagator().inject(e,r,n)},t.prototype.extract=function(e,r,n){return n===void 0&&(n=v_),this._getGlobalPropagator().extract(e,r,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){an(SI,Et.instance())},t.prototype._getGlobalPropagator=function(){return ur(SI)||Zce},t}()});var AI,Cw=H(()=>{Nw();AI=vw.getInstance()});var RI,Mw,Lw=H(()=>{us();pI();U_();sI();cs();RI="trace",Mw=function(){function t(){this._proxyTracerProvider=new Ml,this.wrapSpanContext=Qx,this.isSpanContextValid=Sa,this.deleteSpan=Jx,this.getSpan=D_,this.getActiveSpan=zx,this.getSpanContext=G_,this.setSpan=Cl,this.setSpanContext=$x}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var r=sn(RI,this._proxyTracerProvider,Et.instance());return r&&this._proxyTracerProvider.setDelegate(e),r},t.prototype.getTracerProvider=function(){return ur(RI)||this._proxyTracerProvider},t.prototype.getTracer=function(e,r){return this.getTracerProvider().getTracer(e,r)},t.prototype.disable=function(){an(RI,Et.instance()),this._proxyTracerProvider=new Ml},t}()});var OI,Dw=H(()=>{Lw();OI=Mw.getInstance()});var b={};M1(b,{DiagConsoleLogger:()=>kx,DiagLogLevel:()=>lt,INVALID_SPANID:()=>vl,INVALID_SPAN_CONTEXT:()=>C_,INVALID_TRACEID:()=>Nl,ProxyTracer:()=>w_,ProxyTracerProvider:()=>Ml,ROOT_CONTEXT:()=>b_,SamplingDecision:()=>V_,SpanKind:()=>B_,SpanStatusCode:()=>q_,TraceFlags:()=>Ta,ValueType:()=>y_,baggageEntryMetadataFromString:()=>Fx,context:()=>fI,createContextKey:()=>ma,createNoopMeter:()=>Yx,createTraceState:()=>_w,default:()=>zce,defaultTextMapGetter:()=>v_,defaultTextMapSetter:()=>N_,diag:()=>gI,isSpanContextValid:()=>Sa,isValidSpanId:()=>uI,isValidTraceId:()=>aI,metrics:()=>hI,propagation:()=>AI,trace:()=>OI});var zce,P=H(()=>{JO();Pl();Wx();I_();tI();Kx();rI();dI();pI();rw();nw();ow();oI();fw();U_();M_();gw();Ew();Aw();Cw();Dw();zce={context:fI,diag:gI,metrics:hI,propagation:AI,trace:OI}});var Ll=c(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.isTracingSuppressed=xo.unsuppressTracing=xo.suppressTracing=void 0;var Jce=(P(),m(b)),II=(0,Jce.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $ce(t){return t.setValue(II,!0)}xo.suppressTracing=$ce;function Qce(t){return t.deleteValue(II)}xo.unsuppressTracing=Qce;function ele(t){return t.getValue(II)===!0}xo.isTracingSuppressed=ele});var bI=c(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.BAGGAGE_MAX_TOTAL_LENGTH=ht.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=ht.BAGGAGE_MAX_NAME_VALUE_PAIRS=ht.BAGGAGE_HEADER=ht.BAGGAGE_ITEMS_SEPARATOR=ht.BAGGAGE_PROPERTIES_SEPARATOR=ht.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;ht.BAGGAGE_KEY_PAIR_SEPARATOR="=";ht.BAGGAGE_PROPERTIES_SEPARATOR=";";ht.BAGGAGE_ITEMS_SEPARATOR=",";ht.BAGGAGE_HEADER="baggage";ht.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;ht.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;ht.BAGGAGE_MAX_TOTAL_LENGTH=8192});var PI=c(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.parseKeyPairsIntoRecord=un.parsePairKeyValue=un.getKeyPairs=un.serializeKeyPairs=void 0;var tle=(P(),m(b)),ds=bI();function rle(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?ds.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>ds.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}un.serializeKeyPairs=rle;function nle(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=ds.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}un.getKeyPairs=nle;function Gw(t){let e=t.split(ds.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(ds.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,tle.baggageEntryMetadataFromString)(e.join(ds.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}un.parsePairKeyValue=Gw;function ole(t){return typeof t!="string"||t.length===0?{}:t.split(ds.BAGGAGE_ITEMS_SEPARATOR).map(e=>Gw(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}un.parseKeyPairsIntoRecord=ole});var Uw=c(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.W3CBaggagePropagator=void 0;var yI=(P(),m(b)),ile=Ll(),ps=bI(),vI=PI(),NI=class{inject(e,r,n){let o=yI.propagation.getBaggage(e);if(!o||(0,ile.isTracingSuppressed)(e))return;let i=(0,vI.getKeyPairs)(o).filter(a=>a.length<=ps.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,ps.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,vI.serializeKeyPairs)(i);s.length>0&&n.set(r,ps.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,ps.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(ps.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(ps.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,vI.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:yI.propagation.setBaggage(e,yI.propagation.createBaggage(s))}fields(){return[ps.BAGGAGE_HEADER]}};j_.W3CBaggagePropagator=NI});var xw=c(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.AnchoredClock=void 0;var CI=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};H_.AnchoredClock=CI});var jw=c(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.isAttributeValue=wo.isAttributeKey=wo.sanitizeAttributes=void 0;var ww=(P(),m(b));function sle(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!Vw(r)){ww.diag.warn(`Invalid attribute key: ${r}`);continue}if(!Bw(n)){ww.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}wo.sanitizeAttributes=sle;function Vw(t){return typeof t=="string"&&t.length>0}wo.isAttributeKey=Vw;function Bw(t){return t==null?!0:Array.isArray(t)?ale(t):qw(t)}wo.isAttributeValue=Bw;function ale(t){let e;for(let r of t)if(r!=null){if(!e){if(qw(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function qw(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var MI=c(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.loggingErrorHandler=void 0;var ule=(P(),m(b));function cle(){return t=>{ule.diag.error(lle(t))}}F_.loggingErrorHandler=cle;function lle(t){return typeof t=="string"?t:JSON.stringify(dle(t))}function dle(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var LI=c(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.globalErrorHandler=Aa.setGlobalErrorHandler=void 0;var ple=MI(),Hw=(0,ple.loggingErrorHandler)();function _le(t){Hw=t}Aa.setGlobalErrorHandler=_le;function fle(t){try{Hw(t)}catch{}}Aa.globalErrorHandler=fle});var DI=c(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.TracesSamplerValues=void 0;var gle;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(gle=Dl.TracesSamplerValues||(Dl.TracesSamplerValues={}))});var GI=c(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.parseEnvironment=Oe.DEFAULT_ENVIRONMENT=Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT=Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var Vo=(P(),m(b)),Ele=DI(),hle=",",mle=["OTEL_SDK_DISABLED"];function Tle(t){return mle.indexOf(t)>-1}var Sle=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_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_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function Ale(t){return Sle.indexOf(t)>-1}var Rle=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function Ole(t){return Rle.indexOf(t)>-1}Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;Oe.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_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_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_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:Vo.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Oe.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Oe.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Oe.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Oe.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ele.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_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_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function Ile(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function ble(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function Ple(t,e,r,n=hle){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var yle={ALL:Vo.DiagLogLevel.ALL,VERBOSE:Vo.DiagLogLevel.VERBOSE,DEBUG:Vo.DiagLogLevel.DEBUG,INFO:Vo.DiagLogLevel.INFO,WARN:Vo.DiagLogLevel.WARN,ERROR:Vo.DiagLogLevel.ERROR,NONE:Vo.DiagLogLevel.NONE};function vle(t,e,r){let n=r[t];if(typeof n=="string"){let o=yle[n.toUpperCase()];o!=null&&(e[t]=o)}}function Nle(t){let e={};for(let r in Oe.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":vle(n,e,t);break;default:if(Tle(n))Ile(n,e,t);else if(Ale(n))ble(n,e,t);else if(Ole(n))Ple(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}Oe.parseEnvironment=Nle});var Fw=c(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getEnvWithoutDefaults=Ra.getEnv=void 0;var UI=GI();function Cle(){let t=(0,UI.parseEnvironment)(process.env);return Object.assign({},UI.DEFAULT_ENVIRONMENT,t)}Ra.getEnv=Cle;function Mle(){return(0,UI.parseEnvironment)(process.env)}Ra.getEnvWithoutDefaults=Mle});var kw=c(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_._globalThis=void 0;k_._globalThis=typeof globalThis=="object"?globalThis:global});var xI=c(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.hexToBinary=void 0;function Ww(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lle(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=Ww(t.charCodeAt(n)),i=Ww(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}W_.hexToBinary=Lle});var Yw=c(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.hexToBase64=void 0;var Dle=xI();function Gle(t){return Buffer.from((0,Dle.hexToBinary)(t)).toString("base64")}Y_.hexToBase64=Gle});var Zw=c(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.RandomIdGenerator=void 0;var Ule=8,Xw=16,wI=class{constructor(){this.generateTraceId=Kw(Xw),this.generateSpanId=Kw(Ule)}};X_.RandomIdGenerator=wI;var K_=Buffer.allocUnsafe(Xw);function Kw(t){return function(){for(let r=0;r<t/4;r++)K_.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(K_[r]>0);r++)r===t-1&&(K_[t-1]=1);return K_.toString("hex",0,t)}}});var zw=c(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.otperformance=void 0;var xle=require("perf_hooks");Z_.otperformance=xle.performance});var VI=c(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.VERSION=void 0;z_.VERSION="1.26.0"});function Me(t){for(var e={},r=t.length,n=0;n<r;n++){var o=t[n];o&&(e[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return e}var BI=H(()=>{});var Jw,$w,Qw,eV,tV,rV,nV,oV,iV,sV,aV,uV,cV,lV,dV,pV,_V,fV,gV,EV,hV,mV,TV,SV,AV,RV,OV,IV,bV,PV,yV,vV,NV,CV,MV,LV,DV,GV,UV,xV,wV,VV,BV,qV,jV,HV,FV,kV,WV,YV,KV,XV,ZV,zV,JV,$V,QV,eB,tB,rB,nB,oB,iB,sB,aB,uB,cB,lB,dB,pB,_B,fB,gB,EB,hB,mB,TB,SB,AB,RB,OB,IB,bB,PB,yB,vB,NB,CB,MB,LB,DB,GB,UB,xB,wB,VB,BB,qB,jB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eq,tq,rq,nq,oq,iq,sq,aq,uq,cq,lq,dq,pq,_q,fq,gq,Eq,wle,Vle,Ble,qle,jle,Hle,Fle,kle,Wle,Yle,Kle,Xle,Zle,zle,Jle,$le,Qle,ede,tde,rde,nde,ode,ide,sde,ade,ude,cde,lde,dde,pde,_de,fde,gde,Ede,hde,mde,Tde,Sde,Ade,Rde,Ode,Ide,bde,Pde,yde,vde,Nde,Cde,Mde,Lde,Dde,Gde,Ude,xde,wde,Vde,Bde,qde,jde,Hde,Fde,kde,Wde,Yde,Kde,Xde,Zde,zde,Jde,$de,Qde,epe,tpe,rpe,npe,ope,ipe,spe,ape,upe,cpe,lpe,dpe,ppe,_pe,fpe,gpe,Epe,hpe,mpe,Tpe,Spe,Ape,Rpe,Ope,Ipe,bpe,Ppe,ype,vpe,Npe,Cpe,Mpe,Lpe,Dpe,Gpe,Upe,xpe,wpe,Vpe,Bpe,qpe,jpe,Hpe,Fpe,kpe,Wpe,Ype,Kpe,Xpe,Zpe,zpe,Jpe,$pe,Qpe,e_e,t_e,r_e,n_e,hq,mq,Tq,Sq,Aq,Rq,Oq,Iq,bq,Pq,yq,vq,Nq,Cq,Mq,Lq,Dq,Gq,Uq,xq,wq,Vq,Bq,qq,jq,Hq,Fq,kq,Wq,Yq,Kq,Xq,Zq,zq,Jq,$q,Qq,ej,tj,rj,nj,oj,ij,sj,aj,uj,cj,o_e,i_e,s_e,a_e,u_e,c_e,l_e,d_e,p_e,__e,f_e,g_e,E_e,h_e,m_e,T_e,S_e,A_e,R_e,O_e,I_e,b_e,P_e,y_e,v_e,N_e,C_e,M_e,L_e,D_e,G_e,U_e,x_e,w_e,V_e,B_e,q_e,j_e,H_e,F_e,k_e,W_e,Y_e,K_e,X_e,Z_e,z_e,J_e,lj,dj,pj,_j,fj,gj,Ej,hj,mj,Tj,Sj,$_e,Q_e,efe,tfe,rfe,nfe,ofe,ife,sfe,afe,ufe,cfe,Aj,Rj,Oj,Ij,bj,lfe,dfe,pfe,_fe,ffe,gfe,Pj,yj,vj,Efe,hfe,mfe,Tfe,Nj,Cj,Mj,Lj,Sfe,Afe,Rfe,Ofe,Ife,Dj,Gj,Uj,xj,wj,Vj,Bj,bfe,Pfe,yfe,vfe,Nfe,Cfe,Mfe,Lfe,qj,jj,Hj,Fj,kj,Dfe,Gfe,Ufe,xfe,wfe,Vfe,Wj,Yj,Kj,Xj,Zj,zj,Jj,$j,Qj,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH,dH,Bfe,qfe,jfe,Hfe,Ffe,kfe,Wfe,Yfe,Kfe,Xfe,Zfe,zfe,Jfe,$fe,Qfe,ege,tge,rge,nge,oge,ige,sge,pH,_H,fH,gH,EH,age,uge,cge,lge,dge,pge,hH,mH,_ge,fge,gge,TH,SH,Ege,hge,mge,AH,RH,OH,IH,bH,PH,yH,vH,NH,CH,MH,LH,DH,GH,UH,xH,wH,Tge,Sge,Age,Rge,Oge,Ige,bge,Pge,yge,vge,Nge,Cge,Mge,Lge,Dge,Gge,Uge,xge,VH,BH,wge,Vge,Bge,qH=H(()=>{BI();Jw="aws.lambda.invoked_arn",$w="db.system",Qw="db.connection_string",eV="db.user",tV="db.jdbc.driver_classname",rV="db.name",nV="db.statement",oV="db.operation",iV="db.mssql.instance_name",sV="db.cassandra.keyspace",aV="db.cassandra.page_size",uV="db.cassandra.consistency_level",cV="db.cassandra.table",lV="db.cassandra.idempotence",dV="db.cassandra.speculative_execution_count",pV="db.cassandra.coordinator.id",_V="db.cassandra.coordinator.dc",fV="db.hbase.namespace",gV="db.redis.database_index",EV="db.mongodb.collection",hV="db.sql.table",mV="exception.type",TV="exception.message",SV="exception.stacktrace",AV="exception.escaped",RV="faas.trigger",OV="faas.execution",IV="faas.document.collection",bV="faas.document.operation",PV="faas.document.time",yV="faas.document.name",vV="faas.time",NV="faas.cron",CV="faas.coldstart",MV="faas.invoked_name",LV="faas.invoked_provider",DV="faas.invoked_region",GV="net.transport",UV="net.peer.ip",xV="net.peer.port",wV="net.peer.name",VV="net.host.ip",BV="net.host.port",qV="net.host.name",jV="net.host.connection.type",HV="net.host.connection.subtype",FV="net.host.carrier.name",kV="net.host.carrier.mcc",WV="net.host.carrier.mnc",YV="net.host.carrier.icc",KV="peer.service",XV="enduser.id",ZV="enduser.role",zV="enduser.scope",JV="thread.id",$V="thread.name",QV="code.function",eB="code.namespace",tB="code.filepath",rB="code.lineno",nB="http.method",oB="http.url",iB="http.target",sB="http.host",aB="http.scheme",uB="http.status_code",cB="http.flavor",lB="http.user_agent",dB="http.request_content_length",pB="http.request_content_length_uncompressed",_B="http.response_content_length",fB="http.response_content_length_uncompressed",gB="http.server_name",EB="http.route",hB="http.client_ip",mB="aws.dynamodb.table_names",TB="aws.dynamodb.consumed_capacity",SB="aws.dynamodb.item_collection_metrics",AB="aws.dynamodb.provisioned_read_capacity",RB="aws.dynamodb.provisioned_write_capacity",OB="aws.dynamodb.consistent_read",IB="aws.dynamodb.projection",bB="aws.dynamodb.limit",PB="aws.dynamodb.attributes_to_get",yB="aws.dynamodb.index_name",vB="aws.dynamodb.select",NB="aws.dynamodb.global_secondary_indexes",CB="aws.dynamodb.local_secondary_indexes",MB="aws.dynamodb.exclusive_start_table",LB="aws.dynamodb.table_count",DB="aws.dynamodb.scan_forward",GB="aws.dynamodb.segment",UB="aws.dynamodb.total_segments",xB="aws.dynamodb.count",wB="aws.dynamodb.scanned_count",VB="aws.dynamodb.attribute_definitions",BB="aws.dynamodb.global_secondary_index_updates",qB="messaging.system",jB="messaging.destination",HB="messaging.destination_kind",FB="messaging.temp_destination",kB="messaging.protocol",WB="messaging.protocol_version",YB="messaging.url",KB="messaging.message_id",XB="messaging.conversation_id",ZB="messaging.message_payload_size_bytes",zB="messaging.message_payload_compressed_size_bytes",JB="messaging.operation",$B="messaging.consumer_id",QB="messaging.rabbitmq.routing_key",eq="messaging.kafka.message_key",tq="messaging.kafka.consumer_group",rq="messaging.kafka.client_id",nq="messaging.kafka.partition",oq="messaging.kafka.tombstone",iq="rpc.system",sq="rpc.service",aq="rpc.method",uq="rpc.grpc.status_code",cq="rpc.jsonrpc.version",lq="rpc.jsonrpc.request_id",dq="rpc.jsonrpc.error_code",pq="rpc.jsonrpc.error_message",_q="message.type",fq="message.id",gq="message.compressed_size",Eq="message.uncompressed_size",wle=Jw,Vle=$w,Ble=Qw,qle=eV,jle=tV,Hle=rV,Fle=nV,kle=oV,Wle=iV,Yle=sV,Kle=aV,Xle=uV,Zle=cV,zle=lV,Jle=dV,$le=pV,Qle=_V,ede=fV,tde=gV,rde=EV,nde=hV,ode=mV,ide=TV,sde=SV,ade=AV,ude=RV,cde=OV,lde=IV,dde=bV,pde=PV,_de=yV,fde=vV,gde=NV,Ede=CV,hde=MV,mde=LV,Tde=DV,Sde=GV,Ade=UV,Rde=xV,Ode=wV,Ide=VV,bde=BV,Pde=qV,yde=jV,vde=HV,Nde=FV,Cde=kV,Mde=WV,Lde=YV,Dde=KV,Gde=XV,Ude=ZV,xde=zV,wde=JV,Vde=$V,Bde=QV,qde=eB,jde=tB,Hde=rB,Fde=nB,kde=oB,Wde=iB,Yde=sB,Kde=aB,Xde=uB,Zde=cB,zde=lB,Jde=dB,$de=pB,Qde=_B,epe=fB,tpe=gB,rpe=EB,npe=hB,ope=mB,ipe=TB,spe=SB,ape=AB,upe=RB,cpe=OB,lpe=IB,dpe=bB,ppe=PB,_pe=yB,fpe=vB,gpe=NB,Epe=CB,hpe=MB,mpe=LB,Tpe=DB,Spe=GB,Ape=UB,Rpe=xB,Ope=wB,Ipe=VB,bpe=BB,Ppe=qB,ype=jB,vpe=HB,Npe=FB,Cpe=kB,Mpe=WB,Lpe=YB,Dpe=KB,Gpe=XB,Upe=ZB,xpe=zB,wpe=JB,Vpe=$B,Bpe=QB,qpe=eq,jpe=tq,Hpe=rq,Fpe=nq,kpe=oq,Wpe=iq,Ype=sq,Kpe=aq,Xpe=uq,Zpe=cq,zpe=lq,Jpe=dq,$pe=pq,Qpe=_q,e_e=fq,t_e=gq,r_e=Eq,n_e=Me([Jw,$w,Qw,eV,tV,rV,nV,oV,iV,sV,aV,uV,cV,lV,dV,pV,_V,fV,gV,EV,hV,mV,TV,SV,AV,RV,OV,IV,bV,PV,yV,vV,NV,CV,MV,LV,DV,GV,UV,xV,wV,VV,BV,qV,jV,HV,FV,kV,WV,YV,KV,XV,ZV,zV,JV,$V,QV,eB,tB,rB,nB,oB,iB,sB,aB,uB,cB,lB,dB,pB,_B,fB,gB,EB,hB,mB,TB,SB,AB,RB,OB,IB,bB,PB,yB,vB,NB,CB,MB,LB,DB,GB,UB,xB,wB,VB,BB,qB,jB,HB,FB,kB,WB,YB,KB,XB,ZB,zB,JB,$B,QB,eq,tq,rq,nq,oq,iq,sq,aq,uq,cq,lq,dq,pq,_q,fq,gq,Eq]),hq="other_sql",mq="mssql",Tq="mysql",Sq="oracle",Aq="db2",Rq="postgresql",Oq="redshift",Iq="hive",bq="cloudscape",Pq="hsqldb",yq="progress",vq="maxdb",Nq="hanadb",Cq="ingres",Mq="firstsql",Lq="edb",Dq="cache",Gq="adabas",Uq="firebird",xq="derby",wq="filemaker",Vq="informix",Bq="instantdb",qq="interbase",jq="mariadb",Hq="netezza",Fq="pervasive",kq="pointbase",Wq="sqlite",Yq="sybase",Kq="teradata",Xq="vertica",Zq="h2",zq="coldfusion",Jq="cassandra",$q="hbase",Qq="mongodb",ej="redis",tj="couchbase",rj="couchdb",nj="cosmosdb",oj="dynamodb",ij="neo4j",sj="geode",aj="elasticsearch",uj="memcached",cj="cockroachdb",o_e=hq,i_e=mq,s_e=Tq,a_e=Sq,u_e=Aq,c_e=Rq,l_e=Oq,d_e=Iq,p_e=bq,__e=Pq,f_e=yq,g_e=vq,E_e=Nq,h_e=Cq,m_e=Mq,T_e=Lq,S_e=Dq,A_e=Gq,R_e=Uq,O_e=xq,I_e=wq,b_e=Vq,P_e=Bq,y_e=qq,v_e=jq,N_e=Hq,C_e=Fq,M_e=kq,L_e=Wq,D_e=Yq,G_e=Kq,U_e=Xq,x_e=Zq,w_e=zq,V_e=Jq,B_e=$q,q_e=Qq,j_e=ej,H_e=tj,F_e=rj,k_e=nj,W_e=oj,Y_e=ij,K_e=sj,X_e=aj,Z_e=uj,z_e=cj,J_e=Me([hq,mq,Tq,Sq,Aq,Rq,Oq,Iq,bq,Pq,yq,vq,Nq,Cq,Mq,Lq,Dq,Gq,Uq,xq,wq,Vq,Bq,qq,jq,Hq,Fq,kq,Wq,Yq,Kq,Xq,Zq,zq,Jq,$q,Qq,ej,tj,rj,nj,oj,ij,sj,aj,uj,cj]),lj="all",dj="each_quorum",pj="quorum",_j="local_quorum",fj="one",gj="two",Ej="three",hj="local_one",mj="any",Tj="serial",Sj="local_serial",$_e=lj,Q_e=dj,efe=pj,tfe=_j,rfe=fj,nfe=gj,ofe=Ej,ife=hj,sfe=mj,afe=Tj,ufe=Sj,cfe=Me([lj,dj,pj,_j,fj,gj,Ej,hj,mj,Tj,Sj]),Aj="datasource",Rj="http",Oj="pubsub",Ij="timer",bj="other",lfe=Aj,dfe=Rj,pfe=Oj,_fe=Ij,ffe=bj,gfe=Me([Aj,Rj,Oj,Ij,bj]),Pj="insert",yj="edit",vj="delete",Efe=Pj,hfe=yj,mfe=vj,Tfe=Me([Pj,yj,vj]),Nj="alibaba_cloud",Cj="aws",Mj="azure",Lj="gcp",Sfe=Nj,Afe=Cj,Rfe=Mj,Ofe=Lj,Ife=Me([Nj,Cj,Mj,Lj]),Dj="ip_tcp",Gj="ip_udp",Uj="ip",xj="unix",wj="pipe",Vj="inproc",Bj="other",bfe=Dj,Pfe=Gj,yfe=Uj,vfe=xj,Nfe=wj,Cfe=Vj,Mfe=Bj,Lfe=Me([Dj,Gj,Uj,xj,wj,Vj,Bj]),qj="wifi",jj="wired",Hj="cell",Fj="unavailable",kj="unknown",Dfe=qj,Gfe=jj,Ufe=Hj,xfe=Fj,wfe=kj,Vfe=Me([qj,jj,Hj,Fj,kj]),Wj="gprs",Yj="edge",Kj="umts",Xj="cdma",Zj="evdo_0",zj="evdo_a",Jj="cdma2000_1xrtt",$j="hsdpa",Qj="hsupa",eH="hspa",tH="iden",rH="evdo_b",nH="lte",oH="ehrpd",iH="hspap",sH="gsm",aH="td_scdma",uH="iwlan",cH="nr",lH="nrnsa",dH="lte_ca",Bfe=Wj,qfe=Yj,jfe=Kj,Hfe=Xj,Ffe=Zj,kfe=zj,Wfe=Jj,Yfe=$j,Kfe=Qj,Xfe=eH,Zfe=tH,zfe=rH,Jfe=nH,$fe=oH,Qfe=iH,ege=sH,tge=aH,rge=uH,nge=cH,oge=lH,ige=dH,sge=Me([Wj,Yj,Kj,Xj,Zj,zj,Jj,$j,Qj,eH,tH,rH,nH,oH,iH,sH,aH,uH,cH,lH,dH]),pH="1.0",_H="1.1",fH="2.0",gH="SPDY",EH="QUIC",age=pH,uge=_H,cge=fH,lge=gH,dge=EH,pge={HTTP_1_0:pH,HTTP_1_1:_H,HTTP_2_0:fH,SPDY:gH,QUIC:EH},hH="queue",mH="topic",_ge=hH,fge=mH,gge=Me([hH,mH]),TH="receive",SH="process",Ege=TH,hge=SH,mge=Me([TH,SH]),AH=0,RH=1,OH=2,IH=3,bH=4,PH=5,yH=6,vH=7,NH=8,CH=9,MH=10,LH=11,DH=12,GH=13,UH=14,xH=15,wH=16,Tge=AH,Sge=RH,Age=OH,Rge=IH,Oge=bH,Ige=PH,bge=yH,Pge=vH,yge=NH,vge=CH,Nge=MH,Cge=LH,Mge=DH,Lge=GH,Dge=UH,Gge=xH,Uge=wH,xge={OK:AH,CANCELLED:RH,UNKNOWN:OH,INVALID_ARGUMENT:IH,DEADLINE_EXCEEDED:bH,NOT_FOUND:PH,ALREADY_EXISTS:yH,PERMISSION_DENIED:vH,RESOURCE_EXHAUSTED:NH,FAILED_PRECONDITION:CH,ABORTED:MH,OUT_OF_RANGE:LH,UNIMPLEMENTED:DH,INTERNAL:GH,UNAVAILABLE:UH,DATA_LOSS:xH,UNAUTHENTICATED:wH},VH="SENT",BH="RECEIVED",wge=VH,Vge=BH,Bge=Me([VH,BH])});var jH=H(()=>{qH()});var HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,EF,hF,mF,TF,SF,AF,RF,OF,IF,bF,PF,yF,vF,NF,CF,MF,LF,DF,GF,UF,xF,wF,VF,BF,qF,jF,HF,FF,kF,WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k,fk,qge,jge,Hge,Fge,kge,Wge,Yge,Kge,Xge,Zge,zge,Jge,$ge,Qge,eEe,tEe,rEe,nEe,oEe,iEe,sEe,aEe,uEe,cEe,lEe,dEe,pEe,_Ee,fEe,gEe,EEe,hEe,mEe,TEe,SEe,AEe,REe,OEe,IEe,bEe,PEe,yEe,vEe,NEe,CEe,MEe,LEe,DEe,GEe,UEe,xEe,wEe,VEe,BEe,qEe,jEe,HEe,FEe,kEe,WEe,YEe,KEe,XEe,ZEe,zEe,JEe,$Ee,QEe,ehe,the,rhe,nhe,ohe,ihe,she,ahe,uhe,che,lhe,dhe,phe,_he,gk,Ek,hk,mk,fhe,ghe,Ehe,hhe,mhe,Tk,Sk,Ak,Rk,Ok,Ik,bk,Pk,yk,vk,Nk,Ck,Mk,Lk,Dk,Gk,Uk,The,She,Ahe,Rhe,Ohe,Ihe,bhe,Phe,yhe,vhe,Nhe,Che,Mhe,Lhe,Dhe,Ghe,Uhe,xhe,xk,wk,whe,Vhe,Bhe,Vk,Bk,qk,jk,Hk,Fk,kk,qhe,jhe,Hhe,Fhe,khe,Whe,Yhe,Khe,Wk,Yk,Kk,Xk,Zk,zk,Jk,$k,Qk,eW,tW,Xhe,Zhe,zhe,Jhe,$he,Qhe,eme,tme,rme,nme,ome,ime,rW,nW,oW,iW,sW,aW,uW,cW,lW,dW,sme,ame,ume,cme,lme,dme,pme,_me,fme,gme,Eme,pW=H(()=>{BI();HH="cloud.provider",FH="cloud.account.id",kH="cloud.region",WH="cloud.availability_zone",YH="cloud.platform",KH="aws.ecs.container.arn",XH="aws.ecs.cluster.arn",ZH="aws.ecs.launchtype",zH="aws.ecs.task.arn",JH="aws.ecs.task.family",$H="aws.ecs.task.revision",QH="aws.eks.cluster.arn",eF="aws.log.group.names",tF="aws.log.group.arns",rF="aws.log.stream.names",nF="aws.log.stream.arns",oF="container.name",iF="container.id",sF="container.runtime",aF="container.image.name",uF="container.image.tag",cF="deployment.environment",lF="device.id",dF="device.model.identifier",pF="device.model.name",_F="faas.name",fF="faas.id",gF="faas.version",EF="faas.instance",hF="faas.max_memory",mF="host.id",TF="host.name",SF="host.type",AF="host.arch",RF="host.image.name",OF="host.image.id",IF="host.image.version",bF="k8s.cluster.name",PF="k8s.node.name",yF="k8s.node.uid",vF="k8s.namespace.name",NF="k8s.pod.uid",CF="k8s.pod.name",MF="k8s.container.name",LF="k8s.replicaset.uid",DF="k8s.replicaset.name",GF="k8s.deployment.uid",UF="k8s.deployment.name",xF="k8s.statefulset.uid",wF="k8s.statefulset.name",VF="k8s.daemonset.uid",BF="k8s.daemonset.name",qF="k8s.job.uid",jF="k8s.job.name",HF="k8s.cronjob.uid",FF="k8s.cronjob.name",kF="os.type",WF="os.description",YF="os.name",KF="os.version",XF="process.pid",ZF="process.executable.name",zF="process.executable.path",JF="process.command",$F="process.command_line",QF="process.command_args",ek="process.owner",tk="process.runtime.name",rk="process.runtime.version",nk="process.runtime.description",ok="service.name",ik="service.namespace",sk="service.instance.id",ak="service.version",uk="telemetry.sdk.name",ck="telemetry.sdk.language",lk="telemetry.sdk.version",dk="telemetry.auto.version",pk="webengine.name",_k="webengine.version",fk="webengine.description",qge=HH,jge=FH,Hge=kH,Fge=WH,kge=YH,Wge=KH,Yge=XH,Kge=ZH,Xge=zH,Zge=JH,zge=$H,Jge=QH,$ge=eF,Qge=tF,eEe=rF,tEe=nF,rEe=oF,nEe=iF,oEe=sF,iEe=aF,sEe=uF,aEe=cF,uEe=lF,cEe=dF,lEe=pF,dEe=_F,pEe=fF,_Ee=gF,fEe=EF,gEe=hF,EEe=mF,hEe=TF,mEe=SF,TEe=AF,SEe=RF,AEe=OF,REe=IF,OEe=bF,IEe=PF,bEe=yF,PEe=vF,yEe=NF,vEe=CF,NEe=MF,CEe=LF,MEe=DF,LEe=GF,DEe=UF,GEe=xF,UEe=wF,xEe=VF,wEe=BF,VEe=qF,BEe=jF,qEe=HF,jEe=FF,HEe=kF,FEe=WF,kEe=YF,WEe=KF,YEe=XF,KEe=ZF,XEe=zF,ZEe=JF,zEe=$F,JEe=QF,$Ee=ek,QEe=tk,ehe=rk,the=nk,rhe=ok,nhe=ik,ohe=sk,ihe=ak,she=uk,ahe=ck,uhe=lk,che=dk,lhe=pk,dhe=_k,phe=fk,_he=Me([HH,FH,kH,WH,YH,KH,XH,ZH,zH,JH,$H,QH,eF,tF,rF,nF,oF,iF,sF,aF,uF,cF,lF,dF,pF,_F,fF,gF,EF,hF,mF,TF,SF,AF,RF,OF,IF,bF,PF,yF,vF,NF,CF,MF,LF,DF,GF,UF,xF,wF,VF,BF,qF,jF,HF,FF,kF,WF,YF,KF,XF,ZF,zF,JF,$F,QF,ek,tk,rk,nk,ok,ik,sk,ak,uk,ck,lk,dk,pk,_k,fk]),gk="alibaba_cloud",Ek="aws",hk="azure",mk="gcp",fhe=gk,ghe=Ek,Ehe=hk,hhe=mk,mhe=Me([gk,Ek,hk,mk]),Tk="alibaba_cloud_ecs",Sk="alibaba_cloud_fc",Ak="aws_ec2",Rk="aws_ecs",Ok="aws_eks",Ik="aws_lambda",bk="aws_elastic_beanstalk",Pk="azure_vm",yk="azure_container_instances",vk="azure_aks",Nk="azure_functions",Ck="azure_app_service",Mk="gcp_compute_engine",Lk="gcp_cloud_run",Dk="gcp_kubernetes_engine",Gk="gcp_cloud_functions",Uk="gcp_app_engine",The=Tk,She=Sk,Ahe=Ak,Rhe=Rk,Ohe=Ok,Ihe=Ik,bhe=bk,Phe=Pk,yhe=yk,vhe=vk,Nhe=Nk,Che=Ck,Mhe=Mk,Lhe=Lk,Dhe=Dk,Ghe=Gk,Uhe=Uk,xhe=Me([Tk,Sk,Ak,Rk,Ok,Ik,bk,Pk,yk,vk,Nk,Ck,Mk,Lk,Dk,Gk,Uk]),xk="ec2",wk="fargate",whe=xk,Vhe=wk,Bhe=Me([xk,wk]),Vk="amd64",Bk="arm32",qk="arm64",jk="ia64",Hk="ppc32",Fk="ppc64",kk="x86",qhe=Vk,jhe=Bk,Hhe=qk,Fhe=jk,khe=Hk,Whe=Fk,Yhe=kk,Khe=Me([Vk,Bk,qk,jk,Hk,Fk,kk]),Wk="windows",Yk="linux",Kk="darwin",Xk="freebsd",Zk="netbsd",zk="openbsd",Jk="dragonflybsd",$k="hpux",Qk="aix",eW="solaris",tW="z_os",Xhe=Wk,Zhe=Yk,zhe=Kk,Jhe=Xk,$he=Zk,Qhe=zk,eme=Jk,tme=$k,rme=Qk,nme=eW,ome=tW,ime=Me([Wk,Yk,Kk,Xk,Zk,zk,Jk,$k,Qk,eW,tW]),rW="cpp",nW="dotnet",oW="erlang",iW="go",sW="java",aW="nodejs",uW="php",cW="python",lW="ruby",dW="webjs",sme=rW,ame=nW,ume=oW,cme=iW,lme=sW,dme=aW,pme=uW,_me=cW,fme=lW,gme=dW,Eme=Me([rW,nW,oW,iW,sW,aW,uW,cW,lW,dW])});var _W=H(()=>{pW()});var hme,mme,Tme,Sme,Ame,Rme,Ome,Ime,bme,Pme,yme,vme,Nme,Cme,Mme,Lme,Dme,Gme,Ume,xme,wme,Vme,Bme,qme,jme,Hme,Fme,kme,Wme,Yme,Kme,Xme,Zme,zme,Jme,$me,Qme,eTe,tTe,rTe,nTe,oTe,iTe,sTe,aTe,uTe,cTe,lTe,dTe,pTe,_Te,fTe,gTe,ETe,hTe,mTe,TTe,STe,ATe,RTe,OTe,ITe,bTe,PTe,yTe,vTe,NTe,CTe,MTe,LTe,DTe,GTe,UTe,xTe,wTe,VTe,BTe,qTe,jTe,HTe,FTe,kTe,WTe,YTe,KTe,XTe,ZTe,zTe,JTe,$Te,QTe,eSe,tSe,rSe,nSe,oSe,iSe,sSe,aSe,uSe,cSe,lSe,dSe,pSe,_Se,fSe,gSe,ESe,hSe,mSe,fW=H(()=>{hme="aspnetcore.rate_limiting.result",mme="acquired",Tme="endpoint_limiter",Sme="global_limiter",Ame="request_canceled",Rme="telemetry.sdk.language",Ome="cpp",Ime="dotnet",bme="erlang",Pme="go",yme="java",vme="nodejs",Nme="php",Cme="python",Mme="ruby",Lme="rust",Dme="swift",Gme="webjs",Ume="telemetry.sdk.name",xme="telemetry.sdk.version",wme="aspnetcore.diagnostics.handler.type",Vme="aspnetcore.diagnostics.exception.result",Bme="aborted",qme="handled",jme="skipped",Hme="unhandled",Fme="aspnetcore.rate_limiting.policy",kme="aspnetcore.request.is_unhandled",Wme="aspnetcore.routing.is_fallback",Yme="aspnetcore.routing.match_status",Kme="failure",Xme="success",Zme="client.address",zme="client.port",Jme="error.type",$me="_OTHER",Qme="exception.escaped",eTe="exception.message",tTe="exception.stacktrace",rTe="exception.type",nTe=function(t){return"http.request.header."+t},oTe="http.request.method",iTe="_OTHER",sTe="CONNECT",aTe="DELETE",uTe="GET",cTe="HEAD",lTe="OPTIONS",dTe="PATCH",pTe="POST",_Te="PUT",fTe="TRACE",gTe="http.request.method_original",ETe="http.request.resend_count",hTe=function(t){return"http.response.header."+t},mTe="http.response.status_code",TTe="http.route",STe="jvm.gc.action",ATe="jvm.gc.name",RTe="jvm.memory.pool.name",OTe="jvm.memory.type",ITe="heap",bTe="non_heap",PTe="jvm.thread.daemon",yTe="jvm.thread.state",vTe="blocked",NTe="new",CTe="runnable",MTe="terminated",LTe="timed_waiting",DTe="waiting",GTe="network.local.address",UTe="network.local.port",xTe="network.peer.address",wTe="network.peer.port",VTe="network.protocol.name",BTe="network.protocol.version",qTe="network.transport",jTe="pipe",HTe="quic",FTe="tcp",kTe="udp",WTe="unix",YTe="network.type",KTe="ipv4",XTe="ipv6",ZTe="otel.scope.name",zTe="otel.scope.version",JTe="otel.status_code",$Te="ERROR",QTe="OK",eSe="otel.status_description",tSe="server.address",rSe="server.port",nSe="service.name",oSe="service.version",iSe="signalr.connection.status",sSe="app_shutdown",aSe="normal_closure",uSe="timeout",cSe="signalr.transport",lSe="long_polling",dSe="server_sent_events",pSe="web_sockets",_Se="url.fragment",fSe="url.full",gSe="url.path",ESe="url.query",hSe="url.scheme",mSe="user_agent.original"});var TSe,SSe,ASe,RSe,OSe,ISe,bSe,PSe,ySe,vSe,NSe,CSe,MSe,LSe,DSe,GSe,USe,xSe,wSe,VSe,BSe,qSe,jSe,HSe,FSe,kSe,WSe,YSe,KSe,XSe,ZSe,gW=H(()=>{TSe="aspnetcore.diagnostics.exceptions",SSe="aspnetcore.rate_limiting.active_request_leases",ASe="aspnetcore.rate_limiting.queued_requests",RSe="aspnetcore.rate_limiting.request.time_in_queue",OSe="aspnetcore.rate_limiting.request_lease.duration",ISe="aspnetcore.rate_limiting.requests",bSe="aspnetcore.routing.match_attempts",PSe="http.client.request.duration",ySe="http.server.request.duration",vSe="jvm.class.count",NSe="jvm.class.loaded",CSe="jvm.class.unloaded",MSe="jvm.cpu.count",LSe="jvm.cpu.recent_utilization",DSe="jvm.cpu.time",GSe="jvm.gc.duration",USe="jvm.memory.committed",xSe="jvm.memory.limit",wSe="jvm.memory.used",VSe="jvm.memory.used_after_last_gc",BSe="jvm.thread.count",qSe="kestrel.active_connections",jSe="kestrel.active_tls_handshakes",HSe="kestrel.connection.duration",FSe="kestrel.queued_connections",kSe="kestrel.queued_requests",WSe="kestrel.rejected_connections",YSe="kestrel.tls_handshake.duration",KSe="kestrel.upgraded_connections",XSe="signalr.server.active_connections",ZSe="signalr.server.connection.duration"});var J={};M1(J,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>Bme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>qme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>jme,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Hme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>mme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>Tme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>Sme,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>Ame,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Kme,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>Xme,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Vme,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>wme,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>Fme,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>hme,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>kme,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Wme,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Yme,ATTR_CLIENT_ADDRESS:()=>Zme,ATTR_CLIENT_PORT:()=>zme,ATTR_ERROR_TYPE:()=>Jme,ATTR_EXCEPTION_ESCAPED:()=>Qme,ATTR_EXCEPTION_MESSAGE:()=>eTe,ATTR_EXCEPTION_STACKTRACE:()=>tTe,ATTR_EXCEPTION_TYPE:()=>rTe,ATTR_HTTP_REQUEST_HEADER:()=>nTe,ATTR_HTTP_REQUEST_METHOD:()=>oTe,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>gTe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>ETe,ATTR_HTTP_RESPONSE_HEADER:()=>hTe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>mTe,ATTR_HTTP_ROUTE:()=>TTe,ATTR_JVM_GC_ACTION:()=>STe,ATTR_JVM_GC_NAME:()=>ATe,ATTR_JVM_MEMORY_POOL_NAME:()=>RTe,ATTR_JVM_MEMORY_TYPE:()=>OTe,ATTR_JVM_THREAD_DAEMON:()=>PTe,ATTR_JVM_THREAD_STATE:()=>yTe,ATTR_NETWORK_LOCAL_ADDRESS:()=>GTe,ATTR_NETWORK_LOCAL_PORT:()=>UTe,ATTR_NETWORK_PEER_ADDRESS:()=>xTe,ATTR_NETWORK_PEER_PORT:()=>wTe,ATTR_NETWORK_PROTOCOL_NAME:()=>VTe,ATTR_NETWORK_PROTOCOL_VERSION:()=>BTe,ATTR_NETWORK_TRANSPORT:()=>qTe,ATTR_NETWORK_TYPE:()=>YTe,ATTR_OTEL_SCOPE_NAME:()=>ZTe,ATTR_OTEL_SCOPE_VERSION:()=>zTe,ATTR_OTEL_STATUS_CODE:()=>JTe,ATTR_OTEL_STATUS_DESCRIPTION:()=>eSe,ATTR_SERVER_ADDRESS:()=>tSe,ATTR_SERVER_PORT:()=>rSe,ATTR_SERVICE_NAME:()=>nSe,ATTR_SERVICE_VERSION:()=>oSe,ATTR_SIGNALR_CONNECTION_STATUS:()=>iSe,ATTR_SIGNALR_TRANSPORT:()=>cSe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>Rme,ATTR_TELEMETRY_SDK_NAME:()=>Ume,ATTR_TELEMETRY_SDK_VERSION:()=>xme,ATTR_URL_FRAGMENT:()=>_Se,ATTR_URL_FULL:()=>fSe,ATTR_URL_PATH:()=>gSe,ATTR_URL_QUERY:()=>ESe,ATTR_URL_SCHEME:()=>hSe,ATTR_USER_AGENT_ORIGINAL:()=>mSe,AWSECSLAUNCHTYPEVALUES_EC2:()=>whe,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Vhe,AwsEcsLaunchtypeValues:()=>Bhe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>The,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>She,CLOUDPLATFORMVALUES_AWS_EC2:()=>Ahe,CLOUDPLATFORMVALUES_AWS_ECS:()=>Rhe,CLOUDPLATFORMVALUES_AWS_EKS:()=>Ohe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>bhe,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Ihe,CLOUDPLATFORMVALUES_AZURE_AKS:()=>vhe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>Che,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>yhe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>Nhe,CLOUDPLATFORMVALUES_AZURE_VM:()=>Phe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Uhe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Ghe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>Lhe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Mhe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Dhe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>fhe,CLOUDPROVIDERVALUES_AWS:()=>ghe,CLOUDPROVIDERVALUES_AZURE:()=>Ehe,CLOUDPROVIDERVALUES_GCP:()=>hhe,CloudPlatformValues:()=>xhe,CloudProviderValues:()=>mhe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>$_e,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>sfe,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Q_e,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>ife,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>tfe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>ufe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>rfe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>efe,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>afe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>ofe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>nfe,DBSYSTEMVALUES_ADABAS:()=>A_e,DBSYSTEMVALUES_CACHE:()=>S_e,DBSYSTEMVALUES_CASSANDRA:()=>V_e,DBSYSTEMVALUES_CLOUDSCAPE:()=>p_e,DBSYSTEMVALUES_COCKROACHDB:()=>z_e,DBSYSTEMVALUES_COLDFUSION:()=>w_e,DBSYSTEMVALUES_COSMOSDB:()=>k_e,DBSYSTEMVALUES_COUCHBASE:()=>H_e,DBSYSTEMVALUES_COUCHDB:()=>F_e,DBSYSTEMVALUES_DB2:()=>u_e,DBSYSTEMVALUES_DERBY:()=>O_e,DBSYSTEMVALUES_DYNAMODB:()=>W_e,DBSYSTEMVALUES_EDB:()=>T_e,DBSYSTEMVALUES_ELASTICSEARCH:()=>X_e,DBSYSTEMVALUES_FILEMAKER:()=>I_e,DBSYSTEMVALUES_FIREBIRD:()=>R_e,DBSYSTEMVALUES_FIRSTSQL:()=>m_e,DBSYSTEMVALUES_GEODE:()=>K_e,DBSYSTEMVALUES_H2:()=>x_e,DBSYSTEMVALUES_HANADB:()=>E_e,DBSYSTEMVALUES_HBASE:()=>B_e,DBSYSTEMVALUES_HIVE:()=>d_e,DBSYSTEMVALUES_HSQLDB:()=>__e,DBSYSTEMVALUES_INFORMIX:()=>b_e,DBSYSTEMVALUES_INGRES:()=>h_e,DBSYSTEMVALUES_INSTANTDB:()=>P_e,DBSYSTEMVALUES_INTERBASE:()=>y_e,DBSYSTEMVALUES_MARIADB:()=>v_e,DBSYSTEMVALUES_MAXDB:()=>g_e,DBSYSTEMVALUES_MEMCACHED:()=>Z_e,DBSYSTEMVALUES_MONGODB:()=>q_e,DBSYSTEMVALUES_MSSQL:()=>i_e,DBSYSTEMVALUES_MYSQL:()=>s_e,DBSYSTEMVALUES_NEO4J:()=>Y_e,DBSYSTEMVALUES_NETEZZA:()=>N_e,DBSYSTEMVALUES_ORACLE:()=>a_e,DBSYSTEMVALUES_OTHER_SQL:()=>o_e,DBSYSTEMVALUES_PERVASIVE:()=>C_e,DBSYSTEMVALUES_POINTBASE:()=>M_e,DBSYSTEMVALUES_POSTGRESQL:()=>c_e,DBSYSTEMVALUES_PROGRESS:()=>f_e,DBSYSTEMVALUES_REDIS:()=>j_e,DBSYSTEMVALUES_REDSHIFT:()=>l_e,DBSYSTEMVALUES_SQLITE:()=>L_e,DBSYSTEMVALUES_SYBASE:()=>D_e,DBSYSTEMVALUES_TERADATA:()=>G_e,DBSYSTEMVALUES_VERTICA:()=>U_e,DbCassandraConsistencyLevelValues:()=>cfe,DbSystemValues:()=>J_e,ERROR_TYPE_VALUE_OTHER:()=>$me,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>mfe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>hfe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>Efe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>Sfe,FAASINVOKEDPROVIDERVALUES_AWS:()=>Afe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Rfe,FAASINVOKEDPROVIDERVALUES_GCP:()=>Ofe,FAASTRIGGERVALUES_DATASOURCE:()=>lfe,FAASTRIGGERVALUES_HTTP:()=>dfe,FAASTRIGGERVALUES_OTHER:()=>ffe,FAASTRIGGERVALUES_PUBSUB:()=>pfe,FAASTRIGGERVALUES_TIMER:()=>_fe,FaasDocumentOperationValues:()=>Tfe,FaasInvokedProviderValues:()=>Ife,FaasTriggerValues:()=>gfe,HOSTARCHVALUES_AMD64:()=>qhe,HOSTARCHVALUES_ARM32:()=>jhe,HOSTARCHVALUES_ARM64:()=>Hhe,HOSTARCHVALUES_IA64:()=>Fhe,HOSTARCHVALUES_PPC32:()=>khe,HOSTARCHVALUES_PPC64:()=>Whe,HOSTARCHVALUES_X86:()=>Yhe,HTTPFLAVORVALUES_HTTP_1_0:()=>age,HTTPFLAVORVALUES_HTTP_1_1:()=>uge,HTTPFLAVORVALUES_HTTP_2_0:()=>cge,HTTPFLAVORVALUES_QUIC:()=>dge,HTTPFLAVORVALUES_SPDY:()=>lge,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>sTe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>aTe,HTTP_REQUEST_METHOD_VALUE_GET:()=>uTe,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>cTe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>lTe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>iTe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>dTe,HTTP_REQUEST_METHOD_VALUE_POST:()=>pTe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>_Te,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>fTe,HostArchValues:()=>Khe,HttpFlavorValues:()=>pge,JVM_MEMORY_TYPE_VALUE_HEAP:()=>ITe,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>bTe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>vTe,JVM_THREAD_STATE_VALUE_NEW:()=>NTe,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>CTe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>MTe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>LTe,JVM_THREAD_STATE_VALUE_WAITING:()=>DTe,MESSAGETYPEVALUES_RECEIVED:()=>Vge,MESSAGETYPEVALUES_SENT:()=>wge,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>_ge,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>fge,MESSAGINGOPERATIONVALUES_PROCESS:()=>hge,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Ege,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>TSe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>SSe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>ASe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>ISe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>OSe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>RSe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>bSe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>PSe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>ySe,METRIC_JVM_CLASS_COUNT:()=>vSe,METRIC_JVM_CLASS_LOADED:()=>NSe,METRIC_JVM_CLASS_UNLOADED:()=>CSe,METRIC_JVM_CPU_COUNT:()=>MSe,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>LSe,METRIC_JVM_CPU_TIME:()=>DSe,METRIC_JVM_GC_DURATION:()=>GSe,METRIC_JVM_MEMORY_COMMITTED:()=>USe,METRIC_JVM_MEMORY_LIMIT:()=>xSe,METRIC_JVM_MEMORY_USED:()=>wSe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>VSe,METRIC_JVM_THREAD_COUNT:()=>BSe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>qSe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>jSe,METRIC_KESTREL_CONNECTION_DURATION:()=>HSe,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>FSe,METRIC_KESTREL_QUEUED_REQUESTS:()=>kSe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>WSe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>YSe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>KSe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>XSe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>ZSe,MessageTypeValues:()=>Bge,MessagingDestinationKindValues:()=>gge,MessagingOperationValues:()=>mge,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Hfe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Wfe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>qfe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>$fe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Ffe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>kfe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>zfe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Bfe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>ege,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Yfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Xfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Qfe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Kfe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Zfe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>rge,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Jfe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>ige,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>nge,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>oge,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>tge,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>jfe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Ufe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>xfe,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>wfe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Dfe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Gfe,NETTRANSPORTVALUES_INPROC:()=>Cfe,NETTRANSPORTVALUES_IP:()=>yfe,NETTRANSPORTVALUES_IP_TCP:()=>bfe,NETTRANSPORTVALUES_IP_UDP:()=>Pfe,NETTRANSPORTVALUES_OTHER:()=>Mfe,NETTRANSPORTVALUES_PIPE:()=>Nfe,NETTRANSPORTVALUES_UNIX:()=>vfe,NETWORK_TRANSPORT_VALUE_PIPE:()=>jTe,NETWORK_TRANSPORT_VALUE_QUIC:()=>HTe,NETWORK_TRANSPORT_VALUE_TCP:()=>FTe,NETWORK_TRANSPORT_VALUE_UDP:()=>kTe,NETWORK_TRANSPORT_VALUE_UNIX:()=>WTe,NETWORK_TYPE_VALUE_IPV4:()=>KTe,NETWORK_TYPE_VALUE_IPV6:()=>XTe,NetHostConnectionSubtypeValues:()=>sge,NetHostConnectionTypeValues:()=>Vfe,NetTransportValues:()=>Lfe,OSTYPEVALUES_AIX:()=>rme,OSTYPEVALUES_DARWIN:()=>zhe,OSTYPEVALUES_DRAGONFLYBSD:()=>eme,OSTYPEVALUES_FREEBSD:()=>Jhe,OSTYPEVALUES_HPUX:()=>tme,OSTYPEVALUES_LINUX:()=>Zhe,OSTYPEVALUES_NETBSD:()=>$he,OSTYPEVALUES_OPENBSD:()=>Qhe,OSTYPEVALUES_SOLARIS:()=>nme,OSTYPEVALUES_WINDOWS:()=>Xhe,OSTYPEVALUES_Z_OS:()=>ome,OTEL_STATUS_CODE_VALUE_ERROR:()=>$Te,OTEL_STATUS_CODE_VALUE_OK:()=>QTe,OsTypeValues:()=>ime,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>Nge,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>bge,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Sge,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>Gge,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Oge,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>vge,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>Lge,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Rge,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Ige,RPCGRPCSTATUSCODEVALUES_OK:()=>Tge,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>Cge,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>Pge,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>yge,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>Uge,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>Dge,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>Mge,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Age,RpcGrpcStatusCodeValues:()=>xge,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>ppe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Ipe,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>cpe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>ipe,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Rpe,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>hpe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>gpe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>bpe,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>_pe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>spe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>dpe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Epe,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>lpe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>ape,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>upe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Ope,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>Tpe,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Spe,SEMATTRS_AWS_DYNAMODB_SELECT:()=>fpe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>mpe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>ope,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>Ape,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>wle,SEMATTRS_CODE_FILEPATH:()=>jde,SEMATTRS_CODE_FUNCTION:()=>Bde,SEMATTRS_CODE_LINENO:()=>Hde,SEMATTRS_CODE_NAMESPACE:()=>qde,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>Xle,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>Qle,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>$le,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>zle,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>Yle,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>Kle,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>Jle,SEMATTRS_DB_CASSANDRA_TABLE:()=>Zle,SEMATTRS_DB_CONNECTION_STRING:()=>Ble,SEMATTRS_DB_HBASE_NAMESPACE:()=>ede,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>jle,SEMATTRS_DB_MONGODB_COLLECTION:()=>rde,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>Wle,SEMATTRS_DB_NAME:()=>Hle,SEMATTRS_DB_OPERATION:()=>kle,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>tde,SEMATTRS_DB_SQL_TABLE:()=>nde,SEMATTRS_DB_STATEMENT:()=>Fle,SEMATTRS_DB_SYSTEM:()=>Vle,SEMATTRS_DB_USER:()=>qle,SEMATTRS_ENDUSER_ID:()=>Gde,SEMATTRS_ENDUSER_ROLE:()=>Ude,SEMATTRS_ENDUSER_SCOPE:()=>xde,SEMATTRS_EXCEPTION_ESCAPED:()=>ade,SEMATTRS_EXCEPTION_MESSAGE:()=>ide,SEMATTRS_EXCEPTION_STACKTRACE:()=>sde,SEMATTRS_EXCEPTION_TYPE:()=>ode,SEMATTRS_FAAS_COLDSTART:()=>Ede,SEMATTRS_FAAS_CRON:()=>gde,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>lde,SEMATTRS_FAAS_DOCUMENT_NAME:()=>_de,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>dde,SEMATTRS_FAAS_DOCUMENT_TIME:()=>pde,SEMATTRS_FAAS_EXECUTION:()=>cde,SEMATTRS_FAAS_INVOKED_NAME:()=>hde,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>mde,SEMATTRS_FAAS_INVOKED_REGION:()=>Tde,SEMATTRS_FAAS_TIME:()=>fde,SEMATTRS_FAAS_TRIGGER:()=>ude,SEMATTRS_HTTP_CLIENT_IP:()=>npe,SEMATTRS_HTTP_FLAVOR:()=>Zde,SEMATTRS_HTTP_HOST:()=>Yde,SEMATTRS_HTTP_METHOD:()=>Fde,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Jde,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>$de,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>Qde,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>epe,SEMATTRS_HTTP_ROUTE:()=>rpe,SEMATTRS_HTTP_SCHEME:()=>Kde,SEMATTRS_HTTP_SERVER_NAME:()=>tpe,SEMATTRS_HTTP_STATUS_CODE:()=>Xde,SEMATTRS_HTTP_TARGET:()=>Wde,SEMATTRS_HTTP_URL:()=>kde,SEMATTRS_HTTP_USER_AGENT:()=>zde,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>t_e,SEMATTRS_MESSAGE_ID:()=>e_e,SEMATTRS_MESSAGE_TYPE:()=>Qpe,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>r_e,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Vpe,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Gpe,SEMATTRS_MESSAGING_DESTINATION:()=>ype,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>vpe,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Hpe,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>jpe,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>qpe,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>Fpe,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>kpe,SEMATTRS_MESSAGING_MESSAGE_ID:()=>Dpe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>xpe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Upe,SEMATTRS_MESSAGING_OPERATION:()=>wpe,SEMATTRS_MESSAGING_PROTOCOL:()=>Cpe,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Mpe,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Bpe,SEMATTRS_MESSAGING_SYSTEM:()=>Ppe,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>Npe,SEMATTRS_MESSAGING_URL:()=>Lpe,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Lde,SEMATTRS_NET_HOST_CARRIER_MCC:()=>Cde,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Mde,SEMATTRS_NET_HOST_CARRIER_NAME:()=>Nde,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>vde,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>yde,SEMATTRS_NET_HOST_IP:()=>Ide,SEMATTRS_NET_HOST_NAME:()=>Pde,SEMATTRS_NET_HOST_PORT:()=>bde,SEMATTRS_NET_PEER_IP:()=>Ade,SEMATTRS_NET_PEER_NAME:()=>Ode,SEMATTRS_NET_PEER_PORT:()=>Rde,SEMATTRS_NET_TRANSPORT:()=>Sde,SEMATTRS_PEER_SERVICE:()=>Dde,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>Xpe,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Jpe,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>$pe,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>zpe,SEMATTRS_RPC_JSONRPC_VERSION:()=>Zpe,SEMATTRS_RPC_METHOD:()=>Kpe,SEMATTRS_RPC_SERVICE:()=>Ype,SEMATTRS_RPC_SYSTEM:()=>Wpe,SEMATTRS_THREAD_ID:()=>wde,SEMATTRS_THREAD_NAME:()=>Vde,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>Yge,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>Wge,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>Kge,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>Xge,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>Zge,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>zge,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>Jge,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>Qge,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>$ge,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>tEe,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>eEe,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>jge,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>Fge,SEMRESATTRS_CLOUD_PLATFORM:()=>kge,SEMRESATTRS_CLOUD_PROVIDER:()=>qge,SEMRESATTRS_CLOUD_REGION:()=>Hge,SEMRESATTRS_CONTAINER_ID:()=>nEe,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>iEe,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>sEe,SEMRESATTRS_CONTAINER_NAME:()=>rEe,SEMRESATTRS_CONTAINER_RUNTIME:()=>oEe,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>aEe,SEMRESATTRS_DEVICE_ID:()=>uEe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>cEe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>lEe,SEMRESATTRS_FAAS_ID:()=>pEe,SEMRESATTRS_FAAS_INSTANCE:()=>fEe,SEMRESATTRS_FAAS_MAX_MEMORY:()=>gEe,SEMRESATTRS_FAAS_NAME:()=>dEe,SEMRESATTRS_FAAS_VERSION:()=>_Ee,SEMRESATTRS_HOST_ARCH:()=>TEe,SEMRESATTRS_HOST_ID:()=>EEe,SEMRESATTRS_HOST_IMAGE_ID:()=>AEe,SEMRESATTRS_HOST_IMAGE_NAME:()=>SEe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>REe,SEMRESATTRS_HOST_NAME:()=>hEe,SEMRESATTRS_HOST_TYPE:()=>mEe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>OEe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>NEe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>jEe,SEMRESATTRS_K8S_CRONJOB_UID:()=>qEe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>wEe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>xEe,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>DEe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>LEe,SEMRESATTRS_K8S_JOB_NAME:()=>BEe,SEMRESATTRS_K8S_JOB_UID:()=>VEe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>PEe,SEMRESATTRS_K8S_NODE_NAME:()=>IEe,SEMRESATTRS_K8S_NODE_UID:()=>bEe,SEMRESATTRS_K8S_POD_NAME:()=>vEe,SEMRESATTRS_K8S_POD_UID:()=>yEe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>MEe,SEMRESATTRS_K8S_REPLICASET_UID:()=>CEe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>UEe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>GEe,SEMRESATTRS_OS_DESCRIPTION:()=>FEe,SEMRESATTRS_OS_NAME:()=>kEe,SEMRESATTRS_OS_TYPE:()=>HEe,SEMRESATTRS_OS_VERSION:()=>WEe,SEMRESATTRS_PROCESS_COMMAND:()=>ZEe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>JEe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>zEe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>KEe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>XEe,SEMRESATTRS_PROCESS_OWNER:()=>$Ee,SEMRESATTRS_PROCESS_PID:()=>YEe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>the,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>QEe,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>ehe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>ohe,SEMRESATTRS_SERVICE_NAME:()=>rhe,SEMRESATTRS_SERVICE_NAMESPACE:()=>nhe,SEMRESATTRS_SERVICE_VERSION:()=>ihe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>che,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>ahe,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>she,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>uhe,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>phe,SEMRESATTRS_WEBENGINE_NAME:()=>lhe,SEMRESATTRS_WEBENGINE_VERSION:()=>dhe,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>sSe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>aSe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>uSe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>lSe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>dSe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>pSe,SemanticAttributes:()=>n_e,SemanticResourceAttributes:()=>_he,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>sme,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>ame,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>ume,TELEMETRYSDKLANGUAGEVALUES_GO:()=>cme,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>lme,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>dme,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>pme,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>_me,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>fme,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>gme,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Ome,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Ime,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>bme,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>Pme,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>yme,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>vme,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Nme,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Cme,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Mme,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Lme,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Dme,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>Gme,TelemetrySdkLanguageValues:()=>Eme});var $=H(()=>{jH();_W();fW();gW()});var EW=c(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.SDK_INFO=void 0;var zSe=VI(),Gl=($(),m(J));J_.SDK_INFO={[Gl.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[Gl.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[Gl.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:Gl.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[Gl.SEMRESATTRS_TELEMETRY_SDK_VERSION]:zSe.VERSION}});var hW=c($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.unrefTimer=void 0;function JSe(t){t.unref()}$_.unrefTimer=JSe});var TW=c(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.unrefTimer=ke.SDK_INFO=ke.otperformance=ke.RandomIdGenerator=ke.hexToBase64=ke._globalThis=ke.getEnv=ke.getEnvWithoutDefaults=void 0;var mW=Fw();Object.defineProperty(ke,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return mW.getEnvWithoutDefaults}});Object.defineProperty(ke,"getEnv",{enumerable:!0,get:function(){return mW.getEnv}});var $Se=kw();Object.defineProperty(ke,"_globalThis",{enumerable:!0,get:function(){return $Se._globalThis}});var QSe=Yw();Object.defineProperty(ke,"hexToBase64",{enumerable:!0,get:function(){return QSe.hexToBase64}});var eAe=Zw();Object.defineProperty(ke,"RandomIdGenerator",{enumerable:!0,get:function(){return eAe.RandomIdGenerator}});var tAe=zw();Object.defineProperty(ke,"otperformance",{enumerable:!0,get:function(){return tAe.otperformance}});var rAe=EW();Object.defineProperty(ke,"SDK_INFO",{enumerable:!0,get:function(){return rAe.SDK_INFO}});var nAe=hW();Object.defineProperty(ke,"unrefTimer",{enumerable:!0,get:function(){return nAe.unrefTimer}})});var qI=c(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.unrefTimer=We.otperformance=We.hexToBase64=We.getEnvWithoutDefaults=We.getEnv=We._globalThis=We.SDK_INFO=We.RandomIdGenerator=void 0;var Bo=TW();Object.defineProperty(We,"RandomIdGenerator",{enumerable:!0,get:function(){return Bo.RandomIdGenerator}});Object.defineProperty(We,"SDK_INFO",{enumerable:!0,get:function(){return Bo.SDK_INFO}});Object.defineProperty(We,"_globalThis",{enumerable:!0,get:function(){return Bo._globalThis}});Object.defineProperty(We,"getEnv",{enumerable:!0,get:function(){return Bo.getEnv}});Object.defineProperty(We,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Bo.getEnvWithoutDefaults}});Object.defineProperty(We,"hexToBase64",{enumerable:!0,get:function(){return Bo.hexToBase64}});Object.defineProperty(We,"otperformance",{enumerable:!0,get:function(){return Bo.otperformance}});Object.defineProperty(We,"unrefTimer",{enumerable:!0,get:function(){return Bo.unrefTimer}})});var OW=c(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.addHrTimes=pe.isTimeInput=pe.isTimeInputHrTime=pe.hrTimeToMicroseconds=pe.hrTimeToMilliseconds=pe.hrTimeToNanoseconds=pe.hrTimeToTimeStamp=pe.hrTimeDuration=pe.timeInputToHrTime=pe.hrTime=pe.getTimeOrigin=pe.millisToHrTime=void 0;var jI=qI(),SW=9,oAe=6,iAe=Math.pow(10,oAe),Q_=Math.pow(10,SW);function Ul(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*iAe);return[r,n]}pe.millisToHrTime=Ul;function HI(){let t=jI.otperformance.timeOrigin;if(typeof t!="number"){let e=jI.otperformance;t=e.timing&&e.timing.fetchStart}return t}pe.getTimeOrigin=HI;function AW(t){let e=Ul(HI()),r=Ul(typeof t=="number"?t:jI.otperformance.now());return RW(e,r)}pe.hrTime=AW;function sAe(t){if(FI(t))return t;if(typeof t=="number")return t<HI()?AW(t):Ul(t);if(t instanceof Date)return Ul(t.getTime());throw TypeError("Invalid input type")}pe.timeInputToHrTime=sAe;function aAe(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=Q_),[r,n]}pe.hrTimeDuration=aAe;function uAe(t){let e=SW,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}pe.hrTimeToTimeStamp=uAe;function cAe(t){return t[0]*Q_+t[1]}pe.hrTimeToNanoseconds=cAe;function lAe(t){return t[0]*1e3+t[1]/1e6}pe.hrTimeToMilliseconds=lAe;function dAe(t){return t[0]*1e6+t[1]/1e3}pe.hrTimeToMicroseconds=dAe;function FI(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}pe.isTimeInputHrTime=FI;function pAe(t){return FI(t)||typeof t=="number"||t instanceof Date}pe.isTimeInput=pAe;function RW(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=Q_&&(r[1]-=Q_,r[0]+=1),r}pe.addHrTimes=RW});var IW=c(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.ExportResultCode=void 0;var _Ae;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(_Ae=xl.ExportResultCode||(xl.ExportResultCode={}))});var PW=c(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.CompositePropagator=void 0;var bW=(P(),m(b)),kI=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){bW.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){bW.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};ef.CompositePropagator=kI});var yW=c(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.validateValue=Oa.validateKey=void 0;var WI="[_0-9a-z-*/]",fAe=`[a-z]${WI}{0,255}`,gAe=`[a-z0-9]${WI}{0,240}@[a-z]${WI}{0,13}`,EAe=new RegExp(`^(?:${fAe}|${gAe})$`),hAe=/^[ -~]{0,255}[!-~]$/,mAe=/,|=/;function TAe(t){return EAe.test(t)}Oa.validateKey=TAe;function SAe(t){return hAe.test(t)&&!mAe.test(t)}Oa.validateValue=SAe});var KI=c(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.TraceState=void 0;var vW=yW(),NW=32,AAe=512,CW=",",MW="=",YI=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+MW+this.get(r)),e),[]).join(CW)}_parse(e){e.length>AAe||(this._internalState=e.split(CW).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(MW);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,vW.validateKey)(s)&&(0,vW.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>NW&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,NW))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};tf.TraceState=YI});var DW=c(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.W3CTraceContextPropagator=mt.parseTraceParent=mt.TRACE_STATE_HEADER=mt.TRACE_PARENT_HEADER=void 0;var rf=(P(),m(b)),RAe=Ll(),OAe=KI();mt.TRACE_PARENT_HEADER="traceparent";mt.TRACE_STATE_HEADER="tracestate";var IAe="00",bAe="(?!ff)[\\da-f]{2}",PAe="(?![0]{32})[\\da-f]{32}",yAe="(?![0]{16})[\\da-f]{16}",vAe="[\\da-f]{2}",NAe=new RegExp(`^\\s?(${bAe})-(${PAe})-(${yAe})-(${vAe})(-.*)?\\s?$`);function LW(t){let e=NAe.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}mt.parseTraceParent=LW;var XI=class{inject(e,r,n){let o=rf.trace.getSpanContext(e);if(!o||(0,RAe.isTracingSuppressed)(e)||!(0,rf.isSpanContextValid)(o))return;let i=`${IAe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||rf.TraceFlags.NONE).toString(16)}`;n.set(r,mt.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,mt.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,mt.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=LW(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,mt.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new OAe.TraceState(typeof u=="string"?u:void 0)}return rf.trace.setSpanContext(e,s)}fields(){return[mt.TRACE_PARENT_HEADER,mt.TRACE_STATE_HEADER]}};mt.W3CTraceContextPropagator=XI});var GW=c(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.getRPCMetadata=Hr.deleteRPCMetadata=Hr.setRPCMetadata=Hr.RPCType=void 0;var CAe=(P(),m(b)),ZI=(0,CAe.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),MAe;(function(t){t.HTTP="http"})(MAe=Hr.RPCType||(Hr.RPCType={}));function LAe(t,e){return t.setValue(ZI,e)}Hr.setRPCMetadata=LAe;function DAe(t){return t.deleteValue(ZI)}Hr.deleteRPCMetadata=DAe;function GAe(t){return t.getValue(ZI)}Hr.getRPCMetadata=GAe});var JI=c(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.AlwaysOffSampler=void 0;var UAe=(P(),m(b)),zI=class{shouldSample(){return{decision:UAe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};nf.AlwaysOffSampler=zI});var QI=c(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.AlwaysOnSampler=void 0;var xAe=(P(),m(b)),$I=class{shouldSample(){return{decision:xAe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};of.AlwaysOnSampler=$I});var xW=c(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.ParentBasedSampler=void 0;var sf=(P(),m(b)),wAe=LI(),UW=JI(),eb=QI(),tb=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,wAe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new eb.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new eb.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new UW.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new eb.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new UW.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=sf.trace.getSpanContext(e);return!a||!(0,sf.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&sf.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&sf.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};af.ParentBasedSampler=tb});var wW=c(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.TraceIdRatioBasedSampler=void 0;var rb=(P(),m(b)),nb=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,rb.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?rb.SamplingDecision.RECORD_AND_SAMPLED:rb.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};uf.TraceIdRatioBasedSampler=nb});var HW=c(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.isPlainObject=void 0;var VAe="[object Object]",BAe="[object Null]",qAe="[object Undefined]",jAe=Function.prototype,VW=jAe.toString,HAe=VW.call(Object),FAe=kAe(Object.getPrototypeOf,Object),BW=Object.prototype,qW=BW.hasOwnProperty,_s=Symbol?Symbol.toStringTag:void 0,jW=BW.toString;function kAe(t,e){return function(r){return t(e(r))}}function WAe(t){if(!YAe(t)||KAe(t)!==VAe)return!1;let e=FAe(t);if(e===null)return!0;let r=qW.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&VW.call(r)===HAe}cf.isPlainObject=WAe;function YAe(t){return t!=null&&typeof t=="object"}function KAe(t){return t==null?t===void 0?qAe:BAe:_s&&_s in Object(t)?XAe(t):ZAe(t)}function XAe(t){let e=qW.call(t,_s),r=t[_s],n=!1;try{t[_s]=void 0,n=!0}catch{}let o=jW.call(t);return n&&(e?t[_s]=r:delete t[_s]),o}function ZAe(t){return jW.call(t)}});var KW=c(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.merge=void 0;var FW=HW(),zAe=20;function JAe(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=WW(e,t.shift(),0,r);return e}pf.merge=JAe;function ob(t){return df(t)?t.slice():t}function WW(t,e,r=0,n){let o;if(!(r>zAe)){if(r++,lf(t)||lf(e)||YW(e))o=ob(e);else if(df(t)){if(o=t.slice(),df(e))for(let i=0,s=e.length;i<s;i++)o.push(ob(e[i]));else if(wl(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=ob(e[u])}}}else if(wl(t))if(wl(e)){if(!$Ae(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(lf(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(kW(t,u,n)||kW(e,u,n))delete o[u];else{if(wl(d)&&wl(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=WW(o[u],l,r,n)}}}}else o=e;return o}}function kW(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function df(t){return Array.isArray(t)}function YW(t){return typeof t=="function"}function wl(t){return!lf(t)&&!df(t)&&!YW(t)&&typeof t=="object"}function lf(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function $Ae(t,e){return!(!(0,FW.isPlainObject)(t)||!(0,FW.isPlainObject)(e))}});var XW=c(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.callWithTimeout=Ia.TimeoutError=void 0;var _f=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};Ia.TimeoutError=_f;function QAe(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new _f("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}Ia.callWithTimeout=QAe});var zW=c(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.isUrlIgnored=ba.urlMatches=void 0;function ZW(t,e){return typeof e=="string"?t===e:!!t.match(e)}ba.urlMatches=ZW;function eRe(t,e){if(!e)return!1;for(let r of e)if(ZW(t,r))return!0;return!1}ba.isUrlIgnored=eRe});var JW=c(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.isWrapped=void 0;function tRe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ff.isWrapped=tRe});var $W=c(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.Deferred=void 0;var ib=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};gf.Deferred=ib});var QW=c(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.BindOnceFuture=void 0;var rRe=$W(),sb=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new rRe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};Ef.BindOnceFuture=sb});var tY=c(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf._export=void 0;var eY=(P(),m(b)),nRe=Ll();function oRe(t,e){return new Promise(r=>{eY.context.with((0,nRe.suppressTracing)(eY.context.active()),()=>{t.export(e,n=>{r(n)})})})}hf._export=oRe});var Af=c(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=R.DEFAULT_ATTRIBUTE_COUNT_LIMIT=R.TraceState=R.unsuppressTracing=R.suppressTracing=R.isTracingSuppressed=R.TraceIdRatioBasedSampler=R.ParentBasedSampler=R.AlwaysOnSampler=R.AlwaysOffSampler=R.setRPCMetadata=R.getRPCMetadata=R.deleteRPCMetadata=R.RPCType=R.parseTraceParent=R.W3CTraceContextPropagator=R.TRACE_STATE_HEADER=R.TRACE_PARENT_HEADER=R.CompositePropagator=R.unrefTimer=R.otperformance=R.hexToBase64=R.getEnvWithoutDefaults=R.getEnv=R._globalThis=R.SDK_INFO=R.RandomIdGenerator=R.baggageUtils=R.ExportResultCode=R.hexToBinary=R.timeInputToHrTime=R.millisToHrTime=R.isTimeInputHrTime=R.isTimeInput=R.hrTimeToTimeStamp=R.hrTimeToNanoseconds=R.hrTimeToMilliseconds=R.hrTimeToMicroseconds=R.hrTimeDuration=R.hrTime=R.getTimeOrigin=R.addHrTimes=R.loggingErrorHandler=R.setGlobalErrorHandler=R.globalErrorHandler=R.sanitizeAttributes=R.isAttributeValue=R.isAttributeKey=R.AnchoredClock=R.W3CBaggagePropagator=void 0;R.internal=R.VERSION=R.BindOnceFuture=R.isWrapped=R.urlMatches=R.isUrlIgnored=R.callWithTimeout=R.TimeoutError=R.TracesSamplerValues=R.merge=R.parseEnvironment=R.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=R.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=R.DEFAULT_ENVIRONMENT=void 0;var iRe=Uw();Object.defineProperty(R,"W3CBaggagePropagator",{enumerable:!0,get:function(){return iRe.W3CBaggagePropagator}});var sRe=xw();Object.defineProperty(R,"AnchoredClock",{enumerable:!0,get:function(){return sRe.AnchoredClock}});var ab=jw();Object.defineProperty(R,"isAttributeKey",{enumerable:!0,get:function(){return ab.isAttributeKey}});Object.defineProperty(R,"isAttributeValue",{enumerable:!0,get:function(){return ab.isAttributeValue}});Object.defineProperty(R,"sanitizeAttributes",{enumerable:!0,get:function(){return ab.sanitizeAttributes}});var rY=LI();Object.defineProperty(R,"globalErrorHandler",{enumerable:!0,get:function(){return rY.globalErrorHandler}});Object.defineProperty(R,"setGlobalErrorHandler",{enumerable:!0,get:function(){return rY.setGlobalErrorHandler}});var aRe=MI();Object.defineProperty(R,"loggingErrorHandler",{enumerable:!0,get:function(){return aRe.loggingErrorHandler}});var Er=OW();Object.defineProperty(R,"addHrTimes",{enumerable:!0,get:function(){return Er.addHrTimes}});Object.defineProperty(R,"getTimeOrigin",{enumerable:!0,get:function(){return Er.getTimeOrigin}});Object.defineProperty(R,"hrTime",{enumerable:!0,get:function(){return Er.hrTime}});Object.defineProperty(R,"hrTimeDuration",{enumerable:!0,get:function(){return Er.hrTimeDuration}});Object.defineProperty(R,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Er.hrTimeToMicroseconds}});Object.defineProperty(R,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Er.hrTimeToMilliseconds}});Object.defineProperty(R,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Er.hrTimeToNanoseconds}});Object.defineProperty(R,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Er.hrTimeToTimeStamp}});Object.defineProperty(R,"isTimeInput",{enumerable:!0,get:function(){return Er.isTimeInput}});Object.defineProperty(R,"isTimeInputHrTime",{enumerable:!0,get:function(){return Er.isTimeInputHrTime}});Object.defineProperty(R,"millisToHrTime",{enumerable:!0,get:function(){return Er.millisToHrTime}});Object.defineProperty(R,"timeInputToHrTime",{enumerable:!0,get:function(){return Er.timeInputToHrTime}});var uRe=xI();Object.defineProperty(R,"hexToBinary",{enumerable:!0,get:function(){return uRe.hexToBinary}});var cRe=IW();Object.defineProperty(R,"ExportResultCode",{enumerable:!0,get:function(){return cRe.ExportResultCode}});var mf=PI();R.baggageUtils={getKeyPairs:mf.getKeyPairs,serializeKeyPairs:mf.serializeKeyPairs,parseKeyPairsIntoRecord:mf.parseKeyPairsIntoRecord,parsePairKeyValue:mf.parsePairKeyValue};var qo=qI();Object.defineProperty(R,"RandomIdGenerator",{enumerable:!0,get:function(){return qo.RandomIdGenerator}});Object.defineProperty(R,"SDK_INFO",{enumerable:!0,get:function(){return qo.SDK_INFO}});Object.defineProperty(R,"_globalThis",{enumerable:!0,get:function(){return qo._globalThis}});Object.defineProperty(R,"getEnv",{enumerable:!0,get:function(){return qo.getEnv}});Object.defineProperty(R,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return qo.getEnvWithoutDefaults}});Object.defineProperty(R,"hexToBase64",{enumerable:!0,get:function(){return qo.hexToBase64}});Object.defineProperty(R,"otperformance",{enumerable:!0,get:function(){return qo.otperformance}});Object.defineProperty(R,"unrefTimer",{enumerable:!0,get:function(){return qo.unrefTimer}});var lRe=PW();Object.defineProperty(R,"CompositePropagator",{enumerable:!0,get:function(){return lRe.CompositePropagator}});var Tf=DW();Object.defineProperty(R,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return Tf.TRACE_PARENT_HEADER}});Object.defineProperty(R,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return Tf.TRACE_STATE_HEADER}});Object.defineProperty(R,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return Tf.W3CTraceContextPropagator}});Object.defineProperty(R,"parseTraceParent",{enumerable:!0,get:function(){return Tf.parseTraceParent}});var Sf=GW();Object.defineProperty(R,"RPCType",{enumerable:!0,get:function(){return Sf.RPCType}});Object.defineProperty(R,"deleteRPCMetadata",{enumerable:!0,get:function(){return Sf.deleteRPCMetadata}});Object.defineProperty(R,"getRPCMetadata",{enumerable:!0,get:function(){return Sf.getRPCMetadata}});Object.defineProperty(R,"setRPCMetadata",{enumerable:!0,get:function(){return Sf.setRPCMetadata}});var dRe=JI();Object.defineProperty(R,"AlwaysOffSampler",{enumerable:!0,get:function(){return dRe.AlwaysOffSampler}});var pRe=QI();Object.defineProperty(R,"AlwaysOnSampler",{enumerable:!0,get:function(){return pRe.AlwaysOnSampler}});var _Re=xW();Object.defineProperty(R,"ParentBasedSampler",{enumerable:!0,get:function(){return _Re.ParentBasedSampler}});var fRe=wW();Object.defineProperty(R,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return fRe.TraceIdRatioBasedSampler}});var ub=Ll();Object.defineProperty(R,"isTracingSuppressed",{enumerable:!0,get:function(){return ub.isTracingSuppressed}});Object.defineProperty(R,"suppressTracing",{enumerable:!0,get:function(){return ub.suppressTracing}});Object.defineProperty(R,"unsuppressTracing",{enumerable:!0,get:function(){return ub.unsuppressTracing}});var gRe=KI();Object.defineProperty(R,"TraceState",{enumerable:!0,get:function(){return gRe.TraceState}});var Pa=GI();Object.defineProperty(R,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return Pa.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(R,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return Pa.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(R,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return Pa.DEFAULT_ENVIRONMENT}});Object.defineProperty(R,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return Pa.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(R,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return Pa.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(R,"parseEnvironment",{enumerable:!0,get:function(){return Pa.parseEnvironment}});var ERe=KW();Object.defineProperty(R,"merge",{enumerable:!0,get:function(){return ERe.merge}});var hRe=DI();Object.defineProperty(R,"TracesSamplerValues",{enumerable:!0,get:function(){return hRe.TracesSamplerValues}});var nY=XW();Object.defineProperty(R,"TimeoutError",{enumerable:!0,get:function(){return nY.TimeoutError}});Object.defineProperty(R,"callWithTimeout",{enumerable:!0,get:function(){return nY.callWithTimeout}});var oY=zW();Object.defineProperty(R,"isUrlIgnored",{enumerable:!0,get:function(){return oY.isUrlIgnored}});Object.defineProperty(R,"urlMatches",{enumerable:!0,get:function(){return oY.urlMatches}});var mRe=JW();Object.defineProperty(R,"isWrapped",{enumerable:!0,get:function(){return mRe.isWrapped}});var TRe=QW();Object.defineProperty(R,"BindOnceFuture",{enumerable:!0,get:function(){return TRe.BindOnceFuture}});var SRe=VI();Object.defineProperty(R,"VERSION",{enumerable:!0,get:function(){return SRe.VERSION}});var ARe=tY();R.internal={_export:ARe._export}});var Vl=c((v8e,iY)=>{var RRe="2.0.0",ORe=Number.MAX_SAFE_INTEGER||9007199254740991,IRe=16,bRe=250,PRe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];iY.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:IRe,MAX_SAFE_BUILD_LENGTH:bRe,MAX_SAFE_INTEGER:ORe,RELEASE_TYPES:PRe,SEMVER_SPEC_VERSION:RRe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Bl=c((N8e,sY)=>{var yRe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};sY.exports=yRe});var ya=c((Zn,aY)=>{var{MAX_SAFE_COMPONENT_LENGTH:cb,MAX_SAFE_BUILD_LENGTH:vRe,MAX_LENGTH:NRe}=Vl(),CRe=Bl();Zn=aY.exports={};var MRe=Zn.re=[],LRe=Zn.safeRe=[],V=Zn.src=[],B=Zn.t={},DRe=0,lb="[a-zA-Z0-9-]",GRe=[["\\s",1],["\\d",NRe],[lb,vRe]],URe=t=>{for(let[e,r]of GRe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},K=(t,e,r)=>{let n=URe(e),o=DRe++;CRe(t,o,e),B[t]=o,V[o]=e,MRe[o]=new RegExp(e,r?"g":void 0),LRe[o]=new RegExp(n,r?"g":void 0)};K("NUMERICIDENTIFIER","0|[1-9]\\d*");K("NUMERICIDENTIFIERLOOSE","\\d+");K("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${lb}*`);K("MAINVERSION",`(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})\\.(${V[B.NUMERICIDENTIFIER]})`);K("MAINVERSIONLOOSE",`(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})\\.(${V[B.NUMERICIDENTIFIERLOOSE]})`);K("PRERELEASEIDENTIFIER",`(?:${V[B.NUMERICIDENTIFIER]}|${V[B.NONNUMERICIDENTIFIER]})`);K("PRERELEASEIDENTIFIERLOOSE",`(?:${V[B.NUMERICIDENTIFIERLOOSE]}|${V[B.NONNUMERICIDENTIFIER]})`);K("PRERELEASE",`(?:-(${V[B.PRERELEASEIDENTIFIER]}(?:\\.${V[B.PRERELEASEIDENTIFIER]})*))`);K("PRERELEASELOOSE",`(?:-?(${V[B.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${V[B.PRERELEASEIDENTIFIERLOOSE]})*))`);K("BUILDIDENTIFIER",`${lb}+`);K("BUILD",`(?:\\+(${V[B.BUILDIDENTIFIER]}(?:\\.${V[B.BUILDIDENTIFIER]})*))`);K("FULLPLAIN",`v?${V[B.MAINVERSION]}${V[B.PRERELEASE]}?${V[B.BUILD]}?`);K("FULL",`^${V[B.FULLPLAIN]}$`);K("LOOSEPLAIN",`[v=\\s]*${V[B.MAINVERSIONLOOSE]}${V[B.PRERELEASELOOSE]}?${V[B.BUILD]}?`);K("LOOSE",`^${V[B.LOOSEPLAIN]}$`);K("GTLT","((?:<|>)?=?)");K("XRANGEIDENTIFIERLOOSE",`${V[B.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);K("XRANGEIDENTIFIER",`${V[B.NUMERICIDENTIFIER]}|x|X|\\*`);K("XRANGEPLAIN",`[v=\\s]*(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:\\.(${V[B.XRANGEIDENTIFIER]})(?:${V[B.PRERELEASE]})?${V[B.BUILD]}?)?)?`);K("XRANGEPLAINLOOSE",`[v=\\s]*(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:\\.(${V[B.XRANGEIDENTIFIERLOOSE]})(?:${V[B.PRERELEASELOOSE]})?${V[B.BUILD]}?)?)?`);K("XRANGE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAIN]}$`);K("XRANGELOOSE",`^${V[B.GTLT]}\\s*${V[B.XRANGEPLAINLOOSE]}$`);K("COERCEPLAIN",`(^|[^\\d])(\\d{1,${cb}})(?:\\.(\\d{1,${cb}}))?(?:\\.(\\d{1,${cb}}))?`);K("COERCE",`${V[B.COERCEPLAIN]}(?:$|[^\\d])`);K("COERCEFULL",V[B.COERCEPLAIN]+`(?:${V[B.PRERELEASE]})?(?:${V[B.BUILD]})?(?:$|[^\\d])`);K("COERCERTL",V[B.COERCE],!0);K("COERCERTLFULL",V[B.COERCEFULL],!0);K("LONETILDE","(?:~>?)");K("TILDETRIM",`(\\s*)${V[B.LONETILDE]}\\s+`,!0);Zn.tildeTrimReplace="$1~";K("TILDE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAIN]}$`);K("TILDELOOSE",`^${V[B.LONETILDE]}${V[B.XRANGEPLAINLOOSE]}$`);K("LONECARET","(?:\\^)");K("CARETTRIM",`(\\s*)${V[B.LONECARET]}\\s+`,!0);Zn.caretTrimReplace="$1^";K("CARET",`^${V[B.LONECARET]}${V[B.XRANGEPLAIN]}$`);K("CARETLOOSE",`^${V[B.LONECARET]}${V[B.XRANGEPLAINLOOSE]}$`);K("COMPARATORLOOSE",`^${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]})$|^$`);K("COMPARATOR",`^${V[B.GTLT]}\\s*(${V[B.FULLPLAIN]})$|^$`);K("COMPARATORTRIM",`(\\s*)${V[B.GTLT]}\\s*(${V[B.LOOSEPLAIN]}|${V[B.XRANGEPLAIN]})`,!0);Zn.comparatorTrimReplace="$1$2$3";K("HYPHENRANGE",`^\\s*(${V[B.XRANGEPLAIN]})\\s+-\\s+(${V[B.XRANGEPLAIN]})\\s*$`);K("HYPHENRANGELOOSE",`^\\s*(${V[B.XRANGEPLAINLOOSE]})\\s+-\\s+(${V[B.XRANGEPLAINLOOSE]})\\s*$`);K("STAR","(<|>)?=?\\s*\\*");K("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");K("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Rf=c((C8e,uY)=>{var xRe=Object.freeze({loose:!0}),wRe=Object.freeze({}),VRe=t=>t?typeof t!="object"?xRe:t:wRe;uY.exports=VRe});var db=c((M8e,dY)=>{var cY=/^[0-9]+$/,lY=(t,e)=>{let r=cY.test(t),n=cY.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},BRe=(t,e)=>lY(e,t);dY.exports={compareIdentifiers:lY,rcompareIdentifiers:BRe}});var Tt=c((L8e,gY)=>{var Of=Bl(),{MAX_LENGTH:pY,MAX_SAFE_INTEGER:If}=Vl(),{safeRe:_Y,t:fY}=ya(),qRe=Rf(),{compareIdentifiers:va}=db(),pb=class t{constructor(e,r){if(r=qRe(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>pY)throw new TypeError(`version is longer than ${pY} characters`);Of("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?_Y[fY.LOOSE]:_Y[fY.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>If||this.major<0)throw new TypeError("Invalid major version");if(this.minor>If||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>If||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let i=+o;if(i>=0&&i<If)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Of("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),va(this.major,e.major)||va(this.minor,e.minor)||va(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],o=e.prerelease[r];if(Of("prerelease compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return va(n,o)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],o=e.build[r];if(Of("build compare",r,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return va(n,o)}while(++r)}inc(e,r,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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":{let o=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(r){let i=[r,o];n===!1&&(i=[r]),va(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};gY.exports=pb});var fs=c((D8e,hY)=>{var EY=Tt(),jRe=(t,e,r=!1)=>{if(t instanceof EY)return t;try{return new EY(t,e)}catch(n){if(!r)return null;throw n}};hY.exports=jRe});var TY=c((G8e,mY)=>{var HRe=fs(),FRe=(t,e)=>{let r=HRe(t,e);return r?r.version:null};mY.exports=FRe});var AY=c((U8e,SY)=>{var kRe=fs(),WRe=(t,e)=>{let r=kRe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};SY.exports=WRe});var IY=c((x8e,OY)=>{var RY=Tt(),YRe=(t,e,r,n,o)=>{typeof r=="string"&&(o=n,n=r,r=void 0);try{return new RY(t instanceof RY?t.version:t,r).inc(e,n,o).version}catch{return null}};OY.exports=YRe});var yY=c((w8e,PY)=>{var bY=fs(),KRe=(t,e)=>{let r=bY(t,null,!0),n=bY(e,null,!0),o=r.compare(n);if(o===0)return null;let i=o>0,s=i?r:n,a=i?n:r,u=!!s.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let d=u?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"};PY.exports=KRe});var NY=c((V8e,vY)=>{var XRe=Tt(),ZRe=(t,e)=>new XRe(t,e).major;vY.exports=ZRe});var MY=c((B8e,CY)=>{var zRe=Tt(),JRe=(t,e)=>new zRe(t,e).minor;CY.exports=JRe});var DY=c((q8e,LY)=>{var $Re=Tt(),QRe=(t,e)=>new $Re(t,e).patch;LY.exports=QRe});var UY=c((j8e,GY)=>{var eOe=fs(),tOe=(t,e)=>{let r=eOe(t,e);return r&&r.prerelease.length?r.prerelease:null};GY.exports=tOe});var hr=c((H8e,wY)=>{var xY=Tt(),rOe=(t,e,r)=>new xY(t,r).compare(new xY(e,r));wY.exports=rOe});var BY=c((F8e,VY)=>{var nOe=hr(),oOe=(t,e,r)=>nOe(e,t,r);VY.exports=oOe});var jY=c((k8e,qY)=>{var iOe=hr(),sOe=(t,e)=>iOe(t,e,!0);qY.exports=sOe});var bf=c((W8e,FY)=>{var HY=Tt(),aOe=(t,e,r)=>{let n=new HY(t,r),o=new HY(e,r);return n.compare(o)||n.compareBuild(o)};FY.exports=aOe});var WY=c((Y8e,kY)=>{var uOe=bf(),cOe=(t,e)=>t.sort((r,n)=>uOe(r,n,e));kY.exports=cOe});var KY=c((K8e,YY)=>{var lOe=bf(),dOe=(t,e)=>t.sort((r,n)=>lOe(n,r,e));YY.exports=dOe});var ql=c((X8e,XY)=>{var pOe=hr(),_Oe=(t,e,r)=>pOe(t,e,r)>0;XY.exports=_Oe});var Pf=c((Z8e,ZY)=>{var fOe=hr(),gOe=(t,e,r)=>fOe(t,e,r)<0;ZY.exports=gOe});var _b=c((z8e,zY)=>{var EOe=hr(),hOe=(t,e,r)=>EOe(t,e,r)===0;zY.exports=hOe});var fb=c((J8e,JY)=>{var mOe=hr(),TOe=(t,e,r)=>mOe(t,e,r)!==0;JY.exports=TOe});var yf=c(($8e,$Y)=>{var SOe=hr(),AOe=(t,e,r)=>SOe(t,e,r)>=0;$Y.exports=AOe});var vf=c((Q8e,QY)=>{var ROe=hr(),OOe=(t,e,r)=>ROe(t,e,r)<=0;QY.exports=OOe});var gb=c((e7e,eK)=>{var IOe=_b(),bOe=fb(),POe=ql(),yOe=yf(),vOe=Pf(),NOe=vf(),COe=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return IOe(t,r,n);case"!=":return bOe(t,r,n);case">":return POe(t,r,n);case">=":return yOe(t,r,n);case"<":return vOe(t,r,n);case"<=":return NOe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};eK.exports=COe});var rK=c((t7e,tK)=>{var MOe=Tt(),LOe=fs(),{safeRe:Nf,t:Cf}=ya(),DOe=(t,e)=>{if(t instanceof MOe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Nf[Cf.COERCEFULL]:Nf[Cf.COERCE]);else{let u=e.includePrerelease?Nf[Cf.COERCERTLFULL]:Nf[Cf.COERCERTL],l;for(;(l=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],o=r[3]||"0",i=r[4]||"0",s=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return LOe(`${n}.${o}.${i}${s}${a}`,e)};tK.exports=DOe});var oK=c((r7e,nK)=>{var Eb=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,r)}return this}};nK.exports=Eb});var mr=c((n7e,uK)=>{var GOe=/\s+/g,hb=class t{constructor(e,r){if(r=xOe(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof mb)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(GOe," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!sK(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&FOe(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&jOe)|(this.options.loose&&HOe))+":"+e,o=iK.get(n);if(o)return o;let i=this.options.loose,s=i?zt[jt.HYPHENRANGELOOSE]:zt[jt.HYPHENRANGE];e=e.replace(s,QOe(this.options.includePrerelease)),Ee("hyphen replace",e),e=e.replace(zt[jt.COMPARATORTRIM],VOe),Ee("comparator trim",e),e=e.replace(zt[jt.TILDETRIM],BOe),Ee("tilde trim",e),e=e.replace(zt[jt.CARETTRIM],qOe),Ee("caret trim",e);let a=e.split(" ").map(p=>kOe(p,this.options)).join(" ").split(/\s+/).map(p=>$Oe(p,this.options));i&&(a=a.filter(p=>(Ee("loose invalid filter",p,this.options),!!p.match(zt[jt.COMPARATORLOOSE])))),Ee("range list",a);let u=new Map,l=a.map(p=>new mb(p,this.options));for(let p of l){if(sK(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let d=[...u.values()];return iK.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>aK(n,r)&&e.set.some(o=>aK(o,r)&&n.every(i=>o.every(s=>i.intersects(s,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new wOe(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(eIe(this.set[r],e,this.options))return!0;return!1}};uK.exports=hb;var UOe=oK(),iK=new UOe,xOe=Rf(),mb=jl(),Ee=Bl(),wOe=Tt(),{safeRe:zt,t:jt,comparatorTrimReplace:VOe,tildeTrimReplace:BOe,caretTrimReplace:qOe}=ya(),{FLAG_INCLUDE_PRERELEASE:jOe,FLAG_LOOSE:HOe}=Vl(),sK=t=>t.value==="<0.0.0-0",FOe=t=>t.value==="",aK=(t,e)=>{let r=!0,n=t.slice(),o=n.pop();for(;r&&n.length;)r=n.every(i=>o.intersects(i,e)),o=n.pop();return r},kOe=(t,e)=>(Ee("comp",t,e),t=KOe(t,e),Ee("caret",t),t=WOe(t,e),Ee("tildes",t),t=ZOe(t,e),Ee("xrange",t),t=JOe(t,e),Ee("stars",t),t),Ht=t=>!t||t.toLowerCase()==="x"||t==="*",WOe=(t,e)=>t.trim().split(/\s+/).map(r=>YOe(r,e)).join(" "),YOe=(t,e)=>{let r=e.loose?zt[jt.TILDELOOSE]:zt[jt.TILDE];return t.replace(r,(n,o,i,s,a)=>{Ee("tilde",t,n,o,i,s,a);let u;return Ht(o)?u="":Ht(i)?u=`>=${o}.0.0 <${+o+1}.0.0-0`:Ht(s)?u=`>=${o}.${i}.0 <${o}.${+i+1}.0-0`:a?(Ee("replaceTilde pr",a),u=`>=${o}.${i}.${s}-${a} <${o}.${+i+1}.0-0`):u=`>=${o}.${i}.${s} <${o}.${+i+1}.0-0`,Ee("tilde return",u),u})},KOe=(t,e)=>t.trim().split(/\s+/).map(r=>XOe(r,e)).join(" "),XOe=(t,e)=>{Ee("caret",t,e);let r=e.loose?zt[jt.CARETLOOSE]:zt[jt.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(o,i,s,a,u)=>{Ee("caret",t,o,i,s,a,u);let l;return Ht(i)?l="":Ht(s)?l=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ht(a)?i==="0"?l=`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:u?(Ee("replaceCaret pr",u),i==="0"?s==="0"?l=`>=${i}.${s}.${a}-${u} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}-${u} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a}-${u} <${+i+1}.0.0-0`):(Ee("no pr"),i==="0"?s==="0"?l=`>=${i}.${s}.${a}${n} <${i}.${s}.${+a+1}-0`:l=`>=${i}.${s}.${a}${n} <${i}.${+s+1}.0-0`:l=`>=${i}.${s}.${a} <${+i+1}.0.0-0`),Ee("caret return",l),l})},ZOe=(t,e)=>(Ee("replaceXRanges",t,e),t.split(/\s+/).map(r=>zOe(r,e)).join(" ")),zOe=(t,e)=>{t=t.trim();let r=e.loose?zt[jt.XRANGELOOSE]:zt[jt.XRANGE];return t.replace(r,(n,o,i,s,a,u)=>{Ee("xRange",t,n,o,i,s,a,u);let l=Ht(i),d=l||Ht(s),p=d||Ht(a),_=p;return o==="="&&_&&(o=""),u=e.includePrerelease?"-0":"",l?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&_?(d&&(s=0),a=0,o===">"?(o=">=",d?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):o==="<="&&(o="<",d?i=+i+1:s=+s+1),o==="<"&&(u="-0"),n=`${o+i}.${s}.${a}${u}`):d?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${s}.0${u} <${i}.${+s+1}.0-0`),Ee("xRange return",n),n})},JOe=(t,e)=>(Ee("replaceStars",t,e),t.trim().replace(zt[jt.STAR],"")),$Oe=(t,e)=>(Ee("replaceGTE0",t,e),t.trim().replace(zt[e.includePrerelease?jt.GTE0PRE:jt.GTE0],"")),QOe=t=>(e,r,n,o,i,s,a,u,l,d,p,_)=>(Ht(n)?r="":Ht(o)?r=`>=${n}.0.0${t?"-0":""}`:Ht(i)?r=`>=${n}.${o}.0${t?"-0":""}`:s?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ht(l)?u="":Ht(d)?u=`<${+l+1}.0.0-0`:Ht(p)?u=`<${l}.${+d+1}.0-0`:_?u=`<=${l}.${d}.${p}-${_}`:t?u=`<${l}.${d}.${+p+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),eIe=(t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(Ee(t[n].semver),t[n].semver!==mb.ANY&&t[n].semver.prerelease.length>0){let o=t[n].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}});var jl=c((o7e,fK)=>{var Hl=Symbol("SemVer ANY"),Ab=class t{static get ANY(){return Hl}constructor(e,r){if(r=cK(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Sb("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Hl?this.value="":this.value=this.operator+this.semver.version,Sb("comp",this)}parse(e){let r=this.options.loose?lK[dK.COMPARATORLOOSE]:lK[dK.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new pK(n[2],this.options.loose):this.semver=Hl}toString(){return this.value}test(e){if(Sb("Comparator.test",e,this.options.loose),this.semver===Hl||e===Hl)return!0;if(typeof e=="string")try{e=new pK(e,this.options)}catch{return!1}return Tb(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new _K(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new _K(this.value,r).test(e.semver):(r=cK(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Tb(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Tb(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};fK.exports=Ab;var cK=Rf(),{safeRe:lK,t:dK}=ya(),Tb=gb(),Sb=Bl(),pK=Tt(),_K=mr()});var Fl=c((i7e,gK)=>{var tIe=mr(),rIe=(t,e,r)=>{try{e=new tIe(e,r)}catch{return!1}return e.test(t)};gK.exports=rIe});var hK=c((s7e,EK)=>{var nIe=mr(),oIe=(t,e)=>new nIe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));EK.exports=oIe});var TK=c((a7e,mK)=>{var iIe=Tt(),sIe=mr(),aIe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new sIe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===-1)&&(n=s,o=new iIe(n,r))}),n};mK.exports=aIe});var AK=c((u7e,SK)=>{var uIe=Tt(),cIe=mr(),lIe=(t,e,r)=>{let n=null,o=null,i=null;try{i=new cIe(e,r)}catch{return null}return t.forEach(s=>{i.test(s)&&(!n||o.compare(s)===1)&&(n=s,o=new uIe(n,r))}),n};SK.exports=lIe});var IK=c((c7e,OK)=>{var Rb=Tt(),dIe=mr(),RK=ql(),pIe=(t,e)=>{t=new dIe(t,e);let r=new Rb("0.0.0");if(t.test(r)||(r=new Rb("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let o=t.set[n],i=null;o.forEach(s=>{let a=new Rb(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||RK(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),i&&(!r||RK(r,i))&&(r=i)}return r&&t.test(r)?r:null};OK.exports=pIe});var PK=c((l7e,bK)=>{var _Ie=mr(),fIe=(t,e)=>{try{return new _Ie(t,e).range||"*"}catch{return null}};bK.exports=fIe});var Mf=c((d7e,CK)=>{var gIe=Tt(),NK=jl(),{ANY:EIe}=NK,hIe=mr(),mIe=Fl(),yK=ql(),vK=Pf(),TIe=vf(),SIe=yf(),AIe=(t,e,r,n)=>{t=new gIe(t,n),e=new hIe(e,n);let o,i,s,a,u;switch(r){case">":o=yK,i=TIe,s=vK,a=">",u=">=";break;case"<":o=vK,i=SIe,s=yK,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(mIe(t,e,n))return!1;for(let l=0;l<e.set.length;++l){let d=e.set[l],p=null,_=null;if(d.forEach(f=>{f.semver===EIe&&(f=new NK(">=0.0.0")),p=p||f,_=_||f,o(f.semver,p.semver,n)?p=f:s(f.semver,_.semver,n)&&(_=f)}),p.operator===a||p.operator===u||(!_.operator||_.operator===a)&&i(t,_.semver))return!1;if(_.operator===u&&s(t,_.semver))return!1}return!0};CK.exports=AIe});var LK=c((p7e,MK)=>{var RIe=Mf(),OIe=(t,e,r)=>RIe(t,e,">",r);MK.exports=OIe});var GK=c((_7e,DK)=>{var IIe=Mf(),bIe=(t,e,r)=>IIe(t,e,"<",r);DK.exports=bIe});var wK=c((f7e,xK)=>{var UK=mr(),PIe=(t,e,r)=>(t=new UK(t,r),e=new UK(e,r),t.intersects(e,r));xK.exports=PIe});var BK=c((g7e,VK)=>{var yIe=Fl(),vIe=hr();VK.exports=(t,e,r)=>{let n=[],o=null,i=null,s=t.sort((d,p)=>vIe(d,p,r));for(let d of s)yIe(d,e,r)?(i=d,o||(o=d)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);let a=[];for(let[d,p]of n)d===p?a.push(d):!p&&d===s[0]?a.push("*"):p?d===s[0]?a.push(`<=${p}`):a.push(`${d} - ${p}`):a.push(`>=${d}`);let u=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var WK=c((E7e,kK)=>{var qK=mr(),Ib=jl(),{ANY:Ob}=Ib,kl=Fl(),bb=hr(),NIe=(t,e,r={})=>{if(t===e)return!0;t=new qK(t,r),e=new qK(e,r);let n=!1;e:for(let o of t.set){for(let i of e.set){let s=MIe(o,i,r);if(n=n||s!==null,s)continue e}if(n)return!1}return!0},CIe=[new Ib(">=0.0.0-0")],jK=[new Ib(">=0.0.0")],MIe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ob){if(e.length===1&&e[0].semver===Ob)return!0;r.includePrerelease?t=CIe:t=jK}if(e.length===1&&e[0].semver===Ob){if(r.includePrerelease)return!0;e=jK}let n=new Set,o,i;for(let f of t)f.operator===">"||f.operator===">="?o=HK(o,f,r):f.operator==="<"||f.operator==="<="?i=FK(i,f,r):n.add(f.semver);if(n.size>1)return null;let s;if(o&&i){if(s=bb(o.semver,i.semver,r),s>0)return null;if(s===0&&(o.operator!==">="||i.operator!=="<="))return null}for(let f of n){if(o&&!kl(f,String(o),r)||i&&!kl(f,String(i),r))return null;for(let g of e)if(!kl(f,String(g),r))return!1;return!0}let a,u,l,d,p=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,_=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(d=d||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(a=HK(o,f,r),a===f&&a!==o)return!1}else if(o.operator===">="&&!kl(o.semver,String(f),r))return!1}if(i){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=FK(i,f,r),u===f&&u!==i)return!1}else if(i.operator==="<="&&!kl(i.semver,String(f),r))return!1}if(!f.operator&&(i||o)&&s!==0)return!1}return!(o&&l&&!i&&s!==0||i&&d&&!o&&s!==0||_||p)},HK=(t,e,r)=>{if(!t)return e;let n=bb(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},FK=(t,e,r)=>{if(!t)return e;let n=bb(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};kK.exports=NIe});var Tr=c((h7e,XK)=>{var Pb=ya(),YK=Vl(),LIe=Tt(),KK=db(),DIe=fs(),GIe=TY(),UIe=AY(),xIe=IY(),wIe=yY(),VIe=NY(),BIe=MY(),qIe=DY(),jIe=UY(),HIe=hr(),FIe=BY(),kIe=jY(),WIe=bf(),YIe=WY(),KIe=KY(),XIe=ql(),ZIe=Pf(),zIe=_b(),JIe=fb(),$Ie=yf(),QIe=vf(),ebe=gb(),tbe=rK(),rbe=jl(),nbe=mr(),obe=Fl(),ibe=hK(),sbe=TK(),abe=AK(),ube=IK(),cbe=PK(),lbe=Mf(),dbe=LK(),pbe=GK(),_be=wK(),fbe=BK(),gbe=WK();XK.exports={parse:DIe,valid:GIe,clean:UIe,inc:xIe,diff:wIe,major:VIe,minor:BIe,patch:qIe,prerelease:jIe,compare:HIe,rcompare:FIe,compareLoose:kIe,compareBuild:WIe,sort:YIe,rsort:KIe,gt:XIe,lt:ZIe,eq:zIe,neq:JIe,gte:$Ie,lte:QIe,cmp:ebe,coerce:tbe,Comparator:rbe,Range:nbe,satisfies:obe,toComparators:ibe,maxSatisfying:sbe,minSatisfying:abe,minVersion:ube,validRange:cbe,outside:lbe,gtr:dbe,ltr:pbe,intersects:_be,simplifyRange:fbe,subset:gbe,SemVer:LIe,re:Pb.re,src:Pb.src,tokens:Pb.t,SEMVER_SPEC_VERSION:YK.SEMVER_SPEC_VERSION,RELEASE_TYPES:YK.RELEASE_TYPES,compareIdentifiers:KK.compareIdentifiers,rcompareIdentifiers:KK.rcompareIdentifiers}});var ZK=c(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.AttributeNames=void 0;var Ebe;(function(t){t.HTTP_ERROR_NAME="http.error_name",t.HTTP_ERROR_MESSAGE="http.error_message",t.HTTP_STATUS_TEXT="http.status_text"})(Ebe=Wl.AttributeNames||(Wl.AttributeNames={}))});var yb=c(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.headerCapture=F.getIncomingRequestMetricAttributesOnResponse=F.getIncomingRequestAttributesOnResponse=F.getIncomingRequestMetricAttributes=F.getIncomingRequestAttributes=F.getOutgoingRequestMetricAttributesOnResponse=F.getOutgoingRequestAttributesOnResponse=F.setAttributesFromHttpKind=F.getOutgoingRequestMetricAttributes=F.getOutgoingRequestAttributes=F.extractHostnameAndPort=F.isValidOptionsType=F.getRequestInfo=F.isCompressed=F.setResponseContentLengthAttribute=F.setRequestContentLengthAttribute=F.setSpanWithError=F.isIgnored=F.satisfiesPattern=F.parseResponseStatus=F.getAbsoluteUrl=void 0;var Yl=(P(),m(b)),q=($(),m(J)),zK=Af(),Lf=require("url"),Df=ZK(),hbe=(t,e,r="http:")=>{let n=t||{},o=n.protocol||r,i=(n.port||"").toString(),s=n.path||"/",a=n.host||n.hostname||e.host||"localhost";return a.indexOf(":")===-1&&i&&i!=="80"&&i!=="443"&&(a+=`:${i}`),`${o}//${a}${s}`};F.getAbsoluteUrl=hbe;var mbe=(t,e)=>{let r=t===Yl.SpanKind.CLIENT?400:500;return e&&e>=100&&e<r?Yl.SpanStatusCode.UNSET:Yl.SpanStatusCode.ERROR};F.parseResponseStatus=mbe;var Tbe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")};F.satisfiesPattern=Tbe;var Sbe=(t,e,r)=>{if(!e)return!1;try{for(let n of e)if((0,F.satisfiesPattern)(t,n))return!0}catch(n){r&&r(n)}return!1};F.isIgnored=Sbe;var Abe=(t,e)=>{let r=e.message;t.setAttribute(Df.AttributeNames.HTTP_ERROR_NAME,e.name),t.setAttribute(Df.AttributeNames.HTTP_ERROR_MESSAGE,r),t.setStatus({code:Yl.SpanStatusCode.ERROR,message:r}),t.recordException(e)};F.setSpanWithError=Abe;var Rbe=(t,e)=>{let r=JK(t.headers);r!==null&&((0,F.isCompressed)(t.headers)?e[q.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH]=r:e[q.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=r)};F.setRequestContentLengthAttribute=Rbe;var Obe=(t,e)=>{let r=JK(t.headers);r!==null&&((0,F.isCompressed)(t.headers)?e[q.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]=r:e[q.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=r)};F.setResponseContentLengthAttribute=Obe;function JK(t){let e=t["content-length"];if(e===void 0)return null;let r=parseInt(e,10);return isNaN(r)?null:r}var Ibe=t=>{let e=t["content-encoding"];return!!e&&e!=="identity"};F.isCompressed=Ibe;var bbe=(t,e)=>{let r="/",n="",o;if(typeof t=="string")o=Lf.parse(t),r=o.pathname||"/",n=`${o.protocol||"http:"}//${o.host}`,e!==void 0&&Object.assign(o,e);else if(t instanceof Lf.URL)o={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,path:`${t.pathname||""}${t.search||""}`},t.port!==""&&(o.port=Number(t.port)),(t.username||t.password)&&(o.auth=`${t.username}:${t.password}`),r=t.pathname,n=t.origin,e!==void 0&&Object.assign(o,e);else{o=Object.assign({protocol:t.host?"http:":void 0},t),r=t.pathname,!r&&o.path&&(r=Lf.parse(o.path).pathname||"/");let s=o.host||(o.port!=null?`${o.hostname}${o.port}`:o.hostname);n=`${o.protocol||"http:"}//${s}`}let i=o.method?o.method.toUpperCase():"GET";return{origin:n,pathname:r,method:i,optionsParsed:o}};F.getRequestInfo=bbe;var Pbe=t=>{if(!t)return!1;let e=typeof t;return e==="string"||e==="object"&&!Array.isArray(t)};F.isValidOptionsType=Pbe;var ybe=t=>{var e;if(t.hostname&&t.port)return{hostname:t.hostname,port:t.port};let r=((e=t.host)===null||e===void 0?void 0:e.match(/^([^:/ ]+)(:\d{1,5})?/))||null,n=t.hostname||(r===null?"localhost":r[1]),o=t.port;return o||(r&&r[2]?o=r[2].substring(1):o=t.protocol==="https:"?"443":"80"),{hostname:n,port:o}};F.extractHostnameAndPort=ybe;var vbe=(t,e)=>{var r;let n=e.hostname,o=e.port,i=t.method,s=i?i.toUpperCase():"GET",a=t.headers||{},u=a["user-agent"],l={[q.SEMATTRS_HTTP_URL]:(0,F.getAbsoluteUrl)(t,a,`${e.component}:`),[q.SEMATTRS_HTTP_METHOD]:s,[q.SEMATTRS_HTTP_TARGET]:t.path||"/",[q.SEMATTRS_NET_PEER_NAME]:n,[q.SEMATTRS_HTTP_HOST]:(r=a.host)!==null&&r!==void 0?r:`${n}:${o}`};return u!==void 0&&(l[q.SEMATTRS_HTTP_USER_AGENT]=u),Object.assign(l,e.hookAttributes)};F.getOutgoingRequestAttributes=vbe;var Nbe=t=>{let e={};return e[q.SEMATTRS_HTTP_METHOD]=t[q.SEMATTRS_HTTP_METHOD],e[q.SEMATTRS_NET_PEER_NAME]=t[q.SEMATTRS_NET_PEER_NAME],e};F.getOutgoingRequestMetricAttributes=Nbe;var Cbe=(t,e)=>{t&&(e[q.SEMATTRS_HTTP_FLAVOR]=t,t.toUpperCase()!=="QUIC"?e[q.SEMATTRS_NET_TRANSPORT]=q.NETTRANSPORTVALUES_IP_TCP:e[q.SEMATTRS_NET_TRANSPORT]=q.NETTRANSPORTVALUES_IP_UDP)};F.setAttributesFromHttpKind=Cbe;var Mbe=t=>{let{statusCode:e,statusMessage:r,httpVersion:n,socket:o}=t,i={};if(o){let{remoteAddress:s,remotePort:a}=o;i[q.SEMATTRS_NET_PEER_IP]=s,i[q.SEMATTRS_NET_PEER_PORT]=a}return(0,F.setResponseContentLengthAttribute)(t,i),e&&(i[q.SEMATTRS_HTTP_STATUS_CODE]=e,i[Df.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0,F.setAttributesFromHttpKind)(n,i),i};F.getOutgoingRequestAttributesOnResponse=Mbe;var Lbe=t=>{let e={};return e[q.SEMATTRS_NET_PEER_PORT]=t[q.SEMATTRS_NET_PEER_PORT],e[q.SEMATTRS_HTTP_STATUS_CODE]=t[q.SEMATTRS_HTTP_STATUS_CODE],e[q.SEMATTRS_HTTP_FLAVOR]=t[q.SEMATTRS_HTTP_FLAVOR],e};F.getOutgoingRequestMetricAttributesOnResponse=Lbe;var Dbe=(t,e)=>{let r=t.headers,n=r["user-agent"],o=r["x-forwarded-for"],i=t.method||"GET",s=t.httpVersion,a=t.url?Lf.parse(t.url):null,u=a?.host||r.host,l=a?.hostname||u?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost",d=e.serverName,p={[q.SEMATTRS_HTTP_URL]:(0,F.getAbsoluteUrl)(a,r,`${e.component}:`),[q.SEMATTRS_HTTP_HOST]:u,[q.SEMATTRS_NET_HOST_NAME]:l,[q.SEMATTRS_HTTP_METHOD]:i,[q.SEMATTRS_HTTP_SCHEME]:e.component};return typeof o=="string"&&(p[q.SEMATTRS_HTTP_CLIENT_IP]=o.split(",")[0]),typeof d=="string"&&(p[q.SEMATTRS_HTTP_SERVER_NAME]=d),a&&(p[q.SEMATTRS_HTTP_TARGET]=a.path||"/"),n!==void 0&&(p[q.SEMATTRS_HTTP_USER_AGENT]=n),(0,F.setRequestContentLengthAttribute)(t,p),(0,F.setAttributesFromHttpKind)(s,p),Object.assign(p,e.hookAttributes)};F.getIncomingRequestAttributes=Dbe;var Gbe=t=>{let e={};return e[q.SEMATTRS_HTTP_SCHEME]=t[q.SEMATTRS_HTTP_SCHEME],e[q.SEMATTRS_HTTP_METHOD]=t[q.SEMATTRS_HTTP_METHOD],e[q.SEMATTRS_NET_HOST_NAME]=t[q.SEMATTRS_NET_HOST_NAME],e[q.SEMATTRS_HTTP_FLAVOR]=t[q.SEMATTRS_HTTP_FLAVOR],e};F.getIncomingRequestMetricAttributes=Gbe;var Ube=(t,e)=>{let{socket:r}=t,{statusCode:n,statusMessage:o}=e,i=(0,zK.getRPCMetadata)(Yl.context.active()),s={};if(r){let{localAddress:a,localPort:u,remoteAddress:l,remotePort:d}=r;s[q.SEMATTRS_NET_HOST_IP]=a,s[q.SEMATTRS_NET_HOST_PORT]=u,s[q.SEMATTRS_NET_PEER_IP]=l,s[q.SEMATTRS_NET_PEER_PORT]=d}return s[q.SEMATTRS_HTTP_STATUS_CODE]=n,s[Df.AttributeNames.HTTP_STATUS_TEXT]=(o||"").toUpperCase(),i?.type===zK.RPCType.HTTP&&i.route!==void 0&&(s[q.SEMATTRS_HTTP_ROUTE]=i.route),s};F.getIncomingRequestAttributesOnResponse=Ube;var xbe=t=>{let e={};return e[q.SEMATTRS_HTTP_STATUS_CODE]=t[q.SEMATTRS_HTTP_STATUS_CODE],e[q.SEMATTRS_NET_HOST_PORT]=t[q.SEMATTRS_NET_HOST_PORT],t[q.SEMATTRS_HTTP_ROUTE]!==void 0&&(e[q.SEMATTRS_HTTP_ROUTE]=t[q.SEMATTRS_HTTP_ROUTE]),e};F.getIncomingRequestMetricAttributesOnResponse=xbe;function wbe(t,e){let r=new Map;for(let n=0,o=e.length;n<o;n++){let i=e[n].toLowerCase();r.set(i,i.replace(/-/g,"_"))}return(n,o)=>{for(let i of r.keys()){let s=o(i);if(s===void 0)continue;let a=r.get(i),u=`http.${t}.header.${a}`;typeof s=="string"?n.setAttribute(u,[s]):Array.isArray(s)?n.setAttribute(u,s):n.setAttribute(u,[s])}}}F.headerCapture=wbe});var $K=c(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.VERSION=void 0;Gf.VERSION="0.53.0"});var QK=c(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.SeverityNumber=void 0;var Vbe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Vbe=Kl.SeverityNumber||(Kl.SeverityNumber={}))});var vb=c(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.NOOP_LOGGER=Na.NoopLogger=void 0;var Uf=class{emit(e){}};Na.NoopLogger=Uf;Na.NOOP_LOGGER=new Uf});var Nb=c(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.NOOP_LOGGER_PROVIDER=Ca.NoopLoggerProvider=void 0;var Bbe=vb(),xf=class{getLogger(e,r,n){return new Bbe.NoopLogger}};Ca.NoopLoggerProvider=xf;Ca.NOOP_LOGGER_PROVIDER=new xf});var eX=c(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf._globalThis=void 0;wf._globalThis=typeof globalThis=="object"?globalThis:global});var tX=c(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf._globalThis=void 0;var qbe=eX();Object.defineProperty(Vf,"_globalThis",{enumerable:!0,get:function(){return qbe._globalThis}})});var rX=c(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf._globalThis=void 0;var jbe=tX();Object.defineProperty(Bf,"_globalThis",{enumerable:!0,get:function(){return jbe._globalThis}})});var nX=c(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.API_BACKWARDS_COMPATIBILITY_VERSION=cn.makeGetter=cn._global=cn.GLOBAL_LOGS_API_KEY=void 0;var Hbe=rX();cn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");cn._global=Hbe._globalThis;function Fbe(t,e,r){return n=>n===t?e:r}cn.makeGetter=Fbe;cn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var iX=c(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.LogsAPI=void 0;var Sr=nX(),oX=Nb(),Cb=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Sr._global[Sr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Sr._global[Sr.GLOBAL_LOGS_API_KEY]=(0,Sr.makeGetter)(Sr.API_BACKWARDS_COMPATIBILITY_VERSION,e,oX.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=Sr._global[Sr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Sr._global,Sr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:oX.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Sr._global[Sr.GLOBAL_LOGS_API_KEY]}};qf.LogsAPI=Cb});var Mb=c(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.logs=Jt.NoopLoggerProvider=Jt.NOOP_LOGGER_PROVIDER=Jt.NoopLogger=Jt.NOOP_LOGGER=Jt.SeverityNumber=void 0;var kbe=QK();Object.defineProperty(Jt,"SeverityNumber",{enumerable:!0,get:function(){return kbe.SeverityNumber}});var sX=vb();Object.defineProperty(Jt,"NOOP_LOGGER",{enumerable:!0,get:function(){return sX.NOOP_LOGGER}});Object.defineProperty(Jt,"NoopLogger",{enumerable:!0,get:function(){return sX.NoopLogger}});var aX=Nb();Object.defineProperty(Jt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return aX.NOOP_LOGGER_PROVIDER}});Object.defineProperty(Jt,"NoopLoggerProvider",{enumerable:!0,get:function(){return aX.NoopLoggerProvider}});var Wbe=iX();Jt.logs=Wbe.LogsAPI.getInstance()});var uX=c(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.disableInstrumentations=Ma.enableInstrumentations=void 0;function Ybe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ma.enableInstrumentations=Ybe;function Kbe(t){t.forEach(e=>e.disable())}Ma.disableInstrumentations=Kbe});var dX=c(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.registerInstrumentations=void 0;var cX=(P(),m(b)),Xbe=Mb(),lX=uX();function Zbe(t){var e,r;let n=t.tracerProvider||cX.trace.getTracerProvider(),o=t.meterProvider||cX.metrics.getMeterProvider(),i=t.loggerProvider||Xbe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,lX.enableInstrumentations)(s,n,o,i),()=>{(0,lX.disableInstrumentations)(s)}}jf.registerInstrumentations=Zbe});var Le=c((L7e,fX)=>{"use strict";function Lb(t){return typeof t=="function"}var Ft=console.error.bind(console);function Xl(t,e,r){var n=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function Zl(t){t&&t.logger&&(Lb(t.logger)?Ft=t.logger:Ft("new logger isn't a function, not replacing"))}function pX(t,e,r){if(!t||!t[e]){Ft("no original function "+e+" to wrap");return}if(!r){Ft("no wrapper function"),Ft(new Error().stack);return}if(!Lb(t[e])||!Lb(r)){Ft("original object and wrapper must be functions");return}var n=t[e],o=r(n,e);return Xl(o,"__original",n),Xl(o,"__unwrap",function(){t[e]===o&&Xl(t,e,n)}),Xl(o,"__wrapped",!0),Xl(t,e,o),o}function zbe(t,e,r){if(t)Array.isArray(t)||(t=[t]);else{Ft("must provide one or more modules to patch"),Ft(new Error().stack);return}if(!(e&&Array.isArray(e))){Ft("must provide one or more functions to wrap on modules");return}t.forEach(function(n){e.forEach(function(o){pX(n,o,r)})})}function _X(t,e){if(!t||!t[e]){Ft("no function to unwrap."),Ft(new Error().stack);return}if(!t[e].__unwrap)Ft("no original to unwrap to -- has "+e+" already been unwrapped?");else return t[e].__unwrap()}function Jbe(t,e){if(t)Array.isArray(t)||(t=[t]);else{Ft("must provide one or more modules to patch"),Ft(new Error().stack);return}if(!(e&&Array.isArray(e))){Ft("must provide one or more functions to unwrap on modules");return}t.forEach(function(r){e.forEach(function(n){_X(r,n)})})}Zl.wrap=pX;Zl.massWrap=zbe;Zl.unwrap=_X;Zl.massUnwrap=Jbe;fX.exports=Zl});var gX=c(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.InstrumentationAbstract=void 0;var Db=(P(),m(b)),$be=Mb(),Hf=Le(),Gb=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Hf.wrap,this._unwrap=Hf.unwrap,this._massWrap=Hf.massWrap,this._massUnwrap=Hf.massUnwrap,this.setConfig(n),this._diag=Db.diag.createComponentLogger({namespace:e}),this._tracer=Db.trace.getTracer(e,r),this._meter=Db.metrics.getMeter(e,r),this._logger=$be.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Ff.InstrumentationAbstract=Gb});var Ub=c((G7e,EX)=>{"use strict";var Qbe=require("os");EX.exports=Qbe.homedir||function(){var e=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(r?"/Users/"+r:null):process.platform==="linux"?e||(process.getuid()===0?"/root":r?"/home/"+r:null):e||null}});var xb=c((U7e,hX)=>{hX.exports=function(){var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,n){return n};var e=new Error().stack;return Error.prepareStackTrace=t,e[2].getFileName()}});var mX=c((x7e,zl)=>{"use strict";var ePe=process.platform==="win32",tPe=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,wb={};function rPe(t){return tPe.exec(t).slice(1)}wb.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=rPe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var nPe=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Vb={};function oPe(t){return nPe.exec(t).slice(1)}Vb.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=oPe(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};ePe?zl.exports=wb.parse:zl.exports=Vb.parse;zl.exports.posix=Vb.parse;zl.exports.win32=wb.parse});var Bb=c((w7e,RX)=>{var AX=require("path"),TX=AX.parse||mX(),SX=function(e,r){var n="/";/^([A-Za-z]:)/.test(e)?n="":/^\\\\/.test(e)&&(n="\\\\");for(var o=[e],i=TX(e);i.dir!==o[o.length-1];)o.push(i.dir),i=TX(i.dir);return o.reduce(function(s,a){return s.concat(r.map(function(u){return AX.resolve(n,a,u)}))},[])};RX.exports=function(e,r,n){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(n,e,function(){return SX(e,o)},r);var i=SX(e,o);return r&&r.paths?i.concat(r.paths):i}});var qb=c((V7e,OX)=>{OX.exports=function(t,e){return e||{}}});var PX=c((B7e,bX)=>{"use strict";var iPe="Function.prototype.bind called on incompatible ",sPe=Object.prototype.toString,aPe=Math.max,uPe="[object Function]",IX=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},cPe=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},lPe=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};bX.exports=function(e){var r=this;if(typeof r!="function"||sPe.apply(r)!==uPe)throw new TypeError(iPe+r);for(var n=cPe(arguments,1),o,i=function(){if(this instanceof o){var d=r.apply(this,IX(n,arguments));return Object(d)===d?d:this}return r.apply(e,IX(n,arguments))},s=aPe(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+lPe(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}});var vX=c((q7e,yX)=>{"use strict";var dPe=PX();yX.exports=Function.prototype.bind||dPe});var CX=c((j7e,NX)=>{"use strict";var pPe=Function.prototype.call,_Pe=Object.prototype.hasOwnProperty,fPe=vX();NX.exports=fPe.call(pPe,_Pe)});var MX=c((H7e,gPe)=>{gPe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Jl=c((F7e,GX)=>{"use strict";var EPe=CX();function hPe(t,e){for(var r=t.split("."),n=e.split(" "),o=n.length>1?n[0]:"=",i=(n.length>1?n[1]:n[0]).split("."),s=0;s<3;++s){var a=parseInt(r[s]||0,10),u=parseInt(i[s]||0,10);if(a!==u)return o==="<"?a<u:o===">="?a>=u:!1}return o===">="}function LX(t,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var n=0;n<r.length;++n)if(!hPe(t,r[n]))return!1;return!0}function mPe(t,e){if(typeof e=="boolean")return e;var r=typeof t>"u"?process.versions&&process.versions.node:t;if(typeof r!="string")throw new TypeError(typeof t>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var n=0;n<e.length;++n)if(LX(r,e[n]))return!0;return!1}return LX(r,e)}var DX=MX();GX.exports=function(e,r){return EPe(DX,e)&&mPe(r,DX[e])}});var wX=c((k7e,xX)=>{var gs=require("fs"),TPe=Ub(),xe=require("path"),SPe=xb(),APe=Bb(),RPe=qb(),OPe=Jl(),IPe=process.platform!=="win32"&&gs.realpath&&typeof gs.realpath.native=="function"?gs.realpath.native:gs.realpath,UX=TPe(),bPe=function(){return[xe.join(UX,".node_modules"),xe.join(UX,".node_libraries")]},PPe=function(e,r){gs.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isFile()||o.isFIFO())})},yPe=function(e,r){gs.stat(e,function(n,o){return n?n.code==="ENOENT"||n.code==="ENOTDIR"?r(null,!1):r(n):r(null,o.isDirectory())})},vPe=function(e,r){IPe(e,function(n,o){n&&n.code!=="ENOENT"?r(n):r(null,n?e:o)})},$l=function(e,r,n,o){n&&n.preserveSymlinks===!1?e(r,o):o(null,r)},NPe=function(e,r,n){e(r,function(o,i){if(o)n(o);else try{var s=JSON.parse(i);n(null,s)}catch{n(null)}})},CPe=function(e,r,n){for(var o=APe(r,n,e),i=0;i<o.length;i++)o[i]=xe.join(o[i],e);return o};xX.exports=function(e,r,n){var o=n,i=r;if(typeof r=="function"&&(o=i,i={}),typeof e!="string"){var s=new TypeError("Path must be a string.");return process.nextTick(function(){o(s)})}i=RPe(e,i);var a=i.isFile||PPe,u=i.isDirectory||yPe,l=i.readFile||gs.readFile,d=i.realpath||vPe,p=i.readPackage||NPe;if(i.readFile&&i.readPackage){var _=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(_)})}var f=i.packageIterator,g=i.extensions||[".js"],E=i.includeCoreModules!==!1,T=i.basedir||xe.dirname(SPe()),y=i.filename||T;i.paths=i.paths||bPe();var C=xe.resolve(T);$l(d,C,i,function(w,j){w?o(w):M(j)});var L;function M(w){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))L=xe.resolve(w,e),(e==="."||e===".."||e.slice(-1)==="/")&&(L+="/"),/\/$/.test(e)&&L===w?ee(L,i.package,v):D(L,i.package,v);else{if(E&&OPe(e))return o(null,e);Fe(e,w,function(j,ie,Z){if(j)o(j);else{if(ie)return $l(d,ie,i,function(Be,de){Be?o(Be):o(null,de,Z)});var ce=new Error("Cannot find module '"+e+"' from '"+y+"'");ce.code="MODULE_NOT_FOUND",o(ce)}})}}function v(w,j,ie){w?o(w):j?o(null,j,ie):ee(L,function(Z,ce,Be){if(Z)o(Z);else if(ce)$l(d,ce,i,function(oe,ut){oe?o(oe):o(null,ut,Be)});else{var de=new Error("Cannot find module '"+e+"' from '"+y+"'");de.code="MODULE_NOT_FOUND",o(de)}})}function D(w,j,ie){var Z=j,ce=ie;typeof Z=="function"&&(ce=Z,Z=void 0);var Be=[""].concat(g);de(Be,w,Z);function de(oe,ut,qn){if(oe.length===0)return ce(null,void 0,qn);var rs=ut+oe[0],tn=qn;tn?gt(null,tn):x(xe.dirname(rs),gt);function gt(yo,ra,jn){if(tn=ra,yo)return ce(yo);if(jn&&tn&&i.pathFilter){var Xp=xe.relative(jn,rs),Zp=Xp.slice(0,Xp.length-oe[0].length),cl=i.pathFilter(tn,ut,Zp);if(cl)return de([""].concat(g.slice()),xe.resolve(jn,cl),tn)}a(rs,Kp)}function Kp(yo,ra){if(yo)return ce(yo);if(ra)return ce(null,rs,tn);de(oe.slice(1),ut,tn)}}}function x(w,j){if(w===""||w==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(w)||/[/\\]node_modules[/\\]*$/.test(w))return j(null);$l(d,w,i,function(ie,Z){if(ie)return x(xe.dirname(w),j);var ce=xe.join(Z,"package.json");a(ce,function(Be,de){if(!de)return x(xe.dirname(w),j);p(l,ce,function(oe,ut){oe&&j(oe);var qn=ut;qn&&i.packageFilter&&(qn=i.packageFilter(qn,ce)),j(null,qn,w)})})})}function ee(w,j,ie){var Z=ie,ce=j;typeof ce=="function"&&(Z=ce,ce=i.package),$l(d,w,i,function(Be,de){if(Be)return Z(Be);var oe=xe.join(de,"package.json");a(oe,function(ut,qn){if(ut)return Z(ut);if(!qn)return D(xe.join(w,"index"),ce,Z);p(l,oe,function(rs,tn){if(rs)return Z(rs);var gt=tn;if(gt&&i.packageFilter&&(gt=i.packageFilter(gt,oe)),gt&>.main){if(typeof gt.main!="string"){var Kp=new TypeError("package \u201C"+gt.name+"\u201D `main` must be a string");return Kp.code="INVALID_PACKAGE_MAIN",Z(Kp)}(gt.main==="."||gt.main==="./")&&(gt.main="index"),D(xe.resolve(w,gt.main),gt,function(yo,ra,jn){if(yo)return Z(yo);if(ra)return Z(null,ra,jn);if(!jn)return D(xe.join(w,"index"),jn,Z);var Xp=xe.resolve(w,jn.main);ee(Xp,jn,function(Zp,cl,C1){if(Zp)return Z(Zp);if(cl)return Z(null,cl,C1);D(xe.join(w,"index"),C1,Z)})});return}D(xe.join(w,"/index"),gt,Z)})})})}function z(w,j){if(j.length===0)return w(null,void 0);var ie=j[0];u(xe.dirname(ie),Z);function Z(de,oe){if(de)return w(de);if(!oe)return z(w,j.slice(1));D(ie,i.package,ce)}function ce(de,oe,ut){if(de)return w(de);if(oe)return w(null,oe,ut);ee(ie,i.package,Be)}function Be(de,oe,ut){if(de)return w(de);if(oe)return w(null,oe,ut);z(w,j.slice(1))}}function Fe(w,j,ie){var Z=function(){return CPe(w,j,i)};z(ie,f?f(w,j,Z,i):Z())}}});var VX=c((W7e,MPe)=>{MPe.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var HX=c((Y7e,jX)=>{"use strict";var LPe=Jl(),BX=VX(),qX={};for(kf in BX)Object.prototype.hasOwnProperty.call(BX,kf)&&(qX[kf]=LPe(kf));var kf;jX.exports=qX});var kX=c((K7e,FX)=>{var DPe=Jl();FX.exports=function(e){return DPe(e)}});var KX=c((X7e,YX)=>{var GPe=Jl(),Es=require("fs"),St=require("path"),UPe=Ub(),xPe=xb(),wPe=Bb(),VPe=qb(),BPe=process.platform!=="win32"&&Es.realpathSync&&typeof Es.realpathSync.native=="function"?Es.realpathSync.native:Es.realpathSync,WX=UPe(),qPe=function(){return[St.join(WX,".node_modules"),St.join(WX,".node_libraries")]},jPe=function(e){try{var r=Es.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&(r.isFile()||r.isFIFO())},HPe=function(e){try{var r=Es.statSync(e,{throwIfNoEntry:!1})}catch(n){if(n&&(n.code==="ENOENT"||n.code==="ENOTDIR"))return!1;throw n}return!!r&&r.isDirectory()},FPe=function(e){try{return BPe(e)}catch(r){if(r.code!=="ENOENT")throw r}return e},Ql=function(e,r,n){return n&&n.preserveSymlinks===!1?e(r):r},kPe=function(e,r){var n=e(r);try{var o=JSON.parse(n);return o}catch{}},WPe=function(e,r,n){for(var o=wPe(r,n,e),i=0;i<o.length;i++)o[i]=St.join(o[i],e);return o};YX.exports=function(e,r){if(typeof e!="string")throw new TypeError("Path must be a string.");var n=VPe(e,r),o=n.isFile||jPe,i=n.readFileSync||Es.readFileSync,s=n.isDirectory||HPe,a=n.realpathSync||FPe,u=n.readPackageSync||kPe;if(n.readFileSync&&n.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var l=n.packageIterator,d=n.extensions||[".js"],p=n.includeCoreModules!==!1,_=n.basedir||St.dirname(xPe()),f=n.filename||_;n.paths=n.paths||qPe();var g=Ql(a,St.resolve(_),n);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var E=St.resolve(g,e);(e==="."||e===".."||e.slice(-1)==="/")&&(E+="/");var T=L(E)||v(E);if(T)return Ql(a,T,n)}else{if(p&&GPe(e))return e;var y=D(e,g);if(y)return Ql(a,y,n)}var C=new Error("Cannot find module '"+e+"' from '"+f+"'");throw C.code="MODULE_NOT_FOUND",C;function L(x){var ee=M(St.dirname(x));if(ee&&ee.dir&&ee.pkg&&n.pathFilter){var z=St.relative(ee.dir,x),Fe=n.pathFilter(ee.pkg,x,z);Fe&&(x=St.resolve(ee.dir,Fe))}if(o(x))return x;for(var w=0;w<d.length;w++){var j=x+d[w];if(o(j))return j}}function M(x){if(!(x===""||x==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(x))&&!/[/\\]node_modules[/\\]*$/.test(x)){var ee=St.join(Ql(a,x,n),"package.json");if(!o(ee))return M(St.dirname(x));var z=u(i,ee);return z&&n.packageFilter&&(z=n.packageFilter(z,x)),{pkg:z,dir:x}}}function v(x){var ee=St.join(Ql(a,x,n),"/package.json");if(o(ee)){try{var z=u(i,ee)}catch{}if(z&&n.packageFilter&&(z=n.packageFilter(z,x)),z&&z.main){if(typeof z.main!="string"){var Fe=new TypeError("package \u201C"+z.name+"\u201D `main` must be a string");throw Fe.code="INVALID_PACKAGE_MAIN",Fe}(z.main==="."||z.main==="./")&&(z.main="index");try{var w=L(St.resolve(x,z.main));if(w)return w;var j=v(St.resolve(x,z.main));if(j)return j}catch{}}}return L(St.join(x,"/index"))}function D(x,ee){for(var z=function(){return WPe(x,ee,n)},Fe=l?l(x,ee,z,n):z(),w=0;w<Fe.length;w++){var j=Fe[w];if(s(St.dirname(j))){var ie=L(j);if(ie)return ie;var Z=v(j);if(Z)return Z}}}}});var ZX=c((Z7e,XX)=>{var Wf=wX();Wf.core=HX();Wf.isCore=kX();Wf.sync=KX();XX.exports=Wf});var JX=c((z7e,zX)=>{var La=1e3,Da=La*60,Ga=Da*60,hs=Ga*24,YPe=hs*7,KPe=hs*365.25;zX.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return XPe(t);if(r==="number"&&isFinite(t))return e.long?zPe(t):ZPe(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function XPe(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*KPe;case"weeks":case"week":case"w":return r*YPe;case"days":case"day":case"d":return r*hs;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ga;case"minutes":case"minute":case"mins":case"min":case"m":return r*Da;case"seconds":case"second":case"secs":case"sec":case"s":return r*La;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function ZPe(t){var e=Math.abs(t);return e>=hs?Math.round(t/hs)+"d":e>=Ga?Math.round(t/Ga)+"h":e>=Da?Math.round(t/Da)+"m":e>=La?Math.round(t/La)+"s":t+"ms"}function zPe(t){var e=Math.abs(t);return e>=hs?Yf(t,e,hs,"day"):e>=Ga?Yf(t,e,Ga,"hour"):e>=Da?Yf(t,e,Da,"minute"):e>=La?Yf(t,e,La,"second"):t+" ms"}function Yf(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var jb=c((J7e,$X)=>{function JPe(t){r.debug=r,r.default=r,r.coerce=u,r.disable=i,r.enable=o,r.enabled=s,r.humanize=JX(),r.destroy=l,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let _=0;_<d.length;_++)p=(p<<5)-p+d.charCodeAt(_),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(d){let p,_=null,f,g;function E(...T){if(!E.enabled)return;let y=E,C=Number(new Date),L=C-(p||C);y.diff=L,y.prev=p,y.curr=C,p=C,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let M=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(D,x)=>{if(D==="%%")return"%";M++;let ee=r.formatters[x];if(typeof ee=="function"){let z=T[M];D=ee.call(y,z),T.splice(M,1),M--}return D}),r.formatArgs.call(y,T),(y.log||r.log).apply(y,T)}return E.namespace=d,E.useColors=r.useColors(),E.color=r.selectColor(d),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(f!==r.namespaces&&(f=r.namespaces,g=r.enabled(d)),g),set:T=>{_=T}}),typeof r.init=="function"&&r.init(E),E}function n(d,p){let _=r(this.namespace+(typeof p>"u"?":":p)+d);return _.log=this.log,_}function o(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,_=(typeof d=="string"?d:"").split(/[\s,]+/),f=_.length;for(p=0;p<f;p++)_[p]&&(d=_[p].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}function i(){let d=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let p,_;for(p=0,_=r.skips.length;p<_;p++)if(r.skips[p].test(d))return!1;for(p=0,_=r.names.length;p<_;p++)if(r.names[p].test(d))return!0;return!1}function a(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function u(d){return d instanceof Error?d.stack||d.message:d}function l(){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 r.enable(r.load()),r}$X.exports=JPe});var QX=c((cr,Kf)=>{cr.formatArgs=QPe;cr.save=eye;cr.load=tye;cr.useColors=$Pe;cr.storage=rye();cr.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();cr.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 $Pe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return 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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function QPe(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Kf.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}cr.log=console.debug||console.log||(()=>{});function eye(t){try{t?cr.storage.setItem("debug",t):cr.storage.removeItem("debug")}catch{}}function tye(){let t;try{t=cr.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function rye(){try{return localStorage}catch{}}Kf.exports=jb()(cr);var{formatters:nye}=Kf.exports;nye.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var t2=c(($7e,e2)=>{"use strict";e2.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),o=e.indexOf("--");return n!==-1&&(o===-1||n<o)}});var o2=c((Q7e,n2)=>{"use strict";var oye=require("os"),r2=require("tty"),Ar=t2(),{env:Ye}=process,jo;Ar("no-color")||Ar("no-colors")||Ar("color=false")||Ar("color=never")?jo=0:(Ar("color")||Ar("colors")||Ar("color=true")||Ar("color=always"))&&(jo=1);"FORCE_COLOR"in Ye&&(Ye.FORCE_COLOR==="true"?jo=1:Ye.FORCE_COLOR==="false"?jo=0:jo=Ye.FORCE_COLOR.length===0?1:Math.min(parseInt(Ye.FORCE_COLOR,10),3));function Hb(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Fb(t,e){if(jo===0)return 0;if(Ar("color=16m")||Ar("color=full")||Ar("color=truecolor"))return 3;if(Ar("color=256"))return 2;if(t&&!e&&jo===void 0)return 0;let r=jo||0;if(Ye.TERM==="dumb")return r;if(process.platform==="win32"){let n=oye.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Ye)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Ye)||Ye.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Ye)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ye.TEAMCITY_VERSION)?1:0;if(Ye.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Ye){let n=parseInt((Ye.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ye.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ye.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ye.TERM)||"COLORTERM"in Ye?1:r}function iye(t){let e=Fb(t,t&&t.isTTY);return Hb(e)}n2.exports={supportsColor:iye,stdout:Hb(Fb(!0,r2.isatty(1))),stderr:Hb(Fb(!0,r2.isatty(2)))}});var s2=c((Ke,Zf)=>{var sye=require("tty"),Xf=require("util");Ke.init=_ye;Ke.log=lye;Ke.formatArgs=uye;Ke.save=dye;Ke.load=pye;Ke.useColors=aye;Ke.destroy=Xf.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ke.colors=[6,2,3,4,5,1];try{let t=o2();t&&(t.stderr||t).level>=2&&(Ke.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{}Ke.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(o,i)=>i.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function aye(){return"colors"in Ke.inspectOpts?!!Ke.inspectOpts.colors:sye.isatty(process.stderr.fd)}function uye(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${o};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
|
|
8
|
+
`).join(`
|
|
9
|
+
`+i),t.push(o+"m+"+Zf.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=cye()+e+" "+t[0]}function cye(){return Ke.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lye(...t){return process.stderr.write(Xf.formatWithOptions(Ke.inspectOpts,...t)+`
|
|
10
|
+
`)}function dye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function pye(){return process.env.DEBUG}function _ye(t){t.inspectOpts={};let e=Object.keys(Ke.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ke.inspectOpts[e[r]]}Zf.exports=jb()(Ke);var{formatters:i2}=Zf.exports;i2.o=function(t){return this.inspectOpts.colors=this.useColors,Xf.inspect(t,this.inspectOpts).split(`
|
|
11
|
+
`).map(e=>e.trim()).join(" ")};i2.O=function(t){return this.inspectOpts.colors=this.useColors,Xf.inspect(t,this.inspectOpts)}});var a2=c((eet,kb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kb.exports=QX():kb.exports=s2()});var Yb=c((tet,u2)=>{"use strict";var Wb=require("path");u2.exports=function(t){var e=t.split(Wb.sep),r=e.lastIndexOf("node_modules");if(r!==-1&&e[r+1]){var n=e[r+1][0]==="@",o=n?e[r+1]+"/"+e[r+2]:e[r+1],i=n?3:2;return{name:o,basedir:e.slice(0,r+i).join(Wb.sep),path:e.slice(r+i).join(Wb.sep)}}}});var c2=c((ret,fye)=>{fye.exports={name:"require-in-the-middle",version:"7.4.0",description:"Module to hook into the Node.js require function",main:"index.js",types:"types/index.d.ts",dependencies:{debug:"^4.3.5","module-details-from-path":"^1.0.3",resolve:"^1.22.8"},devDependencies:{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","ipp-printer":"^1.0.0",patterns:"^1.0.3",roundround:"^0.2.0",semver:"^6.3.0",standard:"^14.3.1",tape:"^4.11.0"},scripts:{test:"npm run test:lint && npm run test:tape && npm run test:babel","test:lint":"standard","test:tape":"tape test/*.js","test:babel":"node test/babel/babel-register.js"},repository:{type:"git",url:"git+https://github.com/elastic/require-in-the-middle.git"},keywords:["require","hook","shim","shimmer","shimming","patch","monkey","monkeypatch","module","load"],files:["types"],author:"Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)",license:"MIT",bugs:{url:"https://github.com/elastic/require-in-the-middle/issues"},homepage:"https://github.com/elastic/require-in-the-middle#readme",engines:{node:">=8.6.0"}}});var Ge=c((net,Zb)=>{"use strict";var Ua=require("path"),zn=require("module"),Kb=ZX(),De=a2()("require-in-the-middle"),gye=Yb();Zb.exports=td;Zb.exports.Hook=td;var ed;if(zn.isBuiltin)ed=zn.isBuiltin;else{let[t,e]=process.versions.node.split(".").map(Number);t===8&&e<8?ed=r=>r==="http2"?!0:!!Kb.core[r]:ed=r=>!!Kb.core[r]}var Eye=/([/\\]index)?(\.js)?$/,Xb=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports")}has(e,r){if(this._localCache.has(e))return!0;if(r)return!1;{let n=require.cache[e];return!!(n&&this._kRitmExports in n)}}get(e,r){let n=this._localCache.get(e);if(n!==void 0)return n;if(!r){let o=require.cache[e];return o&&o[this._kRitmExports]}}set(e,r,n){n?this._localCache.set(e,r):e in require.cache?require.cache[e][this._kRitmExports]=r:(De('non-core module is unexpectedly not in require.cache: "%s"',e),this._localCache.set(e,r))}};function td(t,e,r){if(!(this instanceof td))return new td(t,e,r);if(typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),typeof zn._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof zn._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at %s",process.version,c2().bugs.url);return}this._cache=new Xb,this._unhooked=!1,this._origRequire=zn.prototype.require;let n=this,o=new Set,i=e?e.internals===!0:!1,s=Array.isArray(t);De("registering require hook"),this._require=zn.prototype.require=function(u){return n._unhooked===!0?(De("ignoring require call - module is soft-unhooked"),n._origRequire.apply(this,arguments)):a.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return n._unhooked===!0?(De("ignoring process.getBuiltinModule call - module is soft-unhooked"),n._origGetBuiltinModule.apply(this,arguments)):a.call(this,arguments,!0)});function a(u,l){let d=u[0],p=ed(d),_;if(p){if(_=d,d.startsWith("node:")){let C=d.slice(5);ed(C)&&(_=C)}}else{if(l)return De("call to process.getBuiltinModule with unknown built-in id"),n._origGetBuiltinModule.apply(this,u);try{_=zn._resolveFilename(d,this)}catch(C){return De('Module._resolveFilename("%s") threw %j, calling original Module.require',d,C.message),n._origRequire.apply(this,u)}}let f,g;if(De("processing %s module require('%s'): %s",p===!0?"core":"non-core",d,_),n._cache.has(_,p)===!0)return De("returning already patched cached module: %s",_),n._cache.get(_,p);let E=o.has(_);E===!1&&o.add(_);let T=l?n._origGetBuiltinModule.apply(this,u):n._origRequire.apply(this,u);if(E===!0)return De("module is in the process of being patched already - ignoring: %s",_),T;if(o.delete(_),p===!0){if(s===!0&&t.includes(_)===!1)return De("ignoring core module not on whitelist: %s",_),T;f=_}else if(s===!0&&t.includes(_)){let C=Ua.parse(_);f=C.name,g=C.dir}else{let C=gye(_);if(C===void 0)return De("could not parse filename: %s",_),T;f=C.name,g=C.basedir;let L=hye(C);De("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",f,d,L,g);let M=!1;if(s){if(!d.startsWith(".")&&t.includes(d)&&(f=d,M=!0),!t.includes(f)&&!t.includes(L))return T;t.includes(L)&&L!==f&&(f=L,M=!0)}if(!M){let v;try{v=Kb.sync(f,{basedir:g})}catch{return De("could not resolve module: %s",f),n._cache.set(_,T,p),T}if(v!==_)if(i===!0)f=f+Ua.sep+Ua.relative(g,_),De("preparing to process require of internal file: %s",f);else return De("ignoring require of non-main module file: %s",v),n._cache.set(_,T,p),T}}n._cache.set(_,T,p),De("calling require hook: %s",f);let y=r(T,f,g);return n._cache.set(_,y,p),De("returning module: %s",f),y}}td.prototype.unhook=function(){this._unhooked=!0,this._require===zn.prototype.require?(zn.prototype.require=this._origRequire,De("require unhook successful")):De("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,De("process.getBuiltinModule unhook successful")):De("process.getBuiltinModule unhook unsuccessful"))};function hye(t){let e=Ua.sep!=="/"?t.path.split(Ua.sep).join("/"):t.path;return Ua.posix.join(t.name,e).replace(Eye,"")}});var l2=c(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.ModuleNameTrie=Ho.ModuleNameSeparator=void 0;Ho.ModuleNameSeparator="/";var zf=class{constructor(){this.hooks=[],this.children=new Map}},zb=class{constructor(){this._trie=new zf,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ho.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new zf,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ho.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ho.ModuleNameTrie=zb});var p2=c(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.RequireInTheMiddleSingleton=void 0;var mye=Ge(),d2=require("path"),Jb=l2(),Tye=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),$b=class t{constructor(){this._moduleNameTrie=new Jb.ModuleNameTrie,this._initialize()}_initialize(){new mye.Hook(null,{internals:!0},(e,r,n)=>{let o=Sye(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return Tye?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Jf.RequireInTheMiddleSingleton=$b;function Sye(t){return d2.sep!==Jb.ModuleNameSeparator?t.split(d2.sep).join(Jb.ModuleNameSeparator):t}});var h2=c(rd=>{var _2=[],Qb=new WeakMap,f2=new WeakMap,g2=new Map,E2=[],Aye={set(t,e,r){return Qb.get(t)[e](r)},get(t,e){if(e===Symbol.toStringTag)return"Module";let r=f2.get(t)[e];if(typeof r=="function")return r()},defineProperty(t,e,r){if(!("value"in r))throw new Error("Getters/setters are not supported for exports property descriptors.");return Qb.get(t)[e](r.value)}};function Rye(t,e,r,n,o){g2.set(t,o),Qb.set(e,r),f2.set(e,n);let i=new Proxy(e,Aye);_2.forEach(s=>s(t,i)),E2.push([t,i])}rd.register=Rye;rd.importHooks=_2;rd.specifiers=g2;rd.toHook=E2});var Rr=c((aet,xa)=>{var m2=require("path"),Oye=Yb(),{fileURLToPath:T2}=require("url"),{MessageChannel:Iye}=require("worker_threads"),{importHooks:eP,specifiers:bye,toHook:Pye}=h2();function A2(t){eP.push(t),Pye.forEach(([e,r])=>t(e,r))}function R2(t){let e=eP.indexOf(t);e>-1&&eP.splice(e,1)}function S2(t,e,r,n){let o=t(e,r,n);o&&o!==e&&(e.default=o)}var tP;function yye(){let{port1:t,port2:e}=new Iye,r=0,n;tP=a=>{r++,t.postMessage(a)},t.on("message",()=>{r--,n&&r<=0&&n()}).unref();function o(){let a=setInterval(()=>{},1e3),u=new Promise(l=>{n=l}).then(()=>{clearInterval(a)});return r===0&&n(),u}let i=e;return{registerOptions:{data:{addHookMessagePort:i,include:[]},transferList:[i]},addHookMessagePort:i,waitForAllMessagesAcknowledged:o}}function nd(t,e,r){if(!(this instanceof nd))return new nd(t,e,r);typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n=e?e.internals===!0:!1;tP&&Array.isArray(t)&&tP(t),this._iitmHook=(o,i)=>{let s=o,a=o.startsWith("node:"),u;if(a)o=o.replace(/^node:/,"");else{if(o.startsWith("file://"))try{o=T2(o)}catch{}let l=Oye(o);l&&(o=l.name,u=l.basedir)}if(t){for(let l of t)if(l===o){if(u){if(n)o=o+m2.sep+m2.relative(u,T2(s));else if(!u.endsWith(bye.get(s)))continue}S2(r,i,o,u)}}else S2(r,i,o,u)},A2(this._iitmHook)}nd.prototype.unhook=function(){R2(this._iitmHook)};xa.exports=nd;xa.exports.Hook=nd;xa.exports.addHook=A2;xa.exports.removeHook=R2;xa.exports.createAddHookMessageChannel=yye});var rP=c(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.isWrapped=Fo.safeExecuteInTheMiddleAsync=Fo.safeExecuteInTheMiddle=void 0;function vye(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Fo.safeExecuteInTheMiddle=vye;async function Nye(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Fo.safeExecuteInTheMiddleAsync=Nye;function Cye(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Fo.isWrapped=Cye});var b2=c($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.InstrumentationBase=void 0;var nP=require("path"),O2=require("util"),Mye=Tr(),oP=Le(),Lye=gX(),Dye=p2(),Gye=Rr(),od=(P(),m(b)),Uye=Ge(),xye=require("fs"),wye=rP(),iP=class extends Lye.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=Dye.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,wye.isWrapped)(i[s])&&this._unwrap(i,s),O2.types.isProxy(i)){let u=(0,oP.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,oP.wrap)(i,s,a)},this._unwrap=(i,s)=>O2.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,oP.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{od.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){od.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{od.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){od.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,xye.readFileSync)(nP.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{od.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return I2(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=nP.normalize(n);return a.filter(d=>d.name===u).filter(d=>I2(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=nP.isAbsolute(e.name)?new Uye.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new Gye.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};$f.InstrumentationBase=iP;function I2(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,Mye.satisfies)(e,n,{includePrerelease:r}))}});var P2=c(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.normalize=void 0;var Vye=require("path");Object.defineProperty(Qf,"normalize",{enumerable:!0,get:function(){return Vye.normalize}})});var y2=c(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.normalize=wa.InstrumentationBase=void 0;var Bye=b2();Object.defineProperty(wa,"InstrumentationBase",{enumerable:!0,get:function(){return Bye.InstrumentationBase}});var qye=P2();Object.defineProperty(wa,"normalize",{enumerable:!0,get:function(){return qye.normalize}})});var sP=c(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.normalize=Va.InstrumentationBase=void 0;var v2=y2();Object.defineProperty(Va,"InstrumentationBase",{enumerable:!0,get:function(){return v2.InstrumentationBase}});Object.defineProperty(Va,"normalize",{enumerable:!0,get:function(){return v2.normalize}})});var N2=c(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.InstrumentationNodeModuleDefinition=void 0;var aP=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};eg.InstrumentationNodeModuleDefinition=aP});var C2=c(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.InstrumentationNodeModuleFile=void 0;var jye=sP(),uP=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,jye.normalize)(e)}};tg.InstrumentationNodeModuleFile=uP});var qe=c(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.safeExecuteInTheMiddleAsync=At.safeExecuteInTheMiddle=At.isWrapped=At.InstrumentationNodeModuleFile=At.InstrumentationNodeModuleDefinition=At.InstrumentationBase=At.registerInstrumentations=void 0;var Hye=dX();Object.defineProperty(At,"registerInstrumentations",{enumerable:!0,get:function(){return Hye.registerInstrumentations}});var Fye=sP();Object.defineProperty(At,"InstrumentationBase",{enumerable:!0,get:function(){return Fye.InstrumentationBase}});var kye=N2();Object.defineProperty(At,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return kye.InstrumentationNodeModuleDefinition}});var Wye=C2();Object.defineProperty(At,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Wye.InstrumentationNodeModuleFile}});var cP=rP();Object.defineProperty(At,"isWrapped",{enumerable:!0,get:function(){return cP.isWrapped}});Object.defineProperty(At,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return cP.safeExecuteInTheMiddle}});Object.defineProperty(At,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return cP.safeExecuteInTheMiddleAsync}})});var G2=c(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.HttpInstrumentation=void 0;var Y=(P(),m(b)),Ba=Af(),M2=Tr(),L2=require("url"),Te=yb(),Yye=$K(),Or=qe(),D2=Af(),lP=require("events"),Kye=($(),m(J)),dP=class extends Or.InstrumentationBase{constructor(e={}){super("@opentelemetry/instrumentation-http",Yye.VERSION,e),this._spanNotEnded=new WeakSet,this._headerCapture=this._createHeaderCapture()}_updateMetricInstruments(){this._httpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:Y.ValueType.DOUBLE}),this._httpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:Y.ValueType.DOUBLE})}setConfig(e={}){super.setConfig(e),this._headerCapture=this._createHeaderCapture()}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new Or.InstrumentationNodeModuleDefinition("http",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchOutgoingRequestFunction("http"));this._wrap(e,"get",this._getPatchOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getHttpsInstrumentation(){return new Or.InstrumentationNodeModuleDefinition("https",["*"],e=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(e,"request",this._getPatchHttpsOutgoingRequestFunction("https"));this._wrap(e,"get",this._getPatchHttpsOutgoingGetFunction(r))}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),e},e=>{e!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(e,"request"),this._unwrap(e,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(e.Server.prototype,"emit"))})}_getPatchIncomingRequestFunction(e){return r=>this._incomingRequestFunction(e,r)}_getPatchOutgoingRequestFunction(e){return r=>this._outgoingRequestFunction(e,r)}_getPatchOutgoingGetFunction(e){return r=>function(o,...i){let s=e(o,...i);return s.end(),s}}_getPatchHttpsOutgoingRequestFunction(e){return r=>{let n=this;return function(i,...s){var a;return e==="https"&&typeof i=="object"&&((a=i?.constructor)===null||a===void 0?void 0:a.name)!=="URL"&&(i=Object.assign({},i),n._setDefaultOptions(i)),n._getPatchOutgoingRequestFunction(e)(r)(i,...s)}}}_setDefaultOptions(e){e.protocol=e.protocol||"https:",e.port=e.port||443}_getPatchHttpsOutgoingGetFunction(e){return r=>{let n=this;return function(i,...s){return n._getPatchOutgoingGetFunction(e)(r)(i,...s)}}}_traceClientRequest(e,r,n,o){this.getConfig().requestHook&&this._callRequestHook(r,e);let i=!1;return e.prependListener("response",s=>{this._diag.debug("outgoingRequest on response()"),e.listenerCount("response")<=1&&s.resume();let a=Te.getOutgoingRequestAttributesOnResponse(s);r.setAttributes(a),o=Object.assign(o,Te.getOutgoingRequestMetricAttributesOnResponse(a)),this.getConfig().responseHook&&this._callResponseHook(r,s),this._headerCapture.client.captureRequestHeaders(r,l=>e.getHeader(l)),this._headerCapture.client.captureResponseHeaders(r,l=>s.headers[l]),Y.context.bind(Y.context.active(),s);let u=()=>{if(this._diag.debug("outgoingRequest on end()"),i)return;i=!0;let l;s.aborted&&!s.complete?l={code:Y.SpanStatusCode.ERROR}:l={code:Te.parseResponseStatus(Y.SpanKind.CLIENT,s.statusCode)},r.setStatus(l),this.getConfig().applyCustomAttributesOnSpan&&(0,Or.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,e,s),()=>{},!0),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o)};s.on("end",u),M2.lt(process.version,"16.0.0")&&s.on("close",u),s.on(lP.errorMonitor,l=>{this._diag.debug("outgoingRequest on error()",l),!i&&(i=!0,Te.setSpanWithError(r,l),r.setStatus({code:Y.SpanStatusCode.ERROR,message:l.message}),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))})}),e.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(e.aborted||i)&&(i=!0,this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))}),e.on(lP.errorMonitor,s=>{this._diag.debug("outgoingRequest on request error()",s),!i&&(i=!0,Te.setSpanWithError(r,s),this._closeHttpSpan(r,Y.SpanKind.CLIENT,n,o))}),this._diag.debug("http.ClientRequest return request"),e}_incomingRequestFunction(e,r){let n=this;return function(i,...s){if(i!=="request")return r.apply(this,[i,...s]);let a=s[0],u=s[1],l=a.url&&L2.parse(a.url).pathname||"/",d=a.method||"GET";if(n._diag.debug(`${e} instrumentation incomingRequest`),Te.isIgnored(l,n.getConfig().ignoreIncomingPaths,L=>n._diag.error("caught ignoreIncomingPaths error: ",L))||(0,Or.safeExecuteInTheMiddle)(()=>{var L,M;return(M=(L=n.getConfig()).ignoreIncomingRequestHook)===null||M===void 0?void 0:M.call(L,a)},L=>{L!=null&&n._diag.error("caught ignoreIncomingRequestHook error: ",L)},!0))return Y.context.with((0,Ba.suppressTracing)(Y.context.active()),()=>(Y.context.bind(Y.context.active(),a),Y.context.bind(Y.context.active(),u),r.apply(this,[i,...s])));let p=a.headers,_=Te.getIncomingRequestAttributes(a,{component:e,serverName:n.getConfig().serverName,hookAttributes:n._callStartSpanHook(a,n.getConfig().startIncomingSpanHook)}),f={kind:Y.SpanKind.SERVER,attributes:_},g=(0,Ba.hrTime)(),E=Te.getIncomingRequestMetricAttributes(_),T=Y.propagation.extract(Y.ROOT_CONTEXT,p),y=n._startHttpSpan(d,f,T),C={type:D2.RPCType.HTTP,span:y};return Y.context.with((0,D2.setRPCMetadata)(Y.trace.setSpan(T,y),C),()=>{Y.context.bind(Y.context.active(),a),Y.context.bind(Y.context.active(),u),n.getConfig().requestHook&&n._callRequestHook(y,a),n.getConfig().responseHook&&n._callResponseHook(y,u),n._headerCapture.server.captureRequestHeaders(y,M=>a.headers[M]);let L=!1;return u.on("close",()=>{L||n._onServerResponseFinish(a,u,y,E,g)}),u.on(lP.errorMonitor,M=>{L=!0,n._onServerResponseError(y,E,g,M)}),(0,Or.safeExecuteInTheMiddle)(()=>r.apply(this,[i,...s]),M=>{if(M)throw Te.setSpanWithError(y,M),n._closeHttpSpan(y,Y.SpanKind.SERVER,g,E),M})})}}_outgoingRequestFunction(e,r){let n=this;return function(i,...s){if(!Te.isValidOptionsType(i))return r.apply(this,[i,...s]);let a=typeof s[0]=="object"&&(typeof i=="string"||i instanceof L2.URL)?s.shift():void 0,{origin:u,pathname:l,method:d,optionsParsed:p}=Te.getRequestInfo(i,a);if(e==="http"&&M2.lt(process.version,"9.0.0")&&p.protocol==="https:")return r.apply(this,[p,...s]);if(Te.isIgnored(u+l,n.getConfig().ignoreOutgoingUrls,v=>n._diag.error("caught ignoreOutgoingUrls error: ",v))||(0,Or.safeExecuteInTheMiddle)(()=>{var v,D;return(D=(v=n.getConfig()).ignoreOutgoingRequestHook)===null||D===void 0?void 0:D.call(v,p)},v=>{v!=null&&n._diag.error("caught ignoreOutgoingRequestHook error: ",v)},!0))return r.apply(this,[p,...s]);let{hostname:_,port:f}=Te.extractHostnameAndPort(p),g=Te.getOutgoingRequestAttributes(p,{component:e,port:f,hostname:_,hookAttributes:n._callStartSpanHook(p,n.getConfig().startOutgoingSpanHook)}),E=(0,Ba.hrTime)(),T=Te.getOutgoingRequestMetricAttributes(g),y={kind:Y.SpanKind.CLIENT,attributes:g},C=n._startHttpSpan(d,y),L=Y.context.active(),M=Y.trace.setSpan(L,C);return p.headers?p.headers=Object.assign({},p.headers):p.headers={},Y.propagation.inject(M,p.headers),Y.context.with(M,()=>{let v=s[s.length-1];typeof v=="function"&&(s[s.length-1]=Y.context.bind(L,v));let D=(0,Or.safeExecuteInTheMiddle)(()=>r.apply(this,[p,...s]),x=>{if(x)throw Te.setSpanWithError(C,x),n._closeHttpSpan(C,Y.SpanKind.CLIENT,E,T),x});return n._diag.debug(`${e} instrumentation outgoingRequest`),Y.context.bind(L,D),n._traceClientRequest(D,C,E,T)})}}_onServerResponseFinish(e,r,n,o,i){let s=Te.getIncomingRequestAttributesOnResponse(e,r);o=Object.assign(o,Te.getIncomingRequestMetricAttributesOnResponse(s)),this._headerCapture.server.captureResponseHeaders(n,u=>r.getHeader(u)),n.setAttributes(s).setStatus({code:Te.parseResponseStatus(Y.SpanKind.SERVER,r.statusCode)});let a=s[Kye.SEMATTRS_HTTP_ROUTE];a&&n.updateName(`${e.method||"GET"} ${a}`),this.getConfig().applyCustomAttributesOnSpan&&(0,Or.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,e,r),()=>{},!0),this._closeHttpSpan(n,Y.SpanKind.SERVER,i,o)}_onServerResponseError(e,r,n,o){Te.setSpanWithError(e,o),this._closeHttpSpan(e,Y.SpanKind.SERVER,n,r)}_startHttpSpan(e,r,n=Y.context.active()){let o=r.kind===Y.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,i,s=Y.trace.getSpan(n);return o===!0&&s===void 0?i=Y.trace.wrapSpanContext(Y.INVALID_SPAN_CONTEXT):o===!0&&s?.spanContext().isRemote?i=s:i=this.tracer.startSpan(e,r,n),this._spanNotEnded.add(i),i}_closeHttpSpan(e,r,n,o){if(!this._spanNotEnded.has(e))return;e.end(),this._spanNotEnded.delete(e);let i=(0,Ba.hrTimeToMilliseconds)((0,Ba.hrTimeDuration)(n,(0,Ba.hrTime)()));r===Y.SpanKind.SERVER?this._httpServerDurationHistogram.record(i,o):r===Y.SpanKind.CLIENT&&this._httpClientDurationHistogram.record(i,o)}_callResponseHook(e,r){(0,Or.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(e,r),()=>{},!0)}_callRequestHook(e,r){(0,Or.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(e,r),()=>{},!0)}_callStartSpanHook(e,r){if(typeof r=="function")return(0,Or.safeExecuteInTheMiddle)(()=>r(e),()=>{},!0)}_createHeaderCapture(){var e,r,n,o,i,s,a,u,l,d,p,_;let f=this.getConfig();return{client:{captureRequestHeaders:Te.headerCapture("request",(n=(r=(e=f.headersToSpanAttributes)===null||e===void 0?void 0:e.client)===null||r===void 0?void 0:r.requestHeaders)!==null&&n!==void 0?n:[]),captureResponseHeaders:Te.headerCapture("response",(s=(i=(o=f.headersToSpanAttributes)===null||o===void 0?void 0:o.client)===null||i===void 0?void 0:i.responseHeaders)!==null&&s!==void 0?s:[])},server:{captureRequestHeaders:Te.headerCapture("request",(l=(u=(a=f.headersToSpanAttributes)===null||a===void 0?void 0:a.server)===null||u===void 0?void 0:u.requestHeaders)!==null&&l!==void 0?l:[]),captureResponseHeaders:Te.headerCapture("response",(_=(p=(d=f.headersToSpanAttributes)===null||d===void 0?void 0:d.server)===null||p===void 0?void 0:p.responseHeaders)!==null&&_!==void 0?_:[])}}}};rg.HttpInstrumentation=dP});var pP=c(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.setSpanWithError=W.setResponseContentLengthAttribute=W.setRequestContentLengthAttribute=W.setAttributesFromHttpKind=W.satisfiesPattern=W.parseResponseStatus=W.isValidOptionsType=W.isIgnored=W.isCompressed=W.headerCapture=W.getRequestInfo=W.getOutgoingRequestMetricAttributesOnResponse=W.getOutgoingRequestMetricAttributes=W.getOutgoingRequestAttributesOnResponse=W.getOutgoingRequestAttributes=W.getIncomingRequestMetricAttributesOnResponse=W.getIncomingRequestMetricAttributes=W.getIncomingRequestAttributesOnResponse=W.getIncomingRequestAttributes=W.getAbsoluteUrl=W.extractHostnameAndPort=W.HttpInstrumentation=void 0;var Xye=G2();Object.defineProperty(W,"HttpInstrumentation",{enumerable:!0,get:function(){return Xye.HttpInstrumentation}});var Ue=yb();Object.defineProperty(W,"extractHostnameAndPort",{enumerable:!0,get:function(){return Ue.extractHostnameAndPort}});Object.defineProperty(W,"getAbsoluteUrl",{enumerable:!0,get:function(){return Ue.getAbsoluteUrl}});Object.defineProperty(W,"getIncomingRequestAttributes",{enumerable:!0,get:function(){return Ue.getIncomingRequestAttributes}});Object.defineProperty(W,"getIncomingRequestAttributesOnResponse",{enumerable:!0,get:function(){return Ue.getIncomingRequestAttributesOnResponse}});Object.defineProperty(W,"getIncomingRequestMetricAttributes",{enumerable:!0,get:function(){return Ue.getIncomingRequestMetricAttributes}});Object.defineProperty(W,"getIncomingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return Ue.getIncomingRequestMetricAttributesOnResponse}});Object.defineProperty(W,"getOutgoingRequestAttributes",{enumerable:!0,get:function(){return Ue.getOutgoingRequestAttributes}});Object.defineProperty(W,"getOutgoingRequestAttributesOnResponse",{enumerable:!0,get:function(){return Ue.getOutgoingRequestAttributesOnResponse}});Object.defineProperty(W,"getOutgoingRequestMetricAttributes",{enumerable:!0,get:function(){return Ue.getOutgoingRequestMetricAttributes}});Object.defineProperty(W,"getOutgoingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return Ue.getOutgoingRequestMetricAttributesOnResponse}});Object.defineProperty(W,"getRequestInfo",{enumerable:!0,get:function(){return Ue.getRequestInfo}});Object.defineProperty(W,"headerCapture",{enumerable:!0,get:function(){return Ue.headerCapture}});Object.defineProperty(W,"isCompressed",{enumerable:!0,get:function(){return Ue.isCompressed}});Object.defineProperty(W,"isIgnored",{enumerable:!0,get:function(){return Ue.isIgnored}});Object.defineProperty(W,"isValidOptionsType",{enumerable:!0,get:function(){return Ue.isValidOptionsType}});Object.defineProperty(W,"parseResponseStatus",{enumerable:!0,get:function(){return Ue.parseResponseStatus}});Object.defineProperty(W,"satisfiesPattern",{enumerable:!0,get:function(){return Ue.satisfiesPattern}});Object.defineProperty(W,"setAttributesFromHttpKind",{enumerable:!0,get:function(){return Ue.setAttributesFromHttpKind}});Object.defineProperty(W,"setRequestContentLengthAttribute",{enumerable:!0,get:function(){return Ue.setRequestContentLengthAttribute}});Object.defineProperty(W,"setResponseContentLengthAttribute",{enumerable:!0,get:function(){return Ue.setResponseContentLengthAttribute}});Object.defineProperty(W,"setSpanWithError",{enumerable:!0,get:function(){return Ue.setSpanWithError}})});var Se=c(_P=>{Object.defineProperty(_P,"__esModule",{value:!0});var Zye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;_P.DEBUG_BUILD=Zye});var ko=c(ng=>{Object.defineProperty(ng,"__esModule",{value:!0});var id=I();function zye(){return U2(id.GLOBAL_OBJ),id.GLOBAL_OBJ}function U2(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||id.SDK_VERSION,e[id.SDK_VERSION]=e[id.SDK_VERSION]||{}}ng.getMainCarrier=zye;ng.getSentryCarrier=U2});var ud=c(ad=>{Object.defineProperty(ad,"__esModule",{value:!0});var sd=I();function Jye(t){let e=sd.timestampInSeconds(),r={sid:sd.uuid4(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Qye(r)};return t&&fP(r,t),r}function fP(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||sd.timestampInSeconds(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:sd.uuid4()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function $ye(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),fP(t,r)}function Qye(t){return sd.dropUndefinedKeys({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}ad.closeSession=$ye;ad.makeSession=Jye;ad.updateSession=fP});var qa=c(og=>{Object.defineProperty(og,"__esModule",{value:!0});var eve=I(),gP="_sentrySpan";function tve(t,e){e?eve.addNonEnumerableProperty(t,gP,e):delete t[gP]}function rve(t){return t[gP]}og._getSpanForScope=rve;og._setSpanForScope=tve});var ja=c(hP=>{Object.defineProperty(hP,"__esModule",{value:!0});var ln=I(),nve=ud(),ig=qa(),ove=100,EP=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ln.generatePropagationContext()}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ig._setSpanForScope(e,ig._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&nve.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,[n,o]=r instanceof x2?[r.getScopeData(),r.getRequestSession()]:ln.isPlainObject(r)?[e,e.requestSession]:[],{tags:i,extra:s,user:a,contexts:u,level:l,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...u},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),o&&(this._requestSession=o),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,ig._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=ln.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:ove;if(n<=0)return this;let o={timestamp:ln.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ig._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r&&r.event_id?r.event_id:ln.uuid4();if(!this._client)return ln.logger.warn("No client configured on scope - will not capture exception!"),n;let o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureMessage(e,r,n){let o=n&&n.event_id?n.event_id:ln.uuid4();if(!this._client)return ln.logger.warn("No client configured on scope - will not capture message!"),o;let i=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:i,...n,event_id:o},this),o}captureEvent(e,r){let n=r&&r.event_id?r.event_id:ln.uuid4();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(ln.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}},x2=EP;hP.Scope=x2});var mP=c(sg=>{Object.defineProperty(sg,"__esModule",{value:!0});var w2=I(),V2=ja();function ive(){return w2.getGlobalSingleton("defaultCurrentScope",()=>new V2.Scope)}function sve(){return w2.getGlobalSingleton("defaultIsolationScope",()=>new V2.Scope)}sg.getDefaultCurrentScope=ive;sg.getDefaultIsolationScope=sve});var F2=c(ug=>{Object.defineProperty(ug,"__esModule",{value:!0});var ave=I(),B2=mP(),q2=ja(),j2=ko(),ag=class{constructor(e,r){let n;e?n=e:n=new q2.Scope;let o;r?o=r:o=new q2.Scope,this._stack=[{scope:n}],this._isolationScope=o}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(o){throw this._popScope(),o}return ave.isThenable(n)?n.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ha(){let t=j2.getMainCarrier(),e=j2.getSentryCarrier(t);return e.stack=e.stack||new ag(B2.getDefaultCurrentScope(),B2.getDefaultIsolationScope())}function uve(t){return Ha().withScope(t)}function cve(t,e){let r=Ha();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function H2(t){return Ha().withScope(()=>t(Ha().getIsolationScope()))}function lve(){return{withIsolationScope:H2,withScope:uve,withSetScope:cve,withSetIsolationScope:(t,e)=>H2(e),getCurrentScope:()=>Ha().getScope(),getIsolationScope:()=>Ha().getIsolationScope()}}ug.AsyncContextStack=ag;ug.getStackAsyncContextStrategy=lve});var Fa=c(cg=>{Object.defineProperty(cg,"__esModule",{value:!0});var TP=ko(),dve=F2();function pve(t){let e=TP.getMainCarrier(),r=TP.getSentryCarrier(e);r.acs=t}function _ve(t){let e=TP.getSentryCarrier(t);return e.acs?e.acs:dve.getStackAsyncContextStrategy()}cg.getAsyncContextStrategy=_ve;cg.setAsyncContextStrategy=pve});var he=c(Wo=>{Object.defineProperty(Wo,"__esModule",{value:!0});var fve=I(),lg=Fa(),dg=ko(),gve=ja();function k2(){let t=dg.getMainCarrier();return lg.getAsyncContextStrategy(t).getCurrentScope()}function Eve(){let t=dg.getMainCarrier();return lg.getAsyncContextStrategy(t).getIsolationScope()}function hve(){return fve.getGlobalSingleton("globalScope",()=>new gve.Scope)}function mve(...t){let e=dg.getMainCarrier(),r=lg.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetScope(n,o):r.withScope(o)}return r.withScope(t[0])}function Tve(...t){let e=dg.getMainCarrier(),r=lg.getAsyncContextStrategy(e);if(t.length===2){let[n,o]=t;return n?r.withSetIsolationScope(n,o):r.withIsolationScope(o)}return r.withIsolationScope(t[0])}function Sve(){return k2().getClient()}Wo.getClient=Sve;Wo.getCurrentScope=k2;Wo.getGlobalScope=hve;Wo.getIsolationScope=Eve;Wo.withIsolationScope=Tve;Wo.withScope=mve});var _g=c(pg=>{Object.defineProperty(pg,"__esModule",{value:!0});var Ave=I(),SP="_sentryMetrics";function Rve(t){let e=t[SP];if(!e)return;let r={};for(let[,[n,o]]of e)(r[n]||(r[n]=[])).push(Ave.dropUndefinedKeys(o));return r}function Ove(t,e,r,n,o,i,s){let u=t[SP]||(t[SP]=new Map),l=`${e}:${r}@${o}`,d=u.get(s);if(d){let[,p]=d;u.set(s,[l,{min:Math.min(p.min,n),max:Math.max(p.max,n),count:p.count+=1,sum:p.sum+=n,tags:p.tags}])}else u.set(s,[l,{min:n,max:n,count:1,sum:n,tags:i}])}pg.getMetricSummaryJsonForSpan=Rve;pg.updateMetricSummaryOnSpan=Ove});var dn=c(Rt=>{Object.defineProperty(Rt,"__esModule",{value:!0});var Ive="sentry.source",bve="sentry.sample_rate",Pve="sentry.op",yve="sentry.origin",vve="sentry.idle_span_finish_reason",Nve="sentry.measurement_unit",Cve="sentry.measurement_value",Mve="sentry.profile_id",Lve="sentry.exclusive_time",Dve="cache.hit",Gve="cache.key",Uve="cache.item_size",xve="http.request.method",wve="url.full";Rt.SEMANTIC_ATTRIBUTE_CACHE_HIT=Dve;Rt.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=Uve;Rt.SEMANTIC_ATTRIBUTE_CACHE_KEY=Gve;Rt.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=Lve;Rt.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=xve;Rt.SEMANTIC_ATTRIBUTE_PROFILE_ID=Mve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=vve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=Nve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=Cve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_OP=Pve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=yve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=bve;Rt.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=Ive;Rt.SEMANTIC_ATTRIBUTE_URL_FULL=wve});var Ts=c(ms=>{Object.defineProperty(ms,"__esModule",{value:!0});var Vve=0,W2=1,$t=2;function Y2(t){if(t<400&&t>=100)return{code:W2};if(t>=400&&t<500)switch(t){case 401:return{code:$t,message:"unauthenticated"};case 403:return{code:$t,message:"permission_denied"};case 404:return{code:$t,message:"not_found"};case 409:return{code:$t,message:"already_exists"};case 413:return{code:$t,message:"failed_precondition"};case 429:return{code:$t,message:"resource_exhausted"};case 499:return{code:$t,message:"cancelled"};default:return{code:$t,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:$t,message:"unimplemented"};case 503:return{code:$t,message:"unavailable"};case 504:return{code:$t,message:"deadline_exceeded"};default:return{code:$t,message:"internal_error"}}return{code:$t,message:"unknown_error"}}function Bve(t,e){t.setAttribute("http.response.status_code",e);let r=Y2(e);r.message!=="unknown_error"&&t.setStatus(r)}ms.SPAN_STATUS_ERROR=$t;ms.SPAN_STATUS_OK=W2;ms.SPAN_STATUS_UNSET=Vve;ms.getSpanStatusFromHttpCode=Y2;ms.setHttpStatus=Bve});var Xe=c(dt=>{Object.defineProperty(dt,"__esModule",{value:!0});var As=I(),qve=Fa(),jve=ko(),Hve=he(),z2=_g(),K2=dn(),X2=Ts(),Fve=qa(),kve=0,J2=1;function Wve(t){let{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a}=OP(t);return As.dropUndefinedKeys({parent_span_id:i,span_id:e,trace_id:r,data:n,op:o,status:s,origin:a})}function Yve(t){let{spanId:e,traceId:r}=t.spanContext(),{parent_span_id:n}=OP(t);return As.dropUndefinedKeys({parent_span_id:n,span_id:e,trace_id:r})}function Kve(t){let{traceId:e,spanId:r}=t.spanContext(),n=IP(t);return As.generateSentryTraceHeader(e,r,n)}function AP(t){return typeof t=="number"?Z2(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Z2(t.getTime()):As.timestampInSeconds()}function Z2(t){return t>9999999999?t/1e3:t}function OP(t){if(Zve(t))return t.getSpanJSON();try{let{spanId:e,traceId:r}=t.spanContext();if(Xve(t)){let{attributes:n,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return As.dropUndefinedKeys({span_id:e,trace_id:r,data:n,description:i,parent_span_id:a,start_timestamp:AP(o),timestamp:AP(s)||void 0,status:$2(u),op:n[K2.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[K2.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:z2.getMetricSummaryJsonForSpan(t)})}return{span_id:e,trace_id:r}}catch{return{}}}function Xve(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Zve(t){return typeof t.getSpanJSON=="function"}function IP(t){let{traceFlags:e}=t.spanContext();return e===J2}function $2(t){if(!(!t||t.code===X2.SPAN_STATUS_UNSET))return t.code===X2.SPAN_STATUS_OK?"ok":t.message||"unknown_error"}var Ss="_sentryChildSpans",RP="_sentryRootSpan";function zve(t,e){let r=t[RP]||t;As.addNonEnumerableProperty(e,RP,r),t[Ss]?t[Ss].add(e):As.addNonEnumerableProperty(t,Ss,new Set([e]))}function Jve(t,e){t[Ss]&&t[Ss].delete(e)}function $ve(t){let e=new Set;function r(n){if(!e.has(n)&&IP(n)){e.add(n);let o=n[Ss]?Array.from(n[Ss]):[];for(let i of o)r(i)}}return r(t),Array.from(e)}function Qve(t){return t[RP]||t}function Q2(){let t=jve.getMainCarrier(),e=qve.getAsyncContextStrategy(t);return e.getActiveSpan?e.getActiveSpan():Fve._getSpanForScope(Hve.getCurrentScope())}function eNe(t,e,r,n,o,i){let s=Q2();s&&z2.updateMetricSummaryOnSpan(s,t,e,r,n,o,i)}dt.TRACE_FLAG_NONE=kve;dt.TRACE_FLAG_SAMPLED=J2;dt.addChildSpanToSpan=zve;dt.getActiveSpan=Q2;dt.getRootSpan=Qve;dt.getSpanDescendants=$ve;dt.getStatusMessage=$2;dt.removeChildSpanFromSpan=Jve;dt.spanIsSampled=IP;dt.spanTimeInputToSeconds=AP;dt.spanToJSON=OP;dt.spanToTraceContext=Yve;dt.spanToTraceHeader=Kve;dt.spanToTransactionTraceContext=Wve;dt.updateMetricSummaryOnActiveSpan=eNe});var Yo=c(yP=>{Object.defineProperty(yP,"__esModule",{value:!0});var bP=I(),tNe=Se(),eZ=Xe(),rNe=Ts(),tZ=!1;function nNe(){tZ||(tZ=!0,bP.addGlobalErrorInstrumentationHandler(PP),bP.addGlobalUnhandledRejectionInstrumentationHandler(PP))}function PP(){let t=eZ.getActiveSpan(),e=t&&eZ.getRootSpan(t);if(e){let r="internal_error";tNe.DEBUG_BUILD&&bP.logger.log(`[Tracing] Root span: ${r} -> Global error occurred`),e.setStatus({code:rNe.SPAN_STATUS_ERROR,message:r})}}PP.tag="sentry_tracingErrorCallback";yP.registerSpanErrorInstrumentation=nNe});var fg=c(cd=>{Object.defineProperty(cd,"__esModule",{value:!0});var vP=I(),rZ="_sentryScope",nZ="_sentryIsolationScope";function oNe(t,e,r){t&&(vP.addNonEnumerableProperty(t,nZ,r),vP.addNonEnumerableProperty(t,rZ,e))}function iNe(t){return{scope:t[rZ],isolationScope:t[nZ]}}cd.stripUrlQueryAndFragment=vP.stripUrlQueryAndFragment;cd.getCapturedScopesOnSpan=iNe;cd.setCapturedScopesOnSpan=oNe});var oZ=c(NP=>{Object.defineProperty(NP,"__esModule",{value:!0});var sNe=Yo();function aNe(){sNe.registerSpanErrorInstrumentation()}NP.addTracingExtensions=aNe});var Rs=c(CP=>{Object.defineProperty(CP,"__esModule",{value:!0});var uNe=he();function cNe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=uNe.getClient(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}CP.hasTracingEnabled=cNe});var ld=c(LP=>{Object.defineProperty(LP,"__esModule",{value:!0});var iZ=I(),lNe=Xe(),MP=class{constructor(e={}){this._traceId=e.traceId||iZ.uuid4(),this._spanId=e.spanId||iZ.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:lNe.TRACE_FLAG_NONE}}end(e){}setAttribute(e,r){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,r,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,r){}};LP.SentryNonRecordingSpan=MP});var gg=c(DP=>{Object.defineProperty(DP,"__esModule",{value:!0});var dNe=I();function pNe(t,e,r=()=>{}){let n;try{n=t()}catch(o){throw e(o),r(),o}return _Ne(n,e,r)}function _Ne(t,e,r){return dNe.isThenable(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}DP.handleCallbackErrors=pNe});var dd=c(GP=>{Object.defineProperty(GP,"__esModule",{value:!0});var fNe="production";GP.DEFAULT_ENVIRONMENT=fNe});var pn=c(ka=>{Object.defineProperty(ka,"__esModule",{value:!0});var hg=I(),gNe=dd(),ENe=he(),sZ=dn(),hNe=Rs(),Eg=Xe(),aZ="_frozenDsc";function mNe(t,e){let r=t;hg.addNonEnumerableProperty(r,aZ,e)}function uZ(t,e){let r=e.getOptions(),{publicKey:n}=e.getDsn()||{},o=hg.dropUndefinedKeys({environment:r.environment||gNe.DEFAULT_ENVIRONMENT,release:r.release,public_key:n,trace_id:t});return e.emit("createDsc",o),o}function cZ(t){let e=ENe.getClient();if(!e)return{};let r=uZ(Eg.spanToJSON(t).trace_id||"",e),n=Eg.getRootSpan(t),o=n[aZ];if(o)return o;let i=n.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&hg.baggageHeaderToDynamicSamplingContext(s);if(a)return a;let u=Eg.spanToJSON(n),l=u.data||{},d=l[sZ.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];d!=null&&(r.sample_rate=`${d}`);let p=l[sZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=u.description;return p!=="url"&&_&&(r.transaction=_),hNe.hasTracingEnabled()&&(r.sampled=String(Eg.spanIsSampled(n))),e.emit("createDsc",r,n),r}function TNe(t){let e=cZ(t);return hg.dynamicSamplingContextToSentryBaggageHeader(e)}ka.freezeDscOnSpan=mNe;ka.getDynamicSamplingContextFromClient=uZ;ka.getDynamicSamplingContextFromSpan=cZ;ka.spanToBaggageHeader=TNe});var Tg=c(mg=>{Object.defineProperty(mg,"__esModule",{value:!0});var lZ=I(),dZ=Se(),Wa=Xe();function SNe(t){if(!dZ.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Wa.spanToJSON(t),{spanId:o}=t.spanContext(),i=Wa.spanIsSampled(t),s=Wa.getRootSpan(t),a=s===t,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${r}`,`name: ${e}`,`ID: ${o}`];if(n&&l.push(`parent ID: ${n}`),!a){let{op:d,description:p}=Wa.spanToJSON(s);l.push(`root ID: ${s.spanContext().spanId}`),d&&l.push(`root op: ${d}`),p&&l.push(`root description: ${p}`)}lZ.logger.log(`${u}
|
|
12
|
+
${l.join(`
|
|
13
|
+
`)}`)}function ANe(t){if(!dZ.DEBUG_BUILD)return;let{description:e="< unknown name >",op:r="< unknown op >"}=Wa.spanToJSON(t),{spanId:n}=t.spanContext(),i=Wa.getRootSpan(t)===t,s=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${e}" with ID ${n}`;lZ.logger.log(s)}mg.logSpanEnd=ANe;mg.logSpanStart=SNe});var Sg=c(UP=>{Object.defineProperty(UP,"__esModule",{value:!0});var RNe=I(),ONe=Se();function INe(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>1){ONe.DEBUG_BUILD&&RNe.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}UP.parseSampleRate=INe});var BP=c(VP=>{Object.defineProperty(VP,"__esModule",{value:!0});var xP=I(),wP=Se(),bNe=Rs(),PNe=Sg();function yNe(t,e){if(!bNe.hasTracingEnabled(t))return[!1];let r;typeof t.tracesSampler=="function"?r=t.tracesSampler(e):e.parentSampled!==void 0?r=e.parentSampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1;let n=PNe.parseSampleRate(r);return n===void 0?(wP.DEBUG_BUILD&&xP.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()<n?[!0,n]:(wP.DEBUG_BUILD&&xP.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,n]):(wP.DEBUG_BUILD&&xP.logger.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,n])}VP.sampleSpan=yNe});var Ag=c(pd=>{Object.defineProperty(pd,"__esModule",{value:!0});var Jn=I(),vNe=pn(),pZ=Xe();function NNe(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function CNe(t,e,r,n){let o=Jn.getSdkMetadataForEnvelopeHeader(r),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&e&&{dsn:Jn.dsnToString(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Jn.createEnvelope(i,[s])}function MNe(t,e,r,n){let o=Jn.getSdkMetadataForEnvelopeHeader(r),i=t.type&&t.type!=="replay_event"?t.type:"event";NNe(t,r&&r.sdk);let s=Jn.createEventEnvelopeHeaders(t,o,n,e);delete t.sdkProcessingMetadata;let a=[{type:i},t];return Jn.createEnvelope(s,[a])}function LNe(t,e){function r(d){return!!d.trace_id&&!!d.public_key}let n=vNe.getDynamicSamplingContextFromSpan(t[0]),o=e&&e.getDsn(),i=e&&e.getOptions().tunnel,s={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!i&&o&&{dsn:Jn.dsnToString(o)}},a=e&&e.getOptions().beforeSendSpan,u=a?d=>a(pZ.spanToJSON(d)):d=>pZ.spanToJSON(d),l=[];for(let d of t){let p=u(d);p&&l.push(Jn.createSpanEnvelopeItem(p))}return Jn.createEnvelope(s,l)}pd.createEventEnvelope=MNe;pd.createSessionEnvelope=CNe;pd.createSpanEnvelope=LNe});var qP=c(Og=>{Object.defineProperty(Og,"__esModule",{value:!0});var Rg=dn(),_Z=Xe();function DNe(t,e,r,n=_Z.getActiveSpan()){let o=n&&_Z.getRootSpan(n);o&&o.addEvent(t,{[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r})}function GNe(t){if(!t||t.length===0)return;let e={};return t.forEach(r=>{let n=r.attributes||{},o=n[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[Rg.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];typeof o=="string"&&typeof i=="number"&&(e[r.name]={value:i,unit:o})}),e}Og.setMeasurement=DNe;Og.timedEventsToMeasurements=GNe});var HP=c(jP=>{Object.defineProperty(jP,"__esModule",{value:!0});var Fr=I(),fd=he(),_d=Se(),UNe=Ag(),fZ=_g(),Os=dn(),lr=Xe(),xNe=pn(),wNe=Tg(),gZ=qP(),EZ=fg(),hZ=1e3,Ig=class{constructor(e={}){this._traceId=e.traceId||Fr.uuid4(),this._spanId=e.spanId||Fr.uuid4().substring(16),this._startTime=e.startTimestamp||Fr.timestampInSeconds(),this._attributes={},this.setAttributes({[Os.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[Os.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,r){}spanContext(){let{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?lr.TRACE_FLAG_SAMPLED:lr.TRACE_FLAG_NONE}}setAttribute(e,r){return r===void 0?delete this._attributes[e]:this._attributes[e]=r,this}setAttributes(e){return Object.keys(e).forEach(r=>this.setAttribute(r,e[r])),this}updateStartTime(e){this._startTime=lr.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=lr.spanTimeInputToSeconds(e),wNe.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return Fr.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[Os.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:lr.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Os.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:fZ.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[Os.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[Os.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:gZ.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&lr.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?lr.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,r,n){_d.DEBUG_BUILD&&Fr.logger.log("[Tracing] Adding an event to span:",e);let o=mZ(r)?r:n||Fr.timestampInSeconds(),i=mZ(r)?{}:r||{},s={name:e,time:lr.spanTimeInputToSeconds(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=fd.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===lr.getRootSpan(this)))return;if(this._isStandaloneSpan){this._sampled?BNe(UNe.createSpanEnvelope([this],e)):(_d.DEBUG_BUILD&&Fr.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let n=this._convertSpanToTransaction();n&&(EZ.getCapturedScopesOnSpan(this).scope||fd.getCurrentScope()).captureEvent(n)}_convertSpanToTransaction(){if(!TZ(lr.spanToJSON(this)))return;this._name||(_d.DEBUG_BUILD&&Fr.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:r}=EZ.getCapturedScopesOnSpan(this),o=(e||fd.getCurrentScope()).getClient()||fd.getClient();if(this._sampled!==!0){_d.DEBUG_BUILD&&Fr.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),o&&o.recordDroppedEvent("sample_rate","transaction");return}let s=lr.getSpanDescendants(this).filter(p=>p!==this&&!VNe(p)).map(p=>lr.spanToJSON(p)).filter(TZ),a=this._attributes[Os.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],u={contexts:{trace:lr.spanToTransactionTraceContext(this)},spans:s.length>hZ?s.sort((p,_)=>p.start_timestamp-_.start_timestamp).slice(0,hZ):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:r,...Fr.dropUndefinedKeys({dynamicSamplingContext:xNe.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:fZ.getMetricSummaryJsonForSpan(this),...a&&{transaction_info:{source:a}}},l=gZ.timedEventsToMeasurements(this._events);return l&&Object.keys(l).length&&(_d.DEBUG_BUILD&&Fr.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),u.measurements=l),u}};function mZ(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function TZ(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function VNe(t){return t instanceof Ig&&t.isStandaloneSpan()}function BNe(t){let e=fd.getClient();if(!e)return;let r=t[1];if(!r||r.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}jP.SentrySpan=Ig});var Ya=c($n=>{Object.defineProperty($n,"__esModule",{value:!0});var kP=I(),qNe=ko(),Qt=he(),jNe=Fa(),HNe=Se(),SZ=dn(),RZ=gg(),FNe=Rs(),bg=qa(),Ko=Xe(),FP=pn(),kNe=Tg(),WNe=BP(),gd=ld(),OZ=HP(),IZ=Ts(),YNe=fg(),WP="__SENTRY_SUPPRESS_TRACING__";function KNe(t,e){let r=Ed();if(r.startSpan)return r.startSpan(t,e);let n=KP(t),{forceTransaction:o,parentSpan:i}=t;return Qt.withScope(t.scope,()=>bZ(i)(()=>{let a=Qt.getCurrentScope(),u=XP(a),d=t.onlyIfParent&&!u?new gd.SentryNonRecordingSpan:YP({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});return bg._setSpanForScope(a,d),RZ.handleCallbackErrors(()=>e(d),()=>{let{status:p}=Ko.spanToJSON(d);d.isRecording()&&(!p||p==="ok")&&d.setStatus({code:IZ.SPAN_STATUS_ERROR,message:"internal_error"})},()=>d.end())}))}function XNe(t,e){let r=Ed();if(r.startSpanManual)return r.startSpanManual(t,e);let n=KP(t),{forceTransaction:o,parentSpan:i}=t;return Qt.withScope(t.scope,()=>bZ(i)(()=>{let a=Qt.getCurrentScope(),u=XP(a),d=t.onlyIfParent&&!u?new gd.SentryNonRecordingSpan:YP({parentSpan:u,spanArguments:n,forceTransaction:o,scope:a});bg._setSpanForScope(a,d);function p(){d.end()}return RZ.handleCallbackErrors(()=>e(d,p),()=>{let{status:_}=Ko.spanToJSON(d);d.isRecording()&&(!_||_==="ok")&&d.setStatus({code:IZ.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function ZNe(t){let e=Ed();if(e.startInactiveSpan)return e.startInactiveSpan(t);let r=KP(t),{forceTransaction:n,parentSpan:o}=t;return(t.scope?s=>Qt.withScope(t.scope,s):o!==void 0?s=>Pg(o,s):s=>s())(()=>{let s=Qt.getCurrentScope(),a=XP(s);return t.onlyIfParent&&!a?new gd.SentryNonRecordingSpan:YP({parentSpan:a,spanArguments:r,forceTransaction:n,scope:s})})}var zNe=({sentryTrace:t,baggage:e},r)=>Qt.withScope(n=>{let o=kP.propagationContextFromHeaders(t,e);return n.setPropagationContext(o),r()});function Pg(t,e){let r=Ed();return r.withActiveSpan?r.withActiveSpan(t,e):Qt.withScope(n=>(bg._setSpanForScope(n,t||void 0),e(n)))}function JNe(t){let e=Ed();return e.suppressTracing?e.suppressTracing(t):Qt.withScope(r=>(r.setSDKProcessingMetadata({[WP]:!0}),t()))}function $Ne(t){return Qt.withScope(e=>(e.setPropagationContext(kP.generatePropagationContext()),HNe.DEBUG_BUILD&&kP.logger.info(`Starting a new trace with id ${e.getPropagationContext().traceId}`),Pg(null,t)))}function YP({parentSpan:t,spanArguments:e,forceTransaction:r,scope:n}){if(!FNe.hasTracingEnabled())return new gd.SentryNonRecordingSpan;let o=Qt.getIsolationScope(),i;if(t&&!r)i=QNe(t,n,e),Ko.addChildSpanToSpan(t,i);else if(t){let s=FP.getDynamicSamplingContextFromSpan(t),{traceId:a,spanId:u}=t.spanContext(),l=Ko.spanIsSampled(t);i=AZ({traceId:a,parentSpanId:u,...e},n,l),FP.freezeDscOnSpan(i,s)}else{let{traceId:s,dsc:a,parentSpanId:u,sampled:l}={...o.getPropagationContext(),...n.getPropagationContext()};i=AZ({traceId:s,parentSpanId:u,...e},n,l),a&&FP.freezeDscOnSpan(i,a)}return kNe.logSpanStart(i),YNe.setCapturedScopesOnSpan(i,n,o),i}function KP(t){let r={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...r};return n.startTimestamp=Ko.spanTimeInputToSeconds(t.startTime),delete n.startTime,n}return r}function Ed(){let t=qNe.getMainCarrier();return jNe.getAsyncContextStrategy(t)}function AZ(t,e,r){let n=Qt.getClient(),o=n&&n.getOptions()||{},{name:i="",attributes:s}=t,[a,u]=e.getScopeData().sdkProcessingMetadata[WP]?[!1]:WNe.sampleSpan(o,{name:i,parentSampled:r,attributes:s,transactionContext:{name:i,parentSampled:r}}),l=new OZ.SentrySpan({...t,attributes:{[SZ.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...t.attributes},sampled:a});return u!==void 0&&l.setAttribute(SZ.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),n&&n.emit("spanStart",l),l}function QNe(t,e,r){let{spanId:n,traceId:o}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[WP]?!1:Ko.spanIsSampled(t),s=i?new OZ.SentrySpan({...r,parentSpanId:n,traceId:o,sampled:i}):new gd.SentryNonRecordingSpan({traceId:o});Ko.addChildSpanToSpan(t,s);let a=Qt.getClient();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}function XP(t){let e=bg._getSpanForScope(t);if(!e)return;let r=Qt.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ko.getRootSpan(e):e}function bZ(t){return t!==void 0?e=>Pg(t,e):e=>e()}$n.continueTrace=zNe;$n.startInactiveSpan=ZNe;$n.startNewTrace=$Ne;$n.startSpan=KNe;$n.startSpanManual=XNe;$n.suppressTracing=JNe;$n.withActiveSpan=Pg});var NZ=c(vg=>{Object.defineProperty(vg,"__esModule",{value:!0});var Xo=I(),ZP=he(),zP=Se(),PZ=dn(),eCe=Rs(),vZ=qa(),kr=Xe(),tCe=ld(),yZ=Ts(),rCe=Ya(),yg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},nCe="heartbeatFailed",oCe="idleTimeout",iCe="finalTimeout",sCe="externalFinish";function aCe(t,e={}){let r=new Map,n=!1,o,i=sCe,s=!e.disableAutoFinish,a=[],{idleTimeout:u=yg.idleTimeout,finalTimeout:l=yg.finalTimeout,childSpanTimeout:d=yg.childSpanTimeout,beforeSpanEnd:p}=e,_=ZP.getClient();if(!_||!eCe.hasTracingEnabled())return new tCe.SentryNonRecordingSpan;let f=ZP.getCurrentScope(),g=kr.getActiveSpan(),E=uCe(t);E.end=new Proxy(E.end,{apply(D,x,ee){p&&p(E);let[z,...Fe]=ee,w=z||Xo.timestampInSeconds(),j=kr.spanTimeInputToSeconds(w),ie=kr.getSpanDescendants(E).filter(oe=>oe!==E);if(!ie.length)return v(j),Reflect.apply(D,x,[j,...Fe]);let Z=ie.map(oe=>kr.spanToJSON(oe).timestamp).filter(oe=>!!oe),ce=Z.length?Math.max(...Z):void 0,Be=kr.spanToJSON(E).start_timestamp,de=Math.min(Be?Be+l/1e3:1/0,Math.max(Be||-1/0,Math.min(j,ce||1/0)));return v(de),Reflect.apply(D,x,[de,...Fe])}});function T(){o&&(clearTimeout(o),o=void 0)}function y(D){T(),o=setTimeout(()=>{!n&&r.size===0&&s&&(i=oCe,E.end(D))},u)}function C(D){o=setTimeout(()=>{!n&&s&&(i=nCe,E.end(D))},d)}function L(D){T(),r.set(D,!0);let x=Xo.timestampInSeconds();C(x+d/1e3)}function M(D){if(r.has(D)&&r.delete(D),r.size===0){let x=Xo.timestampInSeconds();y(x+u/1e3)}}function v(D){n=!0,r.clear(),a.forEach(j=>j()),vZ._setSpanForScope(f,g);let x=kr.spanToJSON(E),{start_timestamp:ee}=x;if(!ee)return;(x.data||{})[PZ.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||E.setAttribute(PZ.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,i),Xo.logger.log(`[Tracing] Idle span "${x.op}" finished`);let Fe=kr.getSpanDescendants(E).filter(j=>j!==E),w=0;Fe.forEach(j=>{j.isRecording()&&(j.setStatus({code:yZ.SPAN_STATUS_ERROR,message:"cancelled"}),j.end(D),zP.DEBUG_BUILD&&Xo.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(j,void 0,2)));let ie=kr.spanToJSON(j),{timestamp:Z=0,start_timestamp:ce=0}=ie,Be=ce<=D,de=(l+u)/1e3,oe=Z-ce<=de;if(zP.DEBUG_BUILD){let ut=JSON.stringify(j,void 0,2);Be?oe||Xo.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",ut):Xo.logger.log("[Tracing] Discarding span since it happened after idle span was finished",ut)}(!oe||!Be)&&(kr.removeChildSpanFromSpan(E,j),w++)}),w>0&&E.setAttribute("sentry.idle_span_discarded_spans",w)}return a.push(_.on("spanStart",D=>{if(n||D===E||kr.spanToJSON(D).timestamp)return;kr.getSpanDescendants(E).includes(D)&&L(D.spanContext().spanId)})),a.push(_.on("spanEnd",D=>{n||M(D.spanContext().spanId)})),a.push(_.on("idleSpanEnableAutoFinish",D=>{D===E&&(s=!0,y(),r.size&&C())})),e.disableAutoFinish||y(),setTimeout(()=>{n||(E.setStatus({code:yZ.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),i=iCe,E.end())},l),E}function uCe(t){let e=rCe.startInactiveSpan(t);return vZ._setSpanForScope(ZP.getCurrentScope(),e),zP.DEBUG_BUILD&&Xo.logger.log("[Tracing] Started span is an idle span"),e}vg.TRACING_DEFAULTS=yg;vg.startIdleSpan=aCe});var ey=c(QP=>{Object.defineProperty(QP,"__esModule",{value:!0});var JP=I(),cCe=Se();function $P(t,e,r,n=0){return new JP.SyncPromise((o,i)=>{let s=t[n];if(e===null||typeof s!="function")o(e);else{let a=s({...e},r);cCe.DEBUG_BUILD&&s.id&&a===null&&JP.logger.log(`Event processor "${s.id}" dropped event`),JP.isThenable(a)?a.then(u=>$P(t,u,r,n+1).then(o)).then(null,i):$P(t,a,r,n+1).then(o).then(null,i)}})}QP.notifyEventProcessors=$P});var ry=c(md=>{Object.defineProperty(md,"__esModule",{value:!0});var hd=I(),lCe=pn(),ty=Xe();function dCe(t,e){let{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=e;_Ce(t,e),n&&ECe(t,n),hCe(t,r),fCe(t,o),gCe(t,i)}function pCe(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:_,transactionName:f,span:g}=e;Ka(t,"extra",r),Ka(t,"tags",n),Ka(t,"user",o),Ka(t,"contexts",i),Ka(t,"sdkProcessingMetadata",a),s&&(t.level=s),f&&(t.transactionName=f),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,..._}}function Ka(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function _Ce(t,e){let{extra:r,tags:n,user:o,contexts:i,level:s,transactionName:a}=e,u=hd.dropUndefinedKeys(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});let l=hd.dropUndefinedKeys(n);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});let d=hd.dropUndefinedKeys(o);d&&Object.keys(d).length&&(t.user={...d,...t.user});let p=hd.dropUndefinedKeys(i);p&&Object.keys(p).length&&(t.contexts={...p,...t.contexts}),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function fCe(t,e){let r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function gCe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function ECe(t,e){t.contexts={trace:ty.spanToTraceContext(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:lCe.getDynamicSamplingContextFromSpan(e),...t.sdkProcessingMetadata};let r=ty.getRootSpan(e),n=ty.spanToJSON(r).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function hCe(t,e){t.fingerprint=t.fingerprint?hd.arrayify(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}md.applyScopeDataToEvent=dCe;md.mergeAndOverwriteScopeData=Ka;md.mergeScopeData=pCe});var Ng=c(Xa=>{Object.defineProperty(Xa,"__esModule",{value:!0});var dr=I(),mCe=dd(),TCe=he(),SCe=ey(),MZ=ja(),ny=ry();function ACe(t,e,r,n,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||r.event_id||dr.uuid4(),timestamp:e.timestamp||dr.dateTimestampInSeconds()},l=r.integrations||t.integrations.map(T=>T.name);RCe(u,t),OCe(u,l),o&&o.emit("applyFrameMetadata",e),e.type===void 0&&LZ(u,t.stackParser);let d=bCe(n,r.captureContext);r.mechanism&&dr.addExceptionMechanism(u,r.mechanism);let p=o?o.getEventProcessors():[],_=TCe.getGlobalScope().getScopeData();if(i){let T=i.getScopeData();ny.mergeScopeData(_,T)}if(d){let T=d.getScopeData();ny.mergeScopeData(_,T)}let f=[...r.attachments||[],..._.attachments];f.length&&(r.attachments=f),ny.applyScopeDataToEvent(u,_);let g=[...p,..._.eventProcessors];return SCe.notifyEventProcessors(g,u,r).then(T=>(T&&DZ(T),typeof s=="number"&&s>0?ICe(T,s,a):T))}function RCe(t,e){let{environment:r,release:n,dist:o,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?r:mCe.DEFAULT_ENVIRONMENT),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&o!==void 0&&(t.dist=o),t.message&&(t.message=dr.truncate(t.message,i));let s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=dr.truncate(s.value,i));let a=t.request;a&&a.url&&(a.url=dr.truncate(a.url,i))}var CZ=new WeakMap;function LZ(t,e){let r=dr.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let n,o=CZ.get(e);o?n=o:(n=new Map,CZ.set(e,n));let i=Object.entries(r).reduce((s,[a,u])=>{let l,d=n.get(a);d?l=d:(l=e(a),n.set(a,l));for(let p=l.length-1;p>=0;p--){let _=l[p];if(_.filename){s[_.filename]=u;break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function DZ(t){let e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?e[o.abs_path]=o.debug_id:o.filename&&(e[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let r=t.debug_meta.images;Object.entries(e).forEach(([n,o])=>{r.push({type:"sourcemap",code_file:n,debug_id:o})})}function OCe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function ICe(t,e,r){if(!t)return null;let n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(o=>({...o,...o.data&&{data:dr.normalize(o.data,e,r)}}))},...t.user&&{user:dr.normalize(t.user,e,r)},...t.contexts&&{contexts:dr.normalize(t.contexts,e,r)},...t.extra&&{extra:dr.normalize(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=dr.normalize(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(o=>({...o,...o.data&&{data:dr.normalize(o.data,e,r)}}))),n}function bCe(t,e){if(!e)return t;let r=t?t.clone():new MZ.Scope;return r.update(e),r}function PCe(t){if(t)return yCe(t)?{captureContext:t}:NCe(t)?{captureContext:t}:t}function yCe(t){return t instanceof MZ.Scope||typeof t=="function"}var vCe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function NCe(t){return Object.keys(t).some(e=>vCe.includes(e))}Xa.applyDebugIds=LZ;Xa.applyDebugMeta=DZ;Xa.parseEventHintOrCaptureContext=PCe;Xa.prepareEvent=ACe});var Za=c(ve=>{Object.defineProperty(ve,"__esModule",{value:!0});var Qn=I(),CCe=dd(),_e=he(),Cg=Se(),oy=ud(),MCe=Ng();function LCe(t,e){return _e.getCurrentScope().captureException(t,MCe.parseEventHintOrCaptureContext(e))}function DCe(t,e){let r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return _e.getCurrentScope().captureMessage(t,r,n)}function GCe(t,e){return _e.getCurrentScope().captureEvent(t,e)}function UCe(t,e){_e.getIsolationScope().setContext(t,e)}function xCe(t){_e.getIsolationScope().setExtras(t)}function wCe(t,e){_e.getIsolationScope().setExtra(t,e)}function VCe(t){_e.getIsolationScope().setTags(t)}function BCe(t,e){_e.getIsolationScope().setTag(t,e)}function qCe(t){_e.getIsolationScope().setUser(t)}function jCe(){return _e.getIsolationScope().lastEventId()}function iy(t,e){let r=_e.getCurrentScope(),n=_e.getClient();if(!n)Cg.DEBUG_BUILD&&Qn.logger.warn("Cannot capture check-in. No client defined.");else if(!n.captureCheckIn)Cg.DEBUG_BUILD&&Qn.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return n.captureCheckIn(t,e,r);return Qn.uuid4()}function HCe(t,e,r){let n=iy({monitorSlug:t,status:"in_progress"},r),o=Qn.timestampInSeconds();function i(s){iy({monitorSlug:t,status:s,checkInId:n,duration:Qn.timestampInSeconds()-o})}return _e.withIsolationScope(()=>{let s;try{s=e()}catch(a){throw i("error"),a}return Qn.isThenable(s)?Promise.resolve(s).then(()=>{i("ok")},a=>{throw i("error"),a}):i("ok"),s})}async function FCe(t){let e=_e.getClient();return e?e.flush(t):(Cg.DEBUG_BUILD&&Qn.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function kCe(t){let e=_e.getClient();return e?e.close(t):(Cg.DEBUG_BUILD&&Qn.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function WCe(){return!!_e.getClient()}function YCe(){let t=_e.getClient();return!!t&&t.getOptions().enabled!==!1&&!!t.getTransport()}function KCe(t){_e.getIsolationScope().addEventProcessor(t)}function XCe(t){let e=_e.getClient(),r=_e.getIsolationScope(),n=_e.getCurrentScope(),{release:o,environment:i=CCe.DEFAULT_ENVIRONMENT}=e&&e.getOptions()||{},{userAgent:s}=Qn.GLOBAL_OBJ.navigator||{},a=oy.makeSession({release:o,environment:i,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...t}),u=r.getSession();return u&&u.status==="ok"&&oy.updateSession(u,{status:"exited"}),sy(),r.setSession(a),n.setSession(a),a}function sy(){let t=_e.getIsolationScope(),e=_e.getCurrentScope(),r=e.getSession()||t.getSession();r&&oy.closeSession(r),GZ(),t.setSession(),e.setSession()}function GZ(){let t=_e.getIsolationScope(),e=_e.getCurrentScope(),r=_e.getClient(),n=e.getSession()||t.getSession();n&&r&&r.captureSession(n)}function ZCe(t=!1){if(t){sy();return}GZ()}ve.addEventProcessor=KCe;ve.captureCheckIn=iy;ve.captureEvent=GCe;ve.captureException=LCe;ve.captureMessage=DCe;ve.captureSession=ZCe;ve.close=kCe;ve.endSession=sy;ve.flush=FCe;ve.isEnabled=YCe;ve.isInitialized=WCe;ve.lastEventId=jCe;ve.setContext=UCe;ve.setExtra=wCe;ve.setExtras=xCe;ve.setTag=BCe;ve.setTags=VCe;ve.setUser=qCe;ve.startSession=XCe;ve.withMonitor=HCe});var cy=c(uy=>{Object.defineProperty(uy,"__esModule",{value:!0});var zCe=I(),JCe=he(),ay=class{constructor(e,r){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r}flush(){let e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){let e=Array.from(this._pendingAggregates.values()),r={attrs:this._sessionAttrs,aggregates:e};return zCe.dropUndefinedKeys(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=JCe.getIsolationScope(),r=e.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,r){let n=new Date(r).setSeconds(0,0),o=this._pendingAggregates.get(n);switch(o||(o={started:new Date(n).toISOString()},this._pendingAggregates.set(n,o)),e){case"errored":return o.errored=(o.errored||0)+1,o.errored;case"ok":return o.exited=(o.exited||0)+1,o.exited;default:return o.crashed=(o.crashed||0)+1,o.crashed}}};uy.SessionFlusher=ay});var Lg=c(Mg=>{Object.defineProperty(Mg,"__esModule",{value:!0});var ly=I(),$Ce="7";function UZ(t){let e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function QCe(t){return`${UZ(t)}${t.projectId}/envelope/`}function eMe(t,e){return ly.urlEncode({sentry_key:t.publicKey,sentry_version:$Ce,...e&&{sentry_client:`${e.name}/${e.version}`}})}function tMe(t,e,r){return e||`${QCe(t)}?${eMe(t,r)}`}function rMe(t,e){let r=ly.makeDsn(t);if(!r)return"";let n=`${UZ(r)}embed/error-page/`,o=`dsn=${ly.dsnToString(r)}`;for(let i in e)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=e.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`;return`${n}?${o}`}Mg.getEnvelopeEndpointWithUrlEncodedAuth=tMe;Mg.getReportDialogEndpoint=rMe});var Ot=c(eo=>{Object.defineProperty(eo,"__esModule",{value:!0});var Dg=I(),nMe=he(),dy=Se(),py=[];function oMe(t){let e={};return t.forEach(r=>{let{name:n}=r,o=e[n];o&&!o.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.values(e)}function iMe(t){let e=t.defaultIntegrations||[],r=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=Dg.arrayify(r(e)):n=e;let o=oMe(n),i=o.findIndex(s=>s.name==="Debug");if(i>-1){let[s]=o.splice(i,1);o.push(s)}return o}function sMe(t,e){let r={};return e.forEach(n=>{n&&xZ(t,n,r)}),r}function aMe(t,e){for(let r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function xZ(t,e,r){if(r[e.name]){dy.DEBUG_BUILD&&Dg.logger.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,py.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),py.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(o,i)=>n(o,i,t))}if(typeof e.processEvent=="function"){let n=e.processEvent.bind(e),o=Object.assign((i,s)=>n(i,s,t),{id:e.name});t.addEventProcessor(o)}dy.DEBUG_BUILD&&Dg.logger.log(`Integration installed: ${e.name}`)}function uMe(t){let e=nMe.getClient();if(!e){dy.DEBUG_BUILD&&Dg.logger.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function cMe(t){return t}eo.addIntegration=uMe;eo.afterSetupIntegrations=aMe;eo.defineIntegration=cMe;eo.getIntegrationsToSetup=iMe;eo.installedIntegrations=py;eo.setupIntegration=xZ;eo.setupIntegrations=sMe});var gy=c(fy=>{Object.defineProperty(fy,"__esModule",{value:!0});var X=I(),lMe=Lg(),dMe=he(),Ir=Se(),wZ=Ag(),Gg=Ot(),VZ=ud(),pMe=pn(),_Me=Sg(),fMe=Ng(),BZ="Not capturing exception because it's already been captured.",_y=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=X.makeDsn(e.dsn):Ir.DEBUG_BUILD&&X.logger.warn("No DSN provided, client will not send events."),this._dsn){let r=lMe.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){let o=X.uuid4();if(X.checkOrSetAlreadyCaught(e))return Ir.DEBUG_BUILD&&X.logger.log(BZ),o;let i={event_id:o,...r};return this._process(this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n))),i.event_id}captureMessage(e,r,n,o){let i={event_id:X.uuid4(),...n},s=X.isParameterizedString(e)?e:String(e),a=X.isPrimitive(e)?this.eventFromMessage(s,r,i):this.eventFromException(e,i);return this._process(a.then(u=>this._captureEvent(u,i,o))),i.event_id}captureEvent(e,r,n){let o=X.uuid4();if(r&&r.originalException&&X.checkOrSetAlreadyCaught(r.originalException))return Ir.DEBUG_BUILD&&X.logger.log(BZ),o;let i={event_id:o,...r},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){typeof e.release!="string"?Ir.DEBUG_BUILD&&X.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),VZ.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(o=>n&&o))):X.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let r=this._integrations[e.name];Gg.setupIntegration(this,e,this._integrations),r||Gg.afterSetupIntegrations(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=wZ.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of r.attachments||[])n=X.addItemToEnvelope(n,X.createAttachmentEnvelopeItem(i));let o=this.sendEnvelope(n);o&&o.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){let r=wZ.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){let o=typeof n=="number"?n:1,i=`${e}:${r}`;Ir.DEBUG_BUILD&&X.logger.log(`Recording outcome: "${i}"${o>1?` (${o} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+o}}on(e,r){let n=this._hooks[e]=this._hooks[e]||[];return n.push(r),()=>{let o=n.indexOf(r);o>-1&&n.splice(o,1)}}emit(e,...r){let n=this._hooks[e];n&&n.forEach(o=>o(...r))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,r=>(Ir.DEBUG_BUILD&&X.logger.error("Error while sending envelope:",r),r)):(Ir.DEBUG_BUILD&&X.logger.error("Transport disabled"),X.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Gg.setupIntegrations(this,e),Gg.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,r){let n=!1,o=!1,i=r.exception&&r.exception.values;if(i){o=!0;for(let u of i){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let s=e.status==="ok";(s&&e.errors===0||s&&n)&&(VZ.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new X.SyncPromise(r=>{let n=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),r(!0)):(n+=o,e&&n>=e&&(clearInterval(i),r(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,o=dMe.getIsolationScope()){let i=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",e,r),e.type||o.setLastEventId(e.event_id||r.event_id),fMe.prepareEvent(i,e,r,n,this,o).then(a=>{if(a===null)return a;let u={...o.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&u){let{traceId:d,spanId:p,parentSpanId:_,dsc:f}=u;a.contexts={trace:X.dropUndefinedKeys({trace_id:d,span_id:p,parent_span_id:_}),...a.contexts};let g=f||pMe.getDynamicSamplingContextFromClient(d,this);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(o=>o.event_id,o=>{if(Ir.DEBUG_BUILD){let i=o;i.logLevel==="log"?X.logger.log(i.message):X.logger.warn(i)}})}_processEvent(e,r,n){let o=this.getOptions(),{sampleRate:i}=o,s=jZ(e),a=qZ(e),u=e.type||"error",l=`before send for type \`${u}\``,d=typeof i>"u"?void 0:_Me.parseSampleRate(i);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",e),X.rejectedSyncPromise(new X.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let p=u==="replay_event"?"replay":u,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,r,n,f).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",p,e),new X.SentryError("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return g;let T=EMe(this,o,g,r);return gMe(T,l)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",p,e),s){let C=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",C)}throw new X.SentryError(`${l} returned \`null\`, will not send event.`,"log")}let E=n&&n.getSession();if(!s&&E&&this._updateSessionFromEvent(E,g),s){let y=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,C=g.spans?g.spans.length:0,L=y-C;L>0&&this.recordDroppedEvent("before_send","span",L)}let T=g.transaction_info;if(s&&T&&g.transaction!==e.transaction){let y="custom";g.transaction_info={...T,source:y}}return this.sendEvent(g,r),g}).then(null,g=>{throw g instanceof X.SentryError?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new X.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
14
|
+
Reason: ${g}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([r,n])=>{let[o,i]=r.split(":");return{reason:o,category:i,quantity:n}})}_flushOutcomes(){Ir.DEBUG_BUILD&&X.logger.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){Ir.DEBUG_BUILD&&X.logger.log("No outcomes to send");return}if(!this._dsn){Ir.DEBUG_BUILD&&X.logger.log("No dsn provided, will not send outcomes");return}Ir.DEBUG_BUILD&&X.logger.log("Sending outcomes:",e);let r=X.createClientReportEnvelope(e,this._options.tunnel&&X.dsnToString(this._dsn));this.sendEnvelope(r)}};function gMe(t,e){let r=`${e} must return \`null\` or a valid event.`;if(X.isThenable(t))return t.then(n=>{if(!X.isPlainObject(n)&&n!==null)throw new X.SentryError(r);return n},n=>{throw new X.SentryError(`${e} rejected with ${n}`)});if(!X.isPlainObject(t)&&t!==null)throw new X.SentryError(r);return t}function EMe(t,e,r,n){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=e;if(qZ(r)&&o)return o(r,n);if(jZ(r)){if(r.spans&&s){let a=[];for(let u of r.spans){let l=s(u);l?a.push(l):t.recordDroppedEvent("before_send","span")}r.spans=a}if(i){if(r.spans){let a=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(r,n)}}return r}function qZ(t){return t.type===void 0}function jZ(t){return t.type==="transaction"}fy.BaseClient=_y});var my=c(hy=>{Object.defineProperty(hy,"__esModule",{value:!0});var Ey=I();function hMe(t,e,r,n,o){let i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&o&&(i.dsn=Ey.dsnToString(o)),e&&(i.trace=Ey.dropUndefinedKeys(e));let s=mMe(t);return Ey.createEnvelope(i,[s])}function mMe(t){return[{type:"check_in"},t]}hy.createCheckInEnvelope=hMe});var WZ=c(Sy=>{Object.defineProperty(Sy,"__esModule",{value:!0});var to=I(),TMe=gy(),SMe=my(),HZ=he(),Ug=Se(),AMe=cy(),RMe=Yo(),OMe=qa(),FZ=Xe(),kZ=pn(),Ty=class extends TMe.BaseClient{constructor(e){RMe.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,r){return to.resolvedSyncPromise(to.eventFromUnknownInput(this,this._options.stackParser,e,r))}eventFromMessage(e,r="info",n){return to.resolvedSyncPromise(to.eventFromMessage(this._options.stackParser,e,r,n,this._options.attachStacktrace))}captureException(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let o=HZ.getIsolationScope().getRequestSession();o&&o.status==="ok"&&(o.status="errored")}return super.captureException(e,r,n)}captureEvent(e,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&(e.type||"exception")==="exception"&&e.exception&&e.exception.values&&e.exception.values.length>0){let s=HZ.getIsolationScope().getRequestSession();s&&s.status==="ok"&&(s.status="errored")}return super.captureEvent(e,r,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:r}=this._options;e?this._sessionFlusher=new AMe.SessionFlusher(this,{release:e,environment:r}):Ug.DEBUG_BUILD&&to.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,r,n){let o="checkInId"in e&&e.checkInId?e.checkInId:to.uuid4();if(!this._isEnabled())return Ug.DEBUG_BUILD&&to.logger.warn("SDK not enabled, will not capture checkin."),o;let i=this.getOptions(),{release:s,environment:a,tunnel:u}=i,l={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:a};"duration"in e&&(l.duration=e.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone,failure_issue_threshold:r.failureIssueThreshold,recovery_threshold:r.recoveryThreshold});let[d,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let _=SMe.createCheckInEnvelope(l,d,this.getSdkMetadata(),u,this.getDsn());return Ug.DEBUG_BUILD&&to.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(_),o}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Ug.DEBUG_BUILD&&to.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,r,n,o){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,r,n,o)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let r=OMe._getSpanForScope(e);if(r){let u=FZ.getRootSpan(r);return[kZ.getDynamicSamplingContextFromSpan(u),FZ.spanToTraceContext(u)]}let{traceId:n,spanId:o,parentSpanId:i,dsc:s}=e.getPropagationContext(),a={trace_id:n,span_id:o,parent_span_id:i};return s?[s,a]:[kZ.getDynamicSamplingContextFromClient(n,this),a]}};Sy.ServerRuntimeClient=Ty});var ZZ=c(xg=>{Object.defineProperty(xg,"__esModule",{value:!0});var YZ=I(),KZ=he(),IMe=Se();function bMe(t,e){e.debug===!0&&(IMe.DEBUG_BUILD?YZ.logger.enable():YZ.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),KZ.getCurrentScope().update(e.initialScope);let n=new t(e);return XZ(n),n.init(),n}function XZ(t){KZ.getCurrentScope().setClient(t)}xg.initAndBind=bMe;xg.setCurrentClient=XZ});var QZ=c(wg=>{Object.defineProperty(wg,"__esModule",{value:!0});var er=I(),zZ=Se(),$Z=64;function PMe(t,e,r=er.makePromiseBuffer(t.bufferSize||$Z)){let n={},o=s=>r.drain(s);function i(s){let a=[];if(er.forEachEnvelopeItem(s,(p,_)=>{let f=er.envelopeItemTypeToDataCategory(_);if(er.isRateLimited(n,f)){let g=JZ(p,_);t.recordDroppedEvent("ratelimit_backoff",f,g)}else a.push(p)}),a.length===0)return er.resolvedSyncPromise({});let u=er.createEnvelope(s[0],a),l=p=>{er.forEachEnvelopeItem(u,(_,f)=>{let g=JZ(_,f);t.recordDroppedEvent(p,er.envelopeItemTypeToDataCategory(f),g)})},d=()=>e({body:er.serializeEnvelope(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&zZ.DEBUG_BUILD&&er.logger.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=er.updateRateLimits(n,p),p),p=>{throw l("network_error"),p});return r.add(d).then(p=>p,p=>{if(p instanceof er.SentryError)return zZ.DEBUG_BUILD&&er.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),er.resolvedSyncPromise({});throw p})}return{send:i,flush:o}}function JZ(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}wg.DEFAULT_TRANSPORT_BUFFER_SIZE=$Z;wg.createTransport=PMe});var e5=c(Td=>{Object.defineProperty(Td,"__esModule",{value:!0});var Vg=I(),yMe=Se(),Ay=100,Ry=5e3,vMe=36e5;function NMe(t){function e(...r){yMe.DEBUG_BUILD&&Vg.logger.info("[Offline]:",...r)}return r=>{let n=t(r);if(!r.createStore)throw new Error("No `createStore` function was provided");let o=r.createStore(r),i=Ry,s;function a(p,_,f){return Vg.envelopeContainsItemType(p,["client_report"])?!1:r.shouldStore?r.shouldStore(p,_,f):!0}function u(p){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;let _=await o.shift();_&&(e("Attempting to send previously queued event"),_[0].sent_at=new Date().toISOString(),d(_,!0).catch(f=>{e("Failed to retry sending",f)}))},p),typeof s!="number"&&s.unref&&s.unref()}function l(){s||(u(i),i=Math.min(i*2,vMe))}async function d(p,_=!1){if(!_&&Vg.envelopeContainsItemType(p,["replay_event","replay_recording"]))return await o.push(p),u(Ay),{};try{let f=await n.send(p),g=Ay;if(f){if(f.headers&&f.headers["retry-after"])g=Vg.parseRetryAfterHeader(f.headers["retry-after"]);else if(f.headers&&f.headers["x-sentry-rate-limits"])g=6e4;else if((f.statusCode||0)>=400)return f}return u(g),i=Ry,f}catch(f){if(await a(p,f,i))return _?await o.unshift(p):await o.push(p),l(),e("Error sending. Event queued.",f),{};throw f}}return r.flushAtStartup&&l(),{send:d,flush:p=>n.flush(p)}}}Td.MIN_DELAY=Ay;Td.START_DELAY=Ry;Td.makeOfflineTransport=NMe});var t5=c(Bg=>{Object.defineProperty(Bg,"__esModule",{value:!0});var Oy=I(),CMe=Lg();function Iy(t,e){let r;return Oy.forEachEnvelopeItem(t,(n,o)=>(e.includes(o)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function MMe(t,e){return r=>{let n=t(r);return{...n,send:async o=>{let i=Iy(o,["event","transaction","profile","replay_event"]);return i&&(i.release=e),n.send(o)}}}}function LMe(t,e){return Oy.createEnvelope(e?{...t[0],dsn:e}:t[0],t[1])}function DMe(t,e){return r=>{let n=t(r),o=new Map;function i(u,l){let d=l?`${u}:${l}`:u,p=o.get(d);if(!p){let _=Oy.dsnFromString(u);if(!_)return;let f=CMe.getEnvelopeEndpointWithUrlEncodedAuth(_,r.tunnel);p=l?MMe(t,l)({...r,url:f}):t({...r,url:f}),o.set(d,p)}return[u,p]}async function s(u){function l(f){let g=f&&f.length?f:["event"];return Iy(u,g)}let d=e({envelope:u,getEvent:l}).map(f=>typeof f=="string"?i(f,void 0):i(f.dsn,f.release)).filter(f=>!!f),p=d.length?d:[["",n]];return(await Promise.all(p.map(([f,g])=>g.send(LMe(u,f)))))[0]}async function a(u){let l=[...o.values(),n];return(await Promise.all(l.map(p=>p.flush(u)))).every(p=>p)}return{send:s,flush:a}}}Bg.eventFromEnvelope=Iy;Bg.makeMultiplexedTransport=DMe});var n5=c(by=>{Object.defineProperty(by,"__esModule",{value:!0});function GMe(t,e){let r=e&&e.getDsn(),n=e&&e.getOptions().tunnel;return xMe(t,r)||UMe(t,n)}function UMe(t,e){return e?r5(t)===r5(e):!1}function xMe(t,e){return e?t.includes(e.host):!1}function r5(t){return t[t.length-1]==="/"?t.slice(0,-1):t}by.isSentryRequestUrl=GMe});var o5=c(Py=>{Object.defineProperty(Py,"__esModule",{value:!0});function wMe(t,...e){let r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}Py.parameterize=wMe});var s5=c(yy=>{Object.defineProperty(yy,"__esModule",{value:!0});var i5=I();function VMe(t,e,r=[e],n="npm"){let o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:r.map(i=>({name:`${n}:@sentry/${i}`,version:i5.SDK_VERSION})),version:i5.SDK_VERSION}),t._metadata=o}yy.applySdkMetadata=VMe});var Ny=c(qg=>{Object.defineProperty(qg,"__esModule",{value:!0});var Sd=I(),BMe=Fa(),qMe=ko(),a5=he(),jMe=Za();Yo();Se();var vy=Xe(),u5=pn();function HMe(){if(!jMe.isEnabled())return{};let t=qMe.getMainCarrier(),e=BMe.getAsyncContextStrategy(t);if(e.getTraceData)return e.getTraceData();let r=a5.getClient(),n=a5.getCurrentScope(),o=vy.getActiveSpan(),{dsc:i,sampled:s,traceId:a}=n.getPropagationContext(),u=o&&vy.getRootSpan(o),l=o?vy.spanToTraceHeader(o):Sd.generateSentryTraceHeader(a,void 0,s),d=u?u5.getDynamicSamplingContextFromSpan(u):i||(r?u5.getDynamicSamplingContextFromClient(a,r):void 0),p=Sd.dynamicSamplingContextToSentryBaggageHeader(d);if(!Sd.TRACEPARENT_REGEXP.test(l))return Sd.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let f=c5(p);return f||Sd.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":l,...f&&{baggage:p}}}function c5(t){if(!t||!t.length)return!1;let e="[-!#$%&'*+.^_`|~A-Za-z0-9]+",r="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+",n="\\s*";return new RegExp(`^${e}${n}=${n}${r}(${n},${n}${e}${n}=${n}${r})*$`).test(t)}qg.getTraceData=HMe;qg.isValidBaggageString=c5});var l5=c(Cy=>{Object.defineProperty(Cy,"__esModule",{value:!0});var FMe=Ny();function kMe(){return Object.entries(FMe.getTraceData()).map(([t,e])=>`<meta name="${t}" content="${e}"/>`).join(`
|
|
15
|
+
`)}Cy.getTraceMetaTags=kMe});var Ly=c(My=>{Object.defineProperty(My,"__esModule",{value:!0});var d5=I(),p5=he(),WMe=100;function YMe(t,e){let r=p5.getClient(),n=p5.getIsolationScope();if(!r)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=WMe}=r.getOptions();if(i<=0)return;let a={timestamp:d5.dateTimestampInSeconds(),...t},u=o?d5.consoleSandbox(()=>o(a,e)):a;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,i))}My.addBreadcrumb=YMe});var g5=c(Dy=>{Object.defineProperty(Dy,"__esModule",{value:!0});var KMe=I(),XMe=he(),ZMe=Ot(),_5,zMe="FunctionToString",f5=new WeakMap,JMe=()=>({name:zMe,setupOnce(){_5=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=KMe.getOriginalFunction(this),r=f5.has(XMe.getClient())&&e!==void 0?e:this;return _5.apply(r,t)}}catch{}},setup(t){f5.set(t,!0)}}),$Me=ZMe.defineIntegration(JMe);Dy.functionToStringIntegration=$Me});var E5=c(Gy=>{Object.defineProperty(Gy,"__esModule",{value:!0});var Ze=I(),Is=Se(),QMe=Ot(),eLe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],tLe="InboundFilters",rLe=(t={})=>({name:tLe,processEvent(e,r,n){let o=n.getOptions(),i=oLe(t,o);return iLe(e,i)?null:e}}),nLe=QMe.defineIntegration(rLe);function oLe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:eLe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function iLe(t,e){return e.ignoreInternal&&dLe(t)?(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being internal Sentry Error.
|
|
16
|
+
Event: ${Ze.getEventDescription(t)}`),!0):sLe(t,e.ignoreErrors)?(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
17
|
+
Event: ${Ze.getEventDescription(t)}`),!0):_Le(t)?(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
18
|
+
Event: ${Ze.getEventDescription(t)}`),!0):aLe(t,e.ignoreTransactions)?(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
19
|
+
Event: ${Ze.getEventDescription(t)}`),!0):uLe(t,e.denyUrls)?(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
20
|
+
Event: ${Ze.getEventDescription(t)}.
|
|
21
|
+
Url: ${jg(t)}`),!0):cLe(t,e.allowUrls)?!1:(Is.DEBUG_BUILD&&Ze.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
22
|
+
Event: ${Ze.getEventDescription(t)}.
|
|
23
|
+
Url: ${jg(t)}`),!0)}function sLe(t,e){return t.type||!e||!e.length?!1:lLe(t).some(r=>Ze.stringMatchesSomePattern(r,e))}function aLe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;let r=t.transaction;return r?Ze.stringMatchesSomePattern(r,e):!1}function uLe(t,e){if(!e||!e.length)return!1;let r=jg(t);return r?Ze.stringMatchesSomePattern(r,e):!1}function cLe(t,e){if(!e||!e.length)return!0;let r=jg(t);return r?Ze.stringMatchesSomePattern(r,e):!0}function lLe(t){let e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),e}function dLe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function pLe(t=[]){for(let e=t.length-1;e>=0;e--){let r=t[e];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function jg(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?pLe(e):null}catch{return Is.DEBUG_BUILD&&Ze.logger.error(`Cannot extract url for event ${Ze.getEventDescription(t)}`),null}}function _Le(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}Gy.inboundFiltersIntegration=nLe});var m5=c(Uy=>{Object.defineProperty(Uy,"__esModule",{value:!0});var h5=I(),fLe=Ot(),gLe="cause",ELe=5,hLe="LinkedErrors",mLe=(t={})=>{let e=t.limit||ELe,r=t.key||gLe;return{name:hLe,preprocessEvent(n,o,i){let s=i.getOptions();h5.applyAggregateErrorsToEvent(h5.exceptionFromError,s.stackParser,s.maxValueLength,r,e,n,o)}}},TLe=fLe.defineIntegration(mLe);Uy.linkedErrorsIntegration=TLe});var wy=c(Ad=>{Object.defineProperty(Ad,"__esModule",{value:!0});var xy=I(),S5=new Map,T5=new Set;function SLe(t){if(xy.GLOBAL_OBJ._sentryModuleMetadata)for(let e of Object.keys(xy.GLOBAL_OBJ._sentryModuleMetadata)){let r=xy.GLOBAL_OBJ._sentryModuleMetadata[e];if(T5.has(e))continue;T5.add(e);let n=t(e);for(let o of n.reverse())if(o.filename){S5.set(o.filename,r);break}}}function A5(t,e){return SLe(t),S5.get(e)}function ALe(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(let n of r.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;let o=A5(t,n.filename);o&&(n.module_metadata=o)}})}catch{}}function RLe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(let r of e.stacktrace.frames||[])delete r.module_metadata})}catch{}}Ad.addMetadataToStackFrames=ALe;Ad.getMetadataForUrl=A5;Ad.stripMetadataFromStackFrames=RLe});var O5=c(Vy=>{Object.defineProperty(Vy,"__esModule",{value:!0});var OLe=I(),ILe=Ot(),R5=wy(),bLe=ILe.defineIntegration(()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",e=>{OLe.forEachEnvelopeItem(e,(r,n)=>{if(n==="event"){let o=Array.isArray(r)?r[1]:void 0;o&&(R5.stripMetadataFromStackFrames(o),r[1]=o)}})}),t.on("applyFrameMetadata",e=>{if(e.type)return;let r=t.getOptions().stackParser;R5.addMetadataToStackFrames(r,e)})}}));Vy.moduleMetadataIntegration=bLe});var I5=c(qy=>{Object.defineProperty(qy,"__esModule",{value:!0});var PLe=I(),yLe=Ot(),By={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},vLe="RequestData",NLe=(t={})=>{let e={...By,...t,include:{...By.include,...t.include,user:t.include&&typeof t.include.user=="boolean"?t.include.user:{...By.include.user,...(t.include||{}).user}}};return{name:vLe,processEvent(r){let{sdkProcessingMetadata:n={}}=r,o=n.request;if(!o)return r;let i=MLe(e);return PLe.addRequestDataToEvent(r,o,i)}}},CLe=yLe.defineIntegration(NLe);function MLe(t){let{transactionNamingScheme:e,include:{ip:r,user:n,...o}}=t,i=["method"];for(let[a,u]of Object.entries(o))u&&i.push(a);let s;if(n===void 0)s=!0;else if(typeof n=="boolean")s=n;else{let a=[];for(let[u,l]of Object.entries(n))l&&a.push(u);s=a}return{include:{ip:r,user:s,request:i.length!==0?i:void 0,transaction:e}}}qy.requestDataIntegration=CLe});var P5=c(Hy=>{Object.defineProperty(Hy,"__esModule",{value:!0});var bs=I(),b5=he(),jy=Za(),LLe=Ot(),DLe="CaptureConsole",GLe=(t={})=>{let e=t.levels||bs.CONSOLE_LEVELS;return{name:DLe,setup(r){"console"in bs.GLOBAL_OBJ&&bs.addConsoleInstrumentationHandler(({args:n,level:o})=>{b5.getClient()!==r||!e.includes(o)||xLe(n,o)})}}},ULe=LLe.defineIntegration(GLe);function xLe(t,e){let r={level:bs.severityLevelFromString(e),extra:{arguments:t}};b5.withScope(n=>{if(n.addEventProcessor(s=>(s.logger="console",bs.addExceptionMechanism(s,{handled:!1,type:"console"}),s)),e==="assert"){if(!t[0]){let s=`Assertion failed: ${bs.safeJoin(t.slice(1)," ")||"console.assert"}`;n.setExtra("arguments",t.slice(1)),jy.captureMessage(s,r)}return}let o=t.find(s=>s instanceof Error);if(o){jy.captureException(o,r);return}let i=bs.safeJoin(t," ");jy.captureMessage(i,r)})}Hy.captureConsoleIntegration=ULe});var y5=c(Fy=>{Object.defineProperty(Fy,"__esModule",{value:!0});var wLe=I(),VLe=Ot(),BLe="Debug",qLe=(t={})=>{let e={debugger:!1,stringify:!1,...t};return{name:BLe,setup(r){r.on("beforeSendEvent",(n,o)=>{if(e.debugger)debugger;wLe.consoleSandbox(()=>{e.stringify?(console.log(JSON.stringify(n,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(n),o&&Object.keys(o).length&&console.log(o))})})}}},jLe=VLe.defineIntegration(qLe);Fy.debugIntegration=jLe});var L5=c(Hg=>{Object.defineProperty(Hg,"__esModule",{value:!0});var ky=I(),HLe=Ot(),FLe=Se(),kLe="Dedupe",WLe=()=>{let t;return{name:kLe,processEvent(e){if(e.type)return e;try{if(N5(e,t))return FLe.DEBUG_BUILD&&ky.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},YLe=HLe.defineIntegration(WLe);function N5(t,e){return e?!!(KLe(t,e)||XLe(t,e)):!1}function KLe(t,e){let r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!M5(t,e)||!C5(t,e))}function XLe(t,e){let r=v5(e),n=v5(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!M5(t,e)||!C5(t,e))}function C5(t,e){let r=ky.getFramesFromEvent(t),n=ky.getFramesFromEvent(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let o=0;o<n.length;o++){let i=n[o],s=r[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function M5(t,e){let r=t.fingerprint,n=e.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return r.join("")===n.join("")}catch{return!1}}function v5(t){return t.exception&&t.exception.values&&t.exception.values[0]}Hg._shouldDropEvent=N5;Hg.dedupeIntegration=YLe});var D5=c(Wy=>{Object.defineProperty(Wy,"__esModule",{value:!0});var ro=I(),ZLe=Ot(),zLe=Se(),JLe="ExtraErrorData",$Le=(t={})=>{let{depth:e=3,captureErrorCause:r=!0}=t;return{name:JLe,processEvent(n,o,i){let{maxValueLength:s=250}=i.getOptions();return e0e(n,o,e,r,s)}}},QLe=ZLe.defineIntegration($Le);function e0e(t,e={},r,n,o){if(!e.originalException||!ro.isError(e.originalException))return t;let i=e.originalException.name||e.originalException.constructor.name,s=t0e(e.originalException,n,o);if(s){let a={...t.contexts},u=ro.normalize(s,r);return ro.isPlainObject(u)&&(ro.addNonEnumerableProperty(u,"__sentry_skip_normalization__",!0),a[i]=u),{...t,contexts:a}}return t}function t0e(t,e,r){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(t)){if(n.indexOf(i)!==-1)continue;let s=t[i];o[i]=ro.isError(s)||typeof s=="string"?ro.truncate(`${s}`,r):s}if(e&&t.cause!==void 0&&(o.cause=ro.isError(t.cause)?t.cause.toString():t.cause),typeof t.toJSON=="function"){let i=t.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=ro.isError(a)?a.toString():a}}return o}catch(n){zLe.DEBUG_BUILD&&ro.logger.error("Unable to extract extra data from the Error object:",n)}return null}Wy.extraErrorDataIntegration=QLe});var U5=c(kg=>{Object.defineProperty(kg,"__esModule",{value:!0});var Fg=I(),r0e=Ot(),n0e="RewriteFrames",o0e=r0e.defineIntegration((t={})=>{let e=t.root,r=t.prefix||"app:///",n="window"in Fg.GLOBAL_OBJ&&Fg.GLOBAL_OBJ.window!==void 0,o=t.iteratee||G5({isBrowser:n,root:e,prefix:r});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(u=>({...u,...u.stacktrace&&{stacktrace:s(u.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a&&a.frames&&a.frames.map(u=>o(u))}}return{name:n0e,processEvent(a){let u=a;return a.exception&&Array.isArray(a.exception.values)&&(u=i(u)),u}}});function G5({isBrowser:t,root:e,prefix:r}){return n=>{if(!n.filename)return n;let o=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),i=/^\//.test(n.filename);if(t){if(e){let s=n.filename;s.indexOf(e)===0&&(n.filename=s.replace(e,r))}}else if(o||i){let s=o?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,a=e?Fg.relative(e,s):Fg.basename(s);n.filename=`${r}${a}`}return n}}kg.generateIteratee=G5;kg.rewriteFramesIntegration=o0e});var w5=c(Yy=>{Object.defineProperty(Yy,"__esModule",{value:!0});var x5=I(),i0e=Ot(),s0e="SessionTiming",a0e=()=>{let t=x5.timestampInSeconds()*1e3;return{name:s0e,processEvent(e){let r=x5.timestampInSeconds()*1e3;return{...e,extra:{...e.extra,"session:start":t,"session:duration":r-t,"session:end":r}}}}},u0e=i0e.defineIntegration(a0e);Yy.sessionTimingIntegration=u0e});var q5=c(Wg=>{Object.defineProperty(Wg,"__esModule",{value:!0});var V5=I(),c0e=Ot(),l0e=10,d0e="ZodErrors";function p0e(t){return V5.isError(t)&&t.name==="ZodError"&&Array.isArray(t.errors)}function _0e(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function f0e(t){let e=new Set;for(let n of t.issues)n.path&&n.path[0]&&e.add(n.path[0]);let r=Array.from(e);return`Failed to validate keys: ${V5.truncate(r.join(", "),100)}`}function B5(t,e,r){return!e.exception||!e.exception.values||!r||!r.originalException||!p0e(r.originalException)||r.originalException.issues.length===0?e:{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:f0e(r.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":r.originalException.errors.slice(0,t).map(_0e)}}}var g0e=(t={})=>{let e=t.limit||l0e;return{name:d0e,processEvent(r,n){return B5(e,r,n)}}},E0e=c0e.defineIntegration(g0e);Wg.applyZodErrorsToEvent=B5;Wg.zodErrorsIntegration=E0e});var k5=c(Ky=>{Object.defineProperty(Ky,"__esModule",{value:!0});var F5=I(),h0e=Ot(),j5=wy(),m0e=h0e.defineIntegration(t=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",r=>{F5.forEachEnvelopeItem(r,(n,o)=>{if(o==="event"){let i=Array.isArray(n)?n[1]:void 0;i&&(j5.stripMetadataFromStackFrames(i),n[1]=i)}})}),e.on("applyFrameMetadata",r=>{if(r.type)return;let n=e.getOptions().stackParser;j5.addMetadataToStackFrames(n,r)})},processEvent(e){let r=T0e(e);if(r){let n=t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(r[n](i=>!i.some(s=>t.filterKeys.includes(s)))){if(t.behaviour==="drop-error-if-contains-third-party-frames"||t.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;e.tags={...e.tags,third_party_code:!0}}}return e}}));function T0e(t){let e=F5.getFramesFromEvent(t);if(e)return e.filter(r=>!!r.filename).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(n=>n.startsWith(H5)).map(n=>n.slice(H5.length)):[])}var H5="_sentryBundlerPluginAppKey:";Ky.thirdPartyErrorFilterIntegration=m0e});var Rd=c(no=>{Object.defineProperty(no,"__esModule",{value:!0});var S0e="c",A0e="g",R0e="s",O0e="d",I0e=5e3,b0e=1e4,P0e=1e4;no.COUNTER_METRIC_TYPE=S0e;no.DEFAULT_BROWSER_FLUSH_INTERVAL=I0e;no.DEFAULT_FLUSH_INTERVAL=b0e;no.DISTRIBUTION_METRIC_TYPE=O0e;no.GAUGE_METRIC_TYPE=A0e;no.MAX_WEIGHT=P0e;no.SET_METRIC_TYPE=R0e});var $y=c(Jy=>{Object.defineProperty(Jy,"__esModule",{value:!0});var Yg=I(),y0e=he(),v0e=Se();Yo();var Xy=Xe(),N0e=Ya(),C0e=gg(),Kg=Rd();function W5(t,e){let r=Yg.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),n=r.get(t);if(n)return n;let o=new e(t);return t.on("flush",()=>o.flush()),t.on("close",()=>o.close()),r.set(t,o),o}function Xg(t,e,r,n,o={}){let i=o.client||y0e.getClient();if(!i)return;let s=Xy.getActiveSpan(),a=s?Xy.getRootSpan(s):void 0,u=a&&Xy.spanToJSON(a).description,{unit:l,tags:d,timestamp:p}=o,{release:_,environment:f}=i.getOptions(),g={};_&&(g.release=_),f&&(g.environment=f),u&&(g.transaction=u),v0e.DEBUG_BUILD&&Yg.logger.log(`Adding value of ${n} to ${e} metric ${r}`),W5(i,t).add(e,r,n,l,{...g,...d},p)}function M0e(t,e,r=1,n){Xg(t,Kg.COUNTER_METRIC_TYPE,e,zy(r),n)}function Zy(t,e,r,n){Xg(t,Kg.DISTRIBUTION_METRIC_TYPE,e,zy(r),n)}function L0e(t,e,r,n="second",o){if(typeof r=="function"){let i=Yg.timestampInSeconds();return N0e.startSpanManual({op:"metrics.timing",name:e,startTime:i,onlyIfParent:!0},s=>C0e.handleCallbackErrors(()=>r(),()=>{},()=>{let a=Yg.timestampInSeconds(),u=a-i;Zy(t,e,u,{...o,unit:"second"}),s.end(a)}))}Zy(t,e,r,{...o,unit:n})}function D0e(t,e,r,n){Xg(t,Kg.SET_METRIC_TYPE,e,r,n)}function G0e(t,e,r,n){Xg(t,Kg.GAUGE_METRIC_TYPE,e,zy(r),n)}var U0e={increment:M0e,distribution:Zy,set:D0e,gauge:G0e,timing:L0e,getMetricsAggregatorForClient:W5};function zy(t){return typeof t=="string"?parseInt(t):t}Jy.metrics=U0e});var X5=c(Qy=>{Object.defineProperty(Qy,"__esModule",{value:!0});var za=I(),Y5=he(),Ja=Se();function K5(t){return!!t&&typeof t._profiler<"u"&&typeof t._profiler.start=="function"&&typeof t._profiler.stop=="function"}function x0e(){let t=Y5.getClient();if(!t){Ja.DEBUG_BUILD&&za.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){Ja.DEBUG_BUILD&&za.logger.warn("ProfilingIntegration is not available");return}if(!K5(e)){Ja.DEBUG_BUILD&&za.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.start()}function w0e(){let t=Y5.getClient();if(!t){Ja.DEBUG_BUILD&&za.logger.warn("No Sentry client available, profiling is not started");return}let e=t.getIntegrationByName("ProfilingIntegration");if(!e){Ja.DEBUG_BUILD&&za.logger.warn("ProfilingIntegration is not available");return}if(!K5(e)){Ja.DEBUG_BUILD&&za.logger.warn("Profiler is not available on profiling integration.");return}e._profiler.stop()}var V0e={startProfiler:x0e,stopProfiler:w0e};Qy.profiler=V0e});var Od=c(Zo=>{Object.defineProperty(Zo,"__esModule",{value:!0});var B0e=I();function q0e(t,e,r,n){let o=Object.entries(B0e.dropUndefinedKeys(n)).sort((i,s)=>i[0].localeCompare(s[0]));return`${t}${e}${r}${o}`}function j0e(t){let e=0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);e=(e<<5)-e+n,e&=e}return e>>>0}function H0e(t){let e="";for(let r of t){let n=Object.entries(r.tags),o=n.length>0?`|#${n.map(([i,s])=>`${i}:${s}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${o}|T${r.timestamp}
|
|
24
|
+
`}return e}function F0e(t){return t.replace(/[^\w]+/gi,"_")}function k0e(t){return t.replace(/[^\w\-.]+/gi,"_")}function W0e(t){return t.replace(/[^\w\-./]+/gi,"")}var Y0e=[[`
|
|
25
|
+
`,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function K0e(t){for(let[e,r]of Y0e)if(t===e)return r;return t}function X0e(t){return[...t].reduce((e,r)=>e+K0e(r),"")}function Z0e(t){let e={};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=W0e(r);e[n]=X0e(String(t[r]))}return e}Zo.getBucketKey=q0e;Zo.sanitizeMetricKey=k0e;Zo.sanitizeTags=Z0e;Zo.sanitizeUnit=F0e;Zo.serializeMetricBuckets=H0e;Zo.simpleHash=j0e});var tv=c(Zg=>{Object.defineProperty(Zg,"__esModule",{value:!0});var ev=I(),z0e=Od();function J0e(t,e){ev.logger.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let r=t.getDsn(),n=t.getSdkMetadata(),o=t.getOptions().tunnel,i=Z5(e,r,n,o);t.sendEnvelope(i)}function Z5(t,e,r,n){let o={sent_at:new Date().toISOString()};r&&r.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(o.dsn=ev.dsnToString(e));let i=$0e(t);return ev.createEnvelope(o,[i])}function $0e(t){let e=z0e.serializeMetricBuckets(t);return[{type:"statsd",length:e.length},e]}Zg.captureAggregateMetrics=J0e;Zg.createMetricEnvelope=Z5});var rv=c(Ps=>{Object.defineProperty(Ps,"__esModule",{value:!0});var zg=Rd(),Q0e=Od(),Jg=class{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}},$g=class{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},Qg=class{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}},eE=class{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?Q0e.simpleHash(e):e).join(":")}},eDe={[zg.COUNTER_METRIC_TYPE]:Jg,[zg.GAUGE_METRIC_TYPE]:$g,[zg.DISTRIBUTION_METRIC_TYPE]:Qg,[zg.SET_METRIC_TYPE]:eE};Ps.CounterMetric=Jg;Ps.DistributionMetric=Qg;Ps.GaugeMetric=$g;Ps.METRIC_MAP=eDe;Ps.SetMetric=eE});var J5=c(ov=>{Object.defineProperty(ov,"__esModule",{value:!0});var z5=I(),tDe=Xe(),Id=Rd(),rDe=tv(),nDe=rv(),tE=Od(),nv=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),Id.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*Id.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,r,n,o="none",i={},s=z5.timestampInSeconds()){let a=Math.floor(s),u=tE.sanitizeMetricKey(r),l=tE.sanitizeTags(i),d=tE.sanitizeUnit(o),p=tE.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===Id.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new nDe.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;tDe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p),this._bucketsTotalWeight+=_.metric.weight,this._bucketsTotalWeight>=Id.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(z5.timestampInSeconds())-Id.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,r=new Map;for(let[n,o]of this._buckets)o.timestamp<=e&&(r.set(n,o),this._bucketsTotalWeight-=o.metric.weight);for(let[n]of r)this._buckets.delete(n);this._captureMetrics(r)}_captureMetrics(e){if(e.size>0){let r=Array.from(e).map(([,n])=>n);rDe.captureAggregateMetrics(this._client,r)}}};ov.MetricsAggregator=nv});var $5=c(iv=>{Object.defineProperty(iv,"__esModule",{value:!0});var $a=J5(),Qa=$y();function oDe(t,e=1,r){Qa.metrics.increment($a.MetricsAggregator,t,e,r)}function iDe(t,e,r){Qa.metrics.distribution($a.MetricsAggregator,t,e,r)}function sDe(t,e,r){Qa.metrics.set($a.MetricsAggregator,t,e,r)}function aDe(t,e,r){Qa.metrics.gauge($a.MetricsAggregator,t,e,r)}function uDe(t,e,r="second",n){return Qa.metrics.timing($a.MetricsAggregator,t,e,r,n)}function cDe(t){return Qa.metrics.getMetricsAggregatorForClient(t,$a.MetricsAggregator)}var lDe={increment:oDe,distribution:iDe,set:sDe,gauge:aDe,timing:uDe,getMetricsAggregatorForClient:cDe};iv.metricsDefault=lDe});var e9=c(av=>{Object.defineProperty(av,"__esModule",{value:!0});var dDe=I(),pDe=Xe(),Q5=Rd(),_De=tv(),fDe=rv(),rE=Od(),sv=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),Q5.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,r,n,o="none",i={},s=dDe.timestampInSeconds()){let a=Math.floor(s),u=rE.sanitizeMetricKey(r),l=rE.sanitizeTags(i),d=rE.sanitizeUnit(o),p=rE.getBucketKey(e,u,d,l),_=this._buckets.get(p),f=_&&e===Q5.SET_METRIC_TYPE?_.metric.weight:0;_?(_.metric.add(n),_.timestamp<a&&(_.timestamp=a)):(_={metric:new fDe.METRIC_MAP[e](n),timestamp:a,metricType:e,name:u,unit:d,tags:l},this._buckets.set(p,_));let g=typeof n=="string"?_.metric.weight-f:n;pDe.updateMetricSummaryOnActiveSpan(e,u,g,d,i,p)}flush(){if(this._buckets.size===0)return;let e=Array.from(this._buckets.values());_De.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}};av.BrowserMetricsAggregator=sv});var a9=c(oE=>{Object.defineProperty(oE,"__esModule",{value:!0});var Wr=I(),uv=he(),t9=dn();Yo();Se();var r9=Rs(),i9=Xe(),gDe=ld(),n9=Ts(),EDe=Ya(),o9=pn();function hDe(t,e,r,n,o="auto.http.browser"){if(!t.fetchData)return;let i=r9.hasTracingEnabled()&&e(t.fetchData.url);if(t.endTimestamp&&i){let g=t.fetchData.__span;if(!g)return;let E=n[g];E&&(TDe(E,t),delete n[g]);return}let s=uv.getCurrentScope(),a=uv.getClient(),{method:u,url:l}=t.fetchData,d=mDe(l),p=d?Wr.parseUrl(d).host:void 0,_=!!i9.getActiveSpan(),f=i&&_?EDe.startInactiveSpan({name:`${u} ${l}`,attributes:{url:l,type:"fetch","http.method":u,"http.url":d,"server.address":p,[t9.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[t9.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new gDe.SentryNonRecordingSpan;if(t.fetchData.__span=f.spanContext().spanId,n[f.spanContext().spanId]=f,r(t.fetchData.url)&&a){let g=t.args[0];t.args[1]=t.args[1]||{};let E=t.args[1];E.headers=s9(g,a,s,E,r9.hasTracingEnabled()&&_?f:void 0)}return f}function s9(t,e,r,n,o){let i=uv.getIsolationScope(),{traceId:s,spanId:a,sampled:u,dsc:l}={...i.getPropagationContext(),...r.getPropagationContext()},d=o?i9.spanToTraceHeader(o):Wr.generateSentryTraceHeader(s,a,u),p=Wr.dynamicSamplingContextToSentryBaggageHeader(l||(o?o9.getDynamicSamplingContextFromSpan(o):o9.getDynamicSamplingContextFromClient(s,e))),_=n.headers||(typeof Request<"u"&&Wr.isInstanceOf(t,Request)?t.headers:void 0);if(_)if(typeof Headers<"u"&&Wr.isInstanceOf(_,Headers)){let f=new Headers(_);if(f.set("sentry-trace",d),p){let g=f.get(Wr.BAGGAGE_HEADER_NAME);if(g){let E=nE(g);f.set(Wr.BAGGAGE_HEADER_NAME,E?`${E},${p}`:p)}else f.set(Wr.BAGGAGE_HEADER_NAME,p)}return f}else if(Array.isArray(_)){let f=[..._.filter(g=>!(Array.isArray(g)&&g[0]==="sentry-trace")).map(g=>{if(Array.isArray(g)&&g[0]===Wr.BAGGAGE_HEADER_NAME&&typeof g[1]=="string"){let[E,T,...y]=g;return[E,nE(T),...y]}else return g}),["sentry-trace",d]];return p&&f.push([Wr.BAGGAGE_HEADER_NAME,p]),f}else{let f="baggage"in _?_.baggage:void 0,g=[];return Array.isArray(f)?g=f.map(E=>typeof E=="string"?nE(E):E).filter(E=>E===""):f&&g.push(nE(f)),p&&g.push(p),{..._,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}function mDe(t){try{return new URL(t).href}catch{return}}function TDe(t,e){if(e.response){n9.setHttpStatus(t,e.response.status);let r=e.response&&e.response.headers&&e.response.headers.get("content-length");if(r){let n=parseInt(r);n>0&&t.setAttribute("http.response_content_length",n)}}else e.error&&t.setStatus({code:n9.SPAN_STATUS_ERROR,message:"internal_error"});t.end()}function nE(t){return t.split(",").filter(e=>!e.split("=")[0].startsWith(Wr.SENTRY_BAGGAGE_KEY_PREFIX)).join(",")}oE.addTracingHeadersToFetchRequest=s9;oE.instrumentFetchRequest=hDe});var d9=c(lv=>{Object.defineProperty(lv,"__esModule",{value:!0});var u9=I(),SDe=he(),cv=Za(),c9=dn();Yo();Se();var ADe=Ya(),l9={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};function RDe(t){typeof t=="object"&&t!==null&&"ok"in t&&!t.ok&&"error"in t&&cv.captureException(t.error,l9)}function ODe(t={}){return async function(e){let{path:r,type:n,next:o,rawInput:i,getRawInput:s}=e,a=SDe.getClient(),u=a&&a.getOptions(),l={procedure_type:n};if((t.attachRpcInput!==void 0?t.attachRpcInput:u&&u.sendDefaultPii)&&(i!==void 0&&(l.input=u9.normalize(i)),s!==void 0&&typeof s=="function"))try{let d=await s();l.input=u9.normalize(d)}catch{}return cv.setContext("trpc",l),ADe.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[c9.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[c9.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},async d=>{try{let p=await o();return RDe(p),d.end(),p}catch(p){throw cv.captureException(p,l9),d.end(),p}})}}lv.trpcMiddleware=ODe});var _9=c(dv=>{Object.defineProperty(dv,"__esModule",{value:!0});var IDe=I(),p9=he();function bDe(t,e={},r=p9.getCurrentScope()){let{message:n,name:o,email:i,url:s,source:a,associatedEventId:u,tags:l}=t,d={contexts:{feedback:IDe.dropUndefinedKeys({contact_email:i,name:o,message:n,url:s,source:a,associated_event_id:u})},type:"feedback",level:"info",tags:l},p=r&&r.getClient()||p9.getClient();return p&&p.emit("beforeSendFeedback",d,e),r.captureEvent(d,e)}dv.captureFeedback=bDe});var g9=c(iE=>{Object.defineProperty(iE,"__esModule",{value:!0});var PDe=Ly(),fn=he(),_n=Za();function f9(){return{bindClient(t){fn.getCurrentScope().setClient(t)},withScope:fn.withScope,getClient:()=>fn.getClient(),getScope:fn.getCurrentScope,getIsolationScope:fn.getIsolationScope,captureException:(t,e)=>fn.getCurrentScope().captureException(t,e),captureMessage:(t,e,r)=>fn.getCurrentScope().captureMessage(t,e,r),captureEvent:_n.captureEvent,addBreadcrumb:PDe.addBreadcrumb,setUser:_n.setUser,setTags:_n.setTags,setTag:_n.setTag,setExtra:_n.setExtra,setExtras:_n.setExtras,setContext:_n.setContext,getIntegration(t){let e=fn.getClient();return e&&e.getIntegrationByName(t.id)||null},startSession:_n.startSession,endSession:_n.endSession,captureSession(t){if(t)return _n.endSession();vDe()}}}var yDe=f9;function vDe(){let t=fn.getCurrentScope(),e=fn.getClient(),r=t.getSession();e&&r&&e.captureSession(r)}iE.getCurrentHub=yDe;iE.getCurrentHubShim=f9});var k=c(S=>{Object.defineProperty(S,"__esModule",{value:!0});var NDe=Yo(),E9=fg(),CDe=oZ(),h9=NZ(),MDe=HP(),LDe=ld(),bd=Ts(),ys=Ya(),pv=pn(),m9=qP(),DDe=BP(),T9=Tg(),tr=dn(),_v=Ag(),we=Za(),eu=he(),S9=mP(),GDe=Fa(),UDe=ko(),fv=ud(),xDe=cy(),wDe=ja(),VDe=ey(),A9=Lg(),BDe=gy(),qDe=WZ(),R9=ZZ(),jDe=QZ(),HDe=e5(),FDe=t5(),gv=Ot(),O9=ry(),kDe=Ng(),WDe=my(),YDe=Rs(),KDe=n5(),XDe=gg(),ZDe=o5(),gn=Xe(),zDe=Sg(),JDe=s5(),$De=Ny(),QDe=l5(),eGe=dd(),tGe=Ly(),rGe=g5(),nGe=E5(),oGe=m5(),iGe=O5(),sGe=I5(),aGe=P5(),uGe=y5(),cGe=L5(),lGe=D5(),dGe=U5(),pGe=w5(),_Ge=q5(),fGe=k5(),gGe=$y(),EGe=X5(),hGe=$5(),mGe=e9(),TGe=_g(),I9=a9(),SGe=d9(),AGe=_9(),b9=g9(),RGe=I();S.registerSpanErrorInstrumentation=NDe.registerSpanErrorInstrumentation;S.getCapturedScopesOnSpan=E9.getCapturedScopesOnSpan;S.setCapturedScopesOnSpan=E9.setCapturedScopesOnSpan;S.addTracingExtensions=CDe.addTracingExtensions;S.TRACING_DEFAULTS=h9.TRACING_DEFAULTS;S.startIdleSpan=h9.startIdleSpan;S.SentrySpan=MDe.SentrySpan;S.SentryNonRecordingSpan=LDe.SentryNonRecordingSpan;S.SPAN_STATUS_ERROR=bd.SPAN_STATUS_ERROR;S.SPAN_STATUS_OK=bd.SPAN_STATUS_OK;S.SPAN_STATUS_UNSET=bd.SPAN_STATUS_UNSET;S.getSpanStatusFromHttpCode=bd.getSpanStatusFromHttpCode;S.setHttpStatus=bd.setHttpStatus;S.continueTrace=ys.continueTrace;S.startInactiveSpan=ys.startInactiveSpan;S.startNewTrace=ys.startNewTrace;S.startSpan=ys.startSpan;S.startSpanManual=ys.startSpanManual;S.suppressTracing=ys.suppressTracing;S.withActiveSpan=ys.withActiveSpan;S.getDynamicSamplingContextFromClient=pv.getDynamicSamplingContextFromClient;S.getDynamicSamplingContextFromSpan=pv.getDynamicSamplingContextFromSpan;S.spanToBaggageHeader=pv.spanToBaggageHeader;S.setMeasurement=m9.setMeasurement;S.timedEventsToMeasurements=m9.timedEventsToMeasurements;S.sampleSpan=DDe.sampleSpan;S.logSpanEnd=T9.logSpanEnd;S.logSpanStart=T9.logSpanStart;S.SEMANTIC_ATTRIBUTE_CACHE_HIT=tr.SEMANTIC_ATTRIBUTE_CACHE_HIT;S.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=tr.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE;S.SEMANTIC_ATTRIBUTE_CACHE_KEY=tr.SEMANTIC_ATTRIBUTE_CACHE_KEY;S.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=tr.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME;S.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=tr.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD;S.SEMANTIC_ATTRIBUTE_PROFILE_ID=tr.SEMANTIC_ATTRIBUTE_PROFILE_ID;S.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=tr.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON;S.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=tr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT;S.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=tr.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE;S.SEMANTIC_ATTRIBUTE_SENTRY_OP=tr.SEMANTIC_ATTRIBUTE_SENTRY_OP;S.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=tr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;S.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=tr.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;S.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=tr.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;S.SEMANTIC_ATTRIBUTE_URL_FULL=tr.SEMANTIC_ATTRIBUTE_URL_FULL;S.createEventEnvelope=_v.createEventEnvelope;S.createSessionEnvelope=_v.createSessionEnvelope;S.createSpanEnvelope=_v.createSpanEnvelope;S.addEventProcessor=we.addEventProcessor;S.captureCheckIn=we.captureCheckIn;S.captureEvent=we.captureEvent;S.captureException=we.captureException;S.captureMessage=we.captureMessage;S.captureSession=we.captureSession;S.close=we.close;S.endSession=we.endSession;S.flush=we.flush;S.isEnabled=we.isEnabled;S.isInitialized=we.isInitialized;S.lastEventId=we.lastEventId;S.setContext=we.setContext;S.setExtra=we.setExtra;S.setExtras=we.setExtras;S.setTag=we.setTag;S.setTags=we.setTags;S.setUser=we.setUser;S.startSession=we.startSession;S.withMonitor=we.withMonitor;S.getClient=eu.getClient;S.getCurrentScope=eu.getCurrentScope;S.getGlobalScope=eu.getGlobalScope;S.getIsolationScope=eu.getIsolationScope;S.withIsolationScope=eu.withIsolationScope;S.withScope=eu.withScope;S.getDefaultCurrentScope=S9.getDefaultCurrentScope;S.getDefaultIsolationScope=S9.getDefaultIsolationScope;S.setAsyncContextStrategy=GDe.setAsyncContextStrategy;S.getMainCarrier=UDe.getMainCarrier;S.closeSession=fv.closeSession;S.makeSession=fv.makeSession;S.updateSession=fv.updateSession;S.SessionFlusher=xDe.SessionFlusher;S.Scope=wDe.Scope;S.notifyEventProcessors=VDe.notifyEventProcessors;S.getEnvelopeEndpointWithUrlEncodedAuth=A9.getEnvelopeEndpointWithUrlEncodedAuth;S.getReportDialogEndpoint=A9.getReportDialogEndpoint;S.BaseClient=BDe.BaseClient;S.ServerRuntimeClient=qDe.ServerRuntimeClient;S.initAndBind=R9.initAndBind;S.setCurrentClient=R9.setCurrentClient;S.createTransport=jDe.createTransport;S.makeOfflineTransport=HDe.makeOfflineTransport;S.makeMultiplexedTransport=FDe.makeMultiplexedTransport;S.addIntegration=gv.addIntegration;S.defineIntegration=gv.defineIntegration;S.getIntegrationsToSetup=gv.getIntegrationsToSetup;S.applyScopeDataToEvent=O9.applyScopeDataToEvent;S.mergeScopeData=O9.mergeScopeData;S.prepareEvent=kDe.prepareEvent;S.createCheckInEnvelope=WDe.createCheckInEnvelope;S.hasTracingEnabled=YDe.hasTracingEnabled;S.isSentryRequestUrl=KDe.isSentryRequestUrl;S.handleCallbackErrors=XDe.handleCallbackErrors;S.parameterize=ZDe.parameterize;S.addChildSpanToSpan=gn.addChildSpanToSpan;S.getActiveSpan=gn.getActiveSpan;S.getRootSpan=gn.getRootSpan;S.getSpanDescendants=gn.getSpanDescendants;S.getStatusMessage=gn.getStatusMessage;S.spanIsSampled=gn.spanIsSampled;S.spanTimeInputToSeconds=gn.spanTimeInputToSeconds;S.spanToJSON=gn.spanToJSON;S.spanToTraceContext=gn.spanToTraceContext;S.spanToTraceHeader=gn.spanToTraceHeader;S.parseSampleRate=zDe.parseSampleRate;S.applySdkMetadata=JDe.applySdkMetadata;S.getTraceData=$De.getTraceData;S.getTraceMetaTags=QDe.getTraceMetaTags;S.DEFAULT_ENVIRONMENT=eGe.DEFAULT_ENVIRONMENT;S.addBreadcrumb=tGe.addBreadcrumb;S.functionToStringIntegration=rGe.functionToStringIntegration;S.inboundFiltersIntegration=nGe.inboundFiltersIntegration;S.linkedErrorsIntegration=oGe.linkedErrorsIntegration;S.moduleMetadataIntegration=iGe.moduleMetadataIntegration;S.requestDataIntegration=sGe.requestDataIntegration;S.captureConsoleIntegration=aGe.captureConsoleIntegration;S.debugIntegration=uGe.debugIntegration;S.dedupeIntegration=cGe.dedupeIntegration;S.extraErrorDataIntegration=lGe.extraErrorDataIntegration;S.rewriteFramesIntegration=dGe.rewriteFramesIntegration;S.sessionTimingIntegration=pGe.sessionTimingIntegration;S.zodErrorsIntegration=_Ge.zodErrorsIntegration;S.thirdPartyErrorFilterIntegration=fGe.thirdPartyErrorFilterIntegration;S.metrics=gGe.metrics;S.profiler=EGe.profiler;S.metricsDefault=hGe.metricsDefault;S.BrowserMetricsAggregator=mGe.BrowserMetricsAggregator;S.getMetricSummaryJsonForSpan=TGe.getMetricSummaryJsonForSpan;S.addTracingHeadersToFetchRequest=I9.addTracingHeadersToFetchRequest;S.instrumentFetchRequest=I9.instrumentFetchRequest;S.trpcMiddleware=SGe.trpcMiddleware;S.captureFeedback=AGe.captureFeedback;S.getCurrentHub=b9.getCurrentHub;S.getCurrentHubShim=b9.getCurrentHubShim;S.SDK_VERSION=RGe.SDK_VERSION});var Pd=c(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.isTracingSuppressed=zo.unsuppressTracing=zo.suppressTracing=void 0;var OGe=(P(),m(b)),Ev=(0,OGe.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function IGe(t){return t.setValue(Ev,!0)}zo.suppressTracing=IGe;function bGe(t){return t.deleteValue(Ev)}zo.unsuppressTracing=bGe;function PGe(t){return t.getValue(Ev)===!0}zo.isTracingSuppressed=PGe});var hv=c(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.BAGGAGE_MAX_TOTAL_LENGTH=It.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=It.BAGGAGE_MAX_NAME_VALUE_PAIRS=It.BAGGAGE_HEADER=It.BAGGAGE_ITEMS_SEPARATOR=It.BAGGAGE_PROPERTIES_SEPARATOR=It.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;It.BAGGAGE_KEY_PAIR_SEPARATOR="=";It.BAGGAGE_PROPERTIES_SEPARATOR=";";It.BAGGAGE_ITEMS_SEPARATOR=",";It.BAGGAGE_HEADER="baggage";It.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;It.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;It.BAGGAGE_MAX_TOTAL_LENGTH=8192});var mv=c(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.parseKeyPairsIntoRecord=En.parsePairKeyValue=En.getKeyPairs=En.serializeKeyPairs=void 0;var yGe=(P(),m(b)),vs=hv();function vGe(t){return t.reduce((e,r)=>{let n=`${e}${e!==""?vs.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>vs.BAGGAGE_MAX_TOTAL_LENGTH?e:n},"")}En.serializeKeyPairs=vGe;function NGe(t){return t.getAllEntries().map(([e,r])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=vs.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}En.getKeyPairs=NGe;function P9(t){let e=t.split(vs.BAGGAGE_PROPERTIES_SEPARATOR);if(e.length<=0)return;let r=e.shift();if(!r)return;let n=r.indexOf(vs.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return e.length>0&&(s=(0,yGe.baggageEntryMetadataFromString)(e.join(vs.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}En.parsePairKeyValue=P9;function CGe(t){return typeof t!="string"||t.length===0?{}:t.split(vs.BAGGAGE_ITEMS_SEPARATOR).map(e=>P9(e)).filter(e=>e!==void 0&&e.value.length>0).reduce((e,r)=>(e[r.key]=r.value,e),{})}En.parseKeyPairsIntoRecord=CGe});var y9=c(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.W3CBaggagePropagator=void 0;var Tv=(P(),m(b)),MGe=Pd(),Ns=hv(),Sv=mv(),Av=class{inject(e,r,n){let o=Tv.propagation.getBaggage(e);if(!o||(0,MGe.isTracingSuppressed)(e))return;let i=(0,Sv.getKeyPairs)(o).filter(a=>a.length<=Ns.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,Ns.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,Sv.serializeKeyPairs)(i);s.length>0&&n.set(r,Ns.BAGGAGE_HEADER,s)}extract(e,r,n){let o=n.get(r,Ns.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(Ns.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return e;let s={};return i.length===0||(i.split(Ns.BAGGAGE_ITEMS_SEPARATOR).forEach(u=>{let l=(0,Sv.parsePairKeyValue)(u);if(l){let d={value:l.value};l.metadata&&(d.metadata=l.metadata),s[l.key]=d}}),Object.entries(s).length===0)?e:Tv.propagation.setBaggage(e,Tv.propagation.createBaggage(s))}fields(){return[Ns.BAGGAGE_HEADER]}};sE.W3CBaggagePropagator=Av});var v9=c(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.AnchoredClock=void 0;var Rv=class{constructor(e,r){this._monotonicClock=r,this._epochMillis=e.now(),this._performanceMillis=r.now()}now(){let e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e}};aE.AnchoredClock=Rv});var D9=c(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.isAttributeValue=Jo.isAttributeKey=Jo.sanitizeAttributes=void 0;var N9=(P(),m(b));function LGe(t){let e={};if(typeof t!="object"||t==null)return e;for(let[r,n]of Object.entries(t)){if(!C9(r)){N9.diag.warn(`Invalid attribute key: ${r}`);continue}if(!M9(n)){N9.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?e[r]=n.slice():e[r]=n}return e}Jo.sanitizeAttributes=LGe;function C9(t){return typeof t=="string"&&t.length>0}Jo.isAttributeKey=C9;function M9(t){return t==null?!0:Array.isArray(t)?DGe(t):L9(t)}Jo.isAttributeValue=M9;function DGe(t){let e;for(let r of t)if(r!=null){if(!e){if(L9(r)){e=typeof r;continue}return!1}if(typeof r!==e)return!1}return!0}function L9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}});var Ov=c(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.loggingErrorHandler=void 0;var GGe=(P(),m(b));function UGe(){return t=>{GGe.diag.error(xGe(t))}}uE.loggingErrorHandler=UGe;function xGe(t){return typeof t=="string"?t:JSON.stringify(wGe(t))}function wGe(t){let e={},r=t;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(e[n])return;let o=r[n];o&&(e[n]=String(o))}),r=Object.getPrototypeOf(r);return e}});var Iv=c(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.globalErrorHandler=tu.setGlobalErrorHandler=void 0;var VGe=Ov(),G9=(0,VGe.loggingErrorHandler)();function BGe(t){G9=t}tu.setGlobalErrorHandler=BGe;function qGe(t){try{G9(t)}catch{}}tu.globalErrorHandler=qGe});var bv=c(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.TracesSamplerValues=void 0;var jGe;(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(jGe=yd.TracesSamplerValues||(yd.TracesSamplerValues={}))});var Pv=c(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.parseEnvironment=Ie.DEFAULT_ENVIRONMENT=Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT=Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var $o=(P(),m(b)),HGe=bv(),FGe=",",kGe=["OTEL_SDK_DISABLED"];function WGe(t){return kGe.indexOf(t)>-1}var YGe=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_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_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function KGe(t){return YGe.indexOf(t)>-1}var XGe=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function ZGe(t){return XGe.indexOf(t)>-1}Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;Ie.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_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_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_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:$o.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ie.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ie.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ie.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Ie.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:HGe.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_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_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function zGe(t,e,r){if(typeof r[t]>"u")return;let n=String(r[t]);e[t]=n.toLowerCase()==="true"}function JGe(t,e,r,n=-1/0,o=1/0){if(typeof r[t]<"u"){let i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}function $Ge(t,e,r,n=FGe){let o=r[t];typeof o=="string"&&(e[t]=o.split(n).map(i=>i.trim()))}var QGe={ALL:$o.DiagLogLevel.ALL,VERBOSE:$o.DiagLogLevel.VERBOSE,DEBUG:$o.DiagLogLevel.DEBUG,INFO:$o.DiagLogLevel.INFO,WARN:$o.DiagLogLevel.WARN,ERROR:$o.DiagLogLevel.ERROR,NONE:$o.DiagLogLevel.NONE};function e1e(t,e,r){let n=r[t];if(typeof n=="string"){let o=QGe[n.toUpperCase()];o!=null&&(e[t]=o)}}function t1e(t){let e={};for(let r in Ie.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":e1e(n,e,t);break;default:if(WGe(n))zGe(n,e,t);else if(KGe(n))JGe(n,e,t);else if(ZGe(n))$Ge(n,e,t);else{let o=t[n];typeof o<"u"&&o!==null&&(e[n]=String(o))}}}return e}Ie.parseEnvironment=t1e});var U9=c(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.getEnvWithoutDefaults=ru.getEnv=void 0;var yv=Pv();function r1e(){let t=(0,yv.parseEnvironment)(process.env);return Object.assign({},yv.DEFAULT_ENVIRONMENT,t)}ru.getEnv=r1e;function n1e(){return(0,yv.parseEnvironment)(process.env)}ru.getEnvWithoutDefaults=n1e});var x9=c(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE._globalThis=void 0;cE._globalThis=typeof globalThis=="object"?globalThis:global});var vv=c(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.hexToBinary=void 0;function w9(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function o1e(t){let e=new Uint8Array(t.length/2),r=0;for(let n=0;n<t.length;n+=2){let o=w9(t.charCodeAt(n)),i=w9(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}lE.hexToBinary=o1e});var V9=c(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.hexToBase64=void 0;var i1e=vv();function s1e(t){return Buffer.from((0,i1e.hexToBinary)(t)).toString("base64")}dE.hexToBase64=s1e});var j9=c(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.RandomIdGenerator=void 0;var a1e=8,q9=16,Nv=class{constructor(){this.generateTraceId=B9(q9),this.generateSpanId=B9(a1e)}};_E.RandomIdGenerator=Nv;var pE=Buffer.allocUnsafe(q9);function B9(t){return function(){for(let r=0;r<t/4;r++)pE.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(pE[r]>0);r++)r===t-1&&(pE[t-1]=1);return pE.toString("hex",0,t)}}});var H9=c(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.otperformance=void 0;var u1e=require("perf_hooks");fE.otperformance=u1e.performance});var Cv=c(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.VERSION=void 0;gE.VERSION="1.27.0"});var F9=c(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.SDK_INFO=void 0;var c1e=Cv(),vd=($(),m(J));EE.SDK_INFO={[vd.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[vd.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[vd.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:vd.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[vd.SEMRESATTRS_TELEMETRY_SDK_VERSION]:c1e.VERSION}});var k9=c(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.unrefTimer=void 0;function l1e(t){t.unref()}hE.unrefTimer=l1e});var Y9=c(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.unrefTimer=ze.SDK_INFO=ze.otperformance=ze.RandomIdGenerator=ze.hexToBase64=ze._globalThis=ze.getEnv=ze.getEnvWithoutDefaults=void 0;var W9=U9();Object.defineProperty(ze,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return W9.getEnvWithoutDefaults}});Object.defineProperty(ze,"getEnv",{enumerable:!0,get:function(){return W9.getEnv}});var d1e=x9();Object.defineProperty(ze,"_globalThis",{enumerable:!0,get:function(){return d1e._globalThis}});var p1e=V9();Object.defineProperty(ze,"hexToBase64",{enumerable:!0,get:function(){return p1e.hexToBase64}});var _1e=j9();Object.defineProperty(ze,"RandomIdGenerator",{enumerable:!0,get:function(){return _1e.RandomIdGenerator}});var f1e=H9();Object.defineProperty(ze,"otperformance",{enumerable:!0,get:function(){return f1e.otperformance}});var g1e=F9();Object.defineProperty(ze,"SDK_INFO",{enumerable:!0,get:function(){return g1e.SDK_INFO}});var E1e=k9();Object.defineProperty(ze,"unrefTimer",{enumerable:!0,get:function(){return E1e.unrefTimer}})});var Mv=c(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.unrefTimer=Je.otperformance=Je.hexToBase64=Je.getEnvWithoutDefaults=Je.getEnv=Je._globalThis=Je.SDK_INFO=Je.RandomIdGenerator=void 0;var Qo=Y9();Object.defineProperty(Je,"RandomIdGenerator",{enumerable:!0,get:function(){return Qo.RandomIdGenerator}});Object.defineProperty(Je,"SDK_INFO",{enumerable:!0,get:function(){return Qo.SDK_INFO}});Object.defineProperty(Je,"_globalThis",{enumerable:!0,get:function(){return Qo._globalThis}});Object.defineProperty(Je,"getEnv",{enumerable:!0,get:function(){return Qo.getEnv}});Object.defineProperty(Je,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return Qo.getEnvWithoutDefaults}});Object.defineProperty(Je,"hexToBase64",{enumerable:!0,get:function(){return Qo.hexToBase64}});Object.defineProperty(Je,"otperformance",{enumerable:!0,get:function(){return Qo.otperformance}});Object.defineProperty(Je,"unrefTimer",{enumerable:!0,get:function(){return Qo.unrefTimer}})});var z9=c(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.addHrTimes=fe.isTimeInput=fe.isTimeInputHrTime=fe.hrTimeToMicroseconds=fe.hrTimeToMilliseconds=fe.hrTimeToNanoseconds=fe.hrTimeToTimeStamp=fe.hrTimeDuration=fe.timeInputToHrTime=fe.hrTime=fe.getTimeOrigin=fe.millisToHrTime=void 0;var Lv=Mv(),K9=9,h1e=6,m1e=Math.pow(10,h1e),mE=Math.pow(10,K9);function Nd(t){let e=t/1e3,r=Math.trunc(e),n=Math.round(t%1e3*m1e);return[r,n]}fe.millisToHrTime=Nd;function Dv(){let t=Lv.otperformance.timeOrigin;if(typeof t!="number"){let e=Lv.otperformance;t=e.timing&&e.timing.fetchStart}return t}fe.getTimeOrigin=Dv;function X9(t){let e=Nd(Dv()),r=Nd(typeof t=="number"?t:Lv.otperformance.now());return Z9(e,r)}fe.hrTime=X9;function T1e(t){if(Gv(t))return t;if(typeof t=="number")return t<Dv()?X9(t):Nd(t);if(t instanceof Date)return Nd(t.getTime());throw TypeError("Invalid input type")}fe.timeInputToHrTime=T1e;function S1e(t,e){let r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=mE),[r,n]}fe.hrTimeDuration=S1e;function A1e(t){let e=K9,r=`${"0".repeat(e)}${t[1]}Z`,n=r.substr(r.length-e-1);return new Date(t[0]*1e3).toISOString().replace("000Z",n)}fe.hrTimeToTimeStamp=A1e;function R1e(t){return t[0]*mE+t[1]}fe.hrTimeToNanoseconds=R1e;function O1e(t){return t[0]*1e3+t[1]/1e6}fe.hrTimeToMilliseconds=O1e;function I1e(t){return t[0]*1e6+t[1]/1e3}fe.hrTimeToMicroseconds=I1e;function Gv(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}fe.isTimeInputHrTime=Gv;function b1e(t){return Gv(t)||typeof t=="number"||t instanceof Date}fe.isTimeInput=b1e;function Z9(t,e){let r=[t[0]+e[0],t[1]+e[1]];return r[1]>=mE&&(r[1]-=mE,r[0]+=1),r}fe.addHrTimes=Z9});var J9=c(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.ExportResultCode=void 0;var P1e;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(P1e=Cd.ExportResultCode||(Cd.ExportResultCode={}))});var Q9=c(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.CompositePropagator=void 0;var $9=(P(),m(b)),Uv=class{constructor(e={}){var r;this._propagators=(r=e.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(e,r,n){for(let o of this._propagators)try{o.inject(e,r,n)}catch(i){$9.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(e,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){$9.diag.warn(`Failed to extract with ${i.constructor.name}. Err: ${s.message}`)}return o},e)}fields(){return this._fields.slice()}};TE.CompositePropagator=Uv});var ez=c(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.validateValue=nu.validateKey=void 0;var xv="[_0-9a-z-*/]",y1e=`[a-z]${xv}{0,255}`,v1e=`[a-z0-9]${xv}{0,240}@[a-z]${xv}{0,13}`,N1e=new RegExp(`^(?:${y1e}|${v1e})$`),C1e=/^[ -~]{0,255}[!-~]$/,M1e=/,|=/;function L1e(t){return N1e.test(t)}nu.validateKey=L1e;function D1e(t){return C1e.test(t)&&!M1e.test(t)}nu.validateValue=D1e});var Vv=c(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.TraceState=void 0;var tz=ez(),rz=32,G1e=512,nz=",",oz="=",wv=class t{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,r){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,r),n}unset(e){let r=this._clone();return r._internalState.delete(e),r}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,r)=>(e.push(r+oz+this.get(r)),e),[]).join(nz)}_parse(e){e.length>G1e||(this._internalState=e.split(nz).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(oz);if(i!==-1){let s=o.slice(0,i),a=o.slice(i+1,n.length);(0,tz.validateKey)(s)&&(0,tz.validateValue)(a)&&r.set(s,a)}return r},new Map),this._internalState.size>rz&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,rz))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new t;return e._internalState=new Map(this._internalState),e}};SE.TraceState=wv});var sz=c(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.W3CTraceContextPropagator=bt.parseTraceParent=bt.TRACE_STATE_HEADER=bt.TRACE_PARENT_HEADER=void 0;var AE=(P(),m(b)),U1e=Pd(),x1e=Vv();bt.TRACE_PARENT_HEADER="traceparent";bt.TRACE_STATE_HEADER="tracestate";var w1e="00",V1e="(?!ff)[\\da-f]{2}",B1e="(?![0]{32})[\\da-f]{32}",q1e="(?![0]{16})[\\da-f]{16}",j1e="[\\da-f]{2}",H1e=new RegExp(`^\\s?(${V1e})-(${B1e})-(${q1e})-(${j1e})(-.*)?\\s?$`);function iz(t){let e=H1e.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}bt.parseTraceParent=iz;var Bv=class{inject(e,r,n){let o=AE.trace.getSpanContext(e);if(!o||(0,U1e.isTracingSuppressed)(e)||!(0,AE.isSpanContextValid)(o))return;let i=`${w1e}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||AE.TraceFlags.NONE).toString(16)}`;n.set(r,bt.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,bt.TRACE_STATE_HEADER,o.traceState.serialize())}extract(e,r,n){let o=n.get(r,bt.TRACE_PARENT_HEADER);if(!o)return e;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;let s=iz(i);if(!s)return e;s.isRemote=!0;let a=n.get(r,bt.TRACE_STATE_HEADER);if(a){let u=Array.isArray(a)?a.join(","):a;s.traceState=new x1e.TraceState(typeof u=="string"?u:void 0)}return AE.trace.setSpanContext(e,s)}fields(){return[bt.TRACE_PARENT_HEADER,bt.TRACE_STATE_HEADER]}};bt.W3CTraceContextPropagator=Bv});var az=c(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getRPCMetadata=Yr.deleteRPCMetadata=Yr.setRPCMetadata=Yr.RPCType=void 0;var F1e=(P(),m(b)),qv=(0,F1e.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),k1e;(function(t){t.HTTP="http"})(k1e=Yr.RPCType||(Yr.RPCType={}));function W1e(t,e){return t.setValue(qv,e)}Yr.setRPCMetadata=W1e;function Y1e(t){return t.deleteValue(qv)}Yr.deleteRPCMetadata=Y1e;function K1e(t){return t.getValue(qv)}Yr.getRPCMetadata=K1e});var Hv=c(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.AlwaysOffSampler=void 0;var X1e=(P(),m(b)),jv=class{shouldSample(){return{decision:X1e.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};RE.AlwaysOffSampler=jv});var kv=c(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.AlwaysOnSampler=void 0;var Z1e=(P(),m(b)),Fv=class{shouldSample(){return{decision:Z1e.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};OE.AlwaysOnSampler=Fv});var cz=c(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.ParentBasedSampler=void 0;var IE=(P(),m(b)),z1e=Iv(),uz=Hv(),Wv=kv(),Yv=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,z1e.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Wv.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new Wv.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new uz.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new Wv.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new uz.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=IE.trace.getSpanContext(e);return!a||!(0,IE.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&IE.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&IE.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};bE.ParentBasedSampler=Yv});var lz=c(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.TraceIdRatioBasedSampler=void 0;var Kv=(P(),m(b)),Xv=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,Kv.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?Kv.SamplingDecision.RECORD_AND_SAMPLED:Kv.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};PE.TraceIdRatioBasedSampler=Xv});var gz=c(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.isPlainObject=void 0;var J1e="[object Object]",$1e="[object Null]",Q1e="[object Undefined]",eUe=Function.prototype,dz=eUe.toString,tUe=dz.call(Object),rUe=nUe(Object.getPrototypeOf,Object),pz=Object.prototype,_z=pz.hasOwnProperty,Cs=Symbol?Symbol.toStringTag:void 0,fz=pz.toString;function nUe(t,e){return function(r){return t(e(r))}}function oUe(t){if(!iUe(t)||sUe(t)!==J1e)return!1;let e=rUe(t);if(e===null)return!0;let r=_z.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&dz.call(r)===tUe}yE.isPlainObject=oUe;function iUe(t){return t!=null&&typeof t=="object"}function sUe(t){return t==null?t===void 0?Q1e:$1e:Cs&&Cs in Object(t)?aUe(t):uUe(t)}function aUe(t){let e=_z.call(t,Cs),r=t[Cs],n=!1;try{t[Cs]=void 0,n=!0}catch{}let o=fz.call(t);return n&&(e?t[Cs]=r:delete t[Cs]),o}function uUe(t){return fz.call(t)}});var Sz=c(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.merge=void 0;var Ez=gz(),cUe=20;function lUe(...t){let e=t.shift(),r=new WeakMap;for(;t.length>0;)e=mz(e,t.shift(),0,r);return e}CE.merge=lUe;function Zv(t){return NE(t)?t.slice():t}function mz(t,e,r=0,n){let o;if(!(r>cUe)){if(r++,vE(t)||vE(e)||Tz(e))o=Zv(e);else if(NE(t)){if(o=t.slice(),NE(e))for(let i=0,s=e.length;i<s;i++)o.push(Zv(e[i]));else if(Md(e)){let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s];o[u]=Zv(e[u])}}}else if(Md(t))if(Md(e)){if(!dUe(t,e))return e;o=Object.assign({},t);let i=Object.keys(e);for(let s=0,a=i.length;s<a;s++){let u=i[s],l=e[u];if(vE(l))typeof l>"u"?delete o[u]:o[u]=l;else{let d=o[u],p=l;if(hz(t,u,n)||hz(e,u,n))delete o[u];else{if(Md(d)&&Md(p)){let _=n.get(d)||[],f=n.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),n.set(d,_),n.set(p,f)}o[u]=mz(o[u],l,r,n)}}}}else o=e;return o}}function hz(t,e,r){let n=r.get(t[e])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===e&&s.obj===t)return!0}return!1}function NE(t){return Array.isArray(t)}function Tz(t){return typeof t=="function"}function Md(t){return!vE(t)&&!NE(t)&&!Tz(t)&&typeof t=="object"}function vE(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function dUe(t,e){return!(!(0,Ez.isPlainObject)(t)||!(0,Ez.isPlainObject)(e))}});var Az=c(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.callWithTimeout=ou.TimeoutError=void 0;var ME=class t extends Error{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}};ou.TimeoutError=ME;function pUe(t,e){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new ME("Operation timed out."))},e)});return Promise.race([t,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}ou.callWithTimeout=pUe});var Oz=c(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.isUrlIgnored=iu.urlMatches=void 0;function Rz(t,e){return typeof e=="string"?t===e:!!t.match(e)}iu.urlMatches=Rz;function _Ue(t,e){if(!e)return!1;for(let r of e)if(Rz(t,r))return!0;return!1}iu.isUrlIgnored=_Ue});var Iz=c(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.isWrapped=void 0;function fUe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}LE.isWrapped=fUe});var bz=c(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.Deferred=void 0;var zv=class{constructor(){this._promise=new Promise((e,r)=>{this._resolve=e,this._reject=r})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}};DE.Deferred=zv});var Pz=c(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.BindOnceFuture=void 0;var gUe=bz(),Jv=class{constructor(e,r){this._callback=e,this._that=r,this._isCalled=!1,this._deferred=new gUe.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};GE.BindOnceFuture=Jv});var vz=c(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE._export=void 0;var yz=(P(),m(b)),EUe=Pd();function hUe(t,e){return new Promise(r=>{yz.context.with((0,EUe.suppressTracing)(yz.context.active()),()=>{t.export(e,n=>{r(n)})})})}UE._export=hUe});var ae=c(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=O.DEFAULT_ATTRIBUTE_COUNT_LIMIT=O.TraceState=O.unsuppressTracing=O.suppressTracing=O.isTracingSuppressed=O.TraceIdRatioBasedSampler=O.ParentBasedSampler=O.AlwaysOnSampler=O.AlwaysOffSampler=O.setRPCMetadata=O.getRPCMetadata=O.deleteRPCMetadata=O.RPCType=O.parseTraceParent=O.W3CTraceContextPropagator=O.TRACE_STATE_HEADER=O.TRACE_PARENT_HEADER=O.CompositePropagator=O.unrefTimer=O.otperformance=O.hexToBase64=O.getEnvWithoutDefaults=O.getEnv=O._globalThis=O.SDK_INFO=O.RandomIdGenerator=O.baggageUtils=O.ExportResultCode=O.hexToBinary=O.timeInputToHrTime=O.millisToHrTime=O.isTimeInputHrTime=O.isTimeInput=O.hrTimeToTimeStamp=O.hrTimeToNanoseconds=O.hrTimeToMilliseconds=O.hrTimeToMicroseconds=O.hrTimeDuration=O.hrTime=O.getTimeOrigin=O.addHrTimes=O.loggingErrorHandler=O.setGlobalErrorHandler=O.globalErrorHandler=O.sanitizeAttributes=O.isAttributeValue=O.isAttributeKey=O.AnchoredClock=O.W3CBaggagePropagator=void 0;O.internal=O.VERSION=O.BindOnceFuture=O.isWrapped=O.urlMatches=O.isUrlIgnored=O.callWithTimeout=O.TimeoutError=O.TracesSamplerValues=O.merge=O.parseEnvironment=O.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=O.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=O.DEFAULT_ENVIRONMENT=void 0;var mUe=y9();Object.defineProperty(O,"W3CBaggagePropagator",{enumerable:!0,get:function(){return mUe.W3CBaggagePropagator}});var TUe=v9();Object.defineProperty(O,"AnchoredClock",{enumerable:!0,get:function(){return TUe.AnchoredClock}});var $v=D9();Object.defineProperty(O,"isAttributeKey",{enumerable:!0,get:function(){return $v.isAttributeKey}});Object.defineProperty(O,"isAttributeValue",{enumerable:!0,get:function(){return $v.isAttributeValue}});Object.defineProperty(O,"sanitizeAttributes",{enumerable:!0,get:function(){return $v.sanitizeAttributes}});var Nz=Iv();Object.defineProperty(O,"globalErrorHandler",{enumerable:!0,get:function(){return Nz.globalErrorHandler}});Object.defineProperty(O,"setGlobalErrorHandler",{enumerable:!0,get:function(){return Nz.setGlobalErrorHandler}});var SUe=Ov();Object.defineProperty(O,"loggingErrorHandler",{enumerable:!0,get:function(){return SUe.loggingErrorHandler}});var br=z9();Object.defineProperty(O,"addHrTimes",{enumerable:!0,get:function(){return br.addHrTimes}});Object.defineProperty(O,"getTimeOrigin",{enumerable:!0,get:function(){return br.getTimeOrigin}});Object.defineProperty(O,"hrTime",{enumerable:!0,get:function(){return br.hrTime}});Object.defineProperty(O,"hrTimeDuration",{enumerable:!0,get:function(){return br.hrTimeDuration}});Object.defineProperty(O,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return br.hrTimeToMicroseconds}});Object.defineProperty(O,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return br.hrTimeToMilliseconds}});Object.defineProperty(O,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return br.hrTimeToNanoseconds}});Object.defineProperty(O,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return br.hrTimeToTimeStamp}});Object.defineProperty(O,"isTimeInput",{enumerable:!0,get:function(){return br.isTimeInput}});Object.defineProperty(O,"isTimeInputHrTime",{enumerable:!0,get:function(){return br.isTimeInputHrTime}});Object.defineProperty(O,"millisToHrTime",{enumerable:!0,get:function(){return br.millisToHrTime}});Object.defineProperty(O,"timeInputToHrTime",{enumerable:!0,get:function(){return br.timeInputToHrTime}});var AUe=vv();Object.defineProperty(O,"hexToBinary",{enumerable:!0,get:function(){return AUe.hexToBinary}});var RUe=J9();Object.defineProperty(O,"ExportResultCode",{enumerable:!0,get:function(){return RUe.ExportResultCode}});var xE=mv();O.baggageUtils={getKeyPairs:xE.getKeyPairs,serializeKeyPairs:xE.serializeKeyPairs,parseKeyPairsIntoRecord:xE.parseKeyPairsIntoRecord,parsePairKeyValue:xE.parsePairKeyValue};var ei=Mv();Object.defineProperty(O,"RandomIdGenerator",{enumerable:!0,get:function(){return ei.RandomIdGenerator}});Object.defineProperty(O,"SDK_INFO",{enumerable:!0,get:function(){return ei.SDK_INFO}});Object.defineProperty(O,"_globalThis",{enumerable:!0,get:function(){return ei._globalThis}});Object.defineProperty(O,"getEnv",{enumerable:!0,get:function(){return ei.getEnv}});Object.defineProperty(O,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return ei.getEnvWithoutDefaults}});Object.defineProperty(O,"hexToBase64",{enumerable:!0,get:function(){return ei.hexToBase64}});Object.defineProperty(O,"otperformance",{enumerable:!0,get:function(){return ei.otperformance}});Object.defineProperty(O,"unrefTimer",{enumerable:!0,get:function(){return ei.unrefTimer}});var OUe=Q9();Object.defineProperty(O,"CompositePropagator",{enumerable:!0,get:function(){return OUe.CompositePropagator}});var wE=sz();Object.defineProperty(O,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return wE.TRACE_PARENT_HEADER}});Object.defineProperty(O,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return wE.TRACE_STATE_HEADER}});Object.defineProperty(O,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return wE.W3CTraceContextPropagator}});Object.defineProperty(O,"parseTraceParent",{enumerable:!0,get:function(){return wE.parseTraceParent}});var VE=az();Object.defineProperty(O,"RPCType",{enumerable:!0,get:function(){return VE.RPCType}});Object.defineProperty(O,"deleteRPCMetadata",{enumerable:!0,get:function(){return VE.deleteRPCMetadata}});Object.defineProperty(O,"getRPCMetadata",{enumerable:!0,get:function(){return VE.getRPCMetadata}});Object.defineProperty(O,"setRPCMetadata",{enumerable:!0,get:function(){return VE.setRPCMetadata}});var IUe=Hv();Object.defineProperty(O,"AlwaysOffSampler",{enumerable:!0,get:function(){return IUe.AlwaysOffSampler}});var bUe=kv();Object.defineProperty(O,"AlwaysOnSampler",{enumerable:!0,get:function(){return bUe.AlwaysOnSampler}});var PUe=cz();Object.defineProperty(O,"ParentBasedSampler",{enumerable:!0,get:function(){return PUe.ParentBasedSampler}});var yUe=lz();Object.defineProperty(O,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return yUe.TraceIdRatioBasedSampler}});var Qv=Pd();Object.defineProperty(O,"isTracingSuppressed",{enumerable:!0,get:function(){return Qv.isTracingSuppressed}});Object.defineProperty(O,"suppressTracing",{enumerable:!0,get:function(){return Qv.suppressTracing}});Object.defineProperty(O,"unsuppressTracing",{enumerable:!0,get:function(){return Qv.unsuppressTracing}});var vUe=Vv();Object.defineProperty(O,"TraceState",{enumerable:!0,get:function(){return vUe.TraceState}});var su=Pv();Object.defineProperty(O,"DEFAULT_ATTRIBUTE_COUNT_LIMIT",{enumerable:!0,get:function(){return su.DEFAULT_ATTRIBUTE_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT",{enumerable:!0,get:function(){return su.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}});Object.defineProperty(O,"DEFAULT_ENVIRONMENT",{enumerable:!0,get:function(){return su.DEFAULT_ENVIRONMENT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT",{enumerable:!0,get:function(){return su.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT}});Object.defineProperty(O,"DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT",{enumerable:!0,get:function(){return su.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}});Object.defineProperty(O,"parseEnvironment",{enumerable:!0,get:function(){return su.parseEnvironment}});var NUe=Sz();Object.defineProperty(O,"merge",{enumerable:!0,get:function(){return NUe.merge}});var CUe=bv();Object.defineProperty(O,"TracesSamplerValues",{enumerable:!0,get:function(){return CUe.TracesSamplerValues}});var Cz=Az();Object.defineProperty(O,"TimeoutError",{enumerable:!0,get:function(){return Cz.TimeoutError}});Object.defineProperty(O,"callWithTimeout",{enumerable:!0,get:function(){return Cz.callWithTimeout}});var Mz=Oz();Object.defineProperty(O,"isUrlIgnored",{enumerable:!0,get:function(){return Mz.isUrlIgnored}});Object.defineProperty(O,"urlMatches",{enumerable:!0,get:function(){return Mz.urlMatches}});var MUe=Iz();Object.defineProperty(O,"isWrapped",{enumerable:!0,get:function(){return MUe.isWrapped}});var LUe=Pz();Object.defineProperty(O,"BindOnceFuture",{enumerable:!0,get:function(){return LUe.BindOnceFuture}});var DUe=Cv();Object.defineProperty(O,"VERSION",{enumerable:!0,get:function(){return DUe.VERSION}});var GUe=vz();O.internal={_export:GUe._export}});var Lz=c(BE=>{"use strict";Object.defineProperty(BE,"__esModule",{value:!0});BE.ExceptionEventName=void 0;BE.ExceptionEventName="exception"});var tN=c(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.Span=void 0;var Pr=(P(),m(b)),Pt=ae(),Ms=($(),m(J)),UUe=Lz(),eN=class{constructor(e,r,n,o,i,s,a=[],u,l,d){this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Pr.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=s,this.kind=i,this.links=a;let p=Date.now();this._performanceStartTime=Pt.otperformance.now(),this._performanceOffset=p-(this._performanceStartTime+(0,Pt.getTimeOrigin)()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,d!=null&&this.setAttributes(d),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return r==null||this._isSpanEnded()?this:e.length===0?(Pr.diag.warn(`Invalid attribute key: ${e}`),this):(0,Pt.isAttributeValue)(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(r),this):(Pr.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[r,n]of Object.entries(e))this.setAttribute(r,n);return this}addEvent(e,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return Pr.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&Pr.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,Pt.isTimeInput)(r)&&((0,Pt.isTimeInput)(n)||(n=r),r=void 0);let o=(0,Pt.sanitizeAttributes)(r);return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status=Object.assign({},e),this.status.message!=null&&typeof e.message!="string"&&(Pr.diag.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){Pr.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=(0,Pt.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(Pr.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._droppedEventsCount>0&&Pr.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<Pt.otperformance.now())return(0,Pt.hrTime)(e+this._performanceOffset);if(typeof e=="number")return(0,Pt.millisToHrTime)(e);if(e instanceof Date)return(0,Pt.millisToHrTime)(e.getTime());if((0,Pt.isTimeInputHrTime)(e))return e;if(this._startTimeProvided)return(0,Pt.millisToHrTime)(Date.now());let r=Pt.otperformance.now()-this._performanceStartTime;return(0,Pt.addHrTimes)(this.startTime,(0,Pt.millisToHrTime)(r))}isRecording(){return this._ended===!1}recordException(e,r){let n={};typeof e=="string"?n[Ms.SEMATTRS_EXCEPTION_MESSAGE]=e:e&&(e.code?n[Ms.SEMATTRS_EXCEPTION_TYPE]=e.code.toString():e.name&&(n[Ms.SEMATTRS_EXCEPTION_TYPE]=e.name),e.message&&(n[Ms.SEMATTRS_EXCEPTION_MESSAGE]=e.message),e.stack&&(n[Ms.SEMATTRS_EXCEPTION_STACKTRACE]=e.stack)),n[Ms.SEMATTRS_EXCEPTION_TYPE]||n[Ms.SEMATTRS_EXCEPTION_MESSAGE]?this.addEvent(UUe.ExceptionEventName,n,r):Pr.diag.warn(`Failed to record an exception ${e}`)}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&&Pr.diag.warn(`Can not execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`),this._ended}_truncateToLimitUtil(e,r){return e.length<=r?e:e.substr(0,r)}_truncateToSize(e){let r=this._attributeValueLengthLimit;return r<=0?(Pr.diag.warn(`Attribute value limit must be positive, got ${r}`),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):e}};qE.Span=eN});var Dd=c(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.SamplingDecision=void 0;var xUe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xUe=Ld.SamplingDecision||(Ld.SamplingDecision={}))});var HE=c(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.AlwaysOffSampler=void 0;var wUe=Dd(),rN=class{shouldSample(){return{decision:wUe.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};jE.AlwaysOffSampler=rN});var kE=c(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.AlwaysOnSampler=void 0;var VUe=Dd(),nN=class{shouldSample(){return{decision:VUe.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};FE.AlwaysOnSampler=nN});var sN=c(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.ParentBasedSampler=void 0;var WE=(P(),m(b)),BUe=ae(),Dz=HE(),oN=kE(),iN=class{constructor(e){var r,n,o,i;this._root=e.root,this._root||((0,BUe.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new oN.AlwaysOnSampler),this._remoteParentSampled=(r=e.remoteParentSampled)!==null&&r!==void 0?r:new oN.AlwaysOnSampler,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)!==null&&n!==void 0?n:new Dz.AlwaysOffSampler,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new oN.AlwaysOnSampler,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new Dz.AlwaysOffSampler}shouldSample(e,r,n,o,i,s){let a=WE.trace.getSpanContext(e);return!a||!(0,WE.isSpanContextValid)(a)?this._root.shouldSample(e,r,n,o,i,s):a.isRemote?a.traceFlags&WE.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(e,r,n,o,i,s):a.traceFlags&WE.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,r,n,o,i,s):this._localParentNotSampled.shouldSample(e,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};YE.ParentBasedSampler=iN});var uN=c(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.TraceIdRatioBasedSampler=void 0;var qUe=(P(),m(b)),Gz=Dd(),aN=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,r){return{decision:(0,qUe.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?Gz.SamplingDecision.RECORD_AND_SAMPLED:Gz.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let r=0;for(let n=0;n<e.length/8;n++){let o=n*8,i=parseInt(e.slice(o,o+8),16);r=(r^i)>>>0}return r}};KE.TraceIdRatioBasedSampler=aN});var dN=c(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.buildSamplerFromEnv=uu.loadDefaultConfig=void 0;var XE=(P(),m(b)),hn=ae(),Uz=HE(),cN=kE(),lN=sN(),xz=uN(),jUe=(0,hn.getEnv)(),HUe=hn.TracesSamplerValues.AlwaysOn,au=1;function FUe(){let t=(0,hn.getEnv)();return{sampler:Vz(jUe),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}uu.loadDefaultConfig=FUe;function Vz(t=(0,hn.getEnv)()){switch(t.OTEL_TRACES_SAMPLER){case hn.TracesSamplerValues.AlwaysOn:return new cN.AlwaysOnSampler;case hn.TracesSamplerValues.AlwaysOff:return new Uz.AlwaysOffSampler;case hn.TracesSamplerValues.ParentBasedAlwaysOn:return new lN.ParentBasedSampler({root:new cN.AlwaysOnSampler});case hn.TracesSamplerValues.ParentBasedAlwaysOff:return new lN.ParentBasedSampler({root:new Uz.AlwaysOffSampler});case hn.TracesSamplerValues.TraceIdRatio:return new xz.TraceIdRatioBasedSampler(wz(t));case hn.TracesSamplerValues.ParentBasedTraceIdRatio:return new lN.ParentBasedSampler({root:new xz.TraceIdRatioBasedSampler(wz(t))});default:return XE.diag.error(`OTEL_TRACES_SAMPLER value "${t.OTEL_TRACES_SAMPLER} invalid, defaulting to ${HUe}".`),new cN.AlwaysOnSampler}}uu.buildSamplerFromEnv=Vz;function wz(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return XE.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${au}.`),au;let e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(XE.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${au}.`),au):e<0||e>1?(XE.diag.error(`OTEL_TRACES_SAMPLER_ARG=${t.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${au}.`),au):e}});var _N=c(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.reconfigureLimits=cu.mergeConfig=void 0;var Bz=dN(),pN=ae();function kUe(t){let e={sampler:(0,Bz.buildSamplerFromEnv)()},r=(0,Bz.loadDefaultConfig)(),n=Object.assign({},r,e,t);return n.generalLimits=Object.assign({},r.generalLimits,t.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,t.spanLimits||{}),n}cu.mergeConfig=kUe;function WUe(t){var e,r,n,o,i,s,a,u,l,d,p,_;let f=Object.assign({},t.spanLimits),g=(0,pN.getEnvWithoutDefaults)();return f.attributeCountLimit=(s=(i=(o=(r=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&r!==void 0?r:(n=t.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&o!==void 0?o:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:g.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:pN.DEFAULT_ATTRIBUTE_COUNT_LIMIT,f.attributeValueLengthLimit=(_=(p=(d=(u=(a=t.spanLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&d!==void 0?d:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:pN.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},t,{spanLimits:f})}cu.reconfigureLimits=WUe});var qz=c(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.BatchSpanProcessorBase=void 0;var lu=(P(),m(b)),Ls=ae(),fN=class{constructor(e,r){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;let n=(0,Ls.getEnv)();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Ls.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(lu.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(e,r){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&lu.TraceFlags.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&lu.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(lu.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,r)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,s=o;i<s;i++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,r)=>{let n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);lu.context.with((0,Ls.suppressTracing)(lu.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(o,a=>{var u;clearTimeout(n),a.code===Ls.ExportResultCode.SUCCESS?e():r((u=a.error)!==null&&u!==void 0?u:new Error("BatchSpanProcessor: span export failed"))}),s=null;for(let a=0,u=o.length;a<u;a++){let l=o[a];l.resource.asyncAttributesPending&&l.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(l.resource.waitForAsyncAttributes()))}s===null?i():Promise.all(s).then(i,a=>{(0,Ls.globalErrorHandler)(a),r(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,(0,Ls.globalErrorHandler)(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),(0,Ls.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};ZE.BatchSpanProcessorBase=fN});var jz=c(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.BatchSpanProcessor=void 0;var YUe=qz(),gN=class extends YUe.BatchSpanProcessorBase{onShutdown(){}};zE.BatchSpanProcessor=gN});var kz=c($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.RandomIdGenerator=void 0;var KUe=8,Fz=16,EN=class{constructor(){this.generateTraceId=Hz(Fz),this.generateSpanId=Hz(KUe)}};$E.RandomIdGenerator=EN;var JE=Buffer.allocUnsafe(Fz);function Hz(t){return function(){for(let r=0;r<t/4;r++)JE.writeUInt32BE(Math.random()*2**32>>>0,r*4);for(let r=0;r<t&&!(JE[r]>0);r++)r===t-1&&(JE[t-1]=1);return JE.toString("hex",0,t)}}});var Wz=c(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.RandomIdGenerator=du.BatchSpanProcessor=void 0;var XUe=jz();Object.defineProperty(du,"BatchSpanProcessor",{enumerable:!0,get:function(){return XUe.BatchSpanProcessor}});var ZUe=kz();Object.defineProperty(du,"RandomIdGenerator",{enumerable:!0,get:function(){return ZUe.RandomIdGenerator}})});var QE=c(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RandomIdGenerator=pu.BatchSpanProcessor=void 0;var Yz=Wz();Object.defineProperty(pu,"BatchSpanProcessor",{enumerable:!0,get:function(){return Yz.BatchSpanProcessor}});Object.defineProperty(pu,"RandomIdGenerator",{enumerable:!0,get:function(){return Yz.RandomIdGenerator}})});var Kz=c(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.Tracer=void 0;var pt=(P(),m(b)),eh=ae(),zUe=tN(),JUe=_N(),$Ue=QE(),hN=class{constructor(e,r,n){this._tracerProvider=n;let o=(0,JUe.mergeConfig)(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new $Ue.RandomIdGenerator,this.resource=n.resource,this.instrumentationLibrary=e}startSpan(e,r={},n=pt.context.active()){var o,i,s;r.root&&(n=pt.trace.deleteSpan(n));let a=pt.trace.getSpan(n);if((0,eh.isTracingSuppressed)(n))return pt.diag.debug("Instrumentation suppressed, returning Noop Span"),pt.trace.wrapSpanContext(pt.INVALID_SPAN_CONTEXT);let u=a?.spanContext(),l=this._idGenerator.generateSpanId(),d,p,_;!u||!pt.trace.isSpanContextValid(u)?d=this._idGenerator.generateTraceId():(d=u.traceId,p=u.traceState,_=u.spanId);let f=(o=r.kind)!==null&&o!==void 0?o:pt.SpanKind.INTERNAL,g=((i=r.links)!==null&&i!==void 0?i:[]).map(v=>({context:v.context,attributes:(0,eh.sanitizeAttributes)(v.attributes)})),E=(0,eh.sanitizeAttributes)(r.attributes),T=this._sampler.shouldSample(n,d,e,f,E,g);p=(s=T.traceState)!==null&&s!==void 0?s:p;let y=T.decision===pt.SamplingDecision.RECORD_AND_SAMPLED?pt.TraceFlags.SAMPLED:pt.TraceFlags.NONE,C={traceId:d,spanId:l,traceFlags:y,traceState:p};if(T.decision===pt.SamplingDecision.NOT_RECORD)return pt.diag.debug("Recording is off, propagating context in a non-recording span"),pt.trace.wrapSpanContext(C);let L=(0,eh.sanitizeAttributes)(Object.assign(E,T.attributes));return new zUe.Span(this,n,e,C,f,_,g,r.startTime,void 0,L)}startActiveSpan(e,r,n,o){let i,s,a;if(arguments.length<2)return;arguments.length===2?a=r:arguments.length===3?(i=r,a=n):(i=r,s=n,a=o);let u=s??pt.context.active(),l=this.startSpan(e,i,u),d=pt.trace.setSpan(u,l);return pt.context.with(d,a,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}};th.Tracer=hN});var Xz=c(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.defaultServiceName=void 0;function QUe(){return`unknown_service:${process.argv0}`}rh.defaultServiceName=QUe});var Zz=c(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.defaultServiceName=void 0;var exe=Xz();Object.defineProperty(nh,"defaultServiceName",{enumerable:!0,get:function(){return exe.defaultServiceName}})});var mN=c(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.defaultServiceName=void 0;var txe=Zz();Object.defineProperty(oh,"defaultServiceName",{enumerable:!0,get:function(){return txe.defaultServiceName}})});var oo=c(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.Resource=void 0;var zz=(P(),m(b)),Ds=($(),m(J)),TN=ae(),rxe=mN(),Gd=class t{constructor(e,r){var n;this._attributes=e,this.asyncAttributesPending=r!=null,this._syncAttributes=(n=this._attributes)!==null&&n!==void 0?n:{},this._asyncAttributesPromise=r?.then(o=>(this._attributes=Object.assign({},this._attributes,o),this.asyncAttributesPending=!1,o),o=>(zz.diag.debug("a resource's async attributes promise rejected: %s",o),this.asyncAttributesPending=!1,{}))}static empty(){return t.EMPTY}static default(){return new t({[Ds.SEMRESATTRS_SERVICE_NAME]:(0,rxe.defaultServiceName)(),[Ds.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:TN.SDK_INFO[Ds.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[Ds.SEMRESATTRS_TELEMETRY_SDK_NAME]:TN.SDK_INFO[Ds.SEMRESATTRS_TELEMETRY_SDK_NAME],[Ds.SEMRESATTRS_TELEMETRY_SDK_VERSION]:TN.SDK_INFO[Ds.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var e;return this.asyncAttributesPending&&zz.diag.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(e){var r;if(!e)return this;let n=Object.assign(Object.assign({},this._syncAttributes),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(n);let o=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(([i,s])=>{var a;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),i),(a=e._syncAttributes)!==null&&a!==void 0?a:e.attributes),s)});return new t(n,o)}};ih.Resource=Gd;Gd.EMPTY=new Gd({})});var SN=c(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.normalizeType=_u.normalizeArch=void 0;var nxe=t=>{switch(t){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return t}};_u.normalizeArch=nxe;var oxe=t=>{switch(t){case"sunos":return"solaris";case"win32":return"windows";default:return t}};_u.normalizeType=oxe});var ah=c(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.execAsync=void 0;var ixe=require("child_process"),sxe=require("util");sh.execAsync=sxe.promisify(ixe.exec)});var Jz=c(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.getMachineId=void 0;var axe=ah(),uxe=(P(),m(b));async function cxe(){try{let e=(await(0,axe.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
26
|
+
`).find(n=>n.includes("IOPlatformUUID"));if(!e)return"";let r=e.split('" = "');if(r.length===2)return r[1].slice(0,-1)}catch(t){uxe.diag.debug(`error reading machine id: ${t}`)}return""}uh.getMachineId=cxe});var $z=c(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.getMachineId=void 0;var lxe=require("fs"),dxe=(P(),m(b));async function pxe(){let t=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let e of t)try{return(await lxe.promises.readFile(e,{encoding:"utf8"})).trim()}catch(r){dxe.diag.debug(`error reading machine id: ${r}`)}return""}ch.getMachineId=pxe});var e3=c(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.getMachineId=void 0;var _xe=require("fs"),fxe=ah(),Qz=(P(),m(b));async function gxe(){try{return(await _xe.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(t){Qz.diag.debug(`error reading machine id: ${t}`)}try{return(await(0,fxe.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(t){Qz.diag.debug(`error reading machine id: ${t}`)}return""}lh.getMachineId=gxe});var r3=c(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.getMachineId=void 0;var t3=require("process"),Exe=ah(),hxe=(P(),m(b));async function mxe(){let t="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",e="%windir%\\System32\\REG.exe";t3.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in t3.env&&(e="%windir%\\sysnative\\cmd.exe /c "+e);try{let n=(await(0,Exe.execAsync)(`${e} ${t}`)).stdout.split("REG_SZ");if(n.length===2)return n[1].trim()}catch(r){hxe.diag.debug(`error reading machine id: ${r}`)}return""}dh.getMachineId=mxe});var n3=c(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.getMachineId=void 0;var Txe=(P(),m(b));async function Sxe(){return Txe.diag.debug("could not read machine-id: unsupported platform"),""}ph.getMachineId=Sxe});var o3=c(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.getMachineId=void 0;var Axe=require("process"),fu;io.getMachineId=fu;switch(Axe.platform){case"darwin":io.getMachineId=fu=Jz().getMachineId;break;case"linux":io.getMachineId=fu=$z().getMachineId;break;case"freebsd":io.getMachineId=fu=e3().getMachineId;break;case"win32":io.getMachineId=fu=r3().getMachineId;break;default:io.getMachineId=fu=n3().getMachineId}});var ON=c(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.hostDetectorSync=void 0;var AN=($(),m(J)),Rxe=oo(),i3=require("os"),Oxe=SN(),Ixe=o3(),RN=class{detect(e){let r={[AN.SEMRESATTRS_HOST_NAME]:(0,i3.hostname)(),[AN.SEMRESATTRS_HOST_ARCH]:(0,Oxe.normalizeArch)((0,i3.arch)())};return new Rxe.Resource(r,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,Ixe.getMachineId)().then(e=>{let r={};return e&&(r[AN.SEMRESATTRS_HOST_ID]=e),r})}};_h.hostDetectorSync=new RN});var s3=c(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.hostDetector=void 0;var bxe=ON(),IN=class{detect(e){return Promise.resolve(bxe.hostDetectorSync.detect(e))}};fh.hostDetector=new IN});var PN=c(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.osDetectorSync=void 0;var a3=($(),m(J)),Pxe=oo(),u3=require("os"),yxe=SN(),bN=class{detect(e){let r={[a3.SEMRESATTRS_OS_TYPE]:(0,yxe.normalizeType)((0,u3.platform)()),[a3.SEMRESATTRS_OS_VERSION]:(0,u3.release)()};return new Pxe.Resource(r)}};gh.osDetectorSync=new bN});var c3=c(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.osDetector=void 0;var vxe=PN(),yN=class{detect(e){return Promise.resolve(vxe.osDetectorSync.detect(e))}};Eh.osDetector=new yN});var NN=c(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.processDetectorSync=void 0;var Nxe=(P(),m(b)),so=($(),m(J)),Cxe=oo(),Mxe=require("os"),vN=class{detect(e){let r={[so.SEMRESATTRS_PROCESS_PID]:process.pid,[so.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[so.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[so.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[so.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[so.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[so.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(r[so.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let n=Mxe.userInfo();r[so.SEMRESATTRS_PROCESS_OWNER]=n.username}catch(n){Nxe.diag.debug(`error obtaining process owner: ${n}`)}return new Cxe.Resource(r)}};hh.processDetectorSync=new vN});var l3=c(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.processDetector=void 0;var Lxe=NN(),CN=class{detect(e){return Promise.resolve(Lxe.processDetectorSync.detect(e))}};mh.processDetector=new CN});var d3=c(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.serviceInstanceIdDetectorSync=void 0;var Dxe=($(),m(J)),Gxe=oo(),Uxe=require("crypto"),MN=class{detect(e){let r={[Dxe.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,Uxe.randomUUID)()};return new Gxe.Resource(r)}};Th.serviceInstanceIdDetectorSync=new MN});var p3=c(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.serviceInstanceIdDetectorSync=yt.processDetectorSync=yt.processDetector=yt.osDetectorSync=yt.osDetector=yt.hostDetectorSync=yt.hostDetector=void 0;var xxe=s3();Object.defineProperty(yt,"hostDetector",{enumerable:!0,get:function(){return xxe.hostDetector}});var wxe=ON();Object.defineProperty(yt,"hostDetectorSync",{enumerable:!0,get:function(){return wxe.hostDetectorSync}});var Vxe=c3();Object.defineProperty(yt,"osDetector",{enumerable:!0,get:function(){return Vxe.osDetector}});var Bxe=PN();Object.defineProperty(yt,"osDetectorSync",{enumerable:!0,get:function(){return Bxe.osDetectorSync}});var qxe=l3();Object.defineProperty(yt,"processDetector",{enumerable:!0,get:function(){return qxe.processDetector}});var jxe=NN();Object.defineProperty(yt,"processDetectorSync",{enumerable:!0,get:function(){return jxe.processDetectorSync}});var Hxe=d3();Object.defineProperty(yt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Hxe.serviceInstanceIdDetectorSync}})});var _3=c(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.serviceInstanceIdDetectorSync=vt.processDetectorSync=vt.processDetector=vt.osDetectorSync=vt.osDetector=vt.hostDetectorSync=vt.hostDetector=void 0;var Gs=p3();Object.defineProperty(vt,"hostDetector",{enumerable:!0,get:function(){return Gs.hostDetector}});Object.defineProperty(vt,"hostDetectorSync",{enumerable:!0,get:function(){return Gs.hostDetectorSync}});Object.defineProperty(vt,"osDetector",{enumerable:!0,get:function(){return Gs.osDetector}});Object.defineProperty(vt,"osDetectorSync",{enumerable:!0,get:function(){return Gs.osDetectorSync}});Object.defineProperty(vt,"processDetector",{enumerable:!0,get:function(){return Gs.processDetector}});Object.defineProperty(vt,"processDetectorSync",{enumerable:!0,get:function(){return Gs.processDetectorSync}});Object.defineProperty(vt,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Gs.serviceInstanceIdDetectorSync}})});var GN=c(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.browserDetectorSync=void 0;var Sh=($(),m(J)),Fxe=(P(),m(b)),LN=oo(),DN=class{detect(e){var r,n,o;if(!(typeof navigator<"u"&&((n=(r=global.process)===null||r===void 0?void 0:r.versions)===null||n===void 0?void 0:n.node)===void 0&&((o=global.Bun)===null||o===void 0?void 0:o.version)===void 0))return LN.Resource.empty();let s={[Sh.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Sh.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[Sh.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(s,e)}_getResourceAttributes(e,r){return e[Sh.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(Fxe.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),LN.Resource.empty()):new LN.Resource(Object.assign({},e))}};Ah.browserDetectorSync=new DN});var f3=c(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.browserDetector=void 0;var kxe=GN(),UN=class{detect(e){return Promise.resolve(kxe.browserDetectorSync.detect(e))}};Rh.browserDetector=new UN});var wN=c(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.envDetectorSync=void 0;var Wxe=(P(),m(b)),Yxe=ae(),Kxe=($(),m(J)),Xxe=oo(),xN=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(e){let r={},n=(0,Yxe.getEnv)(),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{let s=this._parseResourceAttributes(o);Object.assign(r,s)}catch(s){Wxe.diag.debug(`EnvDetector failed: ${s.message}`)}return i&&(r[Kxe.SEMRESATTRS_SERVICE_NAME]=i),new Xxe.Resource(r)}_parseResourceAttributes(e){if(!e)return{};let r={},n=e.split(this._COMMA_SEPARATOR,-1);for(let o of n){let i=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(i.length!==2)continue;let[s,a]=i;if(s=s.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);r[s]=decodeURIComponent(a)}return r}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)}_isBaggageOctetString(e){for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}};Oh.envDetectorSync=new xN});var g3=c(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.envDetector=void 0;var Zxe=wN(),VN=class{detect(e){return Promise.resolve(Zxe.envDetectorSync.detect(e))}};Ih.envDetector=new VN});var E3=c(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.envDetectorSync=Ae.browserDetectorSync=Ae.envDetector=Ae.browserDetector=Ae.serviceInstanceIdDetectorSync=Ae.processDetectorSync=Ae.processDetector=Ae.osDetectorSync=Ae.osDetector=Ae.hostDetectorSync=Ae.hostDetector=void 0;var Us=_3();Object.defineProperty(Ae,"hostDetector",{enumerable:!0,get:function(){return Us.hostDetector}});Object.defineProperty(Ae,"hostDetectorSync",{enumerable:!0,get:function(){return Us.hostDetectorSync}});Object.defineProperty(Ae,"osDetector",{enumerable:!0,get:function(){return Us.osDetector}});Object.defineProperty(Ae,"osDetectorSync",{enumerable:!0,get:function(){return Us.osDetectorSync}});Object.defineProperty(Ae,"processDetector",{enumerable:!0,get:function(){return Us.processDetector}});Object.defineProperty(Ae,"processDetectorSync",{enumerable:!0,get:function(){return Us.processDetectorSync}});Object.defineProperty(Ae,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Us.serviceInstanceIdDetectorSync}});var zxe=f3();Object.defineProperty(Ae,"browserDetector",{enumerable:!0,get:function(){return zxe.browserDetector}});var Jxe=g3();Object.defineProperty(Ae,"envDetector",{enumerable:!0,get:function(){return Jxe.envDetector}});var $xe=GN();Object.defineProperty(Ae,"browserDetectorSync",{enumerable:!0,get:function(){return $xe.browserDetectorSync}});var Qxe=wN();Object.defineProperty(Ae,"envDetectorSync",{enumerable:!0,get:function(){return Qxe.envDetectorSync}})});var h3=c(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.isPromiseLike=void 0;var ewe=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";bh.isPromiseLike=ewe});var T3=c(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.detectResourcesSync=Eu.detectResources=void 0;var Ud=oo(),gu=(P(),m(b)),twe=h3(),rwe=async(t={})=>{let e=await Promise.all((t.detectors||[]).map(async r=>{try{let n=await r.detect(t);return gu.diag.debug(`${r.constructor.name} found resource.`,n),n}catch(n){return gu.diag.debug(`${r.constructor.name} failed: ${n.message}`),Ud.Resource.empty()}}));return m3(e),e.reduce((r,n)=>r.merge(n),Ud.Resource.empty())};Eu.detectResources=rwe;var nwe=(t={})=>{var e;let r=((e=t.detectors)!==null&&e!==void 0?e:[]).map(o=>{try{let i=o.detect(t),s;if((0,twe.isPromiseLike)(i)){let a=async()=>{var u;let l=await i;return await((u=l.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(l)),l.attributes};s=new Ud.Resource({},a())}else s=i;return s.waitForAsyncAttributes?s.waitForAsyncAttributes().then(()=>gu.diag.debug(`${o.constructor.name} found resource.`,s)):gu.diag.debug(`${o.constructor.name} found resource.`,s),s}catch(i){return gu.diag.error(`${o.constructor.name} failed: ${i.message}`),Ud.Resource.empty()}}),n=r.reduce((o,i)=>o.merge(i),Ud.Resource.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(()=>{m3(r)}),n};Eu.detectResourcesSync=nwe;var m3=t=>{t.forEach(e=>{if(Object.keys(e.attributes).length>0){let r=JSON.stringify(e.attributes,null,4);gu.diag.verbose(r)}})}});var BN=c(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.detectResources=te.detectResourcesSync=te.serviceInstanceIdDetectorSync=te.processDetectorSync=te.processDetector=te.osDetectorSync=te.osDetector=te.hostDetectorSync=te.hostDetector=te.envDetectorSync=te.envDetector=te.browserDetectorSync=te.browserDetector=te.defaultServiceName=te.Resource=void 0;var owe=oo();Object.defineProperty(te,"Resource",{enumerable:!0,get:function(){return owe.Resource}});var iwe=mN();Object.defineProperty(te,"defaultServiceName",{enumerable:!0,get:function(){return iwe.defaultServiceName}});var Kr=E3();Object.defineProperty(te,"browserDetector",{enumerable:!0,get:function(){return Kr.browserDetector}});Object.defineProperty(te,"browserDetectorSync",{enumerable:!0,get:function(){return Kr.browserDetectorSync}});Object.defineProperty(te,"envDetector",{enumerable:!0,get:function(){return Kr.envDetector}});Object.defineProperty(te,"envDetectorSync",{enumerable:!0,get:function(){return Kr.envDetectorSync}});Object.defineProperty(te,"hostDetector",{enumerable:!0,get:function(){return Kr.hostDetector}});Object.defineProperty(te,"hostDetectorSync",{enumerable:!0,get:function(){return Kr.hostDetectorSync}});Object.defineProperty(te,"osDetector",{enumerable:!0,get:function(){return Kr.osDetector}});Object.defineProperty(te,"osDetectorSync",{enumerable:!0,get:function(){return Kr.osDetectorSync}});Object.defineProperty(te,"processDetector",{enumerable:!0,get:function(){return Kr.processDetector}});Object.defineProperty(te,"processDetectorSync",{enumerable:!0,get:function(){return Kr.processDetectorSync}});Object.defineProperty(te,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return Kr.serviceInstanceIdDetectorSync}});var S3=T3();Object.defineProperty(te,"detectResourcesSync",{enumerable:!0,get:function(){return S3.detectResourcesSync}});Object.defineProperty(te,"detectResources",{enumerable:!0,get:function(){return S3.detectResources}})});var A3=c(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.MultiSpanProcessor=void 0;var swe=ae(),qN=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let r of this._spanProcessors)e.push(r.forceFlush());return new Promise(r=>{Promise.all(e).then(()=>{r()}).catch(n=>{(0,swe.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(e,r){for(let n of this._spanProcessors)n.onStart(e,r)}onEnd(e){for(let r of this._spanProcessors)r.onEnd(e)}shutdown(){let e=[];for(let r of this._spanProcessors)e.push(r.shutdown());return new Promise((r,n)=>{Promise.all(e).then(()=>{r()},n)})}};Ph.MultiSpanProcessor=qN});var HN=c(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.NoopSpanProcessor=void 0;var jN=class{onStart(e,r){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};yh.NoopSpanProcessor=jN});var O3=c(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.BasicTracerProvider=xs.ForceFlushState=void 0;var hu=(P(),m(b)),Tu=ae(),R3=BN(),awe=wd(),uwe=dN(),cwe=A3(),lwe=HN(),dwe=QE(),pwe=_N(),mu;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(mu=xs.ForceFlushState||(xs.ForceFlushState={}));var xd=class{constructor(e={}){var r;this._registeredSpanProcessors=[],this._tracers=new Map;let n=(0,Tu.merge)({},(0,uwe.loadDefaultConfig)(),(0,pwe.reconfigureLimits)(e));this.resource=(r=n.resource)!==null&&r!==void 0?r:R3.Resource.empty(),this.resource=R3.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let o=this._buildExporterFromEnv();if(o!==void 0){let i=new dwe.BatchSpanProcessor(o);this.activeSpanProcessor=i}else this.activeSpanProcessor=new lwe.NoopSpanProcessor}getTracer(e,r,n){let o=`${e}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new awe.Tracer({name:e,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(o)}addSpanProcessor(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(r=>hu.diag.error("Error while trying to shutdown current span processor",r)),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new cwe.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){hu.trace.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&hu.context.setGlobalContextManager(e.contextManager),e.propagator&&hu.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(n=>new Promise(o=>{let i,s=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=mu.timeout},e);n.forceFlush().then(()=>{clearTimeout(s),i!==mu.timeout&&(i=mu.resolved,o(i))}).catch(a=>{clearTimeout(s),i=mu.error,o(a)})}));return new Promise((n,o)=>{Promise.all(r).then(i=>{let s=i.filter(a=>a!==mu.resolved);s.length>0?o(s):n()}).catch(i=>o([i]))})}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var r;return(r=this.constructor._registeredPropagators.get(e))===null||r===void 0?void 0:r()}_getSpanExporter(e){var r;return(r=this.constructor._registeredExporters.get(e))===null||r===void 0?void 0:r()}_buildPropagatorFromEnv(){let e=Array.from(new Set((0,Tu.getEnv)().OTEL_PROPAGATORS)),n=e.map(o=>{let i=this._getPropagator(o);return i||hu.diag.warn(`Propagator "${o}" requested through environment variable is unavailable.`),i}).reduce((o,i)=>(i&&o.push(i),o),[]);if(n.length!==0)return e.length===1?n[0]:new Tu.CompositePropagator({propagators:n})}_buildExporterFromEnv(){let e=(0,Tu.getEnv)().OTEL_TRACES_EXPORTER;if(e==="none"||e==="")return;let r=this._getSpanExporter(e);return r||hu.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),r}};xs.BasicTracerProvider=xd;xd._registeredPropagators=new Map([["tracecontext",()=>new Tu.W3CTraceContextPropagator],["baggage",()=>new Tu.W3CBaggagePropagator]]);xd._registeredExporters=new Map});var I3=c(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.ConsoleSpanExporter=void 0;var FN=ae(),kN=class{export(e,r){return this._sendSpans(e,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(e){var r;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(r=e.spanContext().traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:(0,FN.hrTimeToMicroseconds)(e.startTime),duration:(0,FN.hrTimeToMicroseconds)(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}}_sendSpans(e,r){for(let n of e)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:FN.ExportResultCode.SUCCESS})}};vh.ConsoleSpanExporter=kN});var P3=c(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.InMemorySpanExporter=void 0;var b3=ae(),WN=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,r){if(this._stopped)return r({code:b3.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout(()=>r({code:b3.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}};Nh.InMemorySpanExporter=WN});var y3=c(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.SimpleSpanProcessor=void 0;var _we=(P(),m(b)),Su=ae(),YN=class{constructor(e){this._exporter=e,this._shutdownOnce=new Su.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(e,r){}onEnd(e){var r,n;if(this._shutdownOnce.isCalled||!(e.spanContext().traceFlags&_we.TraceFlags.SAMPLED))return;let o=()=>Su.internal._export(this._exporter,[e]).then(i=>{var s;i.code!==Su.ExportResultCode.SUCCESS&&(0,Su.globalErrorHandler)((s=i.error)!==null&&s!==void 0?s:new Error(`SimpleSpanProcessor: span export failed (status ${i})`))}).catch(i=>{(0,Su.globalErrorHandler)(i)});if(e.resource.asyncAttributesPending){let i=(n=(r=e.resource).waitForAsyncAttributes)===null||n===void 0?void 0:n.call(r).then(()=>(i!=null&&this._unresolvedExports.delete(i),o()),s=>(0,Su.globalErrorHandler)(s));i!=null&&this._unresolvedExports.add(i)}else o()}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}};Ch.SimpleSpanProcessor=YN});var wd=c(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.Span=re.SamplingDecision=re.TraceIdRatioBasedSampler=re.ParentBasedSampler=re.AlwaysOnSampler=re.AlwaysOffSampler=re.NoopSpanProcessor=re.SimpleSpanProcessor=re.InMemorySpanExporter=re.ConsoleSpanExporter=re.RandomIdGenerator=re.BatchSpanProcessor=re.ForceFlushState=re.BasicTracerProvider=re.Tracer=void 0;var fwe=Kz();Object.defineProperty(re,"Tracer",{enumerable:!0,get:function(){return fwe.Tracer}});var v3=O3();Object.defineProperty(re,"BasicTracerProvider",{enumerable:!0,get:function(){return v3.BasicTracerProvider}});Object.defineProperty(re,"ForceFlushState",{enumerable:!0,get:function(){return v3.ForceFlushState}});var N3=QE();Object.defineProperty(re,"BatchSpanProcessor",{enumerable:!0,get:function(){return N3.BatchSpanProcessor}});Object.defineProperty(re,"RandomIdGenerator",{enumerable:!0,get:function(){return N3.RandomIdGenerator}});var gwe=I3();Object.defineProperty(re,"ConsoleSpanExporter",{enumerable:!0,get:function(){return gwe.ConsoleSpanExporter}});var Ewe=P3();Object.defineProperty(re,"InMemorySpanExporter",{enumerable:!0,get:function(){return Ewe.InMemorySpanExporter}});var hwe=y3();Object.defineProperty(re,"SimpleSpanProcessor",{enumerable:!0,get:function(){return hwe.SimpleSpanProcessor}});var mwe=HN();Object.defineProperty(re,"NoopSpanProcessor",{enumerable:!0,get:function(){return mwe.NoopSpanProcessor}});var Twe=HE();Object.defineProperty(re,"AlwaysOffSampler",{enumerable:!0,get:function(){return Twe.AlwaysOffSampler}});var Swe=kE();Object.defineProperty(re,"AlwaysOnSampler",{enumerable:!0,get:function(){return Swe.AlwaysOnSampler}});var Awe=sN();Object.defineProperty(re,"ParentBasedSampler",{enumerable:!0,get:function(){return Awe.ParentBasedSampler}});var Rwe=uN();Object.defineProperty(re,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return Rwe.TraceIdRatioBasedSampler}});var Owe=Dd();Object.defineProperty(re,"SamplingDecision",{enumerable:!0,get:function(){return Owe.SamplingDecision}});var Iwe=tN();Object.defineProperty(re,"Span",{enumerable:!0,get:function(){return Iwe.Span}})});var C3=c(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.SeverityNumber=void 0;var bwe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(bwe=Vd.SeverityNumber||(Vd.SeverityNumber={}))});var Lh=c(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.NOOP_LOGGER=Au.NoopLogger=void 0;var Mh=class{emit(e){}};Au.NoopLogger=Mh;Au.NOOP_LOGGER=new Mh});var Gh=c(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.NOOP_LOGGER_PROVIDER=Ru.NoopLoggerProvider=void 0;var Pwe=Lh(),Dh=class{getLogger(e,r,n){return new Pwe.NoopLogger}};Ru.NoopLoggerProvider=Dh;Ru.NOOP_LOGGER_PROVIDER=new Dh});var XN=c(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.ProxyLogger=void 0;var ywe=Lh(),KN=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):ywe.NOOP_LOGGER}};Uh.ProxyLogger=KN});var zN=c(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.ProxyLoggerProvider=void 0;var vwe=Gh(),Nwe=XN(),ZN=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new Nwe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:vwe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};xh.ProxyLoggerProvider=ZN});var M3=c(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh._globalThis=void 0;wh._globalThis=typeof globalThis=="object"?globalThis:global});var L3=c(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh._globalThis=void 0;var Cwe=M3();Object.defineProperty(Vh,"_globalThis",{enumerable:!0,get:function(){return Cwe._globalThis}})});var D3=c(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh._globalThis=void 0;var Mwe=L3();Object.defineProperty(Bh,"_globalThis",{enumerable:!0,get:function(){return Mwe._globalThis}})});var G3=c(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.API_BACKWARDS_COMPATIBILITY_VERSION=mn.makeGetter=mn._global=mn.GLOBAL_LOGS_API_KEY=void 0;var Lwe=D3();mn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");mn._global=Lwe._globalThis;function Dwe(t,e,r){return n=>n===t?e:r}mn.makeGetter=Dwe;mn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var x3=c(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.LogsAPI=void 0;var yr=G3(),Gwe=Gh(),U3=zN(),JN=class t{constructor(){this._proxyLoggerProvider=new U3.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return yr._global[yr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(yr._global[yr.GLOBAL_LOGS_API_KEY]=(0,yr.makeGetter)(yr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Gwe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=yr._global[yr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(yr._global,yr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete yr._global[yr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new U3.ProxyLoggerProvider}};qh.LogsAPI=JN});var $N=c($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.logs=$e.ProxyLoggerProvider=$e.ProxyLogger=$e.NoopLoggerProvider=$e.NOOP_LOGGER_PROVIDER=$e.NoopLogger=$e.NOOP_LOGGER=$e.SeverityNumber=void 0;var Uwe=C3();Object.defineProperty($e,"SeverityNumber",{enumerable:!0,get:function(){return Uwe.SeverityNumber}});var w3=Lh();Object.defineProperty($e,"NOOP_LOGGER",{enumerable:!0,get:function(){return w3.NOOP_LOGGER}});Object.defineProperty($e,"NoopLogger",{enumerable:!0,get:function(){return w3.NoopLogger}});var V3=Gh();Object.defineProperty($e,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return V3.NOOP_LOGGER_PROVIDER}});Object.defineProperty($e,"NoopLoggerProvider",{enumerable:!0,get:function(){return V3.NoopLoggerProvider}});var xwe=XN();Object.defineProperty($e,"ProxyLogger",{enumerable:!0,get:function(){return xwe.ProxyLogger}});var wwe=zN();Object.defineProperty($e,"ProxyLoggerProvider",{enumerable:!0,get:function(){return wwe.ProxyLoggerProvider}});var Vwe=x3();$e.logs=Vwe.LogsAPI.getInstance()});var B3=c(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.disableInstrumentations=Ou.enableInstrumentations=void 0;function Bwe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ou.enableInstrumentations=Bwe;function qwe(t){t.forEach(e=>e.disable())}Ou.disableInstrumentations=qwe});var H3=c(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.registerInstrumentations=void 0;var q3=(P(),m(b)),jwe=$N(),j3=B3();function Hwe(t){var e,r;let n=t.tracerProvider||q3.trace.getTracerProvider(),o=t.meterProvider||q3.metrics.getMeterProvider(),i=t.loggerProvider||jwe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,j3.enableInstrumentations)(s,n,o,i),()=>{(0,j3.disableInstrumentations)(s)}}jh.registerInstrumentations=Hwe});var F3=c(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});Fh.InstrumentationAbstract=void 0;var QN=(P(),m(b)),Fwe=$N(),Hh=Le(),eC=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Hh.wrap,this._unwrap=Hh.unwrap,this._massWrap=Hh.massWrap,this._massUnwrap=Hh.massUnwrap,this.setConfig(n),this._diag=QN.diag.createComponentLogger({namespace:e}),this._tracer=QN.trace.getTracer(e,r),this._meter=QN.metrics.getMeter(e,r),this._logger=Fwe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Fh.InstrumentationAbstract=eC});var k3=c(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.ModuleNameTrie=ti.ModuleNameSeparator=void 0;ti.ModuleNameSeparator="/";var kh=class{constructor(){this.hooks=[],this.children=new Map}},tC=class{constructor(){this._trie=new kh,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ti.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new kh,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ti.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ti.ModuleNameTrie=tC});var Y3=c(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.RequireInTheMiddleSingleton=void 0;var kwe=Ge(),W3=require("path"),rC=k3(),Wwe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),nC=class t{constructor(){this._moduleNameTrie=new rC.ModuleNameTrie,this._initialize()}_initialize(){new kwe.Hook(null,{internals:!0},(e,r,n)=>{let o=Ywe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return Wwe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Wh.RequireInTheMiddleSingleton=nC;function Ywe(t){return W3.sep!==rC.ModuleNameSeparator?t.split(W3.sep).join(rC.ModuleNameSeparator):t}});var oC=c(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.isWrapped=ri.safeExecuteInTheMiddleAsync=ri.safeExecuteInTheMiddle=void 0;function Kwe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ri.safeExecuteInTheMiddle=Kwe;async function Xwe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ri.safeExecuteInTheMiddleAsync=Xwe;function Zwe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ri.isWrapped=Zwe});var Z3=c(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.InstrumentationBase=void 0;var iC=require("path"),K3=require("util"),zwe=Tr(),sC=Le(),Jwe=F3(),$we=Y3(),Qwe=Rr(),Bd=(P(),m(b)),eVe=Ge(),tVe=require("fs"),rVe=oC(),aC=class extends Jwe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=$we.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,rVe.isWrapped)(i[s])&&this._unwrap(i,s),K3.types.isProxy(i)){let u=(0,sC.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,sC.wrap)(i,s,a)},this._unwrap=(i,s)=>K3.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,sC.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Bd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Bd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Bd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Bd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,tVe.readFileSync)(iC.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Bd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return X3(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=iC.normalize(n);return a.filter(d=>d.name===u).filter(d=>X3(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=iC.isAbsolute(e.name)?new eVe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new Qwe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};Yh.InstrumentationBase=aC;function X3(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,zwe.satisfies)(e,n,{includePrerelease:r}))}});var z3=c(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.normalize=void 0;var nVe=require("path");Object.defineProperty(Kh,"normalize",{enumerable:!0,get:function(){return nVe.normalize}})});var J3=c(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.normalize=Iu.InstrumentationBase=void 0;var oVe=Z3();Object.defineProperty(Iu,"InstrumentationBase",{enumerable:!0,get:function(){return oVe.InstrumentationBase}});var iVe=z3();Object.defineProperty(Iu,"normalize",{enumerable:!0,get:function(){return iVe.normalize}})});var uC=c(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.normalize=bu.InstrumentationBase=void 0;var $3=J3();Object.defineProperty(bu,"InstrumentationBase",{enumerable:!0,get:function(){return $3.InstrumentationBase}});Object.defineProperty(bu,"normalize",{enumerable:!0,get:function(){return $3.normalize}})});var Q3=c(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.InstrumentationNodeModuleDefinition=void 0;var cC=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};Xh.InstrumentationNodeModuleDefinition=cC});var e4=c(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.InstrumentationNodeModuleFile=void 0;var sVe=uC(),lC=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,sVe.normalize)(e)}};Zh.InstrumentationNodeModuleFile=lC});var zh=c(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.safeExecuteInTheMiddleAsync=Nt.safeExecuteInTheMiddle=Nt.isWrapped=Nt.InstrumentationNodeModuleFile=Nt.InstrumentationNodeModuleDefinition=Nt.InstrumentationBase=Nt.registerInstrumentations=void 0;var aVe=H3();Object.defineProperty(Nt,"registerInstrumentations",{enumerable:!0,get:function(){return aVe.registerInstrumentations}});var uVe=uC();Object.defineProperty(Nt,"InstrumentationBase",{enumerable:!0,get:function(){return uVe.InstrumentationBase}});var cVe=Q3();Object.defineProperty(Nt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return cVe.InstrumentationNodeModuleDefinition}});var lVe=e4();Object.defineProperty(Nt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return lVe.InstrumentationNodeModuleFile}});var dC=oC();Object.defineProperty(Nt,"isWrapped",{enumerable:!0,get:function(){return dC.isWrapped}});Object.defineProperty(Nt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return dC.safeExecuteInTheMiddle}});Object.defineProperty(Nt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return dC.safeExecuteInTheMiddleAsync}})});var ao=c(Q=>{var{_optionalChain:Jh}=I();Object.defineProperty(Q,"__esModule",{value:!0});var ue=($(),m(J)),ne=I(),G=(P(),m(b)),N=k(),oi=ae(),qd=wd(),dVe=zh(),IC="sentry.parentIsRemote",s4="sentry.graphql.operation";function jd(t){let e=t;return!!e.attributes&&typeof e.attributes=="object"}function a4(t){return typeof t.kind=="number"}function u4(t){return!!t.status}function bC(t){return!!t.name}function c4(t){return!!t.parentSpanId}function pVe(t){let e=t;return Array.isArray(e.events)}function l4(t){if(!jd(t))return{};let e=t.attributes[ue.ATTR_URL_FULL]||t.attributes[ue.SEMATTRS_HTTP_URL],r={url:e,"http.method":t.attributes[ue.ATTR_HTTP_REQUEST_METHOD]||t.attributes[ue.SEMATTRS_HTTP_METHOD]};!r["http.method"]&&r.url&&(r["http.method"]="GET");try{if(typeof e=="string"){let n=ne.parseUrl(e);r.url=ne.getSanitizedUrlString(n),n.search&&(r["http.query"]=n.search),n.hash&&(r["http.fragment"]=n.hash)}}catch{}return r}function _Ve(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function fVe(t){class e extends t{constructor(...n){super(...n)}get tracer(){if(this._tracer)return this._tracer;let n="@sentry/opentelemetry",o=N.SDK_VERSION,i=G.trace.getTracer(n,o);return this._tracer=i,i}async flush(n){let o=this.traceProvider,i=_Ve([o,"optionalAccess",s=>s.activeSpanProcessor]);return i&&await i.forceFlush(),super.flush(n)}}return e}function d4(t){return a4(t)?t.kind:G.SpanKind.INTERNAL}var pC="sentry-trace",_C="baggage",PC="sentry.dsc",$h="sentry.parent_span_id",yC="sentry.sampled_not_recording",p4="sentry.url",_4=G.createContextKey("sentry_scopes"),fC=G.createContextKey("sentry_fork_isolation_scope"),gC=G.createContextKey("sentry_fork_set_scope"),EC=G.createContextKey("sentry_fork_set_isolation_scope"),f4="_scopeContext";function Bs(t){return t.getValue(_4)}function g4(t,e){return t.setValue(_4,e)}function gVe(t,e){ne.addNonEnumerableProperty(t,f4,e)}function EVe(t){return t[f4]}function hVe(t){if(!jd(t))return!1;let{attributes:e}=t,r=e[ue.SEMATTRS_HTTP_URL]||e[ue.ATTR_URL_FULL];return r?N.isSentryRequestUrl(r.toString(),N.getClient()):!1}function E4(t,e,r){let n=e[ue.ATTR_HTTP_REQUEST_METHOD]||e[ue.SEMATTRS_HTTP_METHOD];if(n)return TVe({attributes:e,name:t,kind:r},n);let o=e[ue.SEMATTRS_DB_SYSTEM],i=typeof e[N.SEMANTIC_ATTRIBUTE_SENTRY_OP]=="string"&&e[N.SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith("cache.");if(o&&!i)return mVe({attributes:e,name:t});if(e[ue.SEMATTRS_RPC_SERVICE])return{op:"rpc",description:t,source:"route"};if(e[ue.SEMATTRS_MESSAGING_SYSTEM])return{op:"message",description:t,source:"route"};let u=e[ue.SEMATTRS_FAAS_TRIGGER];return u?{op:u.toString(),description:t,source:"route"}:{op:void 0,description:t,source:"custom"}}function h4(t){let e=jd(t)?t.attributes:{},r=bC(t)?t.name:"<unknown>",n=d4(t);return E4(r,e,n)}function mVe({attributes:t,name:e}){let r=t[ue.SEMATTRS_DB_STATEMENT];return{op:"db",description:r?r.toString():e,source:"task"}}function TVe({name:t,kind:e,attributes:r},n){let o=["http"];switch(e){case G.SpanKind.CLIENT:o.push("client");break;case G.SpanKind.SERVER:o.push("server");break}r["sentry.http.prefetch"]&&o.push("prefetch");let{urlPath:i,url:s,query:a,fragment:u,hasRoute:l}=AVe(r,e);if(!i)return{op:o.join("."),description:t,source:"custom"};let d=r[s4],p=`${n} ${i}`,_=d?`${p} (${SVe(d)})`:p,f=l||i==="/"?"route":"url",g={};s&&(g.url=s),a&&(g["http.query"]=a),u&&(g["http.fragment"]=u);let E=e===G.SpanKind.CLIENT||e===G.SpanKind.SERVER,y=!`${r[N.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]||"manual"}`.startsWith("auto"),C=E||!y;return{op:o.join("."),description:C?_:t,source:C?f:"custom",data:g}}function SVe(t){if(Array.isArray(t)){let e=t.slice().sort();return e.length<=5?e.join(", "):`${e.slice(0,5).join(", ")}, +${e.length-5}`}return`${t}`}function AVe(t,e){let r=t[ue.SEMATTRS_HTTP_TARGET],n=t[ue.SEMATTRS_HTTP_URL]||t[ue.ATTR_URL_FULL],o=t[ue.ATTR_HTTP_ROUTE],i=typeof n=="string"?ne.parseUrl(n):void 0,s=i?ne.getSanitizedUrlString(i):void 0,a=i&&i.search?i.search:void 0,u=i&&i.hash?i.hash:void 0;return typeof o=="string"?{urlPath:o,url:s,query:a,fragment:u,hasRoute:!0}:e===G.SpanKind.SERVER&&typeof r=="string"?{urlPath:ne.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:i?{urlPath:s,url:s,query:a,fragment:u,hasRoute:!1}:typeof r=="string"?{urlPath:ne.stripUrlQueryAndFragment(r),url:s,query:a,fragment:u,hasRoute:!1}:{urlPath:void 0,url:s,query:a,fragment:u,hasRoute:!1}}function RVe(t){t.on("createDsc",(e,r)=>{if(r){let i=(N.spanToJSON(r).data||{})[N.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],{description:s}=bC(r)?h4(r):{description:void 0};i!=="url"&&s&&(e.transaction=s)}})}function hC({parentSpanId:t,dsc:e,sampled:r}){let n=e?ne.dynamicSamplingContextToSentryBaggageHeader(e):void 0,o=new oi.TraceState().set($h,t||""),i=n?o.set(PC,n):o;return r===!1?i.set(yC,"1"):i}function m4(t){let e=hC({parentSpanId:t.parentSpanId,dsc:t.dsc,sampled:t.sampled});return{traceId:t.traceId,spanId:t.parentSpanId||"",isRemote:!0,traceFlags:t.sampled?G.TraceFlags.SAMPLED:G.TraceFlags.NONE,traceState:e}}function vC(){return G.trace.getActiveSpan()}var ni=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function t4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function Qh(t){let{traceFlags:e,traceState:r}=t,n=r?r.get(yC)==="1":!1;if(e===G.TraceFlags.SAMPLED)return!0;if(n)return!1;let o=r?r.get(PC):void 0,i=o?ne.baggageHeaderToDynamicSamplingContext(o):void 0;if(t4([i,"optionalAccess",s=>s.sampled])==="true")return!0;if(t4([i,"optionalAccess",s=>s.sampled])==="false")return!1}var T4=new Set;function OVe(){return Array.from(T4)}function em(t){T4.add(t)}function Vs(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function NC(t){let e=t.spanContext(),{traceId:r,spanId:n,traceState:o}=e,i=o?o.get(PC):void 0,s=i?ne.baggageHeaderToDynamicSamplingContext(i):void 0,a=o&&o.get($h)||void 0,u=Qh(e),l=s||N.getDynamicSamplingContextFromSpan(N.getRootSpan(t));return{traceId:r,spanId:n,sampled:u,parentSpanId:a,dsc:l}}var mC=class extends oi.W3CBaggagePropagator{constructor(){super(),em("SentryPropagator"),this._urlMatchesTargetsMap=new ne.LRUMap(100)}inject(e,r,n){if(oi.isTracingSuppressed(e)){ni&&ne.logger.log("[Tracing] Not injecting trace data for url because tracing is suppressed.");return}let o=G.trace.getSpan(e),i=o&&yVe(o),s=Vs([N.getClient,"call",f=>f(),"optionalAccess",f=>f.getOptions,"call",f=>f(),"optionalAccess",f=>f.tracePropagationTargets]);if(typeof i=="string"&&s&&!this._shouldInjectTraceData(s,i)){ni&&ne.logger.log("[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:",i);return}let a=PVe(r),u=G.propagation.getBaggage(e)||G.propagation.createBaggage({}),{dynamicSamplingContext:l,traceId:d,spanId:p,sampled:_}=IVe(e);if(a){let f=ne.parseBaggageHeader(a);f&&Object.entries(f).forEach(([g,E])=>{u=u.setEntry(g,{value:E})})}l&&(u=Object.entries(l).reduce((f,[g,E])=>E?f.setEntry(`${ne.SENTRY_BAGGAGE_KEY_PREFIX}${g}`,{value:E}):f,u)),d&&d!==G.INVALID_TRACEID&&n.set(r,pC,ne.generateSentryTraceHeader(d,p,_)),super.inject(G.propagation.setBaggage(e,u),r,n)}extract(e,r,n){let o=n.get(r,pC),i=n.get(r,_C),s=o?Array.isArray(o)?o[0]:o:void 0,a=ne.propagationContextFromHeaders(s,i),u=S4(e,{sentryTrace:s,baggage:i}),l=Bs(u),d={scope:l?l.scope.clone():N.getCurrentScope().clone(),isolationScope:l?l.isolationScope:N.getIsolationScope()};return d.scope.setPropagationContext(a),g4(u,d)}fields(){return[pC,_C]}_shouldInjectTraceData(e,r){if(e===void 0)return!0;let n=this._urlMatchesTargetsMap.get(r);if(n!==void 0)return n;let o=ne.stringMatchesSomePattern(r,e);return this._urlMatchesTargetsMap.set(r,o),o}};function IVe(t){let e=G.trace.getSpan(t),r=Vs([e,"optionalAccess",s=>s.spanContext,"call",s=>s(),"access",s=>s.isRemote]);if(e&&!r){let s=e.spanContext(),a=NC(e);return{dynamicSamplingContext:r4(a,s.traceId),traceId:s.traceId,spanId:s.spanId,sampled:Qh(s)}}let o=(Vs([Bs,"call",s=>s(t),"optionalAccess",s=>s.scope])||N.getCurrentScope()).getPropagationContext();return{dynamicSamplingContext:r4(o,o.traceId),traceId:o.traceId,spanId:o.spanId,sampled:o.sampled}}function r4(t,e){if(Vs([t,"optionalAccess",n=>n.dsc]))return t.dsc;let r=N.getClient();if(r)return N.getDynamicSamplingContextFromClient(e||t.traceId,r)}function S4(t,{sentryTrace:e,baggage:r}){let n=ne.propagationContextFromHeaders(e,r),o=m4(n);return G.trace.setSpanContext(t,o)}function bVe(t,e,r){let n=S4(t,e);return G.context.with(n,r)}function PVe(t){try{let e=t[_C];return Array.isArray(e)?e.join(","):e}catch{return}}function yVe(t){let e=N.spanToJSON(t).data,r=Vs([e,"optionalAccess",o=>o[ue.SEMATTRS_HTTP_URL]])||Vs([e,"optionalAccess",o=>o[ue.ATTR_URL_FULL]]);if(r)return r;let n=Vs([t,"access",o=>o.spanContext,"call",o=>o(),"access",o=>o.traceState,"optionalAccess",o=>o.get,"call",o=>o(p4)]);if(n)return n}function vVe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function A4(t,e){let r=MC(),{name:n,parentSpan:o}=t;return GC(o)(()=>{let s=DC(t.scope,t.forceTransaction),u=t.onlyIfParent&&!G.trace.getSpan(s)?oi.suppressTracing(s):s,l=LC(t);return r.startActiveSpan(n,l,u,d=>N.handleCallbackErrors(()=>e(d),()=>{N.spanToJSON(d).status===void 0&&d.setStatus({code:G.SpanStatusCode.ERROR})},()=>d.end()))})}function R4(t,e){let r=MC(),{name:n,parentSpan:o}=t;return GC(o)(()=>{let s=DC(t.scope,t.forceTransaction),u=t.onlyIfParent&&!G.trace.getSpan(s)?oi.suppressTracing(s):s,l=LC(t);return r.startActiveSpan(n,l,u,d=>N.handleCallbackErrors(()=>e(d,()=>d.end()),()=>{N.spanToJSON(d).status===void 0&&d.setStatus({code:G.SpanStatusCode.ERROR})}))})}function O4(t){let e=MC(),{name:r,parentSpan:n}=t;return GC(n)(()=>{let i=DC(t.scope,t.forceTransaction),a=t.onlyIfParent&&!G.trace.getSpan(i)?oi.suppressTracing(i):i,u=LC(t);return e.startSpan(r,u,a)})}function CC(t,e){let r=t?G.trace.setSpan(G.context.active(),t):G.trace.deleteSpan(G.context.active());return G.context.with(r,()=>e(N.getCurrentScope()))}function MC(){let t=N.getClient();return t&&t.tracer||G.trace.getTracer("@sentry/opentelemetry",N.SDK_VERSION)}function LC(t){let{startTime:e,attributes:r,kind:n,op:o}=t,i=typeof e=="number"?NVe(e):e;return{attributes:o?{[N.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o,...r}:r,kind:n,startTime:i}}function NVe(t){return t<9999999999?t*1e3:t}function DC(t,e){let r=CVe(t),n=vVe([Bs,"call",g=>g(r),"optionalAccess",g=>g.scope]),o=G.trace.getSpan(r);if(!o){let g=N.getClient();if(n&&g){let E=n.getPropagationContext(),T=hC({parentSpanId:E.parentSpanId,dsc:void 0,sampled:E.sampled}),y={traceId:E.traceId,spanId:E.parentSpanId||E.spanId,isRemote:!0,traceFlags:E.sampled?G.TraceFlags.SAMPLED:G.TraceFlags.NONE,traceState:T};return G.trace.setSpanContext(r,y)}return r}if(!e)return r;let i=G.trace.deleteSpan(r),{spanId:s,traceId:a}=o.spanContext(),u=Qh(o.spanContext()),l=N.getRootSpan(o),d=N.getDynamicSamplingContextFromSpan(l),p=hC({dsc:d,parentSpanId:s!==G.INVALID_SPANID?s:void 0,sampled:u}),_={traceId:a,spanId:s,isRemote:!0,traceFlags:u?G.TraceFlags.SAMPLED:G.TraceFlags.NONE,traceState:p};return G.trace.setSpanContext(i,_)}function CVe(t){if(t){let e=EVe(t);if(e)return e}return G.context.active()}function MVe(t,e){return N.continueTrace(t,()=>bVe(G.context.active(),t,e))}function GC(t){return t!==void 0?e=>CC(t,e):e=>e()}function I4(t){let e=oi.suppressTracing(G.context.active());return G.context.with(e,t)}function LVe(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function DVe(t){t.on("preprocessEvent",e=>{let r=vC();if(!r||e.type==="transaction")return;let n=r.spanContext(),o=LVe([n,"access",a=>a.traceState,"optionalAccess",a=>a.get,"call",a=>a($h)]),i=typeof o=="string"?o||void 0:c4(r)?r.parentSpanId:void 0;e.contexts={trace:ne.dropUndefinedKeys({trace_id:n.traceId,span_id:n.spanId,parent_span_id:i}),...e.contexts};let s=N.getRootSpan(r);return e.sdkProcessingMetadata={dynamicSamplingContext:N.getDynamicSamplingContextFromSpan(s),...e.sdkProcessingMetadata},e})}function GVe(){let t={};return G.propagation.inject(G.context.active(),t),t["sentry-trace"]?ne.dropUndefinedKeys({"sentry-trace":t["sentry-trace"],baggage:t.baggage}):{}}function UVe(){function t(){let a=G.context.active(),u=Bs(a);return u||{scope:N.getDefaultCurrentScope(),isolationScope:N.getDefaultIsolationScope()}}function e(a){let u=G.context.active();return G.context.with(u,()=>a(i()))}function r(a,u){let l=G.context.active();return G.context.with(l.setValue(gC,a),()=>u(a))}function n(a){let u=G.context.active();return G.context.with(u.setValue(fC,!0),()=>a(s()))}function o(a,u){let l=G.context.active();return G.context.with(l.setValue(EC,a),()=>u(s()))}function i(){return t().scope}function s(){return t().isolationScope}N.setAsyncContextStrategy({withScope:e,withSetScope:r,withSetIsolationScope:o,withIsolationScope:n,getCurrentScope:i,getIsolationScope:s,startSpan:A4,startSpanManual:R4,startInactiveSpan:O4,getActiveSpan:vC,suppressTracing:I4,getTraceData:GVe,withActiveSpan:CC})}function n4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function xVe(t){class e extends t{constructor(...n){super(...n),em("SentryContextManager")}with(n,o,i,...s){let a=Bs(n),u=n4([a,"optionalAccess",C=>C.scope])||N.getCurrentScope(),l=n4([a,"optionalAccess",C=>C.isolationScope])||N.getIsolationScope(),d=n.getValue(fC)===!0,p=n.getValue(gC),_=n.getValue(EC),f=p||u.clone(),g=_||(d?l.clone():l),y=g4(n,{scope:f,isolationScope:g}).deleteValue(fC).deleteValue(gC).deleteValue(EC);return gVe(f,y),super.with(y,o,i,...s)}}return e}function wVe(t){let e=new Map;for(let r of t)VVe(e,r);return Array.from(e,function([r,n]){return n})}function b4(t){return t.attributes[IC]===!0?void 0:t.parentSpanId}function VVe(t,e){let r=e.spanContext().spanId,n=b4(e);if(!n){TC(t,{id:r,span:e,children:[]});return}let o=BVe(t,n),i=TC(t,{id:r,span:e,parentNode:o,children:[]});o.children.push(i)}function BVe(t,e){let r=t.get(e);return r||TC(t,{id:e,children:[]})}function TC(t,e){let r=t.get(e.id);return r&&r.span?r:r&&!r.span?(r.span=e.span,r.parentNode=e.parentNode,r):(t.set(e.id,e),e)}var P4={1:"cancelled",2:"unknown_error",3:"invalid_argument",4:"deadline_exceeded",5:"not_found",6:"already_exists",7:"permission_denied",8:"resource_exhausted",9:"failed_precondition",10:"aborted",11:"out_of_range",12:"unimplemented",13:"internal_error",14:"unavailable",15:"data_loss",16:"unauthenticated"},qVe=t=>Object.values(P4).includes(t);function y4(t){let e=jd(t)?t.attributes:{},r=u4(t)?t.status:void 0;if(r){if(r.code===G.SpanStatusCode.OK)return{code:N.SPAN_STATUS_OK};if(r.code===G.SpanStatusCode.ERROR){if(typeof r.message>"u"){let o=o4(e);if(o)return o}return r.message&&qVe(r.message)?{code:N.SPAN_STATUS_ERROR,message:r.message}:{code:N.SPAN_STATUS_ERROR,message:"unknown_error"}}}let n=o4(e);return n||(r&&r.code===G.SpanStatusCode.UNSET?{code:N.SPAN_STATUS_OK}:{code:N.SPAN_STATUS_ERROR,message:"unknown_error"})}function o4(t){let e=t[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]||t[ue.SEMATTRS_HTTP_STATUS_CODE],r=t[ue.SEMATTRS_RPC_GRPC_STATUS_CODE],n=typeof e=="number"?e:typeof e=="string"?parseInt(e):void 0;if(typeof n=="number")return N.getSpanStatusFromHttpCode(n);if(typeof r=="string")return{code:N.SPAN_STATUS_ERROR,message:P4[r]||"unknown_error"}}function v4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}var i4=1e3,jVe=300,SC=class{constructor(e){this._finishedSpans=[],this._timeout=v4([e,"optionalAccess",r=>r.timeout])||jVe}export(e){if(this._finishedSpans.push(e),b4(e)){let r=this._finishedSpans.length;ni&&ne.logger.log(`SpanExporter has ${r} unsent spans remaining`),this._cleanupOldSpans();return}this._clearTimeout(),this._flushTimeout=setTimeout(()=>{this.flush()},1)}flush(){this._clearTimeout();let e=this._finishedSpans.length,r=HVe(this._finishedSpans),n=r.length,o=e-n;ni&&ne.logger.log(`SpanExporter exported ${o} spans, ${n} unsent spans remaining`),this._cleanupOldSpans(r)}clear(){this._finishedSpans=[],this._clearTimeout()}_clearTimeout(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0)}_cleanupOldSpans(e=this._finishedSpans){let r=Date.now()/1e3;this._finishedSpans=e.filter(n=>{let o=WVe(n,r,this._timeout);return ni&&o&&ne.logger.log(`SpanExporter dropping span ${n.name} (${n.spanContext().spanId}) because it is pending for more than 5 minutes.`),!o})}};function HVe(t){let e=wVe(t),r=new Set(e);return kVe(e).forEach(o=>{r.delete(o);let i=o.span,s=KVe(i),a=s.spans||[];o.children.forEach(l=>{AC(l,a,r)}),s.spans=a.length>i4?a.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,i4):a;let u=N.timedEventsToMeasurements(i.events);u&&(s.measurements=u),N.captureEvent(s)}),Array.from(r).map(o=>o.span).filter(o=>!!o)}function FVe(t){return!!t.span&&!t.parentNode}function kVe(t){return t.filter(FVe)}function WVe(t,e,r){let n=e-r;return N.spanTimeInputToSeconds(t.startTime)<n}function YVe(t){let e=t.attributes,r=e[N.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],n=e[N.SEMANTIC_ATTRIBUTE_SENTRY_OP],o=e[N.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return{origin:r,op:n,source:o}}function KVe(t){let{op:e,description:r,data:n,origin:o="manual",source:i}=N4(t),s=N.getCapturedScopesOnSpan(t),a=t.attributes[N.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],u=ne.dropUndefinedKeys({[N.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[N.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:a,[N.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e,[N.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,...n,...C4(t.attributes)}),{traceId:l,spanId:d}=t.spanContext(),p=v4([t,"access",T=>T.spanContext,"call",T=>T(),"access",T=>T.traceState,"optionalAccess",T=>T.get,"call",T=>T($h)]),_=typeof p=="string"?p||void 0:t.parentSpanId,f=y4(t);return{contexts:{trace:ne.dropUndefinedKeys({parent_span_id:_,span_id:d,trace_id:l,data:u,origin:o,op:e,status:N.getStatusMessage(f)}),otel:{resource:t.resource.attributes}},spans:[],start_timestamp:N.spanTimeInputToSeconds(t.startTime),timestamp:N.spanTimeInputToSeconds(t.endTime),transaction:r,type:"transaction",sdkProcessingMetadata:{...ne.dropUndefinedKeys({capturedSpanScope:s.scope,capturedSpanIsolationScope:s.isolationScope,sampleRate:a,dynamicSamplingContext:N.getDynamicSamplingContextFromSpan(t)})},...i&&{transaction_info:{source:i}},_metrics_summary:N.getMetricSummaryJsonForSpan(t)}}function AC(t,e,r){r.delete(t);let n=t.span;if(!n){t.children.forEach(C=>{AC(C,e,r)});return}let i=n.spanContext().spanId,s=n.spanContext().traceId,{attributes:a,startTime:u,endTime:l,parentSpanId:d}=n,{op:p,description:_,data:f,origin:g="manual"}=N4(n),E=ne.dropUndefinedKeys({[N.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:g,[N.SEMANTIC_ATTRIBUTE_SENTRY_OP]:p,...C4(a),...f}),T=y4(n),y=ne.dropUndefinedKeys({span_id:i,trace_id:s,data:E,description:_,parent_span_id:d,start_timestamp:N.spanTimeInputToSeconds(u),timestamp:N.spanTimeInputToSeconds(l)||void 0,status:N.getStatusMessage(T),op:p,origin:g,_metrics_summary:N.getMetricSummaryJsonForSpan(n),measurements:N.timedEventsToMeasurements(n.events)});e.push(y),t.children.forEach(C=>{AC(C,e,r)})}function N4(t){let{op:e,source:r,origin:n}=YVe(t),{op:o,description:i,source:s,data:a}=h4(t),u=e||o,l=r||s,d={...a,...XVe(t)};return{op:u,description:i,source:l,origin:n,data:d}}function C4(t){let e={...t};return delete e[N.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE],delete e[IC],e}function XVe(t){let e=t.attributes,r={};t.kind!==G.SpanKind.INTERNAL&&(r["otel.kind"]=G.SpanKind[t.kind]);let n=e[ue.SEMATTRS_HTTP_STATUS_CODE];n&&(r[ue.ATTR_HTTP_RESPONSE_STATUS_CODE]=n);let o=l4(t);return o.url&&(r.url=o.url),o["http.query"]&&(r["http.query"]=o["http.query"].slice(1)),o["http.fragment"]&&(r["http.fragment"]=o["http.fragment"].slice(1)),r}function M4(t){let e,r=t[0],n=1;for(;n<t.length;){let o=t[n],i=t[n+1];if(n+=2,(o==="optionalAccess"||o==="optionalCall")&&r==null)return;o==="access"||o==="optionalAccess"?(e=r,r=i(r)):(o==="call"||o==="optionalCall")&&(r=i((...s)=>r.call(e,...s)),e=void 0)}return r}function ZVe(t,e){let r=G.trace.getSpan(e),n=Bs(e);r&&!r.spanContext().isRemote&&N.addChildSpanToSpan(r,t),r&&r.spanContext().isRemote&&t.setAttribute(IC,!0),e===G.ROOT_CONTEXT&&(n={scope:N.getDefaultCurrentScope(),isolationScope:N.getDefaultIsolationScope()}),n&&N.setCapturedScopesOnSpan(t,n.scope,n.isolationScope),N.logSpanStart(t);let o=N.getClient();M4([o,"optionalAccess",i=>i.emit,"call",i=>i("spanStart",t)])}function zVe(t){N.logSpanEnd(t);let e=N.getClient();M4([e,"optionalAccess",r=>r.emit,"call",r=>r("spanEnd",t)])}var RC=class{constructor(e){em("SentrySpanProcessor"),this._exporter=new SC(e)}async forceFlush(){this._exporter.flush()}async shutdown(){this._exporter.clear()}onStart(e,r){ZVe(e,r)}onEnd(e){zVe(e),this._exporter.export(e)}},OC=class{constructor(e){this._client=e,em("SentrySampler")}shouldSample(e,r,n,o,i,s){let a=this._client.getOptions(),u=G.trace.getSpan(e),l=Jh([u,"optionalAccess",v=>v.spanContext,"call",v=>v()]);if(!N.hasTracingEnabled(a))return ws({decision:void 0,context:e,spanAttributes:i});let d=i[ue.SEMATTRS_HTTP_METHOD]||i[ue.ATTR_HTTP_REQUEST_METHOD];if(o===G.SpanKind.CLIENT&&d&&(!u||Jh([l,"optionalAccess",v=>v.isRemote])))return ws({decision:void 0,context:e,spanAttributes:i});let p=u?$Ve(u,r,n):void 0,{description:_,data:f,op:g}=E4(n,i,o),E={...f,...i};g&&(E[N.SEMANTIC_ATTRIBUTE_SENTRY_OP]=g);let T={decision:!0};if(this._client.emit("beforeSampling",{spanAttributes:E,spanName:_,parentSampled:p,parentContext:l},T),!T.decision)return ws({decision:void 0,context:e,spanAttributes:i});let[y,C]=N.sampleSpan(a,{name:_,attributes:E,transactionContext:{name:_,parentSampled:p},parentSampled:p}),L={[N.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:C},M=`${d}`.toUpperCase();return M==="OPTIONS"||M==="HEAD"?(ni&&ne.logger.log(`[Tracing] Not sampling span because HTTP method is '${M}' for ${n}`),{...ws({decision:qd.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:L}):y?{...ws({decision:qd.SamplingDecision.RECORD_AND_SAMPLED,context:e,spanAttributes:i}),attributes:L}:{...ws({decision:qd.SamplingDecision.NOT_RECORD,context:e,spanAttributes:i}),attributes:L}}toString(){return"SentrySampler"}};function JVe(t){let e=t.spanContext().traceId,r=NC(t);return r&&e===r.traceId?r.sampled:void 0}function $Ve(t,e,r){let n=t.spanContext();if(G.isSpanContextValid(n)&&n.traceId===e){if(n.isRemote){let i=JVe(t);return ni&&ne.logger.log(`[Tracing] Inheriting remote parent's sampled decision for ${r}: ${i}`),i}let o=Qh(n);return ni&&ne.logger.log(`[Tracing] Inheriting parent's sampled decision for ${r}: ${o}`),o}}function ws({decision:t,context:e,spanAttributes:r}){let n=QVe(e,r);return t==null?{decision:qd.SamplingDecision.NOT_RECORD,traceState:n}:t===qd.SamplingDecision.NOT_RECORD?{decision:t,traceState:n.set(yC,"1")}:{decision:t,traceState:n}}function QVe(t,e){let r=G.trace.getSpan(t),n=Jh([r,"optionalAccess",s=>s.spanContext,"call",s=>s()]),o=Jh([n,"optionalAccess",s=>s.traceState])||new oi.TraceState,i=e[ue.SEMATTRS_HTTP_URL]||e[ue.ATTR_URL_FULL];return i&&typeof i=="string"&&(o=o.set(p4,i)),o}function eBe(...t){dVe.registerInstrumentations({instrumentations:t})}Q.getClient=N.getClient;Q.getCurrentHubShim=N.getCurrentHubShim;Q.getDynamicSamplingContextFromSpan=N.getDynamicSamplingContextFromSpan;Q.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION=s4;Q.SentryPropagator=mC;Q.SentrySampler=OC;Q.SentrySpanProcessor=RC;Q.addOpenTelemetryInstrumentation=eBe;Q.continueTrace=MVe;Q.enhanceDscWithOpenTelemetryRootSpanName=RVe;Q.generateSpanContextForPropagationContext=m4;Q.getActiveSpan=vC;Q.getPropagationContextFromSpan=NC;Q.getRequestSpanData=l4;Q.getScopesFromContext=Bs;Q.getSpanKind=d4;Q.isSentryRequestSpan=hVe;Q.openTelemetrySetupCheck=OVe;Q.setOpenTelemetryContextAsyncContextStrategy=UVe;Q.setupEventContextTrace=DVe;Q.spanHasAttributes=jd;Q.spanHasEvents=pVe;Q.spanHasKind=a4;Q.spanHasName=bC;Q.spanHasParentId=c4;Q.spanHasStatus=u4;Q.startInactiveSpan=O4;Q.startSpan=A4;Q.startSpanManual=R4;Q.suppressTracing=I4;Q.withActiveSpan=CC;Q.wrapClientClass=fVe;Q.wrapContextManagerClass=xVe;Q.wrapSamplingDecision=ws});var be=c(tm=>{Object.defineProperty(tm,"__esModule",{value:!0});var tBe=ao(),UC={};function rBe(t,e){return Object.assign(r=>{let n=UC[t];if(n){r&&n.setConfig(r);return}let o=e(r);UC[t]=o,tBe.addOpenTelemetryInstrumentation(o)},{id:t})}tm.INSTRUMENTED=UC;tm.generateInstrumentOnce=rBe});var Tn=c(xC=>{Object.defineProperty(xC,"__esModule",{value:!0});var nBe=k();function oBe(t,e){t.setAttribute(nBe.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,e)}xC.addOriginToSpan=oBe});var VC=c(wC=>{Object.defineProperty(wC,"__esModule",{value:!0});function iBe(t){let e=t.protocol||"",r=t.hostname||t.host||"",n=!t.port||t.port===80||t.port===443||/^(.*):(\d+)$/.test(r)?"":`:${t.port}`,o=t.path?t.path:"/";return`${e}//${r}${n}${o}`}wC.getRequestUrl=iBe});var L4=c(jC=>{Object.defineProperty(jC,"__esModule",{value:!0});var sBe=ae(),BC=zh(),aBe=pP(),rm=k(),nm=I(),uBe=VC(),qC=class extends BC.InstrumentationBase{constructor(e={}){super("@sentry/instrumentation-http",sBe.VERSION,e)}init(){return[this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new BC.InstrumentationNodeModuleDefinition("http",["*"],e=>{Pu(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=Pu(e,"request",this._getPatchOutgoingRequestFunction());return Pu(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getHttpsInstrumentation(){return new BC.InstrumentationNodeModuleDefinition("https",["*"],e=>{Pu(e.Server.prototype,"emit",this._getPatchIncomingRequestFunction());let r=Pu(e,"request",this._getPatchOutgoingRequestFunction());return Pu(e,"get",this._getPatchOutgoingGetFunction(r)),e},()=>{})}_getPatchIncomingRequestFunction(){let e=this;return r=>function(o,...i){if(o!=="request")return r.apply(this,[o,...i]);e._diag.debug("http instrumentation for incoming request");let s=i[0],a=rm.getIsolationScope().clone();a.setSDKProcessingMetadata({request:s});let u=rm.getClient();u&&u.getOptions().autoSessionTracking&&a.setRequestSession({status:"ok"});let l=(s.method||"GET").toUpperCase(),d=nm.stripUrlQueryAndFragment(s.url||"/"),p=`${l} ${d}`;return a.setTransactionName(p),rm.withIsolationScope(a,()=>r.apply(this,[o,...i]))}}_getPatchOutgoingRequestFunction(){let e=this;return r=>function(...o){e._diag.debug("http instrumentation for outgoing requests");let i=[...o],s=i.shift(),a=typeof i[0]=="object"&&(typeof s=="string"||s instanceof URL)?i.shift():void 0,{optionsParsed:u}=aBe.getRequestInfo(s,a),l=r.apply(this,o);return l.prependListener("response",d=>{let p=e.getConfig().breadcrumbs,_=typeof p>"u"?!0:p,f=e.getConfig().ignoreOutgoingRequests,g=typeof f=="function"?!f(uBe.getRequestUrl(l),u):!0;_&&g&&lBe(l,d)}),l}}_getPatchOutgoingGetFunction(e){return r=>function(...o){let i=e(...o);return i.end(),i}}};function Pu(t,e,r){let n=t[e],o=r(n);return cBe(t,e,o),o}function cBe(t,e,r){let n=!!t[e]&&Object.prototype.propertyIsEnumerable.call(t,e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function lBe(t,e){let r=dBe(t),n=e.statusCode,o=nm.getBreadcrumbLogLevelFromHttpStatusCode(n);rm.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function dBe(t){try{let e=t.getHeader("host")||t.host,r=new URL(t.path,`${t.protocol}//${e}`),n=nm.parseUrl(r.toString()),o={url:nm.getSanitizedUrlString(n),"http.method":t.method||"GET"};return n.search&&(o["http.query"]=n.search),n.hash&&(o["http.fragment"]=n.hash),o}catch{return{}}}jC.SentryHttpInstrumentation=qC});var om=c(Hd=>{var{_optionalChain:qs}=I();Object.defineProperty(Hd,"__esModule",{value:!0});var pBe=(P(),m(b)),_Be=pP(),fBe=k(),gBe=ao(),G4=be(),EBe=Tn(),hBe=VC(),mBe=L4(),HC="Http",D4="@opentelemetry_sentry-patched/instrumentation-http",U4=G4.generateInstrumentOnce(`${HC}.sentry`,t=>new mBe.SentryHttpInstrumentation({breadcrumbs:qs([t,"optionalAccess",e=>e.breadcrumbs]),ignoreOutgoingRequests:qs([t,"optionalAccess",e=>e.ignoreOutgoingRequests])})),x4=G4.generateInstrumentOnce(HC,t=>{let e=new _Be.HttpInstrumentation(t);try{e._diag=pBe.diag.createComponentLogger({namespace:D4}),e.instrumentationName=D4}catch{}return e}),TBe=(t={})=>{if(t.spans!==!1){let e=IBe(t);x4(e)}U4(t)},SBe=(t={})=>({name:HC,setupOnce(){TBe(t)}}),ABe=fBe.defineIntegration(SBe);function RBe(t){return"outputData"in t&&"outputSize"in t&&!("client"in t)&&!("statusCode"in t)}function OBe(t){return t.headers["next-router-prefetch"]==="1"}function IBe(t={}){return{...qs([t,"access",r=>r.instrumentation,"optionalAccess",r=>r._experimentalConfig]),disableIncomingRequestInstrumentation:t.disableIncomingRequestSpans,ignoreOutgoingRequestHook:r=>{let n=hBe.getRequestUrl(r);if(!n)return!1;let o=t.ignoreOutgoingRequests;return!!(o&&o(n,r))},ignoreIncomingRequestHook:r=>{let n=r.url,o=qs([r,"access",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()]);if(o==="OPTIONS"||o==="HEAD")return!0;let i=t.ignoreIncomingRequests;return!!(n&&i&&i(n,r))},requireParentforOutgoingSpans:!1,requireParentforIncomingSpans:!1,requestHook:(r,n)=>{EBe.addOriginToSpan(r,"auto.http.otel.http"),!RBe(n)&&OBe(n)&&r.setAttribute("sentry.http.prefetch",!0),qs([t,"access",o=>o.instrumentation,"optionalAccess",o=>o.requestHook,"optionalCall",o=>o(r,n)])},responseHook:(r,n)=>{let o=gBe.getClient();o&&o.getOptions().autoSessionTracking&&setImmediate(()=>{o._captureRequestSession()}),qs([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.responseHook,"optionalCall",i=>i(r,n)])},applyCustomAttributesOnSpan:(r,n,o)=>{qs([t,"access",i=>i.instrumentation,"optionalAccess",i=>i.applyCustomAttributesOnSpan,"optionalCall",i=>i(r,n,o)])}}}Hd.httpIntegration=ABe;Hd.instrumentOtelHttp=x4;Hd.instrumentSentryHttp=U4});var w4=c(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.PACKAGE_NAME=yu.PACKAGE_VERSION=void 0;yu.PACKAGE_VERSION="0.6.0";yu.PACKAGE_NAME="@opentelemetry/instrumentation-undici"});var V4=c(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.SemanticAttributes=void 0;im.SemanticAttributes={HTTP_CONNECTION_STATE:"http.connection.state",ERROR_TYPE:"error.type",HTTP_REQUEST_BODY_SIZE:"http.request.body.size",HTTP_REQUEST_METHOD:"http.request.method",HTTP_REQUEST_METHOD_ORIGINAL:"http.request.method_original",HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",HTTP_RESPONSE_BODY_SIZE:"http.response.body.size",HTTP_RESPONSE_STATUS_CODE:"http.response.status_code",HTTP_ROUTE:"http.route",NETWORK_PEER_ADDRESS:"network.peer.address",NETWORK_PEER_PORT:"network.peer.port",NETWORK_PROTOCOL_NAME:"network.protocol.name",NETWORK_PROTOCOL_VERSION:"network.protocol.version",SERVER_ADDRESS:"server.address",SERVER_PORT:"server.port",URL_FULL:"url.full",URL_PATH:"url.path",URL_QUERY:"url.query",URL_SCHEME:"url.scheme",USER_AGENT_ORIGINAL:"user_agent.original"}});var q4=c(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.UndiciInstrumentation=void 0;var bBe=require("diagnostics_channel"),PBe=require("url"),Fd=qe(),pr=(P(),m(b)),B4=w4(),je=V4(),sm=ae(),FC=class extends Fd.InstrumentationBase{constructor(e={}){super(B4.PACKAGE_NAME,B4.PACKAGE_VERSION,e),this._recordFromReq=new WeakMap}init(){}disable(){super.disable(),this._channelSubs.forEach(e=>e.channel.unsubscribe(e.onMessage)),this._channelSubs.length=0}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)))}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram("http.client.request.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:pr.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}})}subscribeToChannel(e,r){let n=bBe.channel(e);n.subscribe(r),this._channelSubs.push({name:e,channel:n,onMessage:r})}onRequestCreated({request:e}){let r=this.getConfig(),n=r.enabled!==!1;if((0,Fd.safeExecuteInTheMiddle)(()=>{var v;return!n||e.method==="CONNECT"||((v=r.ignoreRequestHook)===null||v===void 0?void 0:v.call(r,e))},v=>v&&this._diag.error("caught ignoreRequestHook error: ",v),!0))return;let i=(0,sm.hrTime)(),s=new PBe.URL(e.origin+e.path),a=s.protocol.replace(":",""),u=this.getRequestMethod(e.method),l={[je.SemanticAttributes.HTTP_REQUEST_METHOD]:u,[je.SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]:e.method,[je.SemanticAttributes.URL_FULL]:s.toString(),[je.SemanticAttributes.URL_PATH]:s.pathname,[je.SemanticAttributes.URL_QUERY]:s.search,[je.SemanticAttributes.URL_SCHEME]:a},d={https:"443",http:"80"},p=s.hostname,_=s.port||d[a];l[je.SemanticAttributes.SERVER_ADDRESS]=p,_&&!isNaN(Number(_))&&(l[je.SemanticAttributes.SERVER_PORT]=Number(_));let f;if(Array.isArray(e.headers)){let v=e.headers.findIndex(D=>D.toLowerCase()==="user-agent");v>=0&&(f=e.headers[v+1])}else if(typeof e.headers=="string"){let D=e.headers.split(`\r
|
|
27
|
+
`).find(x=>x.toLowerCase().startsWith("user-agent"));f=D&&D.substring(D.indexOf(":")+1).trim()}f&&(l[je.SemanticAttributes.USER_AGENT_ORIGINAL]=f);let g=(0,Fd.safeExecuteInTheMiddle)(()=>{var v;return(v=r.startSpanHook)===null||v===void 0?void 0:v.call(r,e)},v=>v&&this._diag.error("caught startSpanHook error: ",v),!0);g&&Object.entries(g).forEach(([v,D])=>{l[v]=D});let E=pr.context.active(),T=pr.trace.getSpan(E),y;r.requireParentforSpans&&(!T||!pr.trace.isSpanContextValid(T.spanContext()))?y=pr.trace.wrapSpanContext(pr.INVALID_SPAN_CONTEXT):y=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:pr.SpanKind.CLIENT,attributes:l},E),(0,Fd.safeExecuteInTheMiddle)(()=>{var v;return(v=r.requestHook)===null||v===void 0?void 0:v.call(r,y,e)},v=>v&&this._diag.error("caught requestHook error: ",v),!0);let C=pr.trace.setSpan(pr.context.active(),y),L={};pr.propagation.inject(C,L);let M=Object.entries(L);for(let v=0;v<M.length;v++){let[D,x]=M[v];typeof e.addHeader=="function"?e.addHeader(D,x):typeof e.headers=="string"?e.headers+=`${D}: ${x}\r
|
|
28
|
+
`:Array.isArray(e.headers)&&e.headers.push(D,x)}this._recordFromReq.set(e,{span:y,attributes:l,startTime:i})}onRequestHeaders({request:e,socket:r}){var n;let o=this._recordFromReq.get(e);if(!o)return;let i=this.getConfig(),{span:s}=o,{remoteAddress:a,remotePort:u}=r,l={[je.SemanticAttributes.NETWORK_PEER_ADDRESS]:a,[je.SemanticAttributes.NETWORK_PEER_PORT]:u};if(!((n=i.headersToSpanAttributes)===null||n===void 0)&&n.requestHeaders){let d=new Set(i.headersToSpanAttributes.requestHeaders.map(_=>_.toLowerCase())),p=Array.isArray(e.headers)?e.headers:e.headers.split(`\r
|
|
29
|
+
`);p.forEach((_,f)=>{let g=_.indexOf(":"),E=g!==-1,T=(E?_.substring(0,g):_).toLowerCase(),y=E?_.substring(g+1):p[f+1];d.has(T)&&(l[`http.request.header.${T}`]=y.trim())})}s.setAttributes(l)}onResponseHeaders({request:e,response:r}){var n,o;let i=this._recordFromReq.get(e);if(!i)return;let{span:s,attributes:a}=i,u={[je.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE]:r.statusCode},l=this.getConfig();(0,Fd.safeExecuteInTheMiddle)(()=>{var p;return(p=l.responseHook)===null||p===void 0?void 0:p.call(l,s,{request:e,response:r})},p=>p&&this._diag.error("caught responseHook error: ",p),!0);let d=new Set;!((n=l.headersToSpanAttributes)===null||n===void 0)&&n.responseHeaders&&((o=l.headersToSpanAttributes)===null||o===void 0||o.responseHeaders.forEach(p=>d.add(p.toLowerCase())));for(let p=0;p<r.headers.length;p=p+2){let _=r.headers[p].toString().toLowerCase(),f=r.headers[p+1];if(d.has(_)&&(u[`http.response.header.${_}`]=f.toString()),_==="content-length"){let g=Number(f.toString());isNaN(g)||(u["http.response.header.content-length"]=g)}}s.setAttributes(u),s.setStatus({code:r.statusCode>=400?pr.SpanStatusCode.ERROR:pr.SpanStatusCode.UNSET}),i.attributes=Object.assign(a,u)}onDone({request:e}){let r=this._recordFromReq.get(e);if(!r)return;let{span:n,attributes:o,startTime:i}=r;n.end(),this._recordFromReq.delete(e),this.recordRequestDuration(o,i)}onError({request:e,error:r}){let n=this._recordFromReq.get(e);if(!n)return;let{span:o,attributes:i,startTime:s}=n;o.recordException(r),o.setStatus({code:pr.SpanStatusCode.ERROR,message:r.message}),o.end(),this._recordFromReq.delete(e),i[je.SemanticAttributes.ERROR_TYPE]=r.message,this.recordRequestDuration(i,s)}recordRequestDuration(e,r){let n={};[je.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE,je.SemanticAttributes.HTTP_REQUEST_METHOD,je.SemanticAttributes.SERVER_ADDRESS,je.SemanticAttributes.SERVER_PORT,je.SemanticAttributes.URL_SCHEME,je.SemanticAttributes.ERROR_TYPE].forEach(s=>{s in e&&(n[s]=e[s])});let i=(0,sm.hrTimeToMilliseconds)((0,sm.hrTimeDuration)(r,(0,sm.hrTime)()))/1e3;this._httpClientDurationHistogram.record(i,n)}getRequestMethod(e){let r={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0};return e.toUpperCase()in r?e.toUpperCase():"_OTHER"}};am.UndiciInstrumentation=FC});var H4=c(j4=>{"use strict";Object.defineProperty(j4,"__esModule",{value:!0})});var k4=c(ii=>{"use strict";var yBe=ii&&ii.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),F4=ii&&ii.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yBe(e,t,r)};Object.defineProperty(ii,"__esModule",{value:!0});F4(q4(),ii);F4(H4(),ii)});var KC=c(YC=>{var{_optionalChain:vBe}=I();Object.defineProperty(YC,"__esModule",{value:!0});var um=(P(),m(b)),NBe=k4(),kd=k(),kC=ao(),WC=I(),CBe=(t={})=>{let e=typeof t.breadcrumbs>"u"?!0:t.breadcrumbs,r=t.ignoreOutgoingRequests;return{name:"NodeFetch",setupOnce(){let n=new NBe.UndiciInstrumentation({requireParentforSpans:!1,ignoreRequestHook:o=>{let i=GBe(o.origin,o.path);if(r&&i&&r(i))return!0;if(!kd.hasTracingEnabled()){let a=um.context.active(),u={},l=um.trace.getSpan(a),d=l?kC.getPropagationContextFromSpan(l):kd.getCurrentScope().getPropagationContext(),p=kC.generateSpanContextForPropagationContext(d);p.traceState=vBe([p,"access",g=>g.traceState,"optionalAccess",g=>g.set,"call",g=>g("sentry.url",i)]);let _=um.trace.setSpanContext(a,p);um.propagation.inject(_,u);let f=o.headers;return Array.isArray(f)?Object.entries(u).forEach(g=>f.push(...g)):o.headers+=Object.entries(u).map(([g,E])=>`${g}: ${E}\r
|
|
30
|
+
`).join(""),!0}return!1},startSpanHook:()=>({[kd.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.node_fetch"}),responseHook:(o,{request:i,response:s})=>{e&&LBe(i,s)}});kC.addOpenTelemetryInstrumentation(n)}}},MBe=kd.defineIntegration(CBe);function LBe(t,e){let r=DBe(t),n=e.statusCode,o=WC.getBreadcrumbLogLevelFromHttpStatusCode(n);kd.addBreadcrumb({category:"http",data:{status_code:n,...r},type:"http",level:o},{event:"response",request:t,response:e})}function DBe(t){try{let e=new URL(t.path,t.origin),r=WC.parseUrl(e.toString()),n={url:WC.getSanitizedUrlString(r),"http.method":t.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return{}}}function GBe(t,e="/"){let r=`${t}`;return r.endsWith("/")&&e.startsWith("/")?`${r}${e.slice(1)}`:!r.endsWith("/")&&!e.startsWith("/")?`${r}/${e.slice(1)}`:`${r}${e}`}YC.nativeNodeFetchIntegration=MBe});var W4=c(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.SeverityNumber=void 0;var UBe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(UBe=Wd.SeverityNumber||(Wd.SeverityNumber={}))});var lm=c(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.NOOP_LOGGER=vu.NoopLogger=void 0;var cm=class{emit(e){}};vu.NoopLogger=cm;vu.NOOP_LOGGER=new cm});var pm=c(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.NOOP_LOGGER_PROVIDER=Nu.NoopLoggerProvider=void 0;var xBe=lm(),dm=class{getLogger(e,r,n){return new xBe.NoopLogger}};Nu.NoopLoggerProvider=dm;Nu.NOOP_LOGGER_PROVIDER=new dm});var ZC=c(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.ProxyLogger=void 0;var wBe=lm(),XC=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):wBe.NOOP_LOGGER}};_m.ProxyLogger=XC});var JC=c(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.ProxyLoggerProvider=void 0;var VBe=pm(),BBe=ZC(),zC=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new BBe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:VBe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};fm.ProxyLoggerProvider=zC});var Y4=c(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm._globalThis=void 0;gm._globalThis=typeof globalThis=="object"?globalThis:global});var K4=c(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em._globalThis=void 0;var qBe=Y4();Object.defineProperty(Em,"_globalThis",{enumerable:!0,get:function(){return qBe._globalThis}})});var X4=c(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm._globalThis=void 0;var jBe=K4();Object.defineProperty(hm,"_globalThis",{enumerable:!0,get:function(){return jBe._globalThis}})});var Z4=c(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.API_BACKWARDS_COMPATIBILITY_VERSION=Sn.makeGetter=Sn._global=Sn.GLOBAL_LOGS_API_KEY=void 0;var HBe=X4();Sn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Sn._global=HBe._globalThis;function FBe(t,e,r){return n=>n===t?e:r}Sn.makeGetter=FBe;Sn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var J4=c(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.LogsAPI=void 0;var vr=Z4(),kBe=pm(),z4=JC(),$C=class t{constructor(){this._proxyLoggerProvider=new z4.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return vr._global[vr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(vr._global[vr.GLOBAL_LOGS_API_KEY]=(0,vr.makeGetter)(vr.API_BACKWARDS_COMPATIBILITY_VERSION,e,kBe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=vr._global[vr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(vr._global,vr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete vr._global[vr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new z4.ProxyLoggerProvider}};mm.LogsAPI=$C});var QC=c(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.logs=Qe.ProxyLoggerProvider=Qe.ProxyLogger=Qe.NoopLoggerProvider=Qe.NOOP_LOGGER_PROVIDER=Qe.NoopLogger=Qe.NOOP_LOGGER=Qe.SeverityNumber=void 0;var WBe=W4();Object.defineProperty(Qe,"SeverityNumber",{enumerable:!0,get:function(){return WBe.SeverityNumber}});var $4=lm();Object.defineProperty(Qe,"NOOP_LOGGER",{enumerable:!0,get:function(){return $4.NOOP_LOGGER}});Object.defineProperty(Qe,"NoopLogger",{enumerable:!0,get:function(){return $4.NoopLogger}});var Q4=pm();Object.defineProperty(Qe,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Q4.NOOP_LOGGER_PROVIDER}});Object.defineProperty(Qe,"NoopLoggerProvider",{enumerable:!0,get:function(){return Q4.NoopLoggerProvider}});var YBe=ZC();Object.defineProperty(Qe,"ProxyLogger",{enumerable:!0,get:function(){return YBe.ProxyLogger}});var KBe=JC();Object.defineProperty(Qe,"ProxyLoggerProvider",{enumerable:!0,get:function(){return KBe.ProxyLoggerProvider}});var XBe=J4();Qe.logs=XBe.LogsAPI.getInstance()});var eJ=c(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.disableInstrumentations=Cu.enableInstrumentations=void 0;function ZBe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Cu.enableInstrumentations=ZBe;function zBe(t){t.forEach(e=>e.disable())}Cu.disableInstrumentations=zBe});var nJ=c(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.registerInstrumentations=void 0;var tJ=(P(),m(b)),JBe=QC(),rJ=eJ();function $Be(t){var e,r;let n=t.tracerProvider||tJ.trace.getTracerProvider(),o=t.meterProvider||tJ.metrics.getMeterProvider(),i=t.loggerProvider||JBe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,rJ.enableInstrumentations)(s,n,o,i),()=>{(0,rJ.disableInstrumentations)(s)}}Tm.registerInstrumentations=$Be});var oJ=c(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.InstrumentationAbstract=void 0;var eM=(P(),m(b)),QBe=QC(),Sm=Le(),tM=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Sm.wrap,this._unwrap=Sm.unwrap,this._massWrap=Sm.massWrap,this._massUnwrap=Sm.massUnwrap,this.setConfig(n),this._diag=eM.diag.createComponentLogger({namespace:e}),this._tracer=eM.trace.getTracer(e,r),this._meter=eM.metrics.getMeter(e,r),this._logger=QBe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};Am.InstrumentationAbstract=tM});var iJ=c(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.ModuleNameTrie=si.ModuleNameSeparator=void 0;si.ModuleNameSeparator="/";var Rm=class{constructor(){this.hooks=[],this.children=new Map}},rM=class{constructor(){this._trie=new Rm,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(si.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new Rm,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(si.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};si.ModuleNameTrie=rM});var aJ=c(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.RequireInTheMiddleSingleton=void 0;var eqe=Ge(),sJ=require("path"),nM=iJ(),tqe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),oM=class t{constructor(){this._moduleNameTrie=new nM.ModuleNameTrie,this._initialize()}_initialize(){new eqe.Hook(null,{internals:!0},(e,r,n)=>{let o=rqe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return tqe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};Om.RequireInTheMiddleSingleton=oM;function rqe(t){return sJ.sep!==nM.ModuleNameSeparator?t.split(sJ.sep).join(nM.ModuleNameSeparator):t}});var iM=c(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.isWrapped=ai.safeExecuteInTheMiddleAsync=ai.safeExecuteInTheMiddle=void 0;function nqe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ai.safeExecuteInTheMiddle=nqe;async function oqe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}ai.safeExecuteInTheMiddleAsync=oqe;function iqe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}ai.isWrapped=iqe});var lJ=c(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.InstrumentationBase=void 0;var sM=require("path"),uJ=require("util"),sqe=Tr(),aM=Le(),aqe=oJ(),uqe=aJ(),cqe=Rr(),Yd=(P(),m(b)),lqe=Ge(),dqe=require("fs"),pqe=iM(),uM=class extends aqe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=uqe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,pqe.isWrapped)(i[s])&&this._unwrap(i,s),uJ.types.isProxy(i)){let u=(0,aM.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,aM.wrap)(i,s,a)},this._unwrap=(i,s)=>uJ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,aM.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Yd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Yd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Yd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Yd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,dqe.readFileSync)(sM.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Yd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return cJ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=sM.normalize(n);return a.filter(d=>d.name===u).filter(d=>cJ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=sM.isAbsolute(e.name)?new lqe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new cqe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};Im.InstrumentationBase=uM;function cJ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,sqe.satisfies)(e,n,{includePrerelease:r}))}});var dJ=c(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.normalize=void 0;var _qe=require("path");Object.defineProperty(bm,"normalize",{enumerable:!0,get:function(){return _qe.normalize}})});var pJ=c(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.normalize=Mu.InstrumentationBase=void 0;var fqe=lJ();Object.defineProperty(Mu,"InstrumentationBase",{enumerable:!0,get:function(){return fqe.InstrumentationBase}});var gqe=dJ();Object.defineProperty(Mu,"normalize",{enumerable:!0,get:function(){return gqe.normalize}})});var cM=c(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.normalize=Lu.InstrumentationBase=void 0;var _J=pJ();Object.defineProperty(Lu,"InstrumentationBase",{enumerable:!0,get:function(){return _J.InstrumentationBase}});Object.defineProperty(Lu,"normalize",{enumerable:!0,get:function(){return _J.normalize}})});var fJ=c(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.InstrumentationNodeModuleDefinition=void 0;var lM=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};Pm.InstrumentationNodeModuleDefinition=lM});var gJ=c(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.InstrumentationNodeModuleFile=void 0;var Eqe=cM(),dM=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,Eqe.normalize)(e)}};ym.InstrumentationNodeModuleFile=dM});var EJ=c(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.safeExecuteInTheMiddleAsync=Ct.safeExecuteInTheMiddle=Ct.isWrapped=Ct.InstrumentationNodeModuleFile=Ct.InstrumentationNodeModuleDefinition=Ct.InstrumentationBase=Ct.registerInstrumentations=void 0;var hqe=nJ();Object.defineProperty(Ct,"registerInstrumentations",{enumerable:!0,get:function(){return hqe.registerInstrumentations}});var mqe=cM();Object.defineProperty(Ct,"InstrumentationBase",{enumerable:!0,get:function(){return mqe.InstrumentationBase}});var Tqe=fJ();Object.defineProperty(Ct,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return Tqe.InstrumentationNodeModuleDefinition}});var Sqe=gJ();Object.defineProperty(Ct,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return Sqe.InstrumentationNodeModuleFile}});var pM=iM();Object.defineProperty(Ct,"isWrapped",{enumerable:!0,get:function(){return pM.isWrapped}});Object.defineProperty(Ct,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return pM.safeExecuteInTheMiddle}});Object.defineProperty(Ct,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return pM.safeExecuteInTheMiddleAsync}})});var hJ=c(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.PACKAGE_NAME=Du.PACKAGE_VERSION=void 0;Du.PACKAGE_VERSION="0.16.0";Du.PACKAGE_NAME="@opentelemetry/instrumentation-fs"});var mJ=c(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.SYNC_FUNCTIONS=ui.CALLBACK_FUNCTIONS=ui.PROMISE_FUNCTIONS=void 0;ui.PROMISE_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];ui.CALLBACK_FUNCTIONS=["access","appendFile","chmod","chown","copyFile","cp","exists","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"];ui.SYNC_FUNCTIONS=["accessSync","appendFileSync","chmodSync","chownSync","copyFileSync","cpSync","existsSync","lchownSync","linkSync","lstatSync","lutimesSync","mkdirSync","mkdtempSync","opendirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","renameSync","rmdirSync","rmSync","statSync","symlinkSync","truncateSync","unlinkSync","utimesSync","writeFileSync"]});var SJ=c(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.indexFs=Gu.splitTwoLevels=void 0;function TJ(t){let e=t.split(".");if(e.length>1){if(e.length!==2)throw Error(`Invalid member function name ${t}`);return e}else return[t]}Gu.splitTwoLevels=TJ;function Aqe(t,e){if(!e)throw new Error(JSON.stringify({member:e}));let r=TJ(e),[n,o]=r;return o?{objectToPatch:t[n],functionNameToPatch:o}:{objectToPatch:t,functionNameToPatch:n}}Gu.indexFs=Aqe});var RJ=c(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.FsInstrumentation=void 0;var Re=(P(),m(b)),uo=ae(),Xr=EJ(),AJ=hJ(),ci=mJ(),Rqe=require("util"),vm=SJ();function Nm(t,e){return Object.assign(t,e)}var _M=class extends Xr.InstrumentationBase{constructor(e={}){super(AJ.PACKAGE_NAME,AJ.PACKAGE_VERSION,e)}init(){return[new Xr.InstrumentationNodeModuleDefinition("fs",["*"],e=>{for(let r of ci.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Xr.isWrapped)(n[o])&&this._unwrap(n,o),this._wrap(n,o,this._patchSyncFunction.bind(this,r))}for(let r of ci.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);if((0,Xr.isWrapped)(n[o])&&this._unwrap(n,o),r==="exists"){this._wrap(n,o,this._patchExistsCallbackFunction.bind(this,r));continue}this._wrap(n,o,this._patchCallbackFunction.bind(this,r))}for(let r of ci.PROMISE_FUNCTIONS)(0,Xr.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r),this._wrap(e.promises,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0){for(let r of ci.SYNC_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Xr.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of ci.CALLBACK_FUNCTIONS){let{objectToPatch:n,functionNameToPatch:o}=(0,vm.indexFs)(e,r);(0,Xr.isWrapped)(n[o])&&this._unwrap(n,o)}for(let r of ci.PROMISE_FUNCTIONS)(0,Xr.isWrapped)(e.promises[r])&&this._unwrap(e.promises,r)}}),new Xr.InstrumentationNodeModuleDefinition("fs/promises",["*"],e=>{for(let r of ci.PROMISE_FUNCTIONS)(0,Xr.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,this._patchPromiseFunction.bind(this,r));return e},e=>{if(e!==void 0)for(let r of ci.PROMISE_FUNCTIONS)(0,Xr.isWrapped)(e[r])&&this._unwrap(e,r)})]}_patchSyncFunction(e,r){let n=this;return Nm(function(...i){let s=Re.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Re.context.with((0,uo.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=Re.context.with((0,uo.suppressTracing)(Re.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Re.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_patchCallbackFunction(e,r){let n=this;return Nm(function(...i){let s=Re.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Re.context.with((0,uo.suppressTracing)(s),r,this,...i);let a=i.length-1,u=i[a];if(typeof u=="function"){let l=n.tracer.startSpan(`fs ${e}`);i[a]=Re.context.bind(s,function(d){return d&&(l.recordException(d),l.setStatus({message:d.message,code:Re.SpanStatusCode.ERROR})),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),u.apply(this,arguments)});try{return Re.context.with((0,uo.suppressTracing)(Re.trace.setSpan(s,l)),r,this,...i)}catch(d){throw l.recordException(d),l.setStatus({message:d.message,code:Re.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:l,error:d}),l.end(),d}}else return r.apply(this,i)},r)}_patchExistsCallbackFunction(e,r){let n=this,i=Nm(function(...a){let u=Re.context.active();if(!n._shouldTrace(u))return r.apply(this,a);if(n._runCreateHook(e,{args:a})===!1)return Re.context.with((0,uo.suppressTracing)(u),r,this,...a);let l=a.length-1,d=a[l];if(typeof d=="function"){let p=n.tracer.startSpan(`fs ${e}`);a[l]=Re.context.bind(u,function(){return n._runEndHook(e,{args:a,span:p}),p.end(),d.apply(this,arguments)});try{return Re.context.with((0,uo.suppressTracing)(Re.trace.setSpan(u,p)),r,this,...a)}catch(_){throw p.recordException(_),p.setStatus({message:_.message,code:Re.SpanStatusCode.ERROR}),n._runEndHook(e,{args:a,span:p,error:_}),p.end(),_}}else return r.apply(this,a)},r),s=function(a){return new Promise(u=>i(a,u))};return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(i,Rqe.promisify.custom,{value:s}),i}_patchPromiseFunction(e,r){let n=this;return Nm(async function(...i){let s=Re.context.active();if(!n._shouldTrace(s))return r.apply(this,i);if(n._runCreateHook(e,{args:i})===!1)return Re.context.with((0,uo.suppressTracing)(s),r,this,...i);let a=n.tracer.startSpan(`fs ${e}`);try{let u=await Re.context.with((0,uo.suppressTracing)(Re.trace.setSpan(s,a)),r,this,...i);return n._runEndHook(e,{args:i,span:a}),u}catch(u){throw a.recordException(u),a.setStatus({message:u.message,code:Re.SpanStatusCode.ERROR}),n._runEndHook(e,{args:i,span:a,error:u}),u}finally{a.end()}},r)}_runCreateHook(...e){let{createHook:r}=this.getConfig();if(typeof r=="function")try{return r(...e)}catch(n){this._diag.error("caught createHook error",n)}return!0}_runEndHook(...e){let{endHook:r}=this.getConfig();if(typeof r=="function")try{r(...e)}catch(n){this._diag.error("caught endHook error",n)}}_shouldTrace(e){if((0,uo.isTracingSuppressed)(e))return!1;let{requireParentSpan:r}=this.getConfig();return!(r&&Re.trace.getSpan(e)==null)}};Cm.FsInstrumentation=_M});var IJ=c(OJ=>{"use strict";Object.defineProperty(OJ,"__esModule",{value:!0})});var PJ=c(li=>{"use strict";var Oqe=li&&li.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),bJ=li&&li.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Oqe(e,t,r)};Object.defineProperty(li,"__esModule",{value:!0});bJ(RJ(),li);bJ(IJ(),li)});var vJ=c(gM=>{Object.defineProperty(gM,"__esModule",{value:!0});var Iqe=PJ(),fM=k(),bqe=be(),yJ="FileSystem",Pqe=fM.defineIntegration((t={})=>({name:yJ,setupOnce(){bqe.generateInstrumentOnce(yJ,()=>new Iqe.FsInstrumentation({requireParentSpan:!0,endHook(e,{args:r,span:n,error:o}){n.updateName(`fs.${e}`),n.setAttributes({[fM.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"file",[fM.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.file.fs"}),t.recordErrorMessagesAsSpanAttributes&&(typeof r[0]=="string"&&Lqe.includes(e)?n.setAttribute("path_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&Mqe.includes(e)?(n.setAttribute("target_argument",r[0]),n.setAttribute("path_argument",r[1])):typeof r[0]=="string"&&Cqe.includes(e)?n.setAttribute("prefix_argument",r[0]):typeof r[0]=="string"&&typeof r[1]=="string"&&Nqe.includes(e)?(n.setAttribute("existing_path_argument",r[0]),n.setAttribute("new_path_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&vqe.includes(e)?(n.setAttribute("src_argument",r[0]),n.setAttribute("dest_argument",r[1])):typeof r[0]=="string"&&typeof r[1]=="string"&&yqe.includes(e)&&(n.setAttribute("old_path_argument",r[0]),n.setAttribute("new_path_argument",r[1]))),o&&t.recordErrorMessagesAsSpanAttributes&&n.setAttribute("fs_error",o.message)}}))()}})),yqe=["rename","renameSync"],vqe=["copyFile","cp","copyFileSync","cpSync"],Nqe=["link","linkSync"],Cqe=["mkdtemp","mkdtempSync"],Mqe=["symlink","symlinkSync"],Lqe=["access","appendFile","chmod","chown","exists","mkdir","lchown","lstat","lutimes","open","opendir","readdir","readFile","readlink","realpath","realpath.native","rm","rmdir","stat","truncate","unlink","utimes","writeFile","accessSync","appendFileSync","chmodSync","chownSync","existsSync","lchownSync","lstatSync","lutimesSync","opendirSync","mkdirSync","openSync","readdirSync","readFileSync","readlinkSync","realpathSync","realpathSync.native","rmdirSync","rmSync","statSync","truncateSync","unlinkSync","utimesSync","writeFileSync"];gM.fsIntegration=Pqe});var TM=c(mM=>{Object.defineProperty(mM,"__esModule",{value:!0});var Dqe=require("node:util"),EM=k(),hM=I(),Gqe="Console",Uqe=EM.defineIntegration(()=>({name:Gqe,setup(t){hM.addConsoleInstrumentationHandler(({args:e,level:r})=>{EM.getClient()===t&&EM.addBreadcrumb({category:"console",level:hM.severityLevelFromString(r),message:hM.truncate(Dqe.format.apply(void 0,e),2048)},{input:[...e],level:r})})}}));mM.consoleIntegration=Uqe});var SM=c(js=>{var{_optionalChain:Zr}=I();Object.defineProperty(js,"__esModule",{value:!0});var xqe=require("node:child_process"),CJ=require("node:fs"),Nr=require("node:os"),wqe=require("node:path"),MJ=require("node:util"),Vqe=k(),LJ=MJ.promisify(CJ.readFile),DJ=MJ.promisify(CJ.readdir),Bqe="Context",qqe=(t={})=>{let e,r={app:!0,os:!0,device:!0,culture:!0,cloudResource:!0,...t};async function n(i){e===void 0&&(e=o());let s=Hqe(await e);return i.contexts={...i.contexts,app:{...s.app,...Zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.app])},os:{...s.os,...Zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.os])},device:{...s.device,...Zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.device])},culture:{...s.culture,...Zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.culture])},cloud_resource:{...s.cloud_resource,...Zr([i,"access",a=>a.contexts,"optionalAccess",a=>a.cloud_resource])}},i}async function o(){let i={};if(r.os&&(i.os=await Fqe()),r.app&&(i.app=GJ()),r.device&&(i.device=UJ(r.device)),r.culture){let s=kqe();s&&(i.culture=s)}return r.cloudResource&&(i.cloud_resource=zqe()),i}return{name:Bqe,processEvent(i){return n(i)}}},jqe=Vqe.defineIntegration(qqe);function Hqe(t){if(Zr([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.app_memory])&&(t.app.app_memory=process.memoryUsage().rss),Zr([t,"optionalAccess",e=>e.app,"optionalAccess",e=>e.free_memory])&&typeof process.availableMemory=="function"){let e=Zr([process,"access",r=>r.availableMemory,"optionalCall",r=>r()]);e!=null&&(t.app.free_memory=e)}return Zr([t,"optionalAccess",e=>e.device,"optionalAccess",e=>e.free_memory])&&(t.device.free_memory=Nr.freemem()),t}async function Fqe(){let t=Nr.platform();switch(t){case"darwin":return Xqe();case"linux":return Zqe();default:return{name:Wqe[t]||t,version:Nr.release()}}}function kqe(){try{if(typeof process.versions.icu!="string")return;let t=new Date(9e8);if(new Intl.DateTimeFormat("es",{month:"long"}).format(t)==="enero"){let r=Intl.DateTimeFormat().resolvedOptions();return{locale:r.locale,timezone:r.timeZone}}}catch{}}function GJ(){let t=process.memoryUsage().rss,r={app_start_time:new Date(Date.now()-process.uptime()*1e3).toISOString(),app_memory:t};if(typeof process.availableMemory=="function"){let n=Zr([process,"access",o=>o.availableMemory,"optionalCall",o=>o()]);n!=null&&(r.free_memory=n)}return r}function UJ(t){let e={},r;try{r=Nr.uptime&&Nr.uptime()}catch{}if(typeof r=="number"&&(e.boot_time=new Date(Date.now()-r*1e3).toISOString()),e.arch=Nr.arch(),(t===!0||t.memory)&&(e.memory_size=Nr.totalmem(),e.free_memory=Nr.freemem()),t===!0||t.cpu){let n=Nr.cpus(),o=n&&n[0];o&&(e.processor_count=n.length,e.cpu_description=o.model,e.processor_frequency=o.speed)}return e}var Wqe={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},Yqe=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],Kqe={alpine:t=>t,arch:t=>An(/distrib_release=(.*)/,t),centos:t=>An(/release ([^ ]+)/,t),debian:t=>t,fedora:t=>An(/release (..)/,t),mint:t=>An(/distrib_release=(.*)/,t),red:t=>An(/release ([^ ]+)/,t),suse:t=>An(/VERSION = (.*)\n/,t),ubuntu:t=>An(/distrib_release=(.*)/,t)};function An(t,e){let r=t.exec(e);return r?r[1]:void 0}async function Xqe(){let t={kernel_version:Nr.release(),name:"Mac OS X",version:`10.${Number(Nr.release().split(".")[0])-4}`};try{let e=await new Promise((r,n)=>{xqe.execFile("/usr/bin/sw_vers",(o,i)=>{if(o){n(o);return}r(i)})});t.name=An(/^ProductName:\s+(.*)$/m,e),t.version=An(/^ProductVersion:\s+(.*)$/m,e),t.build=An(/^BuildVersion:\s+(.*)$/m,e)}catch{}return t}function NJ(t){return t.split(" ")[0].toLowerCase()}async function Zqe(){let t={kernel_version:Nr.release(),name:"Linux"};try{let e=await DJ("/etc"),r=Yqe.find(a=>e.includes(a.name));if(!r)return t;let n=wqe.join("/etc",r.name),o=(await LJ(n,{encoding:"utf-8"})).toLowerCase(),{distros:i}=r;t.name=i.find(a=>o.indexOf(NJ(a))>=0)||i[0];let s=NJ(t.name);t.version=Zr([Kqe,"access",a=>a[s],"optionalCall",a=>a(o)])}catch{}return t}function zqe(){return process.env.VERCEL?{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}:process.env.AWS_REGION?{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}:process.env.GCP_PROJECT?{"cloud.provider":"gcp"}:process.env.ALIYUN_REGION_ID?{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}:process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME?{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}:process.env.IBM_CLOUD_REGION?{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}:process.env.TENCENTCLOUD_REGION?{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}:process.env.NETLIFY?{"cloud.provider":"netlify"}:process.env.FLY_REGION?{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}:process.env.DYNO?{"cloud.provider":"heroku"}:void 0}js.getAppContext=GJ;js.getDeviceContext=UJ;js.nodeContextIntegration=jqe;js.readDirAsync=DJ;js.readFileAsync=LJ});var Rn=c(AM=>{Object.defineProperty(AM,"__esModule",{value:!0});var Jqe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;AM.DEBUG_BUILD=Jqe});var OM=c(Hs=>{var{_optionalChain:Mm}=I();Object.defineProperty(Hs,"__esModule",{value:!0});var $qe=require("node:fs"),Qqe=require("node:readline"),eje=k(),di=I(),Kd=Rn(),RM=new di.LRUMap(10),VJ=new di.LRUMap(20),tje=7,rje="ContextLines",BJ=1e3,qJ=1e4;function nje(t,e,r){let n=t.get(e);return n===void 0?(t.set(e,r),r):n}function oje(t){return!!(t.startsWith("node:")||t.endsWith(".min.js")||t.endsWith(".min.cjs")||t.endsWith(".min.mjs")||t.startsWith("data:"))}function ije(t){return t.lineno!==void 0&&t.lineno>qJ||t.colno!==void 0&&t.colno>BJ}function sje(t,e){let r=RM.get(t);if(r===void 0)return!1;for(let n=e[0];n<=e[1];n++)if(r[n]===void 0)return!1;return!0}function aje(t,e){if(!t.length)return[];let r=0,n=t[0];if(typeof n!="number")return[];let o=wJ(n,e),i=[];for(;;){if(r===t.length-1){i.push(o);break}let s=t[r+1];if(typeof s!="number")break;s<=o[1]?o[1]=s+e:(i.push(o),o=wJ(s,e)),r++}return i}function uje(t,e,r){return new Promise((n,o)=>{let i=$qe.createReadStream(t),s=Qqe.createInterface({input:i}),a=0,u=0,l=e[u];if(l===void 0){n();return}let d=l[0],p=l[1];function _(f){VJ.set(t,1),Kd.DEBUG_BUILD&&di.logger.error(`Failed to read file: ${t}. Error: ${f}`),s.close(),s.removeAllListeners(),n()}i.on("error",_),s.on("error",_),s.on("close",n),s.on("line",f=>{if(a++,!(a<d)&&(r[a]=di.snipLine(f,0),a>=p)){if(u===e.length-1){s.close(),s.removeAllListeners();return}u++;let g=e[u];if(g===void 0){s.close(),s.removeAllListeners();return}d=g[0],p=g[1]}})})}async function cje(t,e){let r={};if(e>0&&Mm([t,"access",i=>i.exception,"optionalAccess",i=>i.values])){for(let i of t.exception.values)if(Mm([i,"access",s=>s.stacktrace,"optionalAccess",s=>s.frames,"optionalAccess",s=>s.length]))for(let s=i.stacktrace.frames.length-1;s>=0;s--){let a=i.stacktrace.frames[s],u=Mm([a,"optionalAccess",d=>d.filename]);if(!a||typeof u!="string"||typeof a.lineno!="number"||oje(u)||ije(a))continue;r[u]||(r[u]=[]),r[u].push(a.lineno)}}let n=Object.keys(r);if(n.length==0)return t;let o=[];for(let i of n){if(VJ.get(i))continue;let s=r[i];if(!s)continue;s.sort((l,d)=>l-d);let a=aje(s,e);if(a.every(l=>sje(i,l)))continue;let u=nje(RM,i,{});o.push(uje(i,a,u))}if(await Promise.all(o).catch(()=>{Kd.DEBUG_BUILD&&di.logger.log("Failed to read one or more source files and resolve context lines")}),e>0&&Mm([t,"access",i=>i.exception,"optionalAccess",i=>i.values]))for(let i of t.exception.values)i.stacktrace&&i.stacktrace.frames&&i.stacktrace.frames.length>0&&lje(i.stacktrace.frames,e,RM);return t}function lje(t,e,r){for(let n of t)if(n.filename&&n.context_line===void 0&&typeof n.lineno=="number"){let o=r.get(n.filename);if(o===void 0)continue;jJ(n.lineno,n,e,o)}}function xJ(t){delete t.pre_context,delete t.context_line,delete t.post_context}function jJ(t,e,r,n){if(e.lineno===void 0||n===void 0){Kd.DEBUG_BUILD&&di.logger.error("Cannot resolve context for frame with no lineno or file contents");return}e.pre_context=[];for(let i=HJ(t,r);i<t;i++){let s=n[i];if(s===void 0){xJ(e),Kd.DEBUG_BUILD&&di.logger.error(`Could not find line ${i} in file ${e.filename}`);return}e.pre_context.push(s)}if(n[t]===void 0){xJ(e),Kd.DEBUG_BUILD&&di.logger.error(`Could not find line ${t} in file ${e.filename}`);return}e.context_line=n[t];let o=FJ(t,r);e.post_context=[];for(let i=t+1;i<=o;i++){let s=n[i];if(s===void 0)break;e.post_context.push(s)}}function HJ(t,e){return Math.max(1,t-e)}function FJ(t,e){return t+e}function wJ(t,e){return[HJ(t,e),FJ(t,e)]}var kJ=(t={})=>{let e=t.frameContextLines!==void 0?t.frameContextLines:tje;return{name:rje,processEvent(r){return cje(r,e)}}},dje=eje.defineIntegration(kJ);Hs.MAX_CONTEXTLINES_COLNO=BJ;Hs.MAX_CONTEXTLINES_LINENO=qJ;Hs._contextLinesIntegration=kJ;Hs.addContextToFrame=jJ;Hs.contextLinesIntegration=dje});var Dm=c(Lm=>{Object.defineProperty(Lm,"__esModule",{value:!0});var pje=I(),WJ=pje.parseSemver(process.versions.node),_je=WJ.major;Lm.NODE_MAJOR=_je;Lm.NODE_VERSION=WJ});var bM=c(Uu=>{Object.defineProperty(Uu,"__esModule",{value:!0});var fje="__SENTRY_ERROR_LOCAL_VARIABLES__";function gje(t,e,r){let n=0,o=5,i=0;return setInterval(()=>{i===0?n>t&&(o*=2,r(o),o>86400&&(o=86400),i=o):(i-=1,i===0&&e()),n=0},1e3).unref(),()=>{n+=1}}function IM(t){return t!==void 0&&(t.length===0||t==="?"||t==="<anonymous>")}function Eje(t,e){return t===e||IM(t)&&IM(e)}Uu.LOCAL_VARIABLES_KEY=fje;Uu.createRateLimiter=gje;Uu.functionNamesMatch=Eje;Uu.isAnonymous=IM});var ZJ=c(Um=>{var{_optionalChain:YJ}=I();Object.defineProperty(Um,"__esModule",{value:!0});var hje=require("node:worker_threads"),mje=k(),Gm=I(),Xd=bM(),XJ="LyohIEBzZW50cnkvbm9kZSA4LjM3LjEgKGYyN2VlNGUpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPSI4LjM3LjEiLG89Z2xvYmFsVGhpcztjb25zdCBpPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxhPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSxzPXt9O2Z1bmN0aW9uIGMoZSl7aWYoISgiY29uc29sZSJpbiBvKSlyZXR1cm4gZSgpO2NvbnN0IHQ9by5jb25zb2xlLG49e30saT1PYmplY3Qua2V5cyhzKTtpLmZvckVhY2goKGU9Pntjb25zdCBvPXNbZV07bltlXT10W2VdLHRbZV09b30pKTt0cnl7cmV0dXJuIGUoKX1maW5hbGx5e2kuZm9yRWFjaCgoZT0+e3RbZV09bltlXX0pKX19IWZ1bmN0aW9uKGUsdCxpKXtjb25zdCBhPW8scz1hLl9fU0VOVFJZX189YS5fX1NFTlRSWV9ffHx7fSxjPXNbbl09c1tuXXx8e307Y1tlXXx8KGNbZV09dCgpKX0oImxvZ2dlciIsKGZ1bmN0aW9uKCl7bGV0IGU9ITE7Y29uc3QgdD17ZW5hYmxlOigpPT57ZT0hMH0sZGlzYWJsZTooKT0+e2U9ITF9LGlzRW5hYmxlZDooKT0+ZX07cmV0dXJuIGk/YS5mb3JFYWNoKChuPT57dFtuXT0oLi4udCk9PntlJiZjKCgoKT0+e28uY29uc29sZVtuXShgU2VudHJ5IExvZ2dlciBbJHtufV06YCwuLi50KX0pKX19KSk6YS5mb3JFYWNoKChlPT57dFtlXT0oKT0+e319KSksdH0pKTtjb25zdCByPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgdT10O2Z1bmN0aW9uIGwoLi4uZSl7dS5kZWJ1ZyYmYygoKCk9PmNvbnNvbGUubG9nKCJbTG9jYWxWYXJpYWJsZXMgV29ya2VyXSIsLi4uZSkpKX1hc3luYyBmdW5jdGlvbiBmKGUsdCxuLG8pe2NvbnN0IGk9YXdhaXQgZS5wb3N0KCJSdW50aW1lLmdldFByb3BlcnRpZXMiLHtvYmplY3RJZDp0LG93blByb3BlcnRpZXM6ITB9KTtvW25dPWkucmVzdWx0LmZpbHRlcigoZT0+Imxlbmd0aCIhPT1lLm5hbWUmJiFpc05hTihwYXJzZUludChlLm5hbWUsMTApKSkpLnNvcnQoKChlLHQpPT5wYXJzZUludChlLm5hbWUsMTApLXBhcnNlSW50KHQubmFtZSwxMCkpKS5tYXAoKGU9PmUudmFsdWU/LnZhbHVlKSl9YXN5bmMgZnVuY3Rpb24gZyhlLHQsbixvKXtjb25zdCBpPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSk7b1tuXT1pLnJlc3VsdC5tYXAoKGU9PltlLm5hbWUsZS52YWx1ZT8udmFsdWVdKSkucmVkdWNlKCgoZSxbdCxuXSk9PihlW3RdPW4sZSkpLHt9KX1mdW5jdGlvbiBkKGUsdCl7ZS52YWx1ZSYmKCJ2YWx1ZSJpbiBlLnZhbHVlP3ZvaWQgMD09PWUudmFsdWUudmFsdWV8fG51bGw9PT1lLnZhbHVlLnZhbHVlP3RbZS5uYW1lXT1gPCR7ZS52YWx1ZS52YWx1ZX0+YDp0W2UubmFtZV09ZS52YWx1ZS52YWx1ZToiZGVzY3JpcHRpb24iaW4gZS52YWx1ZSYmImZ1bmN0aW9uIiE9PWUudmFsdWUudHlwZT90W2UubmFtZV09YDwke2UudmFsdWUuZGVzY3JpcHRpb259PmA6InVuZGVmaW5lZCI9PT1lLnZhbHVlLnR5cGUmJih0W2UubmFtZV09Ijx1bmRlZmluZWQ+IikpfWFzeW5jIGZ1bmN0aW9uIGIoZSx0KXtjb25zdCBuPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSksbz17fTtmb3IoY29uc3QgdCBvZiBuLnJlc3VsdClpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJBcnJheSI9PT10Py52YWx1ZS5jbGFzc05hbWUpe2NvbnN0IG49dC52YWx1ZS5vYmplY3RJZDthd2FpdCBmKGUsbix0Lm5hbWUsbyl9ZWxzZSBpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJPYmplY3QiPT09dD8udmFsdWU/LmNsYXNzTmFtZSl7Y29uc3Qgbj10LnZhbHVlLm9iamVjdElkO2F3YWl0IGcoZSxuLHQubmFtZSxvKX1lbHNlIHQ/LnZhbHVlJiZkKHQsbyk7cmV0dXJuIG99bGV0IHA7KGFzeW5jIGZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgZTt0LmNvbm5lY3RUb01haW5UaHJlYWQoKSxsKCJDb25uZWN0ZWQgdG8gbWFpbiB0aHJlYWQiKTtsZXQgbj0hMTt0Lm9uKCJEZWJ1Z2dlci5yZXN1bWVkIiwoKCk9PntuPSExfSkpLHQub24oIkRlYnVnZ2VyLnBhdXNlZCIsKGU9PntuPSEwLGFzeW5jIGZ1bmN0aW9uKGUse3JlYXNvbjp0LGRhdGE6e29iamVjdElkOm59LGNhbGxGcmFtZXM6b30pe2lmKCJleGNlcHRpb24iIT09dCYmInByb21pc2VSZWplY3Rpb24iIT09dClyZXR1cm47aWYocD8uKCksbnVsbD09bilyZXR1cm47Y29uc3QgaT1bXTtmb3IobGV0IHQ9MDt0PG8ubGVuZ3RoO3QrKyl7Y29uc3R7c2NvcGVDaGFpbjpuLGZ1bmN0aW9uTmFtZTphLHRoaXM6c309b1t0XSxjPW4uZmluZCgoZT0+ImxvY2FsIj09PWUudHlwZSkpLHI9Imdsb2JhbCIhPT1zLmNsYXNzTmFtZSYmcy5jbGFzc05hbWU/YCR7cy5jbGFzc05hbWV9LiR7YX1gOmE7aWYodm9pZCAwPT09Yz8ub2JqZWN0Lm9iamVjdElkKWlbdF09e2Z1bmN0aW9uOnJ9O2Vsc2V7Y29uc3Qgbj1hd2FpdCBiKGUsYy5vYmplY3Qub2JqZWN0SWQpO2lbdF09e2Z1bmN0aW9uOnIsdmFyczpufX19YXdhaXQgZS5wb3N0KCJSdW50aW1lLmNhbGxGdW5jdGlvbk9uIix7ZnVuY3Rpb25EZWNsYXJhdGlvbjpgZnVuY3Rpb24oKSB7IHRoaXMuJHtyfSA9IHRoaXMuJHtyfSB8fCAke0pTT04uc3RyaW5naWZ5KGkpfTsgfWAsc2lsZW50OiEwLG9iamVjdElkOm59KSxhd2FpdCBlLnBvc3QoIlJ1bnRpbWUucmVsZWFzZU9iamVjdCIse29iamVjdElkOm59KX0odCxlLnBhcmFtcykudGhlbigoYXN5bmMoKT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSwoYXN5bmMgZT0+e24mJmF3YWl0IHQucG9zdCgiRGVidWdnZXIucmVzdW1lIil9KSl9KSksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5lbmFibGUiKTtjb25zdCBvPSExIT09dS5jYXB0dXJlQWxsRXhjZXB0aW9ucztpZihhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6bz8iYWxsIjoidW5jYXVnaHQifSksbyl7Y29uc3QgZT11Lm1heEV4Y2VwdGlvbnNQZXJTZWNvbmR8fDUwO3A9ZnVuY3Rpb24oZSx0LG4pe2xldCBvPTAsaT01LGE9MDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57MD09PWE/bz5lJiYoaSo9MixuKGkpLGk+ODY0MDAmJihpPTg2NDAwKSxhPWkpOihhLT0xLDA9PT1hJiZ0KCkpLG89MH0pLDFlMykudW5yZWYoKSwoKT0+e28rPTF9fShlLChhc3luYygpPT57bCgiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9KSwoYXN5bmMgZT0+e2woYFJhdGUtbGltaXQgZXhjZWVkZWQuIERpc2FibGluZyBjYXB0dXJpbmcgb2YgY2F1Z2h0IGV4Y2VwdGlvbnMgZm9yICR7ZX0gc2Vjb25kcy5gKSxhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6InVuY2F1Z2h0In0pfSkpfX0pKCkuY2F0Y2goKGU9PntsKCJGYWlsZWQgdG8gc3RhcnQgZGVidWdnZXIiLGUpfSkpLHNldEludGVydmFsKCgoKT0+e30pLDFlNCk7";function KJ(...t){Gm.logger.log("[LocalVariables]",...t)}var Tje=mje.defineIntegration((t={})=>{function e(i,s){let a=(YJ([i,"access",u=>u.stacktrace,"optionalAccess",u=>u.frames])||[]).filter(u=>u.function!=="new Promise");for(let u=0;u<a.length;u++){let l=a.length-u-1,d=s[u],p=a[l];if(!p||!d)break;d.vars===void 0||p.in_app===!1||!Xd.functionNamesMatch(p.function,d.function)||(p.vars=d.vars)}}function r(i,s){if(s.originalException&&typeof s.originalException=="object"&&Xd.LOCAL_VARIABLES_KEY in s.originalException&&Array.isArray(s.originalException[Xd.LOCAL_VARIABLES_KEY])){for(let a of YJ([i,"access",u=>u.exception,"optionalAccess",u=>u.values])||[])e(a,s.originalException[Xd.LOCAL_VARIABLES_KEY]);s.originalException[Xd.LOCAL_VARIABLES_KEY]=void 0}return i}async function n(){let i=await import("node:inspector");i.url()||i.open(0)}function o(i){let s=new hje.Worker(new URL(`data:application/javascript;base64,${XJ}`),{workerData:i,execArgv:[]});process.on("exit",()=>{s.terminate()}),s.once("error",a=>{KJ("Worker error",a)}),s.once("exit",a=>{KJ("Worker exit",a)}),s.unref()}return{name:"LocalVariablesAsync",setup(i){if(!i.getOptions().includeLocalVariables)return;let a={...t,debug:Gm.logger.isEnabled()};n().then(()=>{try{o(a)}catch(u){Gm.logger.error("Failed to start worker",u)}},u=>{Gm.logger.error("Failed to start inspector",u)})},processEvent(i,s){return r(i,s)}}});Um.base64WorkerScript=XJ;Um.localVariablesAsyncIntegration=Tje});var QJ=c(xu=>{var{_optionalChain:et}=I();Object.defineProperty(xu,"__esModule",{value:!0});var JJ=k(),Zd=I(),Sje=Dm(),zJ=bM();function yM(t){if(t!==void 0)return t.slice(-10).reduce((e,r)=>`${e},${r.function},${r.lineno},${r.colno}`,"")}function $J(t,e){if(e!==void 0)return yM(t(e,1))}function vM(t){let e=[],r=!1;function n(s){e=[],!r&&(r=!0,t(s))}e.push(n);function o(s){e.push(s)}function i(s){let a=e.pop()||n;try{a(s)}catch{n(s)}}return{add:o,next:i}}var PM=class t{constructor(e){this._session=e}static async create(e){if(e)return e;let r=await import("node:inspector");return new t(new r.Session)}configureAndConnect(e,r){this._session.connect(),this._session.on("Debugger.paused",n=>{e(n,()=>{this._session.post("Debugger.resume")})}),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:r?"all":"uncaught"})}setPauseOnExceptions(e){this._session.post("Debugger.setPauseOnExceptions",{state:e?"all":"uncaught"})}getLocalVariables(e,r){this._getProperties(e,n=>{let{add:o,next:i}=vM(r);for(let s of n)if(et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&et([s,"optionalAccess",a=>a.value,"access",a=>a.className])==="Array"){let a=s.value.objectId;o(u=>this._unrollArray(a,s.name,u,i))}else if(et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.objectId])&&et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.className])==="Object"){let a=s.value.objectId;o(u=>this._unrollObject(a,s.name,u,i))}else et([s,"optionalAccess",a=>a.value])&&o(a=>this._unrollOther(s,a,i));i({})})}_getProperties(e,r){this._session.post("Runtime.getProperties",{objectId:e,ownProperties:!0},(n,o)=>{r(n?[]:o.result)})}_unrollArray(e,r,n,o){this._getProperties(e,i=>{n[r]=i.filter(s=>s.name!=="length"&&!isNaN(parseInt(s.name,10))).sort((s,a)=>parseInt(s.name,10)-parseInt(a.name,10)).map(s=>et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])),o(n)})}_unrollObject(e,r,n,o){this._getProperties(e,i=>{n[r]=i.map(s=>[s.name,et([s,"optionalAccess",a=>a.value,"optionalAccess",a=>a.value])]).reduce((s,[a,u])=>(s[a]=u,s),{}),o(n)})}_unrollOther(e,r,n){e.value&&("value"in e.value?e.value.value===void 0||e.value.value===null?r[e.name]=`<${e.value.value}>`:r[e.name]=e.value.value:"description"in e.value&&e.value.type!=="function"?r[e.name]=`<${e.value.description}>`:e.value.type==="undefined"&&(r[e.name]="<undefined>")),n(r)}},Aje="LocalVariables",Rje=(t={},e)=>{let r=new Zd.LRUMap(20),n,o=!1;function i(a){let u=yM(et([a,"optionalAccess",p=>p.stacktrace,"optionalAccess",p=>p.frames]));if(u===void 0)return;let l=r.remove(u);if(l===void 0)return;let d=(et([a,"access",p=>p.stacktrace,"optionalAccess",p=>p.frames])||[]).filter(p=>p.function!=="new Promise");for(let p=0;p<d.length;p++){let _=d.length-p-1,f=l[p],g=d[_];if(!g||!f)break;f.vars===void 0||g.in_app===!1||!zJ.functionNamesMatch(g.function,f.function)||(g.vars=f.vars)}}function s(a){for(let u of et([a,"optionalAccess",l=>l.exception,"optionalAccess",l=>l.values])||[])i(u);return a}return{name:Aje,setupOnce(){let a=JJ.getClient(),u=et([a,"optionalAccess",d=>d.getOptions,"call",d=>d()]);if(!et([u,"optionalAccess",d=>d.includeLocalVariables]))return;if(Sje.NODE_MAJOR<18){Zd.logger.log("The `LocalVariables` integration is only supported on Node >= v18.");return}PM.create(e).then(d=>{function p(f,{params:{reason:g,data:E,callFrames:T}},y){if(g!=="exception"&&g!=="promiseRejection"){y();return}et([n,"optionalCall",v=>v()]);let C=$J(f,et([E,"optionalAccess",v=>v.description]));if(C==null){y();return}let{add:L,next:M}=vM(v=>{r.set(C,v),y()});for(let v=0;v<Math.min(T.length,5);v++){let{scopeChain:D,functionName:x,this:ee}=T[v],z=D.find(w=>w.type==="local"),Fe=ee.className==="global"||!ee.className?x:`${ee.className}.${x}`;if(et([z,"optionalAccess",w=>w.object,"access",w=>w.objectId])===void 0)L(w=>{w[v]={function:Fe},M(w)});else{let w=z.object.objectId;L(j=>et([d,"optionalAccess",ie=>ie.getLocalVariables,"call",ie=>ie(w,Z=>{j[v]={function:Fe,vars:Z},M(j)})]))}}M([])}let _=t.captureAllExceptions!==!1;if(d.configureAndConnect((f,g)=>p(u.stackParser,f,g),_),_){let f=t.maxExceptionsPerSecond||50;n=zJ.createRateLimiter(f,()=>{Zd.logger.log("Local variables rate-limit lifted."),et([d,"optionalAccess",g=>g.setPauseOnExceptions,"call",g=>g(!0)])},g=>{Zd.logger.log(`Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${g} seconds.`),et([d,"optionalAccess",E=>E.setPauseOnExceptions,"call",E=>E(!1)])})}o=!0},d=>{Zd.logger.log("The `LocalVariables` integration failed to start.",d)})},processEvent(a){return o?s(a):a},_getCachedFramesCount(){return r.size},_getFirstCachedFrame(){return r.values()[0]}}},Oje=JJ.defineIntegration(Rje);xu.createCallbackList=vM;xu.hashFrames=yM;xu.hashFromStack=$J;xu.localVariablesSyncIntegration=Oje});var CM=c(NM=>{Object.defineProperty(NM,"__esModule",{value:!0});var Ije=Dm(),bje=ZJ(),Pje=QJ(),yje=(t={})=>Ije.NODE_VERSION.major<19?Pje.localVariablesSyncIntegration(t):bje.localVariablesAsyncIntegration(t);NM.localVariablesIntegration=yje});var wu=c(MM=>{Object.defineProperty(MM,"__esModule",{value:!0});function vje(){return typeof require<"u"}MM.isCjs=vje});var GM=c(DM=>{Object.defineProperty(DM,"__esModule",{value:!0});var e$=require("node:fs"),t$=require("node:path"),Nje=k(),Cje=I(),Mje=Rn(),Lje=wu(),LM,r$="Modules",Dje=()=>Lje.isCjs()?{name:r$,processEvent(t){return t.modules={...t.modules,...wje()},t}}:(Mje.DEBUG_BUILD&&Cje.logger.warn("modulesIntegration only works in CommonJS (CJS) environments. Remove this integration if you are using ESM."),{name:r$}),Gje=Nje.defineIntegration(Dje);function Uje(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function xje(){let t=require.main&&require.main.paths||[],e=Uje(),r={},n={};return e.forEach(o=>{let i=o,s=()=>{let a=i;if(i=t$.dirname(a),!i||a===i||n[a])return;if(t.indexOf(i)<0)return s();let u=t$.join(a,"package.json");if(n[a]=!0,!e$.existsSync(u))return s();try{let l=JSON.parse(e$.readFileSync(u,"utf8"));r[l.name]=l.version}catch{}};s()}),r}function wje(){return LM||(LM=xje()),LM}DM.modulesIntegration=Gje});var wM=c(xM=>{Object.defineProperty(xM,"__esModule",{value:!0});var Vje=k(),xm=I(),UM=Rn(),Bje=2e3;function qje(t){xm.consoleSandbox(()=>{console.error(t)});let e=Vje.getClient();if(e===void 0){UM.DEBUG_BUILD&&xm.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}let r=e.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||Bje;e.close(n).then(o=>{o||UM.DEBUG_BUILD&&xm.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)},o=>{UM.DEBUG_BUILD&&xm.logger.error(o)})}xM.logAndExitProcess=qje});var BM=c(wm=>{Object.defineProperty(wm,"__esModule",{value:!0});var VM=k(),jje=I(),Hje=Rn(),n$=wM(),Fje="OnUncaughtException",kje=VM.defineIntegration((t={})=>{let e={exitEvenIfOtherHandlersAreRegistered:!1,...t};return{name:Fje,setup(r){global.process.on("uncaughtException",o$(r,e))}}});function o$(t,e){let n=!1,o=!1,i=!1,s,a=t.getOptions();return Object.assign(u=>{let l=n$.logAndExitProcess;e.onFatalError?l=e.onFatalError:a.onFatalError&&(l=a.onFatalError);let p=global.process.listeners("uncaughtException").filter(f=>f.name!=="domainUncaughtExceptionClear"&&f.tag!=="sentry_tracingErrorCallback"&&f._errorHandler!==!0).length===0,_=e.exitEvenIfOtherHandlersAreRegistered||p;n?_&&(i?(Hje.DEBUG_BUILD&&jje.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),n$.logAndExitProcess(u)):o||(o=!0,setTimeout(()=>{i||(i=!0,l(s,u))},2e3))):(s=u,n=!0,VM.getClient()===t&&VM.captureException(u,{originalException:u,captureContext:{level:"fatal"},mechanism:{handled:!1,type:"onuncaughtexception"}}),!i&&_&&(i=!0,l(u)))},{_errorHandler:!0})}wm.makeErrorHandler=o$;wm.onUncaughtExceptionIntegration=kje});var jM=c(Vm=>{Object.defineProperty(Vm,"__esModule",{value:!0});var qM=k(),i$=I(),Wje=wM(),Yje="OnUnhandledRejection",Kje=(t={})=>{let e=t.mode||"warn";return{name:Yje,setup(r){global.process.on("unhandledRejection",s$(r,{mode:e}))}}},Xje=qM.defineIntegration(Kje);function s$(t,e){return function(n,o){qM.getClient()===t&&(qM.captureException(n,{originalException:o,captureContext:{extra:{unhandledPromiseRejection:!0}},mechanism:{handled:!1,type:"onunhandledrejection"}}),Zje(n,e))}}function Zje(t,e){let r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";e.mode==="warn"?i$.consoleSandbox(()=>{console.warn(r),console.error(t&&t.stack?t.stack:t)}):e.mode==="strict"&&(i$.consoleSandbox(()=>{console.warn(r)}),Wje.logAndExitProcess(t))}Vm.makeUnhandledPromiseHandler=s$;Vm.onUnhandledRejectionIntegration=Xje});var c$=c(Bm=>{var{_optionalChain:zje,_optionalChainDelete:a$}=I();Object.defineProperty(Bm,"__esModule",{value:!0});var Jje=require("node:worker_threads"),pi=k(),kM=I(),HM=Dm(),u$="LyohIEBzZW50cnkvbm9kZSA4LjM3LjEgKGYyN2VlNGUpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyB0fWZyb20ibm9kZTppbnNwZWN0b3IiO2ltcG9ydHtwYXJlbnRQb3J0IGFzIG4sd29ya2VyRGF0YSBhcyBlfWZyb20ibm9kZTp3b3JrZXJfdGhyZWFkcyI7aW1wb3J0e3Bvc2l4IGFzIHIsc2VwIGFzIG99ZnJvbSJub2RlOnBhdGgiO2ltcG9ydCphcyBzIGZyb20ibm9kZTpodHRwIjtpbXBvcnQqYXMgaSBmcm9tIm5vZGU6aHR0cHMiO2ltcG9ydHtSZWFkYWJsZSBhcyBjfWZyb20ibm9kZTpzdHJlYW0iO2ltcG9ydHtjcmVhdGVHemlwIGFzIHV9ZnJvbSJub2RlOnpsaWIiO2ltcG9ydCphcyBhIGZyb20ibm9kZTpuZXQiO2ltcG9ydCphcyBmIGZyb20ibm9kZTp0bHMiO2NvbnN0IGg9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZztmdW5jdGlvbiBwKHQsbil7cmV0dXJuIGguY2FsbCh0KT09PWBbb2JqZWN0ICR7bn1dYH1mdW5jdGlvbiBsKHQpe3JldHVybiBwKHQsIlN0cmluZyIpfWZ1bmN0aW9uIGQodCl7cmV0dXJuIHAodCwiT2JqZWN0Iil9ZnVuY3Rpb24gbSh0KXtyZXR1cm4gQm9vbGVhbih0JiZ0LnRoZW4mJiJmdW5jdGlvbiI9PXR5cGVvZiB0LnRoZW4pfWZ1bmN0aW9uIHkodCxuKXt0cnl7cmV0dXJuIHQgaW5zdGFuY2VvZiBufWNhdGNoKHQpe3JldHVybiExfX1jb25zdCBnPSI4LjM3LjEiLGI9Z2xvYmFsVGhpcztmdW5jdGlvbiBfKHQsbixlKXtjb25zdCByPWIsbz1yLl9fU0VOVFJZX189ci5fX1NFTlRSWV9ffHx7fSxzPW9bZ109b1tnXXx8e307cmV0dXJuIHNbdF18fChzW3RdPW4oKSl9Y29uc3Qgdj1iLHc9ODA7ZnVuY3Rpb24gUyh0LG4pe2NvbnN0IGU9dCxyPVtdO2lmKCFlfHwhZS50YWdOYW1lKXJldHVybiIiO2lmKHYuSFRNTEVsZW1lbnQmJmUgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCYmZS5kYXRhc2V0KXtpZihlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5Q29tcG9uZW50O2lmKGUuZGF0YXNldC5zZW50cnlFbGVtZW50KXJldHVybiBlLmRhdGFzZXQuc2VudHJ5RWxlbWVudH1yLnB1c2goZS50YWdOYW1lLnRvTG93ZXJDYXNlKCkpO2NvbnN0IG89biYmbi5sZW5ndGg/bi5maWx0ZXIoKHQ9PmUuZ2V0QXR0cmlidXRlKHQpKSkubWFwKCh0PT5bdCxlLmdldEF0dHJpYnV0ZSh0KV0pKTpudWxsO2lmKG8mJm8ubGVuZ3RoKW8uZm9yRWFjaCgodD0+e3IucHVzaChgWyR7dFswXX09IiR7dFsxXX0iXWApfSkpO2Vsc2V7ZS5pZCYmci5wdXNoKGAjJHtlLmlkfWApO2NvbnN0IHQ9ZS5jbGFzc05hbWU7aWYodCYmbCh0KSl7Y29uc3Qgbj10LnNwbGl0KC9ccysvKTtmb3IoY29uc3QgdCBvZiBuKXIucHVzaChgLiR7dH1gKX19Y29uc3Qgcz1bImFyaWEtbGFiZWwiLCJ0eXBlIiwibmFtZSIsInRpdGxlIiwiYWx0Il07Zm9yKGNvbnN0IHQgb2Ygcyl7Y29uc3Qgbj1lLmdldEF0dHJpYnV0ZSh0KTtuJiZyLnB1c2goYFske3R9PSIke259Il1gKX1yZXR1cm4gci5qb2luKCIiKX1jb25zdCAkPSJ1bmRlZmluZWQiPT10eXBlb2YgX19TRU5UUllfREVCVUdfX3x8X19TRU5UUllfREVCVUdfXyxFPVsiZGVidWciLCJpbmZvIiwid2FybiIsImVycm9yIiwibG9nIiwiYXNzZXJ0IiwidHJhY2UiXSx4PXt9O2Z1bmN0aW9uIE4odCl7aWYoISgiY29uc29sZSJpbiBiKSlyZXR1cm4gdCgpO2NvbnN0IG49Yi5jb25zb2xlLGU9e30scj1PYmplY3Qua2V5cyh4KTtyLmZvckVhY2goKHQ9Pntjb25zdCByPXhbdF07ZVt0XT1uW3RdLG5bdF09cn0pKTt0cnl7cmV0dXJuIHQoKX1maW5hbGx5e3IuZm9yRWFjaCgodD0+e25bdF09ZVt0XX0pKX19Y29uc3QgQz1fKCJsb2dnZXIiLChmdW5jdGlvbigpe2xldCB0PSExO2NvbnN0IG49e2VuYWJsZTooKT0+e3Q9ITB9LGRpc2FibGU6KCk9Pnt0PSExfSxpc0VuYWJsZWQ6KCk9PnR9O3JldHVybiAkP0UuZm9yRWFjaCgoZT0+e25bZV09KC4uLm4pPT57dCYmTigoKCk9PntiLmNvbnNvbGVbZV0oYFNlbnRyeSBMb2dnZXIgWyR7ZX1dOmAsLi4ubil9KSl9fSkpOkUuZm9yRWFjaCgodD0+e25bdF09KCk9Pnt9fSkpLG59KSk7ZnVuY3Rpb24gVCh0LG49ITEpe2NvbnN0e2hvc3Q6ZSxwYXRoOnIscGFzczpvLHBvcnQ6cyxwcm9qZWN0SWQ6aSxwcm90b2NvbDpjLHB1YmxpY0tleTp1fT10O3JldHVybmAke2N9Oi8vJHt1fSR7biYmbz9gOiR7b31gOiIifUAke2V9JHtzP2A6JHtzfWA6IiJ9LyR7cj9gJHtyfS9gOnJ9JHtpfWB9Y2xhc3MgayBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQsbj0id2FybiIpe3N1cGVyKHQpLHRoaXMubWVzc2FnZT10LHRoaXMubmFtZT1uZXcudGFyZ2V0LnByb3RvdHlwZS5jb25zdHJ1Y3Rvci5uYW1lLE9iamVjdC5zZXRQcm90b3R5cGVPZih0aGlzLG5ldy50YXJnZXQucHJvdG90eXBlKSx0aGlzLmxvZ0xldmVsPW59fWZ1bmN0aW9uIFIodCl7aWYoZnVuY3Rpb24odCl7c3dpdGNoKGguY2FsbCh0KSl7Y2FzZSJbb2JqZWN0IEVycm9yXSI6Y2FzZSJbb2JqZWN0IEV4Y2VwdGlvbl0iOmNhc2UiW29iamVjdCBET01FeGNlcHRpb25dIjpjYXNlIltvYmplY3QgV2ViQXNzZW1ibHkuRXhjZXB0aW9uXSI6cmV0dXJuITA7ZGVmYXVsdDpyZXR1cm4geSh0LEVycm9yKX19KHQpKXJldHVybnttZXNzYWdlOnQubWVzc2FnZSxuYW1lOnQubmFtZSxzdGFjazp0LnN0YWNrLC4uLmoodCl9O2lmKG49dCwidW5kZWZpbmVkIiE9dHlwZW9mIEV2ZW50JiZ5KG4sRXZlbnQpKXtjb25zdCBuPXt0eXBlOnQudHlwZSx0YXJnZXQ6RCh0LnRhcmdldCksY3VycmVudFRhcmdldDpEKHQuY3VycmVudFRhcmdldCksLi4uaih0KX07cmV0dXJuInVuZGVmaW5lZCIhPXR5cGVvZiBDdXN0b21FdmVudCYmeSh0LEN1c3RvbUV2ZW50KSYmKG4uZGV0YWlsPXQuZGV0YWlsKSxufXJldHVybiB0O3ZhciBufWZ1bmN0aW9uIEQodCl7dHJ5e3JldHVybiBuPXQsInVuZGVmaW5lZCIhPXR5cGVvZiBFbGVtZW50JiZ5KG4sRWxlbWVudCk/ZnVuY3Rpb24odCxuPXt9KXtpZighdClyZXR1cm4iPHVua25vd24+Ijt0cnl7bGV0IGU9dDtjb25zdCByPTUsbz1bXTtsZXQgcz0wLGk9MDtjb25zdCBjPSIgPiAiLHU9Yy5sZW5ndGg7bGV0IGE7Y29uc3QgZj1BcnJheS5pc0FycmF5KG4pP246bi5rZXlBdHRycyxoPSFBcnJheS5pc0FycmF5KG4pJiZuLm1heFN0cmluZ0xlbmd0aHx8dztmb3IoO2UmJnMrKzxyJiYoYT1TKGUsZiksISgiaHRtbCI9PT1hfHxzPjEmJmkrby5sZW5ndGgqdSthLmxlbmd0aD49aCkpOylvLnB1c2goYSksaSs9YS5sZW5ndGgsZT1lLnBhcmVudE5vZGU7cmV0dXJuIG8ucmV2ZXJzZSgpLmpvaW4oYyl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9fSh0KTpPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwodCl9Y2F0Y2godCl7cmV0dXJuIjx1bmtub3duPiJ9dmFyIG59ZnVuY3Rpb24gaih0KXtpZigib2JqZWN0Ij09dHlwZW9mIHQmJm51bGwhPT10KXtjb25zdCBuPXt9O2Zvcihjb25zdCBlIGluIHQpT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKHQsZSkmJihuW2VdPXRbZV0pO3JldHVybiBufXJldHVybnt9fWZ1bmN0aW9uIE8odCl7cmV0dXJuIEEodCxuZXcgTWFwKX1mdW5jdGlvbiBBKHQsbil7aWYoZnVuY3Rpb24odCl7aWYoIWQodCkpcmV0dXJuITE7dHJ5e2NvbnN0IG49T2JqZWN0LmdldFByb3RvdHlwZU9mKHQpLmNvbnN0cnVjdG9yLm5hbWU7cmV0dXJuIW58fCJPYmplY3QiPT09bn1jYXRjaCh0KXtyZXR1cm4hMH19KHQpKXtjb25zdCBlPW4uZ2V0KHQpO2lmKHZvaWQgMCE9PWUpcmV0dXJuIGU7Y29uc3Qgcj17fTtuLnNldCh0LHIpO2Zvcihjb25zdCBlIG9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzKHQpKXZvaWQgMCE9PXRbZV0mJihyW2VdPUEodFtlXSxuKSk7cmV0dXJuIHJ9aWYoQXJyYXkuaXNBcnJheSh0KSl7Y29uc3QgZT1uLmdldCh0KTtpZih2b2lkIDAhPT1lKXJldHVybiBlO2NvbnN0IHI9W107cmV0dXJuIG4uc2V0KHQsciksdC5mb3JFYWNoKCh0PT57ci5wdXNoKEEodCxuKSl9KSkscn1yZXR1cm4gdH1jb25zdCBJPTUwLFA9Ij8iLFU9L2NhcHR1cmVNZXNzYWdlfGNhcHR1cmVFeGNlcHRpb24vO2Z1bmN0aW9uIE0odCl7cmV0dXJuIHRbdC5sZW5ndGgtMV18fHt9fWNvbnN0IEw9Ijxhbm9ueW1vdXM+Ijtjb25zdCBCPTFlMztmdW5jdGlvbiBHKCl7cmV0dXJuIERhdGUubm93KCkvQn1jb25zdCBKPWZ1bmN0aW9uKCl7Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybiBHO2NvbnN0IG49RGF0ZS5ub3coKS10Lm5vdygpLGU9bnVsbD09dC50aW1lT3JpZ2luP246dC50aW1lT3JpZ2luO3JldHVybigpPT4oZSt0Lm5vdygpKS9CfSgpO2Z1bmN0aW9uIFkoKXtjb25zdCB0PWIsbj10LmNyeXB0b3x8dC5tc0NyeXB0bztsZXQgZT0oKT0+MTYqTWF0aC5yYW5kb20oKTt0cnl7aWYobiYmbi5yYW5kb21VVUlEKXJldHVybiBuLnJhbmRvbVVVSUQoKS5yZXBsYWNlKC8tL2csIiIpO24mJm4uZ2V0UmFuZG9tVmFsdWVzJiYoZT0oKT0+e2NvbnN0IHQ9bmV3IFVpbnQ4QXJyYXkoMSk7cmV0dXJuIG4uZ2V0UmFuZG9tVmFsdWVzKHQpLHRbMF19KX1jYXRjaCh0KXt9cmV0dXJuKFsxZTddKzFlMys0ZTMrOGUzKzFlMTEpLnJlcGxhY2UoL1swMThdL2csKHQ9Pih0XigxNSZlKCkpPj50LzQpLnRvU3RyaW5nKDE2KSkpfWZ1bmN0aW9uIHoodCxuPTEwMCxlPTEvMCl7dHJ5e3JldHVybiBIKCIiLHQsbixlKX1jYXRjaCh0KXtyZXR1cm57RVJST1I6YCoqbm9uLXNlcmlhbGl6YWJsZSoqICgke3R9KWB9fX1mdW5jdGlvbiBIKHQsbixlPTEvMCxyPTEvMCxvPWZ1bmN0aW9uKCl7Y29uc3QgdD0iZnVuY3Rpb24iPT10eXBlb2YgV2Vha1NldCxuPXQ/bmV3IFdlYWtTZXQ6W107cmV0dXJuW2Z1bmN0aW9uKGUpe2lmKHQpcmV0dXJuISFuLmhhcyhlKXx8KG4uYWRkKGUpLCExKTtmb3IobGV0IHQ9MDt0PG4ubGVuZ3RoO3QrKylpZihuW3RdPT09ZSlyZXR1cm4hMDtyZXR1cm4gbi5wdXNoKGUpLCExfSxmdW5jdGlvbihlKXtpZih0KW4uZGVsZXRlKGUpO2Vsc2UgZm9yKGxldCB0PTA7dDxuLmxlbmd0aDt0KyspaWYoblt0XT09PWUpe24uc3BsaWNlKHQsMSk7YnJlYWt9fV19KCkpe2NvbnN0W3MsaV09bztpZihudWxsPT1ufHxbImJvb2xlYW4iLCJzdHJpbmciXS5pbmNsdWRlcyh0eXBlb2Ygbil8fCJudW1iZXIiPT10eXBlb2YgbiYmTnVtYmVyLmlzRmluaXRlKG4pKXJldHVybiBuO2NvbnN0IGM9ZnVuY3Rpb24odCxuKXt0cnl7aWYoImRvbWFpbiI9PT10JiZuJiYib2JqZWN0Ij09dHlwZW9mIG4mJm4udClyZXR1cm4iW0RvbWFpbl0iO2lmKCJkb21haW5FbWl0dGVyIj09PXQpcmV0dXJuIltEb21haW5FbWl0dGVyXSI7aWYoInVuZGVmaW5lZCIhPXR5cGVvZiBnbG9iYWwmJm49PT1nbG9iYWwpcmV0dXJuIltHbG9iYWxdIjtpZigidW5kZWZpbmVkIiE9dHlwZW9mIHdpbmRvdyYmbj09PXdpbmRvdylyZXR1cm4iW1dpbmRvd10iO2lmKCJ1bmRlZmluZWQiIT10eXBlb2YgZG9jdW1lbnQmJm49PT1kb2N1bWVudClyZXR1cm4iW0RvY3VtZW50XSI7aWYoIm9iamVjdCI9PXR5cGVvZihlPW4pJiZudWxsIT09ZSYmKGUuX19pc1Z1ZXx8ZS5vKSlyZXR1cm4iW1Z1ZVZpZXdNb2RlbF0iO2lmKGZ1bmN0aW9uKHQpe3JldHVybiBkKHQpJiYibmF0aXZlRXZlbnQiaW4gdCYmInByZXZlbnREZWZhdWx0ImluIHQmJiJzdG9wUHJvcGFnYXRpb24iaW4gdH0obikpcmV0dXJuIltTeW50aGV0aWNFdmVudF0iO2lmKCJudW1iZXIiPT10eXBlb2YgbiYmIU51bWJlci5pc0Zpbml0ZShuKSlyZXR1cm5gWyR7bn1dYDtpZigiZnVuY3Rpb24iPT10eXBlb2YgbilyZXR1cm5gW0Z1bmN0aW9uOiAke2Z1bmN0aW9uKHQpe3RyeXtyZXR1cm4gdCYmImZ1bmN0aW9uIj09dHlwZW9mIHQmJnQubmFtZXx8TH1jYXRjaCh0KXtyZXR1cm4gTH19KG4pfV1gO2lmKCJzeW1ib2wiPT10eXBlb2YgbilyZXR1cm5gWyR7U3RyaW5nKG4pfV1gO2lmKCJiaWdpbnQiPT10eXBlb2YgbilyZXR1cm5gW0JpZ0ludDogJHtTdHJpbmcobil9XWA7Y29uc3Qgcj1mdW5jdGlvbih0KXtjb25zdCBuPU9iamVjdC5nZXRQcm90b3R5cGVPZih0KTtyZXR1cm4gbj9uLmNvbnN0cnVjdG9yLm5hbWU6Im51bGwgcHJvdG90eXBlIn0obik7cmV0dXJuL15IVE1MKFx3KilFbGVtZW50JC8udGVzdChyKT9gW0hUTUxFbGVtZW50OiAke3J9XWA6YFtvYmplY3QgJHtyfV1gfWNhdGNoKHQpe3JldHVybmAqKm5vbi1zZXJpYWxpemFibGUqKiAoJHt0fSlgfXZhciBlfSh0LG4pO2lmKCFjLnN0YXJ0c1dpdGgoIltvYmplY3QgIikpcmV0dXJuIGM7aWYobi5fX3NlbnRyeV9za2lwX25vcm1hbGl6YXRpb25fXylyZXR1cm4gbjtjb25zdCB1PSJudW1iZXIiPT10eXBlb2Ygbi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX18/bi5fX3NlbnRyeV9vdmVycmlkZV9ub3JtYWxpemF0aW9uX2RlcHRoX186ZTtpZigwPT09dSlyZXR1cm4gYy5yZXBsYWNlKCJvYmplY3QgIiwiIik7aWYocyhuKSlyZXR1cm4iW0NpcmN1bGFyIH5dIjtjb25zdCBhPW47aWYoYSYmImZ1bmN0aW9uIj09dHlwZW9mIGEudG9KU09OKXRyeXtyZXR1cm4gSCgiIixhLnRvSlNPTigpLHUtMSxyLG8pfWNhdGNoKHQpe31jb25zdCBmPUFycmF5LmlzQXJyYXkobik/W106e307bGV0IGg9MDtjb25zdCBwPVIobik7Zm9yKGNvbnN0IHQgaW4gcCl7aWYoIU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChwLHQpKWNvbnRpbnVlO2lmKGg+PXIpe2ZbdF09IltNYXhQcm9wZXJ0aWVzIH5dIjticmVha31jb25zdCBuPXBbdF07Zlt0XT1IKHQsbix1LTEscixvKSxoKyt9cmV0dXJuIGkobiksZn1mdW5jdGlvbiBXKHQsbil7Y29uc3QgZT1uLnJlcGxhY2UoL1xcL2csIi8iKS5yZXBsYWNlKC9bfFxce30oKVtcXV4kKyo/Ll0vZywiXFwkJiIpO2xldCByPXQ7dHJ5e3I9ZGVjb2RlVVJJKHQpfWNhdGNoKHQpe31yZXR1cm4gci5yZXBsYWNlKC9cXC9nLCIvIikucmVwbGFjZSgvd2VicGFjazpcLz8vZywiIikucmVwbGFjZShuZXcgUmVnRXhwKGAoZmlsZTovLyk/Lyoke2V9LypgLCJpZyIpLCJhcHA6Ly8vIil9KCgpPT57Y29uc3R7cGVyZm9ybWFuY2U6dH09YjtpZighdHx8IXQubm93KXJldHVybjtjb25zdCBuPTM2ZTUsZT10Lm5vdygpLHI9RGF0ZS5ub3coKSxvPXQudGltZU9yaWdpbj9NYXRoLmFicyh0LnRpbWVPcmlnaW4rZS1yKTpuLHM9bzxuLGk9dC50aW1pbmcmJnQudGltaW5nLm5hdmlnYXRpb25TdGFydCxjPSJudW1iZXIiPT10eXBlb2YgaT9NYXRoLmFicyhpK2Utcik6bjsoc3x8YzxuKSYmKG88PWMmJnQudGltZU9yaWdpbil9KSgpO2NvbnN0IEY9L14oXFMrOlxcfFwvPykoW1xzXFNdKj8pKCg/OlwuezEsMn18W14vXFxdKz98KShcLlteLi9cXF0qfCkpKD86Wy9cXF0qKSQvO2Z1bmN0aW9uIEsodCl7Y29uc3Qgbj1mdW5jdGlvbih0KXtjb25zdCBuPXQubGVuZ3RoPjEwMjQ/YDx0cnVuY2F0ZWQ+JHt0LnNsaWNlKC0xMDI0KX1gOnQsZT1GLmV4ZWMobik7cmV0dXJuIGU/ZS5zbGljZSgxKTpbXX0odCksZT1uWzBdfHwiIjtsZXQgcj1uWzFdO3JldHVybiBlfHxyPyhyJiYocj1yLnNsaWNlKDAsci5sZW5ndGgtMSkpLGUrcik6Ii4ifXZhciBWO2Z1bmN0aW9uIFoodCl7cmV0dXJuIG5ldyBxKChuPT57bih0KX0pKX0hZnVuY3Rpb24odCl7dFt0LlBFTkRJTkc9MF09IlBFTkRJTkciO3RbdC5SRVNPTFZFRD0xXT0iUkVTT0xWRUQiO3RbdC5SRUpFQ1RFRD0yXT0iUkVKRUNURUQifShWfHwoVj17fSkpO2NsYXNzIHF7Y29uc3RydWN0b3IodCl7cS5wcm90b3R5cGUuX19pbml0LmNhbGwodGhpcykscS5wcm90b3R5cGUuX19pbml0Mi5jYWxsKHRoaXMpLHEucHJvdG90eXBlLl9faW5pdDMuY2FsbCh0aGlzKSxxLnByb3RvdHlwZS5fX2luaXQ0LmNhbGwodGhpcyksdGhpcy5pPVYuUEVORElORyx0aGlzLnU9W107dHJ5e3QodGhpcy5oLHRoaXMucCl9Y2F0Y2godCl7dGhpcy5wKHQpfX10aGVuKHQsbil7cmV0dXJuIG5ldyBxKCgoZSxyKT0+e3RoaXMudS5wdXNoKFshMSxuPT57aWYodCl0cnl7ZSh0KG4pKX1jYXRjaCh0KXtyKHQpfWVsc2UgZShuKX0sdD0+e2lmKG4pdHJ5e2Uobih0KSl9Y2F0Y2godCl7cih0KX1lbHNlIHIodCl9XSksdGhpcy5sKCl9KSl9Y2F0Y2godCl7cmV0dXJuIHRoaXMudGhlbigodD0+dCksdCl9ZmluYWxseSh0KXtyZXR1cm4gbmV3IHEoKChuLGUpPT57bGV0IHIsbztyZXR1cm4gdGhpcy50aGVuKChuPT57bz0hMSxyPW4sdCYmdCgpfSksKG49PntvPSEwLHI9bix0JiZ0KCl9KSkudGhlbigoKCk9PntvP2Uocik6bihyKX0pKX0pKX1fX2luaXQoKXt0aGlzLmg9dD0+e3RoaXMubShWLlJFU09MVkVELHQpfX1fX2luaXQyKCl7dGhpcy5wPXQ9Pnt0aGlzLm0oVi5SRUpFQ1RFRCx0KX19X19pbml0Mygpe3RoaXMubT0odCxuKT0+e3RoaXMuaT09PVYuUEVORElORyYmKG0obik/bi50aGVuKHRoaXMuaCx0aGlzLnApOih0aGlzLmk9dCx0aGlzLl89bix0aGlzLmwoKSkpfX1fX2luaXQ0KCl7dGhpcy5sPSgpPT57aWYodGhpcy5pPT09Vi5QRU5ESU5HKXJldHVybjtjb25zdCB0PXRoaXMudS5zbGljZSgpO3RoaXMudT1bXSx0LmZvckVhY2goKHQ9Pnt0WzBdfHwodGhpcy5pPT09Vi5SRVNPTFZFRCYmdFsxXSh0aGlzLl8pLHRoaXMuaT09PVYuUkVKRUNURUQmJnRbMl0odGhpcy5fKSx0WzBdPSEwKX0pKX19fWZ1bmN0aW9uIFEodCl7Y29uc3Qgbj1bXTtmdW5jdGlvbiBlKHQpe3JldHVybiBuLnNwbGljZShuLmluZGV4T2YodCksMSlbMF18fFByb21pc2UucmVzb2x2ZSh2b2lkIDApfXJldHVybnskOm4sYWRkOmZ1bmN0aW9uKHIpe2lmKCEodm9pZCAwPT09dHx8bi5sZW5ndGg8dCkpcmV0dXJuIG89bmV3IGsoIk5vdCBhZGRpbmcgUHJvbWlzZSBiZWNhdXNlIGJ1ZmZlciBsaW1pdCB3YXMgcmVhY2hlZC4iKSxuZXcgcSgoKHQsbik9PntuKG8pfSkpO3ZhciBvO2NvbnN0IHM9cigpO3JldHVybi0xPT09bi5pbmRleE9mKHMpJiZuLnB1c2gocykscy50aGVuKCgoKT0+ZShzKSkpLnRoZW4obnVsbCwoKCk9PmUocykudGhlbihudWxsLCgoKT0+e30pKSkpLHN9LGRyYWluOmZ1bmN0aW9uKHQpe3JldHVybiBuZXcgcSgoKGUscik9PntsZXQgbz1uLmxlbmd0aDtpZighbylyZXR1cm4gZSghMCk7Y29uc3Qgcz1zZXRUaW1lb3V0KCgoKT0+e3QmJnQ+MCYmZSghMSl9KSx0KTtuLmZvckVhY2goKHQ9PntaKHQpLnRoZW4oKCgpPT57LS1vfHwoY2xlYXJUaW1lb3V0KHMpLGUoITApKX0pLHIpfSkpfSkpfX19ZnVuY3Rpb24gWCh0LG49ITEpe3JldHVybiEobnx8dCYmIXQuc3RhcnRzV2l0aCgiLyIpJiYhdC5tYXRjaCgvXltBLVpdOi8pJiYhdC5zdGFydHNXaXRoKCIuIikmJiF0Lm1hdGNoKC9eW2EtekEtWl0oW2EtekEtWjAtOS5cLStdKSo6XC9cLy8pKSYmdm9pZCAwIT09dCYmIXQuaW5jbHVkZXMoIm5vZGVfbW9kdWxlcy8iKX1jb25zdCB0dD0ic2VudHJ5LSIsbnQ9L15zZW50cnktLztmdW5jdGlvbiBldCh0KXtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0fHwhbCh0KSYmIUFycmF5LmlzQXJyYXkodCkpcmV0dXJuO2lmKEFycmF5LmlzQXJyYXkodCkpcmV0dXJuIHQucmVkdWNlKCgodCxuKT0+e2NvbnN0IGU9cnQobik7cmV0dXJuIE9iamVjdC5lbnRyaWVzKGUpLmZvckVhY2goKChbbixlXSk9Pnt0W25dPWV9KSksdH0pLHt9KTtyZXR1cm4gcnQodCl9KHQpO2lmKCFuKXJldHVybjtjb25zdCBlPU9iamVjdC5lbnRyaWVzKG4pLnJlZHVjZSgoKHQsW24sZV0pPT57aWYobi5tYXRjaChudCkpe3Rbbi5zbGljZSh0dC5sZW5ndGgpXT1lfXJldHVybiB0fSkse30pO3JldHVybiBPYmplY3Qua2V5cyhlKS5sZW5ndGg+MD9lOnZvaWQgMH1mdW5jdGlvbiBydCh0KXtyZXR1cm4gdC5zcGxpdCgiLCIpLm1hcCgodD0+dC5zcGxpdCgiPSIpLm1hcCgodD0+ZGVjb2RlVVJJQ29tcG9uZW50KHQudHJpbSgpKSkpKSkucmVkdWNlKCgodCxbbixlXSk9PihuJiZlJiYodFtuXT1lKSx0KSkse30pfWZ1bmN0aW9uIG90KHQsbj1bXSl7cmV0dXJuW3Qsbl19ZnVuY3Rpb24gc3QodCxuKXtjb25zdCBlPXRbMV07Zm9yKGNvbnN0IHQgb2YgZSl7aWYobih0LHRbMF0udHlwZSkpcmV0dXJuITB9cmV0dXJuITF9ZnVuY3Rpb24gaXQodCl7cmV0dXJuIGIuX19TRU5UUllfXyYmYi5fX1NFTlRSWV9fLmVuY29kZVBvbHlmaWxsP2IuX19TRU5UUllfXy5lbmNvZGVQb2x5ZmlsbCh0KToobmV3IFRleHRFbmNvZGVyKS5lbmNvZGUodCl9ZnVuY3Rpb24gY3QodCl7Y29uc3RbbixlXT10O2xldCByPUpTT04uc3RyaW5naWZ5KG4pO2Z1bmN0aW9uIG8odCl7InN0cmluZyI9PXR5cGVvZiByP3I9InN0cmluZyI9PXR5cGVvZiB0P3IrdDpbaXQociksdF06ci5wdXNoKCJzdHJpbmciPT10eXBlb2YgdD9pdCh0KTp0KX1mb3IoY29uc3QgdCBvZiBlKXtjb25zdFtuLGVdPXQ7aWYobyhgXG4ke0pTT04uc3RyaW5naWZ5KG4pfVxuYCksInN0cmluZyI9PXR5cGVvZiBlfHxlIGluc3RhbmNlb2YgVWludDhBcnJheSlvKGUpO2Vsc2V7bGV0IHQ7dHJ5e3Q9SlNPTi5zdHJpbmdpZnkoZSl9Y2F0Y2gobil7dD1KU09OLnN0cmluZ2lmeSh6KGUpKX1vKHQpfX1yZXR1cm4ic3RyaW5nIj09dHlwZW9mIHI/cjpmdW5jdGlvbih0KXtjb25zdCBuPXQucmVkdWNlKCgodCxuKT0+dCtuLmxlbmd0aCksMCksZT1uZXcgVWludDhBcnJheShuKTtsZXQgcj0wO2Zvcihjb25zdCBuIG9mIHQpZS5zZXQobixyKSxyKz1uLmxlbmd0aDtyZXR1cm4gZX0ocil9Y29uc3QgdXQ9e3Nlc3Npb246InNlc3Npb24iLHNlc3Npb25zOiJzZXNzaW9uIixhdHRhY2htZW50OiJhdHRhY2htZW50Iix0cmFuc2FjdGlvbjoidHJhbnNhY3Rpb24iLGV2ZW50OiJlcnJvciIsY2xpZW50X3JlcG9ydDoiaW50ZXJuYWwiLHVzZXJfcmVwb3J0OiJkZWZhdWx0Iixwcm9maWxlOiJwcm9maWxlIixwcm9maWxlX2NodW5rOiJwcm9maWxlIixyZXBsYXlfZXZlbnQ6InJlcGxheSIscmVwbGF5X3JlY29yZGluZzoicmVwbGF5IixjaGVja19pbjoibW9uaXRvciIsZmVlZGJhY2s6ImZlZWRiYWNrIixzcGFuOiJzcGFuIixzdGF0c2Q6Im1ldHJpY19idWNrZXQifTtmdW5jdGlvbiBhdCh0KXtpZighdHx8IXQuc2RrKXJldHVybjtjb25zdHtuYW1lOm4sdmVyc2lvbjplfT10LnNkaztyZXR1cm57bmFtZTpuLHZlcnNpb246ZX19Y29uc3QgZnQ9NmU0O2Z1bmN0aW9uIGh0KHQse3N0YXR1c0NvZGU6bixoZWFkZXJzOmV9LHI9RGF0ZS5ub3coKSl7Y29uc3Qgbz17Li4udH0scz1lJiZlWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdLGk9ZSYmZVsicmV0cnktYWZ0ZXIiXTtpZihzKWZvcihjb25zdCB0IG9mIHMudHJpbSgpLnNwbGl0KCIsIikpe2NvbnN0W24sZSwsLHNdPXQuc3BsaXQoIjoiLDUpLGk9cGFyc2VJbnQobiwxMCksYz0xZTMqKGlzTmFOKGkpPzYwOmkpO2lmKGUpZm9yKGNvbnN0IHQgb2YgZS5zcGxpdCgiOyIpKSJtZXRyaWNfYnVja2V0Ij09PXQmJnMmJiFzLnNwbGl0KCI7IikuaW5jbHVkZXMoImN1c3RvbSIpfHwob1t0XT1yK2MpO2Vsc2Ugby5hbGw9citjfWVsc2UgaT9vLmFsbD1yK2Z1bmN0aW9uKHQsbj1EYXRlLm5vdygpKXtjb25zdCBlPXBhcnNlSW50KGAke3R9YCwxMCk7aWYoIWlzTmFOKGUpKXJldHVybiAxZTMqZTtjb25zdCByPURhdGUucGFyc2UoYCR7dH1gKTtyZXR1cm4gaXNOYU4ocik/ZnQ6ci1ufShpLHIpOjQyOT09PW4mJihvLmFsbD1yKzZlNCk7cmV0dXJuIG99ZnVuY3Rpb24gcHQoKXtyZXR1cm57dHJhY2VJZDpZKCksc3BhbklkOlkoKS5zdWJzdHJpbmcoMTYpfX1jb25zdCBsdD0idW5kZWZpbmVkIj09dHlwZW9mIF9fU0VOVFJZX0RFQlVHX198fF9fU0VOVFJZX0RFQlVHX187ZnVuY3Rpb24gZHQoKXtyZXR1cm4gbXQoYiksYn1mdW5jdGlvbiBtdCh0KXtjb25zdCBuPXQuX19TRU5UUllfXz10Ll9fU0VOVFJZX198fHt9O3JldHVybiBuLnZlcnNpb249bi52ZXJzaW9ufHxnLG5bZ109bltnXXx8e319ZnVuY3Rpb24geXQodCl7Y29uc3Qgbj1KKCksZT17c2lkOlkoKSxpbml0OiEwLHRpbWVzdGFtcDpuLHN0YXJ0ZWQ6bixkdXJhdGlvbjowLHN0YXR1czoib2siLGVycm9yczowLGlnbm9yZUR1cmF0aW9uOiExLHRvSlNPTjooKT0+ZnVuY3Rpb24odCl7cmV0dXJuIE8oe3NpZDpgJHt0LnNpZH1gLGluaXQ6dC5pbml0LHN0YXJ0ZWQ6bmV3IERhdGUoMWUzKnQuc3RhcnRlZCkudG9JU09TdHJpbmcoKSx0aW1lc3RhbXA6bmV3IERhdGUoMWUzKnQudGltZXN0YW1wKS50b0lTT1N0cmluZygpLHN0YXR1czp0LnN0YXR1cyxlcnJvcnM6dC5lcnJvcnMsZGlkOiJudW1iZXIiPT10eXBlb2YgdC5kaWR8fCJzdHJpbmciPT10eXBlb2YgdC5kaWQ/YCR7dC5kaWR9YDp2b2lkIDAsZHVyYXRpb246dC5kdXJhdGlvbixhYm5vcm1hbF9tZWNoYW5pc206dC5hYm5vcm1hbF9tZWNoYW5pc20sYXR0cnM6e3JlbGVhc2U6dC5yZWxlYXNlLGVudmlyb25tZW50OnQuZW52aXJvbm1lbnQsaXBfYWRkcmVzczp0LmlwQWRkcmVzcyx1c2VyX2FnZW50OnQudXNlckFnZW50fX0pfShlKX07cmV0dXJuIHQmJmd0KGUsdCksZX1mdW5jdGlvbiBndCh0LG49e30pe2lmKG4udXNlciYmKCF0LmlwQWRkcmVzcyYmbi51c2VyLmlwX2FkZHJlc3MmJih0LmlwQWRkcmVzcz1uLnVzZXIuaXBfYWRkcmVzcyksdC5kaWR8fG4uZGlkfHwodC5kaWQ9bi51c2VyLmlkfHxuLnVzZXIuZW1haWx8fG4udXNlci51c2VybmFtZSkpLHQudGltZXN0YW1wPW4udGltZXN0YW1wfHxKKCksbi5hYm5vcm1hbF9tZWNoYW5pc20mJih0LmFibm9ybWFsX21lY2hhbmlzbT1uLmFibm9ybWFsX21lY2hhbmlzbSksbi5pZ25vcmVEdXJhdGlvbiYmKHQuaWdub3JlRHVyYXRpb249bi5pZ25vcmVEdXJhdGlvbiksbi5zaWQmJih0LnNpZD0zMj09PW4uc2lkLmxlbmd0aD9uLnNpZDpZKCkpLHZvaWQgMCE9PW4uaW5pdCYmKHQuaW5pdD1uLmluaXQpLCF0LmRpZCYmbi5kaWQmJih0LmRpZD1gJHtuLmRpZH1gKSwibnVtYmVyIj09dHlwZW9mIG4uc3RhcnRlZCYmKHQuc3RhcnRlZD1uLnN0YXJ0ZWQpLHQuaWdub3JlRHVyYXRpb24pdC5kdXJhdGlvbj12b2lkIDA7ZWxzZSBpZigibnVtYmVyIj09dHlwZW9mIG4uZHVyYXRpb24pdC5kdXJhdGlvbj1uLmR1cmF0aW9uO2Vsc2V7Y29uc3Qgbj10LnRpbWVzdGFtcC10LnN0YXJ0ZWQ7dC5kdXJhdGlvbj1uPj0wP246MH1uLnJlbGVhc2UmJih0LnJlbGVhc2U9bi5yZWxlYXNlKSxuLmVudmlyb25tZW50JiYodC5lbnZpcm9ubWVudD1uLmVudmlyb25tZW50KSwhdC5pcEFkZHJlc3MmJm4uaXBBZGRyZXNzJiYodC5pcEFkZHJlc3M9bi5pcEFkZHJlc3MpLCF0LnVzZXJBZ2VudCYmbi51c2VyQWdlbnQmJih0LnVzZXJBZ2VudD1uLnVzZXJBZ2VudCksIm51bWJlciI9PXR5cGVvZiBuLmVycm9ycyYmKHQuZXJyb3JzPW4uZXJyb3JzKSxuLnN0YXR1cyYmKHQuc3RhdHVzPW4uc3RhdHVzKX1jb25zdCBidD0iX3NlbnRyeVNwYW4iO2Z1bmN0aW9uIF90KHQsbil7bj9mdW5jdGlvbih0LG4sZSl7dHJ5e09iamVjdC5kZWZpbmVQcm9wZXJ0eSh0LG4se3ZhbHVlOmUsd3JpdGFibGU6ITAsY29uZmlndXJhYmxlOiEwfSl9Y2F0Y2goZSl7JCYmQy5sb2coYEZhaWxlZCB0byBhZGQgbm9uLWVudW1lcmFibGUgcHJvcGVydHkgIiR7bn0iIHRvIG9iamVjdGAsdCl9fSh0LGJ0LG4pOmRlbGV0ZSB0W2J0XX1mdW5jdGlvbiB2dCh0KXtyZXR1cm4gdFtidF19Y2xhc3Mgd3R7Y29uc3RydWN0b3IoKXt0aGlzLnY9ITEsdGhpcy5TPVtdLHRoaXMuTj1bXSx0aGlzLkM9W10sdGhpcy5UPVtdLHRoaXMuaz17fSx0aGlzLlI9e30sdGhpcy5EPXt9LHRoaXMuaj17fSx0aGlzLk89e30sdGhpcy5BPXB0KCl9Y2xvbmUoKXtjb25zdCB0PW5ldyB3dDtyZXR1cm4gdC5DPVsuLi50aGlzLkNdLHQuUj17Li4udGhpcy5SfSx0LkQ9ey4uLnRoaXMuRH0sdC5qPXsuLi50aGlzLmp9LHQuaz10aGlzLmssdC5JPXRoaXMuSSx0LlA9dGhpcy5QLHQuVT10aGlzLlUsdC5NPXRoaXMuTSx0Lk49Wy4uLnRoaXMuTl0sdC5MPXRoaXMuTCx0LlQ9Wy4uLnRoaXMuVF0sdC5PPXsuLi50aGlzLk99LHQuQT17Li4udGhpcy5BfSx0LkI9dGhpcy5CLHQuRz10aGlzLkcsX3QodCx2dCh0aGlzKSksdH1zZXRDbGllbnQodCl7dGhpcy5CPXR9c2V0TGFzdEV2ZW50SWQodCl7dGhpcy5HPXR9Z2V0Q2xpZW50KCl7cmV0dXJuIHRoaXMuQn1sYXN0RXZlbnRJZCgpe3JldHVybiB0aGlzLkd9YWRkU2NvcGVMaXN0ZW5lcih0KXt0aGlzLlMucHVzaCh0KX1hZGRFdmVudFByb2Nlc3Nvcih0KXtyZXR1cm4gdGhpcy5OLnB1c2godCksdGhpc31zZXRVc2VyKHQpe3JldHVybiB0aGlzLms9dHx8e2VtYWlsOnZvaWQgMCxpZDp2b2lkIDAsaXBfYWRkcmVzczp2b2lkIDAsdXNlcm5hbWU6dm9pZCAwfSx0aGlzLlAmJmd0KHRoaXMuUCx7dXNlcjp0fSksdGhpcy5KKCksdGhpc31nZXRVc2VyKCl7cmV0dXJuIHRoaXMua31nZXRSZXF1ZXN0U2Vzc2lvbigpe3JldHVybiB0aGlzLkx9c2V0UmVxdWVzdFNlc3Npb24odCl7cmV0dXJuIHRoaXMuTD10LHRoaXN9c2V0VGFncyh0KXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4udH0sdGhpcy5KKCksdGhpc31zZXRUYWcodCxuKXtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsW3RdOm59LHRoaXMuSigpLHRoaXN9c2V0RXh0cmFzKHQpe3JldHVybiB0aGlzLkQ9ey4uLnRoaXMuRCwuLi50fSx0aGlzLkooKSx0aGlzfXNldEV4dHJhKHQsbil7cmV0dXJuIHRoaXMuRD17Li4udGhpcy5ELFt0XTpufSx0aGlzLkooKSx0aGlzfXNldEZpbmdlcnByaW50KHQpe3JldHVybiB0aGlzLk09dCx0aGlzLkooKSx0aGlzfXNldExldmVsKHQpe3JldHVybiB0aGlzLkk9dCx0aGlzLkooKSx0aGlzfXNldFRyYW5zYWN0aW9uTmFtZSh0KXtyZXR1cm4gdGhpcy5VPXQsdGhpcy5KKCksdGhpc31zZXRDb250ZXh0KHQsbil7cmV0dXJuIG51bGw9PT1uP2RlbGV0ZSB0aGlzLmpbdF06dGhpcy5qW3RdPW4sdGhpcy5KKCksdGhpc31zZXRTZXNzaW9uKHQpe3JldHVybiB0P3RoaXMuUD10OmRlbGV0ZSB0aGlzLlAsdGhpcy5KKCksdGhpc31nZXRTZXNzaW9uKCl7cmV0dXJuIHRoaXMuUH11cGRhdGUodCl7aWYoIXQpcmV0dXJuIHRoaXM7Y29uc3Qgbj0iZnVuY3Rpb24iPT10eXBlb2YgdD90KHRoaXMpOnQsW2Uscl09biBpbnN0YW5jZW9mIFN0P1tuLmdldFNjb3BlRGF0YSgpLG4uZ2V0UmVxdWVzdFNlc3Npb24oKV06ZChuKT9bdCx0LnJlcXVlc3RTZXNzaW9uXTpbXSx7dGFnczpvLGV4dHJhOnMsdXNlcjppLGNvbnRleHRzOmMsbGV2ZWw6dSxmaW5nZXJwcmludDphPVtdLHByb3BhZ2F0aW9uQ29udGV4dDpmfT1lfHx7fTtyZXR1cm4gdGhpcy5SPXsuLi50aGlzLlIsLi4ub30sdGhpcy5EPXsuLi50aGlzLkQsLi4uc30sdGhpcy5qPXsuLi50aGlzLmosLi4uY30saSYmT2JqZWN0LmtleXMoaSkubGVuZ3RoJiYodGhpcy5rPWkpLHUmJih0aGlzLkk9dSksYS5sZW5ndGgmJih0aGlzLk09YSksZiYmKHRoaXMuQT1mKSxyJiYodGhpcy5MPXIpLHRoaXN9Y2xlYXIoKXtyZXR1cm4gdGhpcy5DPVtdLHRoaXMuUj17fSx0aGlzLkQ9e30sdGhpcy5rPXt9LHRoaXMuaj17fSx0aGlzLkk9dm9pZCAwLHRoaXMuVT12b2lkIDAsdGhpcy5NPXZvaWQgMCx0aGlzLkw9dm9pZCAwLHRoaXMuUD12b2lkIDAsX3QodGhpcyx2b2lkIDApLHRoaXMuVD1bXSx0aGlzLkE9cHQoKSx0aGlzLkooKSx0aGlzfWFkZEJyZWFkY3J1bWIodCxuKXtjb25zdCBlPSJudW1iZXIiPT10eXBlb2Ygbj9uOjEwMDtpZihlPD0wKXJldHVybiB0aGlzO2NvbnN0IHI9e3RpbWVzdGFtcDpHKCksLi4udH0sbz10aGlzLkM7cmV0dXJuIG8ucHVzaChyKSx0aGlzLkM9by5sZW5ndGg+ZT9vLnNsaWNlKC1lKTpvLHRoaXMuSigpLHRoaXN9Z2V0TGFzdEJyZWFkY3J1bWIoKXtyZXR1cm4gdGhpcy5DW3RoaXMuQy5sZW5ndGgtMV19Y2xlYXJCcmVhZGNydW1icygpe3JldHVybiB0aGlzLkM9W10sdGhpcy5KKCksdGhpc31hZGRBdHRhY2htZW50KHQpe3JldHVybiB0aGlzLlQucHVzaCh0KSx0aGlzfWNsZWFyQXR0YWNobWVudHMoKXtyZXR1cm4gdGhpcy5UPVtdLHRoaXN9Z2V0U2NvcGVEYXRhKCl7cmV0dXJue2JyZWFkY3J1bWJzOnRoaXMuQyxhdHRhY2htZW50czp0aGlzLlQsY29udGV4dHM6dGhpcy5qLHRhZ3M6dGhpcy5SLGV4dHJhOnRoaXMuRCx1c2VyOnRoaXMuayxsZXZlbDp0aGlzLkksZmluZ2VycHJpbnQ6dGhpcy5NfHxbXSxldmVudFByb2Nlc3NvcnM6dGhpcy5OLHByb3BhZ2F0aW9uQ29udGV4dDp0aGlzLkEsc2RrUHJvY2Vzc2luZ01ldGFkYXRhOnRoaXMuTyx0cmFuc2FjdGlvbk5hbWU6dGhpcy5VLHNwYW46dnQodGhpcyl9fXNldFNES1Byb2Nlc3NpbmdNZXRhZGF0YSh0KXtyZXR1cm4gdGhpcy5PPXsuLi50aGlzLk8sLi4udH0sdGhpc31zZXRQcm9wYWdhdGlvbkNvbnRleHQodCl7cmV0dXJuIHRoaXMuQT10LHRoaXN9Z2V0UHJvcGFnYXRpb25Db250ZXh0KCl7cmV0dXJuIHRoaXMuQX1jYXB0dXJlRXhjZXB0aW9uKHQsbil7Y29uc3QgZT1uJiZuLmV2ZW50X2lkP24uZXZlbnRfaWQ6WSgpO2lmKCF0aGlzLkIpcmV0dXJuIEMud2FybigiTm8gY2xpZW50IGNvbmZpZ3VyZWQgb24gc2NvcGUgLSB3aWxsIG5vdCBjYXB0dXJlIGV4Y2VwdGlvbiEiKSxlO2NvbnN0IHI9bmV3IEVycm9yKCJTZW50cnkgc3ludGhldGljRXhjZXB0aW9uIik7cmV0dXJuIHRoaXMuQi5jYXB0dXJlRXhjZXB0aW9uKHQse29yaWdpbmFsRXhjZXB0aW9uOnQsc3ludGhldGljRXhjZXB0aW9uOnIsLi4ubixldmVudF9pZDplfSx0aGlzKSxlfWNhcHR1cmVNZXNzYWdlKHQsbixlKXtjb25zdCByPWUmJmUuZXZlbnRfaWQ/ZS5ldmVudF9pZDpZKCk7aWYoIXRoaXMuQilyZXR1cm4gQy53YXJuKCJObyBjbGllbnQgY29uZmlndXJlZCBvbiBzY29wZSAtIHdpbGwgbm90IGNhcHR1cmUgbWVzc2FnZSEiKSxyO2NvbnN0IG89bmV3IEVycm9yKHQpO3JldHVybiB0aGlzLkIuY2FwdHVyZU1lc3NhZ2UodCxuLHtvcmlnaW5hbEV4Y2VwdGlvbjp0LHN5bnRoZXRpY0V4Y2VwdGlvbjpvLC4uLmUsZXZlbnRfaWQ6cn0sdGhpcykscn1jYXB0dXJlRXZlbnQodCxuKXtjb25zdCBlPW4mJm4uZXZlbnRfaWQ/bi5ldmVudF9pZDpZKCk7cmV0dXJuIHRoaXMuQj8odGhpcy5CLmNhcHR1cmVFdmVudCh0LHsuLi5uLGV2ZW50X2lkOmV9LHRoaXMpLGUpOihDLndhcm4oIk5vIGNsaWVudCBjb25maWd1cmVkIG9uIHNjb3BlIC0gd2lsbCBub3QgY2FwdHVyZSBldmVudCEiKSxlKX1KKCl7dGhpcy52fHwodGhpcy52PSEwLHRoaXMuUy5mb3JFYWNoKCh0PT57dCh0aGlzKX0pKSx0aGlzLnY9ITEpfX1jb25zdCBTdD13dDtjbGFzcyAkdHtjb25zdHJ1Y3Rvcih0LG4pe2xldCBlLHI7ZT10fHxuZXcgU3Qscj1ufHxuZXcgU3QsdGhpcy5ZPVt7c2NvcGU6ZX1dLHRoaXMuSD1yfXdpdGhTY29wZSh0KXtjb25zdCBuPXRoaXMuVygpO2xldCBlO3RyeXtlPXQobil9Y2F0Y2godCl7dGhyb3cgdGhpcy5GKCksdH1yZXR1cm4gbShlKT9lLnRoZW4oKHQ9Pih0aGlzLkYoKSx0KSksKHQ9Pnt0aHJvdyB0aGlzLkYoKSx0fSkpOih0aGlzLkYoKSxlKX1nZXRDbGllbnQoKXtyZXR1cm4gdGhpcy5nZXRTdGFja1RvcCgpLmNsaWVudH1nZXRTY29wZSgpe3JldHVybiB0aGlzLmdldFN0YWNrVG9wKCkuc2NvcGV9Z2V0SXNvbGF0aW9uU2NvcGUoKXtyZXR1cm4gdGhpcy5IfWdldFN0YWNrVG9wKCl7cmV0dXJuIHRoaXMuWVt0aGlzLlkubGVuZ3RoLTFdfVcoKXtjb25zdCB0PXRoaXMuZ2V0U2NvcGUoKS5jbG9uZSgpO3JldHVybiB0aGlzLlkucHVzaCh7Y2xpZW50OnRoaXMuZ2V0Q2xpZW50KCksc2NvcGU6dH0pLHR9Rigpe3JldHVybiEodGhpcy5ZLmxlbmd0aDw9MSkmJiEhdGhpcy5ZLnBvcCgpfX1mdW5jdGlvbiBFdCgpe2NvbnN0IHQ9bXQoZHQoKSk7cmV0dXJuIHQuc3RhY2s9dC5zdGFja3x8bmV3ICR0KF8oImRlZmF1bHRDdXJyZW50U2NvcGUiLCgoKT0+bmV3IFN0KSksXygiZGVmYXVsdElzb2xhdGlvblNjb3BlIiwoKCk9Pm5ldyBTdCkpKX1mdW5jdGlvbiB4dCh0KXtyZXR1cm4gRXQoKS53aXRoU2NvcGUodCl9ZnVuY3Rpb24gTnQodCxuKXtjb25zdCBlPUV0KCk7cmV0dXJuIGUud2l0aFNjb3BlKCgoKT0+KGUuZ2V0U3RhY2tUb3AoKS5zY29wZT10LG4odCkpKSl9ZnVuY3Rpb24gQ3QodCl7cmV0dXJuIEV0KCkud2l0aFNjb3BlKCgoKT0+dChFdCgpLmdldElzb2xhdGlvblNjb3BlKCkpKSl9ZnVuY3Rpb24gVHQodCl7Y29uc3Qgbj1tdCh0KTtyZXR1cm4gbi5hY3M/bi5hY3M6e3dpdGhJc29sYXRpb25TY29wZTpDdCx3aXRoU2NvcGU6eHQsd2l0aFNldFNjb3BlOk50LHdpdGhTZXRJc29sYXRpb25TY29wZToodCxuKT0+Q3QobiksZ2V0Q3VycmVudFNjb3BlOigpPT5FdCgpLmdldFNjb3BlKCksZ2V0SXNvbGF0aW9uU2NvcGU6KCk9PkV0KCkuZ2V0SXNvbGF0aW9uU2NvcGUoKX19ZnVuY3Rpb24ga3QoKXtyZXR1cm4gVHQoZHQoKSkuZ2V0Q3VycmVudFNjb3BlKCkuZ2V0Q2xpZW50KCl9Y29uc3QgUnQ9Il9zZW50cnlNZXRyaWNzIjtmdW5jdGlvbiBEdCh0KXtjb25zdCBuPXRbUnRdO2lmKCFuKXJldHVybjtjb25zdCBlPXt9O2Zvcihjb25zdFssW3Qscl1db2Ygbil7KGVbdF18fChlW3RdPVtdKSkucHVzaChPKHIpKX1yZXR1cm4gZX1jb25zdCBqdD0ic2VudHJ5LnNvdXJjZSIsT3Q9InNlbnRyeS5zYW1wbGVfcmF0ZSIsQXQ9InNlbnRyeS5vcCIsSXQ9InNlbnRyeS5vcmlnaW4iLFB0PTAsVXQ9MSxNdD0xO2Z1bmN0aW9uIEx0KHQpe2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpLHtwYXJlbnRfc3Bhbl9pZDpyfT1KdCh0KTtyZXR1cm4gTyh7cGFyZW50X3NwYW5faWQ6cixzcGFuX2lkOm4sdHJhY2VfaWQ6ZX0pfWZ1bmN0aW9uIEJ0KHQpe3JldHVybiJudW1iZXIiPT10eXBlb2YgdD9HdCh0KTpBcnJheS5pc0FycmF5KHQpP3RbMF0rdFsxXS8xZTk6dCBpbnN0YW5jZW9mIERhdGU/R3QodC5nZXRUaW1lKCkpOkooKX1mdW5jdGlvbiBHdCh0KXtyZXR1cm4gdD45OTk5OTk5OTk5P3QvMWUzOnR9ZnVuY3Rpb24gSnQodCl7aWYoZnVuY3Rpb24odCl7cmV0dXJuImZ1bmN0aW9uIj09dHlwZW9mIHQuZ2V0U3BhbkpTT059KHQpKXJldHVybiB0LmdldFNwYW5KU09OKCk7dHJ5e2NvbnN0e3NwYW5JZDpuLHRyYWNlSWQ6ZX09dC5zcGFuQ29udGV4dCgpO2lmKGZ1bmN0aW9uKHQpe2NvbnN0IG49dDtyZXR1cm4hIShuLmF0dHJpYnV0ZXMmJm4uc3RhcnRUaW1lJiZuLm5hbWUmJm4uZW5kVGltZSYmbi5zdGF0dXMpfSh0KSl7Y29uc3R7YXR0cmlidXRlczpyLHN0YXJ0VGltZTpvLG5hbWU6cyxlbmRUaW1lOmkscGFyZW50U3BhbklkOmMsc3RhdHVzOnV9PXQ7cmV0dXJuIE8oe3NwYW5faWQ6bix0cmFjZV9pZDplLGRhdGE6cixkZXNjcmlwdGlvbjpzLHBhcmVudF9zcGFuX2lkOmMsc3RhcnRfdGltZXN0YW1wOkJ0KG8pLHRpbWVzdGFtcDpCdChpKXx8dm9pZCAwLHN0YXR1czpZdCh1KSxvcDpyW0F0XSxvcmlnaW46cltJdF0sX21ldHJpY3Nfc3VtbWFyeTpEdCh0KX0pfXJldHVybntzcGFuX2lkOm4sdHJhY2VfaWQ6ZX19Y2F0Y2godCl7cmV0dXJue319fWZ1bmN0aW9uIFl0KHQpe2lmKHQmJnQuY29kZSE9PVB0KXJldHVybiB0LmNvZGU9PT1VdD8ib2siOnQubWVzc2FnZXx8InVua25vd25fZXJyb3IifWNvbnN0IHp0PSJfc2VudHJ5Um9vdFNwYW4iO2Z1bmN0aW9uIEh0KHQpe3JldHVybiB0W3p0XXx8dH1jb25zdCBXdD0icHJvZHVjdGlvbiIsRnQ9Il9mcm96ZW5Ec2MiO2Z1bmN0aW9uIEt0KHQpe2NvbnN0IG49a3QoKTtpZighbilyZXR1cm57fTtjb25zdCBlPWZ1bmN0aW9uKHQsbil7Y29uc3QgZT1uLmdldE9wdGlvbnMoKSx7cHVibGljS2V5OnJ9PW4uZ2V0RHNuKCl8fHt9LG89Tyh7ZW52aXJvbm1lbnQ6ZS5lbnZpcm9ubWVudHx8V3QscmVsZWFzZTplLnJlbGVhc2UscHVibGljX2tleTpyLHRyYWNlX2lkOnR9KTtyZXR1cm4gbi5lbWl0KCJjcmVhdGVEc2MiLG8pLG99KEp0KHQpLnRyYWNlX2lkfHwiIixuKSxyPUh0KHQpLG89cltGdF07aWYobylyZXR1cm4gbztjb25zdCBzPXIuc3BhbkNvbnRleHQoKS50cmFjZVN0YXRlLGk9cyYmcy5nZXQoInNlbnRyeS5kc2MiKSxjPWkmJmV0KGkpO2lmKGMpcmV0dXJuIGM7Y29uc3QgdT1KdChyKSxhPXUuZGF0YXx8e30sZj1hW090XTtudWxsIT1mJiYoZS5zYW1wbGVfcmF0ZT1gJHtmfWApO2NvbnN0IGg9YVtqdF0scD11LmRlc2NyaXB0aW9uO3JldHVybiJ1cmwiIT09aCYmcCYmKGUudHJhbnNhY3Rpb249cCksZnVuY3Rpb24odCl7aWYoImJvb2xlYW4iPT10eXBlb2YgX19TRU5UUllfVFJBQ0lOR19fJiYhX19TRU5UUllfVFJBQ0lOR19fKXJldHVybiExO2NvbnN0IG49a3QoKSxlPW4mJm4uZ2V0T3B0aW9ucygpO3JldHVybiEhZSYmKGUuZW5hYmxlVHJhY2luZ3x8InRyYWNlc1NhbXBsZVJhdGUiaW4gZXx8InRyYWNlc1NhbXBsZXIiaW4gZSl9KCkmJihlLnNhbXBsZWQ9U3RyaW5nKGZ1bmN0aW9uKHQpe2NvbnN0e3RyYWNlRmxhZ3M6bn09dC5zcGFuQ29udGV4dCgpO3JldHVybiBuPT09TXR9KHIpKSksbi5lbWl0KCJjcmVhdGVEc2MiLGUsciksZX1mdW5jdGlvbiBWdCh0LG4sZSxyKXtjb25zdCBvPWF0KGUpLHM9dC50eXBlJiYicmVwbGF5X2V2ZW50IiE9PXQudHlwZT90LnR5cGU6ImV2ZW50IjshZnVuY3Rpb24odCxuKXtuJiYodC5zZGs9dC5zZGt8fHt9LHQuc2RrLm5hbWU9dC5zZGsubmFtZXx8bi5uYW1lLHQuc2RrLnZlcnNpb249dC5zZGsudmVyc2lvbnx8bi52ZXJzaW9uLHQuc2RrLmludGVncmF0aW9ucz1bLi4udC5zZGsuaW50ZWdyYXRpb25zfHxbXSwuLi5uLmludGVncmF0aW9uc3x8W11dLHQuc2RrLnBhY2thZ2VzPVsuLi50LnNkay5wYWNrYWdlc3x8W10sLi4ubi5wYWNrYWdlc3x8W11dKX0odCxlJiZlLnNkayk7Y29uc3QgaT1mdW5jdGlvbih0LG4sZSxyKXtjb25zdCBvPXQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhJiZ0LnNka1Byb2Nlc3NpbmdNZXRhZGF0YS5keW5hbWljU2FtcGxpbmdDb250ZXh0O3JldHVybntldmVudF9pZDp0LmV2ZW50X2lkLHNlbnRfYXQ6KG5ldyBEYXRlKS50b0lTT1N0cmluZygpLC4uLm4mJntzZGs6bn0sLi4uISFlJiZyJiZ7ZHNuOlQocil9LC4uLm8mJnt0cmFjZTpPKHsuLi5vfSl9fX0odCxvLHIsbik7ZGVsZXRlIHQuc2RrUHJvY2Vzc2luZ01ldGFkYXRhO3JldHVybiBvdChpLFtbe3R5cGU6c30sdF1dKX1jb25zdCBadD0iX19TRU5UUllfU1VQUFJFU1NfVFJBQ0lOR19fIjtmdW5jdGlvbiBxdCh0KXtjb25zdCBuPVR0KGR0KCkpO3JldHVybiBuLnN1cHByZXNzVHJhY2luZz9uLnN1cHByZXNzVHJhY2luZyh0KTpmdW5jdGlvbiguLi50KXtjb25zdCBuPVR0KGR0KCkpO2lmKDI9PT10Lmxlbmd0aCl7Y29uc3RbZSxyXT10O3JldHVybiBlP24ud2l0aFNldFNjb3BlKGUscik6bi53aXRoU2NvcGUocil9cmV0dXJuIG4ud2l0aFNjb3BlKHRbMF0pfSgobj0+KG4uc2V0U0RLUHJvY2Vzc2luZ01ldGFkYXRhKHtbWnRdOiEwfSksdCgpKSkpfWZ1bmN0aW9uIFF0KHQsbil7Y29uc3R7ZmluZ2VycHJpbnQ6ZSxzcGFuOnIsYnJlYWRjcnVtYnM6byxzZGtQcm9jZXNzaW5nTWV0YWRhdGE6c309bjshZnVuY3Rpb24odCxuKXtjb25zdHtleHRyYTplLHRhZ3M6cix1c2VyOm8sY29udGV4dHM6cyxsZXZlbDppLHRyYW5zYWN0aW9uTmFtZTpjfT1uLHU9TyhlKTt1JiZPYmplY3Qua2V5cyh1KS5sZW5ndGgmJih0LmV4dHJhPXsuLi51LC4uLnQuZXh0cmF9KTtjb25zdCBhPU8ocik7YSYmT2JqZWN0LmtleXMoYSkubGVuZ3RoJiYodC50YWdzPXsuLi5hLC4uLnQudGFnc30pO2NvbnN0IGY9TyhvKTtmJiZPYmplY3Qua2V5cyhmKS5sZW5ndGgmJih0LnVzZXI9ey4uLmYsLi4udC51c2VyfSk7Y29uc3QgaD1PKHMpO2gmJk9iamVjdC5rZXlzKGgpLmxlbmd0aCYmKHQuY29udGV4dHM9ey4uLmgsLi4udC5jb250ZXh0c30pO2kmJih0LmxldmVsPWkpO2MmJiJ0cmFuc2FjdGlvbiIhPT10LnR5cGUmJih0LnRyYW5zYWN0aW9uPWMpfSh0LG4pLHImJmZ1bmN0aW9uKHQsbil7dC5jb250ZXh0cz17dHJhY2U6THQobiksLi4udC5jb250ZXh0c30sdC5zZGtQcm9jZXNzaW5nTWV0YWRhdGE9e2R5bmFtaWNTYW1wbGluZ0NvbnRleHQ6S3QobiksLi4udC5zZGtQcm9jZXNzaW5nTWV0YWRhdGF9O2NvbnN0IGU9SHQobikscj1KdChlKS5kZXNjcmlwdGlvbjtyJiYhdC50cmFuc2FjdGlvbiYmInRyYW5zYWN0aW9uIj09PXQudHlwZSYmKHQudHJhbnNhY3Rpb249cil9KHQsciksZnVuY3Rpb24odCxuKXt0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQ/ZnVuY3Rpb24odCl7cmV0dXJuIEFycmF5LmlzQXJyYXkodCk/dDpbdF19KHQuZmluZ2VycHJpbnQpOltdLG4mJih0LmZpbmdlcnByaW50PXQuZmluZ2VycHJpbnQuY29uY2F0KG4pKTt0LmZpbmdlcnByaW50JiYhdC5maW5nZXJwcmludC5sZW5ndGgmJmRlbGV0ZSB0LmZpbmdlcnByaW50fSh0LGUpLGZ1bmN0aW9uKHQsbil7Y29uc3QgZT1bLi4udC5icmVhZGNydW1ic3x8W10sLi4ubl07dC5icmVhZGNydW1icz1lLmxlbmd0aD9lOnZvaWQgMH0odCxvKSxmdW5jdGlvbih0LG4pe3Quc2RrUHJvY2Vzc2luZ01ldGFkYXRhPXsuLi50LnNka1Byb2Nlc3NpbmdNZXRhZGF0YSwuLi5ufX0odCxzKX1jb25zdCBYdD0iNyI7ZnVuY3Rpb24gdG4odCxuKXtyZXR1cm4gZT17c2VudHJ5X2tleTp0LnB1YmxpY0tleSxzZW50cnlfdmVyc2lvbjpYdCwuLi5uJiZ7c2VudHJ5X2NsaWVudDpgJHtuLm5hbWV9LyR7bi52ZXJzaW9ufWB9fSxPYmplY3Qua2V5cyhlKS5tYXAoKHQ9PmAke2VuY29kZVVSSUNvbXBvbmVudCh0KX09JHtlbmNvZGVVUklDb21wb25lbnQoZVt0XSl9YCkpLmpvaW4oIiYiKTt2YXIgZX1jb25zdCBubj02NDtmdW5jdGlvbiBlbih0LG4sZT1RKHQuYnVmZmVyU2l6ZXx8bm4pKXtsZXQgcj17fTtyZXR1cm57c2VuZDpmdW5jdGlvbih0KXtjb25zdCBvPVtdO2lmKHN0KHQsKCh0LG4pPT57Y29uc3QgZT1mdW5jdGlvbih0KXtyZXR1cm4gdXRbdF19KG4pOyhmdW5jdGlvbih0LG4sZT1EYXRlLm5vdygpKXtyZXR1cm4gZnVuY3Rpb24odCxuKXtyZXR1cm4gdFtuXXx8dC5hbGx8fDB9KHQsbik+ZX0pKHIsZSl8fG8ucHVzaCh0KX0pKSwwPT09by5sZW5ndGgpcmV0dXJuIFooe30pO2NvbnN0IHM9b3QodFswXSxvKSxpPXQ9PntzdChzLCgodCxuKT0+e30pKX07cmV0dXJuIGUuYWRkKCgoKT0+bih7Ym9keTpjdChzKX0pLnRoZW4oKHQ9Pih2b2lkIDAhPT10LnN0YXR1c0NvZGUmJih0LnN0YXR1c0NvZGU8MjAwfHx0LnN0YXR1c0NvZGU+PTMwMCkmJmx0JiZDLndhcm4oYFNlbnRyeSByZXNwb25kZWQgd2l0aCBzdGF0dXMgY29kZSAke3Quc3RhdHVzQ29kZX0gdG8gc2VudCBldmVudC5gKSxyPWh0KHIsdCksdCkpLCh0PT57dGhyb3cgaSgpLHR9KSkpKS50aGVuKCh0PT50KSwodD0+e2lmKHQgaW5zdGFuY2VvZiBrKXJldHVybiBsdCYmQy5lcnJvcigiU2tpcHBlZCBzZW5kaW5nIGV2ZW50IGJlY2F1c2UgYnVmZmVyIGlzIGZ1bGwuIiksaSgpLFooe30pO3Rocm93IHR9KSl9LGZsdXNoOnQ9PmUuZHJhaW4odCl9fWNvbnN0IHJuPVN5bWJvbCgiQWdlbnRCYXNlSW50ZXJuYWxTdGF0ZSIpO2NsYXNzIG9uIGV4dGVuZHMgcy5BZ2VudHtbcm5dO29wdGlvbnM7a2VlcEFsaXZlO2NvbnN0cnVjdG9yKHQpe3N1cGVyKHQpLHRoaXNbcm5dPXt9fWlzU2VjdXJlRW5kcG9pbnQodCl7aWYodCl7aWYoImJvb2xlYW4iPT10eXBlb2YgdC5zZWN1cmVFbmRwb2ludClyZXR1cm4gdC5zZWN1cmVFbmRwb2ludDtpZigic3RyaW5nIj09dHlwZW9mIHQucHJvdG9jb2wpcmV0dXJuImh0dHBzOiI9PT10LnByb3RvY29sfWNvbnN0e3N0YWNrOm59PW5ldyBFcnJvcjtyZXR1cm4ic3RyaW5nIj09dHlwZW9mIG4mJm4uc3BsaXQoIlxuIikuc29tZSgodD0+LTEhPT10LmluZGV4T2YoIihodHRwcy5qczoiKXx8LTEhPT10LmluZGV4T2YoIm5vZGU6aHR0cHM6IikpKX1jcmVhdGVTb2NrZXQodCxuLGUpe2NvbnN0IHI9ey4uLm4sc2VjdXJlRW5kcG9pbnQ6dGhpcy5pc1NlY3VyZUVuZHBvaW50KG4pfTtQcm9taXNlLnJlc29sdmUoKS50aGVuKCgoKT0+dGhpcy5jb25uZWN0KHQscikpKS50aGVuKChvPT57aWYobyBpbnN0YW5jZW9mIHMuQWdlbnQpcmV0dXJuIG8uYWRkUmVxdWVzdCh0LHIpO3RoaXNbcm5dLmN1cnJlbnRTb2NrZXQ9byxzdXBlci5jcmVhdGVTb2NrZXQodCxuLGUpfSksZSl9Y3JlYXRlQ29ubmVjdGlvbigpe2NvbnN0IHQ9dGhpc1tybl0uY3VycmVudFNvY2tldDtpZih0aGlzW3JuXS5jdXJyZW50U29ja2V0PXZvaWQgMCwhdCl0aHJvdyBuZXcgRXJyb3IoIk5vIHNvY2tldCB3YXMgcmV0dXJuZWQgaW4gdGhlIGBjb25uZWN0KClgIGZ1bmN0aW9uIik7cmV0dXJuIHR9Z2V0IGRlZmF1bHRQb3J0KCl7cmV0dXJuIHRoaXNbcm5dLmRlZmF1bHRQb3J0Pz8oImh0dHBzOiI9PT10aGlzLnByb3RvY29sPzQ0Mzo4MCl9c2V0IGRlZmF1bHRQb3J0KHQpe3RoaXNbcm5dJiYodGhpc1tybl0uZGVmYXVsdFBvcnQ9dCl9Z2V0IHByb3RvY29sKCl7cmV0dXJuIHRoaXNbcm5dLnByb3RvY29sPz8odGhpcy5pc1NlY3VyZUVuZHBvaW50KCk/Imh0dHBzOiI6Imh0dHA6Iil9c2V0IHByb3RvY29sKHQpe3RoaXNbcm5dJiYodGhpc1tybl0ucHJvdG9jb2w9dCl9fWZ1bmN0aW9uIHNuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnQ6cGFyc2UtcHJveHktcmVzcG9uc2VdIiwuLi50KX1mdW5jdGlvbiBjbih0KXtyZXR1cm4gbmV3IFByb21pc2UoKChuLGUpPT57bGV0IHI9MDtjb25zdCBvPVtdO2Z1bmN0aW9uIHMoKXtjb25zdCBjPXQucmVhZCgpO2M/ZnVuY3Rpb24oYyl7by5wdXNoKGMpLHIrPWMubGVuZ3RoO2NvbnN0IHU9QnVmZmVyLmNvbmNhdChvLHIpLGE9dS5pbmRleE9mKCJcclxuXHJcbiIpO2lmKC0xPT09YSlyZXR1cm4gc24oImhhdmUgbm90IHJlY2VpdmVkIGVuZCBvZiBIVFRQIGhlYWRlcnMgeWV0Li4uIiksdm9pZCBzKCk7Y29uc3QgZj11LnNsaWNlKDAsYSkudG9TdHJpbmcoImFzY2lpIikuc3BsaXQoIlxyXG4iKSxoPWYuc2hpZnQoKTtpZighaClyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoIk5vIGhlYWRlciByZWNlaXZlZCBmcm9tIHByb3h5IENPTk5FQ1QgcmVzcG9uc2UiKSk7Y29uc3QgcD1oLnNwbGl0KCIgIiksbD0rKHBbMV18fDApLGQ9cC5zbGljZSgyKS5qb2luKCIgIiksbT17fTtmb3IoY29uc3QgbiBvZiBmKXtpZighbiljb250aW51ZTtjb25zdCByPW4uaW5kZXhPZigiOiIpO2lmKC0xPT09cilyZXR1cm4gdC5kZXN0cm95KCksZShuZXcgRXJyb3IoYEludmFsaWQgaGVhZGVyIGZyb20gcHJveHkgQ09OTkVDVCByZXNwb25zZTogIiR7bn0iYCkpO2NvbnN0IG89bi5zbGljZSgwLHIpLnRvTG93ZXJDYXNlKCkscz1uLnNsaWNlKHIrMSkudHJpbVN0YXJ0KCksaT1tW29dOyJzdHJpbmciPT10eXBlb2YgaT9tW29dPVtpLHNdOkFycmF5LmlzQXJyYXkoaSk/aS5wdXNoKHMpOm1bb109c31zbigiZ290IHByb3h5IHNlcnZlciByZXNwb25zZTogJW8gJW8iLGgsbSksaSgpLG4oe2Nvbm5lY3Q6e3N0YXR1c0NvZGU6bCxzdGF0dXNUZXh0OmQsaGVhZGVyczptfSxidWZmZXJlZDp1fSl9KGMpOnQub25jZSgicmVhZGFibGUiLHMpfWZ1bmN0aW9uIGkoKXt0LnJlbW92ZUxpc3RlbmVyKCJlbmQiLGMpLHQucmVtb3ZlTGlzdGVuZXIoImVycm9yIix1KSx0LnJlbW92ZUxpc3RlbmVyKCJyZWFkYWJsZSIscyl9ZnVuY3Rpb24gYygpe2koKSxzbigib25lbmQiKSxlKG5ldyBFcnJvcigiUHJveHkgY29ubmVjdGlvbiBlbmRlZCBiZWZvcmUgcmVjZWl2aW5nIENPTk5FQ1QgcmVzcG9uc2UiKSl9ZnVuY3Rpb24gdSh0KXtpKCksc24oIm9uZXJyb3IgJW8iLHQpLGUodCl9dC5vbigiZXJyb3IiLHUpLHQub24oImVuZCIsYykscygpfSkpfWZ1bmN0aW9uIHVuKC4uLnQpe0MubG9nKCJbaHR0cHMtcHJveHktYWdlbnRdIiwuLi50KX1jbGFzcyBhbiBleHRlbmRzIG9ue3N0YXRpYyBwcm90b2NvbHM9WyJodHRwIiwiaHR0cHMiXTtwcm94eTtwcm94eUhlYWRlcnM7Y29ubmVjdE9wdHM7Y29uc3RydWN0b3IodCxuKXtzdXBlcihuKSx0aGlzLm9wdGlvbnM9e30sdGhpcy5wcm94eT0ic3RyaW5nIj09dHlwZW9mIHQ/bmV3IFVSTCh0KTp0LHRoaXMucHJveHlIZWFkZXJzPW4/LmhlYWRlcnM/P3t9LHVuKCJDcmVhdGluZyBuZXcgSHR0cHNQcm94eUFnZW50IGluc3RhbmNlOiAlbyIsdGhpcy5wcm94eS5ocmVmKTtjb25zdCBlPSh0aGlzLnByb3h5Lmhvc3RuYW1lfHx0aGlzLnByb3h5Lmhvc3QpLnJlcGxhY2UoL15cW3xcXSQvZywiIikscj10aGlzLnByb3h5LnBvcnQ/cGFyc2VJbnQodGhpcy5wcm94eS5wb3J0LDEwKToiaHR0cHM6Ij09PXRoaXMucHJveHkucHJvdG9jb2w/NDQzOjgwO3RoaXMuY29ubmVjdE9wdHM9e0FMUE5Qcm90b2NvbHM6WyJodHRwLzEuMSJdLC4uLm4/aG4obiwiaGVhZGVycyIpOm51bGwsaG9zdDplLHBvcnQ6cn19YXN5bmMgY29ubmVjdCh0LG4pe2NvbnN0e3Byb3h5OmV9PXRoaXM7aWYoIW4uaG9zdCl0aHJvdyBuZXcgVHlwZUVycm9yKCdObyAiaG9zdCIgcHJvdmlkZWQnKTtsZXQgcjtpZigiaHR0cHM6Ij09PWUucHJvdG9jb2wpe3VuKCJDcmVhdGluZyBgdGxzLlNvY2tldGA6ICVvIix0aGlzLmNvbm5lY3RPcHRzKTtjb25zdCB0PXRoaXMuY29ubmVjdE9wdHMuc2VydmVybmFtZXx8dGhpcy5jb25uZWN0T3B0cy5ob3N0O3I9Zi5jb25uZWN0KHsuLi50aGlzLmNvbm5lY3RPcHRzLHNlcnZlcm5hbWU6dCYmYS5pc0lQKHQpP3ZvaWQgMDp0fSl9ZWxzZSB1bigiQ3JlYXRpbmcgYG5ldC5Tb2NrZXRgOiAlbyIsdGhpcy5jb25uZWN0T3B0cykscj1hLmNvbm5lY3QodGhpcy5jb25uZWN0T3B0cyk7Y29uc3Qgbz0iZnVuY3Rpb24iPT10eXBlb2YgdGhpcy5wcm94eUhlYWRlcnM/dGhpcy5wcm94eUhlYWRlcnMoKTp7Li4udGhpcy5wcm94eUhlYWRlcnN9LHM9YS5pc0lQdjYobi5ob3N0KT9gWyR7bi5ob3N0fV1gOm4uaG9zdDtsZXQgaT1gQ09OTkVDVCAke3N9OiR7bi5wb3J0fSBIVFRQLzEuMVxyXG5gO2lmKGUudXNlcm5hbWV8fGUucGFzc3dvcmQpe2NvbnN0IHQ9YCR7ZGVjb2RlVVJJQ29tcG9uZW50KGUudXNlcm5hbWUpfToke2RlY29kZVVSSUNvbXBvbmVudChlLnBhc3N3b3JkKX1gO29bIlByb3h5LUF1dGhvcml6YXRpb24iXT1gQmFzaWMgJHtCdWZmZXIuZnJvbSh0KS50b1N0cmluZygiYmFzZTY0Iil9YH1vLkhvc3Q9YCR7c306JHtuLnBvcnR9YCxvWyJQcm94eS1Db25uZWN0aW9uIl18fChvWyJQcm94eS1Db25uZWN0aW9uIl09dGhpcy5rZWVwQWxpdmU/IktlZXAtQWxpdmUiOiJjbG9zZSIpO2Zvcihjb25zdCB0IG9mIE9iamVjdC5rZXlzKG8pKWkrPWAke3R9OiAke29bdF19XHJcbmA7Y29uc3QgYz1jbihyKTtyLndyaXRlKGAke2l9XHJcbmApO2NvbnN0e2Nvbm5lY3Q6dSxidWZmZXJlZDpofT1hd2FpdCBjO2lmKHQuZW1pdCgicHJveHlDb25uZWN0Iix1KSx0aGlzLmVtaXQoInByb3h5Q29ubmVjdCIsdSx0KSwyMDA9PT11LnN0YXR1c0NvZGUpe2lmKHQub25jZSgic29ja2V0Iixmbiksbi5zZWN1cmVFbmRwb2ludCl7dW4oIlVwZ3JhZGluZyBzb2NrZXQgY29ubmVjdGlvbiB0byBUTFMiKTtjb25zdCB0PW4uc2VydmVybmFtZXx8bi5ob3N0O3JldHVybiBmLmNvbm5lY3Qoey4uLmhuKG4sImhvc3QiLCJwYXRoIiwicG9ydCIpLHNvY2tldDpyLHNlcnZlcm5hbWU6YS5pc0lQKHQpP3ZvaWQgMDp0fSl9cmV0dXJuIHJ9ci5kZXN0cm95KCk7Y29uc3QgcD1uZXcgYS5Tb2NrZXQoe3dyaXRhYmxlOiExfSk7cmV0dXJuIHAucmVhZGFibGU9ITAsdC5vbmNlKCJzb2NrZXQiLCh0PT57dW4oIlJlcGxheWluZyBwcm94eSBidWZmZXIgZm9yIGZhaWxlZCByZXF1ZXN0IiksdC5wdXNoKGgpLHQucHVzaChudWxsKX0pKSxwfX1mdW5jdGlvbiBmbih0KXt0LnJlc3VtZSgpfWZ1bmN0aW9uIGhuKHQsLi4ubil7Y29uc3QgZT17fTtsZXQgcjtmb3IociBpbiB0KW4uaW5jbHVkZXMocil8fChlW3JdPXRbcl0pO3JldHVybiBlfWNvbnN0IHBuPTMyNzY4O2Z1bmN0aW9uIGxuKHQpe3JldHVybiB0LnJlcGxhY2UoL15bQS1aXTovLCIiKS5yZXBsYWNlKC9cXC9nLCIvIil9Y29uc3QgZG49ZTtsZXQgbW4seW49ITE7ZnVuY3Rpb24gZ24odCl7ZG4uZGVidWcmJmNvbnNvbGUubG9nKGBbQU5SIFdvcmtlcl0gJHt0fWApfXZhciBibixfbix2bjtjb25zdCB3bj1mdW5jdGlvbih0KXtsZXQgbjt0cnl7bj1uZXcgVVJMKHQudXJsKX1jYXRjaChuKXtyZXR1cm4gTigoKCk9Pntjb25zb2xlLndhcm4oIltAc2VudHJ5L25vZGVdOiBJbnZhbGlkIGRzbiBvciB0dW5uZWwgb3B0aW9uLCB3aWxsIG5vdCBzZW5kIGFueSBldmVudHMuIFRoZSB0dW5uZWwgb3B0aW9uIG11c3QgYmUgYSBmdWxsIFVSTCB3aGVuIHVzZWQuIil9KSksZW4odCwoKCk9PlByb21pc2UucmVzb2x2ZSh7fSkpKX1jb25zdCBlPSJodHRwczoiPT09bi5wcm90b2NvbCxyPWZ1bmN0aW9uKHQsbil7Y29uc3R7bm9fcHJveHk6ZX09cHJvY2Vzcy5lbnY7cmV0dXJuIGUmJmUuc3BsaXQoIiwiKS5zb21lKChuPT50Lmhvc3QuZW5kc1dpdGgobil8fHQuaG9zdG5hbWUuZW5kc1dpdGgobikpKT92b2lkIDA6bn0obix0LnByb3h5fHwoZT9wcm9jZXNzLmVudi5odHRwc19wcm94eTp2b2lkIDApfHxwcm9jZXNzLmVudi5odHRwX3Byb3h5KSxvPWU/aTpzLGE9dm9pZCAwIT09dC5rZWVwQWxpdmUmJnQua2VlcEFsaXZlLGY9cj9uZXcgYW4ocik6bmV3IG8uQWdlbnQoe2tlZXBBbGl2ZTphLG1heFNvY2tldHM6MzAsdGltZW91dDoyZTN9KSxoPWZ1bmN0aW9uKHQsbixlKXtjb25zdHtob3N0bmFtZTpyLHBhdGhuYW1lOm8scG9ydDpzLHByb3RvY29sOmksc2VhcmNoOmF9PW5ldyBVUkwodC51cmwpO3JldHVybiBmdW5jdGlvbihmKXtyZXR1cm4gbmV3IFByb21pc2UoKChoLHApPT57cXQoKCgpPT57bGV0IGw9ZnVuY3Rpb24odCl7cmV0dXJuIG5ldyBjKHtyZWFkKCl7dGhpcy5wdXNoKHQpLHRoaXMucHVzaChudWxsKX19KX0oZi5ib2R5KTtjb25zdCBkPXsuLi50LmhlYWRlcnN9O2YuYm9keS5sZW5ndGg+cG4mJihkWyJjb250ZW50LWVuY29kaW5nIl09Imd6aXAiLGw9bC5waXBlKHUoKSkpO2NvbnN0IG09bi5yZXF1ZXN0KHttZXRob2Q6IlBPU1QiLGFnZW50OmUsaGVhZGVyczpkLGhvc3RuYW1lOnIscGF0aDpgJHtvfSR7YX1gLHBvcnQ6cyxwcm90b2NvbDppLGNhOnQuY2FDZXJ0c30sKHQ9Pnt0Lm9uKCJkYXRhIiwoKCk9Pnt9KSksdC5vbigiZW5kIiwoKCk9Pnt9KSksdC5zZXRFbmNvZGluZygidXRmOCIpO2NvbnN0IG49dC5oZWFkZXJzWyJyZXRyeS1hZnRlciJdPz9udWxsLGU9dC5oZWFkZXJzWyJ4LXNlbnRyeS1yYXRlLWxpbWl0cyJdPz9udWxsO2goe3N0YXR1c0NvZGU6dC5zdGF0dXNDb2RlLGhlYWRlcnM6eyJyZXRyeS1hZnRlciI6biwieC1zZW50cnktcmF0ZS1saW1pdHMiOkFycmF5LmlzQXJyYXkoZSk/ZVswXXx8bnVsbDplfX0pfSkpO20ub24oImVycm9yIixwKSxsLnBpcGUobSl9KSl9KSl9fSh0LHQuaHR0cE1vZHVsZT8/byxmKTtyZXR1cm4gZW4odCxoKX0oe3VybDooYm49ZG4uZHNuLF9uPWRuLnR1bm5lbCx2bj1kbi5zZGtNZXRhZGF0YS5zZGssX258fGAke2Z1bmN0aW9uKHQpe3JldHVybmAke2Z1bmN0aW9uKHQpe2NvbnN0IG49dC5wcm90b2NvbD9gJHt0LnByb3RvY29sfTpgOiIiLGU9dC5wb3J0P2A6JHt0LnBvcnR9YDoiIjtyZXR1cm5gJHtufS8vJHt0Lmhvc3R9JHtlfSR7dC5wYXRoP2AvJHt0LnBhdGh9YDoiIn0vYXBpL2B9KHQpfSR7dC5wcm9qZWN0SWR9L2VudmVsb3BlL2B9KGJuKX0/JHt0bihibix2bil9YCkscmVjb3JkRHJvcHBlZEV2ZW50OigpPT57fX0pO2FzeW5jIGZ1bmN0aW9uIFNuKCl7aWYobW4pe2duKCJTZW5kaW5nIGFibm9ybWFsIHNlc3Npb24iKSxndChtbix7c3RhdHVzOiJhYm5vcm1hbCIsYWJub3JtYWxfbWVjaGFuaXNtOiJhbnJfZm9yZWdyb3VuZCJ9KTtjb25zdCB0PWZ1bmN0aW9uKHQsbixlLHIpe2NvbnN0IG89YXQoZSk7cmV0dXJuIG90KHtzZW50X2F0OihuZXcgRGF0ZSkudG9JU09TdHJpbmcoKSwuLi5vJiZ7c2RrOm99LC4uLiEhciYmbiYme2RzbjpUKG4pfX0sWyJhZ2dyZWdhdGVzImluIHQ/W3t0eXBlOiJzZXNzaW9ucyJ9LHRdOlt7dHlwZToic2Vzc2lvbiJ9LHQudG9KU09OKCldXSl9KG1uLGRuLmRzbixkbi5zZGtNZXRhZGF0YSxkbi50dW5uZWwpO2duKEpTT04uc3RyaW5naWZ5KHQpKSxhd2FpdCB3bi5zZW5kKHQpO3RyeXtuPy5wb3N0TWVzc2FnZSgic2Vzc2lvbi1lbmRlZCIpfWNhdGNoKHQpe319fWZ1bmN0aW9uICRuKHQpe2lmKCF0KXJldHVybjtjb25zdCBuPWZ1bmN0aW9uKHQpe2lmKCF0Lmxlbmd0aClyZXR1cm5bXTtjb25zdCBuPUFycmF5LmZyb20odCk7cmV0dXJuL3NlbnRyeVdyYXBwZWQvLnRlc3QoTShuKS5mdW5jdGlvbnx8IiIpJiZuLnBvcCgpLG4ucmV2ZXJzZSgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJihuLnBvcCgpLFUudGVzdChNKG4pLmZ1bmN0aW9ufHwiIikmJm4ucG9wKCkpLG4uc2xpY2UoMCxJKS5tYXAoKHQ9Pih7Li4udCxmaWxlbmFtZTp0LmZpbGVuYW1lfHxNKG4pLmZpbGVuYW1lLGZ1bmN0aW9uOnQuZnVuY3Rpb258fFB9KSkpfSh0KTtpZihkbi5hcHBSb290UGF0aClmb3IoY29uc3QgdCBvZiBuKXQuZmlsZW5hbWUmJih0LmZpbGVuYW1lPVcodC5maWxlbmFtZSxkbi5hcHBSb290UGF0aCkpO3JldHVybiBufWFzeW5jIGZ1bmN0aW9uIEVuKHQsbil7aWYoeW4pcmV0dXJuO3luPSEwLGF3YWl0IFNuKCksZ24oIlNlbmRpbmcgZXZlbnQiKTtjb25zdCBlPXtldmVudF9pZDpZKCksY29udGV4dHM6ZG4uY29udGV4dHMscmVsZWFzZTpkbi5yZWxlYXNlLGVudmlyb25tZW50OmRuLmVudmlyb25tZW50LGRpc3Q6ZG4uZGlzdCxwbGF0Zm9ybToibm9kZSIsbGV2ZWw6ImVycm9yIixleGNlcHRpb246e3ZhbHVlczpbe3R5cGU6IkFwcGxpY2F0aW9uTm90UmVzcG9uZGluZyIsdmFsdWU6YEFwcGxpY2F0aW9uIE5vdCBSZXNwb25kaW5nIGZvciBhdCBsZWFzdCAke2RuLmFuclRocmVzaG9sZH0gbXNgLHN0YWNrdHJhY2U6e2ZyYW1lczokbih0KX0sbWVjaGFuaXNtOnt0eXBlOiJBTlIifX1dfSx0YWdzOmRuLnN0YXRpY1RhZ3N9O24mJmZ1bmN0aW9uKHQsbil7aWYoUXQodCxuKSwhdC5jb250ZXh0cz8udHJhY2Upe2NvbnN0e3RyYWNlSWQ6ZSxzcGFuSWQ6cixwYXJlbnRTcGFuSWQ6b309bi5wcm9wYWdhdGlvbkNvbnRleHQ7dC5jb250ZXh0cz17dHJhY2U6e3RyYWNlX2lkOmUsc3Bhbl9pZDpyLHBhcmVudF9zcGFuX2lkOm99LC4uLnQuY29udGV4dHN9fX0oZSxuKTtjb25zdCByPVZ0KGUsZG4uZHNuLGRuLnNka01ldGFkYXRhLGRuLnR1bm5lbCk7Z24oSlNPTi5zdHJpbmdpZnkocikpLGF3YWl0IHduLnNlbmQociksYXdhaXQgd24uZmx1c2goMmUzKSxzZXRUaW1lb3V0KCgoKT0+e3Byb2Nlc3MuZXhpdCgwKX0pLDVlMyl9bGV0IHhuO2lmKGduKCJTdGFydGVkIiksZG4uY2FwdHVyZVN0YWNrVHJhY2Upe2duKCJDb25uZWN0aW5nIHRvIGRlYnVnZ2VyIik7Y29uc3Qgbj1uZXcgdDtuLmNvbm5lY3RUb01haW5UaHJlYWQoKSxnbigiQ29ubmVjdGVkIHRvIGRlYnVnZ2VyIik7Y29uc3QgZT1uZXcgTWFwO24ub24oIkRlYnVnZ2VyLnNjcmlwdFBhcnNlZCIsKHQ9PntlLnNldCh0LnBhcmFtcy5zY3JpcHRJZCx0LnBhcmFtcy51cmwpfSkpLG4ub24oIkRlYnVnZ2VyLnBhdXNlZCIsKHQ9PntpZigib3RoZXIiPT09dC5wYXJhbXMucmVhc29uKXRyeXtnbigiRGVidWdnZXIgcGF1c2VkIik7Y29uc3Qgcz1bLi4udC5wYXJhbXMuY2FsbEZyYW1lc10saT1kbi5hcHBSb290UGF0aD9mdW5jdGlvbih0PShwcm9jZXNzLmFyZ3ZbMV0/Syhwcm9jZXNzLmFyZ3ZbMV0pOnByb2Nlc3MuY3dkKCkpLG49IlxcIj09PW8pe2NvbnN0IGU9bj9sbih0KTp0O3JldHVybiB0PT57aWYoIXQpcmV0dXJuO2NvbnN0IG89bj9sbih0KTp0O2xldHtkaXI6cyxiYXNlOmksZXh0OmN9PXIucGFyc2Uobyk7Ii5qcyIhPT1jJiYiLm1qcyIhPT1jJiYiLmNqcyIhPT1jfHwoaT1pLnNsaWNlKDAsLTEqYy5sZW5ndGgpKSxzfHwocz0iLiIpO2NvbnN0IHU9cy5sYXN0SW5kZXhPZigiL25vZGVfbW9kdWxlcyIpO2lmKHU+LTEpcmV0dXJuYCR7cy5zbGljZSh1KzE0KS5yZXBsYWNlKC9cLy9nLCIuIil9OiR7aX1gO2lmKHMuc3RhcnRzV2l0aChlKSl7bGV0IHQ9cy5zbGljZShlLmxlbmd0aCsxKS5yZXBsYWNlKC9cLy9nLCIuIik7cmV0dXJuIHQmJih0Kz0iOiIpLHQrPWksdH1yZXR1cm4gaX19KGRuLmFwcFJvb3RQYXRoKTooKT0+e30sYz1zLm1hcCgodD0+ZnVuY3Rpb24odCxuLGUpe2NvbnN0IHI9bj9uLnJlcGxhY2UoL15maWxlOlwvXC8vLCIiKTp2b2lkIDAsbz10LmxvY2F0aW9uLmNvbHVtbk51bWJlcj90LmxvY2F0aW9uLmNvbHVtbk51bWJlcisxOnZvaWQgMCxzPXQubG9jYXRpb24ubGluZU51bWJlcj90LmxvY2F0aW9uLmxpbmVOdW1iZXIrMTp2b2lkIDA7cmV0dXJuIE8oe2ZpbGVuYW1lOnIsbW9kdWxlOmUociksZnVuY3Rpb246dC5mdW5jdGlvbk5hbWV8fFAsY29sbm86byxsaW5lbm86cyxpbl9hcHA6cj9YKHIpOnZvaWQgMH0pfSh0LGUuZ2V0KHQubG9jYXRpb24uc2NyaXB0SWQpLGkpKSksdT1zZXRUaW1lb3V0KCgoKT0+e0VuKGMpLnRoZW4obnVsbCwoKCk9PntnbigiU2VuZGluZyBBTlIgZXZlbnQgZmFpbGVkLiIpfSkpfSksNWUzKTtuLnBvc3QoIlJ1bnRpbWUuZXZhbHVhdGUiLHtleHByZXNzaW9uOiJnbG9iYWwuX19TRU5UUllfR0VUX1NDT1BFU19fKCk7IixzaWxlbnQ6ITAscmV0dXJuQnlWYWx1ZTohMH0sKCh0LGUpPT57dCYmZ24oYEVycm9yIGV4ZWN1dGluZyBzY3JpcHQ6ICcke3QubWVzc2FnZX0nYCksY2xlYXJUaW1lb3V0KHUpO2NvbnN0IHI9ZSYmZS5yZXN1bHQ/ZS5yZXN1bHQudmFsdWU6dm9pZCAwO24ucG9zdCgiRGVidWdnZXIucmVzdW1lIiksbi5wb3N0KCJEZWJ1Z2dlci5kaXNhYmxlIiksRW4oYyxyKS50aGVuKG51bGwsKCgpPT57Z24oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZC4iKX0pKX0pKX1jYXRjaCh0KXt0aHJvdyBuLnBvc3QoIkRlYnVnZ2VyLnJlc3VtZSIpLG4ucG9zdCgiRGVidWdnZXIuZGlzYWJsZSIpLHR9fSkpLHhuPSgpPT57dHJ5e24ucG9zdCgiRGVidWdnZXIuZW5hYmxlIiwoKCk9PntuLnBvc3QoIkRlYnVnZ2VyLnBhdXNlIil9KSl9Y2F0Y2godCl7fX19Y29uc3R7cG9sbDpObn09ZnVuY3Rpb24odCxuLGUscil7Y29uc3Qgbz10KCk7bGV0IHM9ITEsaT0hMDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57Y29uc3QgdD1vLmdldFRpbWVNcygpOyExPT09cyYmdD5uK2UmJihzPSEwLGkmJnIoKSksdDxuK2UmJihzPSExKX0pLDIwKSx7cG9sbDooKT0+e28ucmVzZXQoKX0sZW5hYmxlZDp0PT57aT10fX19KChmdW5jdGlvbigpe2xldCB0PXByb2Nlc3MuaHJ0aW1lKCk7cmV0dXJue2dldFRpbWVNczooKT0+e2NvbnN0W24sZV09cHJvY2Vzcy5ocnRpbWUodCk7cmV0dXJuIE1hdGguZmxvb3IoMWUzKm4rZS8xZTYpfSxyZXNldDooKT0+e3Q9cHJvY2Vzcy5ocnRpbWUoKX19fSksZG4ucG9sbEludGVydmFsLGRuLmFuclRocmVzaG9sZCwoZnVuY3Rpb24oKXtnbigiV2F0Y2hkb2cgdGltZW91dCIpLHhuPyhnbigiUGF1c2luZyBkZWJ1Z2dlciB0byBjYXB0dXJlIHN0YWNrIHRyYWNlIikseG4oKSk6KGduKCJDYXB0dXJpbmcgZXZlbnQgd2l0aG91dCBhIHN0YWNrIHRyYWNlIiksRW4oKS50aGVuKG51bGwsKCgpPT57Z24oIlNlbmRpbmcgQU5SIGV2ZW50IGZhaWxlZCBvbiB3YXRjaGRvZyB0aW1lb3V0LiIpfSkpKX0pKTtuPy5vbigibWVzc2FnZSIsKHQ9Pnt0LnNlc3Npb24mJihtbj15dCh0LnNlc3Npb24pKSxObigpfSkpOw==",$je=50,Qje=5e3;function FM(t,...e){kM.logger.log(`[ANR] ${t}`,...e)}function eHe(){return kM.GLOBAL_OBJ}function tHe(){let t=pi.getGlobalScope().getScopeData();return pi.mergeScopeData(t,pi.getIsolationScope().getScopeData()),pi.mergeScopeData(t,pi.getCurrentScope().getScopeData()),t.attachments=[],t.eventProcessors=[],t}async function rHe(t){let e={message:"ANR"},r={};for(let n of t.getEventProcessors()){if(e===null)break;e=await n(e,r)}return zje([e,"optionalAccess",n=>n.contexts])||{}}var nHe="Anr",oHe=(t={})=>{if(HM.NODE_VERSION.major<16||HM.NODE_VERSION.major===16&&HM.NODE_VERSION.minor<17)throw new Error("ANR detection requires Node 16.17.0 or later");let e,r,n=eHe();return n.__SENTRY_GET_SCOPES__=tHe,{name:nHe,startWorker:()=>{e||r&&(e=sHe(r,t))},stopWorker:()=>{e&&e.then(o=>{o(),e=void 0})},setup(o){r=o,setImmediate(()=>this.startWorker())}}},iHe=pi.defineIntegration(oHe);async function sHe(t,e){let r=t.getDsn();if(!r)return()=>{};let n=await rHe(t);a$([n,"access",l=>l.app,"optionalAccess",l=>delete l.app_memory]),a$([n,"access",l=>l.device,"optionalAccess",l=>delete l.free_memory]);let o=t.getOptions(),i=t.getSdkMetadata()||{};i.sdk&&(i.sdk.integrations=o.integrations.map(l=>l.name));let s={debug:kM.logger.isEnabled(),dsn:r,tunnel:o.tunnel,environment:o.environment||"production",release:o.release,dist:o.dist,sdkMetadata:i,appRootPath:e.appRootPath,pollInterval:e.pollInterval||$je,anrThreshold:e.anrThreshold||Qje,captureStackTrace:!!e.captureStackTrace,staticTags:e.staticTags||{},contexts:n};if(s.captureStackTrace){let l=await import("node:inspector");l.url()||l.open(0)}let a=new Jje.Worker(new URL(`data:application/javascript;base64,${u$}`),{workerData:s,execArgv:[]});process.on("exit",()=>{a.terminate()});let u=setInterval(()=>{try{let l=pi.getCurrentScope().getSession(),d=l?{...l,toJSON:void 0}:void 0;a.postMessage({session:d})}catch{}},s.pollInterval);return u.unref(),a.on("message",l=>{l==="session-ended"&&(FM("ANR event sent from ANR worker. Clearing session in this thread."),pi.getCurrentScope().setSession(void 0))}),a.once("error",l=>{clearInterval(u),FM("ANR worker error",l)}),a.once("exit",l=>{clearInterval(u),FM("ANR worker exit",l)}),a.unref(),()=>{a.terminate(),clearInterval(u)}}Bm.anrIntegration=iHe;Bm.base64WorkerScript=u$});var qm=c(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.ExpressLayerType=void 0;var aHe;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(aHe=zd.ExpressLayerType||(zd.ExpressLayerType={}))});var jm=c(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.AttributeNames=void 0;var uHe;(function(t){t.EXPRESS_TYPE="express.type",t.EXPRESS_NAME="express.name"})(uHe=Jd.AttributeNames||(Jd.AttributeNames={}))});var WM=c(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu._LAYERS_STORE_PROPERTY=Vu.kLayerPatched=void 0;Vu.kLayerPatched=Symbol("express-layer-patched");Vu._LAYERS_STORE_PROPERTY="__ot_middlewares"});var d$=c(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getLayerPath=Mt.asErrorAndMessage=Mt.isLayerIgnored=Mt.getLayerMetadata=Mt.getRouterPath=Mt.storeLayerPath=void 0;var YM=qm(),Bu=jm(),KM=WM(),cHe=(t,e)=>{Array.isArray(t[KM._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,KM._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e!==void 0&&t[KM._LAYERS_STORE_PROPERTY].push(e)};Mt.storeLayerPath=cHe;var lHe=(t,e)=>{var r,n,o,i;let s=(n=(r=e.handle)===null||r===void 0?void 0:r.stack)===null||n===void 0?void 0:n[0];return!((o=s?.route)===null||o===void 0)&&o.path?`${t}${s.route.path}`:!((i=s?.handle)===null||i===void 0)&&i.stack?(0,Mt.getRouterPath)(t,s):t};Mt.getRouterPath=lHe;var dHe=(t,e,r)=>{var n;if(e.name==="router"){let o=(0,Mt.getRouterPath)("",e),i=o||r||t||"/";return{attributes:{[Bu.AttributeNames.EXPRESS_NAME]:i,[Bu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.ROUTER},name:`router - ${i}`}}else return e.name==="bound dispatch"?{attributes:{[Bu.AttributeNames.EXPRESS_NAME]:(n=t||r)!==null&&n!==void 0?n:"request handler",[Bu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t||r}`:""}`}:{attributes:{[Bu.AttributeNames.EXPRESS_NAME]:e.name,[Bu.AttributeNames.EXPRESS_TYPE]:YM.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};Mt.getLayerMetadata=dHe;var pHe=(t,e)=>{if(typeof e=="string")return e===t;if(e instanceof RegExp)return e.test(t);if(typeof e=="function")return e(t);throw new TypeError("Pattern is in unsupported datatype")},_He=(t,e,r)=>{var n;if(Array.isArray(r?.ignoreLayersType)&&(!((n=r?.ignoreLayersType)===null||n===void 0)&&n.includes(e)))return!0;if(Array.isArray(r?.ignoreLayers)===!1)return!1;try{for(let o of r.ignoreLayers)if(pHe(t,o))return!0}catch{}return!1};Mt.isLayerIgnored=_He;var fHe=t=>t instanceof Error?[t,t.message]:[String(t),String(t)];Mt.asErrorAndMessage=fHe;var gHe=t=>{let e=t[0];return Array.isArray(e)?e.map(r=>l$(r)||"").join(","):l$(e)};Mt.getLayerPath=gHe;var l$=t=>{if(typeof t=="string")return t;if(t instanceof RegExp||typeof t=="number")return t.toString()}});var p$=c(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.PACKAGE_NAME=qu.PACKAGE_VERSION=void 0;qu.PACKAGE_VERSION="0.44.0";qu.PACKAGE_NAME="@opentelemetry/instrumentation-express"});var _$=c($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.SeverityNumber=void 0;var EHe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(EHe=$d.SeverityNumber||($d.SeverityNumber={}))});var Fm=c(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.NOOP_LOGGER=ju.NoopLogger=void 0;var Hm=class{emit(e){}};ju.NoopLogger=Hm;ju.NOOP_LOGGER=new Hm});var Wm=c(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.NOOP_LOGGER_PROVIDER=Hu.NoopLoggerProvider=void 0;var hHe=Fm(),km=class{getLogger(e,r,n){return new hHe.NoopLogger}};Hu.NoopLoggerProvider=km;Hu.NOOP_LOGGER_PROVIDER=new km});var ZM=c(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.ProxyLogger=void 0;var mHe=Fm(),XM=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):mHe.NOOP_LOGGER}};Ym.ProxyLogger=XM});var JM=c(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.ProxyLoggerProvider=void 0;var THe=Wm(),SHe=ZM(),zM=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new SHe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:THe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};Km.ProxyLoggerProvider=zM});var f$=c(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm._globalThis=void 0;Xm._globalThis=typeof globalThis=="object"?globalThis:global});var g$=c(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm._globalThis=void 0;var AHe=f$();Object.defineProperty(Zm,"_globalThis",{enumerable:!0,get:function(){return AHe._globalThis}})});var E$=c(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm._globalThis=void 0;var RHe=g$();Object.defineProperty(zm,"_globalThis",{enumerable:!0,get:function(){return RHe._globalThis}})});var h$=c(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.API_BACKWARDS_COMPATIBILITY_VERSION=On.makeGetter=On._global=On.GLOBAL_LOGS_API_KEY=void 0;var OHe=E$();On.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");On._global=OHe._globalThis;function IHe(t,e,r){return n=>n===t?e:r}On.makeGetter=IHe;On.API_BACKWARDS_COMPATIBILITY_VERSION=1});var T$=c(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.LogsAPI=void 0;var Cr=h$(),bHe=Wm(),m$=JM(),$M=class t{constructor(){this._proxyLoggerProvider=new m$.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Cr._global[Cr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Cr._global[Cr.GLOBAL_LOGS_API_KEY]=(0,Cr.makeGetter)(Cr.API_BACKWARDS_COMPATIBILITY_VERSION,e,bHe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Cr._global[Cr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Cr._global,Cr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Cr._global[Cr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new m$.ProxyLoggerProvider}};Jm.LogsAPI=$M});var QM=c(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.logs=tt.ProxyLoggerProvider=tt.ProxyLogger=tt.NoopLoggerProvider=tt.NOOP_LOGGER_PROVIDER=tt.NoopLogger=tt.NOOP_LOGGER=tt.SeverityNumber=void 0;var PHe=_$();Object.defineProperty(tt,"SeverityNumber",{enumerable:!0,get:function(){return PHe.SeverityNumber}});var S$=Fm();Object.defineProperty(tt,"NOOP_LOGGER",{enumerable:!0,get:function(){return S$.NOOP_LOGGER}});Object.defineProperty(tt,"NoopLogger",{enumerable:!0,get:function(){return S$.NoopLogger}});var A$=Wm();Object.defineProperty(tt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return A$.NOOP_LOGGER_PROVIDER}});Object.defineProperty(tt,"NoopLoggerProvider",{enumerable:!0,get:function(){return A$.NoopLoggerProvider}});var yHe=ZM();Object.defineProperty(tt,"ProxyLogger",{enumerable:!0,get:function(){return yHe.ProxyLogger}});var vHe=JM();Object.defineProperty(tt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return vHe.ProxyLoggerProvider}});var NHe=T$();tt.logs=NHe.LogsAPI.getInstance()});var R$=c(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.disableInstrumentations=Fu.enableInstrumentations=void 0;function CHe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Fu.enableInstrumentations=CHe;function MHe(t){t.forEach(e=>e.disable())}Fu.disableInstrumentations=MHe});var b$=c($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.registerInstrumentations=void 0;var O$=(P(),m(b)),LHe=QM(),I$=R$();function DHe(t){var e,r;let n=t.tracerProvider||O$.trace.getTracerProvider(),o=t.meterProvider||O$.metrics.getMeterProvider(),i=t.loggerProvider||LHe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,I$.enableInstrumentations)(s,n,o,i),()=>{(0,I$.disableInstrumentations)(s)}}$m.registerInstrumentations=DHe});var P$=c(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.InstrumentationAbstract=void 0;var eL=(P(),m(b)),GHe=QM(),Qm=Le(),tL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=Qm.wrap,this._unwrap=Qm.unwrap,this._massWrap=Qm.massWrap,this._massUnwrap=Qm.massUnwrap,this.setConfig(n),this._diag=eL.diag.createComponentLogger({namespace:e}),this._tracer=eL.trace.getTracer(e,r),this._meter=eL.metrics.getMeter(e,r),this._logger=GHe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};eT.InstrumentationAbstract=tL});var y$=c(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ModuleNameTrie=_i.ModuleNameSeparator=void 0;_i.ModuleNameSeparator="/";var tT=class{constructor(){this.hooks=[],this.children=new Map}},rL=class{constructor(){this._trie=new tT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(_i.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new tT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(_i.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};_i.ModuleNameTrie=rL});var N$=c(rT=>{"use strict";Object.defineProperty(rT,"__esModule",{value:!0});rT.RequireInTheMiddleSingleton=void 0;var UHe=Ge(),v$=require("path"),nL=y$(),xHe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),oL=class t{constructor(){this._moduleNameTrie=new nL.ModuleNameTrie,this._initialize()}_initialize(){new UHe.Hook(null,{internals:!0},(e,r,n)=>{let o=wHe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return xHe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};rT.RequireInTheMiddleSingleton=oL;function wHe(t){return v$.sep!==nL.ModuleNameSeparator?t.split(v$.sep).join(nL.ModuleNameSeparator):t}});var iL=c(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.isWrapped=fi.safeExecuteInTheMiddleAsync=fi.safeExecuteInTheMiddle=void 0;function VHe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}fi.safeExecuteInTheMiddle=VHe;async function BHe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}fi.safeExecuteInTheMiddleAsync=BHe;function qHe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}fi.isWrapped=qHe});var L$=c(nT=>{"use strict";Object.defineProperty(nT,"__esModule",{value:!0});nT.InstrumentationBase=void 0;var sL=require("path"),C$=require("util"),jHe=Tr(),aL=Le(),HHe=P$(),FHe=N$(),kHe=Rr(),Qd=(P(),m(b)),WHe=Ge(),YHe=require("fs"),KHe=iL(),uL=class extends HHe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=FHe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,KHe.isWrapped)(i[s])&&this._unwrap(i,s),C$.types.isProxy(i)){let u=(0,aL.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,aL.wrap)(i,s,a)},this._unwrap=(i,s)=>C$.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,aL.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{Qd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Qd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{Qd.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){Qd.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,YHe.readFileSync)(sL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{Qd.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return M$(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=sL.normalize(n);return a.filter(d=>d.name===u).filter(d=>M$(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=sL.isAbsolute(e.name)?new WHe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new kHe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};nT.InstrumentationBase=uL;function M$(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,jHe.satisfies)(e,n,{includePrerelease:r}))}});var D$=c(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.normalize=void 0;var XHe=require("path");Object.defineProperty(oT,"normalize",{enumerable:!0,get:function(){return XHe.normalize}})});var G$=c(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.normalize=ku.InstrumentationBase=void 0;var ZHe=L$();Object.defineProperty(ku,"InstrumentationBase",{enumerable:!0,get:function(){return ZHe.InstrumentationBase}});var zHe=D$();Object.defineProperty(ku,"normalize",{enumerable:!0,get:function(){return zHe.normalize}})});var cL=c(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.normalize=Wu.InstrumentationBase=void 0;var U$=G$();Object.defineProperty(Wu,"InstrumentationBase",{enumerable:!0,get:function(){return U$.InstrumentationBase}});Object.defineProperty(Wu,"normalize",{enumerable:!0,get:function(){return U$.normalize}})});var x$=c(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.InstrumentationNodeModuleDefinition=void 0;var lL=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};iT.InstrumentationNodeModuleDefinition=lL});var w$=c(sT=>{"use strict";Object.defineProperty(sT,"__esModule",{value:!0});sT.InstrumentationNodeModuleFile=void 0;var JHe=cL(),dL=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,JHe.normalize)(e)}};sT.InstrumentationNodeModuleFile=dL});var V$=c(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.safeExecuteInTheMiddleAsync=Lt.safeExecuteInTheMiddle=Lt.isWrapped=Lt.InstrumentationNodeModuleFile=Lt.InstrumentationNodeModuleDefinition=Lt.InstrumentationBase=Lt.registerInstrumentations=void 0;var $He=b$();Object.defineProperty(Lt,"registerInstrumentations",{enumerable:!0,get:function(){return $He.registerInstrumentations}});var QHe=cL();Object.defineProperty(Lt,"InstrumentationBase",{enumerable:!0,get:function(){return QHe.InstrumentationBase}});var eFe=x$();Object.defineProperty(Lt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return eFe.InstrumentationNodeModuleDefinition}});var tFe=w$();Object.defineProperty(Lt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return tFe.InstrumentationNodeModuleFile}});var pL=iL();Object.defineProperty(Lt,"isWrapped",{enumerable:!0,get:function(){return pL.isWrapped}});Object.defineProperty(Lt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return pL.safeExecuteInTheMiddle}});Object.defineProperty(Lt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return pL.safeExecuteInTheMiddleAsync}})});var F$=c(aT=>{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});aT.ExpressInstrumentation=void 0;var B$=ae(),Fs=(P(),m(b)),q$=qm(),j$=jm(),gi=d$(),H$=p$(),Yu=V$(),rFe=($(),m(J)),ep=WM(),_L=class extends Yu.InstrumentationBase{constructor(e={}){super(H$.PACKAGE_NAME,H$.PACKAGE_VERSION,e)}init(){return[new Yu.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <5"],e=>{let r=e.Router;return(0,Yu.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0,Yu.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0,Yu.isWrapped)(e.application.use)&&this._unwrap(e.application,"use"),this._wrap(e.application,"use",this._getAppUsePatch()),e},e=>{if(e===void 0)return;let r=e.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(e.application,"use")})]}_getRoutePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,gi.getLayerPath)(o)),i}}}_getRouterUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this.stack[this.stack.length-1];return e._applyPatch(s,(0,gi.getLayerPath)(o)),i}}}_getAppUsePatch(){let e=this;return function(r){return function(...o){let i=r.apply(this,o),s=this._router.stack[this._router.stack.length-1];return e._applyPatch(s,(0,gi.getLayerPath)(o)),i}}}_applyPatch(e,r){let n=this;e[ep.kLayerPatched]!==!0&&(e[ep.kLayerPatched]=!0,this._wrap(e,"handle",o=>{if(o.length===4)return o;let i=function(s,a){(0,gi.storeLayerPath)(s,r);let u=s[ep._LAYERS_STORE_PROPERTY].filter(M=>M!=="/"&&M!=="/*").join("").replace(/\/{2,}/g,"/"),l={[rFe.SEMATTRS_HTTP_ROUTE]:u.length>0?u:"/"},d=(0,gi.getLayerMetadata)(u,e,r),p=d.attributes[j$.AttributeNames.EXPRESS_TYPE],_=(0,B$.getRPCMetadata)(Fs.context.active());if(_?.type===B$.RPCType.HTTP&&(_.route=u||"/"),(0,gi.isLayerIgnored)(d.name,p,n.getConfig()))return p===q$.ExpressLayerType.MIDDLEWARE&&s[ep._LAYERS_STORE_PROPERTY].pop(),o.apply(this,arguments);if(Fs.trace.getSpan(Fs.context.active())===void 0)return o.apply(this,arguments);let f=n._getSpanName({request:s,layerType:p,route:u},d.name),g=n.tracer.startSpan(f,{attributes:Object.assign(l,d.attributes)}),{requestHook:E}=n.getConfig();E&&(0,Yu.safeExecuteInTheMiddle)(()=>E(g,{request:s,layerType:p,route:u}),M=>{M&&Fs.diag.error("express instrumentation: request hook failed",M)},!0);let T=!1;d.attributes[j$.AttributeNames.EXPRESS_TYPE]!==q$.ExpressLayerType.MIDDLEWARE&&(g.end(),T=!0);let y=()=>{T===!1&&(T=!0,g.end())},C=Array.from(arguments),L=C.findIndex(M=>typeof M=="function");L>=0&&(arguments[L]=function(){var M;let v=arguments[0],D=![void 0,null,"route","router"].includes(v);if(!T&&D){let[ee,z]=(0,gi.asErrorAndMessage)(v);g.recordException(ee),g.setStatus({code:Fs.SpanStatusCode.ERROR,message:z})}return T===!1&&(T=!0,(M=s.res)===null||M===void 0||M.removeListener("finish",y),g.end()),s.route&&D||s[ep._LAYERS_STORE_PROPERTY].pop(),C[L].apply(this,arguments)});try{return o.apply(this,arguments)}catch(M){let[v,D]=(0,gi.asErrorAndMessage)(M);throw g.recordException(v),g.setStatus({code:Fs.SpanStatusCode.ERROR,message:D}),M}finally{T||a.once("finish",y)}};for(let s in o)Object.defineProperty(i,s,{get(){return o[s]},set(a){o[s]=a}});return i}))}_getSpanName(e,r){var n;let{spanNameHook:o}=this.getConfig();if(!(o instanceof Function))return r;try{return(n=o(e,r))!==null&&n!==void 0?n:r}catch(i){return Fs.diag.error("express instrumentation: error calling span name rewrite hook",i),r}}};aT.ExpressInstrumentation=_L});var W$=c(k$=>{"use strict";Object.defineProperty(k$,"__esModule",{value:!0})});var Y$=c(In=>{"use strict";var nFe=In&&In.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uT=In&&In.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nFe(e,t,r)};Object.defineProperty(In,"__esModule",{value:!0});uT(F$(),In);uT(qm(),In);uT(jm(),In);uT(W$(),In)});var K$=c(fL=>{Object.defineProperty(fL,"__esModule",{value:!0});var oFe=wu(),iFe=t=>({package:t,"javascript.is_cjs":oFe.isCjs()});fL.createMissingInstrumentationContext=iFe});var Ku=c(gL=>{var{_optionalChain:sFe}=I();Object.defineProperty(gL,"__esModule",{value:!0});var aFe=ae(),cT=k(),uFe=I(),cFe=wu(),lFe=K$();function dFe(t,e){let r=cT.getClient();!sFe([r,"optionalAccess",n=>n.getOptions,"call",n=>n(),"access",n=>n.disableInstrumentationWarnings])&&!aFe.isWrapped(t)&&cT.isEnabled()&&cT.hasTracingEnabled()&&(uFe.consoleSandbox(()=>{cFe.isCjs()?console.warn(`[Sentry] ${e} is not instrumented. This is likely because you required/imported ${e} before calling \`Sentry.init()\`.`):console.warn(`[Sentry] ${e} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${e}/install/esm/.`)}),cT.getGlobalScope().setContext("missing_instrumentation",lFe.createMissingInstrumentationContext(e)))}gL.ensureIsWrapped=dFe});var EL=c(Xu=>{var{_optionalChain:pFe}=I();Object.defineProperty(Xu,"__esModule",{value:!0});var _Fe=Y$(),co=k(),fFe=I(),gFe=Rn(),EFe=be(),hFe=Tn(),mFe=Ku(),X$="Express",Z$=EFe.generateInstrumentOnce(X$,()=>new _Fe.ExpressInstrumentation({requestHook(t){hFe.addOriginToSpan(t,"auto.http.otel.express");let e=co.spanToJSON(t).data||{},r=e["express.type"];r&&t.setAttribute(co.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.express`);let n=e["express.name"];typeof n=="string"&&t.updateName(n)},spanNameHook(t,e){if(co.getIsolationScope()===co.getDefaultIsolationScope())return gFe.DEBUG_BUILD&&fFe.logger.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),e;if(t.layerType==="request_handler"){let r=t.request,n=r.method?r.method.toUpperCase():"GET";co.getIsolationScope().setTransactionName(`${n} ${t.route}`)}return e}})),TFe=()=>({name:X$,setupOnce(){Z$()}}),SFe=co.defineIntegration(TFe);function z$(t){return function(r,n,o,i){if((pFe([t,"optionalAccess",a=>a.shouldHandleError])||OFe)(r)){let a=co.getClient();if(a&&a.getOptions().autoSessionTracking&&a._sessionFlusher!==void 0){let d=co.getIsolationScope().getRequestSession();d&&d.status!==void 0&&(d.status="crashed")}let u=co.captureException(r,{mechanism:{type:"middleware",handled:!1}});o.sentry=u,i(r);return}i(r)}}function AFe(t,e){t.use(z$(e)),mFe.ensureIsWrapped(t.use,"express")}function RFe(t){let e=t.status||t.statusCode||t.status_code||t.output&&t.output.statusCode;return e?parseInt(e,10):500}function OFe(t){return RFe(t)>=500}Xu.expressErrorHandler=z$;Xu.expressIntegration=SFe;Xu.instrumentExpress=Z$;Xu.setupExpressErrorHandler=AFe});var hL=c(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.FastifyNames=zr.FastifyTypes=zr.AttributeNames=void 0;var IFe;(function(t){t.FASTIFY_NAME="fastify.name",t.FASTIFY_TYPE="fastify.type",t.HOOK_NAME="hook.name",t.PLUGIN_NAME="plugin.name"})(IFe=zr.AttributeNames||(zr.AttributeNames={}));var bFe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})(bFe=zr.FastifyTypes||(zr.FastifyTypes={}));var PFe;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(PFe=zr.FastifyNames||(zr.FastifyNames={}))});var $$=c(J$=>{"use strict";Object.defineProperty(J$,"__esModule",{value:!0})});var Q$=c(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.SeverityNumber=void 0;var yFe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(yFe=tp.SeverityNumber||(tp.SeverityNumber={}))});var dT=c(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.NOOP_LOGGER=Zu.NoopLogger=void 0;var lT=class{emit(e){}};Zu.NoopLogger=lT;Zu.NOOP_LOGGER=new lT});var _T=c(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.NOOP_LOGGER_PROVIDER=zu.NoopLoggerProvider=void 0;var vFe=dT(),pT=class{getLogger(e,r,n){return new vFe.NoopLogger}};zu.NoopLoggerProvider=pT;zu.NOOP_LOGGER_PROVIDER=new pT});var TL=c(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0});fT.ProxyLogger=void 0;var NFe=dT(),mL=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):NFe.NOOP_LOGGER}};fT.ProxyLogger=mL});var AL=c(gT=>{"use strict";Object.defineProperty(gT,"__esModule",{value:!0});gT.ProxyLoggerProvider=void 0;var CFe=_T(),MFe=TL(),SL=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new MFe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:CFe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};gT.ProxyLoggerProvider=SL});var eQ=c(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET._globalThis=void 0;ET._globalThis=typeof globalThis=="object"?globalThis:global});var tQ=c(hT=>{"use strict";Object.defineProperty(hT,"__esModule",{value:!0});hT._globalThis=void 0;var LFe=eQ();Object.defineProperty(hT,"_globalThis",{enumerable:!0,get:function(){return LFe._globalThis}})});var rQ=c(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0});mT._globalThis=void 0;var DFe=tQ();Object.defineProperty(mT,"_globalThis",{enumerable:!0,get:function(){return DFe._globalThis}})});var nQ=c(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.API_BACKWARDS_COMPATIBILITY_VERSION=bn.makeGetter=bn._global=bn.GLOBAL_LOGS_API_KEY=void 0;var GFe=rQ();bn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");bn._global=GFe._globalThis;function UFe(t,e,r){return n=>n===t?e:r}bn.makeGetter=UFe;bn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var iQ=c(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0});TT.LogsAPI=void 0;var Mr=nQ(),xFe=_T(),oQ=AL(),RL=class t{constructor(){this._proxyLoggerProvider=new oQ.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Mr._global[Mr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Mr._global[Mr.GLOBAL_LOGS_API_KEY]=(0,Mr.makeGetter)(Mr.API_BACKWARDS_COMPATIBILITY_VERSION,e,xFe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Mr._global[Mr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Mr._global,Mr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Mr._global[Mr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new oQ.ProxyLoggerProvider}};TT.LogsAPI=RL});var OL=c(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.logs=rt.ProxyLoggerProvider=rt.ProxyLogger=rt.NoopLoggerProvider=rt.NOOP_LOGGER_PROVIDER=rt.NoopLogger=rt.NOOP_LOGGER=rt.SeverityNumber=void 0;var wFe=Q$();Object.defineProperty(rt,"SeverityNumber",{enumerable:!0,get:function(){return wFe.SeverityNumber}});var sQ=dT();Object.defineProperty(rt,"NOOP_LOGGER",{enumerable:!0,get:function(){return sQ.NOOP_LOGGER}});Object.defineProperty(rt,"NoopLogger",{enumerable:!0,get:function(){return sQ.NoopLogger}});var aQ=_T();Object.defineProperty(rt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return aQ.NOOP_LOGGER_PROVIDER}});Object.defineProperty(rt,"NoopLoggerProvider",{enumerable:!0,get:function(){return aQ.NoopLoggerProvider}});var VFe=TL();Object.defineProperty(rt,"ProxyLogger",{enumerable:!0,get:function(){return VFe.ProxyLogger}});var BFe=AL();Object.defineProperty(rt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return BFe.ProxyLoggerProvider}});var qFe=iQ();rt.logs=qFe.LogsAPI.getInstance()});var uQ=c(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.disableInstrumentations=Ju.enableInstrumentations=void 0;function jFe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ju.enableInstrumentations=jFe;function HFe(t){t.forEach(e=>e.disable())}Ju.disableInstrumentations=HFe});var dQ=c(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.registerInstrumentations=void 0;var cQ=(P(),m(b)),FFe=OL(),lQ=uQ();function kFe(t){var e,r;let n=t.tracerProvider||cQ.trace.getTracerProvider(),o=t.meterProvider||cQ.metrics.getMeterProvider(),i=t.loggerProvider||FFe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,lQ.enableInstrumentations)(s,n,o,i),()=>{(0,lQ.disableInstrumentations)(s)}}ST.registerInstrumentations=kFe});var pQ=c(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.InstrumentationAbstract=void 0;var IL=(P(),m(b)),WFe=OL(),AT=Le(),bL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=AT.wrap,this._unwrap=AT.unwrap,this._massWrap=AT.massWrap,this._massUnwrap=AT.massUnwrap,this.setConfig(n),this._diag=IL.diag.createComponentLogger({namespace:e}),this._tracer=IL.trace.getTracer(e,r),this._meter=IL.metrics.getMeter(e,r),this._logger=WFe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};RT.InstrumentationAbstract=bL});var _Q=c(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.ModuleNameTrie=Ei.ModuleNameSeparator=void 0;Ei.ModuleNameSeparator="/";var OT=class{constructor(){this.hooks=[],this.children=new Map}},PL=class{constructor(){this._trie=new OT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ei.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new OT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ei.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ei.ModuleNameTrie=PL});var gQ=c(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.RequireInTheMiddleSingleton=void 0;var YFe=Ge(),fQ=require("path"),yL=_Q(),KFe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),vL=class t{constructor(){this._moduleNameTrie=new yL.ModuleNameTrie,this._initialize()}_initialize(){new YFe.Hook(null,{internals:!0},(e,r,n)=>{let o=XFe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return KFe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};IT.RequireInTheMiddleSingleton=vL;function XFe(t){return fQ.sep!==yL.ModuleNameSeparator?t.split(fQ.sep).join(yL.ModuleNameSeparator):t}});var NL=c(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.isWrapped=hi.safeExecuteInTheMiddleAsync=hi.safeExecuteInTheMiddle=void 0;function ZFe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}hi.safeExecuteInTheMiddle=ZFe;async function zFe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}hi.safeExecuteInTheMiddleAsync=zFe;function JFe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}hi.isWrapped=JFe});var mQ=c(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.InstrumentationBase=void 0;var CL=require("path"),EQ=require("util"),$Fe=Tr(),ML=Le(),QFe=pQ(),eke=gQ(),tke=Rr(),rp=(P(),m(b)),rke=Ge(),nke=require("fs"),oke=NL(),LL=class extends QFe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=eke.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,oke.isWrapped)(i[s])&&this._unwrap(i,s),EQ.types.isProxy(i)){let u=(0,ML.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,ML.wrap)(i,s,a)},this._unwrap=(i,s)=>EQ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,ML.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{rp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){rp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{rp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){rp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,nke.readFileSync)(CL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{rp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return hQ(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=CL.normalize(n);return a.filter(d=>d.name===u).filter(d=>hQ(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=CL.isAbsolute(e.name)?new rke.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new tke.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};bT.InstrumentationBase=LL;function hQ(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,$Fe.satisfies)(e,n,{includePrerelease:r}))}});var TQ=c(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.normalize=void 0;var ike=require("path");Object.defineProperty(PT,"normalize",{enumerable:!0,get:function(){return ike.normalize}})});var SQ=c($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.normalize=$u.InstrumentationBase=void 0;var ske=mQ();Object.defineProperty($u,"InstrumentationBase",{enumerable:!0,get:function(){return ske.InstrumentationBase}});var ake=TQ();Object.defineProperty($u,"normalize",{enumerable:!0,get:function(){return ake.normalize}})});var DL=c(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.normalize=Qu.InstrumentationBase=void 0;var AQ=SQ();Object.defineProperty(Qu,"InstrumentationBase",{enumerable:!0,get:function(){return AQ.InstrumentationBase}});Object.defineProperty(Qu,"normalize",{enumerable:!0,get:function(){return AQ.normalize}})});var RQ=c(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.InstrumentationNodeModuleDefinition=void 0;var GL=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};yT.InstrumentationNodeModuleDefinition=GL});var OQ=c(vT=>{"use strict";Object.defineProperty(vT,"__esModule",{value:!0});vT.InstrumentationNodeModuleFile=void 0;var uke=DL(),UL=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,uke.normalize)(e)}};vT.InstrumentationNodeModuleFile=UL});var IQ=c(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.safeExecuteInTheMiddleAsync=Dt.safeExecuteInTheMiddle=Dt.isWrapped=Dt.InstrumentationNodeModuleFile=Dt.InstrumentationNodeModuleDefinition=Dt.InstrumentationBase=Dt.registerInstrumentations=void 0;var cke=dQ();Object.defineProperty(Dt,"registerInstrumentations",{enumerable:!0,get:function(){return cke.registerInstrumentations}});var lke=DL();Object.defineProperty(Dt,"InstrumentationBase",{enumerable:!0,get:function(){return lke.InstrumentationBase}});var dke=RQ();Object.defineProperty(Dt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return dke.InstrumentationNodeModuleDefinition}});var pke=OQ();Object.defineProperty(Dt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return pke.InstrumentationNodeModuleFile}});var xL=NL();Object.defineProperty(Dt,"isWrapped",{enumerable:!0,get:function(){return xL.isWrapped}});Object.defineProperty(Dt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return xL.safeExecuteInTheMiddle}});Object.defineProperty(Dt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return xL.safeExecuteInTheMiddleAsync}})});var wL=c(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.hooksNamesToWrap=ec.spanRequestSymbol=void 0;ec.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span");ec.hooksNamesToWrap=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"])});var PQ=c(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.safeExecuteInTheMiddleMaybePromise=mi.endSpan=mi.startSpan=void 0;var _ke=(P(),m(b)),NT=wL();function fke(t,e,r,n={}){let o=e.startSpan(r,{attributes:n}),i=t[NT.spanRequestSymbol]||[];return i.push(o),Object.defineProperty(t,NT.spanRequestSymbol,{enumerable:!1,configurable:!0,value:i}),o}mi.startSpan=fke;function gke(t,e){let r=t[NT.spanRequestSymbol]||[];r.length&&(r.forEach(n=>{e&&(n.setStatus({code:_ke.SpanStatusCode.ERROR,message:e.message}),n.recordException(e)),n.end()}),delete t[NT.spanRequestSymbol])}mi.endSpan=gke;function Eke(t,e,r){let n,o;try{o=t(),bQ(o)&&o.then(i=>e(void 0,i),i=>e(i))}catch(i){n=i}finally{if(!bQ(o)&&(e(n,o),n&&!r))throw n;return o}}mi.safeExecuteInTheMiddleMaybePromise=Eke;function bQ(t){var e;return typeof t=="object"&&t&&typeof((e=Object.getOwnPropertyDescriptor(t,"then"))===null||e===void 0?void 0:e.value)=="function"||!1}});var yQ=c(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.PACKAGE_NAME=tc.PACKAGE_VERSION=void 0;tc.PACKAGE_VERSION="0.41.0";tc.PACKAGE_NAME="@opentelemetry/instrumentation-fastify"});var CQ=c(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.FastifyInstrumentation=Si.ANONYMOUS_NAME=void 0;var Ti=(P(),m(b)),vQ=ae(),CT=IQ(),hke=($(),m(J)),mke=wL(),Pn=hL(),rc=PQ(),NQ=yQ();Si.ANONYMOUS_NAME="anonymous";var VL=class extends CT.InstrumentationBase{constructor(e={}){super(NQ.PACKAGE_NAME,NQ.PACKAGE_VERSION,e)}init(){return[new CT.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <6"],e=>this._patchConstructor(e))]}_hookOnRequest(){let e=this;return function(n,o,i){if(!e.isEnabled())return i();e._wrap(o,"send",e._patchSend());let s=n,a=(0,vQ.getRPCMetadata)(Ti.context.active()),u=s.routeOptions?s.routeOptions.url:n.routerPath;u&&a?.type===vQ.RPCType.HTTP&&(a.route=u),i()}}_wrapHandler(e,r,n,o){let i=this;return this._diag.debug("Patching fastify route.handler function"),function(...s){if(!i.isEnabled())return n.apply(this,s);let a=n.name||e||Si.ANONYMOUS_NAME,u=`${Pn.FastifyNames.MIDDLEWARE} - ${a}`,l=s[1],d=(0,rc.startSpan)(l,i.tracer,u,{[Pn.AttributeNames.FASTIFY_TYPE]:Pn.FastifyTypes.MIDDLEWARE,[Pn.AttributeNames.PLUGIN_NAME]:e,[Pn.AttributeNames.HOOK_NAME]:r}),p=o&&s[s.length-1];return p&&(s[s.length-1]=function(..._){(0,rc.endSpan)(l),p.apply(this,_)}),Ti.context.with(Ti.trace.setSpan(Ti.context.active(),d),()=>(0,rc.safeExecuteInTheMiddleMaybePromise)(()=>n.apply(this,s),_=>{_ instanceof Error&&(d.setStatus({code:Ti.SpanStatusCode.ERROR,message:_.message}),d.recordException(_)),o||(0,rc.endSpan)(l)}))}}_wrapAddHook(){let e=this;return this._diag.debug("Patching fastify server.addHook function"),function(r){return function(...o){let i=o[0],s=o[1],a=this.pluginName;if(!mke.hooksNamesToWrap.has(i))return r.apply(this,o);let u=typeof o[o.length-1]=="function"&&s.constructor.name!=="AsyncFunction";return r.apply(this,[i,e._wrapHandler(a,i,s,u)])}}}_patchConstructor(e){let r=this;function n(...o){let i=e.fastify.apply(this,o);return i.addHook("onRequest",r._hookOnRequest()),i.addHook("preHandler",r._hookPreHandler()),r._wrap(i,"addHook",r._wrapAddHook()),i}return n.fastify=n,n.default=n,n}_patchSend(){let e=this;return this._diag.debug("Patching fastify reply.send function"),function(n){return function(...i){let s=i[0];return e.isEnabled()?(0,CT.safeExecuteInTheMiddle)(()=>n.apply(this,i),a=>{!a&&s instanceof Error&&(a=s),(0,rc.endSpan)(this,a)}):n.apply(this,i)}}}_hookPreHandler(){let e=this;return this._diag.debug("Patching fastify preHandler function"),function(n,o,i){var s,a;if(!e.isEnabled())return i();let u=n,l=((s=u.routeOptions)===null||s===void 0?void 0:s.handler)||((a=u.context)===null||a===void 0?void 0:a.handler),d=l?.name.startsWith("bound ")?l.name.substr(6):l?.name,p=`${Pn.FastifyNames.REQUEST_HANDLER} - ${d||this.pluginName||Si.ANONYMOUS_NAME}`,_={[Pn.AttributeNames.PLUGIN_NAME]:this.pluginName,[Pn.AttributeNames.FASTIFY_TYPE]:Pn.FastifyTypes.REQUEST_HANDLER,[hke.SEMATTRS_HTTP_ROUTE]:u.routeOptions?u.routeOptions.url:n.routerPath};d&&(_[Pn.AttributeNames.FASTIFY_NAME]=d);let f=(0,rc.startSpan)(o,e.tracer,p,_),{requestHook:g}=e.getConfig();return g&&(0,CT.safeExecuteInTheMiddle)(()=>g(f,{request:n}),E=>{E&&e._diag.error("request hook failed",E)},!0),Ti.context.with(Ti.trace.setSpan(Ti.context.active(),f),()=>{i()})}}};Si.FastifyInstrumentation=VL});var MQ=c(lo=>{"use strict";var Tke=lo&&lo.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),BL=lo&&lo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Tke(e,t,r)};Object.defineProperty(lo,"__esModule",{value:!0});BL(hL(),lo);BL($$(),lo);BL(CQ(),lo)});var qL=c(np=>{var{_optionalChain:LQ}=I();Object.defineProperty(np,"__esModule",{value:!0});var Ske=MQ(),Ai=k(),Ake=be(),Rke=Ku(),DQ="Fastify",GQ=Ake.generateInstrumentOnce(DQ,()=>new Ske.FastifyInstrumentation({requestHook(t){UQ(t)}})),Oke=()=>({name:DQ,setupOnce(){GQ()}}),Ike=Ai.defineIntegration(Oke);function bke(t){let e=Object.assign(function(n,o,i){n.addHook("onError",async(s,a,u)=>{Ai.captureException(u)}),n.addHook("onRequest",async(s,a)=>{let u=s,l=LQ([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.url])||u.routerPath,d=LQ([u,"access",p=>p.routeOptions,"optionalAccess",p=>p.method])||"GET";Ai.getIsolationScope().setTransactionName(`${d} ${l}`)}),i()},{[Symbol.for("skip-override")]:!0,[Symbol.for("fastify.display-name")]:"sentry-fastify-error-handler"});t.register(e);let r=Ai.getClient();r&&r.on("spanStart",n=>{UQ(n)}),Rke.ensureIsWrapped(t.addHook,"fastify")}function UQ(t){let e=Ai.spanToJSON(t).data||{},r=e["fastify.type"];if(e[Ai.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[Ai.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.fastify",[Ai.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.fastify`});let n=e["fastify.name"]||e["plugin.name"]||e["hook.name"];typeof n=="string"&&t.updateName(n.replace(/^fastify -> /,""))}np.fastifyIntegration=Ike;np.instrumentFastify=GQ;np.setupFastifyErrorHandler=bke});var xQ=c(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.SeverityNumber=void 0;var Pke;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(Pke=op.SeverityNumber||(op.SeverityNumber={}))});var LT=c(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.NOOP_LOGGER=nc.NoopLogger=void 0;var MT=class{emit(e){}};nc.NoopLogger=MT;nc.NOOP_LOGGER=new MT});var GT=c(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.NOOP_LOGGER_PROVIDER=oc.NoopLoggerProvider=void 0;var yke=LT(),DT=class{getLogger(e,r,n){return new yke.NoopLogger}};oc.NoopLoggerProvider=DT;oc.NOOP_LOGGER_PROVIDER=new DT});var HL=c(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.ProxyLogger=void 0;var vke=LT(),jL=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):vke.NOOP_LOGGER}};UT.ProxyLogger=jL});var kL=c(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.ProxyLoggerProvider=void 0;var Nke=GT(),Cke=HL(),FL=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new Cke.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Nke.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};xT.ProxyLoggerProvider=FL});var wQ=c(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT._globalThis=void 0;wT._globalThis=typeof globalThis=="object"?globalThis:global});var VQ=c(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});VT._globalThis=void 0;var Mke=wQ();Object.defineProperty(VT,"_globalThis",{enumerable:!0,get:function(){return Mke._globalThis}})});var BQ=c(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT._globalThis=void 0;var Lke=VQ();Object.defineProperty(BT,"_globalThis",{enumerable:!0,get:function(){return Lke._globalThis}})});var qQ=c(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.API_BACKWARDS_COMPATIBILITY_VERSION=yn.makeGetter=yn._global=yn.GLOBAL_LOGS_API_KEY=void 0;var Dke=BQ();yn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");yn._global=Dke._globalThis;function Gke(t,e,r){return n=>n===t?e:r}yn.makeGetter=Gke;yn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var HQ=c(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.LogsAPI=void 0;var Lr=qQ(),Uke=GT(),jQ=kL(),WL=class t{constructor(){this._proxyLoggerProvider=new jQ.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Lr._global[Lr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Lr._global[Lr.GLOBAL_LOGS_API_KEY]=(0,Lr.makeGetter)(Lr.API_BACKWARDS_COMPATIBILITY_VERSION,e,Uke.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Lr._global[Lr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Lr._global,Lr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Lr._global[Lr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new jQ.ProxyLoggerProvider}};qT.LogsAPI=WL});var YL=c(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.logs=nt.ProxyLoggerProvider=nt.ProxyLogger=nt.NoopLoggerProvider=nt.NOOP_LOGGER_PROVIDER=nt.NoopLogger=nt.NOOP_LOGGER=nt.SeverityNumber=void 0;var xke=xQ();Object.defineProperty(nt,"SeverityNumber",{enumerable:!0,get:function(){return xke.SeverityNumber}});var FQ=LT();Object.defineProperty(nt,"NOOP_LOGGER",{enumerable:!0,get:function(){return FQ.NOOP_LOGGER}});Object.defineProperty(nt,"NoopLogger",{enumerable:!0,get:function(){return FQ.NoopLogger}});var kQ=GT();Object.defineProperty(nt,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return kQ.NOOP_LOGGER_PROVIDER}});Object.defineProperty(nt,"NoopLoggerProvider",{enumerable:!0,get:function(){return kQ.NoopLoggerProvider}});var wke=HL();Object.defineProperty(nt,"ProxyLogger",{enumerable:!0,get:function(){return wke.ProxyLogger}});var Vke=kL();Object.defineProperty(nt,"ProxyLoggerProvider",{enumerable:!0,get:function(){return Vke.ProxyLoggerProvider}});var Bke=HQ();nt.logs=Bke.LogsAPI.getInstance()});var WQ=c(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.disableInstrumentations=ic.enableInstrumentations=void 0;function qke(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}ic.enableInstrumentations=qke;function jke(t){t.forEach(e=>e.disable())}ic.disableInstrumentations=jke});var XQ=c(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.registerInstrumentations=void 0;var YQ=(P(),m(b)),Hke=YL(),KQ=WQ();function Fke(t){var e,r;let n=t.tracerProvider||YQ.trace.getTracerProvider(),o=t.meterProvider||YQ.metrics.getMeterProvider(),i=t.loggerProvider||Hke.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,KQ.enableInstrumentations)(s,n,o,i),()=>{(0,KQ.disableInstrumentations)(s)}}jT.registerInstrumentations=Fke});var ZQ=c(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.InstrumentationAbstract=void 0;var KL=(P(),m(b)),kke=YL(),HT=Le(),XL=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=HT.wrap,this._unwrap=HT.unwrap,this._massWrap=HT.massWrap,this._massUnwrap=HT.massUnwrap,this.setConfig(n),this._diag=KL.diag.createComponentLogger({namespace:e}),this._tracer=KL.trace.getTracer(e,r),this._meter=KL.metrics.getMeter(e,r),this._logger=kke.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};FT.InstrumentationAbstract=XL});var zQ=c(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.ModuleNameTrie=Ri.ModuleNameSeparator=void 0;Ri.ModuleNameSeparator="/";var kT=class{constructor(){this.hooks=[],this.children=new Map}},ZL=class{constructor(){this._trie=new kT,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ri.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new kT,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ri.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ri.ModuleNameTrie=ZL});var $Q=c(WT=>{"use strict";Object.defineProperty(WT,"__esModule",{value:!0});WT.RequireInTheMiddleSingleton=void 0;var Wke=Ge(),JQ=require("path"),zL=zQ(),Yke=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),JL=class t{constructor(){this._moduleNameTrie=new zL.ModuleNameTrie,this._initialize()}_initialize(){new Wke.Hook(null,{internals:!0},(e,r,n)=>{let o=Kke(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return Yke?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};WT.RequireInTheMiddleSingleton=JL;function Kke(t){return JQ.sep!==zL.ModuleNameSeparator?t.split(JQ.sep).join(zL.ModuleNameSeparator):t}});var $L=c(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.isWrapped=Oi.safeExecuteInTheMiddleAsync=Oi.safeExecuteInTheMiddle=void 0;function Xke(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Oi.safeExecuteInTheMiddle=Xke;async function Zke(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Oi.safeExecuteInTheMiddleAsync=Zke;function zke(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Oi.isWrapped=zke});var t6=c(YT=>{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.InstrumentationBase=void 0;var QL=require("path"),QQ=require("util"),Jke=Tr(),e0=Le(),$ke=ZQ(),Qke=$Q(),eWe=Rr(),ip=(P(),m(b)),tWe=Ge(),rWe=require("fs"),nWe=$L(),t0=class extends $ke.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=Qke.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,nWe.isWrapped)(i[s])&&this._unwrap(i,s),QQ.types.isProxy(i)){let u=(0,e0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,e0.wrap)(i,s,a)},this._unwrap=(i,s)=>QQ.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,e0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{ip.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){ip.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{ip.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){ip.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,rWe.readFileSync)(QL.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{ip.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return e6(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=QL.normalize(n);return a.filter(d=>d.name===u).filter(d=>e6(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=QL.isAbsolute(e.name)?new tWe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new eWe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};YT.InstrumentationBase=t0;function e6(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,Jke.satisfies)(e,n,{includePrerelease:r}))}});var r6=c(KT=>{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});KT.normalize=void 0;var oWe=require("path");Object.defineProperty(KT,"normalize",{enumerable:!0,get:function(){return oWe.normalize}})});var n6=c(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.normalize=sc.InstrumentationBase=void 0;var iWe=t6();Object.defineProperty(sc,"InstrumentationBase",{enumerable:!0,get:function(){return iWe.InstrumentationBase}});var sWe=r6();Object.defineProperty(sc,"normalize",{enumerable:!0,get:function(){return sWe.normalize}})});var r0=c(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.normalize=ac.InstrumentationBase=void 0;var o6=n6();Object.defineProperty(ac,"InstrumentationBase",{enumerable:!0,get:function(){return o6.InstrumentationBase}});Object.defineProperty(ac,"normalize",{enumerable:!0,get:function(){return o6.normalize}})});var i6=c(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.InstrumentationNodeModuleDefinition=void 0;var n0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};XT.InstrumentationNodeModuleDefinition=n0});var s6=c(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.InstrumentationNodeModuleFile=void 0;var aWe=r0(),o0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,aWe.normalize)(e)}};ZT.InstrumentationNodeModuleFile=o0});var a6=c(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.safeExecuteInTheMiddleAsync=Gt.safeExecuteInTheMiddle=Gt.isWrapped=Gt.InstrumentationNodeModuleFile=Gt.InstrumentationNodeModuleDefinition=Gt.InstrumentationBase=Gt.registerInstrumentations=void 0;var uWe=XQ();Object.defineProperty(Gt,"registerInstrumentations",{enumerable:!0,get:function(){return uWe.registerInstrumentations}});var cWe=r0();Object.defineProperty(Gt,"InstrumentationBase",{enumerable:!0,get:function(){return cWe.InstrumentationBase}});var lWe=i6();Object.defineProperty(Gt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return lWe.InstrumentationNodeModuleDefinition}});var dWe=s6();Object.defineProperty(Gt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return dWe.InstrumentationNodeModuleFile}});var i0=$L();Object.defineProperty(Gt,"isWrapped",{enumerable:!0,get:function(){return i0.isWrapped}});Object.defineProperty(Gt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return i0.safeExecuteInTheMiddle}});Object.defineProperty(Gt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return i0.safeExecuteInTheMiddleAsync}})});var s0=c(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SpanNames=Jr.TokenKind=Jr.AllowedOperationTypes=void 0;var pWe;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(pWe=Jr.AllowedOperationTypes||(Jr.AllowedOperationTypes={}));var _We;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(_We=Jr.TokenKind||(Jr.TokenKind={}));var fWe;(function(t){t.EXECUTE="graphql.execute",t.PARSE="graphql.parse",t.RESOLVE="graphql.resolve",t.VALIDATE="graphql.validate",t.SCHEMA_VALIDATE="graphql.validateSchema",t.SCHEMA_PARSE="graphql.parseSchema"})(fWe=Jr.SpanNames||(Jr.SpanNames={}))});var a0=c(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.AttributeNames=void 0;var gWe;(function(t){t.SOURCE="graphql.source",t.FIELD_NAME="graphql.field.name",t.FIELD_PATH="graphql.field.path",t.FIELD_TYPE="graphql.field.type",t.OPERATION_TYPE="graphql.operation.type",t.OPERATION_NAME="graphql.operation.name",t.VARIABLES="graphql.variables.",t.ERROR_VALIDATION_NAME="graphql.validation.error"})(gWe=sp.AttributeNames||(sp.AttributeNames={}))});var zT=c(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.OTEL_GRAPHQL_DATA_SYMBOL=uc.OTEL_PATCHED_SYMBOL=void 0;uc.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");uc.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data")});var u6=c(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.OPERATION_NOT_SUPPORTED=void 0;var jst=zT();JT.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported"});var S6=c(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.wrapFieldResolver=He.wrapFields=He.getSourceFromLocation=He.getOperation=He.endSpan=He.addSpanSource=He.addInputVariableAttributes=He.isPromise=void 0;var lc=(P(),m(b)),Ii=s0(),cc=a0(),po=zT(),c6=Object.values(Ii.AllowedOperationTypes),EWe=t=>typeof t?.then=="function";He.isPromise=EWe;var hWe=t=>typeof t=="object"&&t!==null;function u0(t,e,r){Array.isArray(r)?r.forEach((n,o)=>{u0(t,`${e}.${o}`,n)}):r instanceof Object?Object.entries(r).forEach(([n,o])=>{u0(t,`${e}.${n}`,o)}):t.setAttribute(`${cc.AttributeNames.VARIABLES}${String(e)}`,r)}function mWe(t,e){Object.entries(e).forEach(([r,n])=>{u0(t,r,n)})}He.addInputVariableAttributes=mWe;function _6(t,e,r,n,o){let i=h6(e,r,n,o);t.setAttribute(cc.AttributeNames.SOURCE,i)}He.addSpanSource=_6;function TWe(t,e,r,n,o){let i=f6(r,o),s=!1;if(!i){s=!0;let a=g6(r,o);i={parent:a,span:SWe(t,e,r,n,o,a.span),error:null},OWe(r,o,i)}return{spanAdded:s,field:i}}function SWe(t,e,r,n,o,i){var s,a;let u={[cc.AttributeNames.FIELD_NAME]:n.fieldName,[cc.AttributeNames.FIELD_PATH]:o.join("."),[cc.AttributeNames.FIELD_TYPE]:n.returnType.toString()},l=t.startSpan(`${Ii.SpanNames.RESOLVE} ${u[cc.AttributeNames.FIELD_PATH]}`,{attributes:u},i?lc.trace.setSpan(lc.context.active(),i):void 0),d=r[po.OTEL_GRAPHQL_DATA_SYMBOL].source,p=n.fieldNodes.find(_=>_.kind==="Field");return p&&_6(l,d.loc,e().allowValues,(s=p.loc)===null||s===void 0?void 0:s.start,(a=p.loc)===null||a===void 0?void 0:a.end),l}function AWe(t,e){e&&t.recordException(e),t.end()}He.endSpan=AWe;function RWe(t,e){if(!(!t||!Array.isArray(t.definitions)))return e?t.definitions.filter(r=>{var n;return c6.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1}).find(r=>{var n,o;return e===((o=(n=r)===null||n===void 0?void 0:n.name)===null||o===void 0?void 0:o.value)}):t.definitions.find(r=>{var n;return c6.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1})}He.getOperation=RWe;function OWe(t,e,r){return t[po.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]=r}function f6(t,e){return t[po.OTEL_GRAPHQL_DATA_SYMBOL].fields[e.join(".")]}function g6(t,e){for(let r=e.length-1;r>0;r--){let n=f6(t,e.slice(0,r));if(n)return n}return{span:t[po.OTEL_GRAPHQL_DATA_SYMBOL].span}}function IWe(t,e){let r=[],n=e;for(;n;){let o=n.key;t&&typeof o=="number"&&(o="*"),r.push(String(o)),n=n.prev}return r.reverse()}function bWe(t){return E6(`
|
|
31
|
+
`,t)}function l6(t){return E6(" ",t)}function E6(t,e){let r="";for(let n=0;n<e;n++)r+=t;return r}var PWe=[Ii.TokenKind.FLOAT,Ii.TokenKind.STRING,Ii.TokenKind.INT,Ii.TokenKind.BLOCK_STRING];function h6(t,e=!1,r,n){var o,i;let s="";if(t?.startToken){let a=typeof r=="number"?r:t.start,u=typeof n=="number"?n:t.end,l=t.startToken.next,d=1;for(;l;){if(l.start<a){l=l.next,d=l?.line;continue}if(l.end>u){l=l.next,d=l?.line;continue}let p=l.value||l.kind,_="";!e&&PWe.indexOf(l.kind)>=0&&(p="*"),l.kind===Ii.TokenKind.STRING&&(p=`"${p}"`),l.kind===Ii.TokenKind.EOF&&(p=""),l.line>d?(s+=bWe(l.line-d),d=l.line,_=l6(l.column-1)):l.line===((o=l.prev)===null||o===void 0?void 0:o.line)&&(_=l6(l.start-(((i=l.prev)===null||i===void 0?void 0:i.end)||0))),s+=_+p,l&&(l=l.next)}}return s}He.getSourceFromLocation=h6;function m6(t,e,r){if(!t||typeof t.getFields!="function"||t[po.OTEL_PATCHED_SYMBOL])return;let n=t.getFields();t[po.OTEL_PATCHED_SYMBOL]=!0,Object.keys(n).forEach(o=>{let i=n[o];if(i&&(i.resolve&&(i.resolve=T6(e,r,i.resolve)),i.type)){let s=i.type;for(;s.ofType;)s=s.ofType;m6(s,e,r)}})}He.wrapFields=m6;var d6=(t,e,r)=>{r&&(t.recordException(e),t.setStatus({code:lc.SpanStatusCode.ERROR,message:e.message}),t.end())},p6=(t,e)=>{e&&t.end()};function T6(t,e,r,n=!1){if(o[po.OTEL_PATCHED_SYMBOL]||typeof r!="function")return r;function o(i,s,a,u){if(!r)return;let l=e();if(l.ignoreTrivialResolveSpans&&n&&(hWe(i)||typeof i=="function")&&typeof i[u.fieldName]!="function")return r.call(this,i,s,a,u);if(!a[po.OTEL_GRAPHQL_DATA_SYMBOL])return r.call(this,i,s,a,u);let d=IWe(l.mergeItems,u&&u.path),p=d.filter(g=>typeof g=="string").length,_,f=!1;if(l.depth>=0&&l.depth<p)_=g6(a,d);else{let g=TWe(t,e,a,u,d);_=g.field,f=g.spanAdded}return lc.context.with(lc.trace.setSpan(lc.context.active(),_.span),()=>{try{let g=r.call(this,i,s,a,u);return(0,He.isPromise)(g)?g.then(E=>(p6(_.span,f),E),E=>{throw d6(_.span,E,f),E}):(p6(_.span,f),g)}catch(g){throw d6(_.span,g,f),g}})}return o[po.OTEL_PATCHED_SYMBOL]=!0,o}He.wrapFieldResolver=T6});var A6=c(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.PACKAGE_NAME=dc.PACKAGE_VERSION=void 0;dc.PACKAGE_VERSION="0.44.0";dc.PACKAGE_NAME="@opentelemetry/instrumentation-graphql"});var I6=c(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});eS.GraphQLInstrumentation=void 0;var _o=(P(),m(b)),Dr=a6(),ap=s0(),$T=a0(),c0=zT(),yWe=u6(),Ut=S6(),R6=A6(),O6={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},QT=[">=14.0.0 <17"],l0=class extends Dr.InstrumentationBase{constructor(e={}){super(R6.PACKAGE_NAME,R6.PACKAGE_VERSION,Object.assign(Object.assign({},O6),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},O6),e))}init(){let e=new Dr.InstrumentationNodeModuleDefinition("graphql",QT);return e.files.push(this._addPatchingExecute()),e.files.push(this._addPatchingParser()),e.files.push(this._addPatchingValidate()),e}_addPatchingExecute(){return new Dr.InstrumentationNodeModuleFile("graphql/execution/execute.js",QT,e=>((0,Dr.isWrapped)(e.execute)&&this._unwrap(e,"execute"),this._wrap(e,"execute",this._patchExecute(e.defaultFieldResolver)),e),e=>{e&&this._unwrap(e,"execute")})}_addPatchingParser(){return new Dr.InstrumentationNodeModuleFile("graphql/language/parser.js",QT,e=>((0,Dr.isWrapped)(e.parse)&&this._unwrap(e,"parse"),this._wrap(e,"parse",this._patchParse()),e),e=>{e&&this._unwrap(e,"parse")})}_addPatchingValidate(){return new Dr.InstrumentationNodeModuleFile("graphql/validation/validate.js",QT,e=>((0,Dr.isWrapped)(e.validate)&&this._unwrap(e,"validate"),this._wrap(e,"validate",this._patchValidate()),e),e=>{e&&this._unwrap(e,"validate")})}_patchExecute(e){let r=this;return function(o){return function(){let s;if(arguments.length>=2){let l=arguments;s=r._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],e)}else{let l=arguments[0];s=r._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,e)}let a=(0,Ut.getOperation)(s.document,s.operationName),u=r._createExecuteSpan(a,s);return s.contextValue[c0.OTEL_GRAPHQL_DATA_SYMBOL]={source:s.document?s.document||s.document[c0.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},_o.context.with(_o.trace.setSpan(_o.context.active(),u),()=>(0,Dr.safeExecuteInTheMiddle)(()=>o.apply(this,[s]),(l,d)=>{r._handleExecutionResult(u,l,d)}))}}}_handleExecutionResult(e,r,n){let o=this.getConfig();if(n===void 0||r){(0,Ut.endSpan)(e,r);return}if((0,Ut.isPromise)(n))n.then(i=>{if(typeof o.responseHook!="function"){(0,Ut.endSpan)(e);return}this._executeResponseHook(e,i)},i=>{(0,Ut.endSpan)(e,i)});else{if(typeof o.responseHook!="function"){(0,Ut.endSpan)(e);return}this._executeResponseHook(e,n)}}_executeResponseHook(e,r){let{responseHook:n}=this.getConfig();n&&(0,Dr.safeExecuteInTheMiddle)(()=>{n(e,r)},o=>{o&&this._diag.error("Error running response hook",o),(0,Ut.endSpan)(e,void 0)},!0)}_patchParse(){let e=this;return function(n){return function(i,s){return e._parse(this,n,i,s)}}}_patchValidate(){let e=this;return function(n){return function(i,s,a,u,l){return e._validate(this,n,i,s,a,l,u)}}}_parse(e,r,n,o){let i=this.getConfig(),s=this.tracer.startSpan(ap.SpanNames.PARSE);return _o.context.with(_o.trace.setSpan(_o.context.active(),s),()=>(0,Dr.safeExecuteInTheMiddle)(()=>r.call(e,n,o),(a,u)=>{u&&((0,Ut.getOperation)(u)?u.loc&&(0,Ut.addSpanSource)(s,u.loc,i.allowValues):s.updateName(ap.SpanNames.SCHEMA_PARSE)),(0,Ut.endSpan)(s,a)}))}_validate(e,r,n,o,i,s,a){let u=this.tracer.startSpan(ap.SpanNames.VALIDATE,{});return _o.context.with(_o.trace.setSpan(_o.context.active(),u),()=>(0,Dr.safeExecuteInTheMiddle)(()=>r.call(e,n,o,i,a,s),(l,d)=>{o.loc||u.updateName(ap.SpanNames.SCHEMA_VALIDATE),d&&d.length&&u.recordException({name:$T.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(d)}),(0,Ut.endSpan)(u,l)}))}_createExecuteSpan(e,r){var n;let o=this.getConfig(),i=this.tracer.startSpan(ap.SpanNames.EXECUTE,{});if(e){let{operation:s,name:a}=e;i.setAttribute($T.AttributeNames.OPERATION_TYPE,s);let u=a?.value;u?(i.setAttribute($T.AttributeNames.OPERATION_NAME,u),i.updateName(`${s} ${u}`)):i.updateName(s)}else{let s=" ";r.operationName&&(s=` "${r.operationName}" `),s=yWe.OPERATION_NOT_SUPPORTED.replace("$operationName$",s),i.setAttribute($T.AttributeNames.OPERATION_NAME,s)}return!((n=r.document)===null||n===void 0)&&n.loc&&(0,Ut.addSpanSource)(i,r.document.loc,o.allowValues),r.variableValues&&o.allowValues&&(0,Ut.addInputVariableAttributes)(i,r.variableValues),i}_wrapExecuteArgs(e,r,n,o,i,s,a,u,l){if(o||(o={}),o[c0.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u};let d=a==null,p=a??l;return a=(0,Ut.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,d),e&&((0,Ut.wrapFields)(e.getQueryType(),this.tracer,()=>this.getConfig()),(0,Ut.wrapFields)(e.getMutationType(),this.tracer,()=>this.getConfig())),{schema:e,document:r,rootValue:n,contextValue:o,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u}}};eS.GraphQLInstrumentation=l0});var P6=c(b6=>{"use strict";Object.defineProperty(b6,"__esModule",{value:!0})});var v6=c(bi=>{"use strict";var vWe=bi&&bi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),y6=bi&&bi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vWe(e,t,r)};Object.defineProperty(bi,"__esModule",{value:!0});y6(I6(),bi);y6(P6(),bi)});var d0=c(nS=>{Object.defineProperty(nS,"__esModule",{value:!0});var NWe=v6(),rS=k(),tS=ao(),CWe=be(),MWe=Tn(),N6="Graphql",C6=CWe.generateInstrumentOnce(N6,(t={})=>{let e=M6(t);return new NWe.GraphQLInstrumentation({...e,responseHook(r){MWe.addOriginToSpan(r,"auto.graphql.otel.graphql");let n=rS.spanToJSON(r).data||{},o=n["graphql.operation.type"],i=n["graphql.operation.name"];if(e.useOperationNameForRootSpan&&o){let s=rS.getRootSpan(r),u=(rS.spanToJSON(s).data||{})[tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION]||[],l=i?`${o} ${i}`:`${o}`;Array.isArray(u)?(u.push(l),s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,u)):u?s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,[u,l]):s.setAttribute(tS.SEMANTIC_ATTRIBUTE_SENTRY_GRAPHQL_OPERATION,l)}}})}),LWe=(t={})=>({name:N6,setupOnce(){C6(M6(t))}}),DWe=rS.defineIntegration(LWe);function M6(t){return{ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...t}}nS.graphqlIntegration=DWe;nS.instrumentGraphql=C6});var L6=c(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.PACKAGE_NAME=pc.PACKAGE_VERSION=void 0;pc.PACKAGE_VERSION="0.4.0";pc.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs"});var D6=c(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});oS.bufferTextMapGetter=void 0;oS.bufferTextMapGetter={get(t,e){var r;if(!t)return;let n=Object.keys(t);for(let o of n)if(o===e||o.toLowerCase()===e)return(r=t[o])===null||r===void 0?void 0:r.toString()},keys(t){return t?Object.keys(t):[]}}});var G6=c(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.SeverityNumber=void 0;var GWe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(GWe=up.SeverityNumber||(up.SeverityNumber={}))});var sS=c(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.NOOP_LOGGER=_c.NoopLogger=void 0;var iS=class{emit(e){}};_c.NoopLogger=iS;_c.NOOP_LOGGER=new iS});var uS=c(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.NOOP_LOGGER_PROVIDER=fc.NoopLoggerProvider=void 0;var UWe=sS(),aS=class{getLogger(e,r,n){return new UWe.NoopLogger}};fc.NoopLoggerProvider=aS;fc.NOOP_LOGGER_PROVIDER=new aS});var _0=c(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.ProxyLogger=void 0;var xWe=sS(),p0=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):xWe.NOOP_LOGGER}};cS.ProxyLogger=p0});var g0=c(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.ProxyLoggerProvider=void 0;var wWe=uS(),VWe=_0(),f0=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new VWe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:wWe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};lS.ProxyLoggerProvider=f0});var U6=c(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS._globalThis=void 0;dS._globalThis=typeof globalThis=="object"?globalThis:global});var x6=c(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS._globalThis=void 0;var BWe=U6();Object.defineProperty(pS,"_globalThis",{enumerable:!0,get:function(){return BWe._globalThis}})});var w6=c(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S._globalThis=void 0;var qWe=x6();Object.defineProperty(_S,"_globalThis",{enumerable:!0,get:function(){return qWe._globalThis}})});var V6=c(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.API_BACKWARDS_COMPATIBILITY_VERSION=vn.makeGetter=vn._global=vn.GLOBAL_LOGS_API_KEY=void 0;var jWe=w6();vn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");vn._global=jWe._globalThis;function HWe(t,e,r){return n=>n===t?e:r}vn.makeGetter=HWe;vn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var q6=c(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.LogsAPI=void 0;var Gr=V6(),FWe=uS(),B6=g0(),E0=class t{constructor(){this._proxyLoggerProvider=new B6.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Gr._global[Gr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Gr._global[Gr.GLOBAL_LOGS_API_KEY]=(0,Gr.makeGetter)(Gr.API_BACKWARDS_COMPATIBILITY_VERSION,e,FWe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Gr._global[Gr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Gr._global,Gr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Gr._global[Gr.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new B6.ProxyLoggerProvider}};fS.LogsAPI=E0});var h0=c(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.logs=ot.ProxyLoggerProvider=ot.ProxyLogger=ot.NoopLoggerProvider=ot.NOOP_LOGGER_PROVIDER=ot.NoopLogger=ot.NOOP_LOGGER=ot.SeverityNumber=void 0;var kWe=G6();Object.defineProperty(ot,"SeverityNumber",{enumerable:!0,get:function(){return kWe.SeverityNumber}});var j6=sS();Object.defineProperty(ot,"NOOP_LOGGER",{enumerable:!0,get:function(){return j6.NOOP_LOGGER}});Object.defineProperty(ot,"NoopLogger",{enumerable:!0,get:function(){return j6.NoopLogger}});var H6=uS();Object.defineProperty(ot,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return H6.NOOP_LOGGER_PROVIDER}});Object.defineProperty(ot,"NoopLoggerProvider",{enumerable:!0,get:function(){return H6.NoopLoggerProvider}});var WWe=_0();Object.defineProperty(ot,"ProxyLogger",{enumerable:!0,get:function(){return WWe.ProxyLogger}});var YWe=g0();Object.defineProperty(ot,"ProxyLoggerProvider",{enumerable:!0,get:function(){return YWe.ProxyLoggerProvider}});var KWe=q6();ot.logs=KWe.LogsAPI.getInstance()});var F6=c(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.disableInstrumentations=gc.enableInstrumentations=void 0;function XWe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}gc.enableInstrumentations=XWe;function ZWe(t){t.forEach(e=>e.disable())}gc.disableInstrumentations=ZWe});var Y6=c(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.registerInstrumentations=void 0;var k6=(P(),m(b)),zWe=h0(),W6=F6();function JWe(t){var e,r;let n=t.tracerProvider||k6.trace.getTracerProvider(),o=t.meterProvider||k6.metrics.getMeterProvider(),i=t.loggerProvider||zWe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,W6.enableInstrumentations)(s,n,o,i),()=>{(0,W6.disableInstrumentations)(s)}}gS.registerInstrumentations=JWe});var K6=c(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.InstrumentationAbstract=void 0;var m0=(P(),m(b)),$We=h0(),ES=Le(),T0=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=ES.wrap,this._unwrap=ES.unwrap,this._massWrap=ES.massWrap,this._massUnwrap=ES.massUnwrap,this.setConfig(n),this._diag=m0.diag.createComponentLogger({namespace:e}),this._tracer=m0.trace.getTracer(e,r),this._meter=m0.metrics.getMeter(e,r),this._logger=$We.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};hS.InstrumentationAbstract=T0});var X6=c(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.ModuleNameTrie=Pi.ModuleNameSeparator=void 0;Pi.ModuleNameSeparator="/";var mS=class{constructor(){this.hooks=[],this.children=new Map}},S0=class{constructor(){this._trie=new mS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Pi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new mS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Pi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Pi.ModuleNameTrie=S0});var z6=c(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.RequireInTheMiddleSingleton=void 0;var QWe=Ge(),Z6=require("path"),A0=X6(),eYe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),R0=class t{constructor(){this._moduleNameTrie=new A0.ModuleNameTrie,this._initialize()}_initialize(){new QWe.Hook(null,{internals:!0},(e,r,n)=>{let o=tYe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return eYe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};TS.RequireInTheMiddleSingleton=R0;function tYe(t){return Z6.sep!==A0.ModuleNameSeparator?t.split(Z6.sep).join(A0.ModuleNameSeparator):t}});var O0=c(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isWrapped=yi.safeExecuteInTheMiddleAsync=yi.safeExecuteInTheMiddle=void 0;function rYe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}yi.safeExecuteInTheMiddle=rYe;async function nYe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}yi.safeExecuteInTheMiddleAsync=nYe;function oYe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}yi.isWrapped=oYe});var Q6=c(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.InstrumentationBase=void 0;var I0=require("path"),J6=require("util"),iYe=Tr(),b0=Le(),sYe=K6(),aYe=z6(),uYe=Rr(),cp=(P(),m(b)),cYe=Ge(),lYe=require("fs"),dYe=O0(),P0=class extends sYe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=aYe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,dYe.isWrapped)(i[s])&&this._unwrap(i,s),J6.types.isProxy(i)){let u=(0,b0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,b0.wrap)(i,s,a)},this._unwrap=(i,s)=>J6.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,b0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{cp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){cp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{cp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){cp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,lYe.readFileSync)(I0.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{cp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return $6(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=I0.normalize(n);return a.filter(d=>d.name===u).filter(d=>$6(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=I0.isAbsolute(e.name)?new cYe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new uYe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};SS.InstrumentationBase=P0;function $6(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,iYe.satisfies)(e,n,{includePrerelease:r}))}});var e8=c(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.normalize=void 0;var pYe=require("path");Object.defineProperty(AS,"normalize",{enumerable:!0,get:function(){return pYe.normalize}})});var t8=c(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.normalize=Ec.InstrumentationBase=void 0;var _Ye=Q6();Object.defineProperty(Ec,"InstrumentationBase",{enumerable:!0,get:function(){return _Ye.InstrumentationBase}});var fYe=e8();Object.defineProperty(Ec,"normalize",{enumerable:!0,get:function(){return fYe.normalize}})});var y0=c(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.normalize=hc.InstrumentationBase=void 0;var r8=t8();Object.defineProperty(hc,"InstrumentationBase",{enumerable:!0,get:function(){return r8.InstrumentationBase}});Object.defineProperty(hc,"normalize",{enumerable:!0,get:function(){return r8.normalize}})});var n8=c(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});RS.InstrumentationNodeModuleDefinition=void 0;var v0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};RS.InstrumentationNodeModuleDefinition=v0});var o8=c(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});OS.InstrumentationNodeModuleFile=void 0;var gYe=y0(),N0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,gYe.normalize)(e)}};OS.InstrumentationNodeModuleFile=N0});var i8=c(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.safeExecuteInTheMiddleAsync=xt.safeExecuteInTheMiddle=xt.isWrapped=xt.InstrumentationNodeModuleFile=xt.InstrumentationNodeModuleDefinition=xt.InstrumentationBase=xt.registerInstrumentations=void 0;var EYe=Y6();Object.defineProperty(xt,"registerInstrumentations",{enumerable:!0,get:function(){return EYe.registerInstrumentations}});var hYe=y0();Object.defineProperty(xt,"InstrumentationBase",{enumerable:!0,get:function(){return hYe.InstrumentationBase}});var mYe=n8();Object.defineProperty(xt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return mYe.InstrumentationNodeModuleDefinition}});var TYe=o8();Object.defineProperty(xt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return TYe.InstrumentationNodeModuleFile}});var C0=O0();Object.defineProperty(xt,"isWrapped",{enumerable:!0,get:function(){return C0.isWrapped}});Object.defineProperty(xt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddle}});Object.defineProperty(xt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return C0.safeExecuteInTheMiddleAsync}})});var u8=c(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.KafkaJsInstrumentation=void 0;var _t=(P(),m(b)),vi=($(),m(J)),s8=L6(),a8=D6(),$r=i8(),M0=class extends $r.InstrumentationBase{constructor(e={}){super(s8.PACKAGE_NAME,s8.PACKAGE_VERSION,e)}init(){let e=n=>{var o,i;(0,$r.isWrapped)((o=n?.Kafka)===null||o===void 0?void 0:o.prototype.producer)&&this._unwrap(n.Kafka.prototype,"producer"),(0,$r.isWrapped)((i=n?.Kafka)===null||i===void 0?void 0:i.prototype.consumer)&&this._unwrap(n.Kafka.prototype,"consumer")};return new $r.InstrumentationNodeModuleDefinition("kafkajs",[">=0.1.0 <3"],n=>{var o,i;return e(n),this._wrap((o=n?.Kafka)===null||o===void 0?void 0:o.prototype,"producer",this._getProducerPatch()),this._wrap((i=n?.Kafka)===null||i===void 0?void 0:i.prototype,"consumer",this._getConsumerPatch()),n},e)}_getConsumerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,$r.isWrapped)(i.run)&&e._unwrap(i,"run"),e._wrap(i,"run",e._getConsumerRunPatch()),i}}_getProducerPatch(){let e=this;return r=>function(...o){let i=r.apply(this,o);return(0,$r.isWrapped)(i.sendBatch)&&e._unwrap(i,"sendBatch"),e._wrap(i,"sendBatch",e._getProducerSendBatchPatch()),(0,$r.isWrapped)(i.send)&&e._unwrap(i,"send"),e._wrap(i,"send",e._getProducerSendPatch()),i}}_getConsumerRunPatch(){let e=this;return r=>function(...o){let i=o[0];return i?.eachMessage&&((0,$r.isWrapped)(i.eachMessage)&&e._unwrap(i,"eachMessage"),e._wrap(i,"eachMessage",e._getConsumerEachMessagePatch())),i?.eachBatch&&((0,$r.isWrapped)(i.eachBatch)&&e._unwrap(i,"eachBatch"),e._wrap(i,"eachBatch",e._getConsumerEachBatchPatch())),r.call(this,i)}}_getConsumerEachMessagePatch(){let e=this;return r=>function(...o){let i=o[0],s=_t.propagation.extract(_t.ROOT_CONTEXT,i.message.headers,a8.bufferTextMapGetter),a=e._startConsumerSpan(i.topic,i.message,vi.MESSAGINGOPERATIONVALUES_PROCESS,s),u=_t.context.with(_t.trace.setSpan(s,a),()=>r.apply(this,o));return e._endSpansOnPromise([a],u)}}_getConsumerEachBatchPatch(){return e=>{let r=this;return function(...o){let i=o[0],s=r._startConsumerSpan(i.batch.topic,void 0,vi.MESSAGINGOPERATIONVALUES_RECEIVE,_t.ROOT_CONTEXT);return _t.context.with(_t.trace.setSpan(_t.context.active(),s),()=>{let a=i.batch.messages.map(l=>{var d;let p=_t.propagation.extract(_t.ROOT_CONTEXT,l.headers,a8.bufferTextMapGetter),_=(d=_t.trace.getSpan(p))===null||d===void 0?void 0:d.spanContext(),f;return _&&(f={context:_}),r._startConsumerSpan(i.batch.topic,l,vi.MESSAGINGOPERATIONVALUES_PROCESS,void 0,f)}),u=e.apply(this,o);return a.unshift(s),r._endSpansOnPromise(a,u)})}}}_getProducerSendBatchPatch(){let e=this;return r=>function(...o){let a=(o[0].topicMessages||[]).map(l=>l.messages.map(d=>e._startProducerSpan(l.topic,d))).reduce((l,d)=>l.concat(d),[]),u=r.apply(this,o);return e._endSpansOnPromise(a,u)}}_getProducerSendPatch(){let e=this;return r=>function(...o){let i=o[0],s=i.messages.map(u=>e._startProducerSpan(i.topic,u)),a=r.apply(this,o);return e._endSpansOnPromise(s,a)}}_endSpansOnPromise(e,r){return Promise.resolve(r).catch(n=>{let o;throw typeof n=="string"?o=n:typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"message")&&(o=n.message),e.forEach(i=>i.setStatus({code:_t.SpanStatusCode.ERROR,message:o})),n}).finally(()=>{e.forEach(n=>n.end())})}_startConsumerSpan(e,r,n,o,i){let s=this.tracer.startSpan(e,{kind:_t.SpanKind.CONSUMER,attributes:{[vi.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[vi.SEMATTRS_MESSAGING_DESTINATION]:e,[vi.SEMATTRS_MESSAGING_OPERATION]:n},links:i?[i]:[]},o),{consumerHook:a}=this.getConfig();return a&&r&&(0,$r.safeExecuteInTheMiddle)(()=>a(s,{topic:e,message:r}),u=>{u&&this._diag.error("consumerHook error",u)},!0),s}_startProducerSpan(e,r){var n;let o=this.tracer.startSpan(e,{kind:_t.SpanKind.PRODUCER,attributes:{[vi.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[vi.SEMATTRS_MESSAGING_DESTINATION]:e}});r.headers=(n=r.headers)!==null&&n!==void 0?n:{},_t.propagation.inject(_t.trace.setSpan(_t.context.active(),o),r.headers);let{producerHook:i}=this.getConfig();return i&&(0,$r.safeExecuteInTheMiddle)(()=>i(o,{topic:e,message:r}),s=>{s&&this._diag.error("producerHook error",s)},!0),o}};IS.KafkaJsInstrumentation=M0});var l8=c(c8=>{"use strict";Object.defineProperty(c8,"__esModule",{value:!0})});var p8=c(Ni=>{"use strict";var SYe=Ni&&Ni.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),d8=Ni&&Ni.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&SYe(e,t,r)};Object.defineProperty(Ni,"__esModule",{value:!0});d8(u8(),Ni);d8(l8(),Ni)});var L0=c(bS=>{Object.defineProperty(bS,"__esModule",{value:!0});var AYe=p8(),RYe=k(),OYe=be(),_8=Tn(),f8="Kafka",g8=OYe.generateInstrumentOnce(f8,()=>new AYe.KafkaJsInstrumentation({consumerHook(t){_8.addOriginToSpan(t,"auto.kafkajs.otel.consumer")},producerHook(t){_8.addOriginToSpan(t,"auto.kafkajs.otel.producer")}})),IYe=()=>({name:f8,setupOnce(){g8()}}),bYe=RYe.defineIntegration(IYe);bS.instrumentKafka=g8;bS.kafkaIntegration=bYe});var E8=c(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.PACKAGE_NAME=mc.PACKAGE_VERSION=void 0;mc.PACKAGE_VERSION="0.40.0";mc.PACKAGE_NAME="@opentelemetry/instrumentation-lru-memoizer"});var S8=c(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.LruMemoizerInstrumentation=void 0;var h8=(P(),m(b)),m8=qe(),T8=E8(),D0=class extends m8.InstrumentationBase{constructor(e={}){super(T8.PACKAGE_NAME,T8.PACKAGE_VERSION,e)}init(){return[new m8.InstrumentationNodeModuleDefinition("lru-memoizer",[">=1.3 <3"],e=>{let r=function(){let n=e.apply(this,arguments);return function(){let o=[...arguments],i=o.pop(),s=typeof i=="function"?h8.context.bind(h8.context.active(),i):i;return o.push(s),n.apply(this,o)}};return r.sync=e.sync,r},void 0)]}};PS.LruMemoizerInstrumentation=D0});var A8=c(ks=>{"use strict";var PYe=ks&&ks.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),yYe=ks&&ks.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&PYe(e,t,r)};Object.defineProperty(ks,"__esModule",{value:!0});yYe(S8(),ks)});var G0=c(yS=>{Object.defineProperty(yS,"__esModule",{value:!0});var vYe=A8(),NYe=k(),CYe=be(),R8="LruMemoizer",O8=CYe.generateInstrumentOnce(R8,()=>new vYe.LruMemoizerInstrumentation),MYe=()=>({name:R8,setupOnce(){O8()}}),LYe=NYe.defineIntegration(MYe);yS.instrumentLruMemoizer=O8;yS.lruMemoizerIntegration=LYe});var I8=c(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.SeverityNumber=void 0;var DYe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(DYe=lp.SeverityNumber||(lp.SeverityNumber={}))});var NS=c(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.NOOP_LOGGER=Tc.NoopLogger=void 0;var vS=class{emit(e){}};Tc.NoopLogger=vS;Tc.NOOP_LOGGER=new vS});var MS=c(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.NOOP_LOGGER_PROVIDER=Sc.NoopLoggerProvider=void 0;var GYe=NS(),CS=class{getLogger(e,r,n){return new GYe.NoopLogger}};Sc.NoopLoggerProvider=CS;Sc.NOOP_LOGGER_PROVIDER=new CS});var x0=c(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.ProxyLogger=void 0;var UYe=NS(),U0=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):UYe.NOOP_LOGGER}};LS.ProxyLogger=U0});var V0=c(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});DS.ProxyLoggerProvider=void 0;var xYe=MS(),wYe=x0(),w0=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new wYe.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:xYe.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};DS.ProxyLoggerProvider=w0});var b8=c(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS._globalThis=void 0;GS._globalThis=typeof globalThis=="object"?globalThis:global});var P8=c(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US._globalThis=void 0;var VYe=b8();Object.defineProperty(US,"_globalThis",{enumerable:!0,get:function(){return VYe._globalThis}})});var y8=c(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS._globalThis=void 0;var BYe=P8();Object.defineProperty(xS,"_globalThis",{enumerable:!0,get:function(){return BYe._globalThis}})});var v8=c(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.API_BACKWARDS_COMPATIBILITY_VERSION=Nn.makeGetter=Nn._global=Nn.GLOBAL_LOGS_API_KEY=void 0;var qYe=y8();Nn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Nn._global=qYe._globalThis;function jYe(t,e,r){return n=>n===t?e:r}Nn.makeGetter=jYe;Nn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var C8=c(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.LogsAPI=void 0;var Ur=v8(),HYe=MS(),N8=V0(),B0=class t{constructor(){this._proxyLoggerProvider=new N8.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Ur._global[Ur.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Ur._global[Ur.GLOBAL_LOGS_API_KEY]=(0,Ur.makeGetter)(Ur.API_BACKWARDS_COMPATIBILITY_VERSION,e,HYe.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Ur._global[Ur.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Ur._global,Ur.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Ur._global[Ur.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new N8.ProxyLoggerProvider}};wS.LogsAPI=B0});var q0=c(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.logs=it.ProxyLoggerProvider=it.ProxyLogger=it.NoopLoggerProvider=it.NOOP_LOGGER_PROVIDER=it.NoopLogger=it.NOOP_LOGGER=it.SeverityNumber=void 0;var FYe=I8();Object.defineProperty(it,"SeverityNumber",{enumerable:!0,get:function(){return FYe.SeverityNumber}});var M8=NS();Object.defineProperty(it,"NOOP_LOGGER",{enumerable:!0,get:function(){return M8.NOOP_LOGGER}});Object.defineProperty(it,"NoopLogger",{enumerable:!0,get:function(){return M8.NoopLogger}});var L8=MS();Object.defineProperty(it,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return L8.NOOP_LOGGER_PROVIDER}});Object.defineProperty(it,"NoopLoggerProvider",{enumerable:!0,get:function(){return L8.NoopLoggerProvider}});var kYe=x0();Object.defineProperty(it,"ProxyLogger",{enumerable:!0,get:function(){return kYe.ProxyLogger}});var WYe=V0();Object.defineProperty(it,"ProxyLoggerProvider",{enumerable:!0,get:function(){return WYe.ProxyLoggerProvider}});var YYe=C8();it.logs=YYe.LogsAPI.getInstance()});var D8=c(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.disableInstrumentations=Ac.enableInstrumentations=void 0;function KYe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Ac.enableInstrumentations=KYe;function XYe(t){t.forEach(e=>e.disable())}Ac.disableInstrumentations=XYe});var x8=c(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0});VS.registerInstrumentations=void 0;var G8=(P(),m(b)),ZYe=q0(),U8=D8();function zYe(t){var e,r;let n=t.tracerProvider||G8.trace.getTracerProvider(),o=t.meterProvider||G8.metrics.getMeterProvider(),i=t.loggerProvider||ZYe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,U8.enableInstrumentations)(s,n,o,i),()=>{(0,U8.disableInstrumentations)(s)}}VS.registerInstrumentations=zYe});var w8=c(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.InstrumentationAbstract=void 0;var j0=(P(),m(b)),JYe=q0(),BS=Le(),H0=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=BS.wrap,this._unwrap=BS.unwrap,this._massWrap=BS.massWrap,this._massUnwrap=BS.massUnwrap,this.setConfig(n),this._diag=j0.diag.createComponentLogger({namespace:e}),this._tracer=j0.trace.getTracer(e,r),this._meter=j0.metrics.getMeter(e,r),this._logger=JYe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};qS.InstrumentationAbstract=H0});var V8=c(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.ModuleNameTrie=Ci.ModuleNameSeparator=void 0;Ci.ModuleNameSeparator="/";var jS=class{constructor(){this.hooks=[],this.children=new Map}},F0=class{constructor(){this._trie=new jS,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Ci.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new jS,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Ci.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Ci.ModuleNameTrie=F0});var q8=c(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.RequireInTheMiddleSingleton=void 0;var $Ye=Ge(),B8=require("path"),k0=V8(),QYe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),W0=class t{constructor(){this._moduleNameTrie=new k0.ModuleNameTrie,this._initialize()}_initialize(){new $Ye.Hook(null,{internals:!0},(e,r,n)=>{let o=eKe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return QYe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};HS.RequireInTheMiddleSingleton=W0;function eKe(t){return B8.sep!==k0.ModuleNameSeparator?t.split(B8.sep).join(k0.ModuleNameSeparator):t}});var Y0=c(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.isWrapped=Mi.safeExecuteInTheMiddleAsync=Mi.safeExecuteInTheMiddle=void 0;function tKe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Mi.safeExecuteInTheMiddle=tKe;async function rKe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Mi.safeExecuteInTheMiddleAsync=rKe;function nKe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Mi.isWrapped=nKe});var F8=c(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.InstrumentationBase=void 0;var K0=require("path"),j8=require("util"),oKe=Tr(),X0=Le(),iKe=w8(),sKe=q8(),aKe=Rr(),dp=(P(),m(b)),uKe=Ge(),cKe=require("fs"),lKe=Y0(),Z0=class extends iKe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=sKe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,lKe.isWrapped)(i[s])&&this._unwrap(i,s),j8.types.isProxy(i)){let u=(0,X0.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,X0.wrap)(i,s,a)},this._unwrap=(i,s)=>j8.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,X0.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{dp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){dp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{dp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){dp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,cKe.readFileSync)(K0.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{dp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return H8(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=K0.normalize(n);return a.filter(d=>d.name===u).filter(d=>H8(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=K0.isAbsolute(e.name)?new uKe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new aKe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};FS.InstrumentationBase=Z0;function H8(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,oKe.satisfies)(e,n,{includePrerelease:r}))}});var k8=c(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.normalize=void 0;var dKe=require("path");Object.defineProperty(kS,"normalize",{enumerable:!0,get:function(){return dKe.normalize}})});var W8=c(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.normalize=Rc.InstrumentationBase=void 0;var pKe=F8();Object.defineProperty(Rc,"InstrumentationBase",{enumerable:!0,get:function(){return pKe.InstrumentationBase}});var _Ke=k8();Object.defineProperty(Rc,"normalize",{enumerable:!0,get:function(){return _Ke.normalize}})});var z0=c(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.normalize=Oc.InstrumentationBase=void 0;var Y8=W8();Object.defineProperty(Oc,"InstrumentationBase",{enumerable:!0,get:function(){return Y8.InstrumentationBase}});Object.defineProperty(Oc,"normalize",{enumerable:!0,get:function(){return Y8.normalize}})});var K8=c(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.InstrumentationNodeModuleDefinition=void 0;var J0=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};WS.InstrumentationNodeModuleDefinition=J0});var X8=c(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.InstrumentationNodeModuleFile=void 0;var fKe=z0(),$0=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,fKe.normalize)(e)}};YS.InstrumentationNodeModuleFile=$0});var Z8=c(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.safeExecuteInTheMiddleAsync=wt.safeExecuteInTheMiddle=wt.isWrapped=wt.InstrumentationNodeModuleFile=wt.InstrumentationNodeModuleDefinition=wt.InstrumentationBase=wt.registerInstrumentations=void 0;var gKe=x8();Object.defineProperty(wt,"registerInstrumentations",{enumerable:!0,get:function(){return gKe.registerInstrumentations}});var EKe=z0();Object.defineProperty(wt,"InstrumentationBase",{enumerable:!0,get:function(){return EKe.InstrumentationBase}});var hKe=K8();Object.defineProperty(wt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return hKe.InstrumentationNodeModuleDefinition}});var mKe=X8();Object.defineProperty(wt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return mKe.InstrumentationNodeModuleFile}});var Q0=Y0();Object.defineProperty(wt,"isWrapped",{enumerable:!0,get:function(){return Q0.isWrapped}});Object.defineProperty(wt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return Q0.safeExecuteInTheMiddle}});Object.defineProperty(wt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return Q0.safeExecuteInTheMiddleAsync}})});var z8=c(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.MongodbCommandType=void 0;var TKe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.AGGREGATE="aggregate",t.UNKNOWN="unknown"})(TKe=pp.MongodbCommandType||(pp.MongodbCommandType={}))});var J8=c(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.PACKAGE_NAME=Ic.PACKAGE_VERSION=void 0;Ic.PACKAGE_VERSION="0.48.0";Ic.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb"});var Q8=c(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.MongoDBInstrumentation=void 0;var Pe=(P(),m(b)),me=Z8(),fo=($(),m(J)),Li=z8(),$8=J8(),eD=class t extends me.InstrumentationBase{constructor(e={}){super($8.PACKAGE_NAME,$8.PACKAGE_VERSION,e)}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){let{v3PatchConnection:e,v3UnpatchConnection:r}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:o}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:i,v4PatchConnectionPromise:s,v4UnpatchConnection:a}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:d,v4UnpatchSessions:p}=this._getV4SessionsPatches();return[new me.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new me.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],e,r)]),new me.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <7"],void 0,void 0,[new me.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],i,a),new me.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <7"],s,a),new me.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new me.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <7"],n,o),new me.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <7"],d,p)])]}_getV3ConnectionPatches(){return{v3PatchConnection:e=>((0,me.isWrapped)(e.insert)&&this._unwrap(e,"insert"),this._wrap(e,"insert",this._getV3PatchOperation("insert")),(0,me.isWrapped)(e.remove)&&this._unwrap(e,"remove"),this._wrap(e,"remove",this._getV3PatchOperation("remove")),(0,me.isWrapped)(e.update)&&this._unwrap(e,"update"),this._wrap(e,"update",this._getV3PatchOperation("update")),(0,me.isWrapped)(e.command)&&this._unwrap(e,"command"),this._wrap(e,"command",this._getV3PatchCommand()),(0,me.isWrapped)(e.query)&&this._unwrap(e,"query"),this._wrap(e,"query",this._getV3PatchFind()),(0,me.isWrapped)(e.getMore)&&this._unwrap(e,"getMore"),this._wrap(e,"getMore",this._getV3PatchCursor()),e),v3UnpatchConnection:e=>{e!==void 0&&(this._unwrap(e,"insert"),this._unwrap(e,"remove"),this._unwrap(e,"update"),this._unwrap(e,"command"),this._unwrap(e,"query"),this._unwrap(e,"getMore"))}}}_getV4SessionsPatches(){return{v4PatchSessions:e=>((0,me.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),this._wrap(e.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0,me.isWrapped)(e.release)&&this._unwrap(e,"release"),this._wrap(e.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),e),v4UnpatchSessions:e=>{e!==void 0&&((0,me.isWrapped)(e.acquire)&&this._unwrap(e,"acquire"),(0,me.isWrapped)(e.release)&&this._unwrap(e,"release"))}}}_getV4AcquireCommand(){let e=this;return r=>function(){let o=this.sessions.length,i=r.call(this),s=this.sessions.length;return o===s?e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName}):o-1===s&&(e._connectionsUsage.add(-1,{state:"idle","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"used","pool.name":e._poolName})),i}}_getV4ReleaseCommand(){let e=this;return r=>function(o){let i=r.call(this,o);return e._connectionsUsage.add(-1,{state:"used","pool.name":e._poolName}),e._connectionsUsage.add(1,{state:"idle","pool.name":e._poolName}),i}}_getV4ConnectionPoolPatches(){return{v4PatchConnectionPool:e=>{let r=e.ConnectionPool.prototype;return(0,me.isWrapped)(r.checkOut)&&this._unwrap(r,"checkOut"),this._wrap(r,"checkOut",this._getV4ConnectionPoolCheckOut()),e},v4UnpatchConnectionPool:e=>{e!==void 0&&this._unwrap(e.ConnectionPool.prototype,"checkOut")}}}_getV4ConnectPatches(){return{v4PatchConnect:e=>((0,me.isWrapped)(e.connect)&&this._unwrap(e,"connect"),this._wrap(e,"connect",this._getV4ConnectCommand()),e),v4UnpatchConnect:e=>{e!==void 0&&this._unwrap(e,"connect")}}}_getV4ConnectionPoolCheckOut(){return e=>function(n){let o=Pe.context.bind(Pe.context.active(),n);return e.call(this,o)}}_getV4ConnectCommand(){let e=this;return r=>function(o,i){if(r.length===1){let a=r.call(this,o);return a&&typeof a.then=="function"&&a.then(()=>e.setPoolName(o),()=>{}),a}let s=function(a,u){if(a||!u){i(a,u);return}e.setPoolName(o),i(a,u)};return r.call(this,o,s)}}_getV4ConnectionPatches(){return{v4PatchConnectionCallback:e=>((0,me.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandCallback()),e),v4PatchConnectionPromise:e=>((0,me.isWrapped)(e.Connection.prototype.command)&&this._unwrap(e.Connection.prototype,"command"),this._wrap(e.Connection.prototype,"command",this._getV4PatchCommandPromise()),e),v4UnpatchConnection:e=>{e!==void 0&&this._unwrap(e.Connection.prototype,"command")}}}_getV3PatchOperation(e){let r=this;return n=>function(i,s,a,u,l){let d=Pe.trace.getSpan(Pe.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof a!="object")return typeof u=="function"?n.call(this,i,s,a,u):n.call(this,i,s,a,u,l);let _=r.tracer.startSpan(`mongodb.${e}`,{kind:Pe.SpanKind.CLIENT});r._populateV3Attributes(_,s,i,a[0],e);let f=r._patchEnd(_,p);return typeof u=="function"?n.call(this,i,s,a,f):n.call(this,i,s,a,u,f)}}_getV3PatchCommand(){let e=this;return r=>function(o,i,s,a,u){let l=Pe.trace.getSpan(Pe.context.active()),d=typeof a=="function"?a:u;if(!l||typeof d!="function"||typeof s!="object")return typeof a=="function"?r.call(this,o,i,s,a):r.call(this,o,i,s,a,u);let p=t._getCommandType(s),_=p===Li.MongodbCommandType.UNKNOWN?"command":p,f=e.tracer.startSpan(`mongodb.${_}`,{kind:Pe.SpanKind.CLIENT}),g=p===Li.MongodbCommandType.UNKNOWN?void 0:p;e._populateV3Attributes(f,i,o,s,g);let E=e._patchEnd(f,d);return typeof a=="function"?r.call(this,o,i,s,E):r.call(this,o,i,s,a,E)}}_getV4PatchCommandCallback(){let e=this;return r=>function(o,i,s,a){let u=Pe.trace.getSpan(Pe.context.active()),l=a,d=Object.keys(i)[0];if(typeof l!="function"||typeof i!="object"||i.ismaster||i.hello)return r.call(this,o,i,s,a);let p;u&&(p=e.tracer.startSpan(`mongodb.${d}`,{kind:Pe.SpanKind.CLIENT}),e._populateV4Attributes(p,this,o,i,d));let _=e._patchEnd(p,l,this.id,d);return r.call(this,o,i,s,_)}}_getV4PatchCommandPromise(){let e=this;return r=>function(...o){let[i,s]=o,a=Pe.trace.getSpan(Pe.context.active()),u=Object.keys(s)[0],l=()=>{};if(typeof s!="object"||s.ismaster||s.hello)return r.apply(this,o);let d;a&&(d=e.tracer.startSpan(`mongodb.${u}`,{kind:Pe.SpanKind.CLIENT}),e._populateV4Attributes(d,this,i,s,u));let p=e._patchEnd(d,l,this.id,u),_=r.apply(this,o);return _.then(f=>p(null,f),f=>p(f)),_}}_getV3PatchFind(){let e=this;return r=>function(o,i,s,a,u,l){let d=Pe.trace.getSpan(Pe.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function"||typeof s!="object")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.find",{kind:Pe.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s,"find");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}_getV3PatchCursor(){let e=this;return r=>function(o,i,s,a,u,l){let d=Pe.trace.getSpan(Pe.context.active()),p=typeof u=="function"?u:l;if(!d||typeof p!="function")return typeof u=="function"?r.call(this,o,i,s,a,u):r.call(this,o,i,s,a,u,l);let _=e.tracer.startSpan("mongodb.getMore",{kind:Pe.SpanKind.CLIENT});e._populateV3Attributes(_,i,o,s.cmd,"getMore");let f=e._patchEnd(_,p);return typeof u=="function"?r.call(this,o,i,s,a,f):r.call(this,o,i,s,a,u,f)}}static _getCommandType(e){return e.createIndexes!==void 0?Li.MongodbCommandType.CREATE_INDEXES:e.findandmodify!==void 0?Li.MongodbCommandType.FIND_AND_MODIFY:e.ismaster!==void 0?Li.MongodbCommandType.IS_MASTER:e.count!==void 0?Li.MongodbCommandType.COUNT:e.aggregate!==void 0?Li.MongodbCommandType.AGGREGATE:Li.MongodbCommandType.UNKNOWN}_populateV4Attributes(e,r,n,o,i){let s,a;if(r){let l=typeof r.address=="string"?r.address.split(":"):"";l.length===2&&(s=l[0],a=l[1])}let u;o?.documents&&o.documents[0]?u=o.documents[0]:o?.cursors?u=o.cursors:u=o,this._addAllSpanAttributes(e,n.db,n.collection,s,a,u,i)}_populateV3Attributes(e,r,n,o,i){var s,a,u,l,d,p,_,f;let g,E;if(n&&n.s&&(g=(a=(s=n.s.options)===null||s===void 0?void 0:s.host)!==null&&a!==void 0?a:n.s.host,E=(d=(l=(u=n.s.options)===null||u===void 0?void 0:u.port)!==null&&l!==void 0?l:n.s.port)===null||d===void 0?void 0:d.toString(),g==null||E==null)){let L=(p=n.description)===null||p===void 0?void 0:p.address;if(L){let M=L.split(":");g=M[0],E=M[1]}}let[T,y]=r.toString().split("."),C=(f=(_=o?.query)!==null&&_!==void 0?_:o?.q)!==null&&f!==void 0?f:o;this._addAllSpanAttributes(e,T,y,g,E,C,i)}_addAllSpanAttributes(e,r,n,o,i,s,a){if(e.setAttributes({[fo.SEMATTRS_DB_SYSTEM]:fo.DBSYSTEMVALUES_MONGODB,[fo.SEMATTRS_DB_NAME]:r,[fo.SEMATTRS_DB_MONGODB_COLLECTION]:n,[fo.SEMATTRS_DB_OPERATION]:a,[fo.SEMATTRS_DB_CONNECTION_STRING]:`mongodb://${o}:${i}/${r}`}),o&&i){e.setAttribute(fo.SEMATTRS_NET_PEER_NAME,o);let d=parseInt(i,10);isNaN(d)||e.setAttribute(fo.SEMATTRS_NET_PEER_PORT,d)}if(!s)return;let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0,me.safeExecuteInTheMiddle)(()=>{let d=l(s);e.setAttribute(fo.SEMATTRS_DB_STATEMENT,d)},d=>{d&&this._diag.error("Error running dbStatementSerializer hook",d)},!0)}_defaultDbStatementSerializer(e){let{enhancedDatabaseReporting:r}=this.getConfig(),n=r?e:this._scrubStatement(e);return JSON.stringify(n)}_scrubStatement(e){return Array.isArray(e)?e.map(r=>this._scrubStatement(r)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([r,n])=>[r,this._scrubStatement(n)])):"?"}_handleExecutionResult(e,r){let{responseHook:n}=this.getConfig();typeof n=="function"&&(0,me.safeExecuteInTheMiddle)(()=>{n(e,{data:r})},o=>{o&&this._diag.error("Error running response hook",o)},!0)}_patchEnd(e,r,n,o){let i=Pe.context.active(),s=this;return function(...u){let l=u[0];if(e){if(l instanceof Error)e?.setStatus({code:Pe.SpanStatusCode.ERROR,message:l.message});else{let d=u[1];s._handleExecutionResult(e,d)}e.end()}return Pe.context.with(i,()=>(o==="endSessions"&&s._connectionsUsage.add(-1,{state:"idle","pool.name":s._poolName}),r.apply(this,u)))}}setPoolName(e){var r,n;let o=(r=e.hostAddress)===null||r===void 0?void 0:r.host,i=(n=e.hostAddress)===null||n===void 0?void 0:n.port,s=e.dbName,a=`mongodb://${o}:${i}/${s}`;this._poolName=a}};KS.MongoDBInstrumentation=eD});var e7=c(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.MongodbCommandType=void 0;var SKe;(function(t){t.CREATE_INDEXES="createIndexes",t.FIND_AND_MODIFY="findAndModify",t.IS_MASTER="isMaster",t.COUNT="count",t.UNKNOWN="unknown"})(SKe=_p.MongodbCommandType||(_p.MongodbCommandType={}))});var r7=c(Di=>{"use strict";var AKe=Di&&Di.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),t7=Di&&Di.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&AKe(e,t,r)};Object.defineProperty(Di,"__esModule",{value:!0});t7(Q8(),Di);t7(e7(),Di)});var tD=c(XS=>{Object.defineProperty(XS,"__esModule",{value:!0});var RKe=r7(),OKe=k(),IKe=be(),bKe=Tn(),n7="Mongo",o7=IKe.generateInstrumentOnce(n7,()=>new RKe.MongoDBInstrumentation({responseHook(t){bKe.addOriginToSpan(t,"auto.db.otel.mongo")}})),PKe=()=>({name:n7,setupOnce(){o7()}}),yKe=OKe.defineIntegration(PKe);XS.instrumentMongo=o7;XS.mongoIntegration=yKe});var a7=c(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.handleCallbackResponse=Gi.handlePromiseResponse=Gi.getAttributesFromCollection=void 0;var i7=(P(),m(b)),vKe=qe(),fp=($(),m(J));function NKe(t){return{[fp.SEMATTRS_DB_MONGODB_COLLECTION]:t.name,[fp.SEMATTRS_DB_NAME]:t.conn.name,[fp.SEMATTRS_DB_USER]:t.conn.user,[fp.SEMATTRS_NET_PEER_NAME]:t.conn.host,[fp.SEMATTRS_NET_PEER_PORT]:t.conn.port}}Gi.getAttributesFromCollection=NKe;function s7(t,e={}){t.recordException(e),t.setStatus({code:i7.SpanStatusCode.ERROR,message:`${e.message} ${e.code?`
|
|
32
|
+
Mongoose Error Code: ${e.code}`:""}`})}function rD(t,e,r,n=void 0){r&&(0,vKe.safeExecuteInTheMiddle)(()=>r(t,{moduleVersion:n,response:e}),o=>{o&&i7.diag.error("mongoose instrumentation: responseHook error",o)},!0)}function CKe(t,e,r,n=void 0){return t instanceof Promise?t.then(o=>(rD(e,o,r,n),o)).catch(o=>{throw s7(e,o),o}).finally(()=>e.end()):(rD(e,t,r,n),e.end(),t)}Gi.handlePromiseResponse=CKe;function MKe(t,e,r,n,o,i,s=void 0){let a=0;return o.length===2&&(a=1),o[a]=(u,l)=>(u?s7(n,u):rD(n,l,i,s),n.end(),t(u,l)),e.apply(r,o)}Gi.handleCallbackResponse=MKe});var u7=c(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.PACKAGE_NAME=bc.PACKAGE_VERSION=void 0;bc.PACKAGE_VERSION="0.42.0";bc.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose"});var _7=c(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.MongooseInstrumentation=Cn._STORED_PARENT_SPAN=void 0;var kt=(P(),m(b)),LKe=ae(),nD=a7(),c7=qe(),l7=u7(),gp=($(),m(J)),ZS=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],DKe=["remove","count","findOneAndRemove",...ZS],GKe=["count","findOneAndRemove",...ZS],UKe=[...ZS];function d7(t){return t?t.startsWith("6.")||t.startsWith("5.")?DKe:t.startsWith("7.")?GKe:UKe:ZS}function p7(t){return t&&(t.startsWith("5.")||t.startsWith("6."))||!1}Cn._STORED_PARENT_SPAN=Symbol("stored-parent-span");var oD=class extends c7.InstrumentationBase{constructor(e={}){super(l7.PACKAGE_NAME,l7.PACKAGE_VERSION,e)}init(){return new c7.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <9"],this.patch.bind(this),this.unpatch.bind(this))}patch(e,r){return this._wrap(e.Model.prototype,"save",this.patchOnModelMethods("save",r)),e.Model.prototype.$save=e.Model.prototype.save,p7(r)&&this._wrap(e.Model.prototype,"remove",this.patchOnModelMethods("remove",r)),this._wrap(e.Query.prototype,"exec",this.patchQueryExec(r)),this._wrap(e.Aggregate.prototype,"exec",this.patchAggregateExec(r)),d7(r).forEach(o=>{this._wrap(e.Query.prototype,o,this.patchAndCaptureSpanContext(o))}),this._wrap(e.Model,"aggregate",this.patchModelAggregate()),e}unpatch(e,r){let n=d7(r);this._unwrap(e.Model.prototype,"save"),e.Model.prototype.$save=e.Model.prototype.save,p7(r)&&this._unwrap(e.Model.prototype,"remove"),this._unwrap(e.Query.prototype,"exec"),this._unwrap(e.Aggregate.prototype,"exec"),n.forEach(o=>{this._unwrap(e.Query.prototype,o)}),this._unwrap(e.Model,"aggregate")}patchAggregateExec(e){let r=this;return n=>function(i){var s;if(r.getConfig().requireParentSpan&&kt.trace.getSpan(kt.context.active())===void 0)return n.apply(this,arguments);let a=this[Cn._STORED_PARENT_SPAN],u={},{dbStatementSerializer:l}=r.getConfig();l&&(u[gp.SEMATTRS_DB_STATEMENT]=l("aggregate",{options:this.options,aggregatePipeline:this._pipeline}));let d=r._startSpan(this._model.collection,(s=this._model)===null||s===void 0?void 0:s.modelName,"aggregate",u,a);return r._handleResponse(d,n,this,arguments,i,e)}}patchQueryExec(e){let r=this;return n=>function(i){if(r.getConfig().requireParentSpan&&kt.trace.getSpan(kt.context.active())===void 0)return n.apply(this,arguments);let s=this[Cn._STORED_PARENT_SPAN],a={},{dbStatementSerializer:u}=r.getConfig();u&&(a[gp.SEMATTRS_DB_STATEMENT]=u(this.op,{condition:this._conditions,updates:this._update,options:this.options,fields:this._fields}));let l=r._startSpan(this.mongooseCollection,this.model.modelName,this.op,a,s);return r._handleResponse(l,n,this,arguments,i,e)}}patchOnModelMethods(e,r){let n=this;return o=>function(s,a){if(n.getConfig().requireParentSpan&&kt.trace.getSpan(kt.context.active())===void 0)return o.apply(this,arguments);let u={document:this};s&&!(s instanceof Function)&&(u.options=s);let l={},{dbStatementSerializer:d}=n.getConfig();d&&(l[gp.SEMATTRS_DB_STATEMENT]=d(e,u));let p=n._startSpan(this.constructor.collection,this.constructor.modelName,e,l);return s instanceof Function&&(a=s,s=void 0),n._handleResponse(p,o,this,arguments,a,r)}}patchModelAggregate(){let e=this;return r=>function(){let o=kt.trace.getSpan(kt.context.active()),i=e._callOriginalFunction(()=>r.apply(this,arguments));return i&&(i[Cn._STORED_PARENT_SPAN]=o),i}}patchAndCaptureSpanContext(e){let r=this;return n=>function(){return this[Cn._STORED_PARENT_SPAN]=kt.trace.getSpan(kt.context.active()),r._callOriginalFunction(()=>n.apply(this,arguments))}}_startSpan(e,r,n,o,i){return this.tracer.startSpan(`mongoose.${r}.${n}`,{kind:kt.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},o),(0,nD.getAttributesFromCollection)(e)),{[gp.SEMATTRS_DB_OPERATION]:n,[gp.SEMATTRS_DB_SYSTEM]:"mongoose"})},i?kt.trace.setSpan(kt.context.active(),i):void 0)}_handleResponse(e,r,n,o,i,s=void 0){let a=this;if(i instanceof Function)return a._callOriginalFunction(()=>(0,nD.handleCallbackResponse)(i,r,n,e,o,a.getConfig().responseHook,s));{let u=a._callOriginalFunction(()=>r.apply(n,o));return(0,nD.handlePromiseResponse)(u,e,a.getConfig().responseHook,s)}}_callOriginalFunction(e){return this.getConfig().suppressInternalInstrumentation?kt.context.with((0,LKe.suppressTracing)(kt.context.active()),e):e()}};Cn.MongooseInstrumentation=oD});var g7=c(f7=>{"use strict";Object.defineProperty(f7,"__esModule",{value:!0})});var h7=c(Ui=>{"use strict";var xKe=Ui&&Ui.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),E7=Ui&&Ui.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xKe(e,t,r)};Object.defineProperty(Ui,"__esModule",{value:!0});E7(_7(),Ui);E7(g7(),Ui)});var iD=c(zS=>{Object.defineProperty(zS,"__esModule",{value:!0});var wKe=h7(),VKe=k(),BKe=be(),qKe=Tn(),m7="Mongoose",T7=BKe.generateInstrumentOnce(m7,()=>new wKe.MongooseInstrumentation({responseHook(t){qKe.addOriginToSpan(t,"auto.db.otel.mongoose")}})),jKe=()=>({name:m7,setupOnce(){T7()}}),HKe=VKe.defineIntegration(jKe);zS.instrumentMongoose=T7;zS.mongooseIntegration=HKe});var S7=c(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.AttributeNames=void 0;var FKe;(function(t){t.MYSQL_VALUES="db.mysql.values"})(FKe=Ep.AttributeNames||(Ep.AttributeNames={}))});var R7=c(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getPoolName=rr.arrayStringifyHelper=rr.getSpanName=rr.getDbValues=rr.getDbStatement=rr.getConnectionAttributes=void 0;var go=($(),m(J));function kKe(t){let{host:e,port:r,database:n,user:o}=WKe(t),i=parseInt(r,10);return isNaN(i)?{[go.SEMATTRS_NET_PEER_NAME]:e,[go.SEMATTRS_DB_CONNECTION_STRING]:A7(e,r,n),[go.SEMATTRS_DB_NAME]:n,[go.SEMATTRS_DB_USER]:o}:{[go.SEMATTRS_NET_PEER_NAME]:e,[go.SEMATTRS_NET_PEER_PORT]:i,[go.SEMATTRS_DB_CONNECTION_STRING]:A7(e,r,n),[go.SEMATTRS_DB_NAME]:n,[go.SEMATTRS_DB_USER]:o}}rr.getConnectionAttributes=kKe;function WKe(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function A7(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function YKe(t){return typeof t=="string"?t:t.sql}rr.getDbStatement=YKe;function KKe(t,e){return sD(typeof t=="string"?e:e||t.values)}rr.getDbValues=KKe;function XKe(t){return typeof t=="object"?t.sql:t.split(" ")[0]}rr.getSpanName=XKe;function sD(t){return t?`[${t.toString()}]`:""}rr.arrayStringifyHelper=sD;function ZKe(t){let e=t.config.connectionConfig,r="";return r+=e.host?`host: '${e.host}', `:"",r+=e.port?`port: ${e.port}, `:"",r+=e.database?`database: '${e.database}', `:"",r+=e.user?`user: '${e.user}'`:"",e.user||(r=r.substring(0,r.length-2)),r.trim()}rr.getPoolName=ZKe});var O7=c(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.PACKAGE_NAME=Pc.PACKAGE_VERSION=void 0;Pc.PACKAGE_VERSION="0.41.0";Pc.PACKAGE_NAME="@opentelemetry/instrumentation-mysql"});var b7=c($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});$S.MySQLInstrumentation=void 0;var nr=(P(),m(b)),yc=qe(),aD=($(),m(J)),zKe=S7(),vc=R7(),I7=O7(),JS=class t extends yc.InstrumentationBase{constructor(e={}){super(I7.PACKAGE_NAME,I7.PACKAGE_VERSION,e),this._setMetricInstruments()}setMeterProvider(e){super.setMeterProvider(e),this._setMetricInstruments()}_setMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"})}init(){return[new yc.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],e=>((0,yc.isWrapped)(e.createConnection)&&this._unwrap(e,"createConnection"),this._wrap(e,"createConnection",this._patchCreateConnection()),(0,yc.isWrapped)(e.createPool)&&this._unwrap(e,"createPool"),this._wrap(e,"createPool",this._patchCreatePool()),(0,yc.isWrapped)(e.createPoolCluster)&&this._unwrap(e,"createPoolCluster"),this._wrap(e,"createPoolCluster",this._patchCreatePoolCluster()),e),e=>{e!==void 0&&(this._unwrap(e,"createConnection"),this._unwrap(e,"createPool"),this._unwrap(e,"createPoolCluster"))})]}_patchCreateConnection(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),i}}}_patchCreatePool(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"query",r._patchQuery(i)),r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"end",r._patchPoolEnd(i)),r._setPoolcallbacks(i,r,""),i}}}_patchPoolEnd(e){return r=>{let n=this;return function(i){let s=e._allConnections.length,a=e._freeConnections.length,u=s-a,l=(0,vc.getPoolName)(e);n._connectionsUsage.add(-u,{state:"used",name:l}),n._connectionsUsage.add(-a,{state:"idle",name:l}),r.apply(e,arguments)}}}_patchCreatePoolCluster(){return e=>{let r=this;return function(o){let i=e(...arguments);return r._wrap(i,"getConnection",r._patchGetConnection(i)),r._wrap(i,"add",r._patchAdd(i)),i}}}_patchAdd(e){return r=>{let n=this;return function(i,s){if(!n._enabled)return n._unwrap(e,"add"),r.apply(e,arguments);r.apply(e,arguments);let a=e._nodes;if(a){let u=typeof i=="object"?"CLUSTER::"+e._lastId:String(i),l=a[u].pool;n._setPoolcallbacks(l,n,i)}}}}_patchGetConnection(e){return r=>{let n=this;return function(i,s,a){if(!n._enabled)return n._unwrap(e,"getConnection"),r.apply(e,arguments);if(arguments.length===1&&typeof i=="function"){let u=n._getConnectionCallbackPatchFn(i);return r.call(e,u)}if(arguments.length===2&&typeof s=="function"){let u=n._getConnectionCallbackPatchFn(s);return r.call(e,i,u)}if(arguments.length===3&&typeof a=="function"){let u=n._getConnectionCallbackPatchFn(a);return r.call(e,i,s,u)}return r.apply(e,arguments)}}}_getConnectionCallbackPatchFn(e){let r=this,n=nr.context.active();return function(o,i){i&&((0,yc.isWrapped)(i.query)||r._wrap(i,"query",r._patchQuery(i))),typeof e=="function"&&nr.context.with(n,e,this,o,i)}}_patchQuery(e){return r=>{let n=this;return function(o,i,s){if(!n._enabled)return n._unwrap(e,"query"),r.apply(e,arguments);let a=n.tracer.startSpan((0,vc.getSpanName)(o),{kind:nr.SpanKind.CLIENT,attributes:Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,vc.getConnectionAttributes)(e.config))});if(a.setAttribute(aD.SEMATTRS_DB_STATEMENT,(0,vc.getDbStatement)(o)),n.getConfig().enhancedDatabaseReporting){let d;Array.isArray(i)?d=i:arguments[2]&&(d=[i]),a.setAttribute(zKe.AttributeNames.MYSQL_VALUES,(0,vc.getDbValues)(o,d))}let u=Array.from(arguments).findIndex(d=>typeof d=="function"),l=nr.context.active();if(u===-1){let d=nr.context.with(nr.trace.setSpan(nr.context.active(),a),()=>r.apply(e,arguments));return nr.context.bind(l,d),d.on("error",p=>a.setStatus({code:nr.SpanStatusCode.ERROR,message:p.message})).on("end",()=>{a.end()})}else return n._wrap(arguments,u,n._patchCallbackQuery(a,l)),nr.context.with(nr.trace.setSpan(nr.context.active(),a),()=>r.apply(e,arguments))}}}_patchCallbackQuery(e,r){return n=>function(o,i,s){return o&&e.setStatus({code:nr.SpanStatusCode.ERROR,message:o.message}),e.end(),nr.context.with(r,()=>n(...arguments))}}_setPoolcallbacks(e,r,n){let o=n||(0,vc.getPoolName)(e);e.on("connection",i=>{r._connectionsUsage.add(1,{state:"idle",name:o})}),e.on("acquire",i=>{r._connectionsUsage.add(-1,{state:"idle",name:o}),r._connectionsUsage.add(1,{state:"used",name:o})}),e.on("release",i=>{r._connectionsUsage.add(-1,{state:"used",name:o}),r._connectionsUsage.add(1,{state:"idle",name:o})})}};$S.MySQLInstrumentation=JS;JS.COMMON_ATTRIBUTES={[aD.SEMATTRS_DB_SYSTEM]:aD.DBSYSTEMVALUES_MYSQL}});var y7=c(P7=>{"use strict";Object.defineProperty(P7,"__esModule",{value:!0})});var N7=c(xi=>{"use strict";var JKe=xi&&xi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),v7=xi&&xi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&JKe(e,t,r)};Object.defineProperty(xi,"__esModule",{value:!0});v7(b7(),xi);v7(y7(),xi)});var uD=c(QS=>{Object.defineProperty(QS,"__esModule",{value:!0});var $Ke=N7(),QKe=k(),eXe=be(),C7="Mysql",M7=eXe.generateInstrumentOnce(C7,()=>new $Ke.MySQLInstrumentation({})),tXe=()=>({name:C7,setupOnce(){M7()}}),rXe=QKe.defineIntegration(tXe);QS.instrumentMysql=M7;QS.mysqlIntegration=rXe});var lD=c(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.addSqlCommenterComment=void 0;var cD=(P(),m(b)),nXe=ae();function oXe(t){let e=t.indexOf("--");if(e>=0)return!0;if(t.indexOf("/*")<0)return!1;let n=t.indexOf("*/");return e<n}function iXe(t){return encodeURIComponent(t).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}function sXe(t,e){if(typeof e!="string"||e.length===0||oXe(e))return e;let r=new nXe.W3CTraceContextPropagator,n={};r.inject(cD.trace.setSpan(cD.ROOT_CONTEXT,t),n,cD.defaultTextMapSetter);let o=Object.keys(n).sort();if(o.length===0)return e;let i=o.map(s=>{let a=iXe(n[s]);return`${s}='${a}'`}).join(",");return`${e} /*${i}*/`}eA.addSqlCommenterComment=sXe});var D7=c(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.once=Mn.getSpanName=Mn.getDbStatement=Mn.getConnectionAttributes=void 0;var Eo=($(),m(J));function aXe(t){let{host:e,port:r,database:n,user:o}=uXe(t),i=parseInt(r,10);return isNaN(i)?{[Eo.SEMATTRS_NET_PEER_NAME]:e,[Eo.SEMATTRS_DB_CONNECTION_STRING]:L7(e,r,n),[Eo.SEMATTRS_DB_NAME]:n,[Eo.SEMATTRS_DB_USER]:o}:{[Eo.SEMATTRS_NET_PEER_NAME]:e,[Eo.SEMATTRS_NET_PEER_PORT]:i,[Eo.SEMATTRS_DB_CONNECTION_STRING]:L7(e,r,n),[Eo.SEMATTRS_DB_NAME]:n,[Eo.SEMATTRS_DB_USER]:o}}Mn.getConnectionAttributes=aXe;function uXe(t){let{host:e,port:r,database:n,user:o}=t&&t.connectionConfig||t||{};return{host:e,port:r,database:n,user:o}}function L7(t,e,r){let n=`jdbc:mysql://${t||"localhost"}`;return typeof e=="number"&&(n+=`:${e}`),typeof r=="string"&&(n+=`/${r}`),n}function cXe(t,e,r){return typeof t=="string"?r?e(t,r):t:r||t.values?e(t.sql,r||t.values):t.sql}Mn.getDbStatement=cXe;function lXe(t){var e;let r=typeof t=="object"?t.sql:t;return(e=r?.split(" "))===null||e===void 0?void 0:e[0]}Mn.getSpanName=lXe;var dXe=t=>{let e=!1;return(...r)=>{if(!e)return e=!0,t(...r)}};Mn.once=dXe});var G7=c(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.PACKAGE_NAME=Nc.PACKAGE_VERSION=void 0;Nc.PACKAGE_VERSION="0.41.0";Nc.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2"});var V7=c(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.MySQL2Instrumentation=void 0;var U7=(P(),m(b)),hp=qe(),dD=($(),m(J)),x7=lD(),tA=D7(),w7=G7(),rA=class t extends hp.InstrumentationBase{constructor(e={}){super(w7.PACKAGE_NAME,w7.PACKAGE_VERSION,e)}init(){return[new hp.InstrumentationNodeModuleDefinition("mysql2",[">=1.4.2 <4"],e=>{let r=e.Connection.prototype;return(0,hp.isWrapped)(r.query)&&this._unwrap(r,"query"),this._wrap(r,"query",this._patchQuery(e.format,!1)),(0,hp.isWrapped)(r.execute)&&this._unwrap(r,"execute"),this._wrap(r,"execute",this._patchQuery(e.format,!0)),e},e=>{if(e===void 0)return;let r=e.Connection.prototype;this._unwrap(r,"query"),this._unwrap(r,"execute")})]}_patchQuery(e,r){return n=>{let o=this;return function(i,s,a){let u;Array.isArray(s)?u=s:arguments[2]&&(u=[s]);let l=o.tracer.startSpan((0,tA.getSpanName)(i),{kind:U7.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},t.COMMON_ATTRIBUTES),(0,tA.getConnectionAttributes)(this.config)),{[dD.SEMATTRS_DB_STATEMENT]:(0,tA.getDbStatement)(i,e,u)})});!r&&o.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=i=typeof i=="string"?(0,x7.addSqlCommenterComment)(l,i):Object.assign(i,{sql:(0,x7.addSqlCommenterComment)(l,i.sql)}));let d=(0,tA.once)((p,_)=>{if(p)l.setStatus({code:U7.SpanStatusCode.ERROR,message:p.message});else{let{responseHook:f}=o.getConfig();typeof f=="function"&&(0,hp.safeExecuteInTheMiddle)(()=>{f(l,{queryResults:_})},g=>{g&&o._diag.warn("Failed executing responseHook",g)},!0)}l.end()});if(arguments.length===1){typeof i.onResult=="function"&&o._wrap(i,"onResult",o._patchCallbackQuery(d));let p=n.apply(this,arguments);return p.once("error",_=>{d(_)}).once("result",_=>{d(void 0,_)}),p}return typeof arguments[1]=="function"?o._wrap(arguments,1,o._patchCallbackQuery(d)):typeof arguments[2]=="function"&&o._wrap(arguments,2,o._patchCallbackQuery(d)),n.apply(this,arguments)}}}_patchCallbackQuery(e){return r=>function(n,o,i){return e(n,o),r(...arguments)}}};nA.MySQL2Instrumentation=rA;rA.COMMON_ATTRIBUTES={[dD.SEMATTRS_DB_SYSTEM]:dD.DBSYSTEMVALUES_MYSQL}});var q7=c(B7=>{"use strict";Object.defineProperty(B7,"__esModule",{value:!0})});var H7=c(wi=>{"use strict";var pXe=wi&&wi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),j7=wi&&wi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pXe(e,t,r)};Object.defineProperty(wi,"__esModule",{value:!0});j7(V7(),wi);j7(q7(),wi)});var pD=c(oA=>{Object.defineProperty(oA,"__esModule",{value:!0});var _Xe=H7(),fXe=k(),gXe=be(),EXe=Tn(),F7="Mysql2",k7=gXe.generateInstrumentOnce(F7,()=>new _Xe.MySQL2Instrumentation({responseHook(t){EXe.addOriginToSpan(t,"auto.db.otel.mysql2")}})),hXe=()=>({name:F7,setupOnce(){k7()}}),mXe=fXe.defineIntegration(hXe);oA.instrumentMysql2=k7;oA.mysql2Integration=mXe});var W7=c(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.endSpan=void 0;var TXe=(P(),m(b)),SXe=(t,e)=>{e&&(t.recordException(e),t.setStatus({code:TXe.SpanStatusCode.ERROR,message:e.message})),t.end()};iA.endSpan=SXe});var _D=c(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.defaultDbStatementSerializer=void 0;var AXe=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}],RXe=(t,e)=>{var r,n;if(Array.isArray(e)&&e.length){let o=(n=(r=AXe.find(({regex:s})=>s.test(t)))===null||r===void 0?void 0:r.args)!==null&&n!==void 0?n:0,i=o>=0?e.slice(0,o):e;return e.length>i.length&&i.push(`[${e.length-o} other arguments]`),`${t} ${i.join(" ")}`}return t};sA.defaultDbStatementSerializer=RXe});var Y7=c(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.PACKAGE_NAME=Cc.PACKAGE_VERSION=void 0;Cc.PACKAGE_VERSION="0.43.0";Cc.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis"});var z7=c(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.IORedisInstrumentation=void 0;var Vi=(P(),m(b)),aA=qe(),xr=($(),m(J)),K7=qe(),mp=W7(),OXe=_D(),X7=Y7(),Z7={requireParentSpan:!0},fD=class extends aA.InstrumentationBase{constructor(e={}){super(X7.PACKAGE_NAME,X7.PACKAGE_VERSION,Object.assign(Object.assign({},Z7),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},Z7),e))}init(){return[new aA.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(e,r)=>{let n=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,aA.isWrapped)(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(r)),(0,aA.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),e},e=>{if(e===void 0)return;let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._unwrap(r.prototype,"sendCommand"),this._unwrap(r.prototype,"connect")})]}_patchSendCommand(e){return r=>this._traceSendCommand(r,e)}_patchConnection(){return e=>this._traceConnection(e)}_traceSendCommand(e,r){let n=this;return function(o){if(arguments.length<1||typeof o!="object")return e.apply(this,arguments);let i=n.getConfig(),s=i.dbStatementSerializer||OXe.defaultDbStatementSerializer,a=Vi.trace.getSpan(Vi.context.active())===void 0;if(i.requireParentSpan===!0&&a)return e.apply(this,arguments);let u=n.tracer.startSpan(o.name,{kind:Vi.SpanKind.CLIENT,attributes:{[xr.SEMATTRS_DB_SYSTEM]:xr.DBSYSTEMVALUES_REDIS,[xr.SEMATTRS_DB_STATEMENT]:s(o.name,o.args)}}),{requestHook:l}=i;l&&(0,K7.safeExecuteInTheMiddle)(()=>l(u,{moduleVersion:r,cmdName:o.name,cmdArgs:o.args}),_=>{_&&Vi.diag.error("ioredis instrumentation: request hook failed",_)},!0);let{host:d,port:p}=this.options;u.setAttributes({[xr.SEMATTRS_NET_PEER_NAME]:d,[xr.SEMATTRS_NET_PEER_PORT]:p,[xr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${d}:${p}`});try{let _=e.apply(this,arguments),f=o.resolve;o.resolve=function(E){(0,K7.safeExecuteInTheMiddle)(()=>{var T;return(T=i.responseHook)===null||T===void 0?void 0:T.call(i,u,o.name,o.args,E)},T=>{T&&Vi.diag.error("ioredis instrumentation: response hook failed",T)},!0),(0,mp.endSpan)(u,null),f(E)};let g=o.reject;return o.reject=function(E){(0,mp.endSpan)(u,E),g(E)},_}catch(_){throw(0,mp.endSpan)(u,_),_}}}_traceConnection(e){let r=this;return function(){let n=Vi.trace.getSpan(Vi.context.active())===void 0;if(r.getConfig().requireParentSpan===!0&&n)return e.apply(this,arguments);let o=r.tracer.startSpan("connect",{kind:Vi.SpanKind.CLIENT,attributes:{[xr.SEMATTRS_DB_SYSTEM]:xr.DBSYSTEMVALUES_REDIS,[xr.SEMATTRS_DB_STATEMENT]:"connect"}}),{host:i,port:s}=this.options;o.setAttributes({[xr.SEMATTRS_NET_PEER_NAME]:i,[xr.SEMATTRS_NET_PEER_PORT]:s,[xr.SEMATTRS_DB_CONNECTION_STRING]:`redis://${i}:${s}`});try{let a=e.apply(this,arguments);return(0,mp.endSpan)(o,null),a}catch(a){throw(0,mp.endSpan)(o,a),a}}}};uA.IORedisInstrumentation=fD});var $7=c(J7=>{"use strict";Object.defineProperty(J7,"__esModule",{value:!0})});var eee=c(Bi=>{"use strict";var IXe=Bi&&Bi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Q7=Bi&&Bi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&IXe(e,t,r)};Object.defineProperty(Bi,"__esModule",{value:!0});Q7(z7(),Bi);Q7($7(),Bi)});var tee=c(cA=>{"use strict";Object.defineProperty(cA,"__esModule",{value:!0});cA.getClientAttributes=void 0;var Tp=($(),m(J));function bXe(t,e){var r,n;return{[Tp.SEMATTRS_DB_SYSTEM]:Tp.DBSYSTEMVALUES_REDIS,[Tp.SEMATTRS_NET_PEER_NAME]:(r=e?.socket)===null||r===void 0?void 0:r.host,[Tp.SEMATTRS_NET_PEER_PORT]:(n=e?.socket)===null||n===void 0?void 0:n.port,[Tp.SEMATTRS_DB_CONNECTION_STRING]:PXe(t,e?.url)}}cA.getClientAttributes=bXe;function PXe(t,e){if(typeof e=="string")try{let r=new URL(e);return r.searchParams.delete("user_pwd"),r.username="",r.password="",r.href}catch(r){t.error("failed to sanitize redis connection url",r)}}});var ree=c(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.PACKAGE_NAME=Mc.PACKAGE_VERSION=void 0;Mc.PACKAGE_VERSION="0.42.0";Mc.PACKAGE_NAME="@opentelemetry/instrumentation-redis-4"});var aee=c(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});dA.RedisInstrumentation=void 0;var wr=(P(),m(b)),st=qe(),nee=tee(),yXe=_D(),oee=ree(),vXe=($(),m(J)),Sp=Symbol("opentelemetry.instrumentation.redis.open_spans"),iee=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),see={requireParentSpan:!1},lA=class t extends st.InstrumentationBase{constructor(e={}){super(oee.PACKAGE_NAME,oee.PACKAGE_VERSION,Object.assign(Object.assign({},see),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},see),e))}init(){return[this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(e){let r=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/commander.js`,["^1.0.0"],(i,s)=>{let a=i.transformCommandArguments;if(!a)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),i;let u=s?.startsWith("1.0.")?"extendWithCommands":"attachCommands";return(0,st.isWrapped)(i?.[u])&&this._unwrap(i,u),this._wrap(i,u,this._getPatchExtendWithCommands(a)),i},i=>{(0,st.isWrapped)(i?.extendWithCommands)&&this._unwrap(i,"extendWithCommands"),(0,st.isWrapped)(i?.attachCommands)&&this._unwrap(i,"attachCommands")}),n=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/client/multi-command.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return(0,st.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),this._wrap(a,"exec",this._getPatchMultiCommandsExec()),(0,st.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand"),this._wrap(a,"addCommand",this._getPatchMultiCommandsAddCommand()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,st.isWrapped)(a?.exec)&&this._unwrap(a,"exec"),(0,st.isWrapped)(a?.addCommand)&&this._unwrap(a,"addCommand")}),o=new st.InstrumentationNodeModuleFile(`${e}/dist/lib/client/index.js`,["^1.0.0"],i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;return a?.multi&&((0,st.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),this._wrap(a,"multi",this._getPatchRedisClientMulti())),a?.MULTI&&((0,st.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),this._wrap(a,"MULTI",this._getPatchRedisClientMulti())),(0,st.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand"),this._wrap(a,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(a,"connect",this._getPatchedClientConnect()),i},i=>{var s;let a=(s=i?.default)===null||s===void 0?void 0:s.prototype;(0,st.isWrapped)(a?.multi)&&this._unwrap(a,"multi"),(0,st.isWrapped)(a?.MULTI)&&this._unwrap(a,"MULTI"),(0,st.isWrapped)(a?.sendCommand)&&this._unwrap(a,"sendCommand")});return new st.InstrumentationNodeModuleDefinition(e,["^1.0.0"],i=>i,()=>{},[r,n,o])}_getPatchExtendWithCommands(e){let r=this;return function(o){return function(s){var a;if(((a=s?.BaseClass)===null||a===void 0?void 0:a.name)!=="RedisClient")return o.apply(this,arguments);let u=s.executor;return s.executor=function(l,d){let p=e(l,d).args;return r._traceClientCommand(u,this,arguments,p)},o.apply(this,arguments)}}}_getPatchMultiCommandsExec(){let e=this;return function(n){return function(){let i=n.apply(this,arguments);return typeof i?.then!="function"?(e._diag.error("got non promise result when patching RedisClientMultiCommand.exec"),i):i.then(s=>{let a=this[Sp];return e._endSpansWithRedisReplies(a,s),s}).catch(s=>{let a=this[Sp];if(!a)e._diag.error("cannot find open spans to end for redis multi command");else{let u=s.constructor.name==="MultiErrorReply"?s.replies:new Array(a.length).fill(s);e._endSpansWithRedisReplies(a,u)}return Promise.reject(s)})}}}_getPatchMultiCommandsAddCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchRedisClientMulti(){return function(r){return function(){let o=r.apply(this,arguments);return o[iee]=this.options,o}}}_getPatchRedisClientSendCommand(){let e=this;return function(n){return function(i){return e._traceClientCommand(n,this,arguments,i)}}}_getPatchedClientConnect(){let e=this;return function(n){return function(){let i=this.options,s=(0,nee.getClientAttributes)(e._diag,i),a=e.tracer.startSpan(`${t.COMPONENT}-connect`,{kind:wr.SpanKind.CLIENT,attributes:s});return wr.context.with(wr.trace.setSpan(wr.context.active(),a),()=>n.apply(this)).then(l=>(a.end(),l)).catch(l=>(a.recordException(l),a.setStatus({code:wr.SpanStatusCode.ERROR,message:l.message}),a.end(),Promise.reject(l)))}}}_traceClientCommand(e,r,n,o){if(wr.trace.getSpan(wr.context.active())===void 0&&this.getConfig().requireParentSpan)return e.apply(r,n);let s=r.options||r[iee],a=o[0],u=o.slice(1),l=this.getConfig().dbStatementSerializer||yXe.defaultDbStatementSerializer,d=(0,nee.getClientAttributes)(this._diag,s);try{let f=l(a,u);f!=null&&(d[vXe.SEMATTRS_DB_STATEMENT]=f)}catch(f){this._diag.error("dbStatementSerializer throw an exception",f,{commandName:a})}let p=this.tracer.startSpan(`${t.COMPONENT}-${a}`,{kind:wr.SpanKind.CLIENT,attributes:d}),_=wr.context.with(wr.trace.setSpan(wr.context.active(),p),()=>e.apply(r,n));if(typeof _?.then=="function")_.then(f=>{this._endSpanWithResponse(p,a,u,f,void 0)},f=>{this._endSpanWithResponse(p,a,u,null,f)});else{let f=_;f[Sp]=f[Sp]||[],f[Sp].push({span:p,commandName:a,commandArgs:u})}return _}_endSpansWithRedisReplies(e,r){if(!e)return this._diag.error("cannot find open spans to end for redis multi command");if(r.length!==e.length)return this._diag.error("number of multi command spans does not match response from redis");for(let n=0;n<e.length;n++){let{span:o,commandName:i,commandArgs:s}=e[n],a=r[n],[u,l]=a instanceof Error?[null,a]:[a,void 0];this._endSpanWithResponse(o,i,s,u,l)}}_endSpanWithResponse(e,r,n,o,i){let{responseHook:s}=this.getConfig();if(!i&&s)try{s(e,r,n,o)}catch(a){this._diag.error("responseHook throw an exception",a)}i&&(e.recordException(i),e.setStatus({code:wr.SpanStatusCode.ERROR,message:i?.message})),e.end()}};dA.RedisInstrumentation=lA;lA.COMPONENT="redis"});var cee=c(uee=>{"use strict";Object.defineProperty(uee,"__esModule",{value:!0})});var dee=c(qi=>{"use strict";var NXe=qi&&qi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),lee=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&NXe(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});lee(aee(),qi);lee(cee(),qi)});var Eee=c(ho=>{Object.defineProperty(ho,"__esModule",{value:!0});var pee=I(),CXe=["get","set","setex"],_ee=["get","mget"],fee=["set","setex"];function pA(t,e){return t.includes(e.toLowerCase())}function gee(t){return pA(_ee,t)?"cache.get":pA(fee,t)?"cache.put":void 0}function MXe(t,e){return e.some(r=>t.startsWith(r))}function LXe(t,e){try{if(e.length===0)return;let r=o=>typeof o=="string"||typeof o=="number"||Buffer.isBuffer(o)?[o.toString()]:Array.isArray(o)?pee.flatten(o.map(i=>r(i))):["<unknown>"],n=e[0];return pA(CXe,t)&&n!=null?r(n):pee.flatten(e.map(o=>r(o)))}catch{return}}function DXe(t,e,r){if(!gee(t))return!1;for(let n of e)if(MXe(n,r))return!0;return!1}function GXe(t){let e=r=>{try{return Buffer.isBuffer(r)?r.byteLength:typeof r=="string"?r.length:typeof r=="number"?r.toString().length:r==null?0:JSON.stringify(r).length}catch{return}};return Array.isArray(t)?t.reduce((r,n)=>{let o=e(n);return typeof o=="number"?r!==void 0?r+o:o:r},0):e(t)}ho.GET_COMMANDS=_ee;ho.SET_COMMANDS=fee;ho.calculateCacheItemSize=GXe;ho.getCacheKeySafely=LXe;ho.getCacheOperation=gee;ho.isInCommands=pA;ho.shouldConsiderForCache=DXe});var hD=c(_A=>{var{_optionalChain:gD}=I();Object.defineProperty(_A,"__esModule",{value:!0});var UXe=eee(),xXe=dee(),ji=k(),wXe=I(),hee=be(),Lc=Eee(),mee="Redis",ED={},Tee=(t,e,r,n)=>{t.setAttribute(ji.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.redis");let o=Lc.getCacheKeySafely(e,r),i=Lc.getCacheOperation(e);if(!o||!i||!gD([ED,"optionalAccess",d=>d.cachePrefixes])||!Lc.shouldConsiderForCache(e,o,ED.cachePrefixes))return;let s=gD([ji.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.name"]]),a=gD([ji.spanToJSON,"call",d=>d(t),"access",d=>d.data,"optionalAccess",d=>d["net.peer.port"]]);a&&s&&t.setAttributes({"network.peer.address":s,"network.peer.port":a});let u=Lc.calculateCacheItemSize(n);u&&t.setAttribute(ji.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,u),Lc.isInCommands(Lc.GET_COMMANDS,e)&&u!==void 0&&t.setAttribute(ji.SEMANTIC_ATTRIBUTE_CACHE_HIT,u>0),t.setAttributes({[ji.SEMANTIC_ATTRIBUTE_SENTRY_OP]:i,[ji.SEMANTIC_ATTRIBUTE_CACHE_KEY]:o});let l=o.join(", ");t.updateName(wXe.truncate(l,1024))},VXe=hee.generateInstrumentOnce("IORedis",()=>new UXe.IORedisInstrumentation({responseHook:Tee})),BXe=hee.generateInstrumentOnce("Redis-4",()=>new xXe.RedisInstrumentation({responseHook:Tee})),See=Object.assign(()=>{VXe(),BXe()},{id:mee}),qXe=(t={})=>({name:mee,setupOnce(){ED=t,See()}}),jXe=ji.defineIntegration(qXe);_A.instrumentRedis=See;_A.redisIntegration=jXe});var Aee=c(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.PACKAGE_NAME=Dc.PACKAGE_VERSION=void 0;Dc.PACKAGE_VERSION="0.40.0";Dc.PACKAGE_NAME="@opentelemetry/instrumentation-nestjs-core"});var mD=c(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.AttributeNames=void 0;var HXe;(function(t){t.VERSION="nestjs.version",t.TYPE="nestjs.type",t.MODULE="nestjs.module",t.CONTROLLER="nestjs.controller",t.CALLBACK="nestjs.callback",t.PIPES="nestjs.pipes",t.INTERCEPTORS="nestjs.interceptors",t.GUARDS="nestjs.guards"})(HXe=Ap.AttributeNames||(Ap.AttributeNames={}))});var Ree=c(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.NestType=void 0;var FXe;(function(t){t.APP_CREATION="app_creation",t.REQUEST_CONTEXT="request_context",t.REQUEST_HANDLER="handler"})(FXe=Rp.NestType||(Rp.NestType={}))});var Oee=c(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.NestType=Gc.AttributeNames=void 0;var kXe=mD();Object.defineProperty(Gc,"AttributeNames",{enumerable:!0,get:function(){return kXe.AttributeNames}});var WXe=Ree();Object.defineProperty(Gc,"NestType",{enumerable:!0,get:function(){return WXe.NestType}})});var bee=c(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});fA.NestInstrumentation=void 0;var Ln=(P(),m(b)),Op=qe(),Iee=Aee(),TD=($(),m(J)),_r=Oee(),SD=[">=4.0.0 <11"],mo=class t extends Op.InstrumentationBase{constructor(e={}){super(Iee.PACKAGE_NAME,Iee.PACKAGE_VERSION,e)}init(){let e=new Op.InstrumentationNodeModuleDefinition(t.COMPONENT,SD);return e.files.push(this.getNestFactoryFileInstrumentation(SD),this.getRouterExecutionContextFileInstrumentation(SD)),e}getNestFactoryFileInstrumentation(e){return new Op.InstrumentationNodeModuleFile("@nestjs/core/nest-factory.js",e,(r,n)=>(this.ensureWrapped(r.NestFactoryStatic.prototype,"create",YXe(this.tracer,n)),r),r=>{this._unwrap(r.NestFactoryStatic.prototype,"create")})}getRouterExecutionContextFileInstrumentation(e){return new Op.InstrumentationNodeModuleFile("@nestjs/core/router/router-execution-context.js",e,(r,n)=>(this.ensureWrapped(r.RouterExecutionContext.prototype,"create",KXe(this.tracer,n)),r),r=>{this._unwrap(r.RouterExecutionContext.prototype,"create")})}ensureWrapped(e,r,n){(0,Op.isWrapped)(e[r])&&this._unwrap(e,r),this._wrap(e,r,n)}};fA.NestInstrumentation=mo;mo.COMPONENT="@nestjs/core";mo.COMMON_ATTRIBUTES={component:mo.COMPONENT};function YXe(t,e){return function(n){return function(i){let s=t.startSpan("Create Nest App",{attributes:Object.assign(Object.assign({},mo.COMMON_ATTRIBUTES),{[_r.AttributeNames.TYPE]:_r.NestType.APP_CREATION,[_r.AttributeNames.VERSION]:e,[_r.AttributeNames.MODULE]:i.name})}),a=Ln.trace.setSpan(Ln.context.active(),s);return Ln.context.with(a,async()=>{try{return await n.apply(this,arguments)}catch(u){throw AD(s,u)}finally{s.end()}})}}}function KXe(t,e){return function(n){return function(i,s){arguments[1]=XXe(t,e,s);let a=n.apply(this,arguments),u=s.name,l=i.constructor&&i.constructor.name?i.constructor.name:"UnnamedInstance",d=u?`${l}.${u}`:l;return function(p,_,f){var g,E;let T=t.startSpan(d,{attributes:Object.assign(Object.assign({},mo.COMMON_ATTRIBUTES),{[_r.AttributeNames.VERSION]:e,[_r.AttributeNames.TYPE]:_r.NestType.REQUEST_CONTEXT,[TD.SEMATTRS_HTTP_METHOD]:p.method,[TD.SEMATTRS_HTTP_URL]:p.originalUrl||p.url,[TD.SEMATTRS_HTTP_ROUTE]:((g=p.route)===null||g===void 0?void 0:g.path)||((E=p.routeOptions)===null||E===void 0?void 0:E.url)||p.routerPath,[_r.AttributeNames.CONTROLLER]:l,[_r.AttributeNames.CALLBACK]:u})}),y=Ln.trace.setSpan(Ln.context.active(),T);return Ln.context.with(y,async()=>{try{return await a.apply(this,arguments)}catch(C){throw AD(T,C)}finally{T.end()}})}}}}function XXe(t,e,r){let n=r.name||"anonymous nest handler",o={attributes:Object.assign(Object.assign({},mo.COMMON_ATTRIBUTES),{[_r.AttributeNames.VERSION]:e,[_r.AttributeNames.TYPE]:_r.NestType.REQUEST_HANDLER,[_r.AttributeNames.CALLBACK]:r.name})},i=function(){let s=t.startSpan(n,o),a=Ln.trace.setSpan(Ln.context.active(),s);return Ln.context.with(a,async()=>{try{return await r.apply(this,arguments)}catch(u){throw AD(s,u)}finally{s.end()}})};return r.name&&Object.defineProperty(i,"name",{value:r.name}),Reflect.getMetadataKeys(r).forEach(s=>{Reflect.defineMetadata(s,Reflect.getMetadata(s,r),i)}),i}var AD=(t,e)=>(t.recordException(e),t.setStatus({code:Ln.SpanStatusCode.ERROR,message:e.message}),e)});var yee=c(Hi=>{"use strict";var ZXe=Hi&&Hi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Pee=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZXe(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Pee(bee(),Hi);Pee(mD(),Hi)});var vee=c(Uc=>{var{_nullishCoalesce:zXe}=I();Object.defineProperty(Uc,"__esModule",{value:!0});var gA=k(),JXe=I(),$Xe="sentryPatched";function QXe(t){return t.sentryPatched?!0:(JXe.addNonEnumerableProperty(t,$Xe,!0),!1)}function e2e(t,e=void 0){return{name:zXe(e,()=>t.name),attributes:{[gA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"middleware.nestjs",[gA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.middleware.nestjs"}}}function t2e(t,e){e&&(t.subscribe=new Proxy(t.subscribe,{apply:(r,n,o)=>gA.withActiveSpan(e,()=>{let i=r.apply(n,o);return i.add(()=>e.end()),i})}))}function r2e(t,e,r){return new Proxy(t,{apply:(n,o,i)=>(e.end(),r?gA.withActiveSpan(r,()=>Reflect.apply(n,o,i)):Reflect.apply(n,o,i))})}Uc.getMiddlewareSpanOptions=e2e;Uc.getNextProxy=r2e;Uc.instrumentObservable=t2e;Uc.isPatched=QXe});var Mee=c(OD=>{var{_nullishCoalesce:Nee,_optionalChain:EA}=I();Object.defineProperty(OD,"__esModule",{value:!0});var Cee=ae(),hA=zh(),Dn=k(),mA=I(),Wt=vee(),RD=[">=8.0.0 <11"],Ip=class t extends hA.InstrumentationBase{static __initStatic(){this.COMPONENT="@nestjs/common"}static __initStatic2(){this.COMMON_ATTRIBUTES={component:t.COMPONENT}}constructor(e={}){super("sentry-nestjs",mA.SDK_VERSION,e)}init(){let e=new hA.InstrumentationNodeModuleDefinition(t.COMPONENT,RD);return e.files.push(this._getInjectableFileInstrumentation(RD),this._getCatchFileInstrumentation(RD)),e}_getInjectableFileInstrumentation(e){return new hA.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/injectable.decorator.js",e,r=>(Cee.isWrapped(r.Injectable)&&this._unwrap(r,"Injectable"),this._wrap(r,"Injectable",this._createWrapInjectable()),r),r=>{this._unwrap(r,"Injectable")})}_getCatchFileInstrumentation(e){return new hA.InstrumentationNodeModuleFile("@nestjs/common/decorators/core/catch.decorator.js",e,r=>(Cee.isWrapped(r.Catch)&&this._unwrap(r,"Catch"),this._wrap(r,"Catch",this._createWrapCatch()),r),r=>{this._unwrap(r,"Catch")})}_createWrapInjectable(){return function(r){return function(o){return function(i){if(typeof i.prototype.use=="function"&&!i.__SENTRY_INTERNAL__){if(Wt.isPatched(i))return r(o)(i);i.prototype.use=new Proxy(i.prototype.use,{apply:(s,a,u)=>{let[l,d,p,..._]=u;if(!l||!d||!p||typeof p!="function")return s.apply(a,u);let f=Dn.getActiveSpan();return Dn.startSpanManual(Wt.getMiddlewareSpanOptions(i),g=>{let E=Wt.getNextProxy(p,g,f);return s.apply(a,[l,d,E,_])})}})}if(typeof i.prototype.canActivate=="function"&&!i.__SENTRY_INTERNAL__){if(Wt.isPatched(i))return r(o)(i);i.prototype.canActivate=new Proxy(i.prototype.canActivate,{apply:(s,a,u)=>u[0]?Dn.startSpan(Wt.getMiddlewareSpanOptions(i),()=>s.apply(a,u)):s.apply(a,u)})}if(typeof i.prototype.transform=="function"&&!i.__SENTRY_INTERNAL__){if(Wt.isPatched(i))return r(o)(i);i.prototype.transform=new Proxy(i.prototype.transform,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Dn.startSpan(Wt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}if(typeof i.prototype.intercept=="function"&&!i.__SENTRY_INTERNAL__){if(Wt.isPatched(i))return r(o)(i);i.prototype.intercept=new Proxy(i.prototype.intercept,{apply:(s,a,u)=>{let l=u[0],d=u[1],p=Dn.getActiveSpan(),_;return!l||!d||typeof d.handle!="function"?s.apply(a,u):Dn.startSpanManual(Wt.getMiddlewareSpanOptions(i),f=>{d.handle=new Proxy(d.handle,{apply:(E,T,y)=>{if(f.end(),p)return Dn.withActiveSpan(p,()=>{let C=Reflect.apply(E,T,y);return l._sentryInterceptorInstrumented||(mA.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Dn.startInactiveSpan(Wt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),C});{let C=Reflect.apply(E,T,y);return l._sentryInterceptorInstrumented||(mA.addNonEnumerableProperty(l,"_sentryInterceptorInstrumented",!0),_=Dn.startInactiveSpan(Wt.getMiddlewareSpanOptions(i,"Interceptors - After Route"))),C}}});let g;try{g=s.apply(a,u)}catch(E){throw EA([f,"optionalAccess",T=>T.end,"call",T=>T()]),EA([_,"optionalAccess",T=>T.end,"call",T=>T()]),E}return _?mA.isThenable(g)?g.then(E=>(Wt.instrumentObservable(E,Nee(_,()=>p)),E),E=>{throw EA([f,"optionalAccess",T=>T.end,"call",T=>T()]),EA([_,"optionalAccess",T=>T.end,"call",T=>T()]),E}):(typeof g.subscribe=="function"&&Wt.instrumentObservable(g,Nee(_,()=>p)),g):g})}})}return r(o)(i)}}}}_createWrapCatch(){return function(r){return function(...o){return function(i){if(typeof i.prototype.catch=="function"&&!i.__SENTRY_INTERNAL__){if(Wt.isPatched(i))return r(...o)(i);i.prototype.catch=new Proxy(i.prototype.catch,{apply:(s,a,u)=>{let l=u[0],d=u[1];return!l||!d?s.apply(a,u):Dn.startSpan(Wt.getMiddlewareSpanOptions(i),()=>s.apply(a,u))}})}return r(...o)(i)}}}}};Ip.__initStatic();Ip.__initStatic2();OD.SentryNestInstrumentation=Ip});var ID=c(bp=>{var{_optionalChain:n2e}=I();Object.defineProperty(bp,"__esModule",{value:!0});var o2e=yee(),Gn=k(),i2e=I(),Lee=be(),s2e=Mee(),Dee="Nest",a2e=Lee.generateInstrumentOnce("Nest-Core",()=>new o2e.NestInstrumentation),u2e=Lee.generateInstrumentOnce("Nest-Common",()=>new s2e.SentryNestInstrumentation),Gee=Object.assign(()=>{a2e(),u2e()},{id:Dee}),c2e=()=>({name:Dee,setupOnce(){Gee()}}),l2e=Gn.defineIntegration(c2e);function d2e(t,e){let r=Gn.getClient();r&&r.on("spanStart",o=>{p2e(o)}),t.useGlobalInterceptors({intercept(o,i){if(Gn.getIsolationScope()===Gn.getDefaultIsolationScope())return i2e.logger.warn("Isolation scope is still the default isolation scope, skipping setting transactionName."),i.handle();if(o.getType()==="http"){let s=o.switchToHttp().getRequest();s.route&&Gn.getIsolationScope().setTransactionName(`${n2e([s,"access",a=>a.method,"optionalAccess",a=>a.toUpperCase,"call",a=>a()])||"GET"} ${s.route.path}`)}return i.handle()}});let n=new Proxy(e,{get(o,i,s){if(i==="catch"){let a=Reflect.get(o,i,s);return(u,l)=>{let d=typeof u=="object"&&u!==null,p=d&&"status"in u?u.status:null,_=d&&"error"in u?u.error:null;return p!==null||_!==null?a.apply(o,[u,l]):(Gn.captureException(u),a.apply(o,[u,l]))}}return Reflect.get(o,i,s)}});t.useGlobalFilters(n)}function p2e(t){let e=Gn.spanToJSON(t).data||{},r=e["nestjs.type"];e[Gn.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[Gn.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.nestjs",[Gn.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.nestjs`})}bp.instrumentNest=Gee;bp.nestIntegration=l2e;bp.setupNestErrorHandler=d2e});var bD=c(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.AttributeNames=void 0;var _2e;(function(t){t.PG_VALUES="db.postgresql.values",t.PG_PLAN="db.postgresql.plan",t.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",t.MAX_CLIENT="db.postgresql.max.client"})(_2e=Pp.AttributeNames||(Pp.AttributeNames={}))});var PD=c(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.SpanNames=void 0;var f2e;(function(t){t.QUERY_PREFIX="pg.query",t.CONNECT="pg.connect",t.POOL_CONNECT="pg-pool.connect"})(f2e=yp.SpanNames||(yp.SpanNames={}))});var qee=c(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.isObjectWithTextString=ge.getErrorMessage=ge.patchClientConnectCallback=ge.patchCallbackPGPool=ge.patchCallback=ge.handleExecutionResult=ge.handleConfigQuery=ge.shouldSkipInstrumentation=ge.getSemanticAttributesFromPool=ge.getSemanticAttributesFromConnection=ge.getConnectionString=ge.getQuerySpanName=void 0;var Fi=(P(),m(b)),TA=bD(),Yt=($(),m(J)),g2e=qe(),Uee=PD();function xee(t,e){if(!e)return Uee.SpanNames.QUERY_PREFIX;let r=typeof e.name=="string"&&e.name?e.name:E2e(e.text);return`${Uee.SpanNames.QUERY_PREFIX}:${r}${t?` ${t}`:""}`}ge.getQuerySpanName=xee;function E2e(t){let e=t.indexOf(" "),r=e===-1?t:t.slice(0,e);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}function yD(t){let e=t.host||"localhost",r=t.port||5432,n=t.database||"";return`postgresql://${e}:${r}/${n}`}ge.getConnectionString=yD;function wee(t){if(Number.isInteger(t))return t}function Vee(t){return{[Yt.SEMATTRS_DB_SYSTEM]:Yt.DBSYSTEMVALUES_POSTGRESQL,[Yt.SEMATTRS_DB_NAME]:t.database,[Yt.SEMATTRS_DB_CONNECTION_STRING]:yD(t),[Yt.SEMATTRS_NET_PEER_NAME]:t.host,[Yt.SEMATTRS_NET_PEER_PORT]:wee(t.port),[Yt.SEMATTRS_DB_USER]:t.user}}ge.getSemanticAttributesFromConnection=Vee;function h2e(t){return{[Yt.SEMATTRS_DB_SYSTEM]:Yt.DBSYSTEMVALUES_POSTGRESQL,[Yt.SEMATTRS_DB_NAME]:t.database,[Yt.SEMATTRS_DB_CONNECTION_STRING]:yD(t),[Yt.SEMATTRS_NET_PEER_NAME]:t.host,[Yt.SEMATTRS_NET_PEER_PORT]:wee(t.port),[Yt.SEMATTRS_DB_USER]:t.user,[TA.AttributeNames.IDLE_TIMEOUT_MILLIS]:t.idleTimeoutMillis,[TA.AttributeNames.MAX_CLIENT]:t.maxClient}}ge.getSemanticAttributesFromPool=h2e;function m2e(t){return t.requireParentSpan===!0&&Fi.trace.getSpan(Fi.context.active())===void 0}ge.shouldSkipInstrumentation=m2e;function T2e(t,e,r){let{connectionParameters:n}=this,o=n.database,i=xee(o,r),s=t.startSpan(i,{kind:Fi.SpanKind.CLIENT,attributes:Vee(n)});if(!r)return s;if(r.text&&s.setAttribute(Yt.SEMATTRS_DB_STATEMENT,r.text),e.enhancedDatabaseReporting&&Array.isArray(r.values))try{let a=r.values.map(u=>u==null?"null":u instanceof Buffer?u.toString():typeof u=="object"?typeof u.toPostgres=="function"?u.toPostgres():JSON.stringify(u):u.toString());s.setAttribute(TA.AttributeNames.PG_VALUES,a)}catch(a){Fi.diag.error("failed to stringify ",r.values,a)}return typeof r.name=="string"&&s.setAttribute(TA.AttributeNames.PG_PLAN,r.name),s}ge.handleConfigQuery=T2e;function Bee(t,e,r){typeof t.responseHook=="function"&&(0,g2e.safeExecuteInTheMiddle)(()=>{t.responseHook(e,{data:r})},n=>{n&&Fi.diag.error("Error running response hook",n)},!0)}ge.handleExecutionResult=Bee;function S2e(t,e,r){return function(o,i){o?e.setStatus({code:Fi.SpanStatusCode.ERROR,message:o.message}):Bee(t,e,i),e.end(),r.call(this,o,i)}}ge.patchCallback=S2e;function A2e(t,e){return function(n,o,i){n&&t.setStatus({code:Fi.SpanStatusCode.ERROR,message:n.message}),t.end(),e.call(this,n,o,i)}}ge.patchCallbackPGPool=A2e;function R2e(t,e){return function(n){n&&t.setStatus({code:Fi.SpanStatusCode.ERROR,message:n.message}),t.end(),e.apply(this,arguments)}}ge.patchClientConnectCallback=R2e;function O2e(t){return typeof t=="object"&&t!==null&&"message"in t?String(t.message):void 0}ge.getErrorMessage=O2e;function I2e(t){var e;return typeof t=="object"&&typeof((e=t)===null||e===void 0?void 0:e.text)=="string"}ge.isObjectWithTextString=I2e});var jee=c(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.PACKAGE_NAME=xc.PACKAGE_VERSION=void 0;xc.PACKAGE_VERSION="0.44.0";xc.PACKAGE_NAME="@opentelemetry/instrumentation-pg"});var Yee=c(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.PgInstrumentation=void 0;var To=qe(),le=(P(),m(b)),or=qee(),Hee=lD(),Fee=jee(),kee=PD(),vD=class extends To.InstrumentationBase{constructor(e={}){super(Fee.PACKAGE_NAME,Fee.PACKAGE_VERSION,e)}init(){let e=new To.InstrumentationNodeModuleDefinition("pg",[">=8.0.0 <9"],n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;return(0,To.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query"),(0,To.isWrapped)(o.Client.prototype.connect)&&this._unwrap(o.Client.prototype,"connect"),this._wrap(o.Client.prototype,"query",this._getClientQueryPatch()),this._wrap(o.Client.prototype,"connect",this._getClientConnectPatch()),n},n=>{let o=n[Symbol.toStringTag]==="Module"?n.default:n;(0,To.isWrapped)(o.Client.prototype.query)&&this._unwrap(o.Client.prototype,"query")}),r=new To.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],n=>((0,To.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._getPoolConnectPatch()),n),n=>{(0,To.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect")});return[e,r]}_getClientConnectPatch(){let e=this;return r=>function(o){if(or.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(kee.SpanNames.CONNECT,{kind:le.SpanKind.CLIENT,attributes:or.getSemanticAttributesFromConnection(this)});if(o){let a=le.trace.getSpan(le.context.active());o=or.patchClientConnectCallback(i,o),a&&(o=le.context.bind(le.context.active(),o))}let s=le.context.with(le.trace.setSpan(le.context.active(),i),()=>r.call(this,o));return Wee(i,s)}}_getClientQueryPatch(){let e=this;return r=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...o){if(or.shouldSkipInstrumentation(e.getConfig()))return r.apply(this,o);let i=o[0],s=typeof i=="string",a=or.isObjectWithTextString(i),u=s?{text:i,values:Array.isArray(o[1])?o[1]:void 0}:a?i:void 0,l=e.getConfig(),d=or.handleConfigQuery.call(this,e.tracer,l,u);if(l.addSqlCommenterCommentToQueries&&(o[0]=s?(0,Hee.addSqlCommenterComment)(d,i):a?Object.assign(Object.assign({},i),{text:(0,Hee.addSqlCommenterComment)(d,i.text)}):o[0]),o.length>0){let f=le.trace.getSpan(le.context.active());if(typeof o[o.length-1]=="function")o[o.length-1]=or.patchCallback(l,d,o[o.length-1]),f&&(o[o.length-1]=le.context.bind(le.context.active(),o[o.length-1]));else if(typeof u?.callback=="function"){let g=or.patchCallback(e.getConfig(),d,u.callback);f&&(g=le.context.bind(le.context.active(),g)),o[0].callback=g}}let{requestHook:p}=l;typeof p=="function"&&u&&(0,To.safeExecuteInTheMiddle)(()=>{let{database:f,host:g,port:E,user:T}=this.connectionParameters;p(d,{connection:{database:f,host:g,port:E,user:T},query:{text:u.text,values:u.values,name:u.name}})},f=>{f&&e._diag.error("Error running query hook",f)},!0);let _;try{_=r.apply(this,o)}catch(f){throw d.setStatus({code:le.SpanStatusCode.ERROR,message:or.getErrorMessage(f)}),d.end(),f}return _ instanceof Promise?_.then(f=>new Promise(g=>{or.handleExecutionResult(e.getConfig(),d,f),d.end(),g(f)})).catch(f=>new Promise((g,E)=>{d.setStatus({code:le.SpanStatusCode.ERROR,message:f.message}),d.end(),E(f)})):_})}_getPoolConnectPatch(){let e=this;return r=>function(o){if(or.shouldSkipInstrumentation(e.getConfig()))return r.call(this,o);let i=e.tracer.startSpan(kee.SpanNames.POOL_CONNECT,{kind:le.SpanKind.CLIENT,attributes:or.getSemanticAttributesFromPool(this.options)});if(o){let a=le.trace.getSpan(le.context.active());o=or.patchCallbackPGPool(i,o),a&&(o=le.context.bind(le.context.active(),o))}let s=le.context.with(le.trace.setSpan(le.context.active(),i),()=>r.call(this,o));return Wee(i,s)}}};SA.PgInstrumentation=vD;function Wee(t,e){if(!(e instanceof Promise))return e;let r=e;return le.context.bind(le.context.active(),r.then(n=>(t.end(),n)).catch(n=>(t.setStatus({code:le.SpanStatusCode.ERROR,message:or.getErrorMessage(n)}),t.end(),Promise.reject(n))))}});var Xee=c(Kee=>{"use strict";Object.defineProperty(Kee,"__esModule",{value:!0})});var Zee=c(So=>{"use strict";var b2e=So&&So.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ND=So&&So.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&b2e(e,t,r)};Object.defineProperty(So,"__esModule",{value:!0});ND(Yee(),So);ND(Xee(),So);ND(bD(),So)});var CD=c(AA=>{Object.defineProperty(AA,"__esModule",{value:!0});var P2e=Zee(),y2e=k(),v2e=be(),N2e=Tn(),zee="Postgres",Jee=v2e.generateInstrumentOnce(zee,()=>new P2e.PgInstrumentation({requireParentSpan:!0,requestHook(t){N2e.addOriginToSpan(t,"auto.db.otel.postgres")}})),C2e=()=>({name:zee,setupOnce(){Jee()}}),M2e=y2e.defineIntegration(C2e);AA.instrumentPostgres=Jee;AA.postgresIntegration=M2e});var LD=c((tct,ete)=>{"use strict";var MD=Object.defineProperty,L2e=Object.getOwnPropertyDescriptor,D2e=Object.getOwnPropertyNames,G2e=Object.prototype.hasOwnProperty,U2e=(t,e)=>{for(var r in e)MD(t,r,{get:e[r],enumerable:!0})},x2e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D2e(e))!G2e.call(t,o)&&o!==r&&MD(t,o,{get:()=>e[o],enumerable:!(n=L2e(e,o))||n.enumerable});return t},w2e=t=>x2e(MD({},"__esModule",{value:!0}),t),Qee={};U2e(Qee,{ActiveTracingHelper:()=>j2e});ete.exports=w2e(Qee);var Ao=(P(),m(b)),V2e=wd(),B2e=process.env.PRISMA_SHOW_ALL_TRACES==="true",q2e="00-10-10-00",j2e=class{constructor({traceMiddleware:t}){this.traceMiddleware=t}isEnabled(){return!0}getTraceParent(t){let e=Ao.trace.getSpanContext(t??Ao.context.active());return e?`00-${e.traceId}-${e.spanId}-0${e.traceFlags}`:q2e}createEngineSpan(t){let e=Ao.trace.getTracer("prisma");t.spans.forEach(r=>{let n={traceId:r.trace_id,spanId:r.span_id,traceFlags:Ao.TraceFlags.SAMPLED},o=r.links?.map(s=>({context:{traceId:s.trace_id,spanId:s.span_id,traceFlags:Ao.TraceFlags.SAMPLED}})),i=new V2e.Span(e,Ao.ROOT_CONTEXT,r.name,n,Ao.SpanKind.INTERNAL,r.parent_span_id,o,r.start_time);r.attributes&&i.setAttributes(r.attributes),i.end(r.end_time)})}getActiveContext(){return Ao.context.active()}runInChildSpan(t,e){if(typeof t=="string"&&(t={name:t}),t.internal&&!B2e||t.middleware&&!this.traceMiddleware)return e();let r=Ao.trace.getTracer("prisma"),n=t.context??this.getActiveContext(),o=`prisma:client:${t.name}`;if(t.active===!1){let i=r.startSpan(o,t,n);return $ee(i,e(i,n))}return r.startActiveSpan(o,t,i=>$ee(i,e(i,n)))}};function $ee(t,e){return H2e(e)?e.then(r=>(t.end(),r),r=>{throw t.end(),r}):(t.end(),e)}function H2e(t){return t!=null&&typeof t.then=="function"}});var GD=c((nct,rte)=>{"use strict";var DD=Object.defineProperty,F2e=Object.getOwnPropertyDescriptor,k2e=Object.getOwnPropertyNames,W2e=Object.prototype.hasOwnProperty,Y2e=(t,e)=>{for(var r in e)DD(t,r,{get:e[r],enumerable:!0})},K2e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of k2e(e))!W2e.call(t,o)&&o!==r&&DD(t,o,{get:()=>e[o],enumerable:!(n=F2e(e,o))||n.enumerable});return t},X2e=t=>K2e(DD({},"__esModule",{value:!0}),t),tte={};Y2e(tte,{__commonJS:()=>z2e});rte.exports=X2e(tte);var Z2e=Object.getOwnPropertyNames,z2e=(t,e)=>function(){return e||(0,t[Z2e(t)[0]])((e={exports:{}}).exports,e),e.exports}});var xD=c((oct,ote)=>{"use strict";var UD=Object.defineProperty,J2e=Object.getOwnPropertyDescriptor,$2e=Object.getOwnPropertyNames,Q2e=Object.prototype.hasOwnProperty,eZe=(t,e)=>{for(var r in e)UD(t,r,{get:e[r],enumerable:!0})},tZe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $2e(e))!Q2e.call(t,o)&&o!==r&&UD(t,o,{get:()=>e[o],enumerable:!(n=J2e(e,o))||n.enumerable});return t},rZe=t=>tZe(UD({},"__esModule",{value:!0}),t),nte={};eZe(nte,{GLOBAL_KEY:()=>aZe,MODULE_NAME:()=>lZe,NAME:()=>cZe,VERSION:()=>uZe});ote.exports=rZe(nte);var nZe=GD(),oZe=(0,nZe.__commonJS)({"package.json"(t,e){e.exports={name:"@prisma/instrumentation",version:"5.19.1",description:"OpenTelemetry compliant instrumentation for Prisma Client",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/instrumentation"},bugs:"https://github.com/prisma/prisma/issues",devDependencies:{"@prisma/internals":"workspace:*","@swc/core":"1.6.13","@types/jest":"29.5.12","@types/node":"18.19.31",jest:"29.7.0","jest-junit":"16.0.0",typescript:"5.4.5"},dependencies:{"@opentelemetry/api":"^1.8","@opentelemetry/instrumentation":"^0.49 || ^0.50 || ^0.51 || ^0.52.0","@opentelemetry/sdk-trace-base":"^1.22"},files:["dist"],keywords:["prisma","instrumentation","opentelemetry","otel"],scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",prepublishOnly:"pnpm run build",test:"jest"},sideEffects:!1}}}),{version:iZe,name:sZe}=oZe(),aZe="PRISMA_INSTRUMENTATION",uZe=iZe,cZe=sZe,lZe="prisma"});var ste=c(ite=>{"use strict";Object.defineProperty(ite,"__esModule",{value:!0})});var ute=c(ate=>{"use strict";Object.defineProperty(ate,"__esModule",{value:!0})});var cte=c(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.SeverityNumber=void 0;var dZe;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(dZe=vp.SeverityNumber||(vp.SeverityNumber={}))});var dte=c(lte=>{"use strict";Object.defineProperty(lte,"__esModule",{value:!0})});var _te=c(pte=>{"use strict";Object.defineProperty(pte,"__esModule",{value:!0})});var wD=c(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.NOOP_LOGGER=wc.NoopLogger=void 0;var RA=class{emit(e){}};wc.NoopLogger=RA;wc.NOOP_LOGGER=new RA});var VD=c(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.NOOP_LOGGER_PROVIDER=Vc.NoopLoggerProvider=void 0;var pZe=wD(),OA=class{getLogger(e,r,n){return new pZe.NoopLogger}};Vc.NoopLoggerProvider=OA;Vc.NOOP_LOGGER_PROVIDER=new OA});var fte=c(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});IA._globalThis=void 0;IA._globalThis=typeof globalThis=="object"?globalThis:global});var gte=c(Ws=>{"use strict";var _Ze=Ws&&Ws.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),fZe=Ws&&Ws.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&_Ze(e,t,r)};Object.defineProperty(Ws,"__esModule",{value:!0});fZe(fte(),Ws)});var Ete=c(Ys=>{"use strict";var gZe=Ys&&Ys.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),EZe=Ys&&Ys.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gZe(e,t,r)};Object.defineProperty(Ys,"__esModule",{value:!0});EZe(gte(),Ys)});var hte=c(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.API_BACKWARDS_COMPATIBILITY_VERSION=Un.makeGetter=Un._global=Un.GLOBAL_LOGS_API_KEY=void 0;var hZe=Ete();Un.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Un._global=hZe._globalThis;function mZe(t,e,r){return n=>n===t?e:r}Un.makeGetter=mZe;Un.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Tte=c(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.LogsAPI=void 0;var Vr=hte(),mte=VD(),BD=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Vr._global[Vr.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Vr._global[Vr.GLOBAL_LOGS_API_KEY]=(0,Vr.makeGetter)(Vr.API_BACKWARDS_COMPATIBILITY_VERSION,e,mte.NOOP_LOGGER_PROVIDER),e)}getLoggerProvider(){var e,r;return(r=(e=Vr._global[Vr.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Vr._global,Vr.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:mte.NOOP_LOGGER_PROVIDER}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Vr._global[Vr.GLOBAL_LOGS_API_KEY]}};bA.LogsAPI=BD});var qD=c(Kt=>{"use strict";var TZe=Kt&&Kt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Ks=Kt&&Kt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&TZe(e,t,r)};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.logs=void 0;Ks(ste(),Kt);Ks(ute(),Kt);Ks(cte(),Kt);Ks(dte(),Kt);Ks(_te(),Kt);Ks(wD(),Kt);Ks(VD(),Kt);var SZe=Tte();Kt.logs=SZe.LogsAPI.getInstance()});var Ste=c(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.disableInstrumentations=Bc.enableInstrumentations=void 0;function AZe(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}Bc.enableInstrumentations=AZe;function RZe(t){t.forEach(e=>e.disable())}Bc.disableInstrumentations=RZe});var Ote=c(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});PA.registerInstrumentations=void 0;var Ate=(P(),m(b)),OZe=qD(),Rte=Ste();function IZe(t){var e,r;let n=t.tracerProvider||Ate.trace.getTracerProvider(),o=t.meterProvider||Ate.metrics.getMeterProvider(),i=t.loggerProvider||OZe.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Rte.enableInstrumentations)(s,n,o,i),()=>{(0,Rte.disableInstrumentations)(s)}}PA.registerInstrumentations=IZe});var Ite=c(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0});vA.InstrumentationAbstract=void 0;var jD=(P(),m(b)),bZe=qD(),yA=Le(),HD=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._wrap=yA.wrap,this._unwrap=yA.unwrap,this._massWrap=yA.massWrap,this._massUnwrap=yA.massUnwrap,this._config=Object.assign({enabled:!0},n),this._diag=jD.diag.createComponentLogger({namespace:e}),this._tracer=jD.trace.getTracer(e,r),this._meter=jD.metrics.getMeter(e,r),this._logger=bZe.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};vA.InstrumentationAbstract=HD});var bte=c(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.ModuleNameTrie=ki.ModuleNameSeparator=void 0;ki.ModuleNameSeparator="/";var NA=class{constructor(){this.hooks=[],this.children=new Map}},FD=class{constructor(){this._trie=new NA,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(ki.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new NA,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(ki.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};ki.ModuleNameTrie=FD});var yte=c(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.RequireInTheMiddleSingleton=void 0;var PZe=Ge(),Pte=require("path"),kD=bte(),yZe=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),WD=class t{constructor(){this._moduleNameTrie=new kD.ModuleNameTrie,this._initialize()}_initialize(){new PZe.Hook(null,{internals:!0},(e,r,n)=>{let o=vZe(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return yZe?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};CA.RequireInTheMiddleSingleton=WD;function vZe(t){return Pte.sep!==kD.ModuleNameSeparator?t.split(Pte.sep).join(kD.ModuleNameSeparator):t}});var YD=c(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.isWrapped=Wi.safeExecuteInTheMiddleAsync=Wi.safeExecuteInTheMiddle=void 0;function NZe(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Wi.safeExecuteInTheMiddle=NZe;async function CZe(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Wi.safeExecuteInTheMiddleAsync=CZe;function MZe(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Wi.isWrapped=MZe});var Cte=c(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.InstrumentationBase=void 0;var KD=require("path"),vte=require("util"),LZe=Tr(),XD=Le(),DZe=Ite(),GZe=yte(),UZe=Rr(),qc=(P(),m(b)),xZe=Ge(),wZe=require("fs"),VZe=YD(),ZD=class extends DZe.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=GZe.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,VZe.isWrapped)(i[s])&&this._unwrap(i,s),vte.types.isProxy(i)){let u=(0,XD.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u})}else return(0,XD.wrap)(i,s,a)},this._unwrap=(i,s)=>vte.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,XD.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{qc.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){qc.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{qc.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){qc.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._modules.length===0&&qc.diag.debug(`No modules instrumentation has been defined for '${this.instrumentationName}@${this.instrumentationVersion}', nothing will be patched`),this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,wZe.readFileSync)(KD.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{qc.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return Nte(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=KD.normalize(n);return a.filter(d=>d.name===u).filter(d=>Nte(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=KD.isAbsolute(e.name)?new xZe.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new UZe.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};MA.InstrumentationBase=ZD;function Nte(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,LZe.satisfies)(e,n,{includePrerelease:r}))}});var Mte=c(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0});LA.normalize=void 0;var BZe=require("path");Object.defineProperty(LA,"normalize",{enumerable:!0,get:function(){return BZe.normalize}})});var Lte=c(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.normalize=jc.InstrumentationBase=void 0;var qZe=Cte();Object.defineProperty(jc,"InstrumentationBase",{enumerable:!0,get:function(){return qZe.InstrumentationBase}});var jZe=Mte();Object.defineProperty(jc,"normalize",{enumerable:!0,get:function(){return jZe.normalize}})});var zD=c(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.normalize=Hc.InstrumentationBase=void 0;var Dte=Lte();Object.defineProperty(Hc,"InstrumentationBase",{enumerable:!0,get:function(){return Dte.InstrumentationBase}});Object.defineProperty(Hc,"normalize",{enumerable:!0,get:function(){return Dte.normalize}})});var Gte=c(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.InstrumentationNodeModuleDefinition=void 0;var JD=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};DA.InstrumentationNodeModuleDefinition=JD});var Ute=c(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});GA.InstrumentationNodeModuleFile=void 0;var HZe=zD(),$D=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,HZe.normalize)(e)}};GA.InstrumentationNodeModuleFile=$D});var wte=c(xte=>{"use strict";Object.defineProperty(xte,"__esModule",{value:!0})});var Bte=c(Vte=>{"use strict";Object.defineProperty(Vte,"__esModule",{value:!0})});var qte=c(ft=>{"use strict";var FZe=ft&&ft.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),QD=ft&&ft.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&FZe(e,t,r)};Object.defineProperty(ft,"__esModule",{value:!0});ft.InstrumentationNodeModuleFile=ft.InstrumentationNodeModuleDefinition=ft.InstrumentationBase=ft.registerInstrumentations=void 0;var kZe=Ote();Object.defineProperty(ft,"registerInstrumentations",{enumerable:!0,get:function(){return kZe.registerInstrumentations}});var WZe=zD();Object.defineProperty(ft,"InstrumentationBase",{enumerable:!0,get:function(){return WZe.InstrumentationBase}});var YZe=Gte();Object.defineProperty(ft,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return YZe.InstrumentationNodeModuleDefinition}});var KZe=Ute();Object.defineProperty(ft,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return KZe.InstrumentationNodeModuleFile}});QD(wte(),ft);QD(Bte(),ft);QD(YD(),ft)});var kte=c((Dct,Fte)=>{"use strict";var eG=Object.defineProperty,XZe=Object.getOwnPropertyDescriptor,ZZe=Object.getOwnPropertyNames,zZe=Object.prototype.hasOwnProperty,JZe=(t,e)=>{for(var r in e)eG(t,r,{get:e[r],enumerable:!0})},$Ze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ZZe(e))!zZe.call(t,o)&&o!==r&&eG(t,o,{get:()=>e[o],enumerable:!(n=XZe(e,o))||n.enumerable});return t},QZe=t=>$Ze(eG({},"__esModule",{value:!0}),t),Hte={};JZe(Hte,{PrismaInstrumentation:()=>t5e});Fte.exports=QZe(Hte);var e5e=LD(),Xs=xD(),jte=qte(),t5e=class extends jte.InstrumentationBase{constructor(t={}){super(Xs.NAME,Xs.VERSION,t)}init(){return[new jte.InstrumentationNodeModuleDefinition(Xs.MODULE_NAME,[Xs.VERSION])]}enable(){let t=this._config,e={helper:new e5e.ActiveTracingHelper({traceMiddleware:t.middleware??!1})};global[Xs.GLOBAL_KEY]=e}disable(){delete global[Xs.GLOBAL_KEY]}isEnabled(){return!!global[Xs.GLOBAL_KEY]}}});var Kte=c((Vct,Yte)=>{"use strict";var tG=Object.defineProperty,r5e=Object.getOwnPropertyDescriptor,n5e=Object.getOwnPropertyNames,o5e=Object.prototype.hasOwnProperty,i5e=(t,e)=>{for(var r in e)tG(t,r,{get:e[r],enumerable:!0})},s5e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of n5e(e))!o5e.call(t,o)&&o!==r&&tG(t,o,{get:()=>e[o],enumerable:!(n=r5e(e,o))||n.enumerable});return t},a5e=t=>s5e(tG({},"__esModule",{value:!0}),t),Wte={};i5e(Wte,{PrismaInstrumentation:()=>u5e.PrismaInstrumentation});Yte.exports=a5e(Wte);var u5e=kte(),Uct=LD(),xct=xD(),wct=GD()});var $te=c(UA=>{var{_optionalChain:Zte}=I();Object.defineProperty(UA,"__esModule",{value:!0});var Xte=Kte(),rG=k(),c5e=be(),zte="Prisma",Jte=c5e.generateInstrumentOnce(zte,()=>{let t=Zte([Xte,"access",e=>e.default,"optionalAccess",e=>e.PrismaInstrumentation])||Xte.PrismaInstrumentation;return new t({})}),l5e=()=>({name:zte,setupOnce(){Jte()},setup(t){t.on("spanStart",e=>{let r=rG.spanToJSON(e);Zte([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("prisma:")])&&e.setAttribute(rG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.prisma"),r.description==="prisma:engine:db_query"&&e.setAttribute("db.system","prisma")})}}),d5e=rG.defineIntegration(l5e);UA.instrumentPrisma=Jte;UA.prismaIntegration=d5e});var Qte=c(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.PACKAGE_NAME=Fc.PACKAGE_VERSION=void 0;Fc.PACKAGE_VERSION="0.41.0";Fc.PACKAGE_NAME="@opentelemetry/instrumentation-hapi"});var nG=c(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.HapiLifecycleMethodNames=xn.HapiLayerType=xn.handlerPatched=xn.HapiComponentName=void 0;xn.HapiComponentName="@hapi/hapi";xn.handlerPatched=Symbol("hapi-handler-patched");xn.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};xn.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"])});var oG=c(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.AttributeNames=void 0;var p5e;(function(t){t.HAPI_TYPE="hapi.type",t.PLUGIN_NAME="hapi.plugin.name",t.EXT_TYPE="server.ext.type"})(p5e=Np.AttributeNames||(Np.AttributeNames={}))});var ere=c(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.getPluginFromInput=Ve.getExtMetadata=Ve.getRouteMetadata=Ve.isPatchableExtMethod=Ve.isDirectExtInput=Ve.isLifecycleExtEventObj=Ve.isLifecycleExtType=Ve.getPluginName=void 0;var xA=($(),m(J)),Cp=nG(),Yi=oG();function _5e(t){return t.name?t.name:t.pkg.name}Ve.getPluginName=_5e;var f5e=t=>typeof t=="string"&&Cp.HapiLifecycleMethodNames.has(t);Ve.isLifecycleExtType=f5e;var g5e=t=>{var e;let r=(e=t)===null||e===void 0?void 0:e.type;return r!==void 0&&(0,Ve.isLifecycleExtType)(r)};Ve.isLifecycleExtEventObj=g5e;var E5e=t=>Array.isArray(t)&&t.length<=3&&(0,Ve.isLifecycleExtType)(t[0])&&typeof t[1]=="function";Ve.isDirectExtInput=E5e;var h5e=t=>!Array.isArray(t);Ve.isPatchableExtMethod=h5e;var m5e=(t,e)=>e?{attributes:{[xA.SEMATTRS_HTTP_ROUTE]:t.path,[xA.SEMATTRS_HTTP_METHOD]:t.method,[Yi.AttributeNames.HAPI_TYPE]:Cp.HapiLayerType.PLUGIN,[Yi.AttributeNames.PLUGIN_NAME]:e},name:`${e}: route - ${t.path}`}:{attributes:{[xA.SEMATTRS_HTTP_ROUTE]:t.path,[xA.SEMATTRS_HTTP_METHOD]:t.method,[Yi.AttributeNames.HAPI_TYPE]:Cp.HapiLayerType.ROUTER},name:`route - ${t.path}`};Ve.getRouteMetadata=m5e;var T5e=(t,e)=>e?{attributes:{[Yi.AttributeNames.EXT_TYPE]:t,[Yi.AttributeNames.HAPI_TYPE]:Cp.HapiLayerType.EXT,[Yi.AttributeNames.PLUGIN_NAME]:e},name:`${e}: ext - ${t}`}:{attributes:{[Yi.AttributeNames.EXT_TYPE]:t,[Yi.AttributeNames.HAPI_TYPE]:Cp.HapiLayerType.EXT},name:`ext - ${t}`};Ve.getExtMetadata=T5e;var S5e=t=>"plugin"in t?"plugin"in t.plugin?t.plugin.plugin:t.plugin:t;Ve.getPluginFromInput=S5e});var nre=c(VA=>{"use strict";Object.defineProperty(VA,"__esModule",{value:!0});VA.HapiInstrumentation=void 0;var fr=(P(),m(b)),tre=ae(),wA=qe(),rre=Qte(),Mp=nG(),Ro=ere(),iG=class extends wA.InstrumentationBase{constructor(e={}){super(rre.PACKAGE_NAME,rre.PACKAGE_VERSION,e)}init(){return new wA.InstrumentationNodeModuleDefinition(Mp.HapiComponentName,[">=17.0.0 <22"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return(0,wA.isWrapped)(r.server)||this._wrap(r,"server",this._getServerPatch.bind(this)),(0,wA.isWrapped)(r.Server)||this._wrap(r,"Server",this._getServerPatch.bind(this)),r},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;this._massUnwrap([r],["server","Server"])})}_getServerPatch(e){let r=this,n=this;return function(i){let s=e.apply(this,[i]);return n._wrap(s,"route",a=>r._getServerRoutePatch.bind(r)(a)),n._wrap(s,"ext",a=>r._getServerExtPatch.bind(r)(a)),n._wrap(s,"register",r._getServerRegisterPatch.bind(r)),s}}_getServerRegisterPatch(e){let r=this;return function(o,i){if(Array.isArray(o))for(let s of o){let a=(0,Ro.getPluginFromInput)(s);r._wrapRegisterHandler(a)}else{let s=(0,Ro.getPluginFromInput)(o);r._wrapRegisterHandler(s)}return e.apply(this,[o,i])}}_getServerExtPatch(e,r){let n=this;return function(...i){if(Array.isArray(i[0])){let s=i[0];for(let a=0;a<s.length;a++){let u=s[a];if((0,Ro.isLifecycleExtType)(u.type)){let l=u,d=n._wrapExtMethods(l.method,u.type,r);l.method=d,s[a]=l}}return e.apply(this,i)}else if((0,Ro.isDirectExtInput)(i)){let s=i,a=s[1],u=n._wrapExtMethods(a,s[0],r);return e.apply(this,[s[0],u,s[2]])}else if((0,Ro.isLifecycleExtEventObj)(i[0])){let s=i[0],a=n._wrapExtMethods(s.method,s.type,r);return s.method=a,e.call(this,s)}return e.apply(this,i)}}_getServerRoutePatch(e,r){let n=this;return function(o){if(Array.isArray(o))for(let i=0;i<o.length;i++){let s=n._wrapRouteHandler.call(n,o[i],r);o[i]=s}else o=n._wrapRouteHandler.call(n,o,r);return e.apply(this,[o])}}_wrapRegisterHandler(e){let r=this,n=(0,Ro.getPluginName)(e),o=e.register,i=this,s=function(a,u){return i._wrap(a,"route",l=>r._getServerRoutePatch.bind(r)(l,n)),i._wrap(a,"ext",l=>r._getServerExtPatch.bind(r)(l,n)),o(a,u)};e.register=s}_wrapExtMethods(e,r,n){let o=this;if(e instanceof Array){for(let i=0;i<e.length;i++)e[i]=o._wrapExtMethods(e[i],r);return e}else if((0,Ro.isPatchableExtMethod)(e))return e[Mp.handlerPatched]===!0?e:(e[Mp.handlerPatched]=!0,async function(...s){if(fr.trace.getSpan(fr.context.active())===void 0)return await e.apply(this,s);let a=(0,Ro.getExtMetadata)(r,n),u=o.tracer.startSpan(a.name,{attributes:a.attributes});try{return await fr.context.with(fr.trace.setSpan(fr.context.active(),u),e,void 0,...s)}catch(l){throw u.recordException(l),u.setStatus({code:fr.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end()}});return e}_wrapRouteHandler(e,r){var n;let o=this;if(e[Mp.handlerPatched]===!0)return e;e[Mp.handlerPatched]=!0;let i=s=>async function(...a){if(fr.trace.getSpan(fr.context.active())===void 0)return await s.call(this,...a);let u=(0,tre.getRPCMetadata)(fr.context.active());u?.type===tre.RPCType.HTTP&&(u.route=e.path);let l=(0,Ro.getRouteMetadata)(e,r),d=o.tracer.startSpan(l.name,{attributes:l.attributes});try{return await fr.context.with(fr.trace.setSpan(fr.context.active(),d),()=>s.call(this,...a))}catch(p){throw d.recordException(p),d.setStatus({code:fr.SpanStatusCode.ERROR,message:p.message}),p}finally{d.end()}};if(typeof e.handler=="function")e.handler=i(e.handler);else if(typeof e.options=="function"){let s=e.options;e.options=function(a){let u=s(a);return typeof u.handler=="function"&&(u.handler=i(u.handler)),u}}else typeof((n=e.options)===null||n===void 0?void 0:n.handler)=="function"&&(e.options.handler=i(e.options.handler));return e}};VA.HapiInstrumentation=iG});var ire=c(Ki=>{"use strict";var A5e=Ki&&Ki.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ore=Ki&&Ki.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&A5e(e,t,r)};Object.defineProperty(Ki,"__esModule",{value:!0});ore(nre(),Ki);ore(oG(),Ki)});var sG=c(kc=>{var{_optionalChain:R5e}=I();Object.defineProperty(kc,"__esModule",{value:!0});var O5e=ire(),Qr=k(),I5e=I(),b5e=Rn(),P5e=be(),y5e=Ku(),sre="Hapi",are=P5e.generateInstrumentOnce(sre,()=>new O5e.HapiInstrumentation),v5e=()=>({name:sre,setupOnce(){are()}}),N5e=Qr.defineIntegration(v5e);function C5e(t){return t&&t.error!==void 0}function M5e(t){Qr.captureException(t,{mechanism:{type:"hapi",handled:!1,data:{function:"hapiErrorPlugin"}}})}var ure={name:"SentryHapiErrorPlugin",version:Qr.SDK_VERSION,register:async function(t){t.events.on({name:"request",channels:["error"]},(r,n)=>{if(Qr.getIsolationScope()!==Qr.getDefaultIsolationScope()){let o=r.route;o&&o.path&&Qr.getIsolationScope().setTransactionName(`${R5e([o,"access",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET"} ${o.path}`)}else b5e.DEBUG_BUILD&&I5e.logger.warn("Isolation scope is still the default isolation scope - skipping setting transactionName");C5e(n)&&M5e(n.error)})}};async function L5e(t){await t.register(ure);let e=Qr.getClient();e&&e.on("spanStart",r=>{D5e(r)}),y5e.ensureIsWrapped(t.register,"hapi")}function D5e(t){let e=Qr.spanToJSON(t).data||{},r=e["hapi.type"];e[Qr.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r||t.setAttributes({[Qr.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.hapi",[Qr.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.hapi`})}kc.hapiErrorPlugin=ure;kc.hapiIntegration=N5e;kc.instrumentHapi=are;kc.setupHapiErrorHandler=L5e});var BA=c(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.KoaLayerType=void 0;var G5e;(function(t){t.ROUTER="router",t.MIDDLEWARE="middleware"})(G5e=Lp.KoaLayerType||(Lp.KoaLayerType={}))});var cre=c(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.PACKAGE_NAME=Wc.PACKAGE_VERSION=void 0;Wc.PACKAGE_VERSION="0.43.0";Wc.PACKAGE_NAME="@opentelemetry/instrumentation-koa"});var aG=c(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.AttributeNames=void 0;var U5e;(function(t){t.KOA_TYPE="koa.type",t.KOA_NAME="koa.name"})(U5e=Dp.AttributeNames||(Dp.AttributeNames={}))});var dre=c(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.isLayerIgnored=Yc.getMiddlewareMetadata=void 0;var lre=BA(),qA=aG(),x5e=($(),m(J)),w5e=(t,e,r,n)=>{var o;return r?{attributes:{[qA.AttributeNames.KOA_NAME]:n?.toString(),[qA.AttributeNames.KOA_TYPE]:lre.KoaLayerType.ROUTER,[x5e.SEMATTRS_HTTP_ROUTE]:n?.toString()},name:t._matchedRouteName||`router - ${n}`}:{attributes:{[qA.AttributeNames.KOA_NAME]:(o=e.name)!==null&&o!==void 0?o:"middleware",[qA.AttributeNames.KOA_TYPE]:lre.KoaLayerType.MIDDLEWARE},name:`middleware - ${e.name}`}};Yc.getMiddlewareMetadata=w5e;var V5e=(t,e)=>{var r;return!!(Array.isArray(e?.ignoreLayersType)&&(!((r=e?.ignoreLayersType)===null||r===void 0)&&r.includes(t)))};Yc.isLayerIgnored=V5e});var pre=c(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.kLayerPatched=void 0;jA.kLayerPatched=Symbol("koa-layer-patched")});var mre=c(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});HA.KoaInstrumentation=void 0;var wn=(P(),m(b)),Gp=qe(),_re=BA(),fre=cre(),gre=dre(),Ere=ae(),hre=pre(),uG=class extends Gp.InstrumentationBase{constructor(e={}){super(fre.PACKAGE_NAME,fre.PACKAGE_VERSION,e)}init(){return new Gp.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <3"],e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;return r==null?r:((0,Gp.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use"),this._wrap(r.prototype,"use",this._getKoaUsePatch.bind(this)),e)},e=>{let r=e[Symbol.toStringTag]==="Module"?e.default:e;(0,Gp.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use")})}_getKoaUsePatch(e){let r=this;return function(o){let i;return o.router?i=r._patchRouterDispatch(o):i=r._patchLayer(o,!1),e.apply(this,[i])}}_patchRouterDispatch(e){var r;wn.diag.debug("Patching @koa/router dispatch");let n=e.router,o=(r=n?.stack)!==null&&r!==void 0?r:[];for(let i of o){let s=i.path,a=i.stack;for(let u=0;u<a.length;u++){let l=a[u];a[u]=this._patchLayer(l,!0,s)}}return e}_patchLayer(e,r,n){let o=r?_re.KoaLayerType.ROUTER:_re.KoaLayerType.MIDDLEWARE;return e[hre.kLayerPatched]===!0||(0,gre.isLayerIgnored)(o,this.getConfig())?e:e.constructor.name==="GeneratorFunction"||e.constructor.name==="AsyncGeneratorFunction"?(wn.diag.debug("ignoring generator-based Koa middleware layer"),e):(e[hre.kLayerPatched]=!0,wn.diag.debug("patching Koa middleware layer"),async(i,s)=>{if(wn.trace.getSpan(wn.context.active())===void 0)return e(i,s);let u=(0,gre.getMiddlewareMetadata)(i,e,r,n),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),d=(0,Ere.getRPCMetadata)(wn.context.active());d?.type===Ere.RPCType.HTTP&&i._matchedRoute&&(d.route=i._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0,Gp.safeExecuteInTheMiddle)(()=>p(l,{context:i,middlewareLayer:e,layerType:o}),f=>{f&&wn.diag.error("koa instrumentation: request hook failed",f)},!0);let _=wn.trace.setSpan(wn.context.active(),l);return wn.context.with(_,async()=>{try{return await e(i,s)}catch(f){throw l.recordException(f),f}finally{l.end()}})})}};HA.KoaInstrumentation=uG});var Tre=c(Oo=>{"use strict";var B5e=Oo&&Oo.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cG=Oo&&Oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&B5e(e,t,r)};Object.defineProperty(Oo,"__esModule",{value:!0});cG(mre(),Oo);cG(BA(),Oo);cG(aG(),Oo)});var lG=c(Up=>{var{_optionalChain:q5e}=I();Object.defineProperty(Up,"__esModule",{value:!0});var j5e=Tre(),H5e=($(),m(J)),Io=k(),F5e=I(),k5e=Rn(),W5e=be(),Y5e=Ku(),Sre="Koa",Are=W5e.generateInstrumentOnce(Sre,()=>new j5e.KoaInstrumentation({requestHook(t,e){if(z5e(t),Io.getIsolationScope()===Io.getDefaultIsolationScope()){k5e.DEBUG_BUILD&&F5e.logger.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let r=Io.spanToJSON(t).data,n=r&&r[H5e.ATTR_HTTP_ROUTE],o=q5e([e,"optionalAccess",i=>i.context,"optionalAccess",i=>i.request,"optionalAccess",i=>i.method,"optionalAccess",i=>i.toUpperCase,"call",i=>i()])||"GET";n&&Io.getIsolationScope().setTransactionName(`${o} ${n}`)}})),K5e=()=>({name:Sre,setupOnce(){Are()}}),X5e=Io.defineIntegration(K5e),Z5e=t=>{t.use(async(e,r)=>{try{await r()}catch(n){throw Io.captureException(n),n}}),Y5e.ensureIsWrapped(t.use,"koa")};function z5e(t){t.setAttribute(Io.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.http.otel.koa");let e=Io.spanToJSON(t).data||{},r=e["koa.type"];r&&t.setAttribute(Io.SEMANTIC_ATTRIBUTE_SENTRY_OP,`${r}.koa`);let n=e["koa.name"];typeof n=="string"&&t.updateName(n||"< unknown >")}Up.instrumentKoa=Are;Up.koaIntegration=X5e;Up.setupKoaErrorHandler=Z5e});var dG=c(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.ConnectNames=en.ConnectTypes=en.AttributeNames=void 0;var J5e;(function(t){t.CONNECT_TYPE="connect.type",t.CONNECT_NAME="connect.name"})(J5e=en.AttributeNames||(en.AttributeNames={}));var $5e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request_handler"})($5e=en.ConnectTypes||(en.ConnectTypes={}));var Q5e;(function(t){t.MIDDLEWARE="middleware",t.REQUEST_HANDLER="request handler"})(Q5e=en.ConnectNames||(en.ConnectNames={}))});var Rre=c(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.PACKAGE_NAME=Kc.PACKAGE_VERSION=void 0;Kc.PACKAGE_VERSION="0.40.0";Kc.PACKAGE_NAME="@opentelemetry/instrumentation-connect"});var Ore=c(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.SeverityNumber=void 0;var e9e;(function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"})(e9e=xp.SeverityNumber||(xp.SeverityNumber={}))});var kA=c(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.NOOP_LOGGER=Xc.NoopLogger=void 0;var FA=class{emit(e){}};Xc.NoopLogger=FA;Xc.NOOP_LOGGER=new FA});var YA=c(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.NOOP_LOGGER_PROVIDER=Zc.NoopLoggerProvider=void 0;var t9e=kA(),WA=class{getLogger(e,r,n){return new t9e.NoopLogger}};Zc.NoopLoggerProvider=WA;Zc.NOOP_LOGGER_PROVIDER=new WA});var _G=c(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});KA.ProxyLogger=void 0;var r9e=kA(),pG=class{constructor(e,r,n,o){this._provider=e,this.name=r,this.version=n,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):r9e.NOOP_LOGGER}};KA.ProxyLogger=pG});var gG=c(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});XA.ProxyLoggerProvider=void 0;var n9e=YA(),o9e=_G(),fG=class{getLogger(e,r,n){var o;return(o=this.getDelegateLogger(e,r,n))!==null&&o!==void 0?o:new o9e.ProxyLogger(this,e,r,n)}getDelegate(){var e;return(e=this._delegate)!==null&&e!==void 0?e:n9e.NOOP_LOGGER_PROVIDER}setDelegate(e){this._delegate=e}getDelegateLogger(e,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(e,r,n)}};XA.ProxyLoggerProvider=fG});var Ire=c(ZA=>{"use strict";Object.defineProperty(ZA,"__esModule",{value:!0});ZA._globalThis=void 0;ZA._globalThis=typeof globalThis=="object"?globalThis:global});var bre=c(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA._globalThis=void 0;var i9e=Ire();Object.defineProperty(zA,"_globalThis",{enumerable:!0,get:function(){return i9e._globalThis}})});var Pre=c(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA._globalThis=void 0;var s9e=bre();Object.defineProperty(JA,"_globalThis",{enumerable:!0,get:function(){return s9e._globalThis}})});var yre=c(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.API_BACKWARDS_COMPATIBILITY_VERSION=Vn.makeGetter=Vn._global=Vn.GLOBAL_LOGS_API_KEY=void 0;var a9e=Pre();Vn.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");Vn._global=a9e._globalThis;function u9e(t,e,r){return n=>n===t?e:r}Vn.makeGetter=u9e;Vn.API_BACKWARDS_COMPATIBILITY_VERSION=1});var Nre=c($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0});$A.LogsAPI=void 0;var Br=yre(),c9e=YA(),vre=gG(),EG=class t{constructor(){this._proxyLoggerProvider=new vre.ProxyLoggerProvider}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalLoggerProvider(e){return Br._global[Br.GLOBAL_LOGS_API_KEY]?this.getLoggerProvider():(Br._global[Br.GLOBAL_LOGS_API_KEY]=(0,Br.makeGetter)(Br.API_BACKWARDS_COMPATIBILITY_VERSION,e,c9e.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider.setDelegate(e),e)}getLoggerProvider(){var e,r;return(r=(e=Br._global[Br.GLOBAL_LOGS_API_KEY])===null||e===void 0?void 0:e.call(Br._global,Br.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(e,r,n){return this.getLoggerProvider().getLogger(e,r,n)}disable(){delete Br._global[Br.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new vre.ProxyLoggerProvider}};$A.LogsAPI=EG});var hG=c(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.logs=at.ProxyLoggerProvider=at.ProxyLogger=at.NoopLoggerProvider=at.NOOP_LOGGER_PROVIDER=at.NoopLogger=at.NOOP_LOGGER=at.SeverityNumber=void 0;var l9e=Ore();Object.defineProperty(at,"SeverityNumber",{enumerable:!0,get:function(){return l9e.SeverityNumber}});var Cre=kA();Object.defineProperty(at,"NOOP_LOGGER",{enumerable:!0,get:function(){return Cre.NOOP_LOGGER}});Object.defineProperty(at,"NoopLogger",{enumerable:!0,get:function(){return Cre.NoopLogger}});var Mre=YA();Object.defineProperty(at,"NOOP_LOGGER_PROVIDER",{enumerable:!0,get:function(){return Mre.NOOP_LOGGER_PROVIDER}});Object.defineProperty(at,"NoopLoggerProvider",{enumerable:!0,get:function(){return Mre.NoopLoggerProvider}});var d9e=_G();Object.defineProperty(at,"ProxyLogger",{enumerable:!0,get:function(){return d9e.ProxyLogger}});var p9e=gG();Object.defineProperty(at,"ProxyLoggerProvider",{enumerable:!0,get:function(){return p9e.ProxyLoggerProvider}});var _9e=Nre();at.logs=_9e.LogsAPI.getInstance()});var Lre=c(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.disableInstrumentations=zc.enableInstrumentations=void 0;function f9e(t,e,r,n){for(let o=0,i=t.length;o<i;o++){let s=t[o];e&&s.setTracerProvider(e),r&&s.setMeterProvider(r),n&&s.setLoggerProvider&&s.setLoggerProvider(n),s.getConfig().enabled||s.enable()}}zc.enableInstrumentations=f9e;function g9e(t){t.forEach(e=>e.disable())}zc.disableInstrumentations=g9e});var Ure=c(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});QA.registerInstrumentations=void 0;var Dre=(P(),m(b)),E9e=hG(),Gre=Lre();function h9e(t){var e,r;let n=t.tracerProvider||Dre.trace.getTracerProvider(),o=t.meterProvider||Dre.metrics.getMeterProvider(),i=t.loggerProvider||E9e.logs.getLoggerProvider(),s=(r=(e=t.instrumentations)===null||e===void 0?void 0:e.flat())!==null&&r!==void 0?r:[];return(0,Gre.enableInstrumentations)(s,n,o,i),()=>{(0,Gre.disableInstrumentations)(s)}}QA.registerInstrumentations=h9e});var xre=c(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});tR.InstrumentationAbstract=void 0;var mG=(P(),m(b)),m9e=hG(),eR=Le(),TG=class{constructor(e,r,n){this.instrumentationName=e,this.instrumentationVersion=r,this._config={},this._wrap=eR.wrap,this._unwrap=eR.unwrap,this._massWrap=eR.massWrap,this._massUnwrap=eR.massUnwrap,this.setConfig(n),this._diag=mG.diag.createComponentLogger({namespace:e}),this._tracer=mG.trace.getTracer(e,r),this._meter=mG.metrics.getMeter(e,r),this._logger=m9e.logs.getLogger(e,r),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let r=(e=this.init())!==null&&e!==void 0?e:[];return Array.isArray(r)?r:[r]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=Object.assign({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,r,n,o){if(e)try{e(n,o)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},i)}}};tR.InstrumentationAbstract=TG});var wre=c(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ModuleNameTrie=Xi.ModuleNameSeparator=void 0;Xi.ModuleNameSeparator="/";var rR=class{constructor(){this.hooks=[],this.children=new Map}},SG=class{constructor(){this._trie=new rR,this._counter=0}insert(e){let r=this._trie;for(let n of e.moduleName.split(Xi.ModuleNameSeparator)){let o=r.children.get(n);o||(o=new rR,r.children.set(n,o)),r=o}r.hooks.push({hook:e,insertedId:this._counter++})}search(e,{maintainInsertionOrder:r,fullOnly:n}={}){let o=this._trie,i=[],s=!0;for(let a of e.split(Xi.ModuleNameSeparator)){let u=o.children.get(a);if(!u){s=!1;break}n||i.push(...u.hooks),o=u}return n&&s&&i.push(...o.hooks),i.length===0?[]:i.length===1?[i[0].hook]:(r&&i.sort((a,u)=>a.insertedId-u.insertedId),i.map(({hook:a})=>a))}};Xi.ModuleNameTrie=SG});var Bre=c(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0});nR.RequireInTheMiddleSingleton=void 0;var T9e=Ge(),Vre=require("path"),AG=wre(),S9e=["afterEach","after","beforeEach","before","describe","it"].every(t=>typeof global[t]=="function"),RG=class t{constructor(){this._moduleNameTrie=new AG.ModuleNameTrie,this._initialize()}_initialize(){new T9e.Hook(null,{internals:!0},(e,r,n)=>{let o=A9e(r),i=this._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:n===void 0});for(let{onRequire:s}of i)e=s(e,r,n);return e})}register(e,r){let n={moduleName:e,onRequire:r};return this._moduleNameTrie.insert(n),n}static getInstance(){var e;return S9e?new t:this._instance=(e=this._instance)!==null&&e!==void 0?e:new t}};nR.RequireInTheMiddleSingleton=RG;function A9e(t){return Vre.sep!==AG.ModuleNameSeparator?t.split(Vre.sep).join(AG.ModuleNameSeparator):t}});var OG=c(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.isWrapped=Zi.safeExecuteInTheMiddleAsync=Zi.safeExecuteInTheMiddle=void 0;function R9e(t,e,r){let n,o;try{o=t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Zi.safeExecuteInTheMiddle=R9e;async function O9e(t,e,r){let n,o;try{o=await t()}catch(i){n=i}finally{if(e(n,o),n&&!r)throw n;return o}}Zi.safeExecuteInTheMiddleAsync=O9e;function I9e(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}Zi.isWrapped=I9e});var Hre=c(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.InstrumentationBase=void 0;var IG=require("path"),qre=require("util"),b9e=Tr(),bG=Le(),P9e=xre(),y9e=Bre(),v9e=Rr(),wp=(P(),m(b)),N9e=Ge(),C9e=require("fs"),M9e=OG(),PG=class extends P9e.InstrumentationAbstract{constructor(e,r,n){super(e,r,n),this._hooks=[],this._requireInTheMiddleSingleton=y9e.RequireInTheMiddleSingleton.getInstance(),this._enabled=!1,this._wrap=(i,s,a)=>{if((0,M9e.isWrapped)(i[s])&&this._unwrap(i,s),qre.types.isProxy(i)){let u=(0,bG.wrap)(Object.assign({},i),s,a);return Object.defineProperty(i,s,{value:u}),u}else return(0,bG.wrap)(i,s,a)},this._unwrap=(i,s)=>qre.types.isProxy(i)?Object.defineProperty(i,s,{value:i[s]}):(0,bG.unwrap)(i,s),this._massWrap=(i,s,a)=>{if(i)Array.isArray(i)||(i=[i]);else{wp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){wp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(u=>{s.forEach(l=>{this._wrap(u,l,a)})})},this._massUnwrap=(i,s)=>{if(i)Array.isArray(i)||(i=[i]);else{wp.diag.error("must provide one or more modules to patch");return}if(!(s&&Array.isArray(s))){wp.diag.error("must provide one or more functions to wrap on modules");return}i.forEach(a=>{s.forEach(u=>{this._unwrap(a,u)})})};let o=this.init();o&&!Array.isArray(o)&&(o=[o]),this._modules=o||[],this._config.enabled&&this.enable()}_warnOnPreloadedModules(){this._modules.forEach(e=>{let{name:r}=e;try{let n=require.resolve(r);require.cache[n]&&this._diag.warn(`Module ${r} has been loaded before ${this.instrumentationName} so it might not work, please initialize it before requiring ${r}`)}catch{}})}_extractPackageVersion(e){try{let r=(0,C9e.readFileSync)(IG.join(e,"package.json"),{encoding:"utf8"}),n=JSON.parse(r).version;return typeof n=="string"?n:void 0}catch{wp.diag.warn("Failed extracting version",e)}}_onRequire(e,r,n,o){var i;if(!o)return typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:e.name}),e.patch(r)):r;let s=this._extractPackageVersion(o);if(e.moduleVersion=s,e.name===n)return jre(e.supportedVersions,s,e.includePrerelease)&&typeof e.patch=="function"&&(e.moduleExports=r,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:e.name,version:e.moduleVersion,baseDir:o}),e.patch(r,e.moduleVersion)):r;let a=(i=e.files)!==null&&i!==void 0?i:[],u=IG.normalize(n);return a.filter(d=>d.name===u).filter(d=>jre(d.supportedVersions,s,e.includePrerelease)).reduce((d,p)=>(p.moduleExports=d,this._enabled?(this._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:e.name,version:e.moduleVersion,fileName:p.name,baseDir:o}),p.patch(d,e.moduleVersion)):d),r)}enable(){if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){for(let e of this._modules){typeof e.patch=="function"&&e.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:e.name,version:e.moduleVersion}),e.patch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.patch(r.moduleExports,e.moduleVersion))}return}this._warnOnPreloadedModules();for(let e of this._modules){let r=(s,a,u)=>this._onRequire(e,s,a,u),n=(s,a,u)=>this._onRequire(e,s,a,u),o=IG.isAbsolute(e.name)?new N9e.Hook([e.name],{internals:!0},n):this._requireInTheMiddleSingleton.register(e.name,n);this._hooks.push(o);let i=new v9e.Hook([e.name],{internals:!1},r);this._hooks.push(i)}}}disable(){if(this._enabled){this._enabled=!1;for(let e of this._modules){typeof e.unpatch=="function"&&e.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:e.name,version:e.moduleVersion}),e.unpatch(e.moduleExports,e.moduleVersion));for(let r of e.files)r.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:e.name,version:e.moduleVersion,fileName:r.name}),r.unpatch(r.moduleExports,e.moduleVersion))}}}isEnabled(){return this._enabled}};oR.InstrumentationBase=PG;function jre(t,e,r){return typeof e>"u"?t.includes("*"):t.some(n=>(0,b9e.satisfies)(e,n,{includePrerelease:r}))}});var Fre=c(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});iR.normalize=void 0;var L9e=require("path");Object.defineProperty(iR,"normalize",{enumerable:!0,get:function(){return L9e.normalize}})});var kre=c(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.normalize=Jc.InstrumentationBase=void 0;var D9e=Hre();Object.defineProperty(Jc,"InstrumentationBase",{enumerable:!0,get:function(){return D9e.InstrumentationBase}});var G9e=Fre();Object.defineProperty(Jc,"normalize",{enumerable:!0,get:function(){return G9e.normalize}})});var yG=c($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.normalize=$c.InstrumentationBase=void 0;var Wre=kre();Object.defineProperty($c,"InstrumentationBase",{enumerable:!0,get:function(){return Wre.InstrumentationBase}});Object.defineProperty($c,"normalize",{enumerable:!0,get:function(){return Wre.normalize}})});var Yre=c(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0});sR.InstrumentationNodeModuleDefinition=void 0;var vG=class{constructor(e,r,n,o,i){this.name=e,this.supportedVersions=r,this.patch=n,this.unpatch=o,this.files=i||[]}};sR.InstrumentationNodeModuleDefinition=vG});var Kre=c(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});aR.InstrumentationNodeModuleFile=void 0;var U9e=yG(),NG=class{constructor(e,r,n,o){this.supportedVersions=r,this.patch=n,this.unpatch=o,this.name=(0,U9e.normalize)(e)}};aR.InstrumentationNodeModuleFile=NG});var Xre=c(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.safeExecuteInTheMiddleAsync=Vt.safeExecuteInTheMiddle=Vt.isWrapped=Vt.InstrumentationNodeModuleFile=Vt.InstrumentationNodeModuleDefinition=Vt.InstrumentationBase=Vt.registerInstrumentations=void 0;var x9e=Ure();Object.defineProperty(Vt,"registerInstrumentations",{enumerable:!0,get:function(){return x9e.registerInstrumentations}});var w9e=yG();Object.defineProperty(Vt,"InstrumentationBase",{enumerable:!0,get:function(){return w9e.InstrumentationBase}});var V9e=Yre();Object.defineProperty(Vt,"InstrumentationNodeModuleDefinition",{enumerable:!0,get:function(){return V9e.InstrumentationNodeModuleDefinition}});var B9e=Kre();Object.defineProperty(Vt,"InstrumentationNodeModuleFile",{enumerable:!0,get:function(){return B9e.InstrumentationNodeModuleFile}});var CG=OG();Object.defineProperty(Vt,"isWrapped",{enumerable:!0,get:function(){return CG.isWrapped}});Object.defineProperty(Vt,"safeExecuteInTheMiddle",{enumerable:!0,get:function(){return CG.safeExecuteInTheMiddle}});Object.defineProperty(Vt,"safeExecuteInTheMiddleAsync",{enumerable:!0,get:function(){return CG.safeExecuteInTheMiddleAsync}})});var Zre=c(uR=>{"use strict";Object.defineProperty(uR,"__esModule",{value:!0});uR._LAYERS_STORE_PROPERTY=void 0;uR._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack")});var zre=c(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.generateRoute=Ji.replaceCurrentStackRoute=Ji.addNewStackLayer=void 0;var q9e=(P(),m(b)),zi=Zre(),j9e=t=>{Array.isArray(t[zi._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(t,zi._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t[zi._LAYERS_STORE_PROPERTY].push("/");let e=t[zi._LAYERS_STORE_PROPERTY].length;return()=>{e===t[zi._LAYERS_STORE_PROPERTY].length?t[zi._LAYERS_STORE_PROPERTY].pop():q9e.diag.warn("Connect: Trying to pop the stack multiple time")}};Ji.addNewStackLayer=j9e;var H9e=(t,e)=>{e&&t[zi._LAYERS_STORE_PROPERTY].splice(-1,1,e)};Ji.replaceCurrentStackRoute=H9e;var F9e=t=>t[zi._LAYERS_STORE_PROPERTY].reduce((e,r)=>e.replace(/\/+$/,"")+r);Ji.generateRoute=F9e});var Qre=c($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.ConnectInstrumentation=$i.ANONYMOUS_NAME=void 0;var k9e=(P(),m(b)),Jre=ae(),Qc=dG(),$re=Rre(),cR=Xre(),W9e=($(),m(J)),MG=zre();$i.ANONYMOUS_NAME="anonymous";var LG=class extends cR.InstrumentationBase{constructor(e={}){super($re.PACKAGE_NAME,$re.PACKAGE_VERSION,e)}init(){return[new cR.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],e=>this._patchConstructor(e))]}_patchApp(e){(0,cR.isWrapped)(e.use)||this._wrap(e,"use",this._patchUse.bind(this)),(0,cR.isWrapped)(e.handle)||this._wrap(e,"handle",this._patchHandle.bind(this))}_patchConstructor(e){let r=this;return function(...n){let o=e.apply(this,n);return r._patchApp(o),o}}_patchNext(e,r){return function(o){let i=e.apply(this,[o]);return r(),i}}_startSpan(e,r){let n,o,i;e?(n=Qc.ConnectTypes.REQUEST_HANDLER,i=Qc.ConnectNames.REQUEST_HANDLER,o=e):(n=Qc.ConnectTypes.MIDDLEWARE,i=Qc.ConnectNames.MIDDLEWARE,o=r.name||$i.ANONYMOUS_NAME);let s=`${i} - ${o}`,a={attributes:{[W9e.SEMATTRS_HTTP_ROUTE]:e.length>0?e:"/",[Qc.AttributeNames.CONNECT_TYPE]:n,[Qc.AttributeNames.CONNECT_NAME]:o}};return this.tracer.startSpan(s,a)}_patchMiddleware(e,r){let n=this,o=r.length===4;function i(){if(!n.isEnabled())return r.apply(this,arguments);let[s,a,u]=o?[1,2,3]:[0,1,2],l=arguments[s],d=arguments[a],p=arguments[u];(0,MG.replaceCurrentStackRoute)(l,e);let _=(0,Jre.getRPCMetadata)(k9e.context.active());e&&_?.type===Jre.RPCType.HTTP&&(_.route=(0,MG.generateRoute)(l));let f="";e?f=`request handler - ${e}`:f=`middleware - ${r.name||$i.ANONYMOUS_NAME}`;let g=n._startSpan(e,r);n._diag.debug("start span",f);let E=!1;function T(){E?n._diag.debug(`span ${g.name} - already finished`):(E=!0,n._diag.debug(`finishing span ${g.name}`),g.end()),d.removeListener("close",T)}return d.addListener("close",T),arguments[u]=n._patchNext(p,T),r.apply(this,arguments)}return Object.defineProperty(i,"length",{value:r.length,writable:!1,configurable:!0}),i}_patchUse(e){let r=this;return function(...n){let o=n[n.length-1],i=n[n.length-2]||"";return n[n.length-1]=r._patchMiddleware(i,o),e.apply(this,n)}}_patchHandle(e){let r=this;return function(){let[n,o]=[0,2],i=arguments[n],s=arguments[o],a=(0,MG.addNewStackLayer)(i);return typeof s=="function"&&(arguments[o]=r._patchOut(s,a)),e.apply(this,arguments)}}_patchOut(e,r){return function(...o){return r(),Reflect.apply(e,this,o)}}};$i.ConnectInstrumentation=LG});var tne=c(Qi=>{"use strict";var Y9e=Qi&&Qi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),ene=Qi&&Qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Y9e(e,t,r)};Object.defineProperty(Qi,"__esModule",{value:!0});ene(dG(),Qi);ene(Qre(),Qi)});var DG=c(Vp=>{Object.defineProperty(Vp,"__esModule",{value:!0});var K9e=tne(),Zs=k(),X9e=be(),Z9e=Ku(),rne="Connect",nne=X9e.generateInstrumentOnce(rne,()=>new K9e.ConnectInstrumentation),z9e=()=>({name:rne,setupOnce(){nne()}}),J9e=Zs.defineIntegration(z9e);function $9e(t,e,r,n){Zs.captureException(t),n(t)}var Q9e=t=>{t.use($9e);let e=Zs.getClient();e&&e.on("spanStart",r=>{eze(r)}),Z9e.ensureIsWrapped(t.use,"connect")};function eze(t){let e=Zs.spanToJSON(t).data||{},r=e["connect.type"];if(e[Zs.SEMANTIC_ATTRIBUTE_SENTRY_OP]||!r)return;t.setAttributes({[Zs.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.otel.connect",[Zs.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${r}.connect`});let n=e["connect.name"];typeof n=="string"&&t.updateName(n)}Vp.connectIntegration=J9e;Vp.instrumentConnect=nne;Vp.setupConnectErrorHandler=Q9e});var GG=c(qp=>{Object.defineProperty(qp,"__esModule",{value:!0});var tze=require("node:http"),rze=k(),Bp=I(),one="Spotlight",nze=(t={})=>{let e={sidecarUrl:t.sidecarUrl||"http://localhost:8969/stream"};return{name:one,setup(r){typeof process=="object"&&process.env&&process.env.NODE_ENV!=="development"&&Bp.logger.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?"),ize(r,e)}}},oze=rze.defineIntegration(nze);function ize(t,e){let r=sze(e.sidecarUrl);if(!r)return;let n=0;t.on("beforeEnvelope",o=>{if(n>3){Bp.logger.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests");return}let i=Bp.serializeEnvelope(o),a=ine()({method:"POST",path:r.pathname,hostname:r.hostname,port:r.port,headers:{"Content-Type":"application/x-sentry-envelope"}},u=>{u.statusCode&&u.statusCode>=200&&u.statusCode<400&&(n=0),u.on("data",()=>{}),u.on("end",()=>{}),u.setEncoding("utf8")});a.on("error",()=>{n++,Bp.logger.warn("[Spotlight] Failed to send envelope to Spotlight Sidecar")}),a.write(i),a.end()})}function sze(t){try{return new URL(`${t}`)}catch{Bp.logger.warn(`[Spotlight] Invalid sidecar URL: ${t}`);return}}function ine(){let{request:t}=tze;return aze(t)?t.__sentry_original__:t}function aze(t){return"__sentry_original__"in t}qp.INTEGRATION_NAME=one;qp.getNativeHttpRequest=ine;qp.spotlightIntegration=oze});var sne=c(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.PACKAGE_NAME=el.PACKAGE_VERSION=void 0;el.PACKAGE_VERSION="0.39.0";el.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool"});var une=c(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});lR.GenericPoolInstrumentation=void 0;var tl=(P(),m(b)),zs=qe(),ane=sne(),UG="generic-pool",xG=class extends zs.InstrumentationBase{constructor(e={}){super(ane.PACKAGE_NAME,ane.PACKAGE_VERSION,e),this._isDisabled=!1}init(){return[new zs.InstrumentationNodeModuleDefinition(UG,[">=3.0.0 <4"],e=>{let r=e.Pool;return(0,zs.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquirePatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new zs.InstrumentationNodeModuleDefinition(UG,[">=2.4.0 <3"],e=>{let r=e.Pool;return(0,zs.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),e},e=>{let r=e.Pool;return this._unwrap(r.prototype,"acquire"),e}),new zs.InstrumentationNodeModuleDefinition(UG,[">=2.0.0 <2.4"],e=>(this._isDisabled=!1,(0,zs.isWrapped)(e.Pool)&&this._unwrap(e,"Pool"),this._wrap(e,"Pool",this._poolWrapper.bind(this)),e),e=>(this._isDisabled=!0,e))]}_acquirePatcher(e){let r=this;return function(...o){let i=tl.context.active(),s=r.tracer.startSpan("generic-pool.acquire",{},i);return tl.context.with(tl.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a),a=>{throw s.recordException(a),s.end(),a}))}}_poolWrapper(e){let r=this;return function(){let o=e.apply(this,arguments);return r._wrap(o,"acquire",r._acquireWithCallbacksPatcher.bind(r)),o}}_acquireWithCallbacksPatcher(e){let r=this;return function(o,i){if(r._isDisabled)return e.call(this,o,i);let s=tl.context.active(),a=r.tracer.startSpan("generic-pool.acquire",{},s);return tl.context.with(tl.trace.setSpan(s,a),()=>{e.call(this,(u,l)=>{if(a.end(),o)return o(u,l)},i)})}}};lR.GenericPoolInstrumentation=xG});var cne=c(Js=>{"use strict";var uze=Js&&Js.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),cze=Js&&Js.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&uze(e,t,r)};Object.defineProperty(Js,"__esModule",{value:!0});cze(une(),Js)});var VG=c(dR=>{Object.defineProperty(dR,"__esModule",{value:!0});var lze=cne(),wG=k(),dze=be(),lne="GenericPool",dne=dze.generateInstrumentOnce(lne,()=>new lze.GenericPoolInstrumentation({})),pze=()=>({name:lne,setupOnce(){dne()},setup(t){t.on("spanStart",e=>{let n=wG.spanToJSON(e).description;(n==="generic-pool.aquire"||n==="generic-pool.acquire")&&e.setAttribute(wG.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.generic_pool")})}}),_ze=wG.defineIntegration(pze);dR.genericPoolIntegration=_ze;dR.instrumentGenericPool=dne});var _ne=c(pne=>{"use strict";Object.defineProperty(pne,"__esModule",{value:!0})});var fne=c(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.PACKAGE_NAME=rl.PACKAGE_VERSION=void 0;rl.PACKAGE_VERSION="0.12.0";rl.PACKAGE_NAME="@opentelemetry/instrumentation-dataloader"});var Ene=c(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});pR.DataloaderInstrumentation=void 0;var $s=qe(),Xt=(P(),m(b)),gne=fne(),BG="dataloader",qG=class extends $s.InstrumentationBase{constructor(e={}){super(gne.PACKAGE_NAME,gne.PACKAGE_VERSION,e)}init(){return[new $s.InstrumentationNodeModuleDefinition(BG,[">=2.0.0 <3"],e=>(this._patchLoad(e.prototype),this._patchLoadMany(e.prototype),this._getPatchedConstructor(e)),e=>{(0,$s.isWrapped)(e.prototype.load)&&this._unwrap(e.prototype,"load"),(0,$s.isWrapped)(e.prototype.loadMany)&&this._unwrap(e.prototype,"loadMany")})]}shouldCreateSpans(){let e=this.getConfig();return Xt.trace.getSpan(Xt.context.active())!==void 0||!e.requireParentSpan}getSpanName(e,r){let n=e.name;return n==null?`${BG}.${r}`:`${BG}.${r} ${n}`}_getPatchedConstructor(e){let r=e.prototype,n=this;function o(...i){let s=new e(...i);return n.isEnabled()&&((0,$s.isWrapped)(s._batchLoadFn)&&n._unwrap(s,"_batchLoadFn"),n._wrap(s,"_batchLoadFn",a=>function(...l){var d;if(!n.isEnabled()||!n.shouldCreateSpans())return a.call(this,...l);let p=Xt.context.active(),_=n.tracer.startSpan(n.getSpanName(s,"batch"),{links:(d=this._batch)===null||d===void 0?void 0:d.spanLinks},p);return Xt.context.with(Xt.trace.setSpan(p,_),()=>a.apply(this,l).then(f=>(_.end(),f)).catch(f=>{throw _.recordException(f),_.setStatus({code:Xt.SpanStatusCode.ERROR,message:f.message}),_.end(),f}))})),s}return o.prototype=r,o}_patchLoad(e){(0,$s.isWrapped)(e.load)&&this._unwrap(e,"load"),this._wrap(e,"load",this._getPatchedLoad.bind(this))}_getPatchedLoad(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=Xt.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"load"),{kind:Xt.SpanKind.CLIENT},i);return Xt.context.with(Xt.trace.setSpan(i,s),()=>{let a=e.call(this,...o).then(l=>(s.end(),l)).catch(l=>{throw s.recordException(l),s.setStatus({code:Xt.SpanStatusCode.ERROR,message:l.message}),s.end(),l}),u=this;return u._batch&&(u._batch.spanLinks||(u._batch.spanLinks=[]),u._batch.spanLinks.push({context:s.spanContext()})),a})}}_patchLoadMany(e){(0,$s.isWrapped)(e.loadMany)&&this._unwrap(e,"loadMany"),this._wrap(e,"loadMany",this._getPatchedLoadMany.bind(this))}_getPatchedLoadMany(e){let r=this;return function(...o){if(!r.shouldCreateSpans())return e.call(this,...o);let i=Xt.context.active(),s=r.tracer.startSpan(r.getSpanName(this,"loadMany"),{kind:Xt.SpanKind.CLIENT},i);return Xt.context.with(Xt.trace.setSpan(i,s),()=>e.call(this,...o).then(a=>(s.end(),a)))}}};pR.DataloaderInstrumentation=qG});var mne=c(es=>{"use strict";var fze=es&&es.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),hne=es&&es.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&fze(e,t,r)};Object.defineProperty(es,"__esModule",{value:!0});hne(_ne(),es);hne(Ene(),es)});var Ane=c(fR=>{var{_optionalChain:gze}=I();Object.defineProperty(fR,"__esModule",{value:!0});var Eze=mne(),_R=k(),hze=be(),Tne="Dataloader",Sne=hze.generateInstrumentOnce(Tne,()=>new Eze.DataloaderInstrumentation({requireParentSpan:!0})),mze=()=>({name:Tne,setupOnce(){Sne()},setup(t){t.on("spanStart",e=>{let r=_R.spanToJSON(e);gze([r,"access",n=>n.description,"optionalAccess",n=>n.startsWith,"call",n=>n("dataloader")])&&e.setAttribute(_R.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.otel.dataloader"),(r.description==="dataloader.load"||r.description==="dataloader.loadMany"||r.description==="dataloader.batch")&&e.setAttribute(_R.SEMANTIC_ATTRIBUTE_SENTRY_OP,"cache.get")})}}),Tze=_R.defineIntegration(mze);fR.dataloaderIntegration=Tze;fR.instrumentDataloader=Sne});var jG=c(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.DEFAULT_CONFIG=Qs.EndOperation=void 0;var Sze;(function(t){t.AutoAck="auto ack",t.Ack="ack",t.AckAll="ackAll",t.Reject="reject",t.Nack="nack",t.NackAll="nackAll",t.ChannelClosed="channel closed",t.ChannelError="channel error",t.InstrumentationTimeout="instrumentation timeout"})(Sze=Qs.EndOperation||(Qs.EndOperation={}));Qs.DEFAULT_CONFIG={consumeTimeoutMs:1e3*60,useLinksForConsume:!1}});var bne=c(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.isConfirmChannelTracing=Ne.unmarkConfirmChannelTracing=Ne.markConfirmChannelTracing=Ne.getConnectionAttributesFromUrl=Ne.getConnectionAttributesFromServer=Ne.normalizeExchange=Ne.CONNECTION_ATTRIBUTES=Ne.CHANNEL_CONSUME_TIMEOUT_TIMER=Ne.CHANNEL_SPANS_NOT_ENDED=Ne.MESSAGE_STORED_SPAN=void 0;var HG=(P(),m(b)),bo=($(),m(J));Ne.MESSAGE_STORED_SPAN=Symbol("opentelemetry.amqplib.message.stored-span");Ne.CHANNEL_SPANS_NOT_ENDED=Symbol("opentelemetry.amqplib.channel.spans-not-ended");Ne.CHANNEL_CONSUME_TIMEOUT_TIMER=Symbol("opentelemetry.amqplib.channel.consumer-timeout-timer");Ne.CONNECTION_ATTRIBUTES=Symbol("opentelemetry.amqplib.connection.attributes");var FG=(0,HG.createContextKey)("opentelemetry.amqplib.channel.is-confirm-channel"),Aze=t=>t!==""?t:"<default>";Ne.normalizeExchange=Aze;var Rze=t=>t.replace(/:[^:@/]*@/,":***@"),Rne=(t,e)=>t||(e==="AMQP"?5672:5671),One=t=>{let e=t||"amqp";return(e.endsWith(":")?e.substring(0,e.length-1):e).toUpperCase()},Ine=t=>t||"localhost",nl=(t,e,r,n)=>r?{[e]:r}:(HG.diag.error(`amqplib instrumentation: could not extract connection attribute ${n} from user supplied url`,{url:t}),{}),Oze=t=>{var e,r;let n=(r=(e=t.serverProperties.product)===null||e===void 0?void 0:e.toLowerCase)===null||r===void 0?void 0:r.call(e);return n?{[bo.SEMATTRS_MESSAGING_SYSTEM]:n}:{}};Ne.getConnectionAttributesFromServer=Oze;var Ize=t=>{let e={[bo.SEMATTRS_MESSAGING_PROTOCOL_VERSION]:"0.9.1"};if(t=t||"amqp://localhost",typeof t=="object"){let r=t,n=One(r?.protocol);Object.assign(e,Object.assign({},nl(t,bo.SEMATTRS_MESSAGING_PROTOCOL,n,"protocol")));let o=Ine(r?.hostname);Object.assign(e,Object.assign({},nl(t,bo.SEMATTRS_NET_PEER_NAME,o,"hostname")));let i=Rne(r.port,n);Object.assign(e,Object.assign({},nl(t,bo.SEMATTRS_NET_PEER_PORT,i,"port")))}else{let r=Rze(t);e[bo.SEMATTRS_MESSAGING_URL]=r;try{let n=new URL(r),o=One(n.protocol);Object.assign(e,Object.assign({},nl(r,bo.SEMATTRS_MESSAGING_PROTOCOL,o,"protocol")));let i=Ine(n.hostname);Object.assign(e,Object.assign({},nl(r,bo.SEMATTRS_NET_PEER_NAME,i,"hostname")));let s=Rne(n.port?parseInt(n.port):void 0,o);Object.assign(e,Object.assign({},nl(r,bo.SEMATTRS_NET_PEER_PORT,s,"port")))}catch(n){HG.diag.error("amqplib instrumentation: error while extracting connection details from connection url",{censoredUrl:r,err:n})}}return e};Ne.getConnectionAttributesFromUrl=Ize;var bze=t=>t.setValue(FG,!0);Ne.markConfirmChannelTracing=bze;var Pze=t=>t.deleteValue(FG);Ne.unmarkConfirmChannelTracing=Pze;var yze=t=>t.getValue(FG)===!0;Ne.isConfirmChannelTracing=yze});var Pne=c(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.PACKAGE_NAME=ol.PACKAGE_VERSION=void 0;ol.PACKAGE_VERSION="0.42.0";ol.PACKAGE_NAME="@opentelemetry/instrumentation-amqplib"});var vne=c(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0});hR.AmqplibInstrumentation=void 0;var ye=(P(),m(b)),gR=ae(),se=qe(),ir=($(),m(J)),Zt=jG(),Ce=bne(),yne=Pne(),ER=[">=0.5.5 <1"],kG=class extends se.InstrumentationBase{constructor(e={}){super(yne.PACKAGE_NAME,yne.PACKAGE_VERSION,Object.assign(Object.assign({},Zt.DEFAULT_CONFIG),e))}setConfig(e={}){super.setConfig(Object.assign(Object.assign({},Zt.DEFAULT_CONFIG),e))}init(){let e=new se.InstrumentationNodeModuleFile("amqplib/lib/channel_model.js",ER,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),r=new se.InstrumentationNodeModuleFile("amqplib/lib/callback_model.js",ER,this.patchChannelModel.bind(this),this.unpatchChannelModel.bind(this)),n=new se.InstrumentationNodeModuleFile("amqplib/lib/connect.js",ER,this.patchConnect.bind(this),this.unpatchConnect.bind(this));return new se.InstrumentationNodeModuleDefinition("amqplib",ER,void 0,void 0,[e,n,r])}patchConnect(e){return e=this.unpatchConnect(e),(0,se.isWrapped)(e.connect)||this._wrap(e,"connect",this.getConnectPatch.bind(this)),e}unpatchConnect(e){return(0,se.isWrapped)(e.connect)&&this._unwrap(e,"connect"),e}patchChannelModel(e,r){return(0,se.isWrapped)(e.Channel.prototype.publish)||this._wrap(e.Channel.prototype,"publish",this.getPublishPatch.bind(this,r)),(0,se.isWrapped)(e.Channel.prototype.consume)||this._wrap(e.Channel.prototype,"consume",this.getConsumePatch.bind(this,r)),(0,se.isWrapped)(e.Channel.prototype.ack)||this._wrap(e.Channel.prototype,"ack",this.getAckPatch.bind(this,!1,Zt.EndOperation.Ack)),(0,se.isWrapped)(e.Channel.prototype.nack)||this._wrap(e.Channel.prototype,"nack",this.getAckPatch.bind(this,!0,Zt.EndOperation.Nack)),(0,se.isWrapped)(e.Channel.prototype.reject)||this._wrap(e.Channel.prototype,"reject",this.getAckPatch.bind(this,!0,Zt.EndOperation.Reject)),(0,se.isWrapped)(e.Channel.prototype.ackAll)||this._wrap(e.Channel.prototype,"ackAll",this.getAckAllPatch.bind(this,!1,Zt.EndOperation.AckAll)),(0,se.isWrapped)(e.Channel.prototype.nackAll)||this._wrap(e.Channel.prototype,"nackAll",this.getAckAllPatch.bind(this,!0,Zt.EndOperation.NackAll)),(0,se.isWrapped)(e.Channel.prototype.emit)||this._wrap(e.Channel.prototype,"emit",this.getChannelEmitPatch.bind(this)),(0,se.isWrapped)(e.ConfirmChannel.prototype.publish)||this._wrap(e.ConfirmChannel.prototype,"publish",this.getConfirmedPublishPatch.bind(this,r)),e}unpatchChannelModel(e){return(0,se.isWrapped)(e.Channel.prototype.publish)&&this._unwrap(e.Channel.prototype,"publish"),(0,se.isWrapped)(e.Channel.prototype.consume)&&this._unwrap(e.Channel.prototype,"consume"),(0,se.isWrapped)(e.Channel.prototype.ack)&&this._unwrap(e.Channel.prototype,"ack"),(0,se.isWrapped)(e.Channel.prototype.nack)&&this._unwrap(e.Channel.prototype,"nack"),(0,se.isWrapped)(e.Channel.prototype.reject)&&this._unwrap(e.Channel.prototype,"reject"),(0,se.isWrapped)(e.Channel.prototype.ackAll)&&this._unwrap(e.Channel.prototype,"ackAll"),(0,se.isWrapped)(e.Channel.prototype.nackAll)&&this._unwrap(e.Channel.prototype,"nackAll"),(0,se.isWrapped)(e.Channel.prototype.emit)&&this._unwrap(e.Channel.prototype,"emit"),(0,se.isWrapped)(e.ConfirmChannel.prototype.publish)&&this._unwrap(e.ConfirmChannel.prototype,"publish"),e}getConnectPatch(e){return function(n,o,i){return e.call(this,n,o,function(s,a){if(s==null){let u=(0,Ce.getConnectionAttributesFromUrl)(n),l=(0,Ce.getConnectionAttributesFromServer)(a);a[Ce.CONNECTION_ATTRIBUTES]=Object.assign(Object.assign({},u),l)}i.apply(this,arguments)})}}getChannelEmitPatch(e){let r=this;return function(o){if(o==="close"){r.endAllSpansOnChannel(this,!0,Zt.EndOperation.ChannelClosed,void 0);let i=this[Ce.CHANNEL_CONSUME_TIMEOUT_TIMER];i&&clearInterval(i),this[Ce.CHANNEL_CONSUME_TIMEOUT_TIMER]=void 0}else o==="error"&&r.endAllSpansOnChannel(this,!0,Zt.EndOperation.ChannelError,void 0);return e.apply(this,arguments)}}getAckAllPatch(e,r,n){let o=this;return function(s){return o.endAllSpansOnChannel(this,e,r,s),n.apply(this,arguments)}}getAckPatch(e,r,n){let o=this;return function(s,a,u){var l;let d=this,p=r===Zt.EndOperation.Reject?a:u,_=(l=d[Ce.CHANNEL_SPANS_NOT_ENDED])!==null&&l!==void 0?l:[],f=_.findIndex(g=>g.msg===s);if(f<0)o.endConsumerSpan(s,e,r,p);else if(r!==Zt.EndOperation.Reject&&a){for(let g=0;g<=f;g++)o.endConsumerSpan(_[g].msg,e,r,p);_.splice(0,f+1)}else o.endConsumerSpan(s,e,r,p),_.splice(f,1);return n.apply(this,arguments)}}getConsumePatch(e,r){let n=this;return function(i,s,a){let u=this;if(!Object.prototype.hasOwnProperty.call(u,Ce.CHANNEL_SPANS_NOT_ENDED)){let{consumeTimeoutMs:d}=n.getConfig();if(d){let p=setInterval(()=>{n.checkConsumeTimeoutOnChannel(u)},d);p.unref(),u[Ce.CHANNEL_CONSUME_TIMEOUT_TIMER]=p}u[Ce.CHANNEL_SPANS_NOT_ENDED]=[]}let l=function(d){var p,_,f,g,E;if(!d)return s.call(this,d);let T=(p=d.properties.headers)!==null&&p!==void 0?p:{},y=ye.propagation.extract(ye.ROOT_CONTEXT,T),C=(_=d.fields)===null||_===void 0?void 0:_.exchange,L;if(n._config.useLinksForConsume){let x=y?(f=ye.trace.getSpan(y))===null||f===void 0?void 0:f.spanContext():void 0;y=void 0,x&&(L=[{context:x}])}let M=n.tracer.startSpan(`${i} process`,{kind:ye.SpanKind.CONSUMER,attributes:Object.assign(Object.assign({},(g=u?.connection)===null||g===void 0?void 0:g[Ce.CONNECTION_ATTRIBUTES]),{[ir.SEMATTRS_MESSAGING_DESTINATION]:C,[ir.SEMATTRS_MESSAGING_DESTINATION_KIND]:ir.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[ir.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:(E=d.fields)===null||E===void 0?void 0:E.routingKey,[ir.SEMATTRS_MESSAGING_OPERATION]:ir.MESSAGINGOPERATIONVALUES_PROCESS,[ir.SEMATTRS_MESSAGING_MESSAGE_ID]:d?.properties.messageId,[ir.SEMATTRS_MESSAGING_CONVERSATION_ID]:d?.properties.correlationId}),links:L},y),{consumeHook:v}=n.getConfig();v&&(0,se.safeExecuteInTheMiddle)(()=>v(M,{moduleVersion:e,msg:d}),x=>{x&&ye.diag.error("amqplib instrumentation: consumerHook error",x)},!0),a?.noAck||(u[Ce.CHANNEL_SPANS_NOT_ENDED].push({msg:d,timeOfConsume:(0,gR.hrTime)()}),d[Ce.MESSAGE_STORED_SPAN]=M);let D=y||ye.ROOT_CONTEXT;ye.context.with(ye.trace.setSpan(D,M),()=>{s.call(this,d)}),a?.noAck&&(n.callConsumeEndHook(M,d,!1,Zt.EndOperation.AutoAck),M.end())};return arguments[1]=l,r.apply(this,arguments)}}getConfirmedPublishPatch(e,r){let n=this;return function(i,s,a,u,l){let d=this,{span:p,modifiedOptions:_}=n.createPublishSpan(n,i,s,d,u),{publishHook:f}=n.getConfig();f&&(0,se.safeExecuteInTheMiddle)(()=>f(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:_,isConfirmChannel:!0}),y=>{y&&ye.diag.error("amqplib instrumentation: publishHook error",y)},!0);let g=function(y,C){try{l?.call(this,y,C)}finally{let{publishConfirmHook:L}=n.getConfig();L&&(0,se.safeExecuteInTheMiddle)(()=>L(p,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:u,isConfirmChannel:!0,confirmError:y}),M=>{M&&ye.diag.error("amqplib instrumentation: publishConfirmHook error",M)},!0),y&&p.setStatus({code:ye.SpanStatusCode.ERROR,message:"message confirmation has been nack'ed"}),p.end()}},E=(0,Ce.markConfirmChannelTracing)(ye.context.active()),T=[...arguments];return T[3]=_,T[4]=ye.context.bind((0,Ce.unmarkConfirmChannelTracing)(ye.trace.setSpan(E,p)),g),ye.context.with(E,r.bind(this,...T))}}getPublishPatch(e,r){let n=this;return function(i,s,a,u){if((0,Ce.isConfirmChannelTracing)(ye.context.active()))return r.apply(this,arguments);{let l=this,{span:d,modifiedOptions:p}=n.createPublishSpan(n,i,s,l,u),{publishHook:_}=n.getConfig();_&&(0,se.safeExecuteInTheMiddle)(()=>_(d,{moduleVersion:e,exchange:i,routingKey:s,content:a,options:p,isConfirmChannel:!1}),E=>{E&&ye.diag.error("amqplib instrumentation: publishHook error",E)},!0);let f=[...arguments];f[3]=p;let g=r.apply(this,f);return d.end(),g}}}createPublishSpan(e,r,n,o,i){var s;let a=(0,Ce.normalizeExchange)(r),u=e.tracer.startSpan(`publish ${a}`,{kind:ye.SpanKind.PRODUCER,attributes:Object.assign(Object.assign({},o.connection[Ce.CONNECTION_ATTRIBUTES]),{[ir.SEMATTRS_MESSAGING_DESTINATION]:r,[ir.SEMATTRS_MESSAGING_DESTINATION_KIND]:ir.MESSAGINGDESTINATIONKINDVALUES_TOPIC,[ir.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY]:n,[ir.SEMATTRS_MESSAGING_MESSAGE_ID]:i?.messageId,[ir.SEMATTRS_MESSAGING_CONVERSATION_ID]:i?.correlationId})}),l=i??{};return l.headers=(s=l.headers)!==null&&s!==void 0?s:{},ye.propagation.inject(ye.trace.setSpan(ye.context.active(),u),l.headers),{span:u,modifiedOptions:l}}endConsumerSpan(e,r,n,o){let i=e[Ce.MESSAGE_STORED_SPAN];i&&(r!==!1&&i.setStatus({code:ye.SpanStatusCode.ERROR,message:n!==Zt.EndOperation.ChannelClosed&&n!==Zt.EndOperation.ChannelError?`${n} called on message${o===!0?" with requeue":o===!1?" without requeue":""}`:n}),this.callConsumeEndHook(i,e,r,n),i.end(),e[Ce.MESSAGE_STORED_SPAN]=void 0)}endAllSpansOnChannel(e,r,n,o){var i;((i=e[Ce.CHANNEL_SPANS_NOT_ENDED])!==null&&i!==void 0?i:[]).forEach(a=>{this.endConsumerSpan(a.msg,r,n,o)}),e[Ce.CHANNEL_SPANS_NOT_ENDED]=[]}callConsumeEndHook(e,r,n,o){let{consumeEndHook:i}=this.getConfig();i&&(0,se.safeExecuteInTheMiddle)(()=>i(e,{msg:r,rejected:n,endOperation:o}),s=>{s&&ye.diag.error("amqplib instrumentation: consumerEndHook error",s)},!0)}checkConsumeTimeoutOnChannel(e){var r;let n=(0,gR.hrTime)(),o=(r=e[Ce.CHANNEL_SPANS_NOT_ENDED])!==null&&r!==void 0?r:[],i,{consumeTimeoutMs:s}=this.getConfig();for(i=0;i<o.length;i++){let a=o[i],u=(0,gR.hrTimeDuration)(a.timeOfConsume,n);if((0,gR.hrTimeToMilliseconds)(u)<s)break;this.endConsumerSpan(a.msg,null,Zt.EndOperation.InstrumentationTimeout,!0)}o.splice(0,i)}};hR.AmqplibInstrumentation=kG});var Cne=c(ts=>{"use strict";var vze=ts&&ts.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Nne=ts&&ts.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vze(e,t,r)};Object.defineProperty(ts,"__esModule",{value:!0});Nne(vne(),ts);Nne(jG(),ts)});var WG=c(mR=>{Object.defineProperty(mR,"__esModule",{value:!0});var Nze=Cne(),Cze=k(),Mze=be(),Mne=Tn(),Lne="Amqplib",Lze={consumeEndHook:t=>{Mne.addOriginToSpan(t,"auto.amqplib.otel.consumer")},publishHook:t=>{Mne.addOriginToSpan(t,"auto.amqplib.otel.publisher")}},Dne=Mze.generateInstrumentOnce(Lne,()=>new Nze.AmqplibInstrumentation(Lze)),Dze=()=>({name:Lne,setupOnce(){Dne()}}),Gze=Cze.defineIntegration(Dze);mR.amqplibIntegration=Gze;mR.instrumentAmqplib=Dne});var KG=c(YG=>{Object.defineProperty(YG,"__esModule",{value:!0});var Gne=require("node:diagnostics_channel"),TR=k(),Uze="ProcessAndThreadBreadcrumbs",xze=(t={})=>({name:Uze,setup(e){Gne.channel("child_process").subscribe(r=>{r&&typeof r=="object"&&"process"in r&&Vze(r.process,t)}),Gne.channel("worker_threads").subscribe(r=>{r&&typeof r=="object"&&"worker"in r&&Bze(r.worker)})}}),wze=TR.defineIntegration(xze);function Vze(t,e){let r=!1,n;t.on("spawn",()=>{if(t.spawnfile==="/usr/bin/sw_vers"){r=!0;return}n={spawnfile:t.spawnfile},e.includeChildProcessArgs&&(n.spawnargs=t.spawnargs)}).on("exit",o=>{r||(r=!0,o!==null&&o!==0&&TR.addBreadcrumb({category:"child_process",message:`Child process exited with code '${o}'`,level:"warning",data:n}))}).on("error",o=>{r||(r=!0,TR.addBreadcrumb({category:"child_process",message:`Child process errored with '${o.message}'`,level:"error",data:n}))})}function Bze(t){let e;t.on("online",()=>{e=t.threadId}).on("error",r=>{TR.addBreadcrumb({category:"worker_thread",message:`Worker thread errored with '${r.message}'`,level:"error",data:{threadId:e}})})}YG.processThreadBreadcrumbIntegration=wze});var ZG=c(SR=>{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});SR.AbstractAsyncHooksContextManager=void 0;var qze=require("events"),jze=["addListener","on","once","prependListener","prependOnceListener"],XG=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,r){return r instanceof qze.EventEmitter?this._bindEventEmitter(e,r):typeof r=="function"?this._bindFunction(e,r):r}_bindFunction(e,r){let n=this,o=function(...i){return n.with(e,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}_bindEventEmitter(e,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),jze.forEach(o=>{r[o]!==void 0&&(r[o]=this._patchAddListener(r,r[o],e))}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(e,r){let n=this;return function(o,i){var s;let a=(s=n._getPatchMap(e))===null||s===void 0?void 0:s[o];if(a===void 0)return r.call(this,o,i);let u=a.get(i);return r.call(this,o,u||i)}}_patchRemoveAllListeners(e,r){let n=this;return function(o){let i=n._getPatchMap(e);return i!==void 0&&(arguments.length===0?n._createPatchMap(e):i[o]!==void 0&&delete i[o]),r.apply(this,arguments)}}_patchAddListener(e,r,n){let o=this;return function(i,s){if(o._wrapped)return r.call(this,i,s);let a=o._getPatchMap(e);a===void 0&&(a=o._createPatchMap(e));let u=a[i];u===void 0&&(u=new WeakMap,a[i]=u);let l=o.bind(n,s);u.set(s,l),o._wrapped=!0;try{return r.call(this,i,l)}finally{o._wrapped=!1}}}_createPatchMap(e){let r=Object.create(null);return e[this._kOtListeners]=r,r}_getPatchMap(e){return e[this._kOtListeners]}};SR.AbstractAsyncHooksContextManager=XG});var Une=c(AR=>{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.AsyncHooksContextManager=void 0;var Hze=(P(),m(b)),Fze=require("async_hooks"),kze=ZG(),zG=class extends kze.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=Fze.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:Hze.ROOT_CONTEXT}with(e,r,n,...o){this._enterContext(e);try{return r.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,r){if(r==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(e,n)}_destroy(e){this._contexts.delete(e)}_before(e){let r=this._contexts.get(e);r!==void 0&&this._enterContext(r)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};AR.AsyncHooksContextManager=zG});var xne=c(RR=>{"use strict";Object.defineProperty(RR,"__esModule",{value:!0});RR.AsyncLocalStorageContextManager=void 0;var Wze=(P(),m(b)),Yze=require("async_hooks"),Kze=ZG(),JG=class extends Kze.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Yze.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Wze.ROOT_CONTEXT}with(e,r,n,...o){let i=n==null?r:r.bind(n);return this._asyncLocalStorage.run(e,i,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};RR.AsyncLocalStorageContextManager=JG});var wne=c(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.AsyncLocalStorageContextManager=il.AsyncHooksContextManager=void 0;var Xze=Une();Object.defineProperty(il,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Xze.AsyncHooksContextManager}});var Zze=xne();Object.defineProperty(il,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Zze.AsyncLocalStorageContextManager}})});var QG=c($G=>{Object.defineProperty($G,"__esModule",{value:!0});var zze=wne(),Jze=ao(),$ze=Jze.wrapContextManagerClass(zze.AsyncLocalStorageContextManager);$G.SentryContextManager=$ze});var IR=c(OR=>{Object.defineProperty(OR,"__esModule",{value:!0});var Qze=om(),Vne=WG(),Bne=DG(),qne=EL(),jne=qL(),Hne=VG(),Fne=d0(),e1=sG(),kne=L0(),Wne=lG(),Yne=G0(),Kne=tD(),Xne=iD(),Zne=uD(),zne=pD(),Jne=ID(),$ne=CD(),Qne=hD();function e3e(){return[qne.expressIntegration(),jne.fastifyIntegration(),Fne.graphqlIntegration(),Kne.mongoIntegration(),Xne.mongooseIntegration(),Zne.mysqlIntegration(),zne.mysql2Integration(),Qne.redisIntegration(),$ne.postgresIntegration(),Jne.nestIntegration(),e1.hapiIntegration(),Wne.koaIntegration(),Bne.connectIntegration(),Hne.genericPoolIntegration(),kne.kafkaIntegration(),Vne.amqplibIntegration(),Yne.lruMemoizerIntegration()]}function t3e(){return[Qze.instrumentOtelHttp,qne.instrumentExpress,Bne.instrumentConnect,jne.instrumentFastify,e1.instrumentHapi,kne.instrumentKafka,Wne.instrumentKoa,Yne.instrumentLruMemoizer,Jne.instrumentNest,Kne.instrumentMongo,Xne.instrumentMongoose,Zne.instrumentMysql,zne.instrumentMysql2,$ne.instrumentPostgres,e1.instrumentHapi,Fne.instrumentGraphql,Qne.instrumentRedis,Hne.instrumentGenericPool,Vne.instrumentAmqplib]}OR.getAutoPerformanceIntegrations=e3e;OR.getOpenTelemetryInstrumentationToPreload=t3e});var roe=c(r1=>{var{_nullishCoalesce:eoe}=I();Object.defineProperty(r1,"__esModule",{value:!0});var toe=require("node:http");require("node:https");var Bn=Symbol("AgentBaseInternalState"),t1=class extends toe.Agent{constructor(e){super(e),this[Bn]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
|
33
|
+
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,o)).then(i=>{if(i instanceof toe.Agent)return i.addRequest(e,o);this[Bn].currentSocket=i,super.createSocket(e,r,n)},n)}createConnection(){let e=this[Bn].currentSocket;if(this[Bn].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return eoe(this[Bn].defaultPort,()=>this.protocol==="https:"?443:80)}set defaultPort(e){this[Bn]&&(this[Bn].defaultPort=e)}get protocol(){return eoe(this[Bn].protocol,()=>this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Bn]&&(this[Bn].protocol=e)}};r1.Agent=t1});var noe=c(n1=>{Object.defineProperty(n1,"__esModule",{value:!0});var r3e=I();function bR(...t){r3e.logger.log("[https-proxy-agent:parse-proxy-response]",...t)}function n3e(t){return new Promise((e,r)=>{let n=0,o=[];function i(){let d=t.read();d?l(d):t.once("readable",i)}function s(){t.removeListener("end",a),t.removeListener("error",u),t.removeListener("readable",i)}function a(){s(),bR("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function u(d){s(),bR("onerror %o",d),r(d)}function l(d){o.push(d),n+=d.length;let p=Buffer.concat(o,n),_=p.indexOf(`\r
|
|
34
|
+
\r
|
|
35
|
+
`);if(_===-1){bR("have not received end of HTTP headers yet..."),i();return}let f=p.slice(0,_).toString("ascii").split(`\r
|
|
36
|
+
`),g=f.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let E=g.split(" "),T=+(E[1]||0),y=E.slice(2).join(" "),C={};for(let L of f){if(!L)continue;let M=L.indexOf(":");if(M===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${L}"`));let v=L.slice(0,M).toLowerCase(),D=L.slice(M+1).trimStart(),x=C[v];typeof x=="string"?C[v]=[x,D]:Array.isArray(x)?x.push(D):C[v]=D}bR("got proxy server response: %o %o",g,C),s(),e({connect:{statusCode:T,statusText:y,headers:C},buffered:p})}t.on("error",u),t.on("end",a),i()})}n1.parseProxyResponse=n3e});var soe=c(o1=>{var{_nullishCoalesce:o3e,_optionalChain:i3e}=I();Object.defineProperty(o1,"__esModule",{value:!0});var jp=require("node:net"),ooe=require("node:tls"),s3e=I(),a3e=roe(),u3e=noe();function Hp(...t){s3e.logger.log("[https-proxy-agent]",...t)}var PR=class extends a3e.Agent{static __initStatic(){this.protocols=["http","https"]}constructor(e,r){super(r),this.options={},this.proxy=typeof e=="string"?new URL(e):e,this.proxyHeaders=o3e(i3e([r,"optionalAccess",i=>i.headers]),()=>({})),Hp("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ioe(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;if(n.protocol==="https:"){Hp("Creating `tls.Socket`: %o",this.connectOpts);let _=this.connectOpts.servername||this.connectOpts.host;o=ooe.connect({...this.connectOpts,servername:_&&jp.isIP(_)?void 0:_})}else Hp("Creating `net.Socket`: %o",this.connectOpts),o=jp.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},s=jp.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${s}:${r.port} HTTP/1.1\r
|
|
37
|
+
`;if(n.username||n.password){let _=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(_).toString("base64")}`}i.Host=`${s}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let _ of Object.keys(i))a+=`${_}: ${i[_]}\r
|
|
38
|
+
`;let u=u3e.parseProxyResponse(o);o.write(`${a}\r
|
|
39
|
+
`);let{connect:l,buffered:d}=await u;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",c3e),r.secureEndpoint){Hp("Upgrading socket connection to TLS");let _=r.servername||r.host;return ooe.connect({...ioe(r,"host","path","port"),socket:o,servername:jp.isIP(_)?void 0:_})}return o}o.destroy();let p=new jp.Socket({writable:!1});return p.readable=!0,e.once("socket",_=>{Hp("Replaying proxy buffer for failed request"),_.push(d),_.push(null)}),p}};PR.__initStatic();function c3e(t){t.resume()}function ioe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o1.HttpsProxyAgent=PR});var u1=c(a1=>{var{_nullishCoalesce:i1}=I();Object.defineProperty(a1,"__esModule",{value:!0});var l3e=require("node:http"),d3e=require("node:https"),p3e=require("node:stream"),_3e=require("node:zlib"),s1=k(),f3e=I(),g3e=soe(),E3e=1024*32;function h3e(t){return new p3e.Readable({read(){this.push(t),this.push(null)}})}function m3e(t){let e;try{e=new URL(t.url)}catch{return f3e.consoleSandbox(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),s1.createTransport(t,()=>Promise.resolve({}))}let r=e.protocol==="https:",n=T3e(e,t.proxy||(r?process.env.https_proxy:void 0)||process.env.http_proxy),o=r?d3e:l3e,i=t.keepAlive===void 0?!1:t.keepAlive,s=n?new g3e.HttpsProxyAgent(n):new o.Agent({keepAlive:i,maxSockets:30,timeout:2e3}),a=S3e(t,i1(t.httpModule,()=>o),s);return s1.createTransport(t,a)}function T3e(t,e){let{no_proxy:r}=process.env;if(!(r&&r.split(",").some(o=>t.host.endsWith(o)||t.hostname.endsWith(o))))return e}function S3e(t,e,r){let{hostname:n,pathname:o,port:i,protocol:s,search:a}=new URL(t.url);return function(l){return new Promise((d,p)=>{s1.suppressTracing(()=>{let _=h3e(l.body),f={...t.headers};l.body.length>E3e&&(f["content-encoding"]="gzip",_=_.pipe(_3e.createGzip()));let g=e.request({method:"POST",agent:r,headers:f,hostname:n,path:`${o}${a}`,port:i,protocol:s,ca:t.caCerts},E=>{E.on("data",()=>{}),E.on("end",()=>{}),E.setEncoding("utf8");let T=i1(E.headers["retry-after"],()=>null),y=i1(E.headers["x-sentry-rate-limits"],()=>null);d({statusCode:E.statusCode,headers:{"retry-after":T,"x-sentry-rate-limits":Array.isArray(y)?y[0]||null:y}})});g.on("error",p),_.pipe(g)})})}}a1.makeNodeTransport=m3e});var coe=c(Fp=>{Object.defineProperty(Fp,"__esModule",{value:!0});var aoe=new Set(["false","f","n","no","off","0"]),uoe=new Set(["true","t","y","yes","on","1"]);function A3e(t,e){let r=String(t).toLowerCase();return aoe.has(r)?!1:uoe.has(r)?!0:e&&e.strict?null:!!t}Fp.FALSY_ENV_VALUES=aoe;Fp.TRUTHY_ENV_VALUES=uoe;Fp.envToBool=A3e});var l1=c(c1=>{Object.defineProperty(c1,"__esModule",{value:!0});var loe=require("node:path"),R3e=I();function doe(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function O3e(t=process.argv[1]?R3e.dirname(process.argv[1]):process.cwd(),e=loe.sep==="\\"){let r=e?doe(t):t;return n=>{if(!n)return;let o=e?doe(n):n,{dir:i,base:s,ext:a}=loe.posix.parse(o);(a===".js"||a===".mjs"||a===".cjs")&&(s=s.slice(0,a.length*-1)),i||(i=".");let u=i.lastIndexOf("/node_modules");if(u>-1)return`${i.slice(u+14).replace(/\//g,".")}:${s}`;if(i.startsWith(r)){let l=i.slice(r.length+1).replace(/\//g,".");return l&&(l+=":"),l+=s,l}return s}}c1.createGetModuleFromFilename=O3e});var d1=c(yR=>{Object.defineProperty(yR,"__esModule",{value:!0});var kp=I(),I3e=l1();function b3e(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;if(kp.GLOBAL_OBJ.SENTRY_RELEASE&&kp.GLOBAL_OBJ.SENTRY_RELEASE.id)return kp.GLOBAL_OBJ.SENTRY_RELEASE.id;let e=process.env.GITHUB_SHA||process.env.CI_MERGE_REQUEST_SOURCE_BRANCH_SHA||process.env.CI_BUILD_REF||process.env.CI_COMMIT_SHA||process.env.BITBUCKET_COMMIT,r=process.env.APPVEYOR_PULL_REQUEST_HEAD_COMMIT||process.env.APPVEYOR_REPO_COMMIT||process.env.CODEBUILD_RESOLVED_SOURCE_VERSION||process.env.AWS_COMMIT_ID||process.env.BUILD_SOURCEVERSION||process.env.GIT_CLONE_COMMIT_HASH||process.env.BUDDY_EXECUTION_REVISION||process.env.BUILDKITE_COMMIT||process.env.CIRCLE_SHA1||process.env.CIRRUS_CHANGE_IN_REPO||process.env.CF_REVISION||process.env.CM_COMMIT||process.env.CF_PAGES_COMMIT_SHA||process.env.DRONE_COMMIT_SHA||process.env.FC_GIT_COMMIT_SHA||process.env.HEROKU_TEST_RUN_COMMIT_VERSION||process.env.HEROKU_SLUG_COMMIT||process.env.RENDER_GIT_COMMIT||process.env.SEMAPHORE_GIT_SHA||process.env.TRAVIS_PULL_REQUEST_SHA||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA,n=process.env.CI_COMMIT_ID||process.env.SOURCE_COMMIT||process.env.SOURCE_VERSION||process.env.GIT_COMMIT||process.env.COMMIT_REF||process.env.BUILD_VCS_NUMBER||process.env.CI_COMMIT_SHA;return e||r||n||t}var P3e=kp.createStackParser(kp.nodeStackLineParser(I3e.createGetModuleFromFilename()));yR.defaultStackParser=P3e;yR.getSentryRelease=b3e});var g1=c(f1=>{var{_nullishCoalesce:y3e,_optionalChain:v3e}=I();Object.defineProperty(f1,"__esModule",{value:!0});var N3e=require("node:os"),C3e=(P(),m(b)),p1=k(),poe=I(),_oe=require("worker_threads"),M3e=Rn(),L3e=6e4,_1=class extends p1.ServerRuntimeClient{constructor(e){let r={...e,platform:"node",runtime:{name:"node",version:global.process.version},serverName:e.serverName||global.process.env.SENTRY_NAME||N3e.hostname()};p1.applySdkMetadata(r,"node"),poe.logger.log(`Initializing Sentry: process: ${process.pid}, thread: ${_oe.isMainThread?"main":`worker-${_oe.threadId}`}.`),super(r)}get tracer(){if(this._tracer)return this._tracer;let e="@sentry/node",r=p1.SDK_VERSION,n=C3e.trace.getTracer(e,r);return this._tracer=n,n}async flush(e){let r=this.traceProvider,n=v3e([r,"optionalAccess",o=>o.activeSpanProcessor]);return n&&await n.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(e)}close(e){return this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),super.close(e)}startClientReportTracking(){let e=this.getOptions();e.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes()},this._clientReportInterval=setInterval(()=>{M3e.DEBUG_BUILD&&poe.logger.log("Flushing client reports based on interval."),this._flushOutcomes()},y3e(e.clientReportFlushInterval,()=>L3e)).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener))}};f1.NodeClient=_1});var T1=c(al=>{var{_optionalChain:D3e}=I();Object.defineProperty(al,"__esModule",{value:!0});var G3e=require("module"),E1=(P(),m(b)),U3e=BN(),x3e=wd(),h1=($(),m(J)),w3e=k(),m1=ao(),ea=I(),V3e=Rr(),B3e=IR(),q3e=QG(),j3e=wu(),sl=typeof document<"u"?document.currentScript:null;function H3e(t){t.getOptions().debug&&Eoe();let e=goe(t);t.traceProvider=e}function F3e(t){if(D3e([t,"optionalAccess",e=>e.onlyIncludeInstrumentedModules])){let{addHookMessagePort:e}=V3e.createAddHookMessageChannel();return{data:{addHookMessagePort:e,include:t.include||[]},transferList:[e]}}return{data:t}}function foe(t){let[e=0,r=0]=process.versions.node.split(".").map(Number);if(e>=22||e===20&&r>=6||e===18&&r>=19){let n=typeof(typeof document>"u"?require("url").pathToFileURL(__filename).href:sl&&sl.tagName.toUpperCase()==="SCRIPT"&&sl.src||new URL("sdk/initOtel.js",document.baseURI).href)<"u"?typeof document>"u"?require("url").pathToFileURL(__filename).href:sl&&sl.tagName.toUpperCase()==="SCRIPT"&&sl.src||new URL("sdk/initOtel.js",document.baseURI).href:void 0;if(!ea.GLOBAL_OBJ._sentryEsmLoaderHookRegistered&&n)try{G3e.default.register("import-in-the-middle/hook.mjs",n,F3e(t)),ea.GLOBAL_OBJ._sentryEsmLoaderHookRegistered=!0}catch(o){ea.logger.warn("Failed to register ESM hook",o)}}else ea.consoleSandbox(()=>{console.warn('[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.')})}function k3e(t={}){let{debug:e}=t;e&&(ea.logger.enable(),Eoe()),j3e.isCjs()||foe(t.registerEsmLoaderHooks),W3e(t.integrations).forEach(r=>{r(),e&&ea.logger.log(`[Sentry] Preloaded ${r.id} instrumentation`)})}function W3e(t){let e=B3e.getOpenTelemetryInstrumentationToPreload();return t?e.filter(r=>t.includes(r.id)):e}function goe(t){let e=new x3e.BasicTracerProvider({sampler:new m1.SentrySampler(t),resource:new U3e.Resource({[h1.ATTR_SERVICE_NAME]:"node",[h1.SEMRESATTRS_SERVICE_NAMESPACE]:"sentry",[h1.ATTR_SERVICE_VERSION]:w3e.SDK_VERSION}),forceFlushTimeoutMillis:500});return e.addSpanProcessor(new m1.SentrySpanProcessor({timeout:t.getOptions().maxSpanWaitDuration})),e.register({propagator:new m1.SentryPropagator,contextManager:new q3e.SentryContextManager}),e}function Eoe(){let t=new Proxy(ea.logger,{get(e,r,n){return Reflect.get(e,r==="verbose"?"debug":r,n)}});E1.diag.disable(),E1.diag.setLogger(t,E1.DiagLogLevel.DEBUG)}al.initOpenTelemetry=H3e;al.maybeInitializeEsmLoader=foe;al.preloadOpenTelemetry=k3e;al.setupOtel=goe});var Poe=c(ta=>{Object.defineProperty(ta,"__esModule",{value:!0});var sr=k(),vR=ao(),Po=I(),Toe=Rn(),Y3e=TM(),K3e=SM(),X3e=OM(),Z3e=om(),z3e=CM(),J3e=GM(),$3e=KC(),Q3e=BM(),e4e=jM(),t4e=KG(),hoe=GG(),r4e=IR(),n4e=u1(),S1=wu(),Soe=coe(),Aoe=d1(),o4e=g1(),moe=T1();function i4e(){return S1.isCjs()?[J3e.modulesIntegration()]:[]}function Roe(){return[sr.inboundFiltersIntegration(),sr.functionToStringIntegration(),sr.linkedErrorsIntegration(),sr.requestDataIntegration(),Y3e.consoleIntegration(),Z3e.httpIntegration(),$3e.nativeNodeFetchIntegration(),Q3e.onUncaughtExceptionIntegration(),e4e.onUnhandledRejectionIntegration(),X3e.contextLinesIntegration(),z3e.localVariablesIntegration(),K3e.nodeContextIntegration(),t4e.processThreadBreadcrumbIntegration(),...i4e()]}function Ooe(t){return[...Roe(),...s4e(t)?r4e.getAutoPerformanceIntegrations():[]]}function s4e(t){return sr.hasTracingEnabled(t)?t.enableTracing||t.tracesSampleRate!=null||"tracesSampler"in t:!1}function a4e(t={}){return Ioe(t,Ooe)}function u4e(t={}){return Ioe(t,()=>[])}function Ioe(t={},e){let r=c4e(t,e);r.debug===!0&&(Toe.DEBUG_BUILD?Po.logger.enable():Po.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),!S1.isCjs()&&r.registerEsmLoaderHooks!==!1&&moe.maybeInitializeEsmLoader(r.registerEsmLoaderHooks===!0?void 0:r.registerEsmLoaderHooks),vR.setOpenTelemetryContextAsyncContextStrategy(),sr.getCurrentScope().update(r.initialScope),r.spotlight&&!r.integrations.some(({name:i})=>i===hoe.INTEGRATION_NAME)&&r.integrations.push(hoe.spotlightIntegration({sidecarUrl:typeof r.spotlight=="string"?r.spotlight:void 0}));let o=new o4e.NodeClient(r);return sr.getCurrentScope().setClient(o),o.init(),Po.logger.log(`Running in ${S1.isCjs()?"CommonJS":"ESM"} mode.`),r.autoSessionTracking&&_4e(),o.startClientReportTracking(),p4e(),r.skipOpenTelemetrySetup||(moe.initOpenTelemetry(o),boe()),vR.enhanceDscWithOpenTelemetryRootSpanName(o),vR.setupEventContextTrace(o),o}function boe(){if(!Toe.DEBUG_BUILD)return;let t=vR.openTelemetrySetupCheck(),e=["SentryContextManager","SentryPropagator"];sr.hasTracingEnabled()&&e.push("SentrySpanProcessor");for(let r of e)t.includes(r)||Po.logger.error(`You have to set up the ${r}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);t.includes("SentrySampler")||Po.logger.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.")}function c4e(t,e){let r=l4e(t.release),n=typeof r!="string"?!1:t.autoSessionTracking===void 0?!0:t.autoSessionTracking;if(t.spotlight==null){let l=Soe.envToBool(process.env.SENTRY_SPOTLIGHT,{strict:!0});l==null?t.spotlight=process.env.SENTRY_SPOTLIGHT:t.spotlight=l}let o=d4e(t.tracesSampleRate),i=Po.dropUndefinedKeys({transport:n4e.makeNodeTransport,dsn:process.env.SENTRY_DSN,environment:process.env.SENTRY_ENVIRONMENT,sendClientReports:!0}),s=Po.dropUndefinedKeys({release:r,autoSessionTracking:n,tracesSampleRate:o}),a={...i,...t,...s};return t.defaultIntegrations===void 0&&(t.defaultIntegrations=e(a)),{...a,stackParser:Po.stackParserFromStackParserOptions(t.stackParser||Aoe.defaultStackParser),integrations:sr.getIntegrationsToSetup({defaultIntegrations:t.defaultIntegrations,integrations:t.integrations})}}function l4e(t){if(t!==void 0)return t;let e=Aoe.getSentryRelease();if(e!==void 0)return e}function d4e(t){if(t!==void 0)return t;let e=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!e)return;let r=parseFloat(e);return isFinite(r)?r:void 0}function p4e(){if(Soe.envToBool(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let t=process.env.SENTRY_TRACE,e=process.env.SENTRY_BAGGAGE,r=Po.propagationContextFromHeaders(t,e);sr.getCurrentScope().setPropagationContext(r)}}function _4e(){let t=sr.getClient();t&&t.getOptions().autoSessionTracking&&t.initSessionFlusher(),sr.startSession(),process.on("beforeExit",()=>{let e=sr.getIsolationScope().getSession();e&&e.status!=="ok"&&sr.endSession()})}ta.getDefaultIntegrations=Ooe;ta.getDefaultIntegrationsWithoutPerformance=Roe;ta.init=a4e;ta.initWithoutDefaultIntegrations=u4e;ta.validateOpenTelemetrySetup=boe});var NR=c(A1=>{Object.defineProperty(A1,"__esModule",{value:!0});var f4e=[["january","1"],["february","2"],["march","3"],["april","4"],["may","5"],["june","6"],["july","7"],["august","8"],["september","9"],["october","10"],["november","11"],["december","12"],["jan","1"],["feb","2"],["mar","3"],["apr","4"],["may","5"],["jun","6"],["jul","7"],["aug","8"],["sep","9"],["oct","10"],["nov","11"],["dec","12"],["sunday","0"],["monday","1"],["tuesday","2"],["wednesday","3"],["thursday","4"],["friday","5"],["saturday","6"],["sun","0"],["mon","1"],["tue","2"],["wed","3"],["thu","4"],["fri","5"],["sat","6"]];function g4e(t){return f4e.reduce((e,[r,n])=>e.replace(new RegExp(r,"gi"),n),t)}A1.replaceCronNames=g4e});var Noe=c(R1=>{Object.defineProperty(R1,"__esModule",{value:!0});var CR=k(),yoe=NR(),voe="Automatic instrumentation of CronJob only supports crontab string";function E4e(t,e){let r=!1;return new Proxy(t,{construct(n,o){let[i,s,a,u,l,...d]=o;if(typeof i!="string")throw new Error(voe);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let p=yoe.replaceCronNames(i);async function _(f,g){return CR.withMonitor(e,async()=>{try{await s(f,g)}catch(E){throw CR.captureException(E),E}},{schedule:{type:"crontab",value:p},timezone:l||void 0})}return new n(i,_,a,u,l,...d)},get(n,o){return o==="from"?i=>{let{cronTime:s,onTick:a,timeZone:u}=i;if(typeof s!="string")throw new Error(voe);if(r)throw new Error(`A job named '${e}' has already been scheduled`);r=!0;let l=yoe.replaceCronNames(s);return i.onTick=async(d,p)=>CR.withMonitor(e,async()=>{try{await a(d,p)}catch(_){throw CR.captureException(_),_}},{schedule:{type:"crontab",value:l},timezone:u||void 0}),n.from(i)}:n[o]}})}R1.instrumentCron=E4e});var Loe=c(O1=>{var{_optionalChain:Coe}=I();Object.defineProperty(O1,"__esModule",{value:!0});var Moe=k(),h4e=NR();function m4e(t){return new Proxy(t,{get(e,r){return r==="schedule"&&e.schedule?new Proxy(e.schedule,{apply(n,o,i){let[s,a,u]=i;if(!Coe([u,"optionalAccess",d=>d.name]))throw new Error('Missing "name" for scheduled job. A name is required for Sentry check-in monitoring.');async function l(){return Moe.withMonitor(u.name,async()=>{try{return await a()}catch(d){throw Moe.captureException(d),d}},{schedule:{type:"crontab",value:h4e.replaceCronNames(s)},timezone:Coe([u,"optionalAccess",d=>d.timezone])})}return n.apply(o,[s,l,u])}}):e[r]}})}O1.instrumentNodeCron=m4e});var Doe=c(I1=>{var{_optionalChain:T4e}=I();Object.defineProperty(I1,"__esModule",{value:!0});var S4e=k(),A4e=NR();function R4e(t){return new Proxy(t,{get(e,r){return r==="scheduleJob"?new Proxy(e.scheduleJob,{apply(n,o,i){let[s,a,u]=i;if(typeof s!="string"||typeof a!="string"||typeof u!="function")throw new Error("Automatic instrumentation of 'node-schedule' requires the first parameter of 'scheduleJob' to be a job name string and the second parameter to be a crontab string");let l=s,d=a;async function p(){return S4e.withMonitor(l,async()=>{await T4e([u,"optionalCall",_=>_()])},{schedule:{type:"crontab",value:A4e.replaceCronNames(d)}})}return n.apply(o,[l,d,p])}}):e[r]}})}I1.instrumentNodeSchedule=R4e});var Goe=c(b1=>{Object.defineProperty(b1,"__esModule",{value:!0});var O4e=Noe(),I4e=Loe(),b4e=Doe(),P4e={instrumentCron:O4e.instrumentCron,instrumentNodeCron:I4e.instrumentNodeCron,instrumentNodeSchedule:b4e.instrumentNodeSchedule};b1.cron=P4e});var Hoe=c(A=>{Object.defineProperty(A,"__esModule",{value:!0});var y4e=om(),v4e=KC(),N4e=vJ(),C4e=TM(),M4e=SM(),L4e=OM(),D4e=CM(),G4e=GM(),U4e=BM(),x4e=jM(),w4e=c$(),P1=EL(),Uoe=qL(),V4e=d0(),B4e=L0(),q4e=G0(),j4e=tD(),H4e=iD(),F4e=uD(),k4e=pD(),W4e=hD(),xoe=ID(),Y4e=CD(),K4e=$te(),woe=sG(),Voe=lG(),Boe=DG(),X4e=GG(),Z4e=VG(),z4e=Ane(),J4e=WG(),$4e=KG(),Q4e=QG(),eJe=be(),Wp=Poe(),qoe=T1(),tJe=IR(),joe=d1(),rJe=l1(),nJe=u1(),oJe=g1(),iJe=Goe(),y1=I(),v1=ao(),U=k();A.httpIntegration=y4e.httpIntegration;A.nativeNodeFetchIntegration=v4e.nativeNodeFetchIntegration;A.fsIntegration=N4e.fsIntegration;A.consoleIntegration=C4e.consoleIntegration;A.nodeContextIntegration=M4e.nodeContextIntegration;A.contextLinesIntegration=L4e.contextLinesIntegration;A.localVariablesIntegration=D4e.localVariablesIntegration;A.modulesIntegration=G4e.modulesIntegration;A.onUncaughtExceptionIntegration=U4e.onUncaughtExceptionIntegration;A.onUnhandledRejectionIntegration=x4e.onUnhandledRejectionIntegration;A.anrIntegration=w4e.anrIntegration;A.expressErrorHandler=P1.expressErrorHandler;A.expressIntegration=P1.expressIntegration;A.setupExpressErrorHandler=P1.setupExpressErrorHandler;A.fastifyIntegration=Uoe.fastifyIntegration;A.setupFastifyErrorHandler=Uoe.setupFastifyErrorHandler;A.graphqlIntegration=V4e.graphqlIntegration;A.kafkaIntegration=B4e.kafkaIntegration;A.lruMemoizerIntegration=q4e.lruMemoizerIntegration;A.mongoIntegration=j4e.mongoIntegration;A.mongooseIntegration=H4e.mongooseIntegration;A.mysqlIntegration=F4e.mysqlIntegration;A.mysql2Integration=k4e.mysql2Integration;A.redisIntegration=W4e.redisIntegration;A.nestIntegration=xoe.nestIntegration;A.setupNestErrorHandler=xoe.setupNestErrorHandler;A.postgresIntegration=Y4e.postgresIntegration;A.prismaIntegration=K4e.prismaIntegration;A.hapiIntegration=woe.hapiIntegration;A.setupHapiErrorHandler=woe.setupHapiErrorHandler;A.koaIntegration=Voe.koaIntegration;A.setupKoaErrorHandler=Voe.setupKoaErrorHandler;A.connectIntegration=Boe.connectIntegration;A.setupConnectErrorHandler=Boe.setupConnectErrorHandler;A.spotlightIntegration=X4e.spotlightIntegration;A.genericPoolIntegration=Z4e.genericPoolIntegration;A.dataloaderIntegration=z4e.dataloaderIntegration;A.amqplibIntegration=J4e.amqplibIntegration;A.processThreadBreadcrumbIntegration=$4e.processThreadBreadcrumbIntegration;A.SentryContextManager=Q4e.SentryContextManager;A.generateInstrumentOnce=eJe.generateInstrumentOnce;A.getDefaultIntegrations=Wp.getDefaultIntegrations;A.getDefaultIntegrationsWithoutPerformance=Wp.getDefaultIntegrationsWithoutPerformance;A.init=Wp.init;A.initWithoutDefaultIntegrations=Wp.initWithoutDefaultIntegrations;A.validateOpenTelemetrySetup=Wp.validateOpenTelemetrySetup;A.initOpenTelemetry=qoe.initOpenTelemetry;A.preloadOpenTelemetry=qoe.preloadOpenTelemetry;A.getAutoPerformanceIntegrations=tJe.getAutoPerformanceIntegrations;A.defaultStackParser=joe.defaultStackParser;A.getSentryRelease=joe.getSentryRelease;A.createGetModuleFromFilename=rJe.createGetModuleFromFilename;A.makeNodeTransport=nJe.makeNodeTransport;A.NodeClient=oJe.NodeClient;A.cron=iJe.cron;A.DEFAULT_USER_INCLUDES=y1.DEFAULT_USER_INCLUDES;A.addRequestDataToEvent=y1.addRequestDataToEvent;A.extractRequestData=y1.extractRequestData;A.addOpenTelemetryInstrumentation=v1.addOpenTelemetryInstrumentation;A.continueTrace=v1.continueTrace;A.setNodeAsyncContextStrategy=v1.setOpenTelemetryContextAsyncContextStrategy;A.SDK_VERSION=U.SDK_VERSION;A.SEMANTIC_ATTRIBUTE_SENTRY_OP=U.SEMANTIC_ATTRIBUTE_SENTRY_OP;A.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=U.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;A.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=U.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;A.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=U.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;A.Scope=U.Scope;A.addBreadcrumb=U.addBreadcrumb;A.addEventProcessor=U.addEventProcessor;A.addIntegration=U.addIntegration;A.captureCheckIn=U.captureCheckIn;A.captureConsoleIntegration=U.captureConsoleIntegration;A.captureEvent=U.captureEvent;A.captureException=U.captureException;A.captureFeedback=U.captureFeedback;A.captureMessage=U.captureMessage;A.captureSession=U.captureSession;A.close=U.close;A.createTransport=U.createTransport;A.debugIntegration=U.debugIntegration;A.dedupeIntegration=U.dedupeIntegration;A.endSession=U.endSession;A.extraErrorDataIntegration=U.extraErrorDataIntegration;A.flush=U.flush;A.functionToStringIntegration=U.functionToStringIntegration;A.getActiveSpan=U.getActiveSpan;A.getClient=U.getClient;A.getCurrentHub=U.getCurrentHub;A.getCurrentScope=U.getCurrentScope;A.getGlobalScope=U.getGlobalScope;A.getIsolationScope=U.getIsolationScope;A.getRootSpan=U.getRootSpan;A.getSpanDescendants=U.getSpanDescendants;A.getSpanStatusFromHttpCode=U.getSpanStatusFromHttpCode;A.getTraceData=U.getTraceData;A.getTraceMetaTags=U.getTraceMetaTags;A.inboundFiltersIntegration=U.inboundFiltersIntegration;A.isInitialized=U.isInitialized;A.lastEventId=U.lastEventId;A.linkedErrorsIntegration=U.linkedErrorsIntegration;A.metrics=U.metricsDefault;A.parameterize=U.parameterize;A.profiler=U.profiler;A.requestDataIntegration=U.requestDataIntegration;A.rewriteFramesIntegration=U.rewriteFramesIntegration;A.sessionTimingIntegration=U.sessionTimingIntegration;A.setContext=U.setContext;A.setCurrentClient=U.setCurrentClient;A.setExtra=U.setExtra;A.setExtras=U.setExtras;A.setHttpStatus=U.setHttpStatus;A.setMeasurement=U.setMeasurement;A.setTag=U.setTag;A.setTags=U.setTags;A.setUser=U.setUser;A.spanToBaggageHeader=U.spanToBaggageHeader;A.spanToJSON=U.spanToJSON;A.spanToTraceHeader=U.spanToTraceHeader;A.startInactiveSpan=U.startInactiveSpan;A.startNewTrace=U.startNewTrace;A.startSession=U.startSession;A.startSpan=U.startSpan;A.startSpanManual=U.startSpanManual;A.suppressTracing=U.suppressTracing;A.trpcMiddleware=U.trpcMiddleware;A.withActiveSpan=U.withActiveSpan;A.withIsolationScope=U.withIsolationScope;A.withMonitor=U.withMonitor;A.withScope=U.withScope;A.zodErrorsIntegration=U.zodErrorsIntegration});var sJe=require("node:os");process.env.HOME||(process.env.HOME=sJe.tmpdir());var ul=Hoe(),Yp=require("homey"),N1=class t{_capturedMessages=[];_capturedExceptions=[];constructor({homey:e,options:r}){if(typeof e>"u")return t._error("Error: missing `homey` constructor parameter");if(!Yp.env)return t._error("Error: could not access `Homey.env`");if(typeof Yp.env.HOMEY_LOG_URL!="string")return t._error("Error: expected `HOMEY_LOG_URL` env variable, homey-log is disabled");let n=process.env.DEBUG==="1"&&!t._isLogForced();n&&t._log("App is running in debug mode, not enabling Sentry logging"),this._manifest=Yp.manifest,this._homeyVersion=e.version,this._managerCloud=e.cloud,this._homeyPlatform=e.platform,this._homeyPlatformVersion=e.platformVersion,this.init(Yp.env.HOMEY_LOG_URL,{enabled:!n,...r})}init(e,r){return ul.initWithoutDefaultIntegrations({dsn:e,integrations:[...ul.getDefaultIntegrationsWithoutPerformance()],...r}),this.setTags({appId:this._manifest.id,appVersion:this._manifest.version,homeyVersion:this._homeyVersion,homeyPlatform:this._homeyPlatform,homeyPlatformVersion:this._homeyPlatformVersion}),this._managerCloud.getHomeyId().then(n=>this.setTags({homeyId:n})).catch(n=>t._error("Error: could not get `homeyId`",n)),t._log(`App ${this._manifest.id} v${this._manifest.version} logging on Homey v${this._homeyVersion}...`),this}setTags(e){return ul.setTags(e),this}setUser(e){return ul.setUser(e),this}async captureMessage(e){if(t._log("captureMessage:",e),this._capturedMessages.indexOf(e)>-1){t._log("Prevented sending a duplicate message");return}return this._capturedMessages.push(e),new Promise((r,n)=>{try{r(ul.captureMessage(e))}catch(o){n(o)}})}async captureException(e){if(t._log("captureException:",e),this._capturedExceptions.indexOf(e)>-1){t._log("Prevented sending a duplicate log");return}return this._capturedExceptions.push(e),new Promise((r,n)=>{try{r(ul.captureException(e))}catch(o){n(o)}})}static _log(){console.log.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _error(){console.error.bind(null,t._logTime(),"[homey-log]").apply(null,arguments)}static _logTime(){return`\x1B[35m${new Date().toISOString()}\x1B[0m`}static _isLogForced(){switch(Yp.env.HOMEY_LOG_FORCE){case"1":case"true":return!0;default:return!1}}};module.exports={Log:N1};
|