1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8567],{303:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r="production"},936:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},1375:(e,t,n)=>{"use strict";n.d(t,{f:()=>o,r:()=>a});var r=n(27911),i=n(86425);let s="_sentrySpan";function a(e,t){t?(0,r.my)(e,s,(0,i.Z)(t)):delete e[s]}function o(e){return(0,i.q)(e[s])}},2187:(e,t,n)=>{"use strict";function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},2489:(e,t,n)=>{"use strict";let r,i,s,a,o;n.d(t,{a9:()=>z,hT:()=>F,Pt:()=>W,wv:()=>H,YG:()=>q,tC:()=>ee});var u=n(45911),l=n(23496),c=n(74848),p=n(29387);let d=(e,t,n,r)=>{let i,s;return a=>{if(t.value>=0&&(a||r)&&((s=t.value-(i??0))||void 0===i)){var o;i=t.value,t.delta=s,o=t.value,t.rating=o>n[1]?"poor":o>n[0]?"needs-improvement":"good",e(t)}}};var f=n(49115),h=n(63571),_=n(21453);let m=(e,t=-1)=>{let n=(0,_.z)(),r="navigate";return n&&(p.j.document?.prerendering||(0,h.b)()>0?r="prerender":p.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},g=new WeakMap;function y(e,t){try{return g.get(e)||g.set(e,new t),g.get(e)}catch(e){return new t}}class v{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let b=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}};var S=n(71061);let x=e=>{p.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},w=[1800,3e3],k=[.1,.25],E=0,T=1/0,I=0,C=e=>{e.forEach(e=>{e.interactionId&&(T=Math.min(T,e.interactionId),E=(I=Math.max(I,e.interactionId))?(I-T)/7+1:0)})},A=()=>r?E:performance.interactionCount||0,R=0;class O{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){R=A(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((A()-R)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}var P=n(35636);let N=[200,500];var L=n(84329);class M{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let j=[2500,4e3],$=[800,1800],D=e=>{p.j.document?.prerendering?x(()=>D(e)):p.j.document?.readyState!=="complete"?addEventListener("load",()=>D(e),!0):setTimeout(e)},B={},U={};function z(e,t=!1){return Q("cls",e,J,i,t)}function W(e,t=!1){return Q("lcp",e,G,s,t)}function q(e){return Q("ttfb",e,V,a)}function F(e){return Q("inp",e,K,o)}function H(e,t){var n;let r;return X(e,t),U[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),b(n,e=>{Y(n,{entries:e})},r),U[e]=!0),Z(e,t)}function Y(e,t){let n=B[e];if(n?.length)for(let r of n)try{r(t)}catch(t){c.T&&u.Yz.error(`Error while triggering instrumentation handler. 2Type: ${e} 3Name: ${(0,l.qQ)(r)} 4Error:`,t)}}function J(){return((e,t={})=>{((e,t={})=>{x(()=>{let n,r=(0,f.N)(),i=m("FCP"),s=b("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-(0,h.b)(),0),i.entries.push(t),n(!0)))});s&&(n=d(e,i,w,t.reportAllChanges))})})((0,S.J)(()=>{let n,r=m("CLS",0),i=(0,f.N)(),s=y(t,v),a=e=>{for(let t of e)s._processEntry(t);s._sessionValue>r.value&&(r.value=s._sessionValue,r.entries=s._sessionEntries,n())},o=b("layout-shift",a);o&&(n=d(e,r,k,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),n(!0)}),p.j?.setTimeout?.(n))}))})(e=>{Y("cls",{metric:e}),i=e},{reportAllChanges:!0})}function G(){return((e,t={})=>{x(()=>{let n,r=(0,f.N)(),i=m("LCP"),s=y(t,M),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(a),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-(0,h.b)(),0),i.entries=[a],n())},o=b("largest-contentful-paint",a);if(o){n=d(e,i,j,t.reportAllChanges);let r=(0,S.J)(()=>{a(o.takeRecords()),o.disconnect(),n(!0)}),s=e=>
4{e.isTrusted&&((0,P.k)(r),(0,L.Q)(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])(0,L.d)(e,s,{capture:!0})}})})(e=>{Y("lcp",{metric:e}),s=e},{reportAllChanges:!0})}function V(){return((e,t={})=>{let n=m("TTFB"),r=d(e,n,$,t.reportAllChanges);D(()=>{let e=(0,_.z)();e&&(n.value=Math.max(e.responseStart-(0,h.b)(),0),n.entries=[e],r(!0))})})(e=>{Y("ttfb",{metric:e}),a=e})}function K(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=(0,f.N)();x(()=>{let i;"interactionCount"in performance||r||(r=b("event",C,{type:"event",buffered:!0,durationThreshold:0}));let s=m("INP"),a=y(t,O),o=e=>{(0,P.k)(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==s.value&&(s.value=t._latency,s.entries=t.entries,i())})},u=b("event",o,{durationThreshold:t.durationThreshold??40});i=d(e,s,N,t.reportAllChanges),u&&(u.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(u.takeRecords()),i(!0)}))})})(e=>{Y("inp",{metric:e}),o=e})}function Q(e,t,n,r,i=!1){let s;return X(e,t),U[e]||(s=n(),U[e]=!0),r&&t({metric:r}),Z(e,t,i?s:void 0)}function X(e,t){B[e]=B[e]||[],B[e].push(t)}function Z(e,t,n){return()=>{n&&n();let r=B[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ee(e){return"duration"in e}},5351:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(65364),i=n(44903);function s(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0))||(e=i.O.process,e?.type==="renderer"))}},5516:(e,t,n)=>{"use strict";n.d(t,{BY:()=>o,EU:()=>s,Se:()=>a});let r="10.67.0";var i=n(44903);function s(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r,t[r]=t[r]||{}}function o(e,t,n=i.O){let s=n.__SENTRY__=n.__SENTRY__||{},a=s[r]=s[r]||{};return a[e]||(a[e]=t())}},7634:(e,t,n)=>{"use strict";n.d(t,{Yz:()=>p,pq:()=>o});var r=n(5516),i=n(936),s=n(44903);let a={};function o(e){if(!("console"in s.O))return e();let t=s.O.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function u(){return c().enabled}function l(e,...t){i.T&&u()&&o(()=>{s.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:u,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},15096:(e,t,n)=>{"use strict";let r;n.d(t,{M6:()=>o,eJ:()=>a});var i=n(96401),s=n(44903);function a(e=function(){let e=s.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*(0,i.hY)())>>e/4).toString(16))}function o(e,t){let n=e.exception?.values?.[0];if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}},16551:(e,t,n)=>{"use strict";function r(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}n.d(t,{FD:()=>r})},16843:(e,t,n)=>{"use strict";function r(e,t,n){let r,i,s,a=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function u(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=o(u,t),a&&void 0===s&&(s=o(u,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==s?u():r},c}n.d(t,{s:()=>r})},20704:(e,t,n)=>{"use strict";let r,i,s;n.d(t,{i:()=>c});var a=n(79642),o=n(92074),u=n(23665),l=n(29387);function c(e){(0,a.s5)("dom",e),(0,a.AS)("dom",p)}function p(){if(!l.j.document)return;let e=a.aj.bind(null,"dom"),t=d(e,!0);l.j.document.addEventListener("click",t,!1),l.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>
4{let n=l.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,o.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=d(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch{}return t.call(this,n,r,i)}}),(0,o.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function d(e,t=!1){return n=>{var a;if(!n||n._sentryCaptured)return;let c=function(e){try{return e.target}catch{return null}}(n);if(a=n.type,"keypress"===a&&(!c?.tagName||"INPUT"!==c.tagName&&"TEXTAREA"!==c.tagName&&!c.isContentEditable&&1))return;(0,o.my)(n,"_sentryCaptured",!0),c&&!c._sentryId&&(0,o.my)(c,"_sentryId",(0,u.eJ)());let p="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(n)&&(e({event:n,name:p,global:t}),i=n.type,s=c?c._sentryId:void 0),clearTimeout(r),r=l.j.setTimeout(()=>{s=void 0,i=void 0},1e3)}}},21453:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(29387);let i=(e=!0)=>{let t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},23496:(e,t,n)=>{"use strict";n.d(t,{qQ:()=>i});let r="<anonymous>";function i(e){try{if(!e||"function"!=typeof e)return r;return e.name||r}catch{return r}}},23665:(e,t,n)=>{"use strict";let r;n.d(t,{eJ:()=>a});var i=n(46098),s=n(77688);function a(e=function(){let e=s.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,e=>(e^(15&16*(0,i.hY)())>>e/4).toString(16))}},25970:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var r=n(87177);let i={};try{"u">typeof Node&&(i.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(i.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,i.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,i.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,i.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(i.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function s(e,t,n){let r=i[t];if(r)try{return r.call(e,n)}catch{}let s=e[t];return"function"==typeof s?s.call(e,n):s}function a(e,t={}){if(!e)return"<unknown>";try{let n,i=e,a=[],o=0,u=0,l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&o++<5&&(n=function(e,t){let n=[],i=s(e,"tagName");if(!i)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=s(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(i.toLowerCase());let a=t?.length?t.filter(t=>s(e,"getAttribute",t)).map(t=>[t,s(e,"getAttribute",t)]):null;if(a?.length)a.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=s(e,"id");t&&n.push(`#${t}`);let i=s(e,"className");if(i&&(0,r.Kg)(i))for(let e of i.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=s(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(i,l),"html"!==n&&(!(o>1)||!(u+3*a.length+n.length>=c)));)a.push(n),u+=n.length,i=s(i,"parentNode");return a.reverse().join(" > ")}catch{return"<unknown>"}}},26475:(e,t,n)=>{"use strict";n.d(t,{H:()=>f});var r=n(936),i=n(15096),s=n(33361),a=n(7634),o=n(28372),u=n(99400),l=n(96257),c=n(96401),p=n(1375),d=n(95577);class f{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:(0,l.e)(),sampleRand:(0,c.hY)()}}clone(){let e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,p.r)(e,(0,p.f)(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&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,s.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:u,fingerprint:l=[],propagationContext:c,conversationId:p}=(t instanceof f?t.getScopeData():(0,o.Qd)(t)?e: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),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&
4(this._propagationContext=c),p&&(this._conversationId=p),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,(0,p.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,l.e)(),sampleRand:(0,c.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,s.lu)(),...e,message:e.message?(0,d.xv)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:(0,p.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||(0,i.eJ)();if(!this._client)return r.T&&a.Yz.warn("No client configured on scope - will not capture exception!"),n;let s=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...t,event_id:n},this),n}captureMessage(e,t,n){let s=n?.event_id||(0,i.eJ)();if(!this._client)return r.T&&a.Yz.warn("No client configured on scope - will not capture message!"),s;let o=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:s},this),s}captureEvent(e,t){let n=e.event_id||t?.event_id||(0,i.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):r.T&&a.Yz.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)}}},27911:(e,t,n)=>{"use strict";n.d(t,{GS:()=>a,W4:()=>u,my:()=>o});var r=n(936),i=n(7634),s=n(28372);function a(e,t,n){if(!(t in e))return;let s=e[t];if("function"!=typeof s)return;let a=n(s);"function"==typeof a&&function(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,o(e,"__sentry_original__",t)}catch{}}(a,s);try{e[t]=a}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function o(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function u(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...l(e)};if((0,s.xH)(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...l(e)}}return e}function l(e){return(0,s.Z4)(e)?Object.fromEntries(Object.entries(e)):{}}},28372:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>a,Qd:()=>o,Qg:()=>p,Z4:()=>u,bJ:()=>i,gd:()=>c,xH:()=>l});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return d(e,Error)}}function s(e,t){return r.call(e)===`[object ${t}]`}function a(e){return s(e,"String")}function o(e){return s(e,"Object")}function u(e){return"object"==typeof e&&null!==e}function l(e){return"u">typeof Event&&d(e,Event)}function c(e){return s(e,"RegExp")}function p(e){return!!(e?.then&&"function"==typeof e.then)}function d(e,t){try{return e instanceof t}catch{return!1}}},29387:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});let r=n(77688).O},29527:(e,t,n)=>{"use strict";n.d(t,{Ef:()=>s,JD:()=>o,i_:()=>r,sy:()=>i,uT:()=>a});let r="sentry.source",i="sentry.sample_rate",s="sentry.previous_trace_sample_rate",a="sentry.op",o="sentry.origin"}
4,33052:(e,t,n)=>{"use strict";let r;n.d(t,{_:()=>u});var i=n(79642),s=n(90529),a=n(92074),o=n(29387);function u(e){let t="history";(0,i.s5)(t,e),(0,i.AS)(t,l)}function l(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let s=r,a=function(e){try{return new URL(e,o.j.location.origin).toString()}catch{return e}}(String(n));if(r=a,s===a)return e.apply(this,t);(0,i.aj)("history",{from:s,to:a})}return e.apply(this,t)}}o.j.addEventListener("popstate",()=>{let e=o.j.location.href,t=r;r=e,t===e||(0,i.aj)("history",{from:t,to:e})}),(0,s.NJ)()&&((0,a.GS)(o.j.history,"pushState",e),(0,a.GS)(o.j.history,"replaceState",e))}},33361:(e,t,n)=>{"use strict";let r;n.d(t,{k3:()=>l,lu:()=>a,zf:()=>o});var i=n(96401),s=n(44903);function a(){return(0,i.Wk)()/1e3}function o(){return(r??(r=function(){let{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return a;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let u=null;function l(){return null===u&&(u=function(){let{performance:e}=s.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),n=(0,i.Wk)(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-n)?a:n-t}()),u}},34099:(e,t,n)=>{"use strict";n.d(t,{k1:()=>_});var r=n(303),i=n(89570),s=n(29527),a=n(28372);let o="sentry-";function u(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var l=n(72005);function c(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,i.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}var p=n(59514);let d=Symbol.for("sentry.nonRecordingSpan");var f=n(78666);function h(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},s={environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e,org_id:(0,l.ul)(t)};return t.emit("createDsc",s),s}function _(e){let t=(0,i.KU)();if(!t)return{};let n=(0,p.zU)(e),r=(0,p.et)(n),l=r.data,_=n.spanContext().traceState,m=_?.get("sentry.sample_rate")??l[s.sy]??l[s.Ef];function g(e){return("number"==typeof m||"string"==typeof m)&&(e.sample_rate=`${m}`),e}let y=n._frozenDsc;if(y)return g(y);let v=!!n&&!0===n[d],b=v&&"ignored"===n.dropReason;if(v&&(!c(t.getOptions())||b)){let e=(0,f.Lb)(n).scope;if(e){let n,r={...(n=e.getPropagationContext()).dsc||h(n.traceId,t)};return b&&(r.sampled="false"),g(r)}}let S=_?.get("sentry.dsc"),x=S&&function(e){let t=function(e){if(e&&((0,a.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(u(t)).forEach(([t,n])=>{e[t]=n}),e),{}):u(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(o)&&(e[t.slice(o.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(S);if(x)return g(x);let w=h(e.spanContext().traceId,t),k=l[s.i_]??l["sentry.segment.name.source"],E=r.description;return"url"!==k&&E&&(w.transaction=E),c()&&(w.sampled=String((0,p.pK)(n)),w.sample_rand=_?.get("sentry.sample_rand")??(0,f.Lb)(n).scope?.getPropagationContext().sampleRand.toString()),g(w),t.emit("createDsc",w,n),w}},34184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(89570),i=n(7634),s=n(33361);function a(e,t){let n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:u=100}=n.getOptions();if(u<=0)return;let l={timestamp:(0,s.lu)(),...e},c=o?(0,i.pq)(()=>o(l,t)):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),a.addBreadcrumb(c,u))}},35636:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(29387),i=n(84329),s=n(71061);let a=e=>{let t=r.j.requestIdleCallback||r.j.setTimeout;r.j.document?.visibilityState==="hidden"?e():(e=(0,s.J)(e),(0,i.d)("visibilitychange",e,{once:!0,capture:!0}),(0,i.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,i.Q)("visibilitychange",e,{capture:!0}),(0,i.Q)("pagehide",e,{capture:!0})}))}},40020:(e,t,n)=>{"use strict";let r;n.d(t,{k3:()=>l,lu:()=>a,zf:()=>o});var i=n(46098),s=n(77688);function a(){return(0,i.Wk)()/1e3}function o(){return(r??(r=function(){let{performance:e}=s.O;if(!e?.now||!e.timeOrigin)return a;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let u=null;function l(){return null===u&&(u=function(){let{performance:e}=s.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),n=(0,i.Wk)(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let a=e.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+t-n)?a:n-t}()),u}}
4,44802:(e,t,n)=>{"use strict";n.d(t,{Er:()=>o,Mn:()=>u});var r=n(79642),i=n(40020),s=n(87177),a=n(29387);let o="__sentry_xhr_v3__";function u(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",l)}function l(){if(!a.j.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let a=Error(),u=1e3*(0,i.zf)(),l=(0,s.Kg)(n[0])?n[0].toUpperCase():void 0,c=function(e){if((0,s.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!l||!c)return e.apply(t,n);t[o]={method:l,url:c,request_headers:{}},"POST"===l&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let p=()=>{let e=t[o];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let n={endTimestamp:1e3*(0,i.zf)(),startTimestamp:u,xhr:t,virtualError:a};(0,r.aj)("xhr",n),t.removeEventListener("readystatechange",p)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(p(),e.apply(t,n))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[o];return a&&(0,s.Kg)(r)&&(0,s.Kg)(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let s=t[o];if(!s)return e.apply(t,n);void 0!==n[0]&&(s.body=n[0]);let a={startTimestamp:1e3*(0,i.zf)(),xhr:t};return(0,r.aj)("xhr",a),e.apply(t,n)}})}},44903:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});let r=globalThis},45911:(e,t,n)=>{"use strict";n.d(t,{Yz:()=>p,pq:()=>o});var r=n(55301),i=n(70079),s=n(77688);let a={};function o(e){if(!("console"in s.O))return e();let t=s.O.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function u(){return c().enabled}function l(e,...t){i.T&&u()&&o(()=>{s.O.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:u,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},46098:(e,t,n)=>{"use strict";let r;n.d(t,{Qw:()=>s,Wk:()=>o,hY:()=>a});var i=n(77688);function s(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i.O;return t in n&&"function"==typeof n[t]?(r=n[t])(e):(r=null,e())}function a(){return s(()=>Math.random())}function o(){return s(()=>Date.now())}},48393:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>s,SA:()=>o,o:()=>a});var r=n(89570),i=n(98572);function s(e,t){return(0,r.o5)().captureException(e,(0,i.li)(t))}function a(e,t){(0,r.rm)().setContext(e,t)}function o(e){(0,r.rm)().addEventProcessor(e)}},48864:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r=n(5516),i=n(26475);let s=e=>e instanceof Promise&&!e[a],a=Symbol("chained PromiseLike");var o=n(28372);class u{constructor(e,t){let n,r;n=e||new i.H,r=t||new i.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}if((0,o.Qg)(t)){var r,i,u;let e;return r=t,i=()=>this._popScope(),u=()=>this._popScope(),s(e=r.then(e=>(i(),e),e=>{throw u(),e}))&&s(r)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[a]:!0}),t})(r,e)}return this._popScope(),t}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)&&!!this._stack.pop()}}function l(){let e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new u((0,r.BY)("defaultCurrentScope",()=>new i.H),(0,r.BY)("defaultIsolationScope",()=>new i.H))}function c(e){return l().withScope(e)}function p(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function f(e){let t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:p,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},49115:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(29387),i=n(63571),s=n(84329);let a=-1,o=new Set,u=e=>{if(("pagehide"===e.type||r.j.document?.visibilityState==="hidden")&&a>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of o)e();isFinite(a)||(a="visibilitychange"===e.type?e.timeStamp:0,(0,s.Q)("prerenderingchange",u,!0))}},l=()=>{if(r.j.document&&a<0){let e=(0,i.b)();a=(r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(r.j.document?.visibilityState!=="hidden"||r.j.document?.prerendering?1/0:0),(0,s.d)("visibilitychange",u,!0),(0,s.d)("pagehide",u,!0),(0,s.d)("prerenderingchange",u,!0)}return{get firstHiddenTime(){return a},onHidden(e){o.add(e)}}}}
4,51498:(e,t,n)=>{"use strict";let r;n.d(t,{S8:()=>u});let i=Symbol.for("sentry.skipNormalization"),s=Symbol.for("sentry.overrideNormalizationDepth");var a=n(27911);let o="<anonymous>";function u(e,t=100,n=1/0){try{return function e(t,n,u=1/0,l=1/0,c=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let p,[d,f]=c;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let h=function(e){try{var t;let n;if(r){let t=r(e);if(t)return t}if("u">typeof global&&e===global)return"[Global]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${function(e){try{if(!e||"function"!=typeof e)return o;return e.name||o}catch{return o}}(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;let i=(t=e,n=Object.getPrototypeOf(t),n?.constructor?n.constructor.name:"null prototype");return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(n);if(!h.startsWith("[object "))return h;if(n[i])return n;let _=(p=n[s],"number"==typeof p?p:void 0),m=void 0!==_?_:u;if(0===m)return h.replace("object ","");if(d(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,m-1,l,c)}catch{}let g=Array.isArray(n)?[]:{},y=0,v=(0,a.W4)(n);for(let t in v){if(!Object.prototype.hasOwnProperty.call(v,t))continue;if(y>=l){g[t]="[MaxProperties ~]";break}let n=v[t];g[t]=e(t,n,m-1,l,c),y++}return f(n),g}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},52035:(e,t,n)=>{e.exports=n(84180)},52415:(e,t,n)=>{"use strict";function r(e,t){var n,r,s,a,o,u;let l,c=t?.getDsn(),p=t?.getOptions().tunnel;return n=e,r=c,!!(l=function(e){let t=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=(void 0)??(t?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let r=new URL(e,n);if(t)return{isRelative:t,pathname:r.pathname,search:r.search,hash:r.hash};return r}catch{}}(n))&&!("isRelative"in l)&&!!r&&(s=l.hostname,s===(a=r.host)||a.length>0&&s.endsWith(`.${a}`))&&/(^|&|\?)sentry_key=/.test(l.search)||(o=e,!!(u=p)&&i(o)===i(u))}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}n.d(t,{A:()=>r})},55301:(e,t,n)=>{"use strict";n.d(t,{BY:()=>o,EU:()=>s,Se:()=>a});let r="10.67.0";var i=n(77688);function s(){return a(i.O),i.O}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r,t[r]=t[r]||{}}function o(e,t,n=i.O){let s=n.__SENTRY__=n.__SENTRY__||{},a=s[r]=s[r]||{};return a[e]||(a[e]=t())}},56294:(e,t,n)=>{"use strict";let r,i,s,a,o,u,l,c,p,d,f,h,_,m,g,y,v,b,S,x,w,k,E,T,I,C,A,R,O,P,N,L,M,j,$;n.r(t),n.d(t,{BrowserClient:()=>i8,ErrorBoundary:()=>gr,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>di,OpenFeatureIntegrationHook:()=>mt,Profiler:()=>m8,SDK_VERSION:()=>eB,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>ns,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>na,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>nr,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>nn,Scope:()=>tq,WINDOW:()=>i5,addBreadcrumb:()=>sg,addEventProcessor:()=>rN,addIntegration:()=>rz,bindScopeToEmitter:()=>dp,breadcrumbsIntegration:()=>sR,browserApiErrorsIntegration:()=>sP,browserProfilingIntegration:()=>_5,browserSessionIntegration:()=>s$,browserTracingIntegration:()=>lz,buildLaunchDarklyFlagUsedHandler:()=>_8,captureConsoleIntegration:()=>dh,captureEvent:()=>ry,captureException:()=>rm,captureFeedback:()=>d_,captureMessage:()=>rg,captureReactException:()=>mp,captureRequestError:()=>yI,captureRouterTransitionStart:()=>lL,captureSession:()=>r$,captureUnderscoreErrorException:()=>yC,chromeStackLineParser:()=>s9,close:()=>rR,consoleLoggingIntegration:()=>db,contextLinesIntegration:()=>hH,continueTrace:()=>a$,createConsolaReporter:()=>dx,createLangChainCallbackHandler:()=>fI,createReduxEnhancer:()=>go,createTransport:()=>iI,createUserFeedbackEnvelope:()=>hP,cultureContextIntegration:()=>sU,dedupeIntegration:()=>rV,defaultRequestInstrumentationOptions:()=>le,defaultStackLineParsers:()=>au,defaultStackParser:()=>al,diagnoseSdkConnectivity:()=>mo,elementTimingIntegration:()=>_I,endSession:()=>rM,eventFiltersIntegration:()=>rq,eventFromException:()=>iZ,eventFromMessage:()=>i0,exceptionFromError:()=>iG,extraErrorDataIntegration:()=>fC,featureFlagsIntegration:()=>fN,feedbackAsyncIntegration:()=>dn,feedbackIntegration:()=>dr,feedbackSyncIntegration:()=>dr,fetchStreamPerformanceIntegration:()=>uH,flush:()=>rA,forceLoad:()=>am,functionToStringIntegration:()=>rG,geckoStackLineParser:()=>at,getAbsoluteUrl:()=>lg,getActiveSpan:()=>rt,getClient:()=>t5,getCurrentScope:()=>t0,getDefaultIntegrations:()=>a_,getFeedback:()=>c0,getGlobalScope:()=>t2,getIsolationScope:()=>t1,getReplay:()=>hZ.M,getRootSpan:()=>n8,getSpanDescendants:()=>n9,getSpanStatusFromHttpCode:()=>nC,getTraceData:()=>u4,globalHandlersIntegration:()=>sG,graphqlClientIntegration:()=>hQ,growthbookIntegration:()=>ms,httpClientIntegration:()=>hU,httpContextIntegration:()=>sX,inboundFiltersIntegration:()=>rF,init:()=>l1,instrumentAnthropicAiClient:()=>fz,instrumentCreateReactAgent:()=>fY,instrumentGoogleGenAIClient:()=>fZ,instrumentLangChainEmbeddings:()=>f1,instrumentLangGraph:()=>fJ,instrumentOpenAiClient:()=>f6,instrumentOutgoingRequests:()=>lt,instrumentSupabaseClient:()=>hs,isBotUserAgent:()=>li,isEnabled:()=>rP,isInitialized:()=>rO,lastEventId:()=>rC,launchDarklyIntegration:()=>_9,lazyLoadIntegration:()=>dt,linkedErrorsIntegration:()=>s2,logger:()=>z,makeBrowserOfflineTransport:()=>_M,makeFetchTransport:()=>ad,makeMultiplexedTransport:()=>da,metrics:()=>W,moduleMetadataIntegration:()=>hk,normalizeStringifyValue:()=>ah,onLoad:()=>ag,openFeatureIntegration:()=>me,opera10StackLineParser:()=>as,opera11StackLineParser:()=>ao,parameterize:()=>ho,reactErrorHandler:()=>md,reactRouterBrowserTracingIntegration:()=>y_,reactRouterV3BrowserTracingIntegration:()=>gu,reactRouterV4BrowserTracingIntegration:()=>gf,reactRouterV5BrowserTracingIntegration:()=>gh,reactRouterV6BrowserTracingIntegration:()=>ys,reactRouterV7BrowserTracingIntegration:()=>yc,registerSpanErrorInstrumentation:()=>aZ,registerWebWorker:()=>mc,replayCanvasIntegration:()=>_y,replayIntegration:()=>hZ.w,reportPageLoaded:()=>_C,reportingObserverIntegration:()=>hM,rewriteFramesIntegration:()=>lH,sendFeedback:()=>cH,setActiveSpanInBrowser:()=>_A,setAttribute:()=>rE,setAttributes:()=>rk,setContext:()=>rv,setConversationId:()=>rI,setCurrentClient:()=>rZ,setExtra:()=>rS,setExtras:()=>rb,setHttpStatus:()=>nA,setMeasurement:()=>aT,setTag:()=>rw,setTags:()=>rx,setUser:()=>rT,showReportDialog:()=>hN,spanStreamingIntegration:()=>_O,spanToBaggageHeader:()=>rp,spanToJSON:()=>nV,spanToTraceHeader:()=>nF,spotlightBrowserIntegration:()=>_7,startBrowserTracingNavigationSpan:()=>lu,startBrowserTracingPageLoadSpan:()=>lo,startInactiveSpan:()=>vE,startNewTrace:()=>az,startSession:()=>rL,startSpan:()=>vw,startSpanManual:()=>vk,statsigIntegration:()=>ma,supabaseIntegration:()=>ha,suppressTracing:()=>aB,tanstackRouterBrowserTracingIntegration:()=>gc,thirdPartyErrorFilterIntegration:()=>hE,uiProfiler:()=>hO,unleashIntegration:()=>mn,updateSpanName:()=>rr,useProfiler:()=>gt,viewHierarchyIntegration:()=>hX,webVitalsIntegration:()=>u1,webWorkerIntegration:()=>mu,winjsStackLineParser:()=>ar,withActiveSpan:()=>aD,withErrorBoundary:()=>gi,withIsolationScope:()=>t4,withProfiler:()=>ge,withScope:()=>t3,withSentryConfig:()=>l2,withSentryReactRouterV6Routing:()=>yl,withSentryReactRouterV7Routing:()=>yp,withSentryRouting:()=>gm,withServerActionInstrumentation:()=>
4vT,withStreamedSpan:()=>r2,wrapApiHandlerWithSentryVercelCrons:()=>vC,wrapAppGetInitialPropsWithSentry:()=>vP,wrapCreateBrowserRouter:()=>yg,wrapCreateBrowserRouterV6:()=>yo,wrapCreateBrowserRouterV7:()=>yd,wrapCreateMemoryRouter:()=>yy,wrapCreateMemoryRouterV6:()=>yu,wrapCreateMemoryRouterV7:()=>yf,wrapDocumentGetInitialPropsWithSentry:()=>vN,wrapErrorGetInitialPropsWithSentry:()=>vL,wrapGenerationFunctionWithSentry:()=>vM,wrapGetInitialPropsWithSentry:()=>vj,wrapGetServerSidePropsWithSentry:()=>v$,wrapGetStaticPropsWithSentry:()=>vD,wrapMiddlewareWithSentry:()=>vB,wrapPageComponentWithSentry:()=>vz,wrapReactRouterRouting:()=>ym,wrapRouteHandlerWithSentry:()=>vW,wrapServerComponentWithSentry:()=>vq,wrapUseRoutes:()=>yv,wrapUseRoutesV6:()=>ya,wrapUseRoutesV7:()=>yh,zodErrorsIntegration:()=>hR});var D,B,U,z={};n.r(z),n.d(z,{debug:()=>hp,error:()=>hh,fatal:()=>h_,fmt:()=>hu,info:()=>hd,trace:()=>hc,warn:()=>hf});var W={};n.r(W),n.d(W,{count:()=>hg,distribution:()=>hv,gauge:()=>hy});let q=globalThis,F="10.67.0";function H(){return Y(q),q}function Y(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||F,t[F]=t[F]||{}}function J(e,t,n=q){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[F]=r[F]||{};return i[e]||(i[e]=t())}let G={};function V(e){if(!("console"in q))return e();let t=q.console,n={},r=Object.keys(G);r.forEach(e=>{let r=G[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let K=function(...e){[...e]},Q=function(...e){[...e]};function X(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in q&&"function"==typeof q[t]?(r=q[t])(e):(r=null,e())}function Z(){return X(()=>Math.random())}function ee(){return X(()=>Date.now())}function et(e=q.crypto||q.msCrypto){try{if(e?.randomUUID)return X(()=>e.randomUUID()).replace(/-/g,"")}catch{}return i||(i="10000000100040008000100000000000"),i.replace(/[018]/g,e=>(e^(15&16*Z())>>e/4).toString(16))}function en(){return ee()/1e3}function er(){return(s??(s=function(){let{performance:e}=q;if(!e?.now||!e.timeOrigin)return en;let t=e.timeOrigin;return()=>(t+X(()=>e.now()))/1e3}()))()}let ei=null;function es(){return null===ei&&(ei=function(){let{performance:e}=q;if(!e?.now)return;let t=X(()=>e.now()),n=ee(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let i=e.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+t-n)?i:n-t}()),ei}let ea=Object.prototype.toString;function eo(e){switch(ea.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}function eu(e,t){return ea.call(e)===`[object ${t}]`}function el(e){return eu(e,"String")}function ec(e){return"object"==typeof e&&null!==e}function ep(e){return!!(e?.then&&"function"==typeof e.then)}function ed(){return et().substring(16)}function ef(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function eh(e){try{let t=q.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function e_(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let em="_sentrySpan";function eg(e,t){t?ef(e,em,eh(t)):delete e[em]}function ey(e,t,n=!1){return!!el(e)&&(eu(t,"RegExp")?t.test(e):el(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}class ev{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:et(),sampleRand:Z()}}clone(){let e=new ev;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,eg(e,e_(this[em])),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&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||er(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:et()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:c}=(t instanceof ev?t.getScopeData():eu(t,"Object")?e: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),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),c&&
4(this._conversationId=c),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,eg(this,void 0),this._attachments=[],this.setPropagationContext({traceId:et(),sampleRand:Z()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:en(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:e_(this[em]),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||et();if(!this._client)return n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||et();if(!this._client)return r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||et();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let eb=e=>e instanceof Promise&&!e[eS],eS=Symbol("chained PromiseLike"),ex=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return eb(r)&&eb(e)?r:ew(e,r)},ew=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[eS]:!0}),t};class ek{constructor(e,t){let n,r;n=e||new ev,r=t||new ev,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return ep(t)?ex(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function eE(){let e=Y(H());return e.stack=e.stack||new ek(J("defaultCurrentScope",()=>new ev),J("defaultIsolationScope",()=>new ev))}function eT(e){return eE().withScope(e)}function eI(e,t){let n=eE();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eC(e){return eE().withScope(()=>e(eE().getIsolationScope()))}function eA(e){let t=Y(e);return t.acs?t.acs:{withIsolationScope:eC,withScope:eT,withSetScope:eI,withSetIsolationScope:(e,t)=>eC(t),getCurrentScope:()=>eE().getScope(),getIsolationScope:()=>eE().getIsolationScope()}}function eR(){return eA(H()).getCurrentScope()}function eO(){return eA(H()).getIsolationScope()}function eP(...e){let t=eA(H());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function eN(...e){let t=eA(H());if(2===e.length){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function eL(){return eR().getClient()}let eM=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ej(e,t){return eR().captureException(e,function(e){if(e){var t;return(t=e)instanceof ev||"function"==typeof t||Object.keys(e).some(e=>eM.includes(e))?{captureContext:e}:e}}(t))}function e$(e,t){let n=eR(),r=eL();if(r&&r.captureCheckIn)return r.captureCheckIn(e,t,n);return et()}async function eD(e){let t=eL();return t?t.flush(e):Promise.resolve(!1)}let eB="10.67.0",eU=globalThis;function ez(){return eW(eU),eU}function eW(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||eB,t[eB]=t[eB]||{}}function eq(e,t,n=eU){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[eB]=r[eB]||{};return i[e]||(i[e]=t())}let eF=["debug","info","warn","error","log","assert","trace"],eH={};function eY(e){if(!("console"in eU))return e();let t=eU.console,n={},r=Object.keys(eH);
4r.forEach(e=>{let r=eH[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let eJ=function(...e){[...e]},eG=function(...e){[...e]},eV=function(...e){[...e]},eK=Object.prototype.toString;function eQ(e){switch(eK.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return e9(e,Error)}}function eX(e,t){return eK.call(e)===`[object ${t}]`}function eZ(e){return eX(e,"ErrorEvent")}function e0(e){return eX(e,"DOMError")}function e1(e){return eX(e,"String")}function e2(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function e3(e){return null===e||e2(e)||"object"!=typeof e&&"function"!=typeof e}function e4(e){return eX(e,"Object")}function e5(e){return"object"==typeof e&&null!==e}function e6(e){return"u">typeof Event&&e9(e,Event)}function e7(e){return!!(e?.then&&"function"==typeof e.then)}function e9(e,t){try{return e instanceof t}catch{return!1}}function e8(e){return"u">typeof Request&&e9(e,Request)}function te(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&tn(i,r);try{e[t]=i}catch{}}function tt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function tn(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,tt(e,"__sentry_original__",t)}catch{}}function tr(e){return e.__sentry_original__}function ti(e){if(eQ(e))return{message:e.message,name:e.name,stack:e.stack,...ts(e)};if(e6(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...ts(e)}}return e}function ts(e){return e5(e)?Object.fromEntries(Object.entries(e)):{}}function ta(e){if(void 0!==o)return o?o(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in eU&&"function"==typeof eU[t]?(o=eU[t])(e):(o=null,e())}function to(){return ta(()=>Math.random())}function tu(){return ta(()=>Date.now())}let tl=Symbol.for("sentry.skipNormalization"),tc=Symbol.for("sentry.overrideNormalizationDepth"),tp=/\(error: (.*)\)/,td=/captureMessage|captureException/;function tf(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];n.length>1024&&(n=n.slice(0,1024));let a=tp.test(n)?n.replace(tp,"$1"):n;if(!a.includes("Error: ")){for(let e of t){let t=e(a);if(t){i.push(t);break}}if(i.length>=50+r)break}}var a=i.slice(r);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(th(o).function||"")&&o.pop(),o.reverse(),td.test(th(o).function||"")&&(o.pop(),td.test(th(o).function||"")&&o.pop()),o.slice(0,50).map(e=>({...e,filename:e.filename||th(o).filename,function:e.function||"?"}))}}function th(e){return e[e.length-1]||{}}let t_="<anonymous>";function tm(e){try{if(!e||"function"!=typeof e)return t_;return e.name||t_}catch{return t_}}function tg(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function ty(e,t=100,n=1/0){try{return function e(t,n,r=1/0,i=1/0,s=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let a,[o,u]=s;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let l=tv(t,n);if(!l.startsWith("[object "))return l;if(n[tl])return n;let c=(a=n[tc],"number"==typeof a?a:void 0),p=void 0!==c?c:r;if(0===p)return l.replace("object ","");if(o(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,p-1,i,s)}catch{}let d=Array.isArray(n)?[]:{},f=0,h=ti(n);for(let t in h){if(!Object.prototype.hasOwnProperty.call(h,t))continue;if(f>=i){d[t]="[MaxProperties ~]";break}let n=h[t];d[t]=e(t,n,p-1,i,s),f++}return u(n),d}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tv(e,t){try{var n;let e;if(u){let e=u(t);if(e)return e}if("u">typeof global&&t===global)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${tm(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=(n=t,e=Object.getPrototypeOf(n),e?.constructor?e.constructor.name:"null prototype");return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}function tb(e,t="[unserializable]"){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return"function"==typeof t?t(e):t}}function tS(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function tx(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-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} ${n}`),s<r&&(n+=" {snip}"),n}function tw(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];e3(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(tv(void 0,r))}return n.join(t)}function tk(e,t,n=!1){return!!e1(e)&&(eX(t,"RegExp")?t.test(e):e1(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function tE(e,t=[],n=!1){for(let r of t)if(tk(e,r,n))return!0;return!1}function tT(e=eU.crypto||eU.msCrypto){try{if(e?.randomUUID)return ta(()=>e.randomUUID()).replace(/-/g,"")}catch{}return l||(l="10000000100040008000100000000000"),l.replace(/[018]/g,e=>(e^(15&16*to())>>e/4).toString(16))}function tI(e){return e.exception?.values?.[0]}
4function tC(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function tA(e,t){let n=tI(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function tR(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{tt(e,"__sentry_captured__",!0)}catch{}return!1}function tO(){return tu()/1e3}function tP(){return(c??(c=function(){let{performance:e}=eU;if(!e?.now||!e.timeOrigin)return tO;let t=e.timeOrigin;return()=>(t+ta(()=>e.now()))/1e3}()))()}let tN=null;function tL(){return null===tN&&(tN=function(){let{performance:e}=eU;if(!e?.now)return;let t=ta(()=>e.now()),n=tu(),r=e.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+t-n))return r;let i=e.timing?.navigationStart;return"number"==typeof i&&3e5>Math.abs(i+t-n)?i:n-t}()),tN}function tM(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||tP(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:tT()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tj(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=tj(r[e],t[e],n-1));return r}function t$(){return tT().substring(16)}function tD(e){try{let t=eU.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function tB(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let tU="_sentrySpan";function tz(e,t){t?tt(e,tU,tD(t)):delete e[tU]}function tW(e){return tB(e[tU])}class tq{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:tT(),sampleRand:to()}}clone(){let e=new tq;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,tz(e,tW(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&&tM(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:c}=(t instanceof tq?t.getScopeData():e4(t)?e: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),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),c&&
4(this._conversationId=c),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,tz(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tT(),sampleRand:to()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:tO(),...e,message:e.message?tS(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:tW(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=tj(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||tT();if(!this._client)return n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||tT();if(!this._client)return r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||tT();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let tF=e=>e instanceof Promise&&!e[tH],tH=Symbol("chained PromiseLike"),tY=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return tF(r)&&tF(e)?r:tJ(e,r)},tJ=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[tH]:!0}),t};class tG{constructor(e,t){let n,r;n=e||new tq,r=t||new tq,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return e7(t)?tY(t,()=>this._popScope(),()=>this._popScope()):(this._popScope(),t)}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)&&!!this._stack.pop()}}function tV(){let e=eW(ez());return e.stack=e.stack||new tG(eq("defaultCurrentScope",()=>new tq),eq("defaultIsolationScope",()=>new tq))}function tK(e){return tV().withScope(e)}function tQ(e,t){let n=tV();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function tX(e){return tV().withScope(()=>e(tV().getIsolationScope()))}function tZ(e){let t=eW(e);return t.acs?t.acs:{withIsolationScope:tX,withScope:tK,withSetScope:tQ,withSetIsolationScope:(e,t)=>tX(t),getCurrentScope:()=>tV().getScope(),getIsolationScope:()=>tV().getIsolationScope()}}function t0(){return tZ(ez()).getCurrentScope()}function t1(){return tZ(ez()).getIsolationScope()}function t2(){return eq("globalScope",()=>new tq)}function t3(...e){let t=tZ(ez());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function t4(...e){let t=tZ(ez());if(2===e.length){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function t5(){return t0().getClient()}function t6(e){let t=p?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),s={trace_id:n,span_id:i||t$()};return r&&(s.parent_span_id=r),s}let t7="production";function t9(e){return new ne(t=>{t(e)})}function t8(e){return new ne((t,n)=>{n(e)})}class ne{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new ne((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new ne((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();
4this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(e7(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function nt(e){let t=eU._sentryDebugIds,n=eU._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(_&&r.length===f&&i.length===h)return _;f=r.length,h=i.length,_={},d||(d={});let s=(t,n)=>{for(let r of t){let t=n[r],i=d?.[r];if(i&&_&&t)_[i[0]]=t,d&&(d[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e],s=i?.filename;if(s&&_&&d){_[s]=t,d[r]=[s,t];break}}}}};return t&&s(r,t),n&&s(i,n),_}let nn="sentry.source",nr="sentry.sample_rate",ni="sentry.previous_trace_sample_rate",ns="sentry.op",na="sentry.origin",no="sentry.idle_span_finish_reason",nu="sentry.measurement_unit",nl="sentry.measurement_value",nc="sentry.custom_span_name",np="sentry.profile_id",nd="sentry.exclusive_time",nf="sentry-";function nh(e){let t=function(e){if(e&&(e1(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(nm(t)).forEach(([t,n])=>{e[t]=n}),e),{}):nm(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(nf)&&(e[t.slice(nf.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function n_(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${nf}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>8192?e:s},""):void 0}}function nm(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let ng=/^o(\d+)\./,ny=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function nv(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=e;return`${o}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function nb(e){let t=ny.exec(e);if(!t)return void eY(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",s="",a="",o=""]=t.slice(1),u="",l=o,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return nS({host:s,pass:i,path:u,projectId:l,port:a,protocol:n,publicKey:r})}function nS(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function nx(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(ng),t=e?.[1])}return t}function nw(e){let t="string"==typeof e?nb(e):nS(e);if(t&&1)return t}function nk(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||t5()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function nE(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}(i,t);e&&(n[r]=e)}return n}function nT(e){if(!e)return 0;let t=0;for(let[n,r]of Object.entries(e)){t+=2*n.length,t+=2*r.type.length,t+=(r.unit?.length??0)*2;let e=r.value;Array.isArray(e)?t+=nI(e[0])*e.length:e3(e)?t+=nI(e):t+=100}return t}function nI(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:8*("number"==typeof e)}function nC(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){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(e>=500&&e<600)switch(e){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"}}function nA(e,t){e.setAttribute("http.response.status_code",t);let n=nC(t);"unknown_error"!==n.message&&e.setStatus(n)}let nR="_sentryScope",nO="_sentryIsolationScope",nP=Symbol.for("sentry.otelSourceInference"),nN=Symbol.for("sentry.otelSourceExplicitlySet"),nL=Symbol.for("sentry.tracerProviderSpan");function nM(e,t,n){e&&(tt(e,nO,tD(n)),tt(e,nR,t))}function nj(e){return{scope:e[nR],isolationScope:tB(e[nO])}}function n$(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let nD=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function nB(e,t){let n=function(e){let t;if(!e)return;let n=e.match(nD);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=nh(t);if(!n?.traceId)return{traceId:tT(),sampleRand:to()};let i=function(e,t){let n=n$(t?.sample_rand);if(void 0!==n)return n;let r=n$(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?to()*r:r+to()*(1-r):to()}(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 nU(e=tT(),t=t$(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function nz(e=tT(),t=t$(),n){return`00-${e}-${t}-${n?"01":"00"}`}let nW=!1;function nq(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:nV(e).parent_span_id,s=nj(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||t$():t,trace_id:n}}function nF(e){let{traceId:t,spanId:n}=e.spanContext();return nU(t,n,n1(e))}function nH(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function nY(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function nJ(e){return"number"==typeof e?nG(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?nG
4(e.getTime()):tP()}function nG(e){return e>0x2540be3ff?e/1e3:e}function nV(e){if(n0(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(nZ(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:u}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:nQ(e),start_timestamp:nJ(i),timestamp:nJ(a)||void 0,status:n2(o),op:r[ns],origin:r[na],links:nH(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function nK(e){if(n0(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(nZ(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:u}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:nQ(e),start_timestamp:nJ(i),end_timestamp:nJ(a),is_segment:e===re(e),status:n3(o),attributes:n4(r,o),links:nY(u)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===re(e)}}function nQ(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function nX(e){return{...e,attributes:nE(e.attributes),links:e.links?.map(e=>({...e,attributes:nE(e.attributes)}))}}function nZ(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function n0(e){return"function"==typeof e.getSpanJSON}function n1(e){let{traceFlags:t}=e.spanContext();return 1===t}function n2(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function n3(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function n4(e,t){let n="error"===n3(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}let n5="_sentryChildSpans",n6="_sentryRootSpan";function n7(e,t){let n=e[n6]||e;tt(t,n6,n),e[n5]?e[n5].add(t):tt(e,n5,new Set([t]))}function n9(e){let t=new Set;return!function e(n){if(!t.has(n)&&n1(n))for(let r of(t.add(n),n[n5]?Array.from(n[n5]):[]))e(r)}(e),Array.from(t)}let n8=re;function re(e){return e[n6]||e}function rt(){let e=tZ(ez());return e.getActiveSpan?e.getActiveSpan():tW(t0())}function rn(){nW||(eY(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),nW=!0)}function rr(e,t){e.updateName(t),e.setAttributes({[nn]:"custom",[nc]:t})}let ri=Symbol.for("sentry.nonRecordingSpan");class rs{constructor(e={}){this._traceId=e.traceId||tT(),this._spanId=e.spanId||t$(),this.dropReason=e.dropReason,tt(this,ri,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}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){}}function ra(e){return!!e&&!0===e[ri]}let ro="_frozenDsc";function ru(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||t7,release:n.release,public_key:r,trace_id:e,org_id:nx(t)};return t.emit("createDsc",i),i}function rl(e,t){let n=t.getPropagationContext();return n.dsc||ru(n.traceId,e)}function rc(e){let t=t5();if(!t)return{};let n=n8(e),r=nV(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[nr]??i[ni];function o(e){return("number"==typeof a||"string"==typeof a)&&(e.sample_rate=`${a}`),e}let u=n[ro];if(u)return o(u);let l=ra(n),c=l&&"ignored"===n.dropReason;if(l&&(!nk(t.getOptions())||c)){let e=nj(n).scope;if(e){let n={...rl(t,e)};return c&&(n.sampled="false"),o(n)}}let p=s?.get("sentry.dsc"),d=p&&nh(p);if(d)return o(d);let f=ru(e.spanContext().traceId,t),h=i[nn]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),nk()&&(f.sampled=String(n1(n)),f.sample_rand=s?.get("sentry.sample_rand")??nj(n).scope?.getPropagationContext().sampleRand.toString()),o(f),t.emit("createDsc",f,n),f}function rp(e){return n_(rc(e))}function rd(e,t){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;rf(e,"extra",n),rf(e,"tags",r),rf(e,"attributes",i),rf(e,"user",s),rf(e,"contexts",a),e.sdkProcessingMetadata=tj(e.sdkProcessingMetadata,u,2),o&&(e.level=o),h&&(e.transactionName=h),_&&(e.span=_),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function rf(e,t,n){e[t]=tj(e[t],n,1)}function rh(e,t){let n=t2().getScopeData();return e&&rd(n,e.getScopeData()),t&&rd(n,t.getScopeData()),n}let r_=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function rm(e,t){return t0().captureException(e,function(e){if(e){var t;return(t=e)instanceof tq||"function"==typeof t||Object.keys(e).some(e=>r_.includes(e))?{captureContext:e}:e}}(t))}function rg(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return t0().captureMessage(e,n,r)}function ry(e,t){return t0().captureEvent(e,t)}function rv(e,t){t1().setContext(e,t)}function rb(e){t1().setExtras(e)}function rS(e,t){t1().setExtra(e,t)}function rx(e){t1().setTags(e)}function rw(e,t){t1().setTag(e,t)}function rk(e){t1().setAttributes(e)}function rE(e,t){t1().setAttribute(e,t)}function rT(e){t1().setUser(e)}function rI(e){t1().setConversationId(e)}function rC(){return t1().lastEventId()}async function rA(e){let t=t5();return t?t.flush(e):Promise.resolve(!1)}async function rR(e){let t=t5();return t?t.close(e):Promise.resolve(!1)}function rO(){return!!t5()}function rP(){let e=t5();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function rN(e){t1().addEventProcessor(e)}function rL(e){var t;let n,r,i=t1(),{user:s}=rh(i,t0()),{userAgent:a}=eU.navigator||{},o=(t={user:s,...a&&{userAgent:a},...e},n=tP(),r={sid:tT(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&tM(r,t),r),u=i.getSession();return u?.status==="ok"&&tM(u,{status:"exited"}),rM(),i.setSession(o),o}function rM(){let e,t=t1(),n=t0().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),tM(n,e)),rj(),t.setSession()}function rj(){let e=t1(),t=t5(),n=e.getSession();n&&t&&t.captureSession(n)}function r$(e=!1){e?rM():rj()}let rD=[];function rB(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function rU(e,t,n){if(!n[t.name]){if(n[t.name]=t,rD.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),rD.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))})}}function rz(e){let t=t5();t&&t.addIntegration(e)}let rW=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],rq=(e={})=>{let t;return{name:"EventFilters",setup(n){t=rH(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=rH(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&tE(n,t)}(e,t.ignoreTransactions))return!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&(function(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t})(n).some(e=>tE(e,r)))return!0;
4if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)||function(e,t){if(!t?.length)return!1;let n=rY(e);return!!n&&tE(n,t)}(e,t.denyUrls)||!function(e,t){if(!t?.length)return!0;let n=rY(e);return!n||tE(n,t)}(e,t.allowUrls))return!0}return!1}(n,t)?n:null)}},rF=(e={})=>({...rq(e),name:"InboundFilters"});function rH(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:rW],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function rY(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return null}}let rJ=new WeakMap,rG=()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=new Proxy(e,{apply(e,t,n){let r=tr(t),i=t;try{rJ.has(t5())&&r&&(i=r)}catch{}return Reflect.apply(e,i,n)}})}catch{}},setup(e){rJ.set(e,!0)}}),rV=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r,i,s,a,o;let u,l,c,p;if(n=t,(r=e)&&(i=n,s=r,u=i.message,l=s.message,(u||l)&&(!u||l)&&(u||!l)&&u===l&&rQ(i,s)&&rK(i,s)&&1||(a=n,o=r,c=rX(o),p=rX(a),c&&p&&c.type===p.type&&c.value===p.value&&rQ(a,o)&&rK(a,o))))return null}catch{}return e=t}}};function rK(e,t){let n=tg(e),r=tg(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function rQ(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function rX(e){return e.exception?.values?.[0]}function rZ(e){t0().setClient(e)}function r0(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function r1(e,t,n){let r;return t||`${r0(e)}${e.projectId}/envelope/?${r={sentry_version:"7"},e.publicKey&&(r.sentry_key=e.publicKey),n&&(r.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(r).toString()}`}function r2(e){return tt(e,"_streamed",!0),e}function r3(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}function r4(e,t=[]){return[e,t]}function r5(e,t){let[n,r]=e;return[n,[...r,t]]}function r6(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function r7(e,t){return r6(e,(e,n)=>t.includes(n))}function r9(e){let t=eW(eU);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function r8(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[r9(r),e]:r.push("string"==typeof e?r9(e):e)}for(let e of n){let[t,n]=e;if(i(` 5${JSON.stringify(t)} 6`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(ty(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)}let ie={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function it(e){return e in ie?ie[e]:e}function ir(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ii(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&tk(e.description,r))return!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&tk(e.description,r.name),s=!r.op||e.op&&tk(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?tk(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&s&&a)return!0}return!1}let is=0;function ia(e){let t=Math.floor(1e3*e);void 0!==m&&t!==m&&(is=0);let n=is;return is++,m=t,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}function io(e,t){return t?t3(t,()=>{let n=rt(),r=n?nq(n):t6(t);return[n?rc(n):rl(e,t),r]}):[void 0,void 0]}let iu={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var il=n(65364);function ic(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==il?il:0))||(e=eU.process,e?.type==="renderer"))}function ip(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function id(e,t){var n;let r=im(),i=(n=e,im().get(n));void 0===i?r.set(e,[t]):i.length>=100?(i_(e,i),r.set(e,[t])):r.set(e,[...i,t])}function ih(e,t=t0(),n=id){let r=t?.getClient()??t5();if(!r)return;let{release:i,environment:s,enableLogs:a=!1,beforeSendLog:o}=r.getOptions();if(!a)return;let[,u]=io(r,t),l={...e.attributes},{user:{id:c,email:p,username:d},attributes:f={}}=rh(t1(),t);ip(l,"user.id",c,!1),ip(l,"user.email",p,!1),ip(l,"user.name",d,!1),ip(l,"sentry.release",i),ip(l,"sentry.environment",s);let{name:h,version:_}=r.getSdkMetadata()?.sdk??{};ip(l,"sentry.sdk.name",h),ip(l,"sentry.sdk.version",_);let m=r.getIntegrationByName("Replay"),g=m?.getReplayId(!0);ip(l,"sentry.replay_id",g),g&&m?.getRecordingMode()==="buffer"&&ip(l,"sentry._internal.replay_is_buffering",!0);let y=e.message;
6if(e2(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(l["sentry.message.template"]=e),t.forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=e})}let v=tW(t);ip(l,"sentry.trace.parent_span_id",v?.spanContext().spanId);let b={...e,attributes:l};r.emit("beforeCaptureLog",b);let S=o?eY(()=>o(b)):b;if(!S)return void r.recordDroppedEvent("before_send","log_item",1);let{level:x,message:w,attributes:k={},severityNumber:E}=S,T=tP(),I=ia(T);n(r,{timestamp:T,level:x,body:ig(String(w)),trace_id:u?.trace_id,severity_number:E??iu[x],attributes:function(e){let t={};for(let[n,r]of Object.entries(e)){let e=ig(n);"string"===r.type?t[e]={...r,value:ig(r.value)}:t[e]=r}return t}({...nE(f),...nE(k,!0),[I.key]:I.value})}),r.emit("afterCaptureLog",S)}function i_(e,t){var n,r,i,s,a;let o,u,l=t??(a=e,im().get(a))??[];if(0===l.length)return;let c=e.getOptions(),p=(n=c._metadata,r=c.tunnel,i=e.getDsn(),s=e.getDataCollectionOptions().userInfo,o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=nv(i)),r4(o,[(u=s?"auto":"never",[{type:"log",item_count:l.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...ic()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:l}])]));im().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(p)}function im(){return eq("clientToLogBufferMap",()=>new WeakMap)}function ig(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}function iy(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function iv(e,t){var n;let r=iS(),i=(n=e,iS().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(ib(e,i),r.set(e,[t])):r.set(e,[...i,t])}function ib(e,t){var n,r,i,s,a;let o,u,l=t??(a=e,iS().get(a))??[];if(0===l.length)return;let c=e.getOptions(),p=(n=c._metadata,r=c.tunnel,i=e.getDsn(),s=e.getDataCollectionOptions().userInfo,o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=nv(i)),r4(o,[(u=s?"auto":"never",[{type:"trace_metric",item_count:l.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...ic()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:l}])]));iS().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(p)}function iS(){return eq("clientToMetricBufferMap",()=>new WeakMap)}function ix(e){return"stream"===e.getOptions().traceLifecycle}function iw(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let ik=Symbol.for("SentryBufferFullError");function iE(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return t8(ik);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return t9(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>iw(setTimeout(()=>t(!1),e)))]):n}}}function iT(e,t=tu()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function iI(e,t,n=iE(e.bufferSize||64)){let r={};return{send:function(i){let s=[];if(r6(i,(t,n)=>{let i=it(n);!function(e,t,n=tu()){return(e[t]||e.all||0)>n}(r,i)?s.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===s.length)return Promise.resolve({});let a=r4(i[0],s),o=t=>{r7(a,["client_report"])||r6(a,(n,r)=>{e.recordDroppedEvent(t,it(r))})};return n.add(()=>t({body:r8(a)}).then(e=>(413===e.statusCode?o("send_error"):r=function(e,{statusCode:t,headers:n},r=tu()){let i={...e},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=r+o):i[e]=r+o;else i.all=r+o}else a?i.all=r+iT(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw o("network_error"),e})).then(e=>e,e=>{if(e===ik)return o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}let iC="[Filtered]",iA=["forwarded","-ip","remote-","via","-user"],iR=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],iO=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],iP={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
6,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},iN=Symbol.for("SentryInternalError"),iL=Symbol.for("SentryDoNotSendEventError");function iM(e){return{message:e,[iN]:!0}}function ij(e){return{message:e,[iL]:!0}}function i$(e,t,n,r,i){let s,a=0,o=!1;e.on(n,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,t=>{if((a+=r(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,s=iw(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class iD{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=iE(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?iP:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:iA},httpHeaders:{request:{deny:iA},response:{deny:iA}},httpBodies:[],urlQueryParams:{deny:iA},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn&&(this._dsn=nw(e.dsn)),this._dsn){const t=r1(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:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&i$(this,"afterCaptureLog","flushLogs",iq,i_),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&i$(this,"afterCaptureMetric","flushMetrics",iW,ib)}captureException(e,t,n){let r=tT();if(tR(e))return r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:tT(),...n},s=e2(e)?e:String(e),a=e3(e),o=a?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,r)),a?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=tT();if(t?.originalException&&tR(t.originalException))return r;let i={event_id:r,...t},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,o=s.capturedSpanIsolationScope,u=iB(e.type);return this._process(()=>this._captureEvent(e,i,a||n,o),u),i.event_id}captureSession(e){this.sendSession(e),tM(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),rU(this,e,this._integrations),t||rB(this,[e])}sendEvent(e,t={}){var n,r,i;let s,a,o,u;
6this.emit("beforeSendEvent",e,t);let l=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||ix(t))return;let n=[],r=[];for(let t of e.spans)if(t.op?.startsWith("gen_ai."))n.push(nX({trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:t.status&&"ok"!==t.status&&"cancelled"!==t.status?"error":"ok",is_segment:!1,attributes:{...t.data},links:t.links}));else r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...ic()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),c=(n=this._dsn,r=this._options._metadata,i=this._options.tunnel,s=ir(r),a=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,r?.sdk),o=e.sdkProcessingMetadata?.dynamicSamplingContext,u={event_id:e.event_id,sent_at:new Date(tu()).toISOString(),...s&&{sdk:s},...!!i&&n&&{dsn:nv(n)},...o&&{trace:o}},delete e.sdkProcessingMetadata,r4(u,[[{type:a},e]]));for(let e of t.attachments||[])c=r5(c,function(e){let t="string"==typeof e.data?r9(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));l&&(c=r5(c,l)),this.sendEnvelope(c).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let i,{release:s,environment:a=t7}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!s)return;t.release=t.release||s,t.environment=t.environment||a,e.attrs=t}else{if(!e.release&&!s)return;e.release=e.release||s,e.environment=e.environment||a}this.emit("beforeSendSession",e);let o=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=ir(n),r4({sent_at:new Date(tu()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:nv(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(o)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){}return{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&rU(e,n,t)}),t),rB(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(tM(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(function(e,t,n,r,i,s){var a,o,u;let l,{normalizeDepth:c=3,normalizeMaxBreadth:p=1e3}=e,d={...t,event_id:t.event_id||n.event_id||tT(),timestamp:t.timestamp||tO()},f=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||t7,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=tS(a.url,s)),s&&e.exception?.values?.forEach(e
6=>{e.value&&(e.value=tS(e.value,s))})})(d,e),a=d,(o=f).length>0&&(a.sdk=a.sdk||{},a.sdk.integrations=[...a.sdk.integrations||[],...o]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&(u=d,l=nt(e.stackParser),u.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=l[e.filename])})}));let h=function(e,t){if(!t)return e;let n=e?e.clone():new tq;return n.update(t),n}(r,n.captureContext);n.mechanism&&tA(d,n.mechanism);let _=i?i.getEventProcessors():[],m=rh(s,h),g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),function(e,t){var n,r,i,s,a,o,u,l;let c,p,{fingerprint:d,span:f,breadcrumbs:h,sdkProcessingMetadata:_}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),f&&((n=e).contexts={trace:nq(r=f),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:rc(r),...n.sdkProcessingMetadata},(c=nV(n8(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=c)),i=e,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=e,o=h,p=[...a.breadcrumbs||[],...o],a.breadcrumbs=p.length?p:void 0,u=e,l=_,u.sdkProcessingMetadata={...u.sdkProcessingMetadata,...l}}(d,m);let y=[..._,...m.eventProcessors];return(n.data&&!0===n.data.__sentry__?t9(d):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let s=r[i];if(!t||!s)return t;let a=s({...t},n);return e7(a)?a.then(t=>e(t,n,r,i+1)):e(a,n,r,i+1)}(t,n,e,r);return e7(i)?i:t9(i)}catch(e){return t8(e)}}(y,d,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof c&&c>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:ty(e.data,t,n)}}))},...e.user&&{user:ty(e.user,t,n)},...e.contexts&&{contexts:ty(e.contexts,t,n)},...e.extra&&{extra:ty(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ty(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:ty(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=ty(e.contexts.flags,3,n)),r}(e,c,p):e)})(i,e,t,n,this,r).then(e=>
6(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...t6(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:rl(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=t0(),r=t1()){return this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:s}=i,a=iz(e),o=iU(e),u=e.type||"error",l=`before send for type \`${u}\``,c=void 0===s?void 0:n$(s);if(o&&"number"==typeof c&&to()>c)return this.recordDroppedEvent("sample_rate","error"),t8(ij(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let p=iB(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),ij("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(e7(e))return e.then(e=>{if(!e4(e)&&null!==e)throw iM(n);return e},e=>{throw iM(`${t} rejected with ${e}`)});if(!e4(e)&&null!==e)throw iM(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!r3(t.beforeSendSpan)&&t.beforeSendSpan,u=n;if(iU(u)&&i)return i(u,r);if(iz(u)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[np],exclusive_time:a?.[nd],measurements:e.measurements,is_segment:!0}}(u);if(a?.length&&ii({description:t.description,op:t.op,attributes:t.data},a))return null;if(o){let e=o(t);if(e)u=tj(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[np]:e.profile_id},...e.exclusive_time&&{[nd]:e.exclusive_time}}}},measurements:e.measurements});else rn()}if(u.spans){let t=[],n=u.spans;for(let e of n){if(a?.length&&ii({description:e.description,op:e.op,attributes:e.data},a)){!function(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)}(n,e);continue}if(o){let n=o(e);n?t.push(n):(rn(),t.push(e))}else t.push(e)}let r=u.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),u.spans=t}}if(s){if(u.spans){let e=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(u,r)}}return u}(this,i,e,t),l)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",p),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ij(`${l} returned \`null\`, will not send event.`)}let s=n.getSession()||r.getSession();if(o&&s&&this._updateSessionFromEvent(s,i),a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let u=i.transaction_info;return a&&u&&i.transaction!==e.transaction&&(i.transaction_info={...u,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{var t,n;if(e5(t=e)&&iL in t||e5(n=e)&&iN in n)throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),iM(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 7Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===ik&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let n=r4((e=this._options.tunnel&&nv(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:tO(),discarded_events:t}]]);this.sendEnvelope(n)}}function iB(e){return"replay_event"===e?"replay":e||"error"}function iU(e){return void 0===e.type}function iz(e){return"transaction"===e.type}function iW(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+iF(e.attributes)}function iq(e){let t=0;return e.message&&(t+=2*e.message.length),t+iF(e.attributes)}function iF(e){if(!e)return 0;let t=0;
7return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*iH(e[0]):e3(e)?t+=iH(e):t+=100}),t}function iH(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function iY(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function iJ(e){return eQ(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function iG(e,t){var n,r;let i,s,a=iK(e,t),o={type:(n=t,!(i=n?.name)&&iX(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,s=r?.message,iX(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?iJ(s.error):iJ(r):"No error message")};return a.length&&(o.stacktrace={frames:a}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function iV(e,t){return{exception:{values:[iG(e,t)]}}}function iK(e,t){var n,r;let i=t.stacktrace||t.stack||"",s=(n=t)&&iQ.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,s,a)}catch{}return[]}let iQ=/Minified React error #\d+;/i;function iX(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function iZ(e,t,n,r){let i=i1(e,t,n?.syntheticException||void 0,r);return tA(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),t9(i)}function i0(e,t,n="info",r,i){let s=i2(e,t,r?.syntheticException||void 0,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),t9(s)}function i1(e,t,n,r,i){let s;if(eZ(t)&&t.error)return iV(e,t.error);if(e0(t)||eX(t,"DOMException")){if("stack"in t){s=iV(e,t);let i=s.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=iK(e,n);t.length&&(i.stacktrace={frames:t},tA(s,{synthetic:!0}))}}else{let i=t.name||(e0(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;tC(s=i2(e,a,n,r),a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return eQ(t)?iV(e,t):(e4(t)||e6(t)?tA(s=function(e,t,n,r){let i=t5(),s=i?.getOptions().normalizeDepth,a=Object.values(t).find(e=>e instanceof Error),o={__serialized__:function e(t,n=3,r=102400){let i=ty(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,s)};if(a)return{exception:{values:[iG(e,a)]},extra:o};let u={exception:{values:[{type:e6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n,r=((n=Object.keys(ti(e))).sort(),n[0]?n.join(", "):"[object has no keys]"),i=t?"promise rejection":"exception";if(eZ(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(e6(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${r}`}(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=iK(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,i),{synthetic:!0}):(tC(s=i2(e,t,n,r),`${t}`,void 0),tA(s,{synthetic:!0})),s)}function i2(e,t,n,r){let i={};if(r&&n){let r=iK(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),tA(i,{synthetic:!0})}if(e2(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function i3(){try{return eU.document.location.href}catch{return""}}function i4(e,t=5){if(!eU.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}let i5=eU,i6=0;function i7(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if(tr(e))return e}catch{return e}let n=function(...n){eU._sentryWrappedDepth=(eU._sentryWrappedDepth||0)+1;try{let r=n.map(e=>i7(e,t));return e.apply(this,r)}catch(e){throw i6++,setTimeout(()=>{i6--}),t3(r=>{r.addEventProcessor(e=>(t.mechanism&&(tC(e,void 0,void 0),tA(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),rm(e)}),e}finally{eU._sentryWrappedDepth=(eU._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}tn(n,e),tt(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function i9(){let e=i3(),{referrer:t}=i5.document||{},{userAgent:n}=i5.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class i8 extends iD{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:i5.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);!function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:eB})),i.version=eB)}(t,"browser",["browser"],i5.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;i5.document&&i5.document.addEventListener("visibilitychange",()=>{"hidden"===i5.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",iY)}eventFromException(e,t){return iZ(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return i0(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let se={},st={};function sn(e,t){return se[e]=se[e]||[],se[e].push(t),()=>{let n=se[e];
7if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function sr(e,t){if(!st[e]){st[e]=!0;try{t()}catch(e){}}}function si(e,t){let n=e&&se[e];if(n)for(let e of n)try{e(t)}catch(e){}}let ss=new Set([]);function sa(e){let t="console",n=sn(t,e);return sr(t,su),n}let so=new Set;function su(){"console"in eU&&eF.forEach(function(e){!so.has(e)&&e in eU.console&&(so.add(e),te(eU.console,e,function(t){return eH[e]=t,function(...t){let n=t[0],r=eH[e],i=ss.size&&"string"==typeof n&&tE(n,ss);i||si("console",{args:t,level:e}),i||r?.apply(eU.console,t)}}))})}function sl(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function sc(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eU))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(sl(eU.fetch))return!0;let e=!1,t=eU.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=sl(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){}return e}function sp(e,t){let n="fetch",r=sn(n,e);return sr(n,()=>sd(void 0,t)),r}function sd(e,t=!1){(!t||sc())&&te(eU,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:sm(t),method:s_(n,"method")?String(n.method).toUpperCase():e8(t)&&s_(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:sm(t),method:s_(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:s},startTimestamp:1e3*tP(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(e8(t))return new Headers(t.headers)}catch{}}(n)};return e||si("fetch",{...a}),t.apply(eU,n).then(async t=>(e?e(t):si("fetch",{...a,endTimestamp:1e3*tP(),response:t}),t),e=>{si("fetch",{...a,endTimestamp:1e3*tP(),error:e}),eQ(e)&&void 0===e.stack&&(e.stack=r.stack,tt(e,"framesToPop",1));let t=t5(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:tt(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function sf(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function sh(e){let t;try{t=e.clone()}catch{return}sf(t,()=>{si("fetch-body-resolved",{endTimestamp:1e3*tP(),response:e})})}function s_(e,t){return e5(e)&&!!e[t]}function sm(e){return"string"==typeof e?e:e?s_(e,"url")?e.url:e.toString?e.toString():"":""}function sg(e,t){let n=t5(),r=t1();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=n.getOptions();if(s<=0)return;let a={timestamp:tO(),...e},o=i?eY(()=>i(a,t)):a;null!==o&&(n.emit&&n.emit("beforeAddBreadcrumb",o,t),r.addBreadcrumb(o,s))}function sy(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function sv(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function sb(e){return"isRelative"in e}function sS(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function sx(e){if(sb(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function sw(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function sk(e){return e.split(/[?#]/,1)[0]}function sE(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&-1!==s){let t=e.slice(s+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return e}var sT=n(20704),sI=n(44802),sC=n(33052),sA=n(25970);let sR=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,s,a,o,u;t.console&&sa((n=e,function(e){if(t5()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:sy(e.level),message:tw(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${tw(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);sg(t,{input:e.args,level:e.level})})),t.dom&&(0,sT.i)((r=e,i=t.dom,function(e){let t,n;if(t5()!==r)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof s&&(s=[s]);try{var o;let r=e.event,i=(o=r)&&o.target?r.target:r;t=(0,sA.H)(i,{keyAttrs:s,maxStringLength:a}),n=i4(i)}catch{t="<unknown>"}if(0===t.length)return;let u={category:`ui.${e.name}`,message:t};n&&(u.data={"ui.component_name":n}),sg(u,{event:e.event,name:e.name,global:e.global})})),t.xhr&&(0,sI.Mn)((s=e,function(e){if(t5()!==s)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[sI.Er];if(!t||!n||!r)return;let{method:i,url:a,status_code:o,body:u}=r,l={xhr:e.xhr,input:u,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:a,status_code:o},type:"http",level:sv(o)};s.emit("beforeOutgoingRequestBreadcrumb",c,l),sg(c,l)})),t.fetch&&sp((a=e,function(e){if(t5()!==a)return;let{startTimestamp:t,endTimestamp:n}=e;
7if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",i,r),sg(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},s={input:e.args,response:r,startTimestamp:t,endTimestamp:n},o={category:"fetch",data:i,type:"http",level:sv(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",o,s),sg(o,s)}})),t.history&&(0,sC._)((o=e,function(e){if(t5()!==o)return;let t=e.from,n=e.to,r=sw(i5.location.href),i=t?sw(t):void 0,s=sw(n);i?.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),sg({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(u=e,function(e){t5()===u&&sg({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:function(e){let{message:t,event_id:n}=e;if(t)return t;let r=tI(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}(e)},{event:e})}))}}},sO="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),sP=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&te(i5,"setTimeout",sN),t.setInterval&&te(i5,"setInterval",sN),t.requestAnimationFrame&&te(i5,"requestAnimationFrame",sL),t.XMLHttpRequest&&"XMLHttpRequest"in i5&&te(XMLHttpRequest.prototype,"send",sM);let e=t.eventTarget;e&&(Array.isArray(e)?e:sO).forEach(e=>{var n,r;let i;return n=e,r=t,i=i5[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&(te(i,"addEventListener",function(e){return function(t,i,s){var a,o,u,l;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=i7(i.handleEvent,{mechanism:{data:{handler:tm(i),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(o=this,u=t,l=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(u,l)),e.apply(this,[t,i7(i,{mechanism:{data:{handler:tm(i),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),te(i,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}})))})}}};function sN(e){return function(...t){let n=t[0];return t[0]=i7(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${tm(e)}`}}),e.apply(this,t)}}function sL(e){return function(t){return e.apply(this,[i7(t,{mechanism:{data:{handler:tm(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function sM(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&te(n,e,function(t){let n={mechanism:{data:{handler:tm(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=tr(t);return r&&(n.mechanism.data.handler=tm(r)),i7(t,n)})}),e.apply(this,t)}}var sj=n(35636);let s$=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===i5.document)return;rL({ignoreDuration:!0});let e=!1;(0,sj.k)(()=>{e||(r$(),e=!0)});let n=t1(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&r$())}),"route"===t&&(0,sC._)(({from:t,to:n})=>{t!==n&&(rL({ignoreDuration:!0}),r$(),e=!0)})}}};var sD=n(56158);function sB(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}let sU=()=>({name:"CultureContext",preprocessEvent(e){let t=sz();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=sz();t&&sB(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function sz(){try{let e=i5.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let sW=null;function sq(e){let t="error";sn(t,e),sr(t,sF)}function sF(){sW=eU.onerror,eU.onerror=function(e,t,n,r,i){return si("error",{column:r,error:i,line:n,msg:e,url:t}),!!sW&&sW.apply(this,arguments)},eU.onerror.__SENTRY_INSTRUMENTED__=!0}let sH=null;function sY(e){let t="unhandledrejection";sn(t,e),sr(t,sJ)}function sJ(){sH=eU.onunhandledrejection,eU.onunhandledrejection=function(e){return si("unhandledrejection",e),!sH||sH.apply(this,arguments)},eU.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let sG=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,sq(e=>{var t,r,i,s;let a,o,u,l,c,{stackParser:p,attachStacktrace:d}=sQ();if(t5()!==n||i6>0)return;let{msg:f,url:h,line:_,column:m,error:g}=e,y=(t=i1(p,g||f,void 0,d,!1),r=h,i=_,s=m,0===(c=(l=(u=(o=(a=t.exception=t.exception||{}).values=a.values||[])[0]=o[0]||{}).stacktrace=u.stacktrace||{}).frames=l.frames||[]).length&&c.push({colno:s,lineno:i,filename:function(e){if(e1(e)&&0!==e.length)return e.startsWith("data:")?`<${sE(e,!1)}>`:e}(r)??i3(),function:"?",in_app:!0}),t);y.level="error",ry(y,{originalException:g,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),t.onunhandledrejection&&(r=e,sY(e=>{let{stackParser:t,attachStacktrace:n}=sQ();if(t5()!==r||i6>0)return;let i=sV(e),s=e3(i)?sK(i):i1(t,i,void 0,n,!0);s.level="error",ry(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}}};function sV(e){if(e3(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function sK(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function sQ(){let e=t5();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let sX=()=>({name:"HttpContext",preprocessEvent(e){if(!i5.navigator&&!i5.location&&!i5.document)return;let t=i9(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){let t=e.attributes?.[ns];if(!i5.navigator&&!i5.location&&!i5.document)return;let n=i9();sB(e,{"url.full":"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}});function sZ(e){return Array.isArray(e.errors)}function s0(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...sZ(n)&&{is_exception_group:!0}
7,...e.mechanism,exception_id:t}}function s1(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let s2=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,s){if(!i.exception?.values||!s||!e9(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=function e(t,n,r,i,s,a,o,u){if(a.length>=r+1)return a;let l=[...a];if(e9(i[s],Error)){s0(o,u,i);let a=t(n,i[s]),c=l.length;s1(a,s,c,u),l=e(t,n,r,i[s],s,[a,...l],a,c)}return sZ(i)&&i.errors.forEach((a,c)=>{if(e9(a,Error)){s0(o,u,i);let p=t(n,a),d=l.length;s1(p,`errors[${c}]`,d,u),l=e(t,n,r,a,s,[p,...l],p,d)}}),l}(e,t,r,s.originalException,n,i.exception.values,a,0))}(iG,i.getOptions().stackParser,n,t,e,r)}}};function s3(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let s4=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,s5=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s6=/\((\S*)(?::(\d+))(?::(\d+))\)/,s7=/at (.+?) ?\(data:(.+?),/,s9=[30,e=>{let t=e.match(s7);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=s4.exec(e);if(n){let[,e,t,r]=n;return s3(e,"?",+t,+r)}let r=s5.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=s6.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=ac(r[1]||"?",r[2]);return s3(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],s8=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,at=[50,e=>{let t=s8.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ae.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=ac(n,e),s3(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],an=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ar=[40,e=>{let t=an.exec(e);return t?s3(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],ai=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,as=[10,e=>{let t=ai.exec(e);return t?s3(t[2],t[3]||"?",+t[1]):void 0}],aa=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ao=[20,e=>{let t=aa.exec(e);return t?s3(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],au=[s9,at],al=tf(...au),ac=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var ap=n(73447);function ad(e,t=(0,ap.qd)("fetch")){let n=0,r=0;async function i(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,ap.y7)("fetch"),e}finally{n-=s,r--}}return iI(e,i,iE(e.bufferSize||40))}let af=/^HTML(\w*)Element$/;function ah(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(af.test(n))return`[HTMLElement: ${(0,sA.H)(e)}]`}}function a_(e){return[rF(),rG(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=t0().getScopeData(),n=t1().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=nV(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute("gen_ai.conversation.id",r)}})}},sP(),sR(),sG(),s2(),rV(),sX(),sU(),s$()]}function am(){}function ag(e){e()}let ay="10.67.0";var av=n(14232);let ab=Object.prototype.toString;function aS(e){return"[object Object]"===ab.call(e)}function ax(e){return!!(e?.then&&"function"==typeof e.then)}var aw=n(65364);function ak(e){return eo(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FA
7LLBACK;404"].includes(e.digest)}function aE(e){return eo(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}function aT(e,t,n,r=rt()){let i=r&&n8(r);i&&i.addEvent(e,{[nl]:t,[nu]:n})}function aI(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[nu],i=n[nl];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function aC(){return eW(ez()).segmentSpanCaptureStrategy}class aA{constructor(e={}){this._traceId=e.traceId||tT(),this._spanId=e.spanId||t$(),this._startTime=e.startTimestamp||tP(),this._links=e.links,this._attributes={},this.setAttributes({[na]:"manual",[ns]: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._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(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}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===nn&&void 0!==t&&!0===this[nP]&&tt(this,nN,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=nJ(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[nP]&&this.setAttribute(nn,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[nL];return}this._endTime=nJ(e),this._onSpanEnded(),this._frozen=!0===this[nL]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ns],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:n2(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[na],profile_id:this._attributes[np],exclusive_time:this._attributes[nd],measurements:aI(this._events),is_segment:this._isStandaloneSpan&&n8(this)===this||void 0,segment_id:this._isStandaloneSpan?n8(this).spanContext().spanId:void 0,links:nH(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===n8(this),status:n3(this._status),attributes:n4(this._attributes,this._status),links:nY(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;let r=aR(t)?t:n||tP(),i=aR(t)?{}:t||{},s={name:e,time:nJ(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=t5();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=n8(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=t5();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=rc(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date(tu()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:nv(r)}},{beforeSendSpan:a,ignoreSpans:o}=t?.getOptions()||{},u=o?.length?e.filter(e=>{let t=nV(e);return!ii({description:t.description,op:t.op,attributes:t.data},o)}):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);let c=a?e=>{let t=nV(e),n=r3(a)?t:a(t);return n||(rn(),t)}:nV,p=[];for(let e of u){let t=c(e);t&&p.push([{type:"span"},t])}return r4(s,p)}([this],e)):e&&e.recordDroppedEvent("sample_rate","span"));if(!n){let e=aC();if(e){let n=nj(this).scope||t0();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&ix(e))return void e.emit("afterSegmentSpanEnd",this);let r=nj(this).scope||t0(),i=aC();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!aO(nV(this)))return;this._name||(this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=nj(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of n9(this)){var s;if(t===this||(s=t)instanceof aA&&s.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=nV(t);aO(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[nn];delete this._attributes[nc];let o=!1;
7i.forEach(e=>{delete e.data[nc],e.op?.startsWith("gen_ai.")&&(o=!0)});let u={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:u}=nV(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:u}}(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:rc(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},l=aI(this._events);return l&&Object.keys(l).length&&(u.measurements=l),u}}function aR(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function aO(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function aP(e,t,n=()=>{},r=()=>{}){var i,s,a,o;let u;try{u=e()}catch(e){throw t(e),n(),e}return i=u,s=t,a=n,o=r,e7(i)?tY(i,e=>{a(),o(e)},e=>{s(e),a()}):(a(),o(i),i)}let aN="__SENTRY_SUPPRESS_TRACING__";function aL(e,t){let n=aH();if(n.startSpan)return n.startSpan(e,t);let r=aF(e),{forceTransaction:i,parentSpan:s,scope:a}=e;return t3(a?.clone(),()=>aG(s)(()=>{let n=t0(),a=aJ(n,s),o=t5(),u=e.onlyIfParent&&!a?aW(n,o):aq({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return aV(u)&&a||tz(n,u),aP(()=>t(u),()=>{let{status:e}=nV(u);u.isRecording()&&(!e||"ok"===e)&&u.setStatus({code:2,message:"internal_error"})},()=>{u.end()})}))}function aM(e,t){let n=aH();if(n.startSpanManual)return n.startSpanManual(e,t);let r=aF(e),{forceTransaction:i,parentSpan:s,scope:a}=e;return t3(a?.clone(),()=>aG(s)(()=>{let n=t0(),a=aJ(n,s),o=e.onlyIfParent&&!a?aW(n,t5()):aq({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return aV(o)&&a||tz(n,o),aP(()=>t(o,()=>o.end()),()=>{let{status:e}=nV(o);o.isRecording()&&(!e||"ok"===e)&&o.setStatus({code:2,message:"internal_error"})})}))}function aj(e){let t=aH();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=aF(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>t3(e.scope,t):void 0!==r?e=>aD(r,e):e=>e())(()=>{let i=t0(),s=aJ(i,r),a=t5();return e.onlyIfParent&&!s?aW(i,a):aq({parentSpan:s,spanArguments:t,forceTransaction:n,scope:i})})}(e)}let a$=(e,t)=>
7{var n;let r,i=tZ(ez());if(i.continueTrace)return i.continueTrace(e,t);let{sentryTrace:s,baggage:a}=e,o=t5(),u=nh(a);return o&&(n=u?.org_id,r=nx(o),n&&r&&n!==r?(eJ(`Won't continue trace because org IDs don't match (incoming baggage: ${n}, SDK options: ${r})`),1):o.getOptions().strictTraceContinuation&&(n&&!r||!n&&r)&&(eJ(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${n}, Sentry client: ${r})`),1))?az(t):t3(e=>{let n=nB(s,a);return e.setPropagationContext(n),tz(e,void 0),t()})};function aD(e,t){let n=aH();return n.withActiveSpan?n.withActiveSpan(e,t):t3(n=>(tz(n,e||void 0),t(n)))}function aB(e){let t=aH();return t.suppressTracing?t.suppressTracing(e):t3(t=>{t.setSDKProcessingMetadata({[aN]:!0});let n=e();return t.setSDKProcessingMetadata({[aN]:void 0}),n})}function aU(e=t0()){let t=aH();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[aN]}function az(e){let t=aH();return t.startNewTrace?t.startNewTrace(e):t3(t=>(t.setPropagationContext({traceId:tT(),sampleRand:to()}),aD(null,e)))}function aW(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new rs({traceId:e.getPropagationContext().traceId});return nM(n,e,t1()),n}function aq({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i,s;let a,o,u=t1();if(!nk()){let t={...u.getPropagationContext(),...r.getPropagationContext()},i=new rs({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&n7(e,i),nM(i,r,u),i}let l=t5();if(i=l,s=t,a=i?.getOptions().ignoreSpans,i&&ix(i)&&a?.length&&ii({description:s.name||"",op:s.attributes?.[ns]||s.op,attributes:s.attributes},a)){aU(r)||l?.recordDroppedEvent("ignored","span");let t=new rs({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&n7(e,t),nM(t,r,u),t}if(e&&!n)o=function(e,t,n,r){let{spanId:i,traceId:s}=e.spanContext(),a=aU(t),o=!a&&n1(e),u=o?new aA({...n,parentSpanId:i,traceId:s,sampled:o}):new rs({traceId:s});n7(e,u),nM(u,t,r);let l=t5();return l&&(ix(l)&&ra(u)&&(ra(e)&&e.dropReason?(u.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):a||(u.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",u),n.endTimestamp&&(l.emit("spanEnd",u),l.emit("afterSpanEnd",u))),u}(e,r,t,u),n7(e,o);else if(e){let n=rc(e),{traceId:i,spanId:s}=e.spanContext(),a=n1(e);tt(o=aY({traceId:i,parentSpanId:s,...t},r,u,a),ro,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...u.getPropagationContext(),...r.getPropagationContext()};o=aY({traceId:e,parentSpanId:i,...t},r,u,s),n&&tt(o,ro,n)}return o}function aF(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=nJ(e.startTime),delete n.startTime,n}return t}function aH(){return tZ(ez())}function aY(e,t,n,r){let i=t5(),s=i?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};i?.emit("beforeSampling",o,{decision:!1});let u=o.parentSampled??r,l=o.spanAttributes,c=t.getPropagationContext(),p=aU(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!nk(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let s=n$(r);if(void 0===s)return[!1];if(!s)return[!1,s,i];let a=n<s;return[a,s,i]}(s,{name:a,parentSampled:u,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:n$(c.dsc?.sample_rate)},c.sampleRand),_=new aA({...e,attributes:{[nn]:"custom",[nr]:void 0!==f&&h?f:void 0,...l},sampled:d});return d||!i||p||i.recordDroppedEvent("sample_rate",ix(i)?"span":"transaction"),nM(_,t,n),i&&i.emit("spanStart",_),_}function aJ(e,t){if(t)return t;if(null===t)return;let n=tW(e);if(!n)return;let r=t5();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?n8(n):n}function aG(e){return void 0!==e?t=>aD(e,t):e=>e()}function aV(e){return ra(e)&&"ignored"===e.dropReason}let aK={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function aQ(e,t={}){let n,r,i=new Map,s=!1,a="externalFinish",o=!t.disableAutoFinish,u=[],{idleTimeout:l=aK.idleTimeout,finalTimeout:c=aK.finalTimeout,childSpanTimeout:p=aK.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,h=t5(),_=t0();if(!h||!nk()){let e=new rs({traceId:_.getPropagationContext().traceId});return nM(e,_,t1()),e}let m=rt(),g=(n=aj(e),tz(t0(),n),n);function y(){r&&(clearTimeout(r),r=void 0)}function v(e){y(),r=setTimeout(()=>{!s&&0===i.size&&o&&(a="idleTimeout",g.end(e))},l)}function b(e){r=setTimeout(()=>{!s&&o&&(a="heartbeatFailed",g.end(e))},p)}
7function S(e){s=!0,i.clear(),u.forEach(e=>e()),tz(_,m);let t=nV(g),{start_timestamp:n}=t;if(!n)return;t.data[no]||g.setAttribute(no,a);let r=t.status;r&&"unknown"!==r||g.setStatus({code:1}),eJ(`[Tracing] Idle span "${t.op}" finished`);let o=n9(g).filter(e=>e!==g),p=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e));let{timestamp:n=0,start_timestamp:r=0}=nV(t),i=r<=e;(!(n-r<=(c+l)/1e3)||!i)&&(g[n5]&&g[n5].delete(t),p++)}),p>0&&g.setAttribute("sentry.idle_span_discarded_spans",p)}return g.end=new Proxy(g.end,{apply(e,t,n){if(d&&d(g),ra(t))return;let[r,...i]=n,s=nJ(r||tP()),a=n9(g).filter(e=>e!==g),o=nV(g);if(!a.length||!f)return S(s),Reflect.apply(e,t,[s,...i]);let u=h.getOptions().ignoreSpans,l=a?.reduce((e,t)=>{let n=nV(t);return!n.timestamp||u&&ii({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),p=o.start_timestamp,_=Math.min(p?p+c/1e3:1/0,Math.max(p||-1/0,Math.min(s,l||1/0)));return S(_),Reflect.apply(e,t,[_,...i])}}),u.push(h.on("spanStart",e=>{var t;!(s||e===g||nV(e).timestamp||e instanceof aA&&e.isStandaloneSpan())&&n9(g).includes(e)&&(t=e.spanContext().spanId,y(),i.set(t,!0),b(tP()+p/1e3))})),u.push(h.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&v(tP()+l/1e3)}})),u.push(h.on("idleSpanEnableAutoFinish",e=>{e===g&&(o=!0,v(),i.size&&b())})),t.disableAutoFinish||v(),setTimeout(()=>{s||(g.setStatus({code:2,message:"deadline_exceeded"}),a="finalTimeout",g.end())},c),g}let aX=!1;function aZ(){aX||(aX=!0,sq(e),sY(e));function e(){let e=rt(),t=e&&n8(e);t&&t.setStatus({code:2,message:"internal_error"})}}var a0=n(40020),a1=n(55301),a2=n(70079),a3=n(23665),a4=n(45911),a5=n(87177);function a6(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=a6(r[e],t[e],n-1));return r}function a7(){return(0,a3.eJ)()}function a9(){return(0,a3.eJ)().substring(16)}var a8=n(46098),oe=n(92074),ot=n(77688);function on(e){try{let t=ot.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function or(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}let oi="_sentrySpan";function os(e,t){t?(0,oe.my)(e,oi,on(t)):delete e[oi]}function oa(e){return or(e[oi])}function oo(e,t,n=!1){return!!(0,a5.Kg)(e)&&((0,a5.gd)(t)?t.test(e):(0,a5.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}class ou{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:a7(),sampleRand:(0,a8.hY)()}}clone(){let e=new ou;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,os(e,oa(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&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,a0.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,a3.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:c}=(t instanceof ou?t.getScopeData():(0,a5.Qd)(t)?e: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),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),c&&
7(this._conversationId=c),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,os(this,void 0),this._attachments=[],this.setPropagationContext({traceId:a7(),sampleRand:(0,a8.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,a0.lu)(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:oa(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=a6(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||(0,a3.eJ)();if(!this._client)return a2.T&&a4.Yz.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||(0,a3.eJ)();if(!this._client)return a2.T&&a4.Yz.warn("No client configured on scope - will not capture message!"),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||(0,a3.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):a2.T&&a4.Yz.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)}}let ol=e=>e instanceof Promise&&!e[oc],oc=Symbol("chained PromiseLike");class op{constructor(e,t){let n,r;n=e||new ou,r=t||new ou,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}if((0,a5.Qg)(t)){var r,i,s;let e;return r=t,i=()=>this._popScope(),s=()=>this._popScope(),ol(e=r.then(e=>(i(),e),e=>{throw s(),e}))&&ol(r)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[oc]:!0}),t})(r,e)}return this._popScope(),t}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)&&!!this._stack.pop()}}function od(){let e=(0,a1.EU)(),t=(0,a1.Se)(e);return t.stack=t.stack||new op((0,a1.BY)("defaultCurrentScope",()=>new ou),(0,a1.BY)("defaultIsolationScope",()=>new ou))}function of(e){return od().withScope(e)}function oh(e,t){let n=od();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function o_(e){return od().withScope(()=>e(od().getIsolationScope()))}function om(e){let t=(0,a1.Se)(e);return t.acs?t.acs:{withIsolationScope:o_,withScope:of,withSetScope:oh,withSetIsolationScope:(e,t)=>o_(t),getCurrentScope:()=>od().getScope(),getIsolationScope:()=>od().getIsolationScope()}}function og(){return om((0,a1.EU)()).getCurrentScope()}function oy(){return om((0,a1.EU)()).getIsolationScope()}function ov(...e){let t=om((0,a1.EU)());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function ob(){return og().getClient()}let oS="sentry.source",ox="sentry.sample_rate",ow="sentry.op",ok="sentry.origin",oE="sentry.measurement_unit",oT="sentry.measurement_value",oI="sentry.custom_span_name",oC="sentry.exclusive_time",oA="_sentryScope",oR="_sentryIsolationScope",oO=Symbol.for("sentry.otelSourceInference"),oP=Symbol.for("sentry.otelSourceExplicitlySet"),oN=Symbol.for("sentry.tracerProviderSpan");function oL(e,t,n){e&&((0,oe.my)(e,oR,on(n)),(0,oe.my)(e,oA,t))}function oM(e){return{scope:e[oA],isolationScope:or(e[oR])}}let oj=!1;function o$(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function oD(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function oB(e){return"number"==typeof e?oU(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?oU(e.getTime()):(0,a0.zf)()}function oU(e){return e>0x2540be3ff?e/1e3:e}function oz(e){if(oH(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(oF(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:u}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:oq(e),start_timestamp:oB(i),timestamp:oB(a)||void 0,status:oJ(o),op:r[ow],origin:r[ok],links:o$(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function oW(e){if(oH(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(oF(e)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:u}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:oq(e),start_timestamp:oB(i),end_timestamp:oB(a),is_segment:e===o0(e),status:oG(o),attributes:oV(r,o),links:oD(u)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===o0(e)}}function oq(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function oF(e){return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function oH(e){return"function"==typeof e.getSpanJSON}function oY(e){let{traceFlags:t}=e.spanContext();return 1===t}function oJ(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function oG(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}function oV(e,t){let n="error"===oG(t)?t?.message:void 0;return{...n&&{"sentry.status.message":n},...e}}let oK="_sentryChildSpans",oQ="_sentryRootSpan";function oX(e,t){let n=e[oQ]||e;(0,oe.my)(t,oQ,n),e[oK]?e[oK].add(t):(0,oe.my)(e,oK,new Set([t]))}let oZ=o0;function o0(e){return e[oQ]||e}function o1(){let e=om((0,a1.EU)());return e.getActiveSpan?e.getActiveSpan():oa(og())}let o2=ot.O;function o3(e,t,n,r=o1()){let i=r&&oZ(r);i&&(a2.T&&a4.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[oT]:t,[oE]:n}))}function o4(e){if(!e||0===e.length)return;let t={};
7return e.forEach(e=>{let n=e.attributes||{},r=n[oE],i=n[oT];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}var o5=n(29387),o6=n(74848),o7=n(2489);function o9(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||ob()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function o8(e){a4.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ue(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&oo(e.description,r))return a2.T&&o8(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&oo(e.description,r.name),s=!r.op||e.op&&oo(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?oo(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&s&&a)return a2.T&&o8(e),!0}return!1}function ut(e){return"stream"===e.getOptions().traceLifecycle}function un(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let ur="sentry-";function ui(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}let us=/^o(\d+)\./;function ua(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=e;return`${o}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}let uo=Symbol.for("sentry.nonRecordingSpan");class uu{constructor(e={}){this._traceId=e.traceId||a7(),this._spanId=e.spanId||a9(),this.dropReason=e.dropReason,(0,oe.my)(this,uo,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}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){}}function ul(e){return!!e&&!0===e[uo]}let uc="_frozenDsc";function up(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:function(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(us),t=e?.[1])}return t}(t)};return t.emit("createDsc",i),i}function ud(e,t){let n=t.getPropagationContext();return n.dsc||up(n.traceId,e)}function uf(e){let t=ob();if(!t)return{};let n=oZ(e),r=oz(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[ox]??i["sentry.previous_trace_sample_rate"];function o(e){return("number"==typeof a||"string"==typeof a)&&(e.sample_rate=`${a}`),e}let u=n[uc];if(u)return o(u);let l=ul(n),c=l&&"ignored"===n.dropReason;if(l&&(!o9(t.getOptions())||c)){let e=oM(n).scope;if(e){let n={...ud(t,e)};return c&&(n.sampled="false"),o(n)}}let p=s?.get("sentry.dsc"),d=p&&function(e){let t=function(e){if(e&&((0,a5.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(ui(t)).forEach(([t,n])=>{e[t]=n}),e),{}):ui(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(ur)&&(e[t.slice(ur.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}(p);if(d)return o(d);let f=up(e.spanContext().traceId,t),h=i[oS]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),o9()&&(f.sampled=String(oY(n)),f.sample_rand=s?.get("sentry.sample_rand")??oM(n).scope?.getPropagationContext().sampleRand.toString()),o(f),t.emit("createDsc",f,n),f}function uh(e,t=[]){return[e,t]}function u_(){return(0,a1.Se)((0,a1.EU)()).segmentSpanCaptureStrategy}class um{constructor(e={}){this._traceId=e.traceId||a7(),this._spanId=e.spanId||a9(),this._startTime=e.startTimestamp||(0,a0.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[ok]:"manual",[ow]: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()}
7addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(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}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===oS&&void 0!==t&&!0===this[oO]&&(0,oe.my)(this,oP,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=oB(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[oO]&&this.setAttribute(oS,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[oN];return}this._endTime=oB(e),function(e){if(!a2.T)return;let{description:t="< unknown name >",op:n="< unknown op >"}=oz(e),{spanId:r}=e.spanContext(),i=oZ(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;a4.Yz.log(s)}(this),this._onSpanEnded(),this._frozen=!0===this[oN]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ow],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:oJ(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ok],profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[oC],measurements:o4(this._events),is_segment:this._isStandaloneSpan&&oZ(this)===this||void 0,segment_id:this._isStandaloneSpan?oZ(this).spanContext().spanId:void 0,links:o$(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===oZ(this),status:oG(this._status),attributes:oV(this._attributes,this._status),links:oD(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;a2.T&&a4.Yz.log("[Tracing] Adding an event to span:",e);let r=ug(t)?t:n||(0,a0.zf)(),i=ug(t)?{}:t||{},s={name:e,time:oB(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=ob();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=oZ(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=ob();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=uf(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date((0,a8.Wk)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:ua(r)}},{beforeSendSpan:a,ignoreSpans:o}=t?.getOptions()||{},u=o?.length?e.filter(e=>{let t=oz(e);return!ue({description:t.description,op:t.op,attributes:t.data},o)}):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);let c=a?e=>{let t=oz(e),n=a&&"function"==typeof a&&"_streamed"in a&&a._streamed?t:a(t);return n||(oj||((0,a4.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),oj=!0),t)}:oz,p=[];for(let e of u){let t=c(e);t&&p.push([{type:"span"},t])}return uh(s,p)}([this],e)):(a2.T&&a4.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=u_();if(e){let n=oM(this).scope||og();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&ut(e))return void e.emit("afterSegmentSpanEnd",this);let r=oM(this).scope||og(),i=u_();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){let t;if(!uy(oz(this)))return;this._name||(a2.T&&a4.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:n,isolationScope:r}=oM(this),i=n?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let s=[];for(let n of(t=new Set,!function e(n){if(!t.has(n)&&oY(n))for(let r of(t.add(n),n[oK]?Array.from(n[oK]):[]))e(r)}(this),Array.from(t))){var a;if(n===this||(a=n)instanceof um&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(n))continue;let t=oz(n);uy(t)&&(e.onSpanCaptured?.(n),s.push(t))}let o=this._attributes[oS];delete this._attributes[oI];let u=!1;
7s.forEach(e=>{delete e.data[oI],e.op?.startsWith("gen_ai.")&&(u=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:u}=oz(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:u}}(this)},spans:s.length>1e3?s.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:uf(this),hasGenAiSpans:u},request:i,...o&&{transaction_info:{source:o}}},c=o4(this._events);return c&&Object.keys(c).length&&(a2.T&&a4.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function ug(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function uy(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function uv(e){let t=ux();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=oB(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>ov(e.scope,t):void 0!==r?e=>ub(r,e):e=>e())(()=>{var i,s;let a,o=og(),u=function(e,t){if(t)return t;if(null===t)return;let n=oa(e);if(!n)return;let r=ob();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?oZ(n):n}(o,r),l=ob();return e.onlyIfParent&&!u?(i=o,s=l,s?.recordDroppedEvent("no_parent_span","span"),oL(a=new uu({traceId:i.getPropagationContext().traceId}),i,oy()),a):function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i,s,a,o;let u,l,c=oy();if(!o9()){let t={...c.getPropagationContext(),...r.getPropagationContext()},i=new uu({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&oX(e,i),oL(i,r,c),i}let p=ob();if(a=p,o=t,u=a?.getOptions().ignoreSpans,a&&ut(a)&&u?.length&&ue({description:o.name||"",op:o.attributes?.[ow]||o.op,attributes:o.attributes},u)){uS(r)||p?.recordDroppedEvent("ignored","span");let t=new uu({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&oX(e,t),oL(t,r,c),t}if(e&&!n)l=function(e,t,n,r){let{spanId:i,traceId:s}=e.spanContext(),a=uS(t),o=!a&&oY(e),u=o?new um({...n,parentSpanId:i,traceId:s,sampled:o}):new uu({traceId:s});oX(e,u),oL(u,t,r);let l=ob();return l&&(ut(l)&&ul(u)&&(ul(e)&&e.dropReason?(u.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):a||(u.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",u),n.endTimestamp&&(l.emit("spanEnd",u),l.emit("afterSpanEnd",u))),u}(e,r,t,c),oX(e,l);else if(e){let n=uf(e),{traceId:s,spanId:a}=e.spanContext(),o=oY(e);i=l=uw({traceId:s,parentSpanId:a,...t},r,c,o),(0,oe.my)(i,uc,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...c.getPropagationContext(),...r.getPropagationContext()};l=uw({traceId:e,parentSpanId:i,...t},r,c,a),n&&(s=l,(0,oe.my)(s,uc,n))}return!function(e){if(!a2.T)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=oz(e),{spanId:i}=e.spanContext(),s=oY(e),a=oZ(e),o=a===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!o){let{op:e,description:t}=oz(a);l.push(`root ID: ${a.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}a4.Yz.log(`${u} 8 ${l.join("\n ")}`)}(l),l}({parentSpan:u,spanArguments:t,forceTransaction:n,scope:o})})}(e)}function ub(e,t){let n=ux();return n.withActiveSpan?n.withActiveSpan(e,t):ov(n=>(os(n,e||void 0),t(n)))}function uS(e=og()){let t=ux();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function ux(){return om((0,a1.EU)())}function uw(e,t,n,r){let i=ob(),s=i?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};i?.emit("beforeSampling",o,{decision:!1});let u=o.parentSampled??r,l=o.spanAttributes,c=t.getPropagationContext(),p=uS(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!o9(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let s=un(r);if(void 0===s)return a2.T&&a4.Yz.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return a2.T&&a4.Yz.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,s,i];let a=n<s;return!a&&a2.T&&a4.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[a,s,i]}(s,{name:a,parentSampled:u,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:un(c.dsc?.sample_rate)},c.sampleRand),_=new um({...e,attributes:{[oS]:"custom",[ox]:void 0!==f&&h?f:void 0,...l},sampled:d});return d||!i||p||(a2.T&&a4.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",ut(i)?"span":"transaction")),oL(_,t,n),i&&i.emit("spanStart",_),_}var uk=n(84329);function uE(e){return"number"==typeof e&&isFinite(e)}function uT(e,t,n,{...r}){let i=oz(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),ub(e,()=>{let e=uv({startTime:t,...r});return e&&e.end(n),e})}function uI(e){let t,n=ob();if(!n)return;let{name:r,transaction:i,attributes:s,startTime:a}=e,{release:o,environment:u}=n.getOptions(),{userInfo:l}=n.getDataCollectionOptions(),c=n.getIntegrationByName("Replay"),p=c?.getReplayId(),d=og(),f=d.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch{}return uv({name:r,attributes:{release:o,environment:u,user:h||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":o5.j.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...s},startTime:a,experimental:{standalone:!0}})}function uC(){return o5.j.addEventListener&&o5.j.performance}function uA(e){return e/1e3}function uR(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function uO(e,t){let n,r,i=!1;function s(e){!i&&r&&t(e,r.spanContext().spanId,r),i=!0}n=e=>{("pagehide"===e.type||o5.j.document?.visibilityState==="hidden")&&(()=>{s("pagehide")})()}
8,(0,uk.d)("visibilitychange",n,{capture:!0,once:!0}),(0,uk.d)("pagehide",n,{capture:!0,once:!0});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(s("navigation"),a(),o())}),o=e.on("afterStartPageLoadSpan",e=>{r=e,o()})}function uP(e){return null!=e&&e>0&&e<=6e4}function uN(e){return e?(((0,a0.k3)()||performance.timeOrigin)+e)/1e3:e}function uL(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,a0.k3)()||uC()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":uN(e.redirectStart),"http.request.redirect_end":uN(e.redirectEnd),"http.request.worker_start":uN(e.workerStart),"http.request.fetch_start":uN(e.fetchStart),"http.request.domain_lookup_start":uN(e.domainLookupStart),"http.request.domain_lookup_end":uN(e.domainLookupEnd),"http.request.connect_start":uN(e.connectStart),"http.request.secure_connection_start":uN(e.secureConnectionStart),"http.request.connection_end":uN(e.connectEnd),"http.request.request_start":uN(e.requestStart),"http.request.response_start":uN(e.responseStart),"http.request.response_end":uN(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}var uM=n(63571),uj=n(21453),u$=n(49115);let uD=0,uB={};function uU(){y=void 0,v=void 0,uB={}}function uz(e,t,n,r,i=n){var s;let a=t["secureConnection"===(s=n)?"connectEnd":"fetch"===s?"domainLookupStart":`${s}End`],o=t[`${n}Start`];o&&a&&uT(e,r+uA(o),r+uA(a),{op:`browser.${i}`,name:t.name,attributes:{[ok]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let uW=new WeakMap,uq=new WeakMap,uF=["text/event-stream","application/x-ndjson","application/stream+json"],uH=()=>({name:"FetchStreamPerformance",setup(){let e;sn(e="fetch-body-resolved",e=>{if(e.response){let t=uW.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=uq.get(e.response);n&&clearTimeout(n)}}}),sr(e,()=>sd(sh)),sp(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!uF.some(e=>
8t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=sS(n),s=n.startsWith("data:")?sE(n):i?sx(i):n,a=aj({name:`${r} ${s}`,startTime:e.endTimestamp,attributes:{url:sE(n),"http.method":r,type:"fetch",[ns]:"http.client.stream",[na]:"auto.http.browser.stream"}});uW.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},9e4);uq.set(e.response,o)}})}});var uY=n(65364);function uJ(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==uY?uY:0))||(e=ot.O.process,e?.type==="renderer"))}let uG=[],uV=new Map,uK=new Map,uQ={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},uX=({metric:e})=>{if(void 0==e.value)return;let t=uA(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&uQ[t.name]);if(!n)return;let{interactionId:r}=n,i=uQ[n.name],s=uA((0,a0.k3)()+n.startTime),a=o1(),o=a?oZ(a):void 0,u=null!=r?uV.get(r):void 0,l=u?.span||o,c=l?oz(l).description:og().getScopeData().transactionName,p=uI({name:u?.elementName||(0,sA.H)(n.target),transaction:c,attributes:{[ok]:"auto.http.browser.inp",[ow]:`ui.interaction.${i}`,[oC]:n.duration},startTime:s});p&&(p.addEvent("inp",{[oE]:"millisecond",[oT]:e.value}),p.end(s+t))};function uZ(e){let{name:t,op:n,origin:r,metricName:i,value:s,attributes:a,parentSpan:o,reportEvent:u,startTime:l,endTime:c}=e,p=og().getScopeData().transactionName,d={[ok]:r,[ow]:n,[oC]:0,[`browser.web_vital.${i}.value`]:s,[sD.zNS]:p,[sD.suP]:p,"user_agent.original":o5.j.navigator?.userAgent,...a};o&&oW(o).attributes?.[ow]==="pageload"&&(d["sentry.pageload.span_id"]=o.spanContext().spanId),u&&(d[`browser.web_vital.${i}.report_event`]=u);let f=uv({name:t,attributes:d,startTime:l,parentSpan:o});f&&f.end(c??l)}let u0="WebVitals",u1=(e={})=>{let t=new Set(e.ignore??[]);return{name:u0,setup(n){let r=ix(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:s}=e._experiments??{},a=r||t.has("cls")?void 0:i||!1,o=r||t.has("lcp")?void 0:s||!1,u=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=uC();if(r&&(0,a0.k3)()){r.mark&&o5.j.performance.mark("sentry-tracing-init");let i=t?function(e){let t,n=0;if(!uR("largest-contentful-paint"))return;let r=(0,o7.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&uP(e.value)&&(n=e.value,t=r)},!0);uO(e,(e,i)=>{(function(e,t,n,r){if(!uP(e))return;o6.T&&a4.Yz.log(`Sending LCP span (${e})`);let i=uA(((0,a0.k3)()||0)+(t?.startTime||0)),s=og().getScopeData().transactionName,a=t?(0,sA.H)(t.element):"Largest contentful paint",o={[ok]:"auto.http.browser.lcp",[ow]:"ui.webvital.lcp",[oC]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=(0,sA.H)(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),null!=t.loadTime&&(o["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(o["lcp.renderTime"]=t.renderTime),null!=t.size&&(o["lcp.size"]=t.size));let u=uI({name:a,transaction:s,attributes:o,startTime:i});u&&(u.addEvent("lcp",{[oE]:"millisecond",[oT]:e}),u.end(i))})(n,t,i,e),r()})}(n):!1===t?(0,o7.Pt)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&uP(e.value)&&(uB.lcp={value:e.value,unit:"millisecond"},y=t)},!0):void 0,s=e?function(e){let t,n=0;if(!uR("layout-shift"))return;let r=(0,o7.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);uO(e,(e,i)=>{var s,a,o,u;let l,c,p,d,f;s=n,a=t,o=i,u=e,o6.T&&a4.Yz.log(`Sending CLS span (${s})`),l=a?uA(((0,a0.k3)()||0)+a.startTime):(0,a0.zf)(),c=og().getScopeData().transactionName,p=a?(0,sA.H)(a.sources[0]?.node):"Layout shift",d={[ok]:"auto.http.browser.cls",[ow]:"ui.webvital.cls",[oC]:0,"sentry.pageload.span_id":o,"sentry.report_event":u}
8,a?.sources&&a.sources.forEach((e,t)=>{d[`cls.source.${t+1}`]=(0,sA.H)(e.node)}),(f=uI({name:p,transaction:c,attributes:d,startTime:l}))&&(f.addEvent("cls",{[oE]:"",[oT]:s}),f.end(l)),r()})}(n):!1===e?(0,o7.a9)(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(uB.cls={value:e.value,unit:""},v=t)},!0):void 0,a=(0,o7.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(uB.ttfb={value:e.value,unit:"millisecond"})}),o=(0,o7.wv)("paint",({entries:e})=>{let t=(0,u$.N)();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(uB.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(uB.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{a(),o(),i?.(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:a,recordLcpStandaloneSpans:o,client:n}),l=new WeakSet;n.on("afterStartPageLoadSpan",e=>{l.add(e)}),n.on("spanEnd",e=>{l.delete(e)&&(u(),function(e,t){let n=(0,a0.k3)();if(!uC()?.getEntries||!n)return uU();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:s}=t,a=uA(n);if("pageload"===oz(e).op){if(function(e){let t=(0,uj.z)(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(uB),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),o6.T&&a4.Yz.log("Setting web vital attribute",{[i]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{uB[e]&&t(e,uB[e].value)}),uB["ttfb.requestTime"]&&t("ttfb.requestTime",uB["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var o,u;
8i||delete uB.cls,s||delete uB.lcp,Object.entries(uB).forEach(([t,n])=>{o3(t,n.value,n.unit,e)}),o=e,u=t,y&&u.recordLcpOnPageloadSpan&&(y.element&&o.setAttribute("lcp.element",(0,sA.H)(y.element)),y.id&&o.setAttribute("lcp.id",y.id),y.url&&o.setAttribute("lcp.url",y.url.trim().slice(0,200)),null!=y.loadTime&&o.setAttribute("lcp.loadTime",y.loadTime),null!=y.renderTime&&o.setAttribute("lcp.renderTime",y.renderTime),o.setAttribute("lcp.size",y.size)),v?.sources&&u.recordClsOnPageloadSpan&&v.sources.forEach((e,t)=>o.setAttribute(`cls.source.${t+1}`,(0,sA.H)(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",a),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",(0,uM.b)())}uU()}(e,{recordClsOnPageloadSpan:!1===a,recordLcpOnPageloadSpan:!1===o,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!uR("largest-contentful-paint"))return;let r=(0,o7.Pt)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&uP(e.value)&&(n=e.value,t=r)},!0);uO(e,(e,i,s)=>{(function(e,t,n,r){if(!uP(e))return;o6.T&&a4.Yz.log(`Sending LCP span (${e})`);let i=(0,a0.k3)()||0,s=uA(i),a=uA(i+(t?.startTime||0)),o=t?(0,sA.H)(t.element):"Largest contentful paint",u={};t?.element&&(u["browser.web_vital.lcp.element"]=(0,sA.H)(t.element)),t?.id&&(u["browser.web_vital.lcp.id"]=t.id),t?.url&&(u["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(u["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(u["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(u["browser.web_vital.lcp.size"]=t.size),uZ({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:u,parentSpan:n,reportEvent:r,startTime:s,endTime:a})})(n,t,s,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!uR("layout-shift"))return;let r=(0,o7.a9)(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);uO(e,(e,i,s)=>{var a,o,u,l;let c,p,d;a=n,o=t,u=s,l=e,o6.T&&a4.Yz.log(`Sending CLS span (${a})`),c=o?uA(((0,a0.k3)()||0)+o.startTime):(0,a0.zf)(),p=o?(0,sA.H)(o.sources[0]?.node):"Layout shift",d={},o?.sources&&o.sources.forEach((e,t)=>{d[`browser.web_vital.cls.source.${t+1}`]=(0,sA.H)(e.node)}),uZ({name:p,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:a,attributes:d,parentSpan:u,reportEvent:l,startTime:c}),r()})}(n),!t.has("inp")&&uC()&&(0,a0.k3)()&&(0,o7.hT)(({metric:e})=>{var t,n,r;let i,s,a,o,u,l,c,p;if(null==e.value||uA(e.value)>60)return;let d=e.entries.find(t=>t.duration===e.value&&uQ[t.name]);d&&(t=e.value,n=d,o6.T&&a4.Yz.log(`Sending INP span (${t})`),i=uA((0,a0.k3)()+n.startTime),s=uA(t),a=uQ[n.name],o=null!=(r=n.interactionId)?uV.get(r):void 0,l=(u=o1())?oZ(u):void 0,p=(c=o?.span||l)?oW(c).name:og().getScopeData().transactionName,uZ({name:o?.elementName||(0,sA.H)(n.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[oC]:n.duration,[sD.zNS]:p,[sD.suP]:p},startTime:i,endTime:i+s,parentSpan:c}))})):t.has("inp")||function(){if(uC()&&(0,a0.k3)()){let e=(0,o7.hT)(uX);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(uQ);function t(e){let t=e.target;if(!t)return;let n=(0,sA.H)(t),r=Math.round(e.timeStamp);if(uK.set(r,n),uK.size>50){let e=uK.keys().next().value;void 0!==e&&uK.delete(e)}}uJ()&&e.forEach(e=>{o5.j.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>
8{let t=o1(),n=t&&oZ(t);e.forEach(e=>{if(!(0,o7.tC)(e))return;let t=e.interactionId;if(null==t||uV.has(t))return;let r=e.target?(0,sA.H)(e.target):function(e){let t=Math.round(e.startTime),n=uK.get(t);if(!n)for(let e=-5;e<=5;e++){let r=uK.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(uG.length>10){let e=uG.shift();uV.delete(e)}uG.push(t),uV.set(t,{span:n,elementName:r})})};(0,o7.wv)("event",n),(0,o7.wv)("first-input",n)}()}}},u2="sentry_previous_trace";function u3(e){return 1===e.traceFlags}function u4(e={}){let t=e.client||t5();if(!rP()||!t)return{};let n=tZ(ez());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||t0(),i=e.span||rt(),s=ra(i)&&!nk(t.getOptions());if(!i&&void 0!==p)return{};let a=i&&!s?nF(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return nU(t,r,n)}(r),o=n_(i?rc(i):rl(t,r));if(!nD.test(a))return eG("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":a,baggage:o};return e.propagateTraceparent&&(u.traceparent=i&&!s?function(e){let{traceId:t,spanId:n}=e.spanContext();return nz(t,n,n1(e))}(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return nz(t,r,n)}(r)),u}function u5(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(nf))}function u6(e,t,n,r){let i={url:sE(e),type:"fetch","http.method":n,[na]:r,[ns]:"http.client"};return t&&(sb(t)||(i["http.url"]=sE(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}var u7=n(62757);function u9(e){try{return new URL(e,i5.location.origin).href}catch{return}}function u8(e){try{return new Headers(e)}catch{return}}let le={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function lt(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:o,onRequestSpanEnd:u}={...le,...t},l="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let n=i3();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let s=r.origin===i;return t?tE(r.toString(),t)||s&&tE(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?tE(e,t):n}})(e,a),p={},d=e.getOptions().propagateTraceparent;n&&sp(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:s,url:a}=e.fetchData,o=nk()&&t(a);if(e.endTimestamp){var u,l,c;let t,n=e.fetchData.__span;if(!n)return;let s=r[n];s&&(o&&(function(e,t){if(t.response){nA(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(s,e),u=s,l=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(u,{headers:l.response?.headers,error:l.error})),delete r[n]);return}let{spanOrigin:p="auto.http.browser",propagateTraceparent:d=!1}="object"==typeof i?i:{spanOrigin:i},f=t5(),h=!!rt(),_=h||!!f&&ix(f),m=o&&_?aj(function(e,t,n){if(e.startsWith("data:")){let r=sE(e);return{name:`${t} ${r}`,attributes:u6(e,void 0,t,n)}}let r=sS(e),i=r?sx(r):e;return{name:`${t} ${i}`,attributes:u6(e,r,t,n)}}(a,s,p)):new rs,g=aV(m)&&h?void 0:m;if(o&&!_&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i,s;let a=u4({span:n,propagateTraceparent:r}),o=a["sentry-trace"],u=a.baggage,l=a.traceparent;if(!o)return;let c=t.headers||(e8(e)?e.headers:void 0);if(!c)return{...a};if(i=c,"u">typeof Headers&&e9(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&l&&!e.get("traceparent")&&e.set("traceparent",l),u){let t=e.get("baggage");t?u5(t)||e.set("baggage",`${t},${u}`):e.set("baggage",u)}return e}if(Array.isArray(s=c)&&s.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&l&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&u5(e[1]));return u&&!t&&e.push(["baggage",u]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],s=n&&(Array.isArray(n)?n.find(e=>u5(e)):u5(n));u&&!s&&i.push(u);let a=Object.assign({},c,{"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0});return r&&l&&!t&&(a.traceparent=l),a}}(t,n,nk()&&_?g:void 0,d);r&&(e.args[1]=n,n.headers=r)}if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",m,t)}return m}(t,l,c,p,{propagateTraceparent:d,onRequestSpanEnd:u});if(n){let r=u9(t.fetchData.url),i=r?sw(r).host:void 0,a=r?sE(r):void 0;n.setAttributes({"http.url":a,"url.full":a,"server.address":i}),s&&ln(n,e),o?.(n,{headers:t.headers})}}),r&&(0,sI.Mn)(t=>{let n=function(e,t,n,r,i,s){let a=e.xhr,o=a?.[sI.Er];if(!a||a.__sentry_own_request__||!o)return;let{url:u,method:l}=o,c=nk()&&t(u);if(e.endTimestamp){let t=a.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==o.status_code&&(nA(n,o.status_code),n.end(),s?.(n,{headers:u8((0,u7.ti)(a)),error:e.error})),delete r[t]);return}let p=u9(u),d=p?sw(p):sw(u),f=p?sE(p):void 0,h=sE(sk(u)),_=t5(),m=!!rt(),g=m||!!_&&ix(_),y=c&&g?aj({name:`${l} ${h}`,attributes:{url:sE(u),type:"xhr","http.method":l,"http.url":f,"url.full":f,"server.address":d?.host,[na]:"auto.http.browser",[ns]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new rs,v=aV(y)&&m?void 0:y;return c&&!g&&_?.recordDroppedEvent("no_parent_span","span"),a.__sentry_xhr_span_id__=y.spanContext().spanId,r[a.__sentry_xhr_span_id__]=y,n(u)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:s}=u4({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,s)}(a,nk()&&g?v:void 0,i),_&&_.emit("beforeOutgoingRequestSpan",y,e),y}(t,l,c,p,d,u);
8n&&(s&&ln(n,e),o?.(n,{headers:u8(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function ln(e,t){let{url:n}=nV(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if(ix(t)){let t=e.end.bind(e);e.end=e=>{let n=e??tP(),s=!1,a=()=>{s||(s=!0,setTimeout(i),t(n),clearTimeout(o))};r=a;let o=setTimeout(a,300)}}let i=(0,o7.wv)("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(uL(t)),r())})})}let lr=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function li(){let e=i5.navigator;return!!e?.userAgent&&lr.test(e.userAgent)}let ls={...aK,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...le},la=(e={})=>{let t,n;"enableElementTiming"in e&&eY(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},i=i5.document,{enableInp:s,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:u,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:c},beforeStartSpan:p,idleTimeout:d,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:_,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:v,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:x,instrumentPageLoad:w,instrumentNavigation:k,detectRedirects:E,linkPreviousTrace:T,consistentTraceSampling:I,enableReportPageLoaded:C,onRequestSpanStart:A,onRequestSpanEnd:R}={...ls,...e},O=li();function P(e,t,s=!0,a){let o="pageload"===t.op,u=t.name,l=p?p(t):t,c=sS(a||i3()),_={...c?.pathname&&{[sD.mqy]:c.pathname},...c&&!sb(c)&&{[sD.aVR]:c.href},...l.attributes};if(u!==l.name&&(_[nn]="custom"),l.attributes=_,!s){let e=tO();aj({...l,startTime:e}).end(e);return}r.name=l.name,r.source=_[nn];let m=aQ(l,{idleTimeout:d,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:o,beforeSpanEnd:t=>{!function(e,t){let n=uC(),r=(0,a0.k3)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:a}=t,o=uA(r),u=n.getEntries(),{op:l,start_timestamp:c}=oz(e);u.slice(uD).forEach(t=>{let n=uA(t.startTime),r=uA(Math.max(0,t.duration));if("navigation"!==l||!c||!(o+n<c))switch(t.entryType){case"navigation":var i,u,p,d,f,h;let _,m,g;i=e,u=t,p=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{uz(i,u,e,p)}),uz(i,u,"secureConnection",p,"TLS/SSL"),uz(i,u,"fetch",p,"cache"),uz(i,u,"domainLookup",p,"DNS"),d=i,f=u,_=(h=p)+uA(f.requestStart),m=h+uA(f.responseEnd),g=h+uA(f.responseStart),f.responseEnd&&(uT(d,_,m,{op:"browser.request",name:f.name,attributes:{[ok]:"auto.ui.browser.metrics"}}),uT(d,g,m,{op:"browser.response",name:f.name,attributes:{[ok]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,n,r,i,s){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&function(e,t=[],n=!1){for(let r of t)if(oo(e,r,n))return!0;return!1}(t.name,s))return;let a=(0,uj.z)(!1),o=i+Math.max(n,uA(a?a.requestStart:0)),u=i+n,l=u+r,c={[ok]:"auto.resource.browser.metrics"};o!==u&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,a5.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,a5.sO)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),o<=l&&uT(e,o,l,{name:t.name,op:t.entryType,attributes:c})}(e,t,n,r,o,s);break;case"resource":!function(e,t,n,r,i,s,a){var o,u;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let l=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(l))return;let c={[ok]:"auto.resource.browser.metrics"},p=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}(n);p.protocol&&(c["url.scheme"]=p.protocol.split(":").pop()),p.host&&(c["server.address"]=p.host),c["url.same_origin"]=n.includes(o5.j.location.origin),c["url.full"]=n,o=t,u=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
8h(([e,t])=>{let n=o[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(u[t]=n)});let d={...c,...uL(t)},f=s+r;uT(e,f,f+i,{name:n.replace(o5.j.location.origin,""),op:l,attributes:d})}(e,t,t.name,n,r,o,a)}}),uD=Math.max(u.length-1,0),function(e,t){let n=o5.j.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),uE(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===oz(e).op&&o3("connection.rtt",r.rtt,"millisecond"))),uE(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),uE(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:S,ignorePerformanceApiSpans:x,spanStreamingEnabled:ix(e)}),tt(e,lp,void 0);let r=t0(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:m.spanContext().traceId,sampled:n1(m),dsc:rc(t)}),o&&(n=void 0)},trimIdleSpanEndTimestamp:!C});function g(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",m),i.removeEventListener("readystatechange",g))}o&&C&&(n=m),tt(e,lp,m),o&&!C&&i&&(i.addEventListener("readystatechange",g),g())}return{name:"BrowserTracing",setup(e){if(!O){if(aZ(),o&&eU.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=o1();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=uA((0,a0.k3)()+n.startTime),{start_timestamp:r,op:i}=oz(t);if("navigation"===i&&r&&e<r)continue;let s=uA(n.duration),a={[ok]:"auto.ui.browser.metrics"},{invoker:o,invokerType:u,sourceURL:l,sourceFunctionName:c,sourceCharPosition:p}=n.scripts[0];a["browser.script.invoker"]=o,a["browser.script.invoker_type"]=u,l&&(a["code.filepath"]=l),c&&(a["code.function"]=c),-1!==p&&(a["browser.script.source_char_position"]=p),uT(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):a&&(0,o7.wv)("longtask",({entries:e})=>
8{let t=o1();if(!t)return;let{op:n,start_timestamp:r}=oz(t);for(let i of e){let e=uA((0,a0.k3)()+i.startTime),s=uA(i.duration);"navigation"===n&&r&&e<r||uT(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ok]:"auto.ui.browser.metrics"}})}}),u&&(0,o7.wv)("event",({entries:e})=>{let t=o1();if(t){for(let n of e)if("click"===n.name){let e=uA((0,a0.k3)()+n.startTime),r=uA(n.duration),i={name:(0,sA.H)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[ok]:"auto.ui.browser.metrics"}},s=function(e,t=5){if(!o2.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}(n.target);s&&(i.attributes["ui.component_name"]=s),uT(t,e,e+r,i)}}}),E&&i){let e=()=>{t=tP()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(n,i)=>{if(t5()!==e)return;if(i?.isRedirect)return void P(e,{op:"navigation.redirect",...n},!1,i.url);t=void 0,r(),t1().setPropagationContext({traceId:tT(),sampleRand:Math.random(),propagationSpanId:nk()?void 0:t$()});let s=t0();s.setPropagationContext({traceId:tT(),sampleRand:Math.random(),propagationSpanId:nk()?void 0:t$()}),s.setSDKProcessingMetadata({normalizedRequest:void 0}),P(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0},!0,i?.url)}),e.on("startPageLoadSpan",(t,n={})=>{if(t5()!==e)return;r();let i=nB(n.sentryTrace||ll("sentry-trace")||lc("sentry-trace"),n.baggage||ll("baggage")||lc("baggage")),s=t0();s.setPropagationContext(i),nk()||(s.getPropagationContext().propagationSpanId=t$()),s.setSDKProcessingMetadata({normalizedRequest:i9()}),P(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{C&&n&&(n.setAttribute(no,"reportPageLoaded"),n.end())})}function r(){let t=e[lp];t&&!nV(t).timestamp&&(t.setAttribute(no,"cancelled"),t.end())}},afterAllSetup(e){var n,i,a,o,p;let S;if(O)return;e.addIntegration&&!e.getIntegrationByName?.(u0)&&e.addIntegration(u1({ignore:s?[]:["inp"],_experiments:{enableStandaloneClsSpans:l,enableStandaloneLcpSpans:c}}));let x=i3();if("off"!==T&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=i5.sessionStorage?.getItem(u2);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(n8(e)!==e)return;let t=t0().getPropagationContext();i=function(e,t,n){let r=nV(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[nr]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:s,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!u3(s)}`)),i)}(i,e,t),r&&function(e){try{i5.sessionStorage.setItem(u2,JSON.stringify(e))}catch(e){}}(i)});let s=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=t0(),n=t.getPropagationContext();if(s&&n.parentSpanId){s=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(u3(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=u3(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[ni]:i.sampleRate}})}(e,{linkPreviousTrace:T,consistentTraceSampling:I}),i5.location){if(w){let t=tL();lo(e,{name:i5.location.pathname,startTime:t?t/1e3:void 0,attributes:{[nn]:"url",[na]:"auto.pageload.browser"}})}k&&(0,sC._)(({to:n,from:r})=>{var i,s;let a,o;if(void 0===r&&x?.indexOf(n)!==-1){x=void 0;return}x=void 0;let u=sS(n),l=e[lp],c=l&&E&&(i=l,s=t,a=nV(i),!((o=tO())-a.start_timestamp>1.5)&&(!s||!(o-s<=1.5)));lu(e,{name:u?.pathname||i5.location.pathname,attributes:{[nn]:"url",[na]:"auto.navigation.browser"}},{url:n,isRedirect:c})})}_&&i5.document&&i5.document.addEventListener("visibilitychange",()=>{let e=rt();if(!e)return;let t=n8(e);if(i5.document.hidden&&t){let{op:e,status:n}=nV(t);n||t.setStatus({code:2,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),u&&(n=e,i=d,a=f,o=h,p=r,i5.document&&addEventListener("click",()=>{let e=function(e){return e[lp]}(n);e&&["navigation","pageload"].includes(nV(e).op)||(S&&(S.setAttribute(no,"interactionInterrupted"),S.end(),S=void 0),p.name&&(S=aQ({name:p.name,op:"ui.action.click",attributes:{[nn]:p.source||"url"}},{idleTimeout:i,finalTimeout:a,childSpanTimeout:o})))},{capture:!0})),lt(e,{traceFetch:m,traceXHR:g,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b,onRequestSpanStart:A,onRequestSpanEnd:R}),y&&e.addIntegration(uH())}}};function lo(e,t,n){e.emit("startPageLoadSpan",t,n),t0().setTransactionName(t.name);let r=e[lp];return r&&e.emit("afterStartPageLoadSpan",r),r}function lu(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});let s=t0();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...i9(),url:r}}),e[lp]}function ll(e){let t=i5.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function lc(e){let t=i5.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let lp="_sentry_idleSpan",ld="sentry.source",lf="sentry.sample_rate",lh="sentry.op",l_="sentry.origin",lm="sentry.custom_span_name";function lg(e){try{return new URL(e,o5.j.location.origin).toString()}catch{return e}}let ly=null,lv=new Map,lb=new Map;
8function lS(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function lx(e){if(lv.has(e))return lv.get(e)??null;try{let t=new RegExp(e);return lv.set(e,t),t}catch(e){return null}}function lw(){if(!q?._sentryRouteManifest||"string"!=typeof q._sentryRouteManifest)return null;let e=q._sentryRouteManifest;if(ly&&j===e)return ly;lv.clear(),lb.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return ly=t,j=e,t}catch{return null}}let lk=e=>{let t=lw();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(lb.has(n))return lb.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let s=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=lx(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=lx(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>lS(e)-lS(t))[0];return lb.set(n,s),s};var lE=n(65364);function lT(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function lI(e,t,n){e.setAttributes({[sD.mqy]:t,[sD.aVR]:lg(n)})}let lC="incomplete-app-router-transaction",lA="router-patch",lR={current:void 0};function lO(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let lP=new WeakSet;function lN(e,t,n){lP.has(t)||(lP.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,s){if("router-patch"!==lA)return t.apply(i,s);let a=lC,o={[lh]:"navigation",[l_]:"auto.navigation.nextjs.app_router_instrumentation",[ld]:"url"},u=s[0],l=lE.env._sentryBasePath??q._sentryBasePath,c=l&&"string"==typeof u&&!u.startsWith(l)?`${l}${u}`:u;"push"===r?(a=lT(lO(c)),o["navigation.type"]="router.push"):"replace"===r?(a=lT(lO(c)),o["navigation.type"]="router.replace"):"back"===r?o["navigation.type"]="router.back":"forward"===r&&(o["navigation.type"]="router.forward");let p=lk(a),d="back"===r||"forward"===r?void 0:lg(c);return n.current=lu(e,{name:p??a,attributes:{...o,[ld]:p?"route":"url",...p&&{[sD.B8_]:p}}},d?{url:d}:void 0),t.apply(i,s)}}))}))}function lL(e,t){$&&$(e,t)}let lM="sentry-";function lj(e){let t=l$(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(lM)&&(e[t.slice(lM.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function l$(e){if(e&&(el(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(lD(t)).forEach(([t,n])=>{e[t]=n}),e),{}):lD(e)}function lD(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var lB=n(89099);let lU=lB.events?lB:lB.default;function lz(e={}){let t=la({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!li()&&(r&&function(e){if(i5.document.getElementById("__NEXT_DATA__"))lU.events.on("routeChangeStart",t=>{let n,r,i=t.split(/[?#]/,1)[0],s=function(e){let t=i5.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,i,s=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),i=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${r}(?:/)?$`));return e.match(s)})}(i);s?(n=s,r="route"):(n=i,r="url"),lu(e,{name:n,attributes:{[lh]:"navigation",[l_]:"auto.navigation.nextjs.pages_router_instrumentation",[ld]:r,..."route"===r&&{[sD.B8_]:n}}},{url:lg(t)})});else{let t,n,r;$=(t,n)=>{let r=lE.env._sentryBasePath??q._sentryBasePath,i=r&&!t.startsWith(r)?`${r}${t}`:t,s=lT(new URL(i,i5.location.href).pathname),a=lk(s),o=a??s;"router-patch"===lA&&(lA="transition-start-hook");let u=lR.current;u?(u.updateName(o),u.setAttributes({"navigation.type":`router.${n}`,[ld]:a?"route":"url",...a&&{[sD.B8_]:a}}),lI(u,s,i),lR.current=void 0):lu(e,{name:o,attributes:{[lh]:"navigation",[l_]:"auto.navigation.nextjs.app_router_instrumentation",[ld]:a?"route":"url","navigation.type":`router.${n}`,...a&&{[sD.B8_]:a}}},{url:lg(i)})},i5.addEventListener("popstate",()=>{let t=lT(i5.location.pathname),n=lk(t);lR.current?.isRecording()?(lR.current.updateName(n??t),lR.current.setAttribute(ld,n?"route":"url"),n&&lR.current.setAttribute(sD.B8_,n),lI(lR.current,t,i5.location.href)):lR.current=lu(e,{name:n??t,attributes:{[l_]:"auto.navigation.nextjs.app_router_instrumentation",[ld]:n?"route":"url","navigation.type":"browser.popstate",...n&&{[sD.B8_]:n}}},{url:lg(t)})}),t=!1,n=0,r=setInterval(()=>{n++;
8let i=q?.next?.router??q?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,lN(e,i,lR),["nd","next"].forEach(t=>{let n=q[t];n&&(q[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&lN(e,r,lR),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(i5.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e,t=i5.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{}if(!e)return{};let n={},{page:r,query:i,props:s}=e;return n.route=r,n.params=i,s?.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),s=l$(i),a=t||i5.location.pathname;s?.["sentry-transaction"]&&"/_error"===a&&(a=(a=s["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=es();lo(e,{name:a,startTime:o?o/1e3:void 0,attributes:{[lh]:"pageload",[l_]:"auto.pageload.nextjs.pages_router_instrumentation",[ld]:t?"route":"url",...t&&{[sD.B8_]:t},...n&&{...n}}},{sentryTrace:r,baggage:i})}(e);else{let t,n,r;n=lk(t=lT(i5.location.pathname)),lo(e,{name:n??t,startTime:(r=es())?r/1e3:void 0,attributes:{[lh]:"pageload",[l_]:"auto.pageload.nextjs.app_router_instrumentation",[ld]:n?"route":"url",...n&&{[sD.B8_]:n}}})}}(e))}}}let lW=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function lq(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function lF(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let lH=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in eU&&!!eU.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||s){let e,s,a=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=t?function(e,t){e=lq(e).slice(1),t=lq(t).slice(1);let n=lF(e.split("/")),r=lF(t.split("/")),i=Math.min(n.length,r.length),s=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){s=e;break}let a=[];for(let e=s;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(s))).join("/")}(t,a):(e=a.length>1024?`<truncated>${a.slice(-1024)}`:a,(s=lW.exec(e))?s.slice(1):[])[2]||"";r.filename=`${n}${o}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},lY=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/;class lJ{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let lG=new lJ(100),lV=/^o(\d+)\./,lK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function lQ(e){let t,n=e.getOptions(),{host:r}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;r&&(e=r.match(lV),t=e?.[1])}return t}var lX=n(65364),lZ=n(65364);let l0=!1;function l1(e){let t,n,r,i,s,a,o;l0&&V(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),l0=!0,e.debug&&V(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){i5.document&&function(e){let t=lk(e)||e,n=lG.get(t);if(void 0!==n)return n;let r=lw();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return lG.set(t,!1),!1;let i=r.isrRoutes.includes(t);return lG.set(t,i),i}(i5.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=i5.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let l={environment:e.environment||lZ.env.SENTRY_ENVIRONMENT||((t=aw.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(r=a_(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&r.push(lz()),i=q._sentryRewriteFramesAssetPrefixPath||"",s=lZ.env._sentryAssetPrefix||q._sentryAssetPrefix,a=lZ.env._sentryBasePath||q._sentryBasePath,o="true"===lZ.env._experimentalThirdPartyOriginStackFrames||"true"===q._experimentalThirdPartyOriginStackFrames,r.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...lH({iteratee:i=>{if(r){let n="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(lY)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:s,basePath:a,rewriteFramesAssetPrefixPath:i,experimentalThirdPartyOriginStackFrames:o})),r),release:"23da5f7367980fbb4045f4b6f9c5c7c95f6cc5c9",...e};!function(e){let t=lX.env._sentryRewritesTunnelPath||q._sentryRewritesTunnelPath;if(t&&e.dsn){let n=function(e){var t;let n=lK.exec(e);if(!n)return void V(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,i,s="",a="",o="",u=""]=n.slice(1),l="",c=u,p=c.split("/");if(p.length>1&&(l=p.slice(0,-1).join("/"),c=p.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return{protocol:(t={host:a,pass:s,path:l,projectId:c,port:o,protocol:r,publicKey:i}).protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],s=r[2],a=`${t}?o=${i}&p=${n.projectId}`;s&&(a+=`&r=${s}`),e.tunnel=a}}}(l),function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:F})),i.version=F)}(l,"nextjs",["nextjs","react"]),l.ignoreSpans=[...l.ignoreSpans||[],/^\/404$/,RegExp(`^${lC}$`)];let c=(!function(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:ay})),i.version=ay)}(n={...l},"react"),rv("react",{version:av.version}),function(e={}){var t;let n,r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===i5.window||i5.nw)return!1;let e=i5.chrome||i5.browser;if(!e?.runtime?.id)return!1;let t=i3();return!(i5===i5.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}(),i=null==e.defaultIntegrations?a_():e.defaultIntegrations,s={...e,enabled:!r&&e.enabled,stackParser:Array.isArray(t=e.stackParser||al)?tf(...t):t,integrations:function(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;
8if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:i}),transport:e.transport||ad};return u=ah,!0===s.debug&&eY(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),t0().update(s.initialScope),rZ(n=new i8(s)),n.init(),n}(n)),p=(e,t)=>aE(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;return p.id="NextRedirectErrorFilter",eO().addEventProcessor(p),c}function l2(e){return e}let l3=globalThis,l4="10.67.0";function l5(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||l4,t[l4]=t[l4]||{}}function l6(e,t,n=l3){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[l4]=r[l4]||{};return i[e]||(i[e]=t())}function l7(e){if(void 0!==b)return b?b(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in l3&&"function"==typeof l3[t]?(b=l3[t])(e):(b=null,e())}function l9(){return l7(()=>Math.random())}function l8(e=l3.crypto||l3.msCrypto){try{if(e?.randomUUID)return l7(()=>e.randomUUID()).replace(/-/g,"")}catch{}return S||(S="10000000100040008000100000000000"),S.replace(/[018]/g,e=>(e^(15&16*l9())>>e/4).toString(16))}function ce(){return l7(()=>Date.now())/1e3}let ct=Object.prototype.toString,cn="_sentrySpan";function cr(e,t){if(t){var n=function(e){try{let t=l3.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t);try{Object.defineProperty(e,cn,{value:n,writable:!0,configurable:!0})}catch{}}else delete e[cn]}function ci(e){var t=e[cn];if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}class cs{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:l8(),sampleRand:l9()}}clone(){let e=new cs;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,cr(e,ci(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&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(x??(x=function(){let{performance:e}=l3;if(!e?.now||!e.timeOrigin)return ce;let t=e.timeOrigin;return()=>(t+l7(()=>e.now()))/1e3}()))(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:l8()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:c}=(t instanceof cs?t.getScopeData():"[object Object]"===ct.call(t)?e: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),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),c&&
8(this._conversationId=c),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,cr(this,void 0),this._attachments=[],this.setPropagationContext({traceId:l8(),sampleRand:l9()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:ce(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:ci(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||l8();if(!this._client)return n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||l8();if(!this._client)return r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||l8();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let ca=e=>e instanceof Promise&&!e[co],co=Symbol("chained PromiseLike");class cu{constructor(e,t){let n,r;n=e||new cs,r=t||new cs,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){var t,n,r,i;let s,a=this._pushScope();try{s=e(a)}catch(e){throw this._popScope(),e}if(t=s,t?.then&&"function"==typeof t.then){let e;return n=s,r=()=>this._popScope(),i=()=>this._popScope(),ca(e=n.then(e=>(r(),e),e=>{throw i(),e}))&&ca(n)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[co]:!0}),t})(n,e)}return this._popScope(),s}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)&&!!this._stack.pop()}}function cl(){let e=(l5(l3),l3),t=l5(e);return t.stack=t.stack||new cu(l6("defaultCurrentScope",()=>new cs),l6("defaultIsolationScope",()=>new cs))}function cc(e){return cl().withScope(e)}function cp(e,t){let n=cl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function cd(e){return cl().withScope(()=>e(cl().getIsolationScope()))}function cf(e){let t=l5(e);return t.acs?t.acs:{withIsolationScope:cd,withScope:cc,withSetScope:cp,withSetIsolationScope:(e,t)=>cd(t),getCurrentScope:()=>cl().getScope(),getIsolationScope:()=>cl().getIsolationScope()}}function ch(){return cf((l5(l3),l3)).getCurrentScope()}function c_(){return ch().getClient()}function cm(e){let t=c_();t&&t.addIntegration(e)}var cg=n(65364);let cy=l3.document,cv=l3.navigator,cb="Report a Bug",cS="Cancel",cx="Send Bug Report",cw="Confirm",ck="Report a Bug",cE="[email protected]",cT="Email",cI="What's the bug? What did you expect?",cC="Description",cA="Your Name",cR="Name",cO="Thank y
8ou for your report!",cP="(required)",cN="Add a screenshot",cL="Remove screenshot",cM="Highlight",cj="Hide",c$="Remove",cD="Unable to submit feedback with empty message",cB="No client setup, cannot send feedback.",cU="Unable to determine if Feedback was correctly sent.",cz="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",cW="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",cq={ERROR_EMPTY_MESSAGE:cD,ERROR_NO_CLIENT:cB,ERROR_TIMEOUT:cU,ERROR_FORBIDDEN:cz,ERROR_GENERIC:cW};function cF(e,t){return t?.[e]??cq[e]}let cH=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Error(cF("ERROR_EMPTY_MESSAGE",n));let r=c_();if(!r)throw Error(cF("ERROR_NO_CLIENT",n));e.tags&&Object.keys(e.tags).length&&ch().setTags(e.tags);let i=function(e,t={},n=ch()){let{message:r,name:i,email:s,url:a,source:o,associatedEventId:u,tags:l}=e,c={contexts:{feedback:{contact_email:s,name:i,message:r,url:a,source:o,associated_event_id:u}},type:"feedback",level:"info",tags:l},p=n?.getClient()||c_();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}({source:"api",url:function(){try{return l3.document.location.href}catch{return""}}(),...e},t);return new Promise((e,t)=>{let s=setTimeout(()=>{a(),t(cF("ERROR_TIMEOUT",n))},3e4),a=r.on("afterSendEvent",(r,o)=>{if(r.event_id===i)return(clearTimeout(s),a(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300)?e(i):o?.statusCode===403?t(cF("ERROR_FORBIDDEN",n)):t(cF("ERROR_GENERIC",n))})})};function cY(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function cJ(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let cG="rgba(88, 74, 192, 1)",cV={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:cG,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},cK={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:cG,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function cQ(e){return` 9 --foreground: ${e.foreground}; 10 --background: ${e.background}; 11 --accent-foreground: ${e.accentForeground}; 12 --accent-background: ${e.accentBackground}; 13 --success-color: ${e.successColor}; 14 --error-color: ${e.errorColor}; 15 --border: ${e.border}; 16 --box-shadow: ${e.boxShadow}; 17 --outline: ${e.outline}; 18 --interactive-filter: ${e.interactiveFilter}; 19 `}function cX({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=cy.createElement("style");return i.textContent=` 20:host { 21 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 22 --font-size: 14px; 23 --z-index: 100000; 24 25 --page-margin: 16px; 26 --inset: auto 0 0 auto; 27 --actor-inset: var(--inset); 28 29 font-family: var(--font-family); 30 font-size: var(--font-size); 31 32 ${"system"!==e?`color-scheme: only ${e};`:""} 33 34 ${cQ("dark"===e?{...cK,...t}:{...cV,...n})} 35} 36 37${"system"===e?` 38@media (prefers-color-scheme: dark) { 39 :host { 40 color-scheme: only dark; 41 42 ${cQ({...cK,...t})} 43 } 44}`:""} 45`,r&&i.setAttribute("nonce",r),i}let cZ=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:i=!0,showBranding:s=!0,isEmailRequired:a=!1,isNameRequired:o=!1,showEmail:u=!0,showName:l=!0,enableScreenshot:c=!0,useSentryUser:p={email:"email",name:"username"},tags:d,styleNonce:f,scriptNonce:h,colorScheme:_="system",themeLight:m={},themeDark:g={},addScreenshotButtonLabel:y=cN,cancelButtonLabel:v=cS,confirmButtonLabel:b=cw,emailLabel:S=cT,emailPlaceholder:x=cE,formTitle:w=ck,isRequiredLabel:k=cP,messageLabel:E=cC,messagePlaceholder:T=cI,nameLabel:I=cR,namePlaceholder:C=cA,removeScreenshotButtonLabel:A=cL,submitButtonLabel:R=cx,successMessageText:O=cO,triggerLabel:P=cb,triggerAriaLabel:N="",highlightToolText:L=cM,hideToolText:M=cj,removeHighlightText:j=c$,errorEmptyMessageText:$=cD,errorNoClientText:D=cB,errorTimeoutText:B=cU,errorForbiddenText:U=cz,errorGenericText:z=cW,onFormOpen:W,onFormClose:q,onSubmitSuccess:F,onSubmitError:H,onFormSubmitted:Y}={})=>{let J={id:r,autoInject:i,showBranding:s,isEmailRequired:a,isNameRequired:o,showEmail
45:u,showName:l,enableScreenshot:c,useSentryUser:p,tags:d,styleNonce:f,scriptNonce:h,colorScheme:_,themeDark:g,themeLight:m,triggerLabel:P,triggerAriaLabel:N,cancelButtonLabel:v,submitButtonLabel:R,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:x,messageLabel:E,messagePlaceholder:T,nameLabel:I,namePlaceholder:C,successMessageText:O,isRequiredLabel:k,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:A,highlightToolText:L,hideToolText:M,removeHighlightText:j,errorEmptyMessageText:$,errorNoClientText:D,errorTimeoutText:B,errorForbiddenText:U,errorGenericText:z,onFormClose:q,onFormOpen:W,onSubmitError:H,onSubmitSuccess:F,onFormSubmitted:Y},G=null,V=null,K=[],Q=e=>{if(!G){let t=cy.createElement("div");t.id=String(e.id),cy.body.appendChild(t),G=t.attachShadow({mode:"open"}),V=cX(e),G.appendChild(V)}return G},X=async r=>{let i,s,a=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(cv.userAgent)||/Macintosh/i.test(cv.userAgent)&&cv.maxTouchPoints&&cv.maxTouchPoints>1)&&!!isSecureContext;try{i=(t?t():await e("feedbackModalIntegration",h))(),cm(i)}catch{throw Error("[Feedback] Missing feedback modal integration!")}try{let t=a?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(s=t(),cm(s))}catch{}let o={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},u=i.createDialog({options:{...r,onFormClose:()=>{u?.close(),r.onFormClose?.()},onFormSubmitted:()=>{u?.close(),r.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:(e,t)=>cH(e,{includeReplay:!0,...t,errorMessages:o}),shadow:Q(r)});return u},Z=(e,t={})=>{let n=cY(J,t),r="string"==typeof e?cy.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Error("Unable to attach to target element");let i=null,s=async()=>{i||(i=await X({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}})),i.appendToDom(),i.open()};r.addEventListener("click",s);let a=()=>{K=K.filter(e=>e!==a),i?.removeFromDom(),i=null,r.removeEventListener("click",s)};return K.push(a),a},ee=(e={})=>{let t=cY(J,e),n=Q(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i,s,a,o,u,l,c,p,d=cy.createElement("button");if(d.type="button",d.className="widget__actor",d.ariaHidden="false",d.ariaLabel=t||e||cb,d.appendChild((s=cJ((i=e=>l3.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),a=cJ(i("g"),{clipPath:"url(#clip0_57_80)"}),o=cJ(i("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"}),s.appendChild(a).appendChild(o),u=i("defs"),l=cJ(i("clipPath"),{id:"clip0_57_80"}),c=cJ(i("rect"),{width:"20",height:"20",fill:"white"}),l.appendChild(c),u.appendChild(l),s.appendChild(u).appendChild(l).appendChild(c),s)),e){let t=cy.createElement("span");t.appendChild(cy.createTextNode(e)),d.appendChild(t)}let f=((p=cy.createElement("style")).textContent=` 46.widget__actor { 47 position: fixed; 48 z-index: var(--z-index); 49 margin: var(--page-margin); 50 inset: var(--actor-inset); 51 52 display: flex; 53 align-items: center; 54 gap: 8px; 55 padding: 16px; 56 57 font-family: inherit; 58 font-size: var(--font-size); 59 font-weight: 600; 60 line-height: 1.14em; 61 text-decoration: none; 62 63 background: var(--actor-background, var(--background)); 64 border-radius: var(--actor-border-radius, 1.7em/50%); 65 border: var(--actor-border, var(--border));
66 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 67 color: var(--actor-color, var(--foreground)); 68 fill: var(--actor-color, var(--foreground)); 69 cursor: pointer; 70 opacity: 1; 71 transition: transform 0.2s ease-in-out; 72 transform: translate(0, 0) scale(1); 73} 74.widget__actor[aria-hidden="true"] { 75 opacity: 0; 76 pointer-events: none; 77 visibility: hidden; 78 transform: translate(0, 16px) scale(0.98); 79} 80 81.widget__actor:hover { 82 background: var(--actor-hover-background, var(--background)); 83 filter: var(--interactive-filter); 84} 85 86.widget__actor svg { 87 width: 1.14em; 88 height: 1.14em; 89} 90 91@media (max-width: 600px) { 92 .widget__actor span { 93 display: none; 94 } 95} 96`,r&&p.setAttribute("nonce",r),p);return{el:d,appendToDom(){n.appendChild(f),n.appendChild(d)},removeFromDom(){d.remove(),f.remove()},show(){d.ariaHidden="false"},hide(){d.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return Z(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){let e;"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==cg?cg:0))||(e=l3.process,e?.type==="renderer"))&&J.autoInject&&("loading"===cy.readyState?cy.addEventListener("DOMContentLoaded",()=>ee().appendToDom()):ee().appendToDom())},attachTo:Z,createWidget(e={}){let t=ee(cY(J,e));return t.appendToDom(),t},createForm:async(e={})=>X(cY(J,e)),setTheme(e){if(J.colorScheme=e,G){let e=cX(J);V?G.replaceChild(e,V):G.prepend(e),V=e}},remove(){G&&(G.parentElement?.remove(),G=null,V=null),K.forEach(e=>e()),K=[]}}};function c0(){let e=c_();return e?.getIntegrationByName("Feedback")}var c1,c2,c3,c4,c5,c6,c7,c9={},c8=[],pe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pt=Array.isArray;function pn(e,t){for(var n in t)e[n]=t[n];return e}function pr(e){var t=e.parentNode;t&&t.removeChild(e)}function pi(e,t,n){var r,i,s,a={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?c1.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return ps(e,a,r,i,null)}function ps(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++c3:i,__i:-1,__u:0};return null==i&&null!=c2.vnode&&c2.vnode(s),s}function pa(e){return e.children}function po(e,t){this.props=e,this.context=t}function pu(e,t){if(null==t)return e.__?pu(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?pu(e):null}function pl(e){(!e.__d&&(e.__d=!0)&&c4.push(e)&&!pc.__r++||c5!==c2.debounceRendering)&&((c5=c2.debounceRendering)||c6)(pc)}function pc(){var e,t,n,r=[],i=[];for(c4.sort(c7);e=c4.shift();)e.__d&&(n=c4.length,t=function(e,t,n){var r,i=e.__v,s=i.__e,a=e.__P;if(a)return(r=pn({},i)).__v=i.__v+1,c2.vnode&&c2.vnode(r),pm(a,r,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[s]:null,t,null==s?pu(i):s,!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,i)||t,0===n||c4.length>n?(pg(r,t,i),i.length=r.length=0,t=void 0,c4.sort(c7)):t&&c2.__c&&c2.__c(t,c8));t&&pg(r,t,i),pc.__r=0}function pp(e,t,n,r,i,s,a,o,u,l,c){var p,d,f,h,_,m=r&&r.__k||c8,g=t.length;for(n.__d=u,function(e,t,n){var r,i,s,a,o,u=t.length,l=n.length,c=l,p=0;for(e.__k=[],r=0;r<u;r++)null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?ps(null,i,null,null,i):pt(i)?ps(pa,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?ps(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,o=function(e,t,n,r){var i=e.key,s=e.type,a=n-1,o=n+1,u=t[n];if(null===u||u&&i==u.key&&s===u.type)return n;if(r>+(null!=u&&0==(131072&u.__u)))for(;a>=0||o<t.length;){if(a>=0){if((u=t[a])&&0==(131072&u.__u)&&i==u.key&&s===u.type)return a;a--}if(o<t.length){if((u=t[o])&&0==(131072&u.__u)&&i==u.key&&s===u.type)return o;o++}}return -1}
vendor: 7,108 bytes, line 96
96(i,n,a=r+p,c),i.__i=o,s=null,-1!==o&&(c--,(s=n[o])&&(s.__u|=131072)),null==s||null===s.__v?(-1==o&&p--,"function"!=typeof i.type&&(i.__u|=65536)):o!==a&&(o===a+1?p++:o>a?c>u-a?p+=o-a:p--:p=o<a&&o==a-1?o-a:0,o!==r+p&&(i.__u|=65536))):(s=n[r])&&null==s.key&&s.__e&&(s.__e==e.__d&&(e.__d=pu(s)),pv(s,s,!1),n[r]=null,c--);if(c)for(r=0;r<l;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=pu(s)),pv(s,s))}(n,t,m),u=n.__d,p=0;p<g;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?c9:m[f.__i]||c9,f.__i=p,pm(e,f,d,i,s,a,o,u,l,c),h=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&py(d.ref,null,f),c.push(f.ref,f.__c||h,f)),null==_&&null!=h&&(_=h),65536&f.__u||d.__k===f.__k?u=function e(t,n,r){var i,s;if("function"==typeof t.type){for(i=t.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=t,n=e(i[s],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(f,u,e):"function"==typeof f.type&&void 0!==f.__d?u=f.__d:h&&(u=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=u,n.__e=_}function pd(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||pe.test(t)?n:n+"px"}function pf(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||pd(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||pd(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?p_:ph,s)):e.removeEventListener(t,s?p_:ph,s);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function ph(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(c2.event?c2.event(e):e)}}function p_(e){if(this.l)return this.l[e.type+!0](c2.event?c2.event(e):e)}function pm(e,t,n,r,i,s,a,o,u,l){var c,p,d,f,h,_,m,g,y,v,b,S,x,w,k,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[o=t.__e=n.__e]),(c=c2.__b)&&c(t);e:if("function"==typeof E)try{if(g=t.props,y=(c=E.contextType)&&r[c.__c],v=c?y?y.props.value:c.__:r,n.__c?m=(p=t.__c=n.__c).__=p.__E:("prototype"in E&&E.prototype.render?t.__c=p=new E(g,v):(t.__c=p=new po(g,v),p.constructor=E,p.render=pb),y&&y.sub(p),p.props=g,p.state||(p.state={}),p.context=v,p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=E.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=pn({},p.__s)),pn(p.__s,E.getDerivedStateFromProps(g,p.__s))),f=p.props,h=p.state,p.__v=t,d)null==E.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,v),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=g,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<p._sb.length;b++)p.__h.push(p._sb[b]);p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,v),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,h,_)})}if(p.context=v,p.props=g,p.__P=e,p.__e=!1,S=c2.__r,x=0,"prototype"in E&&E.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),c=p.render(p.props,p.state,p.context),w=0;w<p._sb.length;w++)p.__h.push(p._sb[w]);p._sb=[]}else do p.__d=!1,S&&S(t),c=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++x<25);p.state=p.__s,null!=p.getChildContext&&(r=pn(pn({},r),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(_=p.getSnapshotBeforeUpdate(f,h)),pp(e,pt(k=null!=c&&c.type===pa&&null==c.key?c.props.children:c)?k:[k],t,n,r,i,s,a,o,u,l),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),m&&(p.__E=p.__=null)}catch(e){t.__v=null,u||null!=s?(t.__e=o,t.__u|=u?160:32,s[s.indexOf(o)]=null):(t.__e=n.__e,t.__k=n.__k),c2.__e(e,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,s,a,o,u){var l,c,p,d,f,h,_,m=n.props,g=t.props,y=t.type;if("svg"===y&&(i=!0),null!=s){for(l=0;l<s.length;l++)if((f=s[l])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,s[l]=null;break}}if(null==e){if(null===y)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,g.is&&g),s=null,o=!1}if(null===y)m===g||o&&e.data===g||(e.data=g);else{if(s=s&&c1.call(e.childNodes),m=n.props||c9,!o&&null!=s)for(m={},l=0;l<e.attributes.length;l++)m[(f=e.attributes[l]).name]=f.value;for(l in m)f=m[l],"children"==l||("dangerouslySetInnerHTML"==l?p=f:"key"===l||l in g||pf(e,l,null,f,i));for(l in g)f=g[l],"children"==l?d=f:"dangerouslySetInnerHTML"==l?c=f:"value"==l?h=f:"checked"==l?_=f:"key"===l||o&&"function"!=typeof f||m[l]===f||pf(e,l,f,m[l],i);if(c)o||p&&(c.__html===p.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(p&&(e.innerHTML=""),pp(e,pt(d)?d:[d],t,n,r,i&&"foreignObject"!==y,s,a,s?s[0]:n.__k&&pu(n,0),o,u),null!=s)for(l=s.length;l--;)null!=s[l]&&pr(s[l]);o||(l="value",void 0===h||h===e[l]&&("progress"!==y||h)&&("option"!==y||h===m[l])||pf(e,l,h,m[l],!1),l="checked",void 0!==_&&_!==e[l]&&pf(e,l,_,m[l],!1))}return e}(n.__e,t,n,r,i,s,a,u,l);(c=c2.diffed)&&c(t)}function pg(e,t,n){for(var r=0;r<n.length;r++)py(n[r],n[++r],n[++r]);c2.__c&&c2.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){c2.__e(e,t.__v)}})}function py(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){c2.__e(e,n)}}function pv(e,t,n){var r,i;if(c2.unmount&&c2.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||py(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){c2.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&pv(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||pr(e.__e),e.__=e.__e=e.__d=void 0}function pb(e,t,n){return this.constructor(e,n)}c1=c8.slice,c2={__e:function(e,t,n,r){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},c3=0,po.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=pn({},this.state),"function"==typeof e&&(e=e(pn({},n),this.props)),e&&pn(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),pl(this))},po.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pl(this))},po.prototype.render=pa,c4=[],c6="function"==typeof Promise?Promise.prototype.then.bind(Prom
96ise.resolve()):setTimeout,c7=function(e,t){return e.__v.__b-t.__v.__b},pc.__r=0;var pS,px,pw,pk,pE=0,pT=[],pI=[],pC=c2,pA=pC.__b,pR=pC.__r,pO=pC.diffed,pP=pC.__c,pN=pC.unmount,pL=pC.__;function pM(e,t){pC.__h&&pC.__h(px,e,pE||t),pE=0;var n=px.__H||(px.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:pI}),n.__[e]}function pj(e){return pE=1,p$(pY,e)}function p$(e,t,n){var r=pM(pS++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):pY(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=px,!px.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!s||s.call(this,e,t,n))};px.u=!0;var s=px.shouldComponentUpdate,a=px.componentWillUpdate;px.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,i(e,t,n),s=r}a&&a.call(this,e,t,n)},px.shouldComponentUpdate=i}return r.__N||r.__}function pD(e,t){var n=pM(pS++,4);!pC.__s&&pH(n.__H,t)&&(n.__=e,n.i=t,px.__h.push(n))}function pB(e,t){var n=pM(pS++,7);return pH(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function pU(e,t){return pE=8,pB(function(){return e},t)}function pz(){for(var e;e=pT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pq),e.__H.__h.forEach(pF),e.__H.__h=[]}catch(t){e.__H.__h=[],pC.__e(t,e.__v)}}pC.__b=function(e){px=null,pA&&pA(e)},pC.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pL&&pL(e,t)},pC.__r=function(e){pR&&pR(e),pS=0;var t=(px=e.__c).__H;t&&(pw===px?(t.__h=[],px.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=pI,e.__N=e.i=void 0})):(t.__h.forEach(pq),t.__h.forEach(pF),t.__h=[],pS=0)),pw=px},pC.diffed=function(e){pO&&pO(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pT.push(t)&&pk===pC.requestAnimationFrame||((pk=pC.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),pW&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);pW&&(t=requestAnimationFrame(n))})(pz)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==pI&&(e.__=e.__V),e.i=void 0,e.__V=pI})),pw=px=null},pC.__c=function(e,t){t.some(function(e){try{e.__h.forEach(pq),e.__h=e.__h.filter(function(e){return!e.__||pF(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],pC.__e(n,e.__v)}}),pP&&pP(e,t)},pC.unmount=function(e){pN&&pN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{pq(e)}catch(e){t=e}}),n.__H=void 0,t&&pC.__e(t,n.__v))};var pW="function"==typeof requestAnimationFrame;function pq(e){var t=px,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),px=t}function pF(e){var t=px;e.__c=e.__(),px=t}function pH(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function pY(e,t){return"function"==typeof t?t(e):t}let pJ=Object.defineProperty({__proto__:null,useCallback:pU,useContext:function(e){var t=px.context[e.__c],n=pM(pS++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(px)),t.props.value):e.__},useDebugValue:function(e,t){pC.useDebugValue&&pC.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=pM(pS++,3);!pC.__s&&pH(n.__H,t)&&(n.__=e,n.i=t,px.__H.__h.push(n))},useErrorBoundary:function(e){var t=pM(pS++,10),n=pj();return t.__=e,px.componentDidCatch||(px.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=pM(pS++,11);if(!e.__){for(var t=px.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){pE=6,pD(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:pD,useMemo:pB,useReducer:p$,useRef:function(e){return pE=5,pB(function(){return{current:e}},[])},useState:pj},Symbol.toStringTag,{value:"Module"});function pG({options:e}){let t=pB(()=>{let e,t;return{__html:(e=cJ(cy.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=cJ(cy.createElementNS("http://www.w3.org/2000/svg","path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"}),e.appendChild(t),e).outerHTML}},[]);return pi("h2",{class:"dialog__header"},pi("span",{class:"dialog__title"},e.formTitle),e.showBranding?pi("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function pV(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function pK({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:s,onSubmitError:a,showEmail
96:o,showName:u,screenshotInput:l}){let{tags:c,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:d,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:_,isEmailRequired:m,isNameRequired:g,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:x,isRequiredLabel:w}=e,[k,E]=pj(!1),[T,I]=pj(null),[C,A]=pj(!1),R=l?.input,[O,P]=pj(null),N=pU(e=>{P(e),A(!1)},[]),L=pU(e=>{var t;let n,r=(n=[],(t={emailLabel:h,isEmailRequired:m,isNameRequired:g,messageLabel:y,nameLabel:b}).isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n);return r.length>0?I(`Please enter in the following required fields: ${r.join(", ")}`):I(null),0===r.length},[h,m,g,y,b]);return pi("form",{class:"form",onSubmit:pU(async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (l&&C?l.value():void 0),r={name:pV(t,"name"),email:pV(t,"email"),message:pV(t,"message"),attachments:n?[n]:void 0};if(!L(r))return;try{let e=await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});s(r,e)}catch(t){let e=t instanceof Error?t:Error(String(t));I(e.message),a(e)}}finally{E(!1)}},[l&&C,s,a])},R&&C?pi(R,{onError:N}):null,pi("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:k},pi("div",{class:"form__top"},T?pi("div",{class:"form__error-container"},T):null,u?pi("label",{for:"name",class:"form__label"},pi(pQ,{label:b,isRequiredLabel:w,isRequired:g}),pi("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:g,type:"text"})):pi("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),o?pi("label",{for:"email",class:"form__label"},pi(pQ,{label:h,isRequiredLabel:w,isRequired:m}),pi("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:_,required:m,type:"email"})):pi("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),pi("label",{for:"message",class:"form__label"},pi(pQ,{label:y,isRequiredLabel:w,isRequired:!0}),pi("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),R?pi("label",{for:"screenshot",class:"form__label"},pi("button",{class:"btn btn--default",disabled:k,type:"button",onClick:()=>{P(null),A(e=>!e)}},C?d:p),O?pi("div",{class:"form__error-container"},O.message):null):null),pi("div",{class:"btn-group"},pi("button",{class:"btn btn--primary",disabled:k,type:"submit"},x),pi("button",{class:"btn btn--default",disabled:k,type:"button",onClick:r},f))))}function pQ({label:e,isRequired:t,isRequiredLabel:n}){return pi("span",{class:"form__label__text"},e,t&&pi("span",{class:"form__label__text--required"},n))}function pX({open:e,onFormSubmitted:t,...n}){let r=n.options,i=pB(()=>{let e,t,n,r,i,s,a,o;return{__html:(t=cJ((e=e=>l3.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=cJ(e("g"),{clipPath:"url(#clip0_57_156)"}),r=cJ(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=cJ(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173
9610.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(n).append(i,r),s=e("defs"),a=cJ(e("clipPath"),{id:"clip0_57_156"}),o=cJ(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),a.appendChild(o),s.appendChild(a),t.appendChild(s).appendChild(a).appendChild(o),t).outerHTML}},[]),[s,a]=pj(null),o=pU(()=>{s&&(clearTimeout(s),a(null)),t()},[s]),u=pU((e,r)=>{n.onSubmitSuccess(e,r),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return pi(pa,null,s?pi("div",{class:"success__position",onClick:o},pi("div",{class:"success__content"},r.successMessageText,pi("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):pi("dialog",{class:"dialog",onClick:r.onFormClose,open:e},pi("div",{class:"dialog__position"},pi("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},pi(pG,{options:r}),pi(pK,{...n,onSubmitSuccess:u})))))}let pZ=` 97.dialog { 98 position: fixed; 99 z-index: var(--z-index); 100 margin: 0; 101 inset: 0; 102 103 display: flex; 104 align-items: center; 105 justify-content: center; 106 padding: 0; 107 height: 100vh; 108 width: 100vw; 109 110 color: var(--dialog-color, var(--foreground)); 111 fill: var(--dialog-color, var(--foreground)); 112 line-height: 1.75em; 113 114 background-color: rgba(0, 0, 0, 0.05); 115 border: none; 116 inset: 0; 117 opacity: 1; 118 transition: opacity 0.2s ease-in-out; 119} 120 121.dialog__position { 122 position: fixed; 123 z-index: var(--z-index); 124 inset: var(--dialog-inset); 125 padding: var(--page-margin); 126 display: flex; 127 max-height: calc(100vh - (2 * var(--page-margin))); 128} 129@media (max-width: 600px) { 130 .dialog__position { 131 inset: var(--page-margin); 132 padding: 0; 133 } 134} 135 136.dialog__position:has(.editor) { 137 inset: var(--page-margin); 138 padding: 0; 139} 140 141.dialog:not([open]) { 142 opacity: 0; 143 pointer-events: none; 144 visibility: hidden; 145} 146.dialog:not([open]) .dialog__content { 147 transform: translate(0, -16px) scale(0.98); 148} 149 150.dialog__content { 151 display: flex; 152 flex-direction: column; 153 gap: 16px; 154 padding: var(--dialog-padding, 24px); 155 max-width: 100%; 156 width: 100%; 157 max-height: 100%; 158 overflow: auto; 159 160 background: var(--dialog-background, var(--background)); 161 border-radius: var(--dialog-border-radius, 20px); 162 border: var(--dialog-border, var(--border));
163 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 164 transform: translate(0, 0) scale(1); 165 transition: transform 0.2s ease-in-out; 166} 167 168`,p0=` 169.dialog__header { 170 display: flex; 171 gap: 4px; 172 justify-content: space-between; 173 font-weight: var(--dialog-header-weight, 600); 174 margin: 0; 175} 176.dialog__title { 177 align-self: center; 178 width: var(--form-width, 272px); 179} 180 181@media (max-width: 600px) { 182 .dialog__title { 183 width: auto; 184 } 185} 186 187.dialog__position:has(.editor) .dialog__title { 188 width: auto; 189} 190 191 192.brand-link { 193 display: inline-flex; 194} 195.brand-link:focus-visible { 196 outline: var(--outline); 197} 198`,p1=` 199.form { 200 display: flex; 201 overflow: auto; 202 flex-direction: row; 203 gap: 16px; 204 flex: 1 0; 205} 206 207.form fieldset { 208 border: none; 209 margin: 0; 210 padding: 0; 211} 212 213.form__right { 214 flex: 0 0 auto; 215 display: flex; 216 overflow: auto; 217 flex-direction: column; 218 justify-content: space-between; 219 gap: 20px; 220 width: var(--form-width, 100%); 221} 222 223.dialog__position:has(.editor) .form__right { 224 width: var(--form-width, 272px); 225} 226 227.form__top { 228 display: flex; 229 flex-direction: column; 230 gap: 8px; 231} 232 233.form__error-container { 234 color: var(--error-color); 235 fill: var(--error-color); 236} 237 238.form__label { 239 display: flex; 240 flex-direction: column; 241 gap: 4px; 242 margin: 0px; 243} 244 245.form__label__text { 246 display: flex; 247 gap: 4px; 248 align-items: center; 249} 250 251.form__label__text--required { 252 font-size: 0.85em; 253} 254 255.form__input { 256 font-family: inherit; 257 line-height: inherit; 258 background: transparent; 259 box-sizing: border-box; 260 border: var(--input-border, var(--border)); 261 border-radius: var(--input-border-radius, 6px); 262 color: var(--input-color, inherit); 263 fill: var(--input-color, inherit); 264 font-size: var(--input-font-size, inherit); 265 font-weight: var(--input-font-weight, 500); 266 padding: 6px 12px; 267} 268 269.form__input::placeholder { 270 opacity: 0.65; 271 color: var(--input-placeholder-color, inherit); 272 filter: var(--interactive-filter); 273} 274 275.form__input:focus-visible { 276 outline: var(--input-focus-outline, var(--outline)); 277} 278 279.form__input--textarea { 280 font-family: inherit; 281 resize: vertical; 282} 283 284.error { 285 color: var(--error-color); 286 fill: var(--error-color); 287} 288`,p2=` 289.btn-group { 290 display: grid; 291 gap: 8px; 292} 293 294.btn { 295 line-height: inherit; 296 border: var(--button-border, var(--border)); 297 border-radius: var(--button-border-radius, 6px); 298 cursor: pointer; 299 font-family: inherit; 300 font-size: var(--button-font-size, inherit); 301 font-weight: var(--button-font-weight, 600); 302 padding: var(--button-padding, 6px 16px); 303} 304.btn[disabled] { 305 opacity: 0.6; 306 pointer-events: none; 307} 308 309.btn--primary { 310 color: var(--button-primary-color, var(--accent-foreground)); 311 fill: var(--button-primary-color, var(--accent-foreground)); 312 background: var(--button-primary-background, var(--accent-background)); 313 border: var(--button-primary-border, var(--border)); 314 border-radius: var(--button-primary-border-radius, 6px); 315 font-weight: var(--button-primary-font-weight, 500); 316} 317.btn--primary:hover { 318 color: var(--button-primary-hover-color, var(--accent-foreground)); 319 fill: var(--button-primary-hover-color, var(--accent-foreground)); 320 background: var(--button-primary-hover-background, var(--accent-background)); 321 filter: var(--interactive-filter); 322} 323.btn--primary:focus-visible { 324 background: var(--button-primary-hover-background, var(--accent-background)); 325 filter: var(--interactive-filter); 326 outline: var(--button-primary-focus-outline, var(--outline)); 327} 328 329.btn--default { 330 color: var(--button-color, var(--foreground)); 331 fill: var(--button-color, var(--foreground)); 332 background: var(--button-background, var(--background)); 333 border: var(--button-border, var(--border)); 334 border-radius: var(--button-border-radius, 6px); 335 font-weight: var(--button-font-weight, 500); 336} 337.btn--default:hover { 338 color: var(--button-color, var(--foreground)); 339 fill: var(--button-color, var(--foreground)); 340 background: var(--button-hover-background, var(--background)); 341 filter: var(--interactive-filter); 342} 343.btn--default:focus-visible { 344 background: var(--button-hover-background, var(--background)); 345 filter: var(--interactive-filter); 346 outline: var(--button-focus-outline, var(--outline)); 347} 348`,p3=` 349.success__position { 350 position: fixed; 351 inset: var(--dialog-inset); 352 padding: var(--page-margin); 353 z-index: var(--z-index); 354} 355.success__content { 356 background: var(--success-background, var(--background)); 357 border: var(--success-border, var(--border)); 358 border-radius: var(--success-border-radius, 1.7em/50%);
359 box-shadow: var(--success-box-shadow, var(--box-shadow)); 360 font-weight: var(--success-font-weight, 600); 361 color: var(--success-color); 362 fill: var(--success-color); 363 padding: 12px 24px; 364 line-height: 1.75em; 365 366 display: grid; 367 align-items: center; 368 grid-auto-flow: column; 369 gap: 6px; 370 cursor: default; 371} 372 373.success__icon { 374 display: flex; 375} 376`,p4=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{var i;let s,a,o,u,l=e.useSentryUser,c=(s=ch().getUser(),a=cf((l5(l3),l3)).getIsolationScope().getUser(),o=l6("globalScope",()=>new cs).getUser(),s&&Object.keys(s).length?s:a&&Object.keys(a).length?a:o),p=cy.createElement("div"),d=(i=e.styleNonce,(u=cy.createElement("style")).textContent=` 377:host { 378 --dialog-inset: var(--inset); 379} 380 381${pZ} 382${p0} 383${p1} 384${p2} 385${p3} 386`,i&&u.setAttribute("nonce",i),u),f="",h={get el(){return p},appendToDom(){r.contains(d)||r.contains(p)||(r.appendChild(d),r.appendChild(p))},removeFromDom(){p.remove(),d.remove(),cy.body.style.overflow=f},open(){m(!0),e.onFormOpen?.(),c_()?.emit("openFeedbackWidget"),f=cy.body.style.overflow,cy.body.style.overflow="hidden"},close(){m(!1),cy.body.style.overflow=f}},_=t?.createInput({h:pi,hooks:pJ,dialog:h,options:e}),m=t=>{var r,i,s,a;r=pi(pX,{options:e,screenshotInput:_,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(l&&c?.[l.name]||""),defaultEmail:String(l&&c?.[l.email]||""),onFormClose:()=>{m(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{m(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),c2.__&&c2.__(r,p),i=p.__k,s=[],a=[],pm(p,r=p.__k=pi(pa,null,[r]),i||c9,c9,void 0!==p.ownerSVGElement,i?null:p.firstChild?c1.call(p.childNodes):null,s,i?i.__e:p.firstChild,!1,a),r.__d=void 0,pg(s,r,a)};return h}});function p5(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function p6(e,t){p5(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function p7(e,t,n){p5(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let p9=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=cy.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){var s;let a,o,u,l=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:i}){let s=function(){let[t,n]=e.useState(l3.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(l3.devicePixelRatio)},t=matchMedia(`(resolution: ${l3.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await cv.mediaDevices.getDisplayMedia({video:{width:l3.innerWidth*s,height:l3.innerHeight*s},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=cy.createElement("video");await new Promise((t,r)=>{i.srcObject=e,i.onloadedmetadata=()=>{n(i,s),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(r)}),r()})().catch(i)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),p=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),d={__html:(s=i.styleNonce,a=cy.createElement("style"),o="#1A141F",u="#302735",a.textContent=` 387.editor { 388 display: flex; 389 flex-grow: 1; 390 flex-direction: column; 391} 392 393.editor__image-container { 394 justify-items: center; 395 padding: 15px; 396 position: relative; 397 height: 100%; 398 border-radius: var(--menu-border-radius, 6px); 399 400 background-color: ${o}; 401 background-image: repeating-linear-gradient( 402 -145deg, 403 transparent, 404 transparent 8px, 405 ${o} 8px, 406 ${o} 11px 407 ), 408 repeating-linear-gradient( 409 -45deg, 410 transparent, 411 transparent 15px, 412 ${u} 15px, 413 ${u} 16px 414 ); 415} 416 417.editor__canvas-container { 418 width: 100%; 419 height: 100%; 420 position: relative; 421 display: flex; 422 align-items: center; 423 justify-content: center; 424} 425 426.editor__canvas-container > * { 427 object-fit: contain; 428 position: absolute; 429} 430 431.editor__tool-container { 432 padding-top: 8px; 433 display: flex; 434 justify-content: center; 435} 436 437.editor__tool-bar { 438 display: flex; 439 gap: 8px; 440} 441 442.editor__tool { 443 display: flex; 444 padding: 8px 12px; 445 justify-content: center; 446 align-items: center; 447 border: var(--button-border, var(--border)); 448 border-radius: var(--button-border-radius, 6px); 449 background: var(--button-background, var(--background)); 450 color: var(--button-color, var(--foreground)); 451} 452 453.editor__tool--active { 454 background: var(--button-primary-background, var(--accent-background)); 455 color: var(--button-primary-color, var(--accent-foreground)); 456} 457 458.editor__rect { 459 position: absolute; 460 z-index: 2; 461} 462 463.editor__rect button { 464 opacity: 0; 465 position: absolute; 466 top: -12px; 467 right: -12px; 468 cursor: pointer; 469 padding: 0; 470 z-index: 3; 471 border: none; 472 background: none; 473} 474 475.editor__rect:hover button { 476 opacity: 1; 477} 478`,s&&a.setAttribute("nonce",s),a).innerText},f=r.el.style,h=({screenshot:r})=>{let[s,a]=t.useState("highlight"),[o,u]=t.useState([]),l=t.useRef(null),f=t.useRef(null),h=t.useRef(null),_=t.useRef(null),[m,g]=t.useState(1),y=t.useMemo(()=>{let e=cy.getElementById(i.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=l.current;t&&(p5(r.canvas,{alpha:!1},e=>
478{g(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),l3.addEventListener("resize",e),()=>{l3.removeEventListener("resize",e)}},[r]);let v=t.useCallback((e,t)=>{p5(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{v(f.current,r.dpi),p6(f.current,r.canvas)},[r]),t.useEffect(()=>{v(h.current,r.dpi),p5(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),p7(h.current,y,o)},[o,y]),t.useEffect(()=>{v(n,r.dpi),p6(n,r.canvas),p5(cy.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,p7(e,y,o),p6(n,e)})},[o,r,y]);let b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),u(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*m}px`,height:`${r.canvas.height*m}px`},x=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:d}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:l},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:_,onMouseDown:e=>{if(!s||!_.current)return;let t=_.current.getBoundingClientRect(),n={type:s,x:e.offsetX/m,y:e.offsetY/m},r=(e,n)=>{let r=(n.clientX-t.x)/m,i=(n.clientY-t.y)/m;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{p5(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),p7(h.current,y,[...o,r(n,e)])},a=e=>{let t=r(n,e);t.w*m>=1&&t.h*m>=1&&u(e=>[...e,t]),cy.removeEventListener("mousemove",i),cy.removeEventListener("mouseup",a)};cy.addEventListener("mousemove",i),cy.addEventListener("mouseup",a)},style:S},o.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*m}px`,left:`${t.x*m}px`,width:`${t.w*m}px`,height:`${t.h*m}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:b(n),onMouseDown:x,onMouseUp:x,type:"button"},e(p,null))))))),e(c,{options:i,action:s,setAction:a}))};return function({onError:r}){let[i,s]=t.useState();return(l({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{p5(cy.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),s({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",r(e)},[])}),i)?e(h,{screenshot:i}):e("div",null)}}({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),p8=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],de={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function dt(e,t){var n;let r,i=p8.includes(e)?de[e]||e.replace("Integration","").toLowerCase():void 0,s=i5.Sentry=i5.Sentry||{};if(!i)throw Error(`Cannot lazy load integration: ${e}`);let a=s[e];if("function"==typeof a&&!("_isShim"in a))return a;let o=(n=i,r=t5(),new URL(`/${eB}/${n}.min.js`,r?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com").toString()),u=i5.document.createElement("script");u.src=o,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let l=new Promise((e,t)=>
478{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),c=i5.document.currentScript,p=i5.document.body||i5.document.head||c?.parentElement;if(p)p.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await l}catch{throw Error(`Error when loading integration: ${e}`)}let d=s[e];if("function"!=typeof d)throw Error(`Could not load integration: ${e}`);return d}let dn=cZ({lazyLoadIntegration:dt}),dr=cZ({getModalIntegration:()=>p4,getScreenshotIntegration:()=>p9}),di="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function ds(e,t){let n;return r6(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function da(e,t){return n=>{let r=e(n),i=new Map,s=t||(e=>{let t=e.getEvent();return t?.extra?.[di]&&Array.isArray(t.extra[di])?t.extra[di]:[]});function a(t,r){let s=r?`${t}:${r}`:t,a=i.get(s);if(!a){let o=nb(t);if(!o)return;let u=r1(o,n.tunnel);a=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=ds(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:u}):e({...n,url:u}),i.set(s,a)}return[t,a]}return{send:async function(e){let t=s({envelope:e,getEvent:function(t){return ds(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?a(e,void 0):a(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send(r4(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}let du=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],dl=["removeListener","off","removeEventListener"],dc=Symbol("SentryScopeBoundListeners");function dp(e,t=t0()){var n,r;if(e[dc])return e;for(let n of(df(e),du))"function"==typeof e[n]&&(e[n]=function(e,t,n){return function(...r){let i=r[0],s=r[1],a=r.slice(2);if(!dd(s)||void 0!==w&&(s===w||s.listener===w))return t.apply(this,r);let o=function(e){return e[dc]}(e)||df(e),u=o.get(i);u||(u=new WeakMap,o.set(i,u));let l=u.get(s);l||(l=function(...e){return t3(n,()=>s.apply(this,e))},u.set(s,l));let c=w;w=l;try{return t.call(this,i,l,...a)}finally{w=c}}}(e,e[n],t));for(let t of dl)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...n){let r=n[0],i=n[1],s=n.slice(2),a=dd(i)?(function(e){return e[dc]})(e)?.get(r)?.get(i):void 0;return a?t.call(this,r,a,...s):t.apply(this,n)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(n=e,r=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[dc]}(n);if(t)if(0===e.length)df(n);else{let n=e[0];t.delete(n)}return r.apply(this,e)}),e}function dd(e){return"function"==typeof e}function df(e){let t=new Map;return e[dc]=t,t}let dh=(e={})=>{let t=e.levels||eF,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in eU&&sa(({args:r,level:i})=>{var s,a,o;let u,l,c;t5()===e&&t.includes(i)&&(s=r,a=i,o=n,u=sy(a),l=Error(),c={level:sy(a),extra:{arguments:s}},t3(e=>{if(e.addEventProcessor(e=>(e.logger="console",tA(e,{handled:o,type:"auto.core.capture_console"}),e)),"assert"===a){if(!s[0]){let t=`Assertion failed: ${tw(s.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",s.slice(1)),e.captureMessage(t,u,{captureContext:c,syntheticException:l})}return}let t=s.find(e=>e instanceof Error);if(t)return void rm(t,c);let n=tw(s," ");e.captureMessage(n,u,{captureContext:c,syntheticException:l})}))})}}};function d_(e,t={},n=t0()){let{message:r,name:i,email:s,url:a,source:o,associatedEventId:u,tags:l}=e,c={contexts:{feedback:{contact_email:s,name:i,message:r,url:a,source:o,associated_event_id:u}},type:"feedback",level:"info",tags:l},p=n?.getClient()||t5();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}function dm(e,t,n){var r,i,s;return"util"in eU&&"function"==typeof eU.util.format?eU.util.format(...e):(r=e,i=t,s=n,r.map(e=>e3(e)?String(e):JSON.stringify(ty(e,i,s))).join(" "))}function dg(e){return/%[sdifocO]/.test(e)}function dy(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}let dv={[na]:"auto.log.console"},db=(e={})=>{let t=e.levels||eF;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();if(!n)return;let s=sa(({args:n,level:s})=>{if(t5()!==e||!t.includes(s))return;let a=n[0],o=n.slice(1);if("assert"===s){a||ih({level:"error",message:o.length>0?`Assertion failed: ${dm(o,r,i)}`:"Assertion failed",attributes:dv});return}let u="log"===s,l={...dv};if(e4(a)){Object.assign(l,ty(a,r,i));let e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{l[`sentry.message.parameter.${t}`]=ty(e,r,i)})}else if(o.length>0&&"string"==typeof a&&!dg(a))for(let[e,t]of Object.entries(dy(a,o)))l[e]=e.startsWith("sentry.message.parameter.")?ty(t,r,i):t;ih({level:u?"info":s,message:dm(n,r,i),severityNumber:u?10:void 0,attributes:l})});e.registerCleanup(s)}}},dS=["trace","debug","info","warn","error","fatal"];function dx(e={}){let t=new Set(e.levels??dS),n=e.client;return{log(e){let{type:r,level:i,message:s,args:a,tag:o,date:u,...l}=e,c=n||t5();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=dw[e];if(t)return t}if("number"==typeof t){let e=dk[t];if(e)return e}return"info"}(r,i);if(!t.has(p))return;let{normalizeDepth:d=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(l))h[e]=ty(t,d,f);h["sentry.origin"]="auto.log.consola",o&&(h["consola.tag"]=o),r&&(h["consola.type"]=r),null!=i&&"number"==typeof i&&(h["consola.level"]=i);let _=function(e,t,n){let{message:r,attributes:i,messageTemplate:s,messageParameters:a}=e,o={};if(s&&a)for(let[e,r]of Object.entries(dy(s,a)))o[e]=e.startsWith("sentry.message.parameter.")?ty(r,t,n):r;else a&&a.length>0&&a.forEach((e,r)=>{o[`sentry.message.parameter.${r}
478`]=ty(e,t,n)});return{message:r,attributes:{...ty(i,t,n),...o}}}(function(e,t,n){if(!e?.length)return{message:""};let r=dm(e,t,n),i=e[0];if(e4(i)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof i&&!dg(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}(a,d,f),d,f);_?.attributes&&Object.assign(h,_.attributes),ih({level:p,message:_?.message||s||a&&dm(a,d,f)||"",attributes:h})}}}let dw={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},dk={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},dE="gen_ai.system",dT="gen_ai.request.model",dI="gen_ai.request.stream",dC="gen_ai.request.temperature",dA="gen_ai.request.max_tokens",dR="gen_ai.request.frequency_penalty",dO="gen_ai.request.presence_penalty",dP="gen_ai.request.top_p",dN="gen_ai.request.top_k",dL="gen_ai.request.encoding_format",dM="gen_ai.request.dimensions",dj="gen_ai.response.finish_reasons",d$="gen_ai.response.model",dD="gen_ai.response.id",dB="gen_ai.usage.input_tokens",dU="gen_ai.usage.output_tokens",dz="gen_ai.usage.total_tokens",dW="gen_ai.operation.name",dq="sentry.sdk_meta.gen_ai.input.messages.original_length",dF="gen_ai.input.messages",dH="gen_ai.system_instructions",dY="gen_ai.response.text",dJ="gen_ai.request.available_tools",dG="gen_ai.response.tool_calls",dV="gen_ai.agent.name",dK="gen_ai.conversation.id",dQ="gen_ai.embeddings.input",dX="gen_ai.embeddings",dZ="gen_ai.execute_tool",d0="gen_ai.tool.name",d1="gen_ai.tool.input",d2="gen_ai.tool.output";function d3(e){var t,n,r,i,s,a,o,u;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&d3(t.source)||d5(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):d4(n))||d6(e)||d7(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(i=e)&&"file"===i.type&&"mediaType"in i&&"string"==typeof i.mediaType&&"data"in i&&"string"==typeof i.data&&!i.data.startsWith("http://")&&!i.data.startsWith("https://")||"type"in(s=e)&&"image"===s.type&&"image"in s&&"string"==typeof s.image&&!s.image.startsWith("http://")&&!s.image.startsWith("https://")||"type"in(a=e)&&("blob"===a.type||"base64"===a.type)||"b64_json"in e||"type"in(o=e)&&"result"in o&&"image_generation"===o.type||"uri"in(u=e)&&"string"==typeof u.uri&&u.uri.startsWith("data:"))}function d4(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function d5(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function d6(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function d7(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let d9="[Blob substitute]",d8=["image_url","data","content","b64_json","result","uri","image"];function fe(e){let t={...e};for(let n of(d3(t.source)&&(t.source=fe(t.source)),d5(e)&&(t.inlineData={...e.inlineData,data:d9}),d4(e)&&(t.image_url={...e.image_url,url:d9}),d6(e)&&(t.input_audio={...e.input_audio,data:d9}),d7(e)&&(t.file={...e.file,file_data:d9}),d8))"string"==typeof t[n]&&(t[n]=d9);return t}let ft=e=>new TextEncoder().encode(e).length,fn=e=>ft(JSON.stringify(e));function fr(e,t){if(ft(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){let s=Math.floor((n+r)/2),a=e.slice(0,s);ft(a)<=t?(i=a,n=s+1):r=s-1}return i}function fi(e,t){return"string"==typeof e?t:{...e,text:t}}function fs(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function fa(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function fo(e){let t=t5()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function fu(e){if(void 0!==e)return e;let t=t5();return!t||!ix(t)&&!1===t.getOptions().streamGenAiSpans}function fl(e,t){return e?`${e}.${t}`:t}
478function fc(e,t,n){if(!e.isRecording())return;let r={"gen_ai.response.streaming":!0};t.responseId&&(r[dD]=t.responseId),t.responseModel&&(r[d$]=t.responseModel),void 0!==t.promptTokens&&(r[dB]=t.promptTokens),void 0!==t.completionTokens&&(r[dU]=t.completionTokens),void 0!==t.totalTokens?r[dz]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(r[dz]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[dj]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[dY]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[dG]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function fp(e){if("string"==typeof e)return fr(e,2e4);try{return JSON.stringify(Array.isArray(e)?function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(fs(t)?n={...t,content:e(t.content)}:"content"in t&&d3(t.content)&&(n={...t,content:fe(t.content)}),fa(t)&&(n={...n??t,parts:e(t.parts)}),d3(n)?n=fe(n):d3(t)&&(n=fe(t))),n??t})}([e[e.length-1]]),n=t[0];return 19998>=fn(n)?t:function(e){if(!e)return[];if("string"==typeof e){let t=fr(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-fn({...e,content:""});if(t<=0)return[];let n=fr(e.content,t);return[{...e,content:n}]}return fs(e)||fa(e)?function(e,t){let{key:n,items:r}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===n||0===r.length)return[];let i=r.map(e=>fi(e,"")),s=t-fn({...e,[n]:i});if(s<=0)return[];let a=[];for(let e of r){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",n=ft(t);if(n<=s)a.push(e),s-=n;else if(0===a.length){let n=fr(t,s);n&&a.push(fi(e,n));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}(e,19998):[]}(n)}(e):e)}catch{return"[unserializable]"}}function fd(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function ff(e,t,n){let r=e.catch(e=>{throw rm(e,{mechanism:{handled:!1,type:n}}),e}),i=await t,s=await r;return s&&"object"==typeof s&&"data"in s?{...s,data:i}:i}function fh(e,t,n){return e7(e)?new Proxy(e,{get(e,r){let i=r in Promise.prototype||r===Symbol.toStringTag?t:e,s=Reflect.get(i,r);return"withResponse"===r&&"function"==typeof s?function(){return ff(s.call(e),t,n)}:"function"==typeof s?s.bind(i):s}}):t}let f_="auto.ai.langchain",fm={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},fg=(e,t,n)=>{null!=n&&(e[t]=n)},fy=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function fv(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&d3(e)?fe(e):e);return JSON.stringify(t)}catch{return String(e)}return tb(e,String)}function fb(e){let t=e.toLowerCase();return fm[t]??t}function fS(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function fx(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function fw(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:fb(t.call(e)),content:fv(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:fb("string"==typeof n?fS(n):"user"),content:fv(e.kwargs?.content)}}if(e.type)return{role:fb(String(e.type).toLowerCase()),content:fv(e.content)};if(e.role)return{role:fb(String(e.role)),content:fv(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:fb(fS(n)),content:fv(e.content)}:{role:"user",content:fv(e.content)}})}function fk(e,t,n,r,i){let s,a;return{[dE]:tb(e??"langchain",String),[dW]:"chat",[dT]:tb(t,String),[na]:f_,...(s={},a="kwargs"in n?n.kwargs:void 0,fy(s,dC,r?.temperature??i?.ls_temperature??a?.temperature),fy(s,dA,r?.max_tokens??i?.ls_max_tokens??a?.max_tokens),fy(s,dP,r?.top_p??a?.top_p),fy(s,dR,r?.frequency_penalty),fy(s,dO,r?.presence_penalty),r&&"stream"in r&&fg(s,dI,!!r.stream),s)}}function fE(e){let t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[dV]=n),t}function fT(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function fI(e={}){let{recordInputs:t,recordOutputs:n}=fo(e),r=fu(e.enableTruncation),i=new Map,s=e=>{let t=i.get(e);t?.isRecording()&&(t.end(),i.delete(e))}
478,a={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,s,a,o,u,l,c){let p=function(e,t,n,r,i,s){let a=fk(s?.ls_provider,i?.model??s?.ls_model_name??"unknown",e,i,s);if(n&&Array.isArray(t)&&t.length>0){fg(a,dq,t.length);let e=t.map(e=>({role:"user",content:e}));fg(a,dF,r?fp(e):tb(e))}return a}(e,n,t,r,fx(u),l),d=p[dT],f=p[dW];aM({name:`${f} ${d}`,op:"gen_ai.chat",attributes:{...fE(l),...p,[ns]:"gen_ai.chat"}},e=>(i.set(s,e),e))},handleChatModelStart(e,n,s,a,o,u,l,c){let p=function(e,t,n,r,i,s){let a=fk(s?.ls_provider??e.id?.[2],i?.model??s?.ls_model_name??"unknown",e,i,s);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=fd(fw(t.flat()));e&&fg(a,dH,e),fg(a,dq,Array.isArray(n)?n.length:0),fg(a,dF,r?fp(n):tb(n))}return a}(e,n,t,r,fx(u),l),d=function(e){let t=e?.invocation_params?.tools??e?.options?.tools;if(Array.isArray(t)&&0!==t.length)return JSON.stringify(t.map(e=>{let t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}}))}(o);d&&(p[dJ]=d);let f=p[dT],h=p[dW];aM({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...fE(l),...p,[ns]:"gen_ai.chat"}},e=>(i.set(s,e),e))},handleLLMEnd(e,t,r,a,o){let u=i.get(t);if(u?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&fg(n,dj,tb(r,String)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message,r=e?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}}n.length>0&&fg(t,dG,tb(n,String))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&fg(n,dY,tb(t,String))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)fy(t,dB,n.promptTokens),fy(t,dU,n.completionTokens),fy(t,dz,n.totalTokens);else if(r){fy(t,dB,r.input_tokens),fy(t,dU,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&fy(t,dz,i),void 0!==r.cache_creation_input_tokens&&fy(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&fy(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0],s=i?.message,a=r?.model_name??r?.model??s?.response_metadata?.model_name;a&&fg(n,d$,a);let o=r?.id??s?.id;o&&fg(n,dD,o);let u=r?.stop_reason??s?.response_metadata?.finish_reason;return u&&fg(n,"gen_ai.response.stop_reason",tb(u,String)),n}(e,n);r&&u.setAttributes(r),s(t)}},handleLLMError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),s(t)),rm(e,{mechanism:{handled:!1,type:`${f_}.llm_error_handler`}})},handleChainStart(e,n,r,s,a,o,u,l){if(o?.__sentry_langgraph__)return;let c=l||e.name||"unknown_chain",p={[na]:"auto.ai.langchain","langchain.chain.name":c};t&&(p["langchain.chain.inputs"]=JSON.stringify(n)),aM({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...p,[ns]:"gen_ai.invoke_agent"}},e=>(i.set(r,e),e))},handleChainEnd(e,t){let r=i.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),s(t))},handleChainError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),s(t)),rm(e,{mechanism:{handled:!1,type:`${f_}.chain_error_handler`}})},handleToolStart(e,n,r,s,a,o,u){if(o?.__sentry_langgraph__)return;let l=u||e.name||"unknown_tool",c={...fE(o),[na]:f_,[dW]:"execute_tool",[d0]:l};t&&(c[d1]=n),aM({name:`execute_tool ${l}`,op:"gen_ai.execute_tool",attributes:{...c,[ns]:"gen_ai.execute_tool"}},e=>(i.set(r,e),e))},handleToolEnd(e,t){let r=i.get(t);if(r?.isRecording()){if(n){let t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[d2]:"string"==typeof t?t:JSON.stringify(t)})}s(t)}},handleToolError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),s(t)),rm(e,{mechanism:{handled:!1,type:`${f_}.tool_error_handler`}})},copy:()=>a,toJSON:()=>
478({lc:1,type:"not_implemented",id:a.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:a.lc_id})};return a}let fC=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,i){let{maxValueLength:s}=i.getOptions();return function(e,t={},n,r,i){if(!t.originalException||!eQ(t.originalException))return e;let s=t.originalException.name||t.originalException.constructor.name,a=function e(t,n,r){try{let i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(let e of Object.keys(t)){if(-1!==i.indexOf(e))continue;let n=t[e];s[e]=eQ(n)||"string"==typeof n?r?tS(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause&&(eQ(t.cause)?s.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:s.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];s[t]=eQ(n)?n.toString():n}}return s}catch(e){}return null}(t.originalException,r,i);if(a){let t={...e.contexts},r=ty(a,n);return e4(r)&&(tt(r,tl,!0),t[s]=r),{...e,contexts:t}}return e}(e,r,t,n,s)}}},fA="flag.evaluation.";function fR(e){if(e.type)return e;let t=t0().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function fO(e,t,n=100){let r=t0().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n||e.length>r)return;let i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function fP(e,t,n=10){if("boolean"!=typeof t)return;let r=rt();if(!r)return;let i=nV(r).data;`${fA}${e}`in i?r.setAttribute(`${fA}${e}`,t):Object.keys(i).filter(e=>e.startsWith(fA)).length<n&&r.setAttribute(`${fA}${e}`,t)}let fN=()=>
478({name:"FeatureFlags",processEvent:(e,t,n)=>fR(e),addFeatureFlag(e,t){fO(e,t),fP(e,t)}}),fL={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},fM={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function fj(e){return e&&fM[e]||"internal_error"}function f$(e,t,n,r){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(r.setStatus({code:2,message:fj(e.error?.type)}),rm(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let i=r.inputJsonParts.join("");try{n=i?JSON.parse(i):{}}catch{n={__unparsed:i}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*fD(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)f$(i,r,n,t),yield i}finally{fc(t,r,n)}}function fB(e,t,n){!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:i}=fd(t);r&&e.setAttributes({[dH]:r});let s=Array.isArray(i)?i.length:1;e.setAttributes({[dF]:n?fp(i):tb(i),[dq]:s})}(e,function(e){let{system:t,messages:n,input:r}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],s=Array.isArray(r)?r:null!=r?[r]:void 0,a=Array.isArray(n)?n:null!=n?[n]:[];return[...i,...s??a]}(t),n),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function fU(e,t,n){throw rm(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end()),e}function fz(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,i){let s=t[i],a=fl(n,String(i)),o=fL[a];if("function"==typeof s&&o)return new Proxy(s,{apply(e,n,i){let u,l=o.operation||"unknown",c=function(e,t,n){let r={[dE]:"anthropic",[dW]:n,[na]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[dJ]=JSON.stringify(t.tools)),r[dT]=t.model??"unknown","temperature"in t&&(r[dC]=t.temperature),"top_p"in t&&(r[dP]=t.top_p),"stream"in t&&(r[dI]=t.stream),"top_k"in t&&(r[dN]=t.top_k),"frequency_penalty"in t&&(r[dR]=t.frequency_penalty),"max_tokens"in t&&(r[dA]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[dT]=e[0]:r[dT]="unknown";return r}(i,a,l),p=c[dT]??"unknown",d="object"==typeof i[0]?i[0]:void 0,f=!!d?.stream,h=!0===o.streaming;if(f||h){let n=c[dT]??"unknown",o={name:`${l} ${n}`,op:`gen_ai.${l}`,attributes:c};if(!f||h)return aM(o,n=>{try{var s,o;let a;return r.recordInputs&&d&&fB(n,d,fu(r.enableTruncation)),s=e.apply(t,i),o=r.recordOutputs??!1,a={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},s.on("streamEvent",e=>{f$(e,a,o,n)}),s.on("message",()=>{fc(n,a,o)}),s.on("error",e=>{rm(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),n.isRecording()&&(n.setStatus({code:2,message:"internal_error"}),n.end())}),s}catch(e){return fU(e,n,a)}});{let e,n=aM(o,n=>(e=s.apply(t,i),r.recordInputs&&d&&fB(n,d,fu(r.enableTruncation)),(async()=>{try{let t=await e;return fD(t,n,r.recordOutputs??!1)}catch(e){return fU(e,n,a)}})()));return fh(e,n,"auto.ai.anthropic")}}let _=aL({name:`${l} ${p}`,op:`gen_ai.${l}`,attributes:c},n=>(u=e.apply(t,i),r.recordInputs&&d&&fB(n,d,fu(r.enableTruncation)),u.then(e=>(!function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:2,message:fj(t.error.type)}),rm(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[dY]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[dG]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[dY]:t.completion}),"input_tokens"in t&&e.setAttributes({[dY]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var n,r,i,s;e.setAttributes({[dD]:t.id,[d$]:t.model}),"usage"in t&&t.usage&&(n=t.usage.input_tokens,r=t.usage.output_tokens,i=t.usage.cache_creation_input_tokens,s=t.usage.cache_read_input_tokens,void 0!==n&&e.setAttributes({[dB]:n}),void 0!==r&&e.setAttributes({[dU]:r}),(void 0!==n||void 0!==r||void 0!==i||void 0!==s)&&e.setAttributes({[dz]:(n??0)+(r??0)+(i??0)+(s??0)}))}}(e,t)}}(n,e,r.recordOutputs),e),e=>
478{throw rm(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:a}}}),e})));return fh(u,_,"auto.ai.anthropic")}});return"function"==typeof s?s.bind(t):s&&"object"==typeof s?e(s,a,r):s}})}(e,"",fo(t))}let fW="auto.ai.langgraph",fq=!1,fF="__sentry_patched__";function fH(e,t,n,r,i,s){return new Proxy(e,{apply(e,a,o){let u=i?.modelName??i?.model;return aL({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[na]:fW,[ns]:"gen_ai.invoke_agent",[dW]:"invoke_agent"}},async i=>{try{let l=n?.name;l&&"string"==typeof l&&(i.setAttribute("gen_ai.pipeline.name",l),i.setAttribute(dV,l),i.updateName(`invoke_agent ${l}`)),u&&i.setAttribute(dT,u);let c=o.length>1?o[1]:void 0,p=c?.configurable,d=p?.thread_id;if(d&&"string"==typeof d&&i.setAttribute(dK,d),s){let e=o[1]??{};o[1]=e;let t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof l?{lc_agent_name:l}:{}},e.callbacks=function(e,t){if(!e)return[t];if(e&&"object"==typeof e&&"function"==typeof e.addHandler&&"function"==typeof e.copy){if((e.handlers??[]).some(fT))return e;let n=e.copy();return n.addHandler(t,!0),n}let n=Array.isArray(e)?e:[e];return n.some(fT)?e:[...n,t]}(e.callbacks,s)}let f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(t);f&&i.setAttribute(dJ,JSON.stringify(f));let h=r.recordInputs,_=r.recordOutputs,m=o.length>0?o[0]?.messages??[]:[];if(m&&h){let e=fw(m),{systemInstructions:t,filteredMessages:n}=fd(e);t&&i.setAttribute(dH,t);let s=fu(r.enableTruncation),a=Array.isArray(n)?n.length:0;i.setAttributes({[dF]:s?fp(n):tb(n),[dq]:a})}let g=await Reflect.apply(e,a,o);return _&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let i=t?.length??0,s=r.length>i?r.slice(i):[];if(0===s.length)return;let a=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(s);a&&e.setAttribute(dG,JSON.stringify(a));let o=fw(s);e.setAttribute(dY,JSON.stringify(o));let u=0,l=0,c=0;for(let t of s){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let i=e.usage_metadata;return"number"==typeof i.input_tokens&&(t=i.input_tokens),"number"==typeof i.output_tokens&&(n=i.output_tokens),"number"==typeof i.total_tokens&&(r=i.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let i=e.response_metadata;if(i.tokenUsage&&"object"==typeof i.tokenUsage){let e=i.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);u+=n.inputTokens,l+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(d$,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(dj,[n.finish_reason])}}(e,t)}u>0&&e.setAttribute(dB,u),l>0&&e.setAttribute(dU,l),c>0&&e.setAttribute(dz,c)}(i,m??null,g),g}catch(e){throw i.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function fY(e,t){if(Object.prototype.hasOwnProperty.call(e,fF))return e;let n=fo(t),r=fI(n),i=new Proxy(e,{apply(e,t,i){let s,a,o=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(i),u="object"==typeof(a=i[0])&&a&&"name"in a&&"string"==typeof a.name?a.name:null,l=i[0];l&&Array.isArray(l.tools)&&l.tools.length>0&&function(e,t,n){let r="__sentry_tool_wrapped__";for(let i of e){if(!i||"object"!=typeof i)continue;let e=i.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(i,r))continue;
478let s="string"==typeof i.name?i.name:"unknown_tool",a="string"==typeof i.description?i.description:void 0;i.invoke=new Proxy(e,{apply(e,r,i){let o={[na]:fW,[ns]:dZ,[dW]:"execute_tool",[d0]:s,"gen_ai.tool.type":"function"},u=i[1],l=u?.metadata?.lc_agent_name??n;"string"==typeof l&&(o[dV]=l),a&&(o["gen_ai.tool.description"]=a);let c=i[0];if("object"==typeof c&&c&&("id"in c&&"string"==typeof c.id&&(o["gen_ai.tool.call.id"]=c.id),t.recordInputs)){let e="args"in c&&"object"==typeof c.args?c.args:c;try{o[d1]=JSON.stringify(e)}catch{}}return aL({op:dZ,name:`execute_tool ${s}`,attributes:o},async n=>{try{let s=await Reflect.apply(e,r,i);if(t.recordOutputs)try{let e=s&&"object"==typeof s&&"content"in s?s.content:s;n.setAttribute(d2,"string"==typeof e?e:JSON.stringify(e))}catch{}return s}catch(e){throw n.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}}),Object.defineProperty(i,r,{value:!0,enumerable:!1})}}(l.tools,n,u??void 0),fq=!0;try{s=Reflect.apply(e,t,i)}finally{fq=!1}let c=s.invoke;if(c&&"function"==typeof c){let e={};u&&(e.name=u),s.invoke=fH(c.bind(s),s,e,n,o,r)}return s}});return Object.defineProperty(i,fF,{value:!0,enumerable:!1}),i}function fJ(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,fF))return e;let n=fI(t),r=new Proxy(e,{apply:(e,r,i)=>
478fq?Reflect.apply(e,r,i):aL({op:"gen_ai.create_agent",name:"create_agent",attributes:{[na]:fW,[ns]:"gen_ai.create_agent",[dW]:"create_agent"}},s=>{try{let a=Reflect.apply(e,r,i),o=i.length>0?i[0]:{};o?.name&&"string"==typeof o.name&&(s.setAttribute(dV,o.name),s.updateName(`create_agent ${o.name}`));let u=a.invoke;return u&&"function"==typeof u&&(a.invoke=fH(u.bind(a),a,o,t,void 0,n)),a}catch(e){throw s.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(r,fF,{value:!0,enumerable:!1}),r}(e.compile,fo(t)),e}let fG={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}};async function*fV(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let i of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:2,message:"internal_error"}),rm(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){let r;for(let i of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(r=e.usageMetadata)&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(i?.finishReason&&!t.finishReasons.includes(i.finishReason)&&t.finishReasons.push(i.finishReason),i?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(i,r,n,t),yield i}finally{fc(t,r,n)}}function fK(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>fK(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function fQ(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function fX(e,t,n,r){if("embeddings"===n){let n=t.contents;null!=n&&e.setAttribute(dQ,"string"==typeof n?n:JSON.stringify(n));return}let i=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&i.push(...fK(t.config.systemInstruction,"system")),"history"in t&&i.push(...fK(t.history,"user")),"contents"in t&&i.push(...fK(t.contents,"user")),"message"in t&&i.push(...fK(t.message,"user")),Array.isArray(i)&&i.length){let{systemInstructions:t,filteredMessages:n}=fd(i);t&&e.setAttribute(dH,t);let s=Array.isArray(n)?n.length:0;e.setAttributes({[dq]:s,[dF]:r?fp(n):tb(n)})}}function fZ(e,t){return function e(t,n="",r){return new Proxy(t,{get:(t,i,s)=>{let a=Reflect.get(t,i,s),o=fl(n,String(i)),u=fG[o];if("function"==typeof a&&u){let n,i=u.operation?(n="embeddings"===u.operation,new Proxy(a,{apply(e,i,s){let a=u.operation||"unknown",l=s[0],c=function(e,t,n){let r={[dE]:"google_genai",[dW]:e,[na]:"auto.ai.google_genai"};if(t){if(r[dT]=fQ(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e,n=t.config;if(Object.assign(r,(e={},"temperature"in n&&"number"==typeof n.temperature&&(e[dC]=n.temperature),"topP"in n&&"number"==typeof n.topP&&(e[dP]=n.topP),"topK"in n&&"number"==typeof n.topK&&(e[dN]=n.topK),"maxOutputTokens"in n&&"number"==typeof n.maxOutputTokens&&(e[dA]=n.maxOutputTokens),"frequencyPenalty"in n&&"number"==typeof n.frequencyPenalty&&(e[dR]=n.frequencyPenalty),"presencePenalty"in n&&"number"==typeof n.presencePenalty&&(e[dO]=n.presencePenalty
478),e)),"tools"in n&&Array.isArray(n.tools)){let e=n.tools.flatMap(e=>e.functionDeclarations);r[dJ]=JSON.stringify(e)}}}else r[dT]=fQ({},n);return r}(a,l,t),p=c[dT]??"unknown";return u.streaming?aM({name:`${a} ${p}`,op:`gen_ai.${a}`,attributes:c},async n=>{try{r.recordInputs&&l&&fX(n,l,a,fu(r.enableTruncation));let i=await e.apply(t,s);return fV(i,n,!!r.recordOutputs)}catch(e){throw n.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:o}}}),n.end(),e}}):aL({name:`${a} ${p}`,op:`gen_ai.${a}`,attributes:c},i=>(r.recordInputs&&l&&fX(i,l,a,fu(r.enableTruncation)),aP(()=>e.apply(t,s),e=>{rm(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:o}}})},()=>{},e=>{n||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(d$,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[dB]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[dU]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[dz]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[dY]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[dG]:JSON.stringify(n)})}}}(i,e,r.recordOutputs)})))}})):a.bind(t);return u.proxyResultPath?function(...t){let n=i(...t);return n&&"object"==typeof n?e(n,u.proxyResultPath,r):n}:i}return"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,o,r):a}})}(e,"",fo(t))}function f0(e,t={}){return new Proxy(e,{apply:(e,n,r)=>aL(function(e,t,n={}){let r,i,s,{recordInputs:a}=fo(n),o=((i={[na]:f_,[ns]:dX,[dW]:"embeddings",[dT]:(r=e??{}).model??"unknown"})[dE]=(s=r.constructor?.name??"").includes("OpenAI")?"openai":s.includes("Google")?"google_genai":s.includes("Mistral")?"mistralai":s.includes("Vertex")?"google_vertexai":s.includes("Bedrock")?"aws_bedrock":s.includes("Ollama")?"ollama":s.includes("Cloudflare")?"cloudflare":s.includes("Cohere")?"cohere":"langchain","dimensions"in r&&(i[dM]=r.dimensions),"encodingFormat"in r&&(i[dL]=r.encodingFormat),i),u=o[dT]||"unknown";return a&&null!=t&&(o[dQ]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${u}`,op:dX,attributes:o}}(n,r[0],t),()=>Reflect.apply(e,n,r).then(void 0,e=>{throw rm(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))})}function f1(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=f0(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=f0(e.embedDocuments,t)),e}let f2={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},f3=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];async function*f4(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let i of e){if(null!==i&&"object"==typeof i&&"object"in i&&"chat.completion.chunk"===i.object){for(let e of(r.responseId=i.id??r.responseId,r.responseModel=i.model??r.responseModel,i.usage&&(r.promptTokens=i.usage.prompt_tokens,r.completionTokens=i.usage.completion_tokens,r.totalTokens=i.usage.total_tokens),i.choices??[]))n&&(e.delta?.content&&r.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(e.delta.tool_calls,r)),e.finish_reason&&r.finishReasons.push(e.finish_reason)}else null!==i&&"object"==typeof i&&"type"in i&&"string"==typeof i.type&&i.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
478if(e instanceof Error){r.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!f3.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(i,r,n,t);yield i}}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];fc(t,{...r,toolCalls:e},n)}}function f5(e,t,n,r){if("embeddings"===n&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute(dQ,"string"==typeof n?n:JSON.stringify(n));return}let i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i||Array.isArray(i)&&0===i.length)return;let{systemInstructions:s,filteredMessages:a}=fd(i);s&&e.setAttribute(dH,s),e.setAttribute(dF,r?fp(a):tb(a)),Array.isArray(a)?e.setAttribute(dq,a.length):e.setAttribute(dq,1)}function f6(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,i){let s=t[i],a=fl(n,String(i)),o=f2[a];if("function"==typeof s&&o)return function(...e){let n,i=o.operation||"unknown",u=function(e,t){let n={[dE]:"openai",[dW]:t,[na]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,r,i=e[0],s=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){return}}(i);s&&(n[dJ]=s),Object.assign(n,(t={[dT]:i.model??"unknown"},"temperature"in i&&(t[dC]=i.temperature),"top_p"in i&&(t[dP]=i.top_p),"frequency_penalty"in i&&(t[dR]=i.frequency_penalty),"presence_penalty"in i&&(t[dO]=i.presence_penalty),"stream"in i&&(t[dI]=i.stream),"encoding_format"in i&&(t[dL]=i.encoding_format),"dimensions"in i&&(t[dM]=i.dimensions),(r="conversation"in i&&"string"==typeof i.conversation?i.conversation:"previous_response_id"in i&&"string"==typeof i.previous_response_id?i.previous_response_id:void 0)&&(t[dK]=r),t))}else n[dT]="unknown";return n}(e,i),l=u[dT]||"unknown",c=e[0],p=c&&"object"==typeof c&&!0===c.stream,d={name:`${i} ${l}`,op:`gen_ai.${i}`,attributes:u};if(p){let n,o=aM(d,o=>(n=s.apply(t,e),r.recordInputs&&c&&f5(o,c,i,fu(r.enableTruncation)),(async()=>{try{let e=await n;return f4(e,o,r.recordOutputs??!1)}catch(e){throw o.setStatus({code:2,message:"internal_error"}),rm(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:a}}}),o.end(),e}})()));return fh(n,o,"auto.ai.openai")}let f=aL(d,o=>(n=s.apply(t,e),r.recordInputs&&c&&f5(o,c,i,fu(r.enableTruncation)),n.then(e=>(!function(e,t,n){if(!t||"object"!=typeof t)return;let r={};if("string"==typeof t.id&&(r[dD]=t.id),"string"==typeof t.model&&(r[d$]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(r[dK]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,n=e.prompt_tokens??e.input_tokens;"number"==typeof n&&(r[dB]=n);let i=e.completion_tokens??e.output_tokens;"number"==typeof i&&(r[dU]=i),"number"==typeof e.total_tokens&&(r[dz]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,i=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(i.length>0&&(r[dj]=JSON.stringify(i)),n){let t=e.map(e=>{let t=e.message;return t?.content||""});r[dY]=JSON.stringify(t);let n=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(r[dG]=JSON.stringify(n))}}if("string"!=typeof t.status||r[dj]||(r[dj]=JSON.stringify([t.status])),n&&("string"!=typeof t.output_text||r[dY]||(r[dY]=t.output_text),Array.isArray(t.output)&&t.output.length>0&&!r[dG])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(r[dG]=JSON.stringify(e))}e.setAttributes(r)}(o,e,r.recordOutputs),e),e=>
478{throw rm(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:a}}}),e})));return fh(n,f,"auto.ai.openai")};return"function"==typeof s?s.bind(t):s&&"object"==typeof s?e(s,a,r):s}})}(e,"",fo(t))}let f7=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],f9=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],f8={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},he=["select","insert","upsert","update","delete"];function ht(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function hn(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function hr(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function hi(e,t=!1){return new Proxy(e,{apply:(n,r,i)=>aL({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[na]:"auto.db.supabase",[ns]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,i).then(t=>(e5(t)&&"error"in t&&t.error?(e.setStatus({code:2}),rm(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),rm(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}let hs=(e,t={})=>{var n;if(!e)return;n=e.constructor===Function?e:e.constructor,hn(n.prototype.from)||(n.prototype.from=new Proxy(n.prototype.from,{apply(e,n,r){let i=Reflect.apply(e,n,r);return function(e,t){for(let n of he)hn(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,n,r){let i=Reflect.apply(e,n,r);return!function(e,t){hn(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let i=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(n.method,n.headers);if(!he.includes(i)||!n?.url?.pathname||"string"!=typeof n.url.pathname)return Reflect.apply(e,n,r);let s=n.url.pathname.split("/"),a=s.length>0?s[s.length-1]:"",o=[];for(let[e,t]of n.url.searchParams.entries())o.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...i]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&f8[r]||"filter",`${n}(${e}, ${i.join(".")})`}(e,t));let u=Object.create(null);if(e4(n.body))for(let[e,t]of Object.entries(n.body))u[e]=t;let l=t5(),c=t.sendOperationData??l?.getDataCollectionOptions().databaseQueryData===!0,p=hr(n.body,u),d="select"===i?"":`${i}${void 0!==hr(n.body,u)?"(...) ":""}`,f=c?o.join(" "):o.length>0?"[redacted]":"",h=[d.trimEnd(),f].filter(Boolean).join(" "),_=h?`${h} from(${a})`:`from(${a})`,m={"db.table":a,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":n.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[na]:"auto.db.supabase",[ns]:"db"};return o.length&&c&&(m["db.query"]=o),void 0!==p&&c&&(m["db.body"]=p),aL({name:_,attributes:m},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&nA(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};o.length&&c&&(n.query=o),void 0!==p&&c&&(n.body=p),rm(t,e=>(e.addEventProcessor(e=>(tA(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let n={type:"supabase",category:`db.${i}`,message:_},r={};return o.length&&c&&(r.query=o),void 0!==p&&c&&(r.body=p),Object.keys(r).length&&(n.data=r),sg(n),e},e=>{throw t&&(nA(t,500),t.end()),e}).then(...r))}}),ht(e.prototype.then))}(i.constructor,t),i}}),ht(e.prototype[n]))}(i.constructor,t),i}}),ht(n.prototype.from));let r=e.auth;if(!(!r||hn(e.auth))){for(let t of f7){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=hi(n))}for(let t of f9){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=hi(n,!0))}ht(e.auth)}},ha=e=>{let t,n;return t=e.supabaseClient,n={sendOperationData:e.sendOperationData},{setupOnce(){hs(t,n)},name:"Supabase"}};function ho(e,...t){let n=new String(String.raw(e,...t));
478return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}let hu=ho;function hl(e,t,n,r,i){ih({level:e,message:t,attributes:n,severityNumber:i},r)}function hc(e,t,{scope:n}={}){hl("trace",e,t,n)}function hp(e,t,{scope:n}={}){hl("debug",e,t,n)}function hd(e,t,{scope:n}={}){hl("info",e,t,n)}function hf(e,t,{scope:n}={}){hl("warn",e,t,n)}function hh(e,t,{scope:n}={}){hl("error",e,t,n)}function h_(e,t,{scope:n}={}){hl("fatal",e,t,n)}function hm(e,t,n,r){!function(e,t){let n=t?.scope??t0(),r=t?.captureSerializedMetric??iv,i=n?.getClient()??t5();if(!i)return;let{_experiments:s,enableMetrics:a,beforeSendMetric:o}=i.getOptions();if(!(a??s?.enableMetrics??!0))return;let{user:u,attributes:l}=rh(t1(),n),c=function(e,t,n){let{release:r,environment:i}=t.getOptions(),s={...e.attributes};iy(s,"user.id",n.id,!1),iy(s,"user.email",n.email,!1),iy(s,"user.name",n.username,!1),iy(s,"sentry.release",r),iy(s,"sentry.environment",i);let{name:a,version:o}=t.getSdkMetadata()?.sdk??{};iy(s,"sentry.sdk.name",a),iy(s,"sentry.sdk.version",o);let u=t.getIntegrationByName("Replay"),l=u?.getReplayId(!0);return iy(s,"sentry.replay_id",l),l&&u?.getRecordingMode()==="buffer"&&iy(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}(e,i,u);i.emit("processMetric",c);let p=o||s?.beforeSendMetric,d=p?p(c):c;if(!d)return;let f=function(e,t,n,r){let[,i]=io(t,n),s=tW(n),a=s?s.spanContext().traceId:i?.trace_id,o=s?s.spanContext().spanId:void 0,u=tP(),l=ia(u);return{timestamp:u,trace_id:a??"",span_id:o,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...nE(r),...nE(e.attributes,"skip-undefined"),[l.key]:l.value}}}(d,i,n,l);r(i,f),i.emit("afterCaptureMetric",d)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function hg(e,t=1,n){hm("counter",e,t,n)}function hy(e,t,n){hm("gauge",e,t,n)}function hv(e,t,n){hm("distribution",e,t,n)}let hb=new Map,hS=new Set;function hx(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(eU._sentryModuleMetadata)for(let t of Object.keys(eU._sentryModuleMetadata)){let n=eU._sentryModuleMetadata[t];if(!hS.has(t)){for(let r of(hS.add(t),e(t).reverse()))if(r.filename){hb.set(r.filename,n);break}}}return hb.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function hw(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let hk=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{r6(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(hw(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||hx(e.getOptions().stackParser,t)})}}),hE=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{r6(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(hw(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||hx(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(eU._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=tg(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(hC))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(hI))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(hT)).map(e=>e.slice(hT.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),hT="_sentryBundlerPluginAppKey:",hI="Attempt to invoke user-land function",hC="fn.apply(this, wrappedArguments)";function hA(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let hR=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var i;if(!n.exception?.values||!r.originalException||!(eQ(i=r.originalException)&&"ZodError"===i.name&&Array.isArray(i.issues))||0===r.originalException.issues.length)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(hA);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
478ilename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${tS(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message} 479${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}},hO={startProfiler:function(){let e=t5();!e||e.getIntegrationByName("BrowserProfiling")&&e.emit("startUIProfiler")},stopProfiler:function(){let e=t5();!e||e.getIntegrationByName("BrowserProfiling")&&e.emit("stopUIProfiler")}};function hP(e,{metadata:t,tunnel:n,dsn:r}){return r4({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:nv(r)}},[[{type:"user_report"},e]])}function hN(e={}){let t=i5.document,n=t?.head||t?.body;if(!n)return;let r=t0(),i=t5(),s=i?.getDsn();if(!s)return;let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||rC()},o=i5.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(e,t){let n=nw(e);if(!n)return"";let r=`${r0(n)}embed/error-page/`,i=`dsn=${nv(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}(s,a);let{onLoad:u,onClose:l}=a;if(u&&(o.onload=u),l){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{l()}finally{i5.removeEventListener("message",e)}};i5.addEventListener("message",e)}n.appendChild(o)}let hL=new WeakMap,hM=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(hL.has(t5()))for(let t of e)t3(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}rg(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in eU&&new eU.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){hL.set(e,!0)}}};function hj(e,t){return t.some(t=>e.includes(t))}function h$(e,t,n){if(!1===t)return{};let r=null!=n?[...iR,...n]:iR,i={};if(!0===t){for(let t of Object.keys(e))i[t]=hj(t.toLowerCase(),r)?iC:e[t];return i}if("deny"in t){let n=t.deny.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let s=t.toLowerCase(),a=hj(s,r)||n.some(e=>s.includes(e));i[t]=a?iC:e[t]}return i}let s=t.allow.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let n=t.toLowerCase();if(hj(n,r))i[t]=iC;else{let r=s.some(e=>n.includes(e));i[t]=r?e[t]:iC}}return i}function hD(e,t){if(!1===t)return{};try{let n=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let i=e.indexOf(";",n);if(-1===i)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}let s=e.slice(n,r).trim();if(void 0===t[s]){let n=e.slice(r+1,i).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
479try{t[s]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[s]=n}}n=i+1}return t}(e);if(0===Object.keys(n).length)return{};return h$(n,t,iO)}catch{return iC}}function hB(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let hU=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,i,s;n=e,r=t,sc()&&sp(e=>{if(t5()!==n)return;let{response:t,args:i,error:s,virtualError:a}=e,[o,u]=i;t&&function(e,t,n,r,i){if(hW(e,n.status,n.url)){var s,a;let e,o,u,l,c=(s=t,!(a=r)&&s instanceof Request||s instanceof Request&&s.bodyUsed?s:new Request(s,a)),p=hF();if(!1!==p.requestHeaders&&(e=h$(hz(c.headers),p.requestHeaders)),!1!==p.responseHeaders&&(o=h$(hz(n.headers),p.responseHeaders)),!1!==p.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=hD(e,p.cookies);"object"==typeof t&&(u=t)}let t=n.headers.get("Set-Cookie")||void 0;if(t){let e=hD(t,p.cookies);"object"==typeof e&&(l=e)}}ry(hq({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:o,requestCookies:u,responseCookies:l,error:i,type:"fetch"}))}}(r,o,t,u,s||a)},!1),i=e,s=t,"XMLHttpRequest"in eU&&(0,sI.Mn)(e=>{if(t5()!==i)return;let{error:t,virtualError:n}=e,r=e.xhr,a=r[sI.Er];if(!a)return;let{method:o,request_headers:u}=a;try{!function(e,t,n,r,i){if(hW(e,t.status,t.responseURL)){let e,s,a,o=hF();if(!1!==o.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=hD(e,o.cookies);"object"==typeof t&&(s=t)}}catch{}if(!1!==o.responseHeaders)try{let e;a=h$((e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{},o.responseHeaders)}catch{}!1!==o.requestHeaders&&(e=h$(r,o.requestHeaders)),ry(hq({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:s,error:i,type:"xhr"}))}}(s,r,o,u,t||n)}catch(e){}})}}};function hz(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function hW(e,t,n){var r,i,s,a,o,u,l,c,p;let d,f,h;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&(s=t5(),d=s?.getDsn(),f=s?.getOptions().tunnel,a=n,o=d,!(!(!(h=sS(a))||sb(h))&&o&&(u=h.hostname,u===(l=o.host)||l.length>0&&u.endsWith(`.${l}`))&&/(^|&|\?)sentry_key=/.test(h.search))&&(c=n,!(p=f)||hB(c)!==hB(p)))}function hq(e){let t=t5(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,s={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return tA(s,{type:`auto.http.client.${e.type}`,handled:!1}),s}function hF(){let e=t5();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(null==t.dataCollection){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}let hH=(e={})=>({name:"ContextLines",processEvent:(t,n,r)=>(function(e,t){let n=eU.document,r=eU.location&&sk(eU.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let s=n.documentElement.innerHTML;if(!s)return e;let a=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"];return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>{var n,i,s,o;return n=e,i=a,s=r,o=t,n.filename===s&&n.lineno&&i.length&&!function(e,t,n=5){if(void 0===t.lineno)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>tx(e,0)),t.context_line=tx(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>tx(e,0))}(i,n,o),n}))}),e})(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)});function hY(e){if(hV(e))return`persisted ${e.operationName}`;if(hG(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${i} ${r}`:`${i}`}return"unknown"}function hJ(e){let t;if("xhr"in e){let n=e.xhr[sI.Er];t=n&&(0,u7.sY)(n.body)[0]}else{let n=(0,u7.Gv)(e.input);t=(0,u7.sY)(n)[0]}return t}function hG(e){return e5(e)&&"string"==typeof e.query}
479function hV(e){return e5(e)&&"string"==typeof e.operationName&&e5(e.extensions)&&e5(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function hK(e){try{let t=JSON.parse(e);if(hG(t)||hV(t))return t;return}catch{return}}let hQ=e=>({name:"GraphQLClient",setup(t){var n,r,i,s;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let i=nV(e).data||{};if("http.client"!==i[ns])return;let s=i["url.full"]||i["http.url"]||i.url,a=i["http.request.method"]||i["http.method"];if(!e1(s)||!e1(a))return;let{endpoints:o}=r,u=tE(s,o),l=hJ(t);if(u&&l){let t=hK(l);if(t){let r=hY(t);e.updateName(`${a} ${s} (${r})`),hG(t)&&!0===n.getDataCollectionOptions().graphQL.document&&e.setAttribute(sD.o4U,t.query),hV(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),i=t,s=e,i.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:n,type:r,data:a}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=a?.url,{endpoints:n}=s,r=tE(e,n),o=hJ(t);if(r&&a&&o){let e=hK(o);if(!a.graphql&&e){let t=hY(e);a["graphql.operation"]=t,hG(e)&&!0===i.getDataCollectionOptions().graphQL.document&&(a[sD.o4U]=e.query),hV(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),hX=(e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(n,r)=>{if(void 0!==n.type||e.shouldAttach?.(n,r)===!1)return n;let i={rendering_system:"DOM",positioning:"absolute",windows:[]};!function n(r,i,s=0){if(r)for(let a of"shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children){if(!(a instanceof HTMLElement))continue;let r=i4(a,1)||void 0,o=a.tagName.toLowerCase();if(t.includes(o))continue;let u=e.onElement?.({element:a,componentName:r,tagName:o,depth:s})||{};if("skip"===u)continue;if("children"===u){n(a,i,s+1);continue}let{x:l,y:c,width:p,height:d}=a.getBoundingClientRect(),f={identifier:a.id||void 0,type:r||o,visible:!0,alpha:1,height:d,width:p,x:l,y:c,...u};f.children=[],n(a,f.children,s+1),i.push(f)}}(e.rootElement?.()||i5.document.body,i.windows);let s={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(s),n}}};var hZ=n(27091),h0=Object.defineProperty,h1=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?h0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};class h2{constructor(){h1(this,"idNodeMap",new Map),h1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function h3(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:h3(e.parentNode,t,n,r+1)}function h4(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let h5="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",h6={map:{},getId:()=>(console.error(h5),-1),getNode:()=>(console.error(h5),null),removeNodeFromMap(){console.error(h5)},has:()=>(console.error(h5),!1),reset(){console.error(h5)}};function h7(e,t,n,r,i=window){let s=i.Object.getOwnPropertyDescriptor(e,t);
479return i.Object.defineProperty(e,t,r?n:{set(e){_r(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>h7(e,t,s||{},!0)}function h9(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}function h8(e,t,n,r,i){if(!e)return!1;let s=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!s)return!1;let a=h4(t,n);if(!i){let e=r&&s.matches(r);return a(s)&&!e}let o=h3(s,a),u=-1;return!(o<0)&&(r&&(u=h3(s,h4(null,r))),o>-1&&u<0||o<u)}"u">typeof window&&window.Proxy&&window.Reflect&&(h6=new Proxy(h6,{get:(e,t,n)=>("map"===t&&console.error(h5),Reflect.get(e,t,n))})),Date.now().toString();let _e={};function _t(e){let t=_e[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return _e[e]=r.bind(window)}function _n(...e){return _t("requestAnimationFrame")(...e)}function _r(...e){return _t("setTimeout")(...e)}var _i=((D=_i||{})[D["2D"]=0]="2D",D[D.WebGL=1]="WebGL",D[D.WebGL2=2]="WebGL2",D);let _s=e=>k?(...t)=>{try{return e(...t)}catch(e){if(k&&!0===k(e))return()=>{};throw e}}:e;for(var _a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_o="u"<typeof Uint8Array?[]:new Uint8Array(256),_u=0;_u<_a.length;_u++)_o[_a.charCodeAt(_u)]=_u;var _l=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=_a[n[t]>>2],i+=_a[(3&n[t])<<4|n[t+1]>>4],i+=_a[(15&n[t+1])<<2|n[t+2]>>6],i+=_a[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let _c=new Map,_p=(e,t,n)=>{let r;if(!e||!(_f(e,t)||"object"==typeof e))return;let i=e.constructor.name,s=((r=_c.get(n))||(r=new Map,_c.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),a=s.indexOf(e);return -1===a&&(a=s.length,s.push(e)),a},_d=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:_l(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(_f(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:_p(t,n,r)};return t})(e,t,n)),_f=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function _h(e,t,n,r,i){let s=[];try{let a=h9(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(s,...a){if(!h8(this,t,n,r,!0)){let e="experimental-webgl"===s?"webgl":s;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){let e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[s,...a])}});s.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(e=>e())}}function __(e,t,n,r,i,s,a,o){let u=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if
479("function"!=typeof e[a])continue;let l=h9(e,a,function(e){return function(...u){let l=e.apply(this,u);if(_p(l,o,this),"tagName"in this.canvas&&!h8(this.canvas,r,i,s,!0)){let e=_d(u,o,this),r={type:t,property:a,args:e};n(this.canvas,r)}return l}});u.push(l)}catch{let r=h7(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});u.push(r)}return u}class _m{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:i,errorHandler:s}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,s&&function(e){k=e}(s),(i&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t)return;_s(()=>{i&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}_s(()=>{if(s&&"all"===t&&this.initCanvasMutationObserver(e,n,r,i),s&&"number"==typeof t){let t=_h(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):_n(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:i,width:s,height:a}=t;this.mutationCb({id:n,type:_i["2D"],commands:[{property:"clearRect",args:[0,0,s,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0,s,a]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=_n(t)};e=_n(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){var i,s;let a,o=_h(e,t,n,r,!1),u=function(e,t,n,r,i){let s=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let o=h9(t.CanvasRenderingContext2D.prototype,a,function(s){return function(...o){return h8(this.canvas,n,r,i,!0)||_r(()=>{let n=_d(o,t,this);e(this.canvas,{type:_i["2D"],property:a,args:n})},0),s.apply(this,o)}});s.push(o)}catch{let n=h7(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:_i["2D"],property:a,args:[t],setter:!0})}});s.push(n)}return()=>
479{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),l=(i=this.processMutation.bind(this),s=this.mirror,(a=[]).push(...__(e.WebGLRenderingContext.prototype,_i.WebGL,i,t,n,r,s,e)),void 0!==e.WebGL2RenderingContext&&a.push(...__(e.WebGL2RenderingContext.prototype,_i.WebGL2,i,t,n,r,s,e)),()=>{a.forEach(e=>e())});this.restoreHandlers.push(()=>{o(),u(),l()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{h8(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&i(t)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:s,unblockSelector:a,dataURLOptions:o,maxCanvasSize:u}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,s,a)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:o,maxCanvasSize:u},[t])}).catch(e=>{_s(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){_n(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,_n(e)};_n(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),_n(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new h2,(B=U||(U={}))[B.NotStarted=0]="NotStarted",B[B.Running=1]="Running",B[B.Stopped=2]="Stopped";let _g={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},_y=(e={})=>{let t,n,[r,i]=e.maxCanvasSize||[],s={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,i?Math.min(i,1280):1280]},a=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:i}=s;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let s=new _m({...e,enableManualSnapshot:r,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=s,n(s),s},..._g[e]||_g.medium}},async snapshot(e,n){(t||await a).snapshot(e,n)}}};function _v(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=function(e,t){let{value:n,unit:r}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){if(Array.isArray(e))return{value:e,type:"array"};let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}(i,t);e&&(n[r]=e)}return n}function _b(e,t){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;_S(e,"extra",n),_S(e,"tags",r),_S(e,"attributes",i),_S(e,"user",s),_S(e,"contexts",a),e.sdkProcessingMetadata=a6(e.sdkProcessingMetadata,u,2),o&&(e.level=o),h&&(e.transactionName=h),_&&(e.span=_),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}
479function _S(e,t,n){e[t]=a6(e[t],n,1)}let _x=0;function _w(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function _k(e,t){var n;let r=_E(),i=(n=e,_E().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(function(e,t){var n,r,i,s;let a,o,u=t??function(e){return _E().get(e)}(e)??[];if(0===u.length)return;let l=e.getOptions(),c=(n=l._metadata,r=l.tunnel,i=e.getDsn(),s=e.getDataCollectionOptions().userInfo,a={},n?.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(a.dsn=ua(i)),uh(a,[(o=s?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...uJ()&&{ingest_settings:{infer_ip:o,infer_user_agent:o}},items:u}])]));_E().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(c)}(e,i),r.set(e,[t])):r.set(e,[...i,t])}function _E(){return(0,a1.BY)("clientToMetricBufferMap",()=>new WeakMap)}function _T(e,t,n){(function(e,t){var n;let r,i=t?.scope??og(),s=t?.captureSerializedMetric??_k,a=i?.getClient()??ob();if(!a){a2.T&&a4.Yz.warn("No client available to capture metric.");return}let{_experiments:o,enableMetrics:u,beforeSendMetric:l}=a.getOptions();if(!(u??o?.enableMetrics??!0)){a2.T&&a4.Yz.warn("metrics option not enabled, metric will not be captured.");return}let{user:c,attributes:p}=(n=oy(),r=(0,a1.BY)("globalScope",()=>new ou).getScopeData(),n&&_b(r,n.getScopeData()),i&&_b(r,i.getScopeData()),r),d=function(e,t,n){let{release:r,environment:i}=t.getOptions(),s={...e.attributes};_w(s,"user.id",n.id,!1),_w(s,"user.email",n.email,!1),_w(s,"user.name",n.username,!1),_w(s,"sentry.release",r),_w(s,"sentry.environment",i);let{name:a,version:o}=t.getSdkMetadata()?.sdk??{};_w(s,"sentry.sdk.name",a),_w(s,"sentry.sdk.version",o);let u=t.getIntegrationByName("Replay"),l=u?.getReplayId(!0);return _w(s,"sentry.replay_id",l),l&&u?.getRecordingMode()==="buffer"&&_w(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}(e,a,c);a.emit("processMetric",d);let f=l||o?.beforeSendMetric,h=f?f(d):d;if(!h){a2.T&&a4.Yz.log("`beforeSendMetric` returned `null`, will not send metric.");return}let _=function(e,t,n,r){let i,s,[,a]=n?ov(n,()=>{let e=o1(),r=e?function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:oz(e).parent_span_id,s=oM(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||a9():t,trace_id:n}}(e):function(e){let t=g?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),s={trace_id:n,span_id:i||a9()};return r&&(s.parent_span_id=r),s}(n);return[e?uf(e):ud(t,n),r]}):[void 0,void 0],o=oa(n),u=o?o.spanContext().traceId:a?.trace_id,l=o?o.spanContext().spanId:void 0,c=(0,a0.zf)(),p=(i=Math.floor(1e3*c),void 0!==E&&i!==E&&(_x=0),s=_x,_x++,E=i,{key:"sentry.timestamp.sequence",value:{value:s,type:"integer"}});return{timestamp:c,trace_id:u??"",span_id:l,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{..._v(r),..._v(e.attributes,"skip-undefined"),[p.key]:p.value}}}(h,a,i,p);a2.T&&a4.Yz.log("[Metric]",_),s(a,_),a.emit("afterCaptureMetric",h)})({type:"distribution",name:e,value:t,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}let _I=()=>({name:"ElementTiming",setup(){uC()&&(0,a0.k3)()&&(0,o7.wv)("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,n=t.name,r=t.renderTime,i=t.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":e};n&&(s["ui.element.paint_type"]=n),t.id&&(s["ui.element.id"]=t.id),t.element&&(s["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(s["ui.element.url"]=t.url),t.naturalWidth&&(s["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(s["ui.element.height"]=t.naturalHeight),r>0&&_T("ui.element.render_time",r,{unit:"millisecond",attributes:s}),i>0&&_T("ui.element.load_time",i,{unit:"millisecond",attributes:s})}})}});function _C(e=t5()){e?.emit("endPageloadSpan")}function _A(e){let t=rt();if(t===e)return;let n=t0();e.end=new Proxy(e.end,{apply:(e,r,i)=>
479(tz(n,t),Reflect.apply(e,r,i))}),tz(n,e)}class _R{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:iw(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t;if(t=156+2*e.name.length+nT(e.attributes),e.links&&e.links.length>0){let n=e.links[0],r=n?.attributes;t+=(100+(r?nT(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&this._traceBuckets.forEach((e,t)=>{this.flush(t)})}flush(e){var t,n;let r,i,s,a,o,u,l=this._traceBuckets.get(e);if(!l)return;if(!l.spans.size)return void this._removeTrace(e);let c=Array.from(l.spans),p=c[0]?._segmentSpan;if(!p)return void this._removeTrace(e);let d=rc(p),f=c.map(e=>{let{_segmentSpan:t,...n}=e;return n}),h=(r=(t=this._client).getOptions(),i=t.getDsn(),s=r.tunnel,a=ir(r._metadata),o={sent_at:new Date(tu()).toISOString(),...!!(n=d).trace_id&&!!n.public_key&&{trace:d},...a&&{sdk:a},...!!s&&i&&{dsn:nv(i)}},u=t.getDataCollectionOptions().userInfo?"auto":"never",r4(o,[[{type:"span",item_count:f.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...ic()&&{ingest_settings:{infer_ip:u,infer_user_agent:u}},items:f}]]));this._client.sendEnvelope(h).then(null,e=>{}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}let _O=()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(t.traceLifecycle="stream")},setup(e){let t=e.getOptions();if(!ix(e)){t.traceLifecycle="static";return}let n=t.beforeSendSpan;if(n&&!r3(n)){t.traceLifecycle="static";return}let r=new _R(e);e.on("afterSpanEnd",t=>{n1(t)&&r.add(function(e,t){var n,r;let i,s,a=nK(e),o=re(e),u=nK(o),{isolationScope:l,scope:c}=nj(e),p=rh(l,c);!function(e,t,n,r){let i=n.getSdkMetadata(),{release:s,environment:a}=n.getOptions();sB(e,{[sD.Bfx]:"stream",[sD.suP]:t.name,[sD.ewL]:t.span_id,[sD.VEj]:i?.sdk?.name,[sD._1V]:i?.sdk?.version,"sentry.release":s,"sentry.environment":a||t7,"user.id":r.user?.id,"user.email":r.user?.email,"user.ip_address":r.user?.ip_address,"user.name":r.user?.username,...r.attributes})}(a,u,t,p);let d=e.kind;t.emit("preprocessSpan",a,{spanKind:d}),a.is_segment&&(sB(a,function(e){let t={},{response:n,profile:r,cloud_resource:i,culture:s,state:a}=e;if(n&&(null!=n.status_code&&(t["http.response.status_code"]=n.status_code),null!=n.body_size&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),i)for(let[e,n]of Object.entries(i))null!=n&&(t[e]=n);s&&(s.locale&&(t["culture.locale"]=s.locale),s.timezone&&(t["culture.timezone"]=s.timezone)),a?.state&&"string"==typeof a.state.type&&(t["state.type"]=a.state.type);let o=e.angular;if(o){let e=o.version;("string"==typeof e||"number"==typeof e)&&(t["angular.version"]=e)}let u=e.react;if(u){let e=u.version;("string"==typeof e||"number"==typeof e)&&(t["react.version"]=e)}return t}(p.contexts)),n=a,(i=t.getIntegrationNames()).length&&sB(n,{"sentry.sdk.integrations":i}),t.emit("processSegmentSpan",a)),t.emit("processSpan",a);let{beforeSendSpan:f}=t.getOptions(),h=f&&r3(f)?(s=f(r=a))||(rn(),r):a,_=h.attributes?.[nn];return a.is_segment&&_&&sB(h,{"sentry.segment.name.source":_}),{...nX(h),_segmentSpan:o}}(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{r.flush(t)},500)})}});function _P(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function _N(e){return _P(e.getAllKeys())}function _L(e){let t;function n(){var n,r;let i,s;return void 0==t&&(n=e.dbName||"sentry-offline",r=e.storeName||"queue",(i=indexedDB.open(n)).onupgradeneeded=()=>i.result.createObjectStore(r),s=_P(i),t=e=>s.then(t=>e(t.transaction(r,"readwrite").objectStore(r)))),t}return{push:async t=>{try{var r,i;let s=r8(t);await (r=n(),i=e.maxQueueSize||30,r(e=>_N(e).then(t=>{if(!(t.length>=i))return e.put(s,Math.max(...t,0)+1),_P(e.transaction)})))}catch{}},unshift:async t=>{try{var r,i;let s=r8(t);await (r=n(),i=e.maxQueueSize||30,r(e=>_N(e).then(t=>{if(!(t.length>=i))return e.put(s,Math.min(...t,0)-1),_P(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>_N(e).then(t=>{let n=t[0];if(null!=n)return _P(e.get(n)).then(t=>(e.delete(n),_P(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?r9(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r,i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse((e=n(i),(r=eW(eU)).decodePolyfill?r.decodePolyfill(e):new TextDecoder().decode(e)))}let i=r(),s=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?n(t):r()])}return[i,s]}(e)}catch{}}}}function _M(e=ad){var t;return t=function(e){function t(){}return n=>{let r,i=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let s=n.createStore(n),a=5e3;function o(e){r&&clearTimeout(r),r=iw(setTimeout(async()=>{r=void 0;let e=await s.shift();e&&(e[0].sent_at=new Date(tu()).toISOString(),l(e,!0).catch(e=>{}))},e))}function u(){r||(o(a),a=Math.min(2*a,36e5))}async function l(e,r=!1){if(!r&&r7(e,["replay_event","replay_recording"]))return await s.push(e),o(100),{};
479try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await i.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=iT(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return o(r),a=5e3,t}catch(i){var c;if(await (c=a,!r7(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,i,c))))return r?await s.unshift(e):await s.push(e),u(),t("Error sending. Event queued.",i),{};throw i}}return n.flushAtStartup&&u(),{send:l,flush:e=>(void 0===e&&(a=5e3,o(100)),i.flush(e))}}}(e),e=>{let n=t({...e,createStore:_L});return i5.addEventListener("online",async e=>{await n.flush()}),n}}let _j="window"in eU&&eU.window===eU&&"u"<typeof importScripts,_$=String(0),_D=_j?"main":"worker",_B=i5.navigator,_U="",_z="",_W="",_q=_B?.userAgent||"",_F="",_H=_B?.language||_B?.languages?.[0]||"",_Y=_B?.userAgentData;function _J(e){return"pageload"===nV(e).op}function _G(e){let t=t5(),n=t?.getOptions(),r=n?.stackParser;if(!r)return[];let i=nt(r);if(!i)return[];let s=[];for(let t of e){let e=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}(t);e&&i[e]&&s.push({type:"sourcemap",code_file:t,debug_id:i[e]})}return s}function _V(e){return!("number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e))&&(!0===e||!1===e||!(e<0)&&!(e>1))}"object"==typeof _Y&&null!==_Y&&"getHighEntropyValues"in _Y&&_Y.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(_U=e.platform||"",_W=e.architecture||"",_F=e.model||"",_z=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];_q=`${t.brand} ${t.version}`}}).catch(e=>void 0);let _K=!1;function _Q(){let e=i5.Profiler;if("function"!=typeof e)return;let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){_K=!0}}function _X(e){if(_K||!e.isRecording())return!1;let t=t5(),n=t?.getOptions();if(!n)return!1;let r=n.profilesSampleRate;return!!_V(r)&&!!r&&!!(!0===r||Math.random()<r)}function _Z(e){return void 0!==e.profilesSampleRate}let _0=new Map,_1=new WeakSet;function _2(e){e.setAttribute("thread.id",_$),e.setAttribute("thread.name",_D)}function _3(e){let t;_J(e)&&(t=1e3*tP());let n=_Q();if(!n)return;let r=tT(),i=null;async function s(){if(e&&n){if(!i)return n.stop().then(e=>{if(a&&(i5.clearTimeout(a),a=void 0),e){i=e;if(_0.set(r,e),_0.size>30){let e=_0.keys().next().value;void 0!==e&&_0.delete(e)}}}).catch(e=>{})}}t0().setContext("profile",{profile_id:r,start_timestamp:t}),_1.add(e),_2(e);let a=i5.setTimeout(()=>{s()},3e4),o=e.end.bind(e);e.end=function(){return e?(s().then(()=>{o()},()=>{o()}),e):o()}}class _4{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(_K||"trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return!1;let t=e.profileSessionSampleRate;return!!_V(t)&&!!t&&Math.random()<=t}(e.getOptions());this._profilerId=tT(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&_2(e)})}start(){"trace"===this._lifecycleMode||this._isRunning||this._sessionSampled&&this._beginProfiling()}stop(){"trace"===this._lifecycleMode||this._isRunning&&this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;!t||this._activeRootSpanIds.has(t)||(this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling(),this._isRunning&&_2(e))}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,t2().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{}),"manual"===this._lifecycleMode&&t2().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled||e!==n8(e)||!e.isRecording())return;let t=e.spanContext().spanId;!t||this._activeRootSpanIds.has(t)||(this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;t&&this._activeRootSpanIds.has(t)&&(this._activeRootSpanIds.delete(t),0===this._activeRootSpanIds.size&&(this._collectCurrentChunk().catch(e=>{}),this._endProfiling()))})}_resetProfilerInfo(){this._isRunning=!1,t2().setContext("profile",{})}
479_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=_Q();e&&(this._profiler=e)}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],s=r;for(;s;)i.push(s.frameId),s=void 0===s.parentId?void 0:e.stacks[s.parentId];n[t]=i}let r=tL(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,s=i-(r||i),a=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-s))/1e3;a[t]={stack_id:n.stackId??0,thread_id:_$,timestamp:r}}return{frames:t,stacks:n,samples:a,thread_metadata:{[_$]:{name:_D}}}}(e),i=t.getOptions(),s=t.getSdkMetadata?.()?.sdk;return{chunk_id:tT(),client_sdk:{name:s?.name??"sentry.javascript.browser",version:s?.version??"0.0.0"},profiler_id:n||tT(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:_G(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r)return;this._sendProfileChunk(n)}catch(e){}}_sendProfileChunk(e){let t=this._client,n=ir(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,s=r4({event_id:tT(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:nv(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(s).then(null,e=>{})}}let _5=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new _4;if(_Z(t)||t.profileLifecycle||(t.profileLifecycle="manual"),_Z(t)&&!t.profilesSampleRate)return;let r=rt(),i=r&&n8(r);if(_Z(t)&&t.profileSessionSampleRate,_Z(t))i&&_J(i)&&_X(i)&&_3(i),e.on("spanStart",e=>{let t=n8(e);e===t?_X(e)&&_3(e):_1.has(t)&&_2(e)}),e.on("beforeEnvelope",e=>{let t;if(!_0.size)return;let n=(t=[],r6(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){let t=e?.contexts,n=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof n||!n)continue;t?.profile&&delete t.profile;let s=function(e){let t=_0.get(e);return t&&_0.delete(e),t}(n);if(!s)continue;let a=function(e,t,n,r){return!(n.samples.length<2)&&n.frames.length&&1?function(e,t,n,r){var i;let s;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let a=("string"==typeof(s=r.contexts?.trace?.trace_id)&&s.length,"string"!=typeof s)?"":s,o="thread_metadata"in(i=n)?i:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[_$]:{name:_D}}},i=e.samples[0];if(!i)return r;let s=i.timestamp,a=tL(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,u=o-(a||o);
479return e.samples.forEach((i,a)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((i.timestamp+u-s)*1e6).toFixed(0),stack_id:t,thread_id:_$};return}let o=e.stacks[i.stackId],l=[];for(;o;){l.push(o.frameId);let t=e.frames[o.frameId];t&&void 0===r.frames[o.frameId]&&(r.frames[o.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),o=void 0===o.parentId?void 0:e.stacks[o.parentId]}let c={elapsed_since_start_ns:((i.timestamp+u-s)*1e6).toFixed(0),stack_id:n,thread_id:_$};r.stacks[n]=l,r.samples[a]=c,n++}),r}(i),u=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*tP()),l="number"==typeof r.timestamp?1e3*r.timestamp:1e3*tP();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||t7,runtime:{name:"javascript",version:i5.navigator.userAgent},os:{name:_U,version:_z,build_number:_q},device:{locale:_H,model:_F,manufacturer:_q,architecture:_W,is_emulator:!1},debug_meta:{images:_G(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||tT(),trace_id:a,active_thread_id:_$,relative_start_ns:"0",relative_end_ns:((l-u)*1e6).toFixed(0)}]}}(e,t,n,r):null}(n,i,s,e);a&&r.push(a)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!nk(t))return;n.initialize(e),i&&n.notifyRootSpanActive(i),i5.setTimeout(()=>{let e=rt(),t=e&&n8(e);t&&n.notifyRootSpanActive(t)},0)}}}}),_6=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],_7=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],..._6]},afterAllSetup:e=>{var n,r;let i,s;n=e,r=t,i=(0,ap.qd)("fetch"),s=0,n.on("beforeEnvelope",e=>{s>3?eG("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",s):i(r,{method:"POST",body:r8(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(s=0)},e=>{s++,eV("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},_9=()=>
479({name:"LaunchDarkly",processEvent:(e,t,n)=>fR(e)});function _8(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{fO(e,t.value),fP(e,t.value)}}}let me=()=>({name:"OpenFeature",processEvent:(e,t,n)=>fR(e)});class mt{after(e,t){fO(t.flagKey,t.value),fP(t.flagKey,t.value)}error(e,t,n){fO(e.flagKey,e.defaultValue),fP(e.flagKey,e.defaultValue)}}let mn=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){te(e.prototype,"isEnabled",mr)},processEvent:(e,t,n)=>fR(e)});function mr(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(fO(n,r),fP(n,r)),r}}function mi(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(fO(n,r),fP(n,r)),r}}let ms=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&te(t,"isOn",mi),"function"==typeof t.getFeatureValue&&te(t,"getFeatureValue",mi)},processEvent:(e,t,n)=>fR(e)}))({growthbookClass:e}),ma=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{fO(e.gate.name,e.gate.value),fP(e.gate.name,e.gate.value)})}
479,processEvent:(e,t,n)=>fR(e)});async function mo(){let e=t5();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await aB(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let mu=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>ml(e))},addWorker:e=>ml(e)});function ml(e){e.addEventListener("message",e=>{if(function(e){if(!e4(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!i)&&(!t||!!(e4(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!(e4(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!e4(e._sentryWorkerError))&&(!i||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>e4(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(i5._sentryDebugIds={...e.data._sentryDebugIds,...i5._sentryDebugIds}),e.data._sentryModuleMetadata&&(i5._sentryModuleMetadata={...e.data._sentryModuleMetadata,...i5._sentryModuleMetadata}),e.data._sentryWasmImages){let t=i5._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>e4(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));i5._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&function(e){let t=t5();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,s=e3(i)?sK(i):i1(n,i,void 0,r,!0);s.level="error",e.filename&&(s.contexts={...s.contexts,worker:{filename:e.filename}}),ry(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}})}(e.data._sentryWorkerError)}})}function mc({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:sV(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n})})}function mp(e,{componentStack:t},n){let r;if(null!==(r=av.version.match(/^([^.]+)/))&&parseInt(r[0])>=17&&function(e){switch(ab.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}(e)&&t){let n,r=Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,n=new WeakSet,function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,r)}return rm(e,n)}function md(e){return(t,n)=>{let r=!!e,i=mp(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,i)}}let mf="sentry.source",mh="sentry.op",m_="sentry.origin",mm=globalThis;function mg(e){if(void 0!==T)return T?T(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return t in mm&&"function"==typeof mm[t]?(T=mm[t])(e):(T=null,e())}function my(){return mg(()=>Math.random())}function mv(){return mg(()=>Date.now())/1e3}function mb(){return(I??(I=function(){let{performance:e}=mm;if(!e?.now||!e.timeOrigin)return mv;let t=e.timeOrigin;return()=>(t+mg(()=>e.now()))/1e3}()))()}function mS(){return mx(mm),mm}function mx(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ay,t[ay]=t[ay]||{}}function mw(e,t,n=mm){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[ay]=r[ay]||{};return i[e]||(i[e]=t())}function mk(e=mm.crypto||mm.msCrypto){try{if(e?.randomUUID)return mg(()=>e.randomUUID()).replace(/-/g,"")}catch{}return C||(C="10000000100040008000100000000000"),C.replace(/[018]/g,e=>(e^(15&16*my())>>e/4).toString(16))}let mE={};function mT(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}let mI="_sentrySpan";function mC(e,t){t?mT(e,mI,function(e){try{let t=mm.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(t)):delete e[mI]}function mA(e){var t=e[mI];if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}class mR{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:mk(),sampleRand:my()}}clone(){let e=new mR;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),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._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,mC(e,mA(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&&function(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||mb(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:mk()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},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,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,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 t="function"==typeof e?e(this):e,{tags:n,attributes:r,extra:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:c}=(t instanceof mR?t.getScopeData():aS(t)?e: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),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),c&&
479(this._conversationId=c),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,mC(this,void 0),this._attachments=[],this.setPropagationContext({traceId:mk(),sampleRand:my()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:mv(),...e,message:e.message?function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,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:mA(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||mk();if(!this._client)return n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||mk();if(!this._client)return r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||mk();return this._client&&this._client.captureEvent(e,{...t,event_id:n},this),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let mO=e=>e instanceof Promise&&!e[mP],mP=Symbol("chained PromiseLike");class mN{constructor(e,t){let n,r;n=e||new mR,r=t||new mR,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}if(ax(t)){var r,i,s;let e;return r=t,i=()=>this._popScope(),s=()=>this._popScope(),mO(e=r.then(e=>(i(),e),e=>{throw s(),e}))&&mO(r)?e:((e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];"function"==typeof i?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[mP]:!0}),t})(r,e)}return this._popScope(),t}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)&&!!this._stack.pop()}}function mL(){let e=mx(mS());return e.stack=e.stack||new mN(mw("defaultCurrentScope",()=>new mR),mw("defaultIsolationScope",()=>new mR))}function mM(e){return mL().withScope(e)}function mj(e,t){let n=mL();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function m$(e){return mL().withScope(()=>e(mL().getIsolationScope()))}function mD(e){let t=mx(e);return t.acs?t.acs:{withIsolationScope:m$,withScope:mM,withSetScope:mj,withSetIsolationScope:(e,t)=>m$(t),getCurrentScope:()=>mL().getScope(),getIsolationScope:()=>mL().getIsolationScope()}}function mB(){return mD(mS()).getCurrentScope()}function mU(){return mB().getClient()}function mz(e,t){let n=mD(mS());return n.withActiveSpan?n.withActiveSpan(e,t):function(...e){let t=mD(mS());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}(n=>(mC(n,e||void 0),t(n)))}function mW(e){return"number"==typeof e?mq(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?mq(e.getTime()):mb()}function mq(e){return e>0x2540be3ff?e/1e3:e}function mF(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:s,name:a,endTime:o,status:u,links:l}=e;return{span_id:r,trace_id:i,data:t,description:a,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:mW(s),timestamp:mW(o)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(u),op:t[mh],origin:t[m_],links:l&&l.length>0?l.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}let mH=function(e){return e._sentryRootSpan||e};function mY(){let e=mD(mS());return e.getActiveSpan?e.getActiveSpan():mA(mB())}let mJ="ui.react.render",mG="ui.react.mount",mV={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
479,mK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mX=Symbol.for("react.forward_ref"),mZ=Symbol.for("react.memo"),m0={};function m1(e){if("object"==typeof e&&null!==e&&e.$$typeof===mZ)return mQ;let t=e.$$typeof;return t&&m0[t]||mV}m0[mX]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},m0[mZ]=mQ;let m2=Object.defineProperty.bind(Object),m3=Object.getOwnPropertyNames.bind(Object),m4=Object.getOwnPropertySymbols?.bind(Object),m5=Object.getOwnPropertyDescriptor.bind(Object),m6=Object.getPrototypeOf.bind(Object),m7=Object.prototype;function m9(e,t,n){if("string"!=typeof t){if(m7){let n=m6(t);n&&n!==m7&&m9(e,n)}let n=m3(t);m4&&(n=n.concat(m4(t)));let r=m1(e),i=m1(t);for(let s of n)if(!mK[s]&&!i?.[s]&&!r?.[s]&&!m5(e,s)){let n=m5(t,s);if(n)try{m2(e,s,n)}catch(e){}}}return e}class m8 extends av.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=aj({name:`<${t}>`,onlyIfParent:!0,op:mG,attributes:{[m_]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=mb();this._updateSpan=mz(this._mountSpan,()=>aj({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[m_]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=mb(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=mF(this._mountSpan).timestamp;mz(this._mountSpan,()=>{let r=aj({onlyIfParent:!0,name:`<${t}>`,op:mJ,startTime:n,attributes:{[m_]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function ge(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>av.createElement(m8,{...t,name:n,updateProps:r},av.createElement(e,{...r}));return r.displayName=`profiler(${n})`,m9(r,e),r}function gt(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=av.useState(()=>{if(!t?.disabled)return aj({name:`<${e}>`,onlyIfParent:!0,op:mG,attributes:{[m_]:"auto.ui.react.profiler","ui.component_name":e}})});av.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=mF(n).timestamp,r=mb(),i=aj({name:`<${e}>`,onlyIfParent:!0,op:mJ,startTime:t,attributes:{[m_]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(r)}}),[])}Object.assign(m8,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let gn={componentStack:null,error:null,eventId:null};class gr extends av.Component{constructor(e){super(e),this.state=gn,this._openFallbackReportDialog=!0;const t=t5();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&hN({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:i,showDialog:s,dialogOptions:a}=this.props;t3(o=>{r&&r(o,e,n);let u=mp(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});i&&i(e,n,u),s&&(this._lastEventId=u,this._openFallbackReportDialog&&hN({...a,eventId:u})),this.setState({error:e,componentStack:n,eventId:u})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===gn?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(gn)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?av.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return av.isValidElement(r)?r:null}}function gi(e,t){let n=e.displayName||e.name||"unknown",r=av.memo(n=>av.createElement(gr,{...t},av.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,m9(r,e),r}let gs=Symbol.for("sentry.overrideNormalizationDepth"),ga={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function go(e){let t={...ga,...e};return e=>(n,r)=>{function i(e){return(n,r)=>{let i=e(n,r),s=mB(),a=t.actionTransformer(r);null!=a&&function(e){let t=mU(),n=mD(mS()).getIsolationScope();if(!t)return;let{beforeBreadcrumb:r=null,maxBreadcrumbs:i=100}=t.getOptions();if(i<=0)return;let s={timestamp:mv(),...e},a=r?function(e){if(!("console"in mm))return e();let t=mm.console,n={},r=Object.keys(mE);
479r.forEach(e=>{let r=mE[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}(()=>r(s,void 0)):s;null!==a&&(t.emit&&t.emit("beforeAddBreadcrumb",a,void 0),n.addBreadcrumb(a,i))}({category:"redux.action",data:a,type:"info"});let o=t.stateTransformer(i);if(null!=o){let e=mU(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:o}};mT(r,gs,3+n),s.setContext("state",r)}else s.setContext("state",null);let{configureScopeWithState:u}=t;return"function"==typeof u&&u(s,i),i}}t.attachReduxState&&mw("globalScope",()=>new mR).addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let s=e(i(n),r);return s.replaceReducer=new Proxy(s.replaceReducer,{apply:function(e,t,n){e.apply(t,[i(n[0])])}}),s}}function gu(e){let t=la({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:i,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),s&&i5.location&&gl(r,i5.location,i,(t,n="url")=>{lo(e,{name:t,attributes:{[mh]:"pageload",[m_]:"auto.pageload.react.reactrouter_v3",[mf]:n,..."route"===n&&{[sD.B8_]:t}}})}),a&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&gl(r,t,i,(t,n="url")=>{lu(e,{name:t,attributes:{[mh]:"navigation",[m_]:"auto.navigation.react.reactrouter_v3",[mf]:n,..."route"===n&&{[sD.B8_]:t}}})})})}}}function gl(e,t,n,r){let i=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(i);let s=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===s.length||"/*"===s?r(i):r(i=s,"route")})}function gc(e,t={}){let n=la({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:i=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let s=(t,n)=>{let r=e.matchRoutes(t,n,{preload:!1,throwOnError:!1}),i=r[r.length-1];return i?.routeId!=="__root__"?i:void 0},a=(t,n,r,i)=>{var s;let a;t.updateName(n?n.routeId:i),t.setAttribute(mf,n?"route":"url"),t.setAttributes({...n&&{[sD.B8_]:n.routeId},...(a=gp(e,s=r),{[sD.mqy]:s.pathname,[sD.aVR]:a}),...gd(n)})},o=i5.location;if(r&&o){let n=s(o.pathname,e.options.parseSearch(o.search)),r=lo(t,{name:n?n.routeId:o.pathname,attributes:{[mh]:"pageload",[m_]:"auto.pageload.react.tanstack_router",[mf]:n?"route":"url",...n&&{[sD.B8_]:n.routeId},...gd(n)}}),i=e.subscribe("onResolved",e=>{if(i(),!r)return;let{toLocation:t}=e;a(r,s(t.pathname,t.search),t,t.pathname)})}if(i){let n;e.subscribe("onBeforeLoad",r=>{let{toLocation:i,fromLocation:o}=r;if(!o||i.state===o.state)return;let u=s(i.pathname,i.search),l=i5.location?.pathname||i.pathname;n?a(n,u,i,l):n=lu(t,{name:u?u.routeId:l,attributes:{[mh]:"navigation",[m_]:"auto.navigation.react.tanstack_router",[mf]:u?"route":"url",...u&&{[sD.B8_]:u.routeId},...gd(u)}},{url:gp(e,i)})}),e.subscribe("onResolved",e=>{let t=n;if(n=void 0,!t)return;let{toLocation:r}=e,i=s(r.pathname,r.search);i&&a(t,i,r,i5.location?.pathname||r.pathname)})}}}}function gp(e,t){let n=e.options.stringifySearch?.(t.search)??"";return lg(`${t.pathname}${n&&"?"!==n?n:""}`)}function gd(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`${sD.sPK}.${e}`]=n,t[`${sD.BS2}.${e}`]=n}),t}function gf(e){let t=la({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),g_(e,s,a,n,"reactrouter_v4",r,i)}}}function gh(e){let t=la({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),g_(e,s,a,n,"reactrouter_v5",r,i)}}}function g_(e,t,n,r,i,s=[],a){function o(e){if(0===s.length||!a)return[e,"url"];for(let t of function e(t,n,r,i=[]){return t.some(t=>{let s=t.path?r(n,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return s&&(i.push({route:t,match:s}),t.routes&&e(t.routes,n,r,i)),!!s}),i}(s,e,a))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:i5.location?i5.location.pathname:void 0;if(t){let[n,r]=o(t);lo(e,{name:n,attributes:{[mh]:"pageload",[m_]:`auto.pageload.react.${i}`,[mf]:r,..."route"===r&&{[sD.B8_]:n}}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=o(t.pathname);lu(e,{name:n,attributes:{[mh]:"navigation",[m_]:`auto.navigation.react.${i}`,[mf]:r,..."route"===r&&{[sD.B8_]:n}}})}})}
479function gm(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=mY(),t=e&&mH(e);if(!t)return;let n=mF(t).op;return"navigation"===n||"pageload"===n?t:void 0}();mB().setTransactionName(e),n&&(n.updateName(e),n.setAttributes({[mf]:"route",[sD.B8_]:e}))}return av.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,m9(n,e),n}function gg(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let gy=new WeakMap;function gv(e,t){return void 0!==e&&void 0!==t&&(!!gS.test(t)||e===t)}function gb(e){return e.split("/").filter(Boolean)}let gS=/^:[\w-]+$/;function gx(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else gS.test(e)?n+=3:""===e?n+=1:n+=10;return n}let gw=!1,gk=[];function gE(){let e=gk.length;return e>0?gk[e-1]??null:null}function gT(e){return e.params["*"]||""}function gI(e){return"*"===e[e.length-1]?e.slice(0,-1):e}function gC(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function gA(e){return e.endsWith("*")}function gR(e){return e.includes("/*")||e.endsWith("*")}function gO(e,t){return gA(e)&&!!t.route.children?.length||!1}function gP(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function gN(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function gL(e){return"/"===e[0]?e:`/${e}`}function gM(e,t){let n=A(e,t);if(!n||0===n.length)return"";for(let r of n)if(r.route.path&&"*"!==r.route.path){let n=gI(r.route.path||""),i=gg(t.pathname,gL(r.pathnameBase));if(t.pathname===i)return gC(i);return gC(gC(n||"")+gL(gM(e.filter(e=>e!==r.route),{pathname:i})))}return""}function gj(e,t){return gw?gg(e.pathname,t):e.pathname||""}function g$(e,t,n,r,i="",s,a){let o;if(a&&s&&s.length>0){let t=function(e,t,n){if(!e||!t?.length)return null;let r=n?gg(e,n):e,i=gy.get(t);for(let e of(i||(i=[...t].sort((e,t)=>{let n=gx(e);return gx(t)-n}),gy.set(t,i)),i))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=gb(e),r=gb(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!gv(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!gv(n[e],t))return!1;return!0}(r,e))return e;return null}(e.pathname,s,i);if(t)return[(gw?"":i)+t,"route"]}let u="url",l=function(e,t){let n=A(t,e);if(n){for(let e of n)if(gP(e.route)&&gT(e))return!0}return!1}(e,n);l&&(o=gL(gM(n,e)),u="route"),l&&o||([o,u]=function(e,t,n,r=""){if(!e||0===e.length)return[gw?gg(t.pathname,r):t.pathname,"url"];if(!n)return[gj(t,r),"url"];let i="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:gw?gg(t,n):t,i="/*"===r.slice(-2)?r.slice(0,-2):r;return i.length>1&&"/"===i[i.length-1]&&(i=i.slice(0,-1)),[i,"route"]}(i,e.pathname,r);let s=n.path;if(!s||gO(s,e))continue;let a="/"===s[0]||"/"===i[i.length-1]?s:`/${s}`;if(i=gC(i)+gL(a),gC(t.pathname)===gC(r+e.pathname)){if(gN(i)!==gN(e.pathname)&&!gA(i))return[(gw?"":r)+a,"route"];return gO(i,e)&&(i=i.slice(0,-1)),[(gw?"":r)+i,"route"]}}return[gj(t,r),"url"]}(t,e,r,i));let c=function(e,t,n){let r=t.filter(gP);if(!r.length)return;let i=A(r,e),s=i?.[i.length-1];if(!s||!gT(s))return;let a=gC(gI(s.route.path||""));if(!a)return;let o=gL(a),u=a.split("/")[0],l=u?.startsWith(":")&&n?.split("/").includes(u);if(n===o||n?.startsWith(`${o}/`)||l)return;let c=gg(e.pathname,gL(s.pathnameBase))||"/",p=gM(t.filter(e=>e!==s.route),{pathname:c});return p?gL(`${a}${gL(p)}`):void 0}(e,n,o);return c?[c,"route"]:[o||e.pathname,u]}function gD(){let e=mY(),t=e?mH(e):void 0;if(!t)return;let n=mF(t).op;return"navigation"===n||"pageload"===n?t:void 0}function gB(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let i=new Proxy(e,{apply(e,n,i){let s,a=function(){let e=gE();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==i5)try{let e=i5.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{}return null}(),o=(s=gE())?s.span:gD(),u=e.apply(n,i);return function(e,t,n,r,i){ax(e)?e.then(e=>{Array.isArray(e)&&n(e,t,r??void 0,i)}).catch(e=>{}):Array.isArray(e)&&n(e,t,r??void 0,i)}(u,t,r,a,o),u}});return mT(i,"__sentry_proxied__",!0),i}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)gB(n,t)}let gU=!1,gz=3e3,gW="",gq=new WeakSet,gF=i5?.document?av.useLayoutEffect:av.useEffect,gH=new WeakMap,gY=new Set,gJ=new WeakMap,gG=new WeakMap;function gV(e){i5?.cancelAnimationFrame?i5.cancelAnimationFrame(e):clearTimeout(e)}function gK(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function gQ(e){return e.includes(":")||e.includes("*")}function gX(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function gZ(e,t){let n=gJ.get(e);n||(n=new Set,gJ.set(e,n)),n.add(t),t.finally(()=>{let n=gJ.get(e);n&&n.delete(t)})}function g0(e){let t=new Promise(t=>{gG.set(e,t)});gZ(e,t)}
479function g1(e,t,n=null,r){e.forEach(e=>{gY.add(e),gU&&gB(e,g1)}),t&&gX(e,t);let i=r??gD();if(i){let e=mF(i);if(e.timestamp)return;let t=e.op,s=n;if(!s&&!r&&void 0!==i5){let e=i5.location;e?.pathname&&(s={pathname:e.pathname})}s&&("pageload"===t?yt({activeRootSpan:i,location:{pathname:s.pathname},routes:Array.from(gY),allRoutes:Array.from(gY)}):"navigation"===t&&g2(i,s,Array.from(gY),!1,L))}}function g2(e,t,n,r=!1,i){let s=mF(e),a=s.description,o=e?.__sentry_navigation_name_set__,u=a&&gR(a);if((!o||r||u)&&!s.timestamp){let r=i(n,t),[l,c]=g$(t,n,n,r||[],gW,M,gU),p=s.data?.[mf];l&&(!a||!o&&("route"!==p||"route"===c)||"route"!==p&&"route"===c||"route"===p&&"route"===c&&u)&&(e.updateName(l),e.setAttribute(mf,c),"route"===c&&e.setAttribute(sD.B8_,l),gR(l)||"route"!==c||mT(e,"__sentry_navigation_name_set__",!0))}}function g3(e,t,n,r,i){let s=!1,a=!!i&&"pageload"===mF(i).op,o=!1,u=null,l=null;e.subscribe(e=>{if(!s){let t=gD();t&&"pageload"===mF(t).op?a=!0:a&&("POP"!==e.historyAction||o?s=!0:o=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&s){let i=gK(e.location),s=()=>{l!==i&&(l=i,u=null,g8({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(gY)}))};if("idle"!==e.navigation.state)l!==i&&(l=null),null!==u&&gV(u),u=i5?.requestAnimationFrame?i5.requestAnimationFrame(s):setTimeout(s,0);else null!==u&&(gV(u),u=null),s()}})}function g4(e,t){return R&&O&&P&&L?function(n,r){if(ye(n),gU)for(let e of n)gB(e,g1);let i=gD();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&i&&(mT(i,"__sentry_may_have_lazy_routes__",!0),g0(i));let s=e(n,g9(r,!1,i)),a=r?.basename;return"POP"===s.state.historyAction&&i&&yt({activeRootSpan:i,location:s.state.location,routes:n,basename:a,allRoutes:Array.from(gY)}),gW=a||"",g3(s,n,t,a,i),s}:e}function g5(e,t){return R&&O&&P&&L?function(n,r){let i;if(ye(n),gU)for(let e of n)gB(e,g1);let s=gD();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&s&&(mT(s,"__sentry_may_have_lazy_routes__",!0),g0(s));let a=e(n,g9(r,!0,s)),o=r?.basename,u=r?.initialEntries,l=r?.initialIndex,c=u?.length===1,p=void 0!==l&&u?.[l],d=(i=c?u[0]:p?u[l]:void 0)?"string"==typeof i?{pathname:i}:i:a.state.location,f=gD();return"POP"===a.state.historyAction&&f&&yt({activeRootSpan:f,location:d,routes:n,basename:o,allRoutes:Array.from(gY)}),gW=o||"",g3(a,n,t,o,f),a}:e}function g6(e,t){let n=la({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:s,createRoutesFromChildren:a,matchRoutes:o,stripBasename:u,enableAsyncRouteHandlers:l=!1,instrumentPageLoad:c=!0,instrumentNavigation:p=!0,lazyRouteTimeout:d,lazyRouteManifest:f}=e;return{...n,setup(t){n.setup(t);let c=e.finalTimeout??3e4,p=(e.idleTimeout??1e3)*3,h=d??p;gz=h===1/0?c:Number.isNaN(h)?p:h<0?p:h,R=r,O=i,P=s,L=o,N=a,gU=l,M=f,function(e,t=!1){A=e,gw=t}(o,u||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=i5.location?.pathname;c&&r&&lo(e,{name:r,attributes:{[mf]:"url",[mh]:"pageload",[m_]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),p&&gq.add(e)}}}function g7(e,t){if(!R||!O||!P||!L)return e;let n=n=>{let r=av.useRef(!0),{routes:i,locationArg:s}=n,a=e(i,s),o=O(),u=P(),l="string"==typeof s||s?.pathname?s:o;return gF(()=>{let e="string"==typeof l?{pathname:l}:l;r.current?(ye(i),yt({activeRootSpan:gD(),location:e,routes:i,allRoutes:Array.from(gY)}),r.current=!1):g8({location:e,routes:i,navigationType:u,version:t,allRoutes:Array.from(gY)})},[u,l]),a};return(e,t)=>av.createElement(n,{routes:e,locationArg:t})}function g9(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let i=e?.path,s=gD()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(ye(r),n&&n.length>0){let t=n[n.length-1],i=t?.route;if(i){let t=Array.from(gY).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===i,s=void 0!==t.path&&void 0!==i.path&&t.path===i.path;return n||r||s});t&&gX(r,t)}}let a=s?mF(s):void 0;return i&&s&&a&&!a.timestamp&&"navigation"===a.op&&g2(s,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(gY),!0,L),t(e,r)})}let a=(async()=>{let t,n,a=(n={},gk.length>=10&&gk.shift(),gk.push({token:n,targetPath:i,span:s}),n);try{t=await r(e)}finally{let e,t;e=gk[gk.length-1],e?.token===a&&gk.pop(),s&&(t=gG.get(s))&&(t(),gG.delete(s),s.__sentry_may_have_lazy_routes__&&(s.__sentry_may_have_lazy_routes__=!1))}let o=s?mF(s):void 0;return s&&o&&!o.timestamp&&"navigation"===o.op&&i&&g2(s,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(gY),!1,L),t})();return s&&gZ(s,a),a}}}function g8(e){let{location:t,routes:n,navigationType:r,version:i,matches:s,basename:a,allRoutes:o}=e,u=Array.isArray(s)?s:L(o||n,t,a),l=mU();if(!l||!gq.has(l))return;let c=gD();if((!c||"pageload"!==mF(c).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&u){let e,[r,s]=g$(t,o||n,o||n,u,a,M,gU),c=gK(t),p=gH.get(l),d=!!p&&!p.isPlaceholder&&!!mF(p.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&gR(e.routeName),r=gR(n),i=!!e.routeName&&gQ(e.routeName),s=gQ(n),a=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!i&&s||a))}}return{skip:!1,shouldUpdate:!1}}(p,c,r,d);if(f){h&&p&&(p.routeName,p.isPlaceholder||(p.span.updateName(r),p.span.setAttribute(mf,s),"route"===s&&p.span.setAttribute(sD.B8_,r),mT(p.span,"__sentry_navigation_name_set__",!0)),p.routeName=r);return}let _={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:c,isPlaceholder:!0};gH.set(l,_);try{e=lu(l,{name:_.routeName,attributes:{[mf]:s,[mh]:"navigation",[m_]:`auto.navigation.react.reactrouter${i?`_v${i}`:""}`,..."route"===s&&{[sD.B8_]:_.routeName}}})}catch(e){throw gH.delete(l),e}e?(gH.set(l,{span:e,routeName:_.routeName,pathname:t.pathname,locationKey:c}),yr(e,t,n,a,"navigation")):gH.delete(l)}}
479function ye(e){e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{gY.add(e)})})}function yt({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:s}){let a=Array.isArray(r)?r:L(s||n,t,i);if(a){let[r,o]=g$(t,s||n,s||n,a,i,M,gU);mB().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(mf,o),"route"===o&&e.setAttribute(sD.B8_,r),yr(e,t,n,i,"pageload"))}else e&&yr(e,t,n,i,"pageload")}function yn(e,t,n,r,i,s,a,o){try{let u=t.data?.[mf];if("route"===u&&n&&!gR(n))return;let l=Array.from(o),c=l.length>0?l:i,p=L(c,r,s);if(!p)return;let[d,f]=g$(r,c,c,p,s,M,gU),h=function(e,t,n,r,i=!1){return!!n&&(!!(!e&&i||e&&gR(e)&&"route"===r&&!gR(n))||"route"!==t&&"route"===r)}(n,u,d,f,!0),_="pageload"===a||!t.timestamp;h&&_&&(e.updateName(d),e.setAttribute(mf,f),"route"===f&&e.setAttribute(sD.B8_,d))}catch(e){}}function yr(e,t,n,r,i){let s=`__sentry_${i}_end_patched__`;if(e?.[s]||!e.end)return;let a=e.end.bind(e),o=!1;e.end=function(...s){if(o)return;o=!0;let u=s.length>0?s[0]:Date.now()/1e3,l=mF(e),c=l.description,p=l.data?.[mf],d=()=>{let t=mU();if(t&&"navigation"===i){let n=gH.get(t);n&&n.span===e&&gH.delete(t)}},f=gJ.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(gR(c)||"route"!==p)){let s;if(0===gz){yn(e,l,c,t,n,r,i,gY),d(),a(u);return}let o=new Promise(e=>setTimeout(e,gz));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});s=gz===1/0?e:Promise.race([e,o])}else s=o;s.then(()=>{let s=mF(e);yn(e,s,s.description,t,n,r,i,gY),d(),a(u)}).catch(()=>{d(),a(u)});return}yn(e,l,c,t,n,r,i,gY),d(),a(u)},mT(e,s,!0)}function yi(e,t){if(!R||!O||!P||!N||!L)return e;let n=n=>{let r=av.useRef(!0),i=O(),s=P();return gF(()=>{let e=N(n.children);r.current?(ye(e),yt({activeRootSpan:gD(),location:i,routes:e,allRoutes:Array.from(gY)}),r.current=!1):g8({location:i,routes:e,navigationType:s,version:t,allRoutes:Array.from(gY)})},[i,s]),av.createElement(e,{...n})};return m9(n,e),n}function ys(e){return g6(e,"6")}function ya(e){return g7(e,"6")}function yo(e){return g4(e,"6")}function yu(e){return g5(e,"6")}function yl(e){return yi(e,"6")}function yc(e){return g6(e,"7")}function yp(e){return yi(e,"7")}function yd(e){return g4(e,"7")}function yf(e){return g5(e,"7")}function yh(e){return g7(e,"7")}function y_(e){return g6(e,"")}function ym(e){return yi(e,"")}function yg(e){return g4(e,"")}function yy(e){return g5(e,"")}function yv(e){return g7(e,"")}function yb(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function yS(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n?t[e]=n:"number"==typeof n&&(t[e]=String(n))})}catch{}return t}function yx(e){let t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),r=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),i=e.url||"",s=function({url:e,protocol:t,host:n}){return e?.startsWith("http")?e:e&&n?`${t}://${n}${e}`:void 0}({url:i,host:n,protocol:r}),a=e.body||void 0,o=e.cookies;return{url:s,method:e.method,query_string:yw(i),headers:yS(t),cookies:o,data:a}}function yw(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}async function yk(){try{await eD(2e3)}catch(e){}}function yE(e){var t;"function"==typeof yT()?.waitUntil?(t=e,yT()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=q[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}(e)}function yT(){let e=Symbol.for("__cloudflare-context__");return q[e]?.ctx}function yI(e,t,n){eP(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:yS(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),yE(yk())})}async function yC(e){let{req:t,res:n,err:r}=e,i=n?.statusCode||e.statusCode;if(i&&i<500||!e.pathname)return;if(r&&function(e){try{return e.__sentry_captured__}catch{}}(r)){yE(yk());let e="object"==typeof r?r.__sentry_event_id__:void 0;
479return"string"==typeof e?(eO().setLastEventId(e),e):eO().lastEventId()}let s=eP(e=>{if(t){let n=yx(t);e.setSDKProcessingMetadata({normalizedRequest:n})}return ej(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return yE(yk()),s}function yA(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){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(e>=500&&e<600)switch(e){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"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}function yR(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let yO=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function yP(e){let t;if(!e)return;let n=e.match(yO);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function yN(e=et(),t=ed(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function yL(e=et(),t=ed(),n){return`00-${e}-${t}-${n?"01":"00"}`}let yM=!1;function yj(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function y$(e){return"number"==typeof e?yD(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?yD(e.getTime()):er()}function yD(e){return e>0x2540be3ff?e/1e3:e}function yB(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:s,name:a,endTime:o,status:u,links:l}=e;return{span_id:r,trace_id:i,data:t,description:a,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:y$(s),timestamp:y$(o)||void 0,status:yz(u),op:t[lh],origin:t[l_],links:yj(l)}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function yU(e){let{traceFlags:t}=e.spanContext();return 1===t}function yz(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}function yW(e){return e&&1!==e.code&&0!==e.code&&"cancelled"!==e.message?"error":"ok"}let yq="_sentryChildSpans",yF="_sentryRootSpan";function yH(e,t){let n=e[yF]||e;ef(t,yF,n),e[yq]?e[yq].add(t):ef(e,yq,new Set([t]))}let yY=function(e){return e[yF]||e};function yJ(){let e=eA(H());return e.getActiveSpan?e.getActiveSpan():e_(eR()[em])}let yG=Symbol.for("sentry.nonRecordingSpan");class yV{constructor(e={}){this._traceId=e.traceId||et(),this._spanId=e.spanId||ed(),this.dropReason=e.dropReason,ef(this,yG,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}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){}}function yK(e){return!!e&&!0===e[yG]}function yQ(e,t,n=()=>{},r=()=>{}){var i,s,a,o;let u;try{u=e()}catch(e){throw t(e),n(),e}return i=u,s=t,a=n,o=r,ep(i)?ex(i,e=>{a(),o(e)},e=>{s(e),a()}):(a(),o(i),i)}function yX(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eL()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function yZ(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&ey(e.description,r))return!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&ey(e.description,r.name),s=!r.op||e.op&&ey(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?ey(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&s&&a)return!0}return!1}function y0(e){return"stream"===e.getOptions().traceLifecycle}let y1="_sentryScope",y2="_sentryIsolationScope",y3=Symbol.for("sentry.otelSourceInference"),y4=Symbol.for("sentry.otelSourceExplicitlySet"),y5=Symbol.for("sentry.tracerProviderSpan");function y6(e,t,n){e&&(ef(e,y2,eh(n)),ef(e,y1,t))}function y7(e){return{scope:e[y1],isolationScope:e_(e[y2])}}let y9="_frozenDsc";function y8(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:lQ(t)};return t.emit("createDsc",i),i}function ve(e,t){let n=t.getPropagationContext();return n.dsc||y8(n.traceId,e)}function vt(e){let t=eL();if(!t)return{};let n=yY(e),r=yB(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[lf]??i["sentry.previous_trace_sample_rate"];function o(e){return("number"==typeof a||"string"==typeof a)&&(e.sample_rate=`${a}`),e}let u=n[y9];if(u)return o(u);let l=yK(n),c=l&&"ignored"===n.dropReason;if(l&&(!yX(t.getOptions())||c)){let e=y7(n).scope;if(e){let n={...ve(t,e)};return c&&(n.sampled="false"),o(n)}}let p=s?.get("sentry.dsc"),d=p&&lj(p);if(d)return o(d);let f=y8(e.spanContext().traceId,t),h=i[ld]??i["sentry.segment.name.source"],_=r.description;return"url"!==h&&_&&(f.transaction=_),yX()&&(f.sampled=String(yU(n)),f.sample_rand=s?.get("sentry.sample_rand")??y7(n).scope?.getPropagationContext().sampleRand.toString()),o(f),t.emit("createDsc",f,n),f}function vn(e){if(!e||0===e.length)return;let t={};
479return e.forEach(e=>{let n=e.attributes||{},r=n["sentry.measurement_unit"],i=n["sentry.measurement_value"];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function vr(){return Y(H()).segmentSpanCaptureStrategy}class vi{constructor(e={}){this._traceId=e.traceId||et(),this._spanId=e.spanId||ed(),this._startTime=e.startTimestamp||er(),this._links=e.links,this._attributes={},this.setAttributes({[l_]:"manual",[lh]: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._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(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}}setAttribute(e,t){return this._frozen?this:(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===ld&&void 0!==t&&!0===this[y3]&&ef(this,y4,!0),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=y$(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen?this:(this._name=e,!0!==this[y3]&&this.setAttribute(ld,"custom"),this)}end(e){if(this._endTime){this._frozen=!0===this[y5];return}this._endTime=y$(e),this._onSpanEnded(),this._frozen=!0===this[y5]}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[lh],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:yz(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[l_],profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:vn(this._events),is_segment:this._isStandaloneSpan&&yY(this)===this||void 0,segment_id:this._isStandaloneSpan?yY(this).spanContext().spanId:void 0,links:yj(this._links)}}getStreamedSpanJSON(){var e,t,n;let r;return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===yY(this),status:yW(this._status),attributes:(e=this._attributes,{...(r="error"===yW(t=this._status)?t?.message:void 0)&&{"sentry.status.message":r},...e}),links:(n=this._links,n?.length?n.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;let r=vs(t)?t:n||er(),i=vs(t)?{}:t||{},s={name:e,time:y$(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eL();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=yY(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eL();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=vt(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date(ee()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:function(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=e;return`${o}://${u}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}(r)}},{beforeSendSpan:a,ignoreSpans:o}=t?.getOptions()||{},u=o?.length?e.filter(e=>{let t=yB(e);return!yZ({description:t.description,op:t.op,attributes:t.data},o)}):e,l=e.length-u.length;l&&t?.recordDroppedEvent("before_send","span",l);let c=a?e=>{let t=yB(e),n=a&&"function"==typeof a&&"_streamed"in a&&a._streamed?t:a(t);return n||(yM||(V(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),yM=!0),t)}:yB,p=[];for(let e of u){let t=c(e);t&&p.push([{type:"span"},t])}return function(e,t=[]){return[e,t]}(s,p)}([this],e)):e&&e.recordDroppedEvent("sample_rate","span"));if(!n){let e=vr();if(e){let n=y7(this).scope||eR();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&y0(e))return void e.emit("afterSegmentSpanEnd",this);let r=y7(this).scope||eR(),i=vr();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){let t;if(!va(yB(this)))return;this._name||(this._name="<unlabeled transaction>");let{scope:n,isolationScope:r}=y7(this),i=n?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let s=[];for(let n of(t=new Set,!function e(n){if(!t.has(n)&&yU(n))for(let r of(t.add(n),n[yq]?Array.from(n[yq]):[]))e(r)}(this),Array.from(t))){var a;if(n===this||(a=n)instanceof vi&&a.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(n))continue;let t=yB(n);va(t)&&(e.onSpanCaptured?.(n),s.push(t))}let o=this._attributes[ld];delete this._attributes[lm];let u=!1;
479s.forEach(e=>{delete e.data[lm],e.op?.startsWith("gen_ai.")&&(u=!0)});let l={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:u}=yB(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:u}}(this)},spans:s.length>1e3?s.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:vt(this),hasGenAiSpans:u},request:i,...o&&{transaction_info:{source:o}}},c=vn(this._events);return c&&Object.keys(c).length&&(l.measurements=c),l}}function vs(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function va(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function vo(e,t){let n=vf();if(n.startSpan)return n.startSpan(e,t);let r=vd(e),{forceTransaction:i,parentSpan:s,scope:a}=e;return eP(a?.clone(),()=>vm(s)(()=>{let n=eR(),a=v_(n,s),o=eL(),u=e.onlyIfParent&&!a?vc(n,o):vp({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return vg(u)&&a||eg(n,u),yQ(()=>t(u),()=>{let{status:e}=yB(u);u.isRecording()&&(!e||"ok"===e)&&u.setStatus({code:2,message:"internal_error"})},()=>{u.end()})}))}function vu(e,t){let n=vf();return n.withActiveSpan?n.withActiveSpan(e,t):eP(n=>(eg(n,e||void 0),t(n)))}function vl(e=eR()){let t=vf();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function vc(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new yV({traceId:e.getPropagationContext().traceId});return y6(n,e,eO()),n}function vp({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i,s;let a,o,u=eO();if(!yX()){let t={...u.getPropagationContext(),...r.getPropagationContext()},i=new yV({traceId:e?e.spanContext().traceId:t.traceId});return e&&!n&&yH(e,i),y6(i,r,u),i}let l=eL();if(i=l,s=t,a=i?.getOptions().ignoreSpans,i&&y0(i)&&a?.length&&yZ({description:s.name||"",op:s.attributes?.[lh]||s.op,attributes:s.attributes},a)){vl(r)||l?.recordDroppedEvent("ignored","span");let t=new yV({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&yH(e,t),y6(t,r,u),t}if(e&&!n)o=function(e,t,n,r){let{spanId:i,traceId:s}=e.spanContext(),a=vl(t),o=!a&&yU(e),u=o?new vi({...n,parentSpanId:i,traceId:s,sampled:o}):new yV({traceId:s});yH(e,u),y6(u,t,r);let l=eL();return l&&(y0(l)&&yK(u)&&(yK(e)&&e.dropReason?(u.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):a||(u.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span"))),l.emit("spanStart",u),n.endTimestamp&&(l.emit("spanEnd",u),l.emit("afterSpanEnd",u))),u}(e,r,t,u),yH(e,o);else if(e){let n=vt(e),{traceId:i,spanId:s}=e.spanContext(),a=yU(e);ef(o=vh({traceId:i,parentSpanId:s,...t},r,u,a),y9,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...u.getPropagationContext(),...r.getPropagationContext()};o=vh({traceId:e,parentSpanId:i,...t},r,u,s),n&&ef(o,y9,n)}return o}function vd(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=y$(e.startTime),delete n.startTime,n}return t}function vf(){return eA(H())}function vh(e,t,n,r){let i=eL(),s=i?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};i?.emit("beforeSampling",o,{decision:!1});let u=o.parentSampled??r,l=o.spanAttributes,c=t.getPropagationContext(),p=vl(t),[d,f,h]=p?[!1]:function(e,t,n){let r,i;if(!yX(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let s=yR(r);if(void 0===s)return[!1];if(!s)return[!1,s,i];let a=n<s;return[a,s,i]}(s,{name:a,parentSampled:u,attributes:l,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:yR(c.dsc?.sample_rate)},c.sampleRand),_=new vi({...e,attributes:{[ld]:"custom",[lf]:void 0!==f&&h?f:void 0,...l},sampled:d});return d||!i||p||i.recordDroppedEvent("sample_rate",y0(i)?"span":"transaction"),y6(_,t,n),i&&i.emit("spanStart",_),_}function v_(e,t){if(t)return t;if(null===t)return;let n=e_(e[em]);if(!n)return;let r=eL();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?yY(n):n}function vm(e){return void 0!==e?t=>
479vu(e,t):e=>e()}function vg(e){return yK(e)&&"ignored"===e.dropReason}var vy=n(52035),vv=n(65364);function vb(){return vv.env.NEXT_PHASE===vy.PHASE_PRODUCTION_BUILD}function vS(e){let t=vb(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return t||n}function vx(){return new yV({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function vw(e,t){return vS(t)?t(vx()):vo(e,t)}function vk(e,t){if(vS(t)){let e=vx();return t(e,()=>e.end())}return function(e,t){let n=vf();if(n.startSpanManual)return n.startSpanManual(e,t);let r=vd(e),{forceTransaction:i,parentSpan:s,scope:a}=e;return eP(a?.clone(),()=>vm(s)(()=>{let n=eR(),a=v_(n,s),o=e.onlyIfParent&&!a?vc(n,eL()):vp({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return vg(o)&&a||eg(n,o),yQ(()=>t(o,()=>o.end()),()=>{let{status:e}=yB(o);o.isRecording()&&(!e||"ok"===e)&&o.setStatus({code:2,message:"internal_error"})})}))}(e,t)}function vE(e){let t;return vS()?vx():(t=vf()).startInactiveSpan?t.startInactiveSpan(e):function(e){let t=vd(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>eP(e.scope,t):void 0!==r?e=>vu(r,e):e=>e())(()=>{let i=eR(),s=v_(i,r),a=eL();return e.onlyIfParent&&!s?vc(i,a):vp({parentSpan:s,spanArguments:t,forceTransaction:n,scope:i})})}(e)}function vT(...e){if("function"==typeof e[1]){let[t,n]=e;return vI(t,{},n)}{let[t,n,r]=e;return vI(t,n,r)}}async function vI(e,t,n){return eN(async r=>{let i,s,a=eL()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),o={};try{let e=await t.headers;i=e?.get("sentry-trace")??void 0,s=e?.get("baggage"),e?.forEach((e,t)=>{o[t]=e})}catch{}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),(yJ()?(e,t)=>t():(e,t)=>{var n,r;let i,s,a=eA(H());if(a.continueTrace)return a.continueTrace(e,t);let{sentryTrace:o,baggage:u}=e,l=eL(),c=lj(u);return l&&(n=c?.org_id,s=lQ(l),n&&s&&n!==s?(K(`Won't continue trace because org IDs don't match (incoming baggage: ${n}, SDK options: ${s})`),1):l.getOptions().strictTraceContinuation&&(n&&!s||!n&&s)&&(K(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${n}, Sentry client: ${s})`),1))?(r=t,(i=vf()).startNewTrace?i.startNewTrace(r):eP(e=>(e.setPropagationContext({traceId:et(),sampleRand:Z()}),vu(null,r)))):eP(e=>{let n=function(e,t){let n=yP(e),r=lj(t);if(!n?.traceId)return{traceId:et(),sampleRand:Z()};let i=function(e,t){let n=yR(t?.sample_rand);if(void 0!==n)return n;let r=yR(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Z()*r:r+Z()*(1-r):Z()}(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}}(o,u);return e.setPropagationContext(n),eg(e,void 0),t()})})({sentryTrace:i,baggage:s},async()=>{try{return await vo({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[ld]:"route",[l_]:"auto.function.nextjs.server_action"}},async e=>{let r=await yQ(n,t=>{ak(t)?e.setStatus({code:2,message:"not_found"}):aE(t)?(e.setStatus({code:1}),e.end()):(e.setStatus({code:2,message:"internal_error"}),ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:a)&&eO().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{eO().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{yE(yk())}})})}function vC(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i;if(!r?.[0])return e.apply(n,r);let[s]=r,a="nextUrl"in s?s.nextUrl.pathname:s.url,o="nextUrl"in s?s.headers.get("user-agent"):s.headers["user-agent"];if(!t||!o?.includes("vercel-cron"))return e.apply(n,r);let u=t.find(e=>e.path===a);if(!u?.path||!u.schedule)return e.apply(n,r);let l=u.path,c=e$({monitorSlug:l,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:u.schedule}}),p=ee()/1e3,d=()=>{e$({checkInId:c,monitorSlug:l,status:"error",duration:ee()/1e3-p})};try{i=e.apply(n,r)}catch(e){throw d(),e}return ec(i)&&"then"in i?Promise.resolve(i).then(()=>{e$({checkInId:c,monitorSlug:l,status:"ok",duration:ee()/1e3-p})},()=>{d()}):e$({checkInId:c,monitorSlug:l,status:"ok",duration:ee()/1e3-p}),i}})}function vA(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function vR(e,t,n,r){return async function(...n){let i=yx(t);eR().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),eO().setSDKProcessingMetadata({normalizedRequest:i});let s=yJ();s&&"/_error"!==r.requestedRouteName&&yY(s).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":o,baggage:u}=function(e={}){let t,n=e.client||eL();if(t=eL(),!(t?.getOptions().enabled!==!1&&t?.getTransport())||!n)return{};let r=eA(H());if(r.getTraceData)return r.getTraceData(e);let i=e.scope||eR(),s=e.span||yJ(),o=yK(s)&&!yX(n.getOptions());if(!s&&void 0!==a)return{};let u=s&&!o?function(e){let{traceId:t,spanId:n}=e.spanContext();return yN(t,n,yU(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return yN(t,r,n)}(i),l=function(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${lM}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>
479{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>8192?e:s},""):void 0}}(s?vt(s):ve(n,i));if(!yO.test(u))return Q("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":u,baggage:l};return e.propagateTraceparent&&(c.traceparent=s&&!o?function(e){let{traceId:t,spanId:n}=e.spanContext();return yL(t,n,yU(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return yL(t,r,n)}(i)),c}();return{sentryTrace:o,baggage:u,data:await e.apply(this,n)}}}async function vO(e,t){try{return await e(...t)}catch(e){throw ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function vP(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vb())return e.apply(t,n);let[r]=n,{req:i,res:s}=r.ctx,a=vA(e);if(!i||!s)return a.apply(t,n);{let e=vR(a,i,s,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:o,sentryTrace:u,baggage:l}=await e.apply(t,n);return"object"==typeof o&&null!==o&&(o.pageProps||(o.pageProps={}),u&&(o.pageProps._sentryTraceData=u),l&&(o.pageProps._sentryBaggage=l)),o}}})}function vN(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vb())return e.apply(t,n);let[r]=n,{req:i,res:s}=r,a=vA(e);if(!i||!s)return a.apply(t,n);{let e=vR(a,i,s,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:o}=await e.apply(t,n);return o}}})}function vL(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vb())return e.apply(t,n);let[r]=n,{req:i,res:s}=r,a=vA(e);if(!i||!s)return a.apply(t,n);{let e=vR(a,i,s,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:o,baggage:u,sentryTrace:l}=await e.apply(t,n);return"object"==typeof o&&null!==o&&(l&&(o._sentryTraceData=l),u&&(o._sentryBaggage=u)),o}}})}function vM(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i,s=eO();try{i=t.requestAsyncStorage?.getStore()?.headers}catch{}let a=i?yb(i):void 0;return s.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),yQ(()=>e.apply(n,r),e=>{let n=yJ(),{componentRoute:r,componentType:i,generationFunctionIdentifier:a}=t,o=!0;s.setTransactionName(`${i}.${a} (${r})`),n&&(ak(e)?(o=!1,n.setStatus({code:2,message:"not_found"})):aE(e)?(o=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),o&&ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:a}}})},()=>{yE(yk())})}})}function vj(e){return new Proxy(e,{apply:async(e,t,n)=>{if(vb())return e.apply(t,n);let[r]=n,{req:i,res:s}=r,a=vA(e);if(!i||!s)return a.apply(t,n);{let e=vR(a,i,s,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:o,baggage:u,sentryTrace:l}=await e.apply(t,n)??{};return"object"==typeof o&&null!==o&&(l&&(o._sentryTraceData=l),u&&(o._sentryBaggage=u)),o}}})}function v$(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(vb())return e.apply(n,r);let[i]=r,{req:s,res:a}=i,o=vR(vA(e),s,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:u,baggage:l,sentryTrace:c}=await o.apply(n,r);return"object"==typeof u&&null!==u&&"props"in u&&(c&&(u.props._sentryTraceData=c),l&&(u.props._sentryBaggage=l)),u}})}function vD(e,t){return new Proxy(e,{apply:async(e,t,n)=>vb()?e.apply(t,n):vO(vA(e),n)})}function vB(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request){var i;if((i=new URL(e.url).pathname)===r||i.startsWith(`${r}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return eN(r=>{let i,s,a=n[0],o=eR();if(a instanceof Request){let e;r.setSDKProcessingMetadata({normalizedRequest:(e=yb(a.headers),{method:a.method,url:a.url,query_string:yw(a.url),headers:e})}),i=`middleware ${a.method}`,s="url"}else i="middleware",s="component";o.setTransactionName(i);let u=yJ();if(u){i="middleware",s="component";let e=yY(u);e&&y6(e,o,r)}return vo({name:i,op:"http.server.middleware",attributes:{[ld]:s,[l_]:"auto.function.nextjs.wrap_middleware"}},()=>yQ(()=>e.apply(t,n),e=>{ej(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{yE(yk())}))})}})}function vU(e,t){ec(e)&&ef(e,"__sentry_event_id__",t)}function vz(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return eN(()=>{let t=eR(),n=ec(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=yP(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw vU(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>eN(()=>{let r=eR(),i=n?.[0]?._sentryTraceData;if(i){let e=yP(i);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=ej(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw vU(t,e),t}})}):e}function vW(e,t){let{method:n,parameterizedRoute:r,headers:i}=t;return new Proxy(e,{apply:async(e,t,i)=>{let s=yJ(),a=s?yY(s):void 0;return eN(eO(),()=>eP(async o=>{o.setTransactionName(`${n} ${r}`);let u=await yQ(()=>e.apply(t,i),e=>{aE(e)||(ak(e)?(s&&yA(s,404),a&&yA(a,404)):ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{yE(yk())});try{u.status&&(s&&yA(s,u.status),a&&yA(a,u.status))}catch{}return u}))}})}function vq(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i=eO(),s=t.headers?yb(t.headers):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),yQ(()=>e.apply(n,r),e=>{let n=yJ(),{componentRoute:r,componentType:s}=t,a=!0;i.setTransactionName(`${s} Server Component (${r})`),n&&(ak(e)?(a=!1,n.setStatus({code:2,message:"not_found"})):aE(e)?(a=!1,n.setStatus({code:1})):n.setStatus({code:2,message:"internal_error"})),a&&ej(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{yE(yk())})}})}}
479,59514:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>g,zU:()=>m,pK:()=>_,et:()=>h,kX:()=>p});var r=n(48864),i=n(5516),s=n(89570),a=n(29527),o=n(78666),u=n(96257),l=n(33361),c=n(1375);function p(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:h(e).parent_span_id,s=(0,o.Lb)(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,u.Z)():t,trace_id:n}}function d(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,l.zf)()}function f(e){return e>0x2540be3ff?e/1e3:e}function h(e){var t,n;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:i}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:s,name:o,endTime:u,status:l,links:c}=e;return{span_id:r,trace_id:i,data:t,description:o,parent_span_id:"parentSpanId"in(n=e)?n.parentSpanId:"parentSpanContext"in n?n.parentSpanContext?.spanId:void 0,start_timestamp:d(s),timestamp:d(u)||void 0,status:function(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"internal_error"}(l),op:t[a.uT],origin:t[a.JD],links:c&&c.length>0?c.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}}return{span_id:r,trace_id:i,start_timestamp:0,data:{}}}function _(e){let{traceFlags:t}=e.spanContext();return 1===t}let m=function(e){return e._sentryRootSpan||e};function g(){let e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,c.f)((0,s.o5)())}},62757:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>u,P4:()=>a,sY:()=>o,ti:()=>l});var r=n(45911),i=n(74848);let s=Symbol.for("sentry__originalRequestBody");function a(e){return new URLSearchParams(e).toString()}function o(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[a(e)];if(!e)return[void 0]}catch(n){return i.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function u(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][s];if(void 0!==t)return t}}function l(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},63571:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(21453);let i=()=>{let e=(0,r.z)();return e?.activationStart??0}},67168:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>a,h4:()=>s,n2:()=>o});var r=n(72005),i=n(96401);function s(e,t=[]){return[e,t]}function a(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function o(e,t,n,s){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,i.Wk)()).toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:(0,r.SB)(s)},...a&&{trace:a}}}},70079:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},71061:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});let r=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},72005:(e,t,n)=>{"use strict";n.d(t,{SB:()=>i,ul:()=>s});let r=/^o(\d+)\./;function i(e,t=!1){let{host:n,path:r,pass:s,port:a,projectId:o,protocol:u,publicKey:l}=e;return`${u}://${l}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${o}`}function s(e){let t,n=e.getOptions(),{host:i}=e.getDsn()||{};if(n.orgId)t=String(n.orgId);else{let e;i&&(e=i.match(r),t=e?.[1])}return t}},73447:(e,t,n)=>{"use strict";n.d(t,{qd:()=>u,wg:()=>c,y7:()=>l});var r=n(90529),i=n(45911),s=n(74848),a=n(29387);let o={};function u(e){let t=o[e];if(t)return t;let n=a.j[e];if((0,r.a3)(n))return o[e]=n.bind(a.j);let u=a.j.document;if(u&&"function"==typeof u.createElement)try{let t=u.createElement("iframe");t.hidden=!0,u.head.appendChild(t);let r=t.contentWindow;r?.[e]&&(n=r[e]),u.head.removeChild(t)}catch(t){s.T&&i.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?o[e]=n.bind(a.j):n}function l(e){o[e]=void 0}function c(...e){return u("setTimeout")(...e)}
479},74848:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},77688:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});let r=globalThis},78666:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>i});var r=n(86425);function i(e){return{scope:e._sentryScope,isolationScope:(0,r.q)(e._sentryIsolationScope)}}},79642:(e,t,n)=>{"use strict";n.d(t,{AS:()=>l,aj:()=>c,s5:()=>u});var r=n(70079),i=n(45911),s=n(23496);let a={},o={};function u(e,t){return a[e]=a[e]||[],a[e].push(t),()=>{let n=a[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function l(e,t){if(!o[e]){o[e]=!0;try{t()}catch(t){r.T&&i.Yz.error(`Error while instrumenting ${e}`,t)}}}function c(e,t){let n=e&&a[e];if(n)for(let a of n)try{a(t)}catch(t){r.T&&i.Yz.error(`Error while triggering instrumentation handler. 480Type: ${e} 481Name: ${(0,s.qQ)(a)} 482Error:`,t)}}},84329:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s,d:()=>i});var r=n(29387);function i(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function s(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},86425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,q:()=>s});var r=n(44903);function i(e){try{let t=r.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function s(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},86747:(e,t,n)=>{"use strict";function r(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}n.d(t,{i:()=>r})},87177:(e,t,n)=>{"use strict";n.d(t,{Kg:()=>s,Qd:()=>o,Qg:()=>l,gd:()=>u,sO:()=>a});let r=Object.prototype.toString;function i(e,t){return r.call(e)===`[object ${t}]`}function s(e){return i(e,"String")}function a(e){return null===e||"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e||"object"!=typeof e&&"function"!=typeof e}function o(e){return i(e,"Object")}function u(e){return i(e,"RegExp")}function l(e){return!!(e?.then&&"function"==typeof e.then)}},89099:(e,t,n)=>{e.exports=n(89816)},89570:(e,t,n)=>{"use strict";n.d(t,{KU:()=>l,m6:()=>u,o5:()=>a,rm:()=>o});var r=n(48864),i=n(5516),s=n(26475);function a(){let e=(0,i.EU)();return(0,r.h)(e).getCurrentScope()}function o(){let e=(0,i.EU)();return(0,r.h)(e).getIsolationScope()}function u(){return(0,i.BY)("globalScope",()=>new s.H)}function l(){return a().getClient()}},90529:(e,t,n)=>{"use strict";n.d(t,{NJ:()=>i,a3:()=>s});let r=n(77688).O;function i(){return"history"in r&&!!r.history}function s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}},91076:(e,t,n)=>{"use strict";n.d(t,{$N:()=>i});let r=n(44903).O;function i(){try{return r.document.location.href}catch{return""}}},92074:(e,t,n)=>{"use strict";n.d(t,{GS:()=>s,my:()=>a});var r=n(70079),i=n(45911);function s(e,t,n){if(!(t in e))return;let s=e[t];if("function"!=typeof s)return;let o=n(s);"function"==typeof o&&function(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,a(e,"__sentry_original__",t)}catch{}}(o,s);try{e[t]=o}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}function a(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}},95577:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>s,xv:()=>i});var r=n(28372);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t=[],n=!1){for(let i of t)if(function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):(0,r.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}(e,i,n))return!0;return!1}},96257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,e:()=>i});var r=n(15096);function i(){return(0,r.eJ)()}function s(){return(0,r.eJ)().substring(16)}},96401:(e,t,n)=>{"use strict";let r;n.d(t,{Qw:()=>s,Wk:()=>o,hY:()=>a});var i=n(44903);function s(e){if(void 0!==r)return r?r(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=i.O;return t in n&&"function"==typeof n[t]?(r=n[t])(e):(r=null,e())}function a(){return s(()=>Math.random())}function o(){return s(()=>Date.now())}},97713:(e,t,n)=>{"use strict";n.d(t,{Jz:()=>i,wq:()=>s});var r=n(96401);function i(e,t,n=(0,r.Wk)()){return(e[t]||e.all||0)>n}function s(e,{statusCode:t,headers:n},i=(0,r.Wk)()){let a={...e},o=n?.["x-sentry-rate-limits"],u=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,r]=e.split(":",5),s=parseInt(t,10),o=(isNaN(s)?60:s)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(a[e]=i+o):a[e]=i+o;else a.all=i+o}else u?a.all=i+function(e,t=(0,r.Wk)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}
482(u,i):429===t&&(a.all=i+6e4);return a}},98572:(e,t,n)=>{"use strict";let r,i,s,a;n.d(t,{li:()=>T,mG:()=>E});var o=n(303),u=n(936),l=n(7634),c=n(28372);function p(e){return new d(t=>{t(e)})}class d{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new d((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new d((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,c.Qg)(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}var f=n(26475),h=n(44903),_=n(15096),m=n(51498),g=n(89570),y=n(34099),v=n(99400),b=n(59514);function S(e,t){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:u,breadcrumbs:l,fingerprint:c,eventProcessors:p,attachments:d,propagationContext:f,transactionName:h,span:_}=t;x(e,"extra",n),x(e,"tags",r),x(e,"attributes",i),x(e,"user",s),x(e,"contexts",a),e.sdkProcessingMetadata=(0,v.h)(e.sdkProcessingMetadata,u,2),o&&(e.level=o),h&&(e.transactionName=h),_&&(e.span=_),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function x(e,t,n){e[t]=(0,v.h)(e[t],n,1)}var w=n(95577),k=n(33361);function E(e,t,n,v,x,E){var T,I,C;let A,R,{normalizeDepth:O=3,normalizeMaxBreadth:P=1e3}=e,N={...t,event_id:t.event_id||n.event_id||(0,_.eJ)(),timestamp:t.timestamp||(0,k.lu)()},L=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||o.U,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&s&&(a.url=(0,w.xv)(a.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,w.xv)(e.value,s))})})(N,e),T=N,(I=L).length>0&&(T.sdk=T.sdk||{},T.sdk.integrations=[...T.sdk.integrations||[],...I]),x&&x.emit("applyFrameMetadata",t),void 0===t.type&&(C=N,A=function(e){let t=h.O._sentryDebugIds,n=h.O._debugIds;if(!t&&!n)return{};let o=t?Object.keys(t):[],u=n?Object.keys(n):[];if(a&&o.length===i&&u.length===s)return a;i=o.length,s=u.length,a={},r||(r={});
482let l=(t,n)=>{for(let i of t){let t=n[i],s=r?.[i];if(s&&a&&t)a[s[0]]=t,r&&(r[i]=[s[0],t]);else if(t){let n=e(i);for(let e=n.length-1;e>=0;e--){let s=n[e],o=s?.filename;if(o&&a&&r){a[o]=t,r[i]=[o,t];break}}}}};return t&&l(o,t),n&&l(u,n),a}(e.stackParser),C.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=A[e.filename])})}));let M=function(e,t){if(!t)return e;let n=e?e.clone():new f.H;return n.update(t),n}(v,n.captureContext);n.mechanism&&(0,_.M6)(N,n.mechanism);let j=x?x.getEventProcessors():[],$=(R=(0,g.m6)().getScopeData(),E&&S(R,E.getScopeData()),M&&S(R,M.getScopeData()),R),D=[...n.attachments||[],...$.attachments];D.length&&(n.attachments=D),function(e,t){var n,r,i,s,a,o,u,l;let c,p,d,{fingerprint:f,span:h,breadcrumbs:_,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),h&&(n=e,r=h,n.contexts={trace:(0,b.kX)(r),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:(0,y.k1)(r),...n.sdkProcessingMetadata},c=(0,b.zU)(r),(p=(0,b.et)(c).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=p)),i=e,s=f,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=e,o=_,d=[...a.breadcrumbs||[],...o],a.breadcrumbs=d.length?d:void 0,u=e,l=m,u.sdkProcessingMetadata={...u.sdkProcessingMetadata,...l}}(N,$);let B=[...j,...$.eventProcessors];return(n.data&&!0===n.data.__sentry__?p(N):function(e,t,n,r=0){try{let i=function e(t,n,r,i){let s=r[i];if(!t||!s)return t;let a=s({...t},n);return(u.T&&null===a&&l.Yz.log(`Event processor "${s.id||"?"}" dropped event`),(0,c.Qg)(a))?a.then(t=>e(t,n,r,i+1)):e(a,n,r,i+1)}(t,n,e,r);return(0,c.Qg)(i)?i:p(i)}catch(e){return new d((t,n)=>{n(e)})}}(B,N,n)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof O&&O>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,n)}}))},...e.user&&{user:(0,m.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,m.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,m.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,m.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,m.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,m.S8)(e.contexts.flags,3,n)),r}(e,O,P):e)}function T(e){if(e){var t;return(t=e)instanceof f.H||"function"==typeof t||Object.keys(e).some(e=>I.includes(e))?{captureContext:e}:e}}let I=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},99400:(e,t,n)=>{"use strict";n.d(t,{h:()=>function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;let i={...t};for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=e(i[t],n[t],r-1));return i}})}}]);
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.