1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ff77a89b-1b44-4d92-bcc6-90941536a0af",t._sentryDebugIdIdentifier="sentry-dbid-ff77a89b-1b44-4d92-bcc6-90941536a0af")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42082],{8504:(t,e,n)=>{n.d(e,{C:()=>d,D:()=>a,T:()=>r,U:()=>c,V:()=>l,b:()=>p,u:()=>s,y:()=>u});var r,o,i=n(15516);function a(t,e){return e in t}function s(t,e,n,o){var i=void 0,a=void 0;e in n&&"number"==typeof n[e]&&(i=n[e]);var s=r.FETCH_START;if(s in n&&"number"==typeof n[s]&&(a=n[s]),void 0!==i&&void 0!==a&&i>=a)return t.addEvent(e,i),t}function u(t,e,n){void 0===n&&(n=!1),n||(s(t,r.FETCH_START,e),s(t,r.DOMAIN_LOOKUP_START,e),s(t,r.DOMAIN_LOOKUP_END,e),s(t,r.CONNECT_START,e),"name"in e&&e.name.startsWith("https:")&&s(t,r.SECURE_CONNECTION_START,e),s(t,r.CONNECT_END,e),s(t,r.REQUEST_START,e),s(t,r.RESPONSE_START,e),s(t,r.RESPONSE_END,e));var o=e[r.ENCODED_BODY_SIZE];void 0!==o&&t.setAttribute(i.T,o);var a=e[r.DECODED_BODY_SIZE];void 0!==a&&o!==a&&t.setAttribute(i.b,a)}function c(t){return t.slice().sort(function(t,e){var n=t[r.FETCH_START],o=e[r.FETCH_START];return n>o?1:n<o?-1:0})}function f(){return"u">typeof location?location.origin:void 0}function l(t,e,n,o,a,s){void 0===a&&(a=new WeakSet);var u,l,p,h,y,T,_,E,v,S=d(t),g=(u=t=S.toString(),l=e,p=n,h=o,y=a,T=s,_=(0,i.c)(l),E=(0,i.c)(p),(v=h.filter(function(t){var e=(0,i.c)((0,i.w)(t[r.FETCH_START])),n=(0,i.c)((0,i.w)(t[r.RESPONSE_END]));return t.initiatorType.toLowerCase()===T&&t.name===u&&e>=_&&n<=E})).length>0&&(v=v.filter(function(t){return!y.has(t)})),v);if(0===g.length)return{mainRequest:void 0};if(1===g.length)return{mainRequest:g[0]};var b=c(g);if(S.origin===f()||!(b.length>1))return{mainRequest:g[0]};var m=b[0],R=function(t,e,n){for(var o,a=(0,i.c)(n),s=(0,i.c)((0,i.w)(e)),u=t[1],c=t.length,f=1;f<c;f++){var l=t[f],d=(0,i.c)((0,i.w)(l[r.FETCH_START])),p=a-(0,i.c)((0,i.w)(l[r.RESPONSE_END]));d>=s&&(!o||p<o)&&(o=p,u=l)}return u}(b,m[r.RESPONSE_END],n),N=m[r.RESPONSE_END];return R[r.FETCH_START]<N&&(R=m,m=void 0),{corsPreFlightRequest:m,mainRequest:R}}function d(t){if("function"==typeof URL)return new URL(t,"u">typeof document?document.baseURI:"u">typeof location?location.href:void 0);var e=(o||(o=document.createElement("a")),o);return e.href=t,e}function p(t,e){var n=e||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),d(t).origin===f()||n.some(function(e){return(0,i.g)(t,e)})}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(r||(r={}))},42082:(t,e,n)=>{n.r(e),n.d(e,{FetchInstrumentation:()=>m});var r=n(88859),o=n(15516),i=n(46961),a=n(8504),s=n(62963),u=n(95704);!function(t){t.COMPONENT="component",t.HTTP_ERROR_NAME="http.error_name",t.HTTP_STATUS_TEXT="http.status_text"}(T||(T={}));var c=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},f=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=r.r.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[0]instanceof URL||"string"==typeof t[0]){var n,r=t[1];if(!r?.body)return Promise.resolve();if(!(r.body instanceof ReadableStream)){return Promise.resolve((n=r.body,"u">typeof Document&&n instanceof Document?new XMLSerializer().serializeToString(document).length:n instanceof Blob?n.size:void 0!==n.byteLength?n.byteLength:n instanceof FormData?function(t){var e,n,r=0;try{for(var o=f(t.entries()),i=o.next();!i.done;i=o.next()){var a=l(i.value,2),s=a[0],u=a[1];r+=s.length,u instanceof Blob?r+=u.size:r+=u.length}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(n):n instanceof URLSearchParams?y(n.toString()):"string"==typeof n?y(n):void d.warn("unknown body type")))}var o=function(t){if(!t.pipeThrough)return d.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};var e,n=0,r=new Promise(function(t){e=t}),o=new TransformStream({start:function(){},transform:function(t,e){var r,o,i;return r=this,o=void 0,i=function(){var r;return c(this,function(o){switch(o.label){case 0:return[4,t];case 1:return r=o.sent(),n+=r.byteLength,e.enqueue(t),[2]}})},new(o||(o=Promise))(function(t,e){function n(t){try{s(i.next(t))}catch(t){e(t)}}function a(t){try{s(i.throw(t))}catch(t){e(t)}}function s(e){var r;e.done?t(e.value):((r=e.value)instanceof o?r:new o(function(t){t(r)})).then(n,a)}s((i=i.apply(r,[])).next())})},flush:function(){e(n)}});return{body:t.pipeThrough(o),length:r}}(r.body),i=o.body,a=o.length;return r.body=i,a}var s=t[0];return s?.body?s.clone().text().then(function(t){return y(t)}):Promise.resolve()}var h=new TextEncoder;function y(t){return h.encode(t).byteLength}var T,_,E="0.57.2",v=function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},g=function(t,e,n){if(2==arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},b="object"==typeof u&&(null==(_=u.release)?void 0:_.name)==="node",m=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,"@opentelemetry/instrumentation-fetch",E,e)||this;return n.component="fetch",n.version=E,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return v(e,t),e.prototype.init=function(){},e.prototype._addChildSpan=function(t,e){var n=this.tracer.startSpan("CORS Preflight",{startTime:e[a.T.FETCH_START]},s.j.setSpan(s.D.active(),t));(0,a.y)(n,e,this.getConfig().ignoreNetworkEvents),n.end(e[a.T.RESPONSE_END])},e.prototype._addFinalSpanAttributes=function(t,e){var n=(0,a.C)(e.url);t.setAttribute(o.J,e.status),null!=e.statusText&&t.setAttribute(T.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(o.q,n.host),t.setAttribute(o.Z,n.protocol.replace(":","")),"u">typeof navigator&&t.setAttribute(o.$,navigator.userAgent)},e.prototype._addHeaders=function(t,e){if(!(0,a.b)(e,this.getConfig().propagateTraceHeaderCorsUrls)){var n={};o.y.inject(s.D.active(),n),Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)o.y.inject(s.D.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Headers)o.y.inject(s.D.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Map)o.y.inject(s.D.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else{var n={};o.y.inject(s.D.active(),n),t.headers=Object.assign({},n,t.headers||{})}},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},e.prototype._createSpan=function(t,e){if(void 0===e&&(e={}),(0,o.a)(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");var n,r=(e.method||"GET").toUpperCase(),i="HTTP "+r;return this.tracer.startSpan(i,{kind:s.a.CLIENT,attributes:((n={})[T.COMPONENT]=this.moduleName,n[o.x]=r,n[o.k]=t,n)})},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n){var r=e.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=(0,a.V)(e.spanUrl,e.startTime,n,r,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var s=o.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s)),(0,a.y)(t,i,this.getConfig().ignoreNetworkEvents)}},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._endSpan=function(t,e,n){var r=this,i=(0,o.O)(Date.now()),a=(0,o.p)();this._addFinalSpanAttributes(t,n),setTimeout(function(){var n;null==(n=e.observer)||n.disconnect(),r._findResourceAndAddNetworkEvents(t,e,a),r._tasksCount--,r._clearResources(),t.end(i)},300)},e.prototype._patchConstructor=function(){var t=this;return function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,u=(0,a.C)(n[0]instanceof Request?n[0].url:String(n[0])).href,c=n[0]instanceof Request?n[0]:n[1]||{},f=t._createSpan(u,c);if(!f)return e.apply(this,n);var l=t._prepareSpanData(u);function d(e,n){t._applyAttributesAfterFetch(e,c,n),t._endSpan(e,l,{status:n.status||0,statusText:n.message,url:u})}function h(e,n){t._applyAttributesAfterFetch(e,c,n),n.status>=200&&n.status<400?t._endSpan(e,l,n):t._endSpan(e,l,{status:n.status,statusText:n.statusText,url:u})}function y(t,e,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then(function(e){e.done?h(t,o):s()},function(e){d(t,e)})};s()}else h(t,n)}finally{e(n)}}function T(t,e,n){try{d(t,n)}finally{e(n)}}return t.getConfig().measureRequestSize&&p.apply(void 0,g([],S(n),!1)).then(function(t){t&&f.setAttribute(o.E,t)}).catch(function(e){t._diag.warn("getFetchBodyLength",e)}),new Promise(function(n,r){return s.D.with(s.j.setSpan(s.D.active(),f),function(){return t._addHeaders(c,u),t._tasksCount++,e.apply(i,c instanceof Request?[c]:[u,c]).then(y.bind(i,f,n),T.bind(i,f,r))})})}}},e.prototype._applyAttributesAfterFetch=function(t,e,n){var r=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&(0,i.B)(function(){return o(t,e,n)},function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)})},e.prototype._prepareSpanData=function(t){var e=(0,o.p)(),n=[];if("function"!=typeof PerformanceObserver)return{entries:n,startTime:e,spanUrl:t};
1var r=new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"fetch"===e.initiatorType&&e.name===t&&n.push(e)})});return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:e,spanUrl:t}},e.prototype.enable=function(){if(b)return void this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");(0,i.U)(fetch)&&(this._unwrap(o.h,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(o.h,"fetch",this._patchConstructor())},e.prototype.disable=function(){b||(this._unwrap(o.h,"fetch"),this._usedResources=new WeakSet)},e}(i.W)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.