티스토리 수익 글 보기

티스토리 수익 글 보기

;!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]=”59480540-4e84-4f75-539b-ab124477558f”)}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push([“object”==typeof document?document.currentScript:void 0,82021,53541,10544,31140,64660,14046,30011,99619,79838,25366,99677,87395,47378,17433,71766,54402,66361,14697,9081,63104,57821,59546,58927,42044,11053,76357,93859,72028,40735,33226,78174,57082,21288,47907,90225,20648,8817,80323,72536,29203,75885,21231,t=>{“use strict”;let e,n,r,i,s,a,o,c=”10.38.0″;t.s([“SDK_VERSION”,()=>c],53541);let u=globalThis;function l(){return p(u),u}function p(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||c,e[c]=e[c]||{}}function d(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=n.__SENTRY__=n.__SENTRY__||{},i=r[c]=r[c]||{};return i[t]||(i[t]=e())}t.s([“GLOBAL_OBJ”,()=>u],10544),t.s([“getGlobalSingleton”,()=>d,”getMainCarrier”,()=>l,”getSentryCarrier”,()=>p],31140);let f=”u”f],64660);let h=[“debug”,”info”,”warn”,”error”,”log”,”assert”,”trace”],_={};function g(t){if(!(“console”in u))return t();let e=u.console,n={},r=Object.keys(_);r.forEach(t=>{let r=_[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function m(){return v().enabled}function S(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r{u.console[t](“”.concat(“Sentry Logger “,”[“).concat(t,”]:”),…n)})}function v(){return f?d(“loggerSettings”,()=>({enabled:!1})):{enabled:!1}}let y={enable:function(){v().enabled=!0},disable:function(){v().enabled=!1},isEnabled:m,log:function(){for(var t=arguments.length,e=Array(t),n=0;nh,”consoleSandbox”,()=>g,”debug”,()=>y,”originalConsoleMethods”,()=>_],82021);let b=Object.prototype.toString;function E(t){switch(b.call(t)){case”[object Error]”:case”[object Exception]”:case”[object DOMException]”:case”[object WebAssembly.Exception]”:return!0;default:return L(t,Error)}}function T(t,e){return b.call(t)===”[object “.concat(e,”]”)}function I(t){return T(t,”ErrorEvent”)}function x(t){return T(t,”DOMError”)}function A(t){return T(t,”DOMException”)}function k(t){return T(t,”String”)}function C(t){return”object”==typeof t&&null!==t&&”__sentry_template_string__”in t&&”__sentry_template_values__”in t}function N(t){return null===t||C(t)||”object”!=typeof t&&”function”!=typeof t}function w(t){return T(t,”Object”)}function R(t){return”u”>typeof Event&&L(t,Event)}function O(t){return”u”>typeof Element&&L(t,Element)}function P(t){return T(t,”RegExp”)}function D(t){return!!((null==t?void 0:t.then)&&”function”==typeof t.then)}function M(t){return w(t)&&”nativeEvent”in t&&”preventDefault”in t&&”stopPropagation”in t}function L(t,e){try{return t instanceof e}catch(t){return!1}}function j(t){return!!(“object”==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}function U(t){return”u”>typeof Request&&L(t,Request)}function F(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return”“;try{let n,r=t,i=[],s=0,a=0,o=Array.isArray(e)?e:e.keyAttrs,c=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&s++<5&&(n=function(t,e){let n=[];if(!(null==t?void 0:t.tagName))return"";if(u.HTMLElement&&t instanceof HTMLElement&&t.dataset){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}n.push(t.tagName.toLowerCase());let r=(null==e?void 0:e.length)?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(null==r?void 0:r.length)r.forEach(t=>{n.push(“[“.concat(t[0],’=”‘).concat(t[1],'”]’))});else{t.id&&n.push(“#”.concat(t.id));let e=t.className;if(e&&k(e))for(let t of e.split(/\s+/))n.push(“.”.concat(t))}for(let e of[“aria-label”,”type”,”name”,”title”,”alt”]){let r=t.getAttribute(e);r&&n.push(“[“.concat(e,’=”‘).concat(r,'”]’))}return n.join(“”)}(r,o),”html”!==n&&(!(s>1)||!(a+3*i.length+n.length>=c)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(” > “)}catch(t){return”“}}function B(){try{return u.document.location.href}catch(t){return””}}function H(t){if(!u.HTMLElement)return null;let e=t;for(let t=0;t<5&&e;t++){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}function Y(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&V(i,r);try{t[e]=i}catch(n){f&&y.log('Failed to replace method "'.concat(e,'" in object'),t)}}function G(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){f&&y.log('Failed to add non-enumerable property "'.concat(e,'" to object'),t)}}function V(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,G(t,"__sentry_original__",e)}catch(t){}}function J(t){return t.__sentry_original__}function z(t){if(E(t))return{message:t.message,name:t.name,stack:t.stack,...W(t)};if(!R(t))return t;{let e={type:t.type,target:K(t.target),currentTarget:K(t.currentTarget),...W(t)};return"u">typeof CustomEvent&&L(t,CustomEvent)&&(e.detail=t.detail),e}}function K(t){try{return O(t)?F(t):Object.prototype.toString.call(t)}catch(t){return”“}}function W(t){if(“object”!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function q(t){let e=Object.keys(z(t));return e.sort(),e[0]?e.join(“, “):”[object has no keys]”}function $(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for(“__SENTRY_SAFE_RANDOM_ID_WRAPPER__”);return n in u&&”function”==typeof u[n]?(e=u[n])(t):(e=null,t())}function X(){return $(()=>Math.random())}function Q(){return $(()=>Date.now())}t.s([“isDOMError”,()=>x,”isDOMException”,()=>A,”isElement”,()=>O,”isError”,()=>E,”isErrorEvent”,()=>I,”isEvent”,()=>R,”isInstanceOf”,()=>L,”isParameterizedString”,()=>C,”isPlainObject”,()=>w,”isPrimitive”,()=>N,”isRegExp”,()=>P,”isRequest”,()=>U,”isString”,()=>k,”isSyntheticEvent”,()=>M,”isThenable”,()=>D,”isVueViewModel”,()=>j],14046),t.s([“getComponentName”,()=>H,”getLocationHref”,()=>B,”htmlTreeAsString”,()=>F],30011),t.s([“addNonEnumerableProperty”,()=>G,”convertToPlainObject”,()=>z,”extractExceptionKeysForMessage”,()=>q,”fill”,()=>Y,”getOriginalFunction”,()=>J,”markFunctionWrapped”,()=>V],99619),t.s([“safeDateNow”,()=>Q,”safeMathRandom”,()=>X,”withRandomSafeContext”,()=>$],79838);let Z=/\(error: (.*)\)/,tt=/captureMessage|captureException/;function te(){for(var t=arguments.length,e=Array(t),n=0;nt[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],s=t.split(“\n”);for(let t=e;t1024&&(e=e.slice(0,1024));let a=Z.test(e)?e.replace(Z,”$1″):e;if(!a.match(/\S*Error: /)){for(let t of r){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+n)break}}var a=i.slice(n);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(tr(o).function||””)&&o.pop(),o.reverse(),tt.test(tr(o).function||””)&&(o.pop(),tt.test(tr(o).function||””)&&o.pop()),o.slice(0,50).map(t=>({…t,filename:t.filename||tr(o).filename,function:t.function||”?”}))}}function tn(t){return Array.isArray(t)?te(…t):t}function tr(t){return t[t.length-1]||{}}let ti=”“;function ts(t){try{if(!t||”function”!=typeof t)return ti;return t.name||ti}catch(t){return ti}}function ta(t){let e=t.exception;if(e){let t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(…e.stacktrace.frames)}),t}catch(t){}}}function to(t){return”__v_isVNode”in t&&t.__v_isVNode?”[VueVNode]”:”[VueViewModel]”}function tc(t){let e=(null==t?void 0:t.startsWith(“file://”))?t.slice(7):t;return(null==e?void 0:e.match(/\/[A-Z]:/))&&(e=e.slice(1)),e}function tu(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return”string”!=typeof t||0===e||t.length<=e?t:"".concat(t.slice(0,e),"...")}function tl(t,e){let n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);let i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=”‘{snip} “.concat(n)),s2&&void 0!==arguments[2]&&arguments[2];return!!k(t)&&(P(e)?e.test(t):!!k(e)&&(n?t===e:t.includes(e)))}function tf(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.some(e=>td(t,e,n))}function th(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.crypto||u.msCrypto;try{if(null==t?void 0:t.randomUUID)return $(()=>t.randomUUID()).replace(/-/g,””)}catch(t){}return n||(n=”10000000100040008000100000000000″),n.replace(/[018]/g,t=>(t^(15&16*X())>>t/4).toString(16))}function t_(t){var e,n;return null==(n=t.exception)||null==(e=n.values)?void 0:e[0]}function tg(t){let{message:e,event_id:n}=t;if(e)return e;let r=t_(t);return r?r.type&&r.value?””.concat(r.type,”: “).concat(r.value):r.type||r.value||n||”“:n||”“}function tm(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||””),s.type||(s.type=n||”Error”)}function tS(t,e){let n=t_(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:”generic”,handled:!0,…r,…e},e&&”data”in e){let t={…null==r?void 0:r.data,…e.data};n.mechanism.data=t}}function tv(t){if(function(t){try{return t.__sentry_captured__}catch(t){}}(t))return!0;try{G(t,”__sentry_captured__”,!0)}catch(t){}return!1}function ty(){return Q()/1e3}function tb(){return(null!=r?r:r=function(){let{performance:t}=u;if(!(null==t?void 0:t.now)||!t.timeOrigin)return ty;let e=t.timeOrigin;return()=>(e+$(()=>t.now()))/1e3}())()}t.s([“UNKNOWN_FUNCTION”,()=>”?”,”createStackParser”,()=>te,”getFramesFromEvent”,()=>ta,”getFunctionName”,()=>ts,”getVueInternalName”,()=>to,”normalizeStackTracePath”,()=>tc,”stackParserFromStackParserOptions”,()=>tn],25366),t.s([“isMatchingPattern”,()=>td,”safeJoin”,()=>tp,”snipLine”,()=>tl,”stringMatchesSomePattern”,()=>tf,”truncate”,()=>tu],99677),t.s([“addExceptionMechanism”,()=>tS,”addExceptionTypeValue”,()=>tm,”checkOrSetAlreadyCaught”,()=>tv,”getEventDescription”,()=>tg,”uuid4″,()=>th],87395);let tE=null;function tT(){return null===tE&&(tE=function(){var t;let{performance:e}=u;if(!(null==e?void 0:e.now))return;let n=$(()=>e.now()),r=Q(),i=e.timeOrigin;if(“number”==typeof i&&3e5>Math.abs(i+n-r))return i;let s=null==(t=e.timing)?void 0:t.navigationStart;return”number”==typeof s&&3e5>Math.abs(s+n-r)?s:r-n}()),tE}function tI(t){let e=tb(),n={sid:th(),init:!0,timestamp:e,started:e,duration:0,status:”ok”,errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{sid:””.concat(t.sid),init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:”number”==typeof t.did||”string”==typeof t.did?””.concat(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}}}};return t&&tx(n,t),n}function tx(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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||tb(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:th()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=””.concat(e.did)),”number”==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(“number”==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e: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),”number”==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function tA(t,e){let n={};e?n={status:e}:”ok”===t.status&&(n={status:”exited”}),tx(t,n)}function tk(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!e||”object”!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;let r={...t};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=tk(r[t],e[t],n-1));return r}function tC(){return th()}function tN(){return th().substring(16)}t.s(["browserPerformanceTimeOrigin",()=>tT,”dateTimestampInSeconds”,()=>ty,”timestampInSeconds”,()=>tb],47378),t.s([“closeSession”,()=>tA,”makeSession”,()=>tI,”updateSession”,()=>tx],17433),t.s([“merge”,()=>tk],71766),t.s([“generateSpanId”,()=>tN,”generateTraceId”,()=>tC],54402);let tw=”_sentrySpan”;function tR(t,e){e?G(t,tw,e):delete t[tw]}function tO(t){return t[tw]}t.s([“_getSpanForScope”,()=>tO,”_setSpanForScope”,()=>tR],66361);class tP{clone(){let t=new tP;return t._breadcrumbs=[…this._breadcrumbs],t._tags={…this._tags},t._attributes={…this._attributes},t._extra={…this._extra},t._contexts={…this._contexts},this._contexts.flags&&(t._contexts.flags={values:[…this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[…this._eventProcessors],t._attachments=[…this._attachments],t._sdkProcessingMetadata={…this._sdkProcessingMetadata},t._propagationContext={…this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,tR(t,this[tw]),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&tx(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={…this._tags,…t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={…this._attributes,…t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={…this._extra,…t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={…this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e=”function”==typeof t?t(this):t,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:c=[],propagationContext:u,conversationId:l}=(e instanceof tP?e.getScopeData():w(e)?t:void 0)||{};return this._tags={…this._tags,…n},this._attributes={…this._attributes,…r},this._extra={…this._extra,…i},this._contexts={…this._contexts,…a},s&&Object.keys(s).length&&(this._user=s),o&&(this._level=o),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),l&&(this._conversationId=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,tR(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tC(),sampleRand:X()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n=”number”==typeof e?e:100;if(n<=0)return this;let r={timestamp:ty(),...t,message:t.message?tu(t.message,2048):t.message};if(this._breadcrumbs.push(r),this._breadcrumbs.length>n){var i;this._breadcrumbs=this._breadcrumbs.slice(-n),null==(i=this._client)||i.recordDroppedEvent(“buffer_overflow”,”log_item”)}return this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:this[tw],conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tk(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=(null==e?void 0:e.event_id)||th();if(!this._client)return f&&y.warn(“No client configured on scope – will not capture exception!”),n;let r=Error(“Sentry syntheticException”);return this._client.captureException(t,{originalException:t,syntheticException:r,…e,event_id:n},this),n}captureMessage(t,e,n){var r;let i=(null==n?void 0:n.event_id)||th();if(!this._client)return f&&y.warn(“No client configured on scope – will not capture message!”),i;let s=null!=(r=null==n?void 0:n.syntheticException)?r:Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,…n,event_id:i},this),i}captureEvent(t,e){let n=(null==e?void 0:e.event_id)||th();return this._client?this._client.captureEvent(t,{…e,event_id:n},this):f&&y.warn(“No client configured on scope – will not capture event!”),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:tC(),sampleRand:X()}}}class tD{withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return D(e)?e.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}constructor(t,e){let n,r;n=t||new tP,r=e||new tP,this._stack=[{scope:n}],this._isolationScope=r}}function tM(){let t=p(l());return t.stack=t.stack||new tD(d("defaultCurrentScope",()=>new tP),d(“defaultIsolationScope”,()=>new tP))}function tL(t){return tM().withScope(t)}function tj(t,e){let n=tM();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tU(t){return tM().withScope(()=>t(tM().getIsolationScope()))}function tF(t){let e=p(t);return e.acs?e.acs:{withIsolationScope:tU,withScope:tL,withSetScope:tj,withSetIsolationScope:(t,e)=>tU(e),getCurrentScope:()=>tM().getScope(),getIsolationScope:()=>tM().getIsolationScope()}}function tB(){return tF(l()).getCurrentScope()}function tH(){return tF(l()).getIsolationScope()}function tY(){return d(“globalScope”,()=>new tP)}function tG(){for(var t=arguments.length,e=Array(t),n=0;ntF],14697),t.s([“getClient”,()=>tJ,”getCurrentScope”,()=>tB,”getGlobalScope”,()=>tY,”getIsolationScope”,()=>tH,”getTraceContextFromScope”,()=>tz,”withIsolationScope”,()=>tV,”withScope”,()=>tG],9081);let tK=”sentry.source”,tW=”sentry.sample_rate”,tq=”sentry.previous_trace_sample_rate”,t$=”sentry.op”,tX=”sentry.origin”,tQ=”sentry.measurement_unit”,tZ=”sentry.measurement_value”,t0=”sentry.custom_span_name”,t1=”sentry.profile_id”,t2=”sentry.exclusive_time”;t.s([“GEN_AI_CONVERSATION_ID_ATTRIBUTE”,()=>”gen_ai.conversation.id”,”SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME”,()=>t2,”SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD”,()=>”http.request.method”,”SEMANTIC_ATTRIBUTE_PROFILE_ID”,()=>t1,”SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME”,()=>t0,”SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON”,()=>”sentry.idle_span_finish_reason”,”SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT”,()=>tQ,”SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE”,()=>tZ,”SEMANTIC_ATTRIBUTE_SENTRY_OP”,()=>t$,”SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN”,()=>tX,”SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE”,()=>tq,”SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE”,()=>tW,”SEMANTIC_ATTRIBUTE_SENTRY_SOURCE”,()=>tK,”SEMANTIC_ATTRIBUTE_URL_FULL”,()=>”url.full”,”SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE”,()=>”sentry.link.type”],63104);let t3=”sentry-“,t4=/^sentry-/;function t5(t){let e=t8(t);if(!e)return;let n=Object.entries(e).reduce((t,e)=>{let[n,r]=e;return n.match(t4)&&(t[n.slice(t3.length)]=r),t},{});return Object.keys(n).length>0?n:void 0}function t7(t){if(t){var e=Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t[“”.concat(t3).concat(n)]=r),t},{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,e,n)=>{let[r,i]=e,s=””.concat(encodeURIComponent(r),”=”).concat(encodeURIComponent(i)),a=0===n?s:””.concat(t,”,”).concat(s);return a.length>8192?(f&&y.warn(“Not adding key: “.concat(r,” with val: “).concat(i,” to baggage header due to exceeding baggage size limits.”)),t):a},””):void 0}}function t8(t){if(t&&(k(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(t6(e)).forEach(e=>{let[n,r]=e;t[n]=r}),t),{}):t6(t)}function t6(t){return t.split(“,”).map(t=>{let e=t.indexOf(“=”);return -1===e?[]:[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch(t){return}})}).reduce((t,e)=>{let[n,r]=e;return n&&r&&(t[n]=r),t},{})}function t9(t){var e;if(“boolean”==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let n=t||(null==(e=tJ())?void 0:e.getOptions());return!!n&&(null!=n.tracesSampleRate||!!n.tracesSampler)}function et(t){if(“boolean”==typeof t)return Number(t);let e=”string”==typeof t?parseFloat(t):t;if(!(“number”!=typeof e||isNaN(e))&&!(e<0)&&!(e>1))return e}function ee(t,e){t.setAttribute(“http.response.status_code”,e);let n=function(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",()=>t3,”baggageHeaderToDynamicSamplingContext”,()=>t5,”dynamicSamplingContextToSentryBaggageHeader”,()=>t7,”parseBaggageHeader”,()=>t8],57821),t.s([“hasSpansEnabled”,()=>t9],59546),t.s([“parseSampleRate”,()=>et],58927),t.s([“SPAN_STATUS_ERROR”,()=>2,”SPAN_STATUS_OK”,()=>1,”SPAN_STATUS_UNSET”,()=>0,”setHttpStatus”,()=>ee],42044);let en=”_sentryScope”,er=”_sentryIsolationScope”;function ei(t){return{scope:t[en],isolationScope:function(t){if(t){if(“object”==typeof t&&”deref”in t&&”function”==typeof t.deref)try{return t.deref()}catch(t){return}return t}}(t[er])}}let es=/^o(\d+)\./,ea=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function eo(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return””.concat(o,”://”).concat(c).concat(e&&i?”:”.concat(i):””)+”@”.concat(n).concat(s?”:”.concat(s):””,”/”).concat(r?””.concat(r,”/”):r).concat(a)}function ec(t){let e=ea.exec(t);if(!e)return void g(()=>{console.error(“Invalid Sentry Dsn: “.concat(t))});let[n,r,i=””,s=””,a=””,o=””]=e.slice(1),c=””,u=o,l=u.split(“/”);if(l.length>1&&(c=l.slice(0,-1).join(“/”),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return eu({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function eu(t){return{protocol:t.protocol,publicKey:t.publicKey||””,pass:t.pass||””,host:t.host,port:t.port||””,path:t.path||””,projectId:t.projectId}}function el(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(e=null==(t=r.match(es))?void 0:t[1])}return e}function ep(t){let e=”string”==typeof t?ec(t):eu(t);if(e&&function(t){if(!f)return!0;let{port:e,projectId:n,protocol:r}=t;return![“protocol”,”publicKey”,”host”,”projectId”].find(e=>!t[e]&&(y.error(“Invalid Sentry Dsn: “.concat(e,” missing”)),!0))&&(n.match(/^\d+$/)?”http”!==r&&”https”!==r?(y.error(“Invalid Sentry Dsn: Invalid protocol “.concat(r)),!1):!(e&&isNaN(parseInt(e,10)))||(y.error(“Invalid Sentry Dsn: Invalid port “.concat(e)),!1):(y.error(“Invalid Sentry Dsn: Invalid projectId “.concat(n)),!1))}(e))return e}t.s([“dsnFromString”,()=>ec,”dsnToString”,()=>eo,”extractOrgIdFromClient”,()=>el,”makeDsn”,()=>ep],11053);let ed=RegExp(“^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$”);function ef(t,e){let n=function(t){let e;if(!t)return;let n=t.match(ed);if(n)return”1″===n[3]?e=!0:”0″===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=t5(e);if(!(null==n?void 0:n.traceId))return{traceId:tC(),sampleRand:X()};let i=function(t,e){let n=et(null==e?void 0:e.sample_rand);if(void 0!==n)return n;let r=et(null==e?void 0:e.sample_rate);return r&&(null==t?void 0:t.parentSampled)!==void 0?t.parentSampled?X()*r:r+X()*(1-r):X()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}function eh(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tC(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tN(),n=arguments.length>2?arguments[2]:void 0,r=””;return void 0!==n&&(r=n?”-1″:”-0″),””.concat(t,”-“).concat(e).concat(r)}function e_(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tC(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tN(),n=arguments.length>2?arguments[2]:void 0;return”00-“.concat(t,”-“).concat(e,”-“).concat(n?”01″:”00”)}function eg(t,e){let n=el(t);return e&&n&&e!==n?(y.log(“Won’t continue trace because org IDs don’t match (incoming baggage: “.concat(e,”, SDK options: “).concat(n,”)”)),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(y.log(“Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: “.concat(e,”, Sentry client: “).concat(n,”)”)),!1)}t.s([“TRACEPARENT_REGEXP”,()=>ed,”generateSentryTraceHeader”,()=>eh,”generateTraceparentHeader”,()=>e_,”propagationContextFromHeaders”,()=>ef,”shouldContinueTrace”,()=>eg],76357);let em=!1;function eS(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=ex(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function ev(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:ex(t).parent_span_id,s=ei(t).scope;return{parent_span_id:i,span_id:r?(null==s?void 0:s.getPropagationContext().propagationSpanId)||tN():e,trace_id:n}}function ey(t){let{traceId:e,spanId:n}=t.spanContext();return eh(e,n,eA(t))}function eb(t){let{traceId:e,spanId:n}=t.spanContext();return e_(e,n,eA(t))}function eE(t){return t&&t.length>0?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r,…i},attributes:s}=t;return{span_id:e,trace_id:n,sampled:1===r,attributes:s,…i}}):void 0}function eT(t){return”number”==typeof t?eI(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?eI(t.getTime()):tb()}function eI(t){return t>0x2540be3ff?t/1e3:t}function ex(t){var e,n;if(“function”==typeof t.getSpanJSON)return t.getSpanJSON();let{spanId:r,traceId:i}=t.spanContext();if((e=t).attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:e,startTime:s,name:a,endTime:o,status:c,links:u}=t;return{span_id:r,trace_id:i,data:e,description:a,parent_span_id:”parentSpanId”in t?t.parentSpanId:”parentSpanContext”in t?null==(n=t.parentSpanContext)?void 0:n.spanId:void 0,start_timestamp:eT(s),timestamp:eT(o)||void 0,status:ek(c),op:e[t$],origin:e[tX],links:eE(u)}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function eA(t){let{traceFlags:e}=t.spanContext();return 1===e}function ek(t){if(t&&0!==t.code)return 1===t.code?”ok”:t.message||”internal_error”}let eC=”_sentryChildSpans”,eN=”_sentryRootSpan”;function ew(t,e){let n=t[eN]||t;G(e,eN,n),t[eC]?t[eC].add(e):G(t,eC,new Set([e]))}function eR(t,e){t[eC]&&t[eC].delete(e)}function eO(t){let e=new Set;return!function t(n){if(!e.has(n)&&eA(n))for(let r of(e.add(n),n[eC]?Array.from(n[eC]):[]))t(r)}(t),Array.from(e)}function eP(t){return t[eN]||t}function eD(){let t=tF(l());return t.getActiveSpan?t.getActiveSpan():tB()[tw]}function eM(){em||(g(()=>{console.warn(“[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.”)}),em=!0)}t.s([“TRACE_FLAG_NONE”,()=>0,”TRACE_FLAG_SAMPLED”,()=>1,”addChildSpanToSpan”,()=>ew,”convertSpanLinksForEnvelope”,()=>eE,”getActiveSpan”,()=>eD,”getRootSpan”,()=>eP,”getSpanDescendants”,()=>eO,”getStatusMessage”,()=>ek,”removeChildSpanFromSpan”,()=>eR,”showSpanDropWarning”,()=>eM,”spanIsSampled”,()=>eA,”spanTimeInputToSeconds”,()=>eT,”spanToJSON”,()=>ex,”spanToTraceContext”,()=>ev,”spanToTraceHeader”,()=>ey,”spanToTraceparentHeader”,()=>eb,”spanToTransactionTraceContext”,()=>eS],93859);let eL=”production”;t.s([“DEFAULT_ENVIRONMENT”,()=>eL],72028);let ej=”_frozenDsc”;function eU(t,e){G(t,ej,e)}function eF(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||eL,release:n.release,public_key:r,trace_id:t,org_id:el(e)};return e.emit(“createDsc”,i),i}function eB(t,e){let n=e.getPropagationContext();return n.dsc||eF(n.traceId,t)}function eH(t){var e,n,r,i;let s=tJ();if(!s)return{};let a=eP(t),o=ex(a),c=o.data,u=a.spanContext().traceState,l=null!=(e=null!=(n=null==u?void 0:u.get(“sentry.sample_rate”))?n:c[tW])?e:c[tq];function p(t){return(“number”==typeof l||”string”==typeof l)&&(t.sample_rate=””.concat(l)),t}let d=a[ej];if(d)return p(d);let f=null==u?void 0:u.get(“sentry.dsc”),h=f&&t5(f);if(h)return p(h);let _=eF(t.spanContext().traceId,s),g=c[tK],m=o.description;return”url”!==g&&m&&(_.transaction=m),t9()&&(_.sampled=String(eA(a)),_.sample_rand=null!=(r=null==u?void 0:u.get(“sentry.sample_rand”))?r:null==(i=ei(a).scope)?void 0:i.getPropagationContext().sampleRand.toString()),p(_),s.emit(“createDsc”,_,a),_}t.s([“freezeDscOnSpan”,()=>eU,”getDynamicSamplingContextFromScope”,()=>eB,”getDynamicSamplingContextFromSpan”,()=>eH],40735);class eY{spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}constructor(t={}){this._traceId=t.traceId||tC(),this._spanId=t.spanId||tN()}}function eG(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function e(n,r){let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(i=new WeakSet,[function(t){return!!i.has(t)||(i.add(t),!1)},function(t){i.delete(t)}]),[c,u]=o;if(null==r||[“boolean”,”string”].includes(typeof r)||”number”==typeof r&&Number.isFinite(r))return r;let l=function(e,n){try{var r;let i;if(“domain”===e&&n&&”object”==typeof n&&n._events)return”[Domain]”;if(“domainEmitter”===e)return”[DomainEmitter]”;if(n===t.g)return”[Global]”;if(“u”>typeof window&&n===window)return”[Window]”;if(“u”>typeof document&&n===document)return”[Document]”;if(j(n))return to(n);if(M(n))return”[SyntheticEvent]”;if(“number”==typeof n&&!Number.isFinite(n))return”[“.concat(n,”]”);if(“function”==typeof n)return”[Function: “.concat(ts(n),”]”);if(“symbol”==typeof n)return”[“.concat(String(n),”]”);if(“bigint”==typeof n)return”[BigInt: “.concat(String(n),”]”);let s=(r=n,i=Object.getPrototypeOf(r),(null==i?void 0:i.constructor)?i.constructor.name:”null prototype”);if(/^HTML(\w*)Element$/.test(s))return”[HTMLElement: “.concat(s,”]”);return”[object “.concat(s,”]”)}catch(t){return”**non-serializable** (“.concat(t,”)”)}}(n,r);if(!l.startsWith(“[object “))return l;if(r.__sentry_skip_normalization__)return r;let p=”number”==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:s;if(0===p)return l.replace(“object “,””);if(c(r))return”[Circular ~]”;if(r&&”function”==typeof r.toJSON)try{let t=r.toJSON();return e(“”,t,p-1,a,o)}catch(t){}let d=Array.isArray(r)?[]:{},f=0,h=z(r);for(let t in h){if(!Object.prototype.hasOwnProperty.call(h,t))continue;if(f>=a){d[t]=”[MaxProperties ~]”;break}let n=h[t];d[t]=e(t,n,p-1,a,o),f++}return u(r),d}(“”,e,n,r)}catch(t){return{ERROR:”**non-serializable** (“.concat(t,”)”)}}}function eV(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function eJ(t,e){let[n,r]=t;return[n,[…r,e]]}function ez(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function eK(t,e){return ez(t,(t,n)=>e.includes(n))}function eW(t){let e=p(u);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function eq(t){let[e,n]=t,r=JSON.stringify(e);function i(t){“string”==typeof r?r=”string”==typeof t?r+t:[eW(r),t]:r.push(“string”==typeof t?eW(t):t)}for(let t of n){let[e,n]=t;if(i(“\n”.concat(JSON.stringify(e),”\n”)),”string”==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(eG(n))}i(t)}}return”string”==typeof r?r:function(t){let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}(r)}function e$(t){return[{type:”span”},t]}function eX(t){let e=”string”==typeof t.data?eW(t.data):t.data;return[{type:”attachment”,length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}t.s([“SentryNonRecordingSpan”,()=>eY],33226),t.s([“normalize”,()=>eG,”normalizeToSize”,()=>function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=eG(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],78174);let eQ={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 eZ(t){return eQ[t]}function e0(t){if(!(null==t?void 0:t.sdk))return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function e1(t,e,n,r){var i;let s=null==(i=t.sdkProcessingMetadata)?void 0:i.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),…e&&{sdk:e},…!!n&&r&&{dsn:eo(r)},…s&&{trace:s}}}function e2(t){y.log(“Ignoring span “.concat(t.op,” – “).concat(t.description,” because it matches `ignoreSpans`.”))}function e3(t,e){if(!(null==e?void 0:e.length)||!t.description)return!1;for(let r of e){var n;if(“string”==typeof(n=r)||n instanceof RegExp){if(td(t.description,r))return f&&e2(t),!0;continue}if(!r.name&&!r.op)continue;let e=!r.name||td(t.description,r.name),i=!r.op||t.op&&td(t.op,r.op);if(e&&i)return f&&e2(t),!0}return!1}function e4(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let e of t)e.parent_span_id===r&&(e.parent_span_id=n)}function e5(t,e,n,r){let i=e0(n);return eV({sent_at:new Date().toISOString(),…i&&{sdk:i},…!!r&&e&&{dsn:eo(e)}},[“aggregates”in t?[{type:”sessions”},t]:[{type:”session”},t.toJSON()]])}function e7(t,e,n,r){let i=e0(n),s=t.type&&”replay_event”!==t.type?t.type:”event”;!function(t,e){var n,r,i,s;if(!e)return;let a=t.sdk||{};t.sdk={…a,name:a.name||e.name,version:a.version||e.version,integrations:[…(null==(n=t.sdk)?void 0:n.integrations)||[],…e.integrations||[]],packages:[…(null==(r=t.sdk)?void 0:r.packages)||[],…e.packages||[]],settings:(null==(i=t.sdk)?void 0:i.settings)||e.settings?{…null==(s=t.sdk)?void 0:s.settings,…e.settings}:void 0}}(t,null==n?void 0:n.sdk);let a=e1(t,i,r,e);return delete t.sdkProcessingMetadata,eV(a,[[{type:s},t]])}function e8(t,e){let n=eH(t[0]),r=null==e?void 0:e.getDsn(),i=null==e?void 0:e.getOptions().tunnel,s={sent_at:new Date().toISOString(),…!!n.trace_id&&!!n.public_key&&{trace:n},…!!i&&r&&{dsn:eo(r)}},{beforeSendSpan:a,ignoreSpans:o}=(null==e?void 0:e.getOptions())||{},c=(null==o?void 0:o.length)?t.filter(t=>!e3(ex(t),o)):t,u=t.length-c.length;u&&(null==e||e.recordDroppedEvent(“before_send”,”span”,u));let l=a?t=>{let e=ex(t),n=a(e);return n||(eM(),e)}:ex,p=[];for(let t of c){let e=l(t);e&&p.push(e$(e))}return eV(s,p)}function e6(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:eD(),i=r&&eP(r);i&&(f&&y.log(“[Measurement] Setting measurement on root span: “.concat(t,” = “).concat(e,” “).concat(n)),i.addEvent(t,{[tZ]:e,[tQ]:n}))}function e9(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[tQ],i=n[tZ];”string”==typeof r&&”number”==typeof i&&(e[t.name]={value:i,unit:r})}),e}t.s([“addItemToEnvelope”,()=>eJ,”createAttachmentEnvelopeItem”,()=>eX,”createEnvelope”,()=>eV,”createEventEnvelopeHeaders”,()=>e1,”createSpanEnvelopeItem”,()=>e$,”envelopeContainsItemType”,()=>eK,”envelopeItemTypeToDataCategory”,()=>eZ,”forEachEnvelopeItem”,()=>ez,”getSdkMetadataForEnvelopeHeader”,()=>e0,”serializeEnvelope”,()=>eq],57082),t.s([“reparentChildSpans”,()=>e4,”shouldIgnoreSpan”,()=>e3],21288),t.s([“createEventEnvelope”,()=>e7,”createSessionEnvelope”,()=>e5,”createSpanEnvelope”,()=>e8],47907),t.s([“setMeasurement”,()=>e6,”timedEventsToMeasurements”,()=>e9],90225);class nt{addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(…t):this._links=t,this}recordException(t,e){}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:+!!n}}setAttribute(t,e){return void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._startTime=eT(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(tK,”custom”),this}end(t){this._endTime||(this._endTime=eT(t),function(t){if(!f)return;let{description:e=”< unknown name >“,op:n=”< unknown op >“}=ex(t),{spanId:r}=t.spanContext(),i=eP(t)===t,s='[Tracing] Finishing “‘.concat(n,'” ‘).concat(i?”root “:””,’span “‘).concat(e,'” with ID ‘).concat(r);y.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[t$],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ek(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tX],profile_id:this._attributes[t1],exclusive_time:this._attributes[t2],measurements:e9(this._events),is_segment:this._isStandaloneSpan&&eP(this)===this||void 0,segment_id:this._isStandaloneSpan?eP(this).spanContext().spanId:void 0,links:eE(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){f&&y.log(“[Tracing] Adding an event to span:”,t);let r=ne(e)?e:n||tb(),i=ne(e)?{}:e||{},s={name:t,time:eT(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tJ();if(t&&t.emit(“spanEnd”,this),!(this._isStandaloneSpan||this===eP(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tJ();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent(“before_send”,”span”)}(e8([this],t)):(f&&y.log(“[Tracing] Discarding standalone span because its trace was not chosen to be sampled.”),t&&t.recordDroppedEvent(“sample_rate”,”span”)));let e=this._convertSpanToTransaction();e&&(ei(this).scope||tB()).captureEvent(e)}_convertSpanToTransaction(){var t;if(!nn(ex(this)))return;this._name||(f&&y.warn(“Transaction has no name, falling back to ``.”),this._name=”“);let{scope:e,isolationScope:n}=ei(this),r=null==e||null==(t=e.getScopeData().sdkProcessingMetadata)?void 0:t.normalizedRequest;if(!0!==this._sampled)return;let i=eO(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof nt&&e.isStandaloneSpan())}).map(t=>ex(t)).filter(nn),s=this._attributes[tK];delete this._attributes[t0],i.forEach(t=>{delete t.data[t0]});let a={contexts:{trace:eS(this)},spans:i.length>1e3?i.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:”transaction”,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:eH(this)},request:r,…s&&{transaction_info:{source:s}}},o=e9(this._events);return o&&Object.keys(o).length&&(f&&y.log(“[Measurements] Adding measurements to transaction event”,JSON.stringify(o,void 0,2)),a.measurements=o),a}constructor(t={}){this._traceId=t.traceId||tC(),this._spanId=t.spanId||tN(),this._startTime=t.startTimestamp||tb(),this._links=t.links,this._attributes={},this.setAttributes({[tX]:”manual”,[t$]:t.op,…t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),”sampled”in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}}function ne(t){return t&&”number”==typeof t||t instanceof Date||Array.isArray(t)}function nn(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s([“SentrySpan”,()=>nt],20648);let nr=”__SENTRY_SUPPRESS_TRACING__”;function ni(t,e){let n=tF(l());if(n.startSpan)return n.startSpan(t,e);let r=nu(t),{forceTransaction:i,parentSpan:s,scope:a}=t;return tG(null==a?void 0:a.clone(),()=>{var n;return(void 0!==(n=s)?t=>na(n,t):t=>t())(()=>{let n=tB(),a=np(n,s),o=t.onlyIfParent&&!a?new eY:nc({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return tR(n,o),function(t,e){var n,r,i,s;let a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};try{a=t()}catch(t){throw e(t),o(),t}return n=a,r=e,i=o,s=c,D(n)?n.then(t=>(i(),s(t),t),t=>{throw r(t),i(),t}):(i(),s(n),n)}(()=>e(o),()=>{let{status:t}=ex(o);o.isRecording()&&(!t||”ok”===t)&&o.setStatus({code:2,message:”internal_error”})},()=>{o.end()})})})}function ns(t){let e=tF(l());if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=nu(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>tG(t.scope,e):void 0!==i?t=>na(i,t):t=>t())(()=>{let e=tB(),s=np(e,i);return t.onlyIfParent&&!s?new eY:nc({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})})}function na(t,e){let n=tF(l());return n.withActiveSpan?n.withActiveSpan(t,e):tG(n=>(tR(n,t||void 0),e(n)))}function no(t){return tG(e=>(e.setPropagationContext({traceId:tC(),sampleRand:X()}),f&&y.log(“Starting a new trace with id “.concat(e.getPropagationContext().traceId)),na(null,t)))}function nc(t){var e;let n,{parentSpan:r,spanArguments:i,forceTransaction:s,scope:a}=t;if(!t9()){let t=new eY;if(s||!r){let e={sampled:”false”,sample_rate:”0″,transaction:i.name,…eH(t)};eU(t,e)}return t}let o=tH();if(r&&!s)n=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),s=!e.getScopeData().sdkProcessingMetadata[nr]&&eA(t),a=s?new nt({…n,parentSpanId:r,traceId:i,sampled:s}):new eY({traceId:i});ew(t,a);let o=tJ();return o&&(o.emit(“spanStart”,a),n.endTimestamp&&o.emit(“spanEnd”,a)),a}(r,a,i),ew(r,n);else if(r){let t=eH(r),{traceId:e,spanId:s}=r.spanContext(),o=eA(r);eU(n=nl({traceId:e,parentSpanId:s,…i},a,o),t)}else{let{traceId:t,dsc:e,parentSpanId:r,sampled:s}={…o.getPropagationContext(),…a.getPropagationContext()};n=nl({traceId:t,parentSpanId:r,…i},a,s),e&&eU(n,e)}return!function(t){if(!f)return;let{description:e=”< unknown name >“,op:n=”< unknown op >“,parent_span_id:r}=ex(t),{spanId:i}=t.spanContext(),s=eA(t),a=eP(t),o=a===t,c=”[Tracing] Starting “.concat(s?”sampled”:”unsampled”,” “).concat(o?”root “:””,”span”),u=[“op: “.concat(n),”name: “.concat(e),”ID: “.concat(i)];if(r&&u.push(“parent ID: “.concat(r)),!o){let{op:t,description:e}=ex(a);u.push(“root ID: “.concat(a.spanContext().spanId)),t&&u.push(“root op: “.concat(t)),e&&u.push(“root description: “.concat(e))}y.log(“”.concat(c,”\n “).concat(u.join(“\n “)))}(n),(e=n)&&(G(e,er,function(t){try{let e=u.WeakRef;if(“function”==typeof e)return new e(t)}catch(t){}return t}(o)),G(e,en,a)),n}function nu(t){let e={isStandalone:(t.experimental||{}).standalone,…t};if(t.startTime){let n={…e};return n.startTimestamp=eT(t.startTime),delete n.startTime,n}return e}function nl(t,e,n){var r,i;let s=tJ(),a=(null==s?void 0:s.getOptions())||{},{name:o=””}=t,c={spanAttributes:{…t.attributes},spanName:o,parentSampled:n};null==s||s.emit(“beforeSampling”,c,{decision:!1});let u=null!=(r=c.parentSampled)?r:n,l=c.spanAttributes,p=e.getPropagationContext(),[d,h,_]=e.getScopeData().sdkProcessingMetadata[nr]?[!1]:function(t,e,n){let r,i;if(!t9(t))return[!1];”function”==typeof t.tracesSampler?(r=t.tracesSampler({…e,inheritOrSampleWith:t=>”number”==typeof e.parentSampleRate?e.parentSampleRate:”boolean”==typeof e.parentSampled?Number(e.parentSampled):t}),i=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,i=!0);let s=et(r);if(void 0===s)return f&&y.warn(“[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got “.concat(JSON.stringify(r),” of type “).concat(JSON.stringify(typeof r),”.”)),[!1];if(!s)return f&&y.log(“[Tracing] Discarding transaction because “.concat(“function”==typeof t.tracesSampler?”tracesSampler returned 0 or false”:”a negative sampling decision was inherited or tracesSampleRate is set to 0″)),[!1,s,i];let a=n{e(t)})}function nf(t){return new nh((e,n)=>{n(t)})}t.s([“startInactiveSpan”,()=>ns,”startNewTrace”,()=>no,”startSpan”,()=>ni,”withActiveSpan”,()=>na],8817);class nh{then(t,e){return new nh((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new nh((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){let e=(t,e)=>{if(0===this._state){if(D(e))return void e.then(n,r);this._state=t,this._value=e,this._executeHandlers()}},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}}function n_(t,e){var n,r,i,s,a,o,c,u;let l,p,{fingerprint:d,span:f,breadcrumbs:h,sdkProcessingMetadata:_}=e;(function(t,e){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={…n,…t.extra}),Object.keys(r).length&&(t.tags={…r,…t.tags}),Object.keys(i).length&&(t.user={…i,…t.user}),Object.keys(s).length&&(t.contexts={…s,…t.contexts}),a&&(t.level=a),o&&”transaction”!==t.type&&(t.transaction=o)})(t,e),f&&((n=t).contexts={trace:ev(r=f),…n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:eH(r),…n.sdkProcessingMetadata},(l=ex(eP(r)).description)&&!n.transaction&&”transaction”===n.type&&(n.transaction=l)),i=t,s=d,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint.length||delete i.fingerprint,a=t,o=h,p=[…a.breadcrumbs||[],…o],a.breadcrumbs=p.length?p:void 0,c=t,u=_,c.sdkProcessingMetadata={…c.sdkProcessingMetadata,…u}}function ng(t,e){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=e;nm(t,”extra”,n),nm(t,”tags”,r),nm(t,”attributes”,i),nm(t,”user”,s),nm(t,”contexts”,a),t.sdkProcessingMetadata=tk(t.sdkProcessingMetadata,c,2),o&&(t.level=o),h&&(t.transactionName=h),_&&(t.span=_),u.length&&(t.breadcrumbs=[…t.breadcrumbs,…u]),l.length&&(t.fingerprint=[…t.fingerprint,…l]),p.length&&(t.eventProcessors=[…t.eventProcessors,…p]),d.length&&(t.attachments=[…t.attachments,…d]),t.propagationContext={…t.propagationContext,…f}}function nm(t,e,n){t[e]=tk(t[e],n,1)}function nS(t,e){let n=tY().getScopeData();return t&&ng(n,t.getScopeData()),e&&ng(n,e.getScopeData()),n}function nv(t,e,n,r,c,l){var p,d,h,_,g;let m,{normalizeDepth:S=3,normalizeMaxBreadth:v=1e3}=t,b={…e,event_id:e.event_id||n.event_id||th(),timestamp:e.timestamp||ty()},E=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||eL,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;if((null==a?void 0:a.url)&&s&&(a.url=tu(a.url,s)),s){var o,c;null==(c=t.exception)||null==(o=c.values)||o.forEach(t=>{t.value&&(t.value=tu(t.value,s))})}})(b,t),p=b,(d=E).length>0&&(p.sdk=p.sdk||{},p.sdk.integrations=[…p.sdk.integrations||[],…d]),c&&c.emit(“applyFrameMetadata”,e),void 0===e.type&&(h=b,m=function(t){let e=u._sentryDebugIds,n=u._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],c=n?Object.keys(n):[];if(o&&r.length===s&&c.length===a)return o;s=r.length,a=c.length,o={},i||(i={});let l=(e,n)=>{for(let r of e){let e=n[r],s=null==i?void 0:i[r];if(s&&o&&e)o[s[0]]=e,i&&(i[r]=[s[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t–){let s=n[t],a=null==s?void 0:s.filename;if(a&&o&&i){o[a]=e,i[r]=[a,e];break}}}}};return e&&l(r,e),n&&l(c,n),o}(t.stackParser),null==(g=h.exception)||null==(_=g.values)||_.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.filename&&(t.debug_id=m[t.filename])})}));let T=function(t,e){if(!e)return t;let n=t?t.clone():new tP;return n.update(e),n}(r,n.captureContext);n.mechanism&&tS(b,n.mechanism);let I=c?c.getEventProcessors():[],x=nS(l,T),A=[…n.attachments||[],…x.attachments];return A.length&&(n.attachments=A),n_(b,x),(function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let i=function t(e,n,r,i){let s=r[i];if(!e||!s)return e;let a=s({…e},n);return(f&&null===a&&y.log(‘Event processor “‘.concat(s.id||”?”,'” dropped event’)),D(a))?a.then(e=>t(e,n,r,i+1)):t(a,n,r,i+1)}(e,n,t,r);return D(i)?i:nd(i)}catch(t){return nf(t)}})([…I,…x.eventProcessors],b,n).then(t=>(t&&function(t){var e,n;let r={};if(null==(n=t.exception)||null==(e=n.values)||e.forEach(t=>{var e,n;null==(n=t.stacktrace)||null==(e=n.frames)||e.forEach(t=>{t.debug_id&&(t.abs_path?r[t.abs_path]=t.debug_id:t.filename&&(r[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(r).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let i=t.debug_meta.images;Object.entries(r).forEach(t=>{let[e,n]=t;i.push({type:”sourcemap”,code_file:e,debug_id:n})})}(t),”number”==typeof S&&S>0)?function(t,e,n){var r,i;if(!t)return null;let s={…t,…t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({…t,…t.data&&{data:eG(t.data,e,n)}}))},…t.user&&{user:eG(t.user,e,n)},…t.contexts&&{contexts:eG(t.contexts,e,n)},…t.extra&&{extra:eG(t.extra,e,n)}};return(null==(r=t.contexts)?void 0:r.trace)&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=eG(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map(t=>({…t,…t.data&&{data:eG(t.data,e,n)}}))),(null==(i=t.contexts)?void 0:i.flags)&&s.contexts&&(s.contexts.flags=eG(t.contexts.flags,3,n)),s}(t,S,v):t)}function ny(t){if(t){var e;return(e=t)instanceof tP||”function”==typeof e||Object.keys(t).some(t=>nb.includes(t))?{captureContext:t}:t}}t.s([“rejectedSyncPromise”,()=>nf,”resolvedSyncPromise”,()=>nd],80323),t.s([“applyScopeDataToEvent”,()=>n_,”getCombinedScopeData”,()=>nS],72536);let nb=[“user”,”level”,”extra”,”contexts”,”tags”,”fingerprint”,”propagationContext”];function nE(t,e){return tB().captureException(t,ny(e))}function nT(t,e){return tB().captureEvent(t,e)}function nI(t,e){tH().setContext(t,e)}async function nx(t){let e=tJ();return e?e.flush(t):(f&&y.warn(“Cannot flush events. No client defined.”),Promise.resolve(!1))}function nA(){let t=tJ();return(null==t?void 0:t.getOptions().enabled)!==!1&&!!(null==t?void 0:t.getTransport())}function nk(t){tH().addEventProcessor(t)}function nC(t){let e=tH(),n=tB(),{userAgent:r}=u.navigator||{},i=tI({user:n.getUser()||e.getUser(),…r&&{userAgent:r},…t}),s=e.getSession();return(null==s?void 0:s.status)===”ok”&&tx(s,{status:”exited”}),nN(),e.setSession(i),i}function nN(){let t=tH(),e=tB().getSession()||t.getSession();e&&tA(e),nw(),t.setSession()}function nw(){let t=tH(),e=tJ(),n=t.getSession();n&&e&&e.captureSession(n)}function nR(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?nN():nw()}t.s([“parseEventHintOrCaptureContext”,()=>ny,”prepareEvent”,()=>nv],29203),t.s([“addEventProcessor”,()=>nk,”captureEvent”,()=>nT,”captureException”,()=>nE,”captureSession”,()=>nR,”flush”,()=>nx,”isEnabled”,()=>nA,”setContext”,()=>nI,”startSession”,()=>nC],75885);let nO=”u”nO],21231)}]); //# debugId=59480540-4e84-4f75-539b-ab124477558f //# sourceMappingURL=b2fef27a33a64c57.js.map