1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="96cc4845-d32e-49b8-98d6-6173644b79e7")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,540881,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return _},MiddlewareNotFoundError:function(){return I},MissingStaticPage:function(){return E},NormalizeError:function(){return h},PageNotFoundError:function(){return T},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return s},getDisplayName:function(){return l},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return p},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return S},stringifyError:function(){return y}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,p=e=>o.test(e);function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function S(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&d(n))return r;if(!r)throw Object.defineProperty(Error(`"${l(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class _ extends Error{}
2class h extends Error{}class T extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class E extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class I extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},134073,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return p},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});function i(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,s(e));else t.set(n,s(r));return t}function p(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},858884,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return p}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(744066)._(e.r(134073)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",a=e.pathname||"",o=e.hash||"",p=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),p&&"object"==typeof p&&(p=String(i.urlQueryToSearchParams(p)));let c=e.search||p&&`?${p}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${a}${c}${o}`}let p=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},278780,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=e.r(540881),a=e.r(200852);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,a.hasBasePath)(n.pathname)}catch(e){return!1}}},597628,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=e.r(481258)._(e.r(532957)).default.createContext({})},577407,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(481258)._(e.r(532957)).default.createContext(null)},99476,402217,494205,e=>{"use strict";var t=e.i(882158),n=e.i(900565),r=e.i(743960),a=e.i(346444),i=e.i(52132);function s(e,t=[]){return[e,t]}function o(e,t){let[n,r]=e;return[n,[...r,t]]}function p(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function u(e){let t=(0,r.getSentryCarrier)(i.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function c(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[u(r),e]:r.push("string"==typeof e?u(e):e)}for(let e of n){let[t,n]=e;if(i(` 3${JSON.stringify(t)} 4`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,a.normalize)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}function l(e){return[{type:"span"},e]}function d(e){let t="string"==typeof e.data?u(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}let S={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",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function f(e){return S[e]}function m(e){if(!e?.sdk)return;
4let{name:t,version:n}=e.sdk;return{name:t,version:n}}function g(e,t,r,a){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&a&&{dsn:(0,n.dsnToString)(a)},...i&&{trace:i}}}e.s(["addItemToEnvelope",()=>o,"createAttachmentEnvelopeItem",()=>d,"createEnvelope",()=>s,"createEventEnvelopeHeaders",()=>g,"createSpanEnvelopeItem",()=>l,"envelopeItemTypeToDataCategory",()=>f,"forEachEnvelopeItem",()=>p,"getSdkMetadataForEnvelopeHeader",()=>m,"serializeEnvelope",()=>c],402217);var _=e.i(788377),h=e.i(320433),T=e.i(619231);function E(e){h.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function I(e,t){if(!t?.length||!e.description)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if((0,T.isMatchingPattern)(e.description,r))return _.DEBUG_BUILD&&E(e),!0;continue}if(!r.name&&!r.op)continue;let t=!r.name||(0,T.isMatchingPattern)(e.description,r.name),a=!r.op||e.op&&(0,T.isMatchingPattern)(e.op,r.op);if(t&&a)return _.DEBUG_BUILD&&E(e),!0}return!1}function y(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}e.s(["reparentChildSpans",()=>y,"shouldIgnoreSpan",()=>I],494205);var b=e.i(867018);function v(e,t,r,a){let i=m(r);return s({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!a&&t&&{dsn:(0,n.dsnToString)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function N(e,t,n,r){let a=m(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);let o=g(e,a,r,t);return delete e.sdkProcessingMetadata,s(o,[[{type:i},e]])}function R(e,r){let a=(0,t.getDynamicSamplingContextFromSpan)(e[0]),i=r?.getDsn(),o=r?.getOptions().tunnel,p={sent_at:new Date().toISOString(),...!!a.trace_id&&!!a.public_key&&{trace:a},...!!o&&i&&{dsn:(0,n.dsnToString)(i)}},{beforeSendSpan:u,ignoreSpans:c}=r?.getOptions()||{},d=c?.length?e.filter(e=>!I((0,b.spanToJSON)(e),c)):e,S=e.length-d.length;S&&r?.recordDroppedEvent("before_send","span",S);let f=u?e=>{let t=(0,b.spanToJSON)(e),n=u(t);return n||((0,b.showSpanDropWarning)(),t)}:b.spanToJSON,m=[];for(let e of d){let t=f(e);t&&m.push(l(t))}return s(p,m)}e.s(["createEventEnvelope",()=>N,"createSessionEnvelope",()=>v,"createSpanEnvelope",()=>R],99476)},495910,e=>{"use strict";var t=e.i(458174),n=e.i(867018);class r{constructor(e={}){this._traceId=e.traceId||(0,t.generateTraceId)(),this._spanId=e.spanId||(0,t.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:n.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}e.s(["SentryNonRecordingSpan",()=>r])},406606,e=>{"use strict";var t=e.i(788377),n=e.i(320433),r=e.i(867018);function a(e){if(!t.DEBUG_BUILD)return;let{description:a="< unknown name >",op:i="< unknown op >",parent_span_id:s}=(0,r.spanToJSON)(e),{spanId:o}=e.spanContext(),p=(0,r.spanIsSampled)(e),u=(0,r.getRootSpan)(e),c=u===e,l=`[Tracing] Starting ${p?"sampled":"unsampled"} ${c?"root ":""}span`,d=[`op: ${i}`,`name: ${a}`,`ID: ${o}`];if(s&&d.push(`parent ID: ${s}`),!c){let{op:e,description:t}=(0,r.spanToJSON)(u);d.push(`root ID: ${u.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}n.debug.log(`${l} 5 ${d.join("\n ")}`)}function i(e){if(!t.DEBUG_BUILD)return;let{description:a="< unknown name >",op:i="< unknown op >"}=(0,r.spanToJSON)(e),{spanId:s}=e.spanContext(),o=(0,r.getRootSpan)(e)===e,p=`[Tracing] Finishing "${i}" ${o?"root ":""}span "${a}" with ID ${s}`;n.debug.log(p)}e.s(["logSpanEnd",()=>i,"logSpanStart",()=>a])},656367,845463,e=>{"use strict";var t=e.i(593525),n=e.i(788377),r=e.i(99476),a=e.i(12998),i=e.i(320433),s=e.i(458174),o=e.i(867018),p=e.i(472607),u=e.i(882158),c=e.i(406606);function l(e,t,r,s=(0,o.getActiveSpan)()){let p=s&&(0,o.getRootSpan)(s);p&&(n.DEBUG_BUILD&&i.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),p.addEvent(e,{[a.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[a.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function d(e){if(!e||0===e.length)return;let t={};
5return e.forEach(e=>{let n=e.attributes||{},r=n[a.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[a.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}e.s(["setMeasurement",()=>l,"timedEventsToMeasurements",()=>d],845463);var S=e.i(825811);class f{constructor(e={}){this._traceId=e.traceId||(0,s.generateTraceId)(),this._spanId=e.spanId||(0,s.generateSpanId)(),this._startTime=e.startTimestamp||(0,p.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[a.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._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?o.TRACE_FLAG_SAMPLED:o.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,o.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,o.spanTimeInputToSeconds)(e),(0,c.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,o.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[a.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[a.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:d(this._events),is_segment:this._isStandaloneSpan&&(0,o.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,o.getRootSpan)(this).spanContext().spanId:void 0,links:(0,o.convertSpanLinksForEnvelope)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){n.DEBUG_BUILD&&i.debug.log("[Tracing] Adding an event to span:",e);let a=m(t)?t:r||(0,p.timestampInSeconds)(),s=m(t)?{}:t||{},u={name:e,time:(0,o.spanTimeInputToSeconds)(a),attributes:s};return this._events.push(u),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,t.getClient)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,o.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let n=(0,t.getClient)();if(!n)return;let r=e[1];r&&0!==r.length?n.sendEnvelope(e):n.recordDroppedEvent("before_send","span")}((0,r.createSpanEnvelope)([this],e)):(n.DEBUG_BUILD&&i.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let a=this._convertSpanToTransaction();a&&((0,S.getCapturedScopesOnSpan)(this).scope||(0,t.getCurrentScope)()).captureEvent(a)}_convertSpanToTransaction(){if(!g((0,o.spanToJSON)(this)))return;this._name||(n.DEBUG_BUILD&&i.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,S.getCapturedScopesOnSpan)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let s=(0,o.getSpanDescendants)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof f&&t.isStandaloneSpan())}).map(e=>(0,o.spanToJSON)(e)).filter(g),p=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],s.forEach(e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let c={contexts:{trace:(0,o.spanToTransactionTraceContext)(this)},spans:s.length>1e3?s.sort((e,t)=>
5e.start_timestamp-t.start_timestamp).slice(0,1e3):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,u.getDynamicSamplingContextFromSpan)(this)},request:r,...p&&{transaction_info:{source:p}}},l=d(this._events);return l&&Object.keys(l).length&&(n.DEBUG_BUILD&&i.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),c.measurements=l),c}}function m(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function g(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}e.s(["SentrySpan",()=>f],656367)},380457,e=>{"use strict";var t=e.i(679367);function n(e,r,a=()=>{},i=()=>{}){var s,o,p,u;let c;try{c=e()}catch(e){throw r(e),a(),e}return s=c,o=r,p=a,u=i,(0,t.isThenable)(s)?s.then(e=>(p(),u(e),e),e=>{throw o(e),p(),e}):(p(),u(s),s)}e.s(["handleCallbackErrors",()=>n])},381232,e=>{"use strict";var t=e.i(788377),n=e.i(320433),r=e.i(514387),a=e.i(442370);function i(e,i,s){let o,p;if(!(0,r.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(o=e.tracesSampler({...i,inheritOrSampleWith:e=>"number"==typeof i.parentSampleRate?i.parentSampleRate:"boolean"==typeof i.parentSampled?Number(i.parentSampled):e}),p=!0):void 0!==i.parentSampled?o=i.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,p=!0);let u=(0,a.parseSampleRate)(o);if(void 0===u)return t.DEBUG_BUILD&&n.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!u)return t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,u,p];let c=s<u;return!c&&t.DEBUG_BUILD&&n.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[c,u,p]}e.s(["sampleSpan",()=>i])},437482,e=>{"use strict";var t=e.i(384056),n=e.i(743960),r=e.i(593525),a=e.i(788377),i=e.i(12998);e.i(103559);var s=e.i(320433),o=e.i(380457),p=e.i(514387),u=e.i(442370);e.i(458174);var c=e.i(752925),l=e.i(867018);e.i(27550);var d=e.i(882158),S=e.i(406606),f=e.i(381232),m=e.i(495910),g=e.i(656367),_=e.i(747848),h=e.i(825811);let T="__SENTRY_SUPPRESS_TRACING__";function E(e,t){let n=R();if(n.startSpan)return n.startSpan(e,t);let a=N(e),{forceTransaction:i,parentSpan:s,scope:p}=e,u=p?.clone();return(0,r.withScope)(u,()=>O(s)(()=>{let n=(0,r.getCurrentScope)(),p=C(n,s),u=e.onlyIfParent&&!p?new m.SentryNonRecordingSpan:v({parentSpan:p,spanArguments:a,forceTransaction:i,scope:n});return(0,c._setSpanForScope)(n,u),(0,o.handleCallbackErrors)(()=>t(u),()=>{let{status:e}=(0,l.spanToJSON)(u);u.isRecording()&&(!e||"ok"===e)&&u.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{u.end()})}))}function I(e,t){let n=R();if(n.startSpanManual)return n.startSpanManual(e,t);let a=N(e),{forceTransaction:i,parentSpan:s,scope:p}=e,u=p?.clone();return(0,r.withScope)(u,()=>O(s)(()=>{let n=(0,r.getCurrentScope)(),p=C(n,s),u=e.onlyIfParent&&!p?new m.SentryNonRecordingSpan:v({parentSpan:p,spanArguments:a,forceTransaction:i,scope:n});return(0,c._setSpanForScope)(n,u),(0,o.handleCallbackErrors)(()=>t(u,()=>u.end()),()=>{let{status:e}=(0,l.spanToJSON)(u);u.isRecording()&&(!e||"ok"===e)&&u.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function y(e){let t=R();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=N(e),{forceTransaction:a,parentSpan:i}=e;return(e.scope?t=>(0,r.withScope)(e.scope,t):void 0!==i?e=>b(i,e):e=>e())(()=>{let t=(0,r.getCurrentScope)(),s=C(t,i);return e.onlyIfParent&&!s?new m.SentryNonRecordingSpan:v({parentSpan:s,spanArguments:n,forceTransaction:a,scope:t})})}function b(e,t){let n=R();return n.withActiveSpan?n.withActiveSpan(e,t):(0,r.withScope)(n=>((0,c._setSpanForScope)(n,e||void 0),t(n)))}function v({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){let i;if(!(0,p.hasSpansEnabled)()){let r=new m.SentryNonRecordingSpan;if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,d.getDynamicSamplingContextFromSpan)(r)};(0,d.freezeDscOnSpan)(r,e)}return r}let s=(0,r.getIsolationScope)();if(e&&!n)i=function(e,t,n){let{spanId:a,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[T]&&(0,l.spanIsSampled)(e),o=s?new g.SentrySpan({...n,parentSpanId:a,traceId:i,sampled:s}):new m.SentryNonRecordingSpan({traceId:i});(0,l.addChildSpanToSpan)(e,o);let p=(0,r.getClient)();return p&&(p.emit("spanStart",o),n.endTimestamp&&p.emit("spanEnd",o)),o}(e,a,t),(0,l.addChildSpanToSpan)(e,i);else if(e){let n=(0,d.getDynamicSamplingContextFromSpan)(e),{traceId:r,spanId:s}=e.spanContext(),o=(0,l.spanIsSampled)(e);i=A({traceId:r,parentSpanId:s,...t},a,o),(0,d.freezeDscOnSpan)(i,n)}else{let{traceId:e,dsc:n,parentSpanId:r,sampled:o}={...s.getPropagationContext(),...a.getPropagationContext()};i=A({traceId:e,parentSpanId:r,...t},a,o),n&&(0,d.freezeDscOnSpan)(i,n)}return(0,S.logSpanStart)(i),(0,h.setCapturedScopesOnSpan)(i,a,s),i}function N(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,l.spanTimeInputToSeconds)(e.startTime),delete n.startTime,n}return t}function R(){let e=(0,n.getMainCarrier)();return(0,t.getAsyncContextStrategy)(e)}function A(e,t,n){let o=(0,r.getClient)(),p=o?.getOptions()||{},{name:c=""}=e,l={spanAttributes:{...e.attributes},spanName:c,parentSampled:n};o?.emit("beforeSampling",l,{decision:!1});let d=l.parentSampled??n,S=l.spanAttributes,m=t.getPropagationContext(),[_,h,E]=t.getScopeData().sdkProcessingMetadata[T]?[!1]:(0,f.sampleSpan)(p,{name:c,parentSampled:d,attributes:S,parentSampleRate:(0,u.parseSampleRate)(m.dsc?.sample_rate)},m.sampleRand),I=new g.SentrySpan({...e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==h&&E?h:void 0,...S},sampled:_});return!_&&o&&(a.DEBUG_BUILD&&s.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate","transaction")),o&&o.emit("spanStart",I),I}function C(e,t){if(t)return t;if(null===t)return;let n=(0,c._getSpanForScope)(e);if(!n)return;let a=(0,r.getClient)();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,l.getRootSpan)(n):n}function O(e){return void 0!==e?t=>b(e,t):e=>e()}e.s(["startInactiveSpan",()=>y,"startSpan",()=>E,"startSpanManual",()=>I,"withActiveSpan",()=>b])}]); 6 7//# debugId=96cc4845-d32e-49b8-98d6-6173644b79e7 8//# sourceMappingURL=dd295d4bbcc093ef.js.map
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.