PageSourceSearch

https://circusliquorsc.com/assets/performance-0E6KhFrC.js

js circusliquorsc.com collected 2026-10-04 07:37:09 UTC 97,499 bytes, 27 lines download raw bytes

1import{g as Rs,r as K}from"./jsx-runtime-D2HyDbKh.js";import{a5 as be,a6 as ws,h as Zn,a7 as Bt,l,a8 as W,G as k,C as ks,m as A,a9 as ln,E as Ie,u as Et,aa as er,ab as ue,ac as jt,ad as qt,ae as de,f as q,n as Ns,af as Os,V as M,ag as As,D as h,ah as tr,g as R,a as Y,ai as Gt,w as Je,aj as $s,q as Qe,ak as Re,al as Cs,am as Ze,b as C,t as nr,an as xs,ao as Ps,L as St,ap as et,aq as rr,ar as Ds,as as Fs,at as Ms,O as Ls,au as Hs,av as fn,aw as Wt,ax as pn,o as Us,ay as Yt,B as vt,az as sr,S as mn,aA as G,r as Oe,aB as zt,d as D,i as we,aC as ir,aD as ar,aE as or,aF as bt,p as Bs,e as js,aG as qs,aH as It,x as Ye,c as cr,aI as Xt,aJ as hn,aK as Gs,A as ur,aL as Kt,aM as Ws,aN as Ys,aO as zs,j as J,y as gn,F as dr,v as Xs,aP as Ks,a2 as _n,P as yn}from"./hub-lKrYKKAf.js";import{g as Vs,i as Js}from"./node-5jBVRjIE.js";function Qs(t,e,n=250,r,s,i,a){if(!i.exception||!i.exception.values||!a||!be(a.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Zs(Rt(t,e,s,a.originalException,r,i.exception.values,o,0),n))}function Rt(t,e,n,r,s,i,a,o){if(i.length>=n+1)return i;let c=[...i];if(be(r[s],Error)){Tn(a,o);const u=t(e,r[s]),d=c.length;En(u,s,d,o),c=Rt(t,e,n,r[s],s,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(be(u,Error)){Tn(a,o);const f=t(e,u),m=c.length;En(f,`errors[${d}]`,m,o),c=Rt(t,e,n,u,s,[f,...c],f,m)}}),c}function Tn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0},exception_id:e}}function En(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function Zs(t,e){return t.map(n=>(n.value&&(n.value=ws(n.value,e)),n))}const ei=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ti(t){return t==="http"||t==="https"}function Z(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${a}`}function ni(t){const e=ei.exec(t);if(!e){Zn(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i,a="",o]=e.slice(1);let c="",u=o;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return lr({host:i,pass:s,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function lr(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ri(t){if(!Bt)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(l.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?ti(r)?e&&isNaN(parseInt(e,10))?(l.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(l.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(l.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function fr(t){const e=typeof t=="string"?ni(t):lr(t);if(!(!e||!ri(e)))return e}class U extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const qe={},Sn={};function ee(t,e){qe[t]=qe[t]||[],qe[t].push(e)}function te(t,e){Sn[t]||(e(),Sn[t]=!0)}function F(t,e){const n=t&&qe[t];if(n)for(const r of n)try{r(e)}catch(s){Bt&&l.error(`Error while triggering instrumentation handler.
2Type: ${t}
3Name: ${W(r)}
4Error:`,s)}}function si(t){const e="console";ee(e,t),te(e,ii)}function ii(){"console"in k&&ks.forEach(function(t){t in k.console&&A(k.console,t,function(e){return ln[t]=e,function(...n){F("console",{args:n,level:t});const s=ln[t];s&&s.apply(k.console,n)}})})}const ie=k,ai=1e3;let vn,wt,kt;function oi(t){const e="dom";ee(e,t),te(e,ci)}function ci(){if(!ie.document)return;const t=F.bind(null,"dom"),e=bn(t,!0);ie.document.addEventListener("click",e,!1),ie.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=ie[n]&&ie[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(A(r,"addEventListener",function(s){return function(i,a,o){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},d=u[i]=u[i]||{refCount:0};if(!d.handler){const f=bn(t);d.handler=f,s.call(this,i,f,o)}d.refCount++}catch{}return s.call(this,i,a,o)}}),A(r,"removeEventListener",function(s){return function(i,a,o){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},d=u[i];d&&(d.refCount--,d.refCount<=0&&(s.call(this,i,d.handler,o),d.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,a,o)}}))})}function ui(t){if(t.type!==wt)return!1;try{if(!t.target||t.target._sentryId!==kt)return!1}catch{}return!0}function di(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function bn(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=li(n);if(di(n.type,r))return;Ie(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ie(r,"_sentryId",Et());
4const s=n.type==="keypress"?"input":n.type;ui(n)||(t({event:n,name:s,global:e}),wt=n.type,kt=r?r._sentryId:void 0),clearTimeout(vn),vn=ie.setTimeout(()=>{kt=void 0,wt=void 0},ai)}}function li(t){try{return t.target}catch{return null}}const ze=er();function pr(){if(!("fetch"in ze))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Nt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function fi(){if(typeof EdgeRuntime=="string")return!0;if(!pr())return!1;if(Nt(ze.fetch))return!0;let t=!1;const e=ze.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Nt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Bt&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Mu(){return"ReportingObserver"in ze}function mr(t){const e="fetch";ee(e,t),te(e,pi)}function pi(){fi()&&A(k,"fetch",function(t){return function(...e){const{method:n,url:r}=mi(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return F("fetch",{...s}),t.apply(k,e).then(i=>{const a={...s,endTimestamp:Date.now(),response:i};return F("fetch",a),i},i=>{const a={...s,endTimestamp:Date.now(),error:i};throw F("fetch",a),i})}})}function Ot(t,e){return!!t&&typeof t=="object"&&!!t[e]}function In(t){return typeof t=="string"?t:t?Ot(t,"url")?t.url:t.toString?t.toString():"":""}function mi(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:In(n),method:Ot(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:In(e),method:Ot(e,"method")?String(e.method).toUpperCase():"GET"}}let De=null;function hr(t){const e="error";ee(e,t),te(e,hi)}function hi(){De=k.onerror,k.onerror=function(t,e,n,r,s){return F("error",{column:r,error:s,line:n,msg:t,url:e}),De&&!De.__SENTRY_LOADER__?De.apply(this,arguments):!1},k.onerror.__SENTRY_INSTRUMENTED__=!0}let Fe=null;function gr(t){const e="unhandledrejection";ee(e,t),te(e,gi)}function gi(){Fe=k.onunhandledrejection,k.onunhandledrejection=function(t){return F("unhandledrejection",t),Fe&&!Fe.__SENTRY_LOADER__?Fe.apply(this,arguments):!0},k.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Me=er();function _i(){const t=Me.chrome,e=t&&t.app&&t.app.runtime,n="history"in Me&&!!Me.history.pushState&&!!Me.history.replaceState;return!e&&n}const ye=k;let Le;function Vt(t){const e="history";ee(e,t),te(e,yi)}function yi(){if(!_i())return;const t=ye.onpopstate;ye.onpopstate=function(...n){const r=ye.location.href,s=Le;if(Le=r,F("history",{from:s,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Le,a=String(s);Le=a,F("history",{from:i,to:a})}return n.apply(this,r)}}A(ye.history,"pushState",e),A(ye.history,"replaceState",e)}const Ti=k,ae="__sentry_xhr_v3__";function _r(t){const e="xhr";ee(e,t),te(e,Ei)}function Ei(){if(!Ti.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;A(t,"open",function(e){return function(...n){const r=Date.now(),s=ue(n[0])?n[0].toUpperCase():void 0,i=Si(n[1]);if(!s||!i)return e.apply(this,n);this[ae]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const o=this[ae];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const c={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};F("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?A(this,"onreadystatechange",function(o){return function(...c){return a(),o.apply(this,c)}}):this.addEventListener("readystatechange",a),A(this,"setRequestHeader",function(o){return function(...c){const[u,d]=c,f=this[ae];return f&&ue(u)&&ue(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,c)}}),e.apply(this,n)}}),A(t,"send",function(e){return function(...n){const r=this[ae];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return F("xhr",s),e.apply(this,n)}})}function Si(t){if(ue(t))return t;try{return t.toString()}catch{}}function vi(t){const e=[];function n(){return t===void 0||e.length<t}function r(a){return e.splice(e.indexOf(a),1)[0]}function s(a){if(!n())return jt(new U("Not adding Promise because buffer limit was reached."));const o=a();return e.indexOf(o)===-1&&e.push(o),o.then(()=>r(o)).then(null,()=>r(o).then(null,()=>{})),o}function i(a){return new qt((o,c)=>{let u=e.length;if(!u)return o(!0);const d=setTimeout(()=>{a&&a>0&&o(!1)},a);e.forEach(f=>{de(f).then(()=>{--u||(clearTimeout(d),o(!0))},c)})})}return{$:e,add:s,drain:i}}function V(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}
4function Lu(t){return t.split(/[\?#]/,1)[0]}function Hu(t){return t.split(/\\?\//).filter(e=>e.length>0&&e!==",").length}const bi=["fatal","error","warning","log","info","debug"];function Ii(t){return t==="warn"?"warning":bi.includes(t)?t:"log"}function ne(t,e=[]){return[t,e]}function Ri(t,e){const[n,r]=t;return[n,[...r,e]]}function At(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function Uu(t,e){return At(t,(n,r)=>e.includes(r))}function $t(t,e){return(e||new TextEncoder).encode(t)}function wi(t,e){const[n,r]=t;let s=JSON.stringify(n);function i(a){typeof s=="string"?s=typeof a=="string"?s+a:[$t(s,e),a]:s.push(typeof a=="string"?$t(a,e):a)}for(const a of r){const[o,c]=a;if(i(`
5${JSON.stringify(o)}
6`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(Ns(c))}i(u)}}return typeof s=="string"?s:ki(s)}function ki(t){const e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function Bu(t,e,n){let r=typeof t=="string"?e.encode(t):t;function s(c){const u=r.subarray(0,c);return r=r.subarray(c+1),u}function i(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(s(c)))}const a=i(),o=[];for(;r.length;){const c=i(),u=typeof c.length=="number"?c.length:void 0;o.push([c,u?s(u):i()])}return[a,o]}function Ni(t,e){const n=typeof t.data=="string"?$t(t.data,e):t.data;return[q({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Oi={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Rn(t){return Oi[t]}function yr(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Ai(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Z(r)},...s&&{trace:q({...s})}}}function $i(t,e,n){const r=[{type:"client_report"},{timestamp:Os(),discarded_events:t}];return ne(e?{dsn:e}:{},[r])}const Ci=60*1e3;function xi(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Ci:r-e}function Pi(t,e){return t[e]||t.all||0}function Di(t,e,n=Date.now()){return Pi(t,e)>n}function Fi(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const o of i.trim().split(",")){const[c,u,,,d]=o.split(":",5),f=parseInt(c,10),m=(isNaN(f)?60:f)*1e3;if(!u)s.all=r+m;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+m):s[p]=r+m}else a?s.all=r+xi(a,r):e===429&&(s.all=r+60*1e3);return s}function Tr(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...a)=>n.call(e,...a)),e=void 0)}return n}function re(t){return(t||M()).getScope().getTransaction()}const ju=As;let wn=!1;function Mi(){wn||(wn=!0,hr(Ct),gr(Ct))}function Ct(){const t=re();if(t){const e="internal_error";h&&l.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}Ct.tag="sentry_tracingErrorCallback";var kn;(function(t){const e="ok";t.Ok=e;const n="deadline_exceeded";t.DeadlineExceeded=n;const r="unauthenticated";t.Unauthenticated=r;const s="permission_denied";t.PermissionDenied=s;const i="not_found";t.NotFound=i;const a="resource_exhausted";t.ResourceExhausted=a;const o="invalid_argument";t.InvalidArgument=o;const c="unimplemented";t.Unimplemented=c;const u="unavailable";t.Unavailable=u;const d="internal_error";t.InternalError=d;const f="unknown_error";t.UnknownError=f;const m="cancelled";t.Cancelled=m;const p="already_exists";t.AlreadyExists=p;const g="failed_precondition";t.FailedPrecondition=g;const y="aborted";t.Aborted=y;const O="out_of_range";t.OutOfRange=O;const S="data_loss";t.DataLoss=S})(kn||(kn={}));function Er(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const qu=Er;function Jt(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=Er(e);n!=="unknown_error"&&t.setStatus(n)}function Qt(t,e,n=()=>{}){let r;try{r=t()}catch(s){throw e(s),n(),s}return Li(r,e,n)}function Li(t,e,n){return tr(t)?t.then(r=>(n(),r),r=>{throw e(r),n(),r}):(n(),t)}function pe(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=R(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Gu(t,e,n=()=>{},r=()=>{}){const s=M(),i=Y(),a=i.getSpan(),o=nt(t),c=tt(s,{parentSpan:a,spanContext:o,forceTransaction:!1,scope:i});return i.setSpan(c),Qt(()=>e(c),u=>{c&&c.setStatus("internal_error"),n(u,c)},()=>{c&&c.end(),i.setSpan(a),r()})}function Wu(t,e){const n=nt(t);return Gt(()=>Je(t.scope,r=>{const s=M(),i=r.getSpan(),o=t.onlyIfParent&&!i?void 0:tt(s,{parentSpan:i,spanContext:n,forceTransaction:t.forceTransaction,scope:r});return Qt(()=>
6e(o),()=>{if(o){const{status:c}=C(o);(!c||c==="ok")&&o.setStatus("internal_error")}},()=>o&&o.end())}))}function Yu(t,e){const n=nt(t);return Gt(()=>Je(t.scope,r=>{const s=M(),i=r.getSpan(),o=t.onlyIfParent&&!i?void 0:tt(s,{parentSpan:i,spanContext:n,forceTransaction:t.forceTransaction,scope:r});function c(){o&&o.end()}return Qt(()=>e(o,c),()=>{if(o&&o.isRecording()){const{status:u}=C(o);(!u||u==="ok")&&o.setStatus("internal_error")}})}))}function Sr(t){if(!pe())return;const e=nt(t),n=M(),r=t.scope?t.scope.getSpan():le();if(t.onlyIfParent&&!r)return;const a=(t.scope||Y()).clone();return tt(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:a})}function le(){return Y().getSpan()}const zu=({sentryTrace:t,baggage:e},n)=>{const r=Y(),{traceparentData:s,dynamicSamplingContext:i,propagationContext:a}=$s(t,e);r.setPropagationContext(a),h&&s&&l.log(`[Tracing] Continuing trace ${s.traceId}.`);const o={...s,metadata:q({dynamicSamplingContext:i})};return n?Gt(()=>n(o)):o};function tt(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:s}){if(!pe())return;const i=Qe();let a;if(e&&!r)a=e.startChild(n);else if(e){const o=Re(e),{traceId:c,spanId:u}=e.spanContext(),d=Cs(e);a=t.startTransaction({traceId:c,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:c,parentSpanId:u,sampled:d}={...i.getPropagationContext(),...s.getPropagationContext()};a=t.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return s.setSpan(a),Hi(a,s,i),a}function nt(t){if(t.startTime){const e={...t};return e.startTimestamp=Ze(t.startTime),delete e.startTime,e}return t}const vr="_sentryScope",br="_sentryIsolationScope";function Hi(t,e,n){t&&(Ie(t,br,n),Ie(t,vr,e))}function Ui(t){return{scope:t[vr],isolationScope:t[br]}}let Ee;function Ir(t){return Ee?Ee.get(t):void 0}function Rr(t){const e=Ir(t);if(!e)return;const n={};for(const[,[r,s]]of e)n[r]||(n[r]=[]),n[r].push(q(s));return n}function Xu(t,e,n,r,s,i){const a=le();if(a){const o=Ir(a)||new Map,c=`${t}:${e}@${r}`,u=o.get(i);if(u){const[,d]=u;o.set(i,[c,{min:Math.min(d.min,n),max:Math.max(d.max,n),count:d.count+=1,sum:d.sum+=n,tags:d.tags}])}else o.set(i,[c,{min:n,max:n,count:1,sum:n,tags:s}]);Ee||(Ee=new WeakMap),Ee.set(a,o)}}const j="sentry.source",oe="sentry.sample_rate",He="sentry.op",ce="sentry.origin",Bi="profile_id";class wr{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class rt{constructor(e={}){this._traceId=e.traceId||Et(),this._spanId=e.spanId||Et().substring(16),this._startTime=e.startTimestamp||nr(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[ce]:e.origin||"manual",[He]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[He]}set op(e){this.setAttribute(He,e)}get origin(){return this._attributes[ce]}set origin(e){this.setAttribute(ce,e)}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?xs:Ps}}startChild(e){const n=new rt({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=St(this);if(n.transaction=r,h&&r){const s=e&&e.op||"< unknown op >",i=C(n).description||"< unknown name >",a=r.spanContext().spanId,o=`[Tracing] Starting '${s}' span on transaction '${i}' (${a}).`;l.log(o),this._logMessage=o}return n}setTag(e,n){return this.tags={...this.tags,[e]:n},this}setData(e,n){return this.data={...this.data,[e]:n},this}setAttribute(e,n){n===void 0?delete this._attributes[e]:this._attributes[e]=n}setAttributes(e){Object.keys(e).forEach(n=>this.setAttribute(n,e[n]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Jt(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const n=St(this);if(h&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&l.log(r.replace("Starting","Finishing"))}this._endTime=Ze(e)}toTraceparent(){return et(this)}toContext(){return q({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return rr(this)}getSpanJSON(){return q({data:this._getData(),description:this._name,op:this._attributes[He],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ce],_metrics_summary:Rr(this),profile_id:this._attributes[Bi],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
6toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:n}=this,r=Object.keys(e).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?{...e,...n}:r?e:n}}class kr extends rt{constructor(e,n){super(e),this._contexts={},this._hub=n||M(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[j]&&{source:this._attributes[j]},...this._attributes[oe]&&{sampleRate:this._attributes[oe]}}}set metadata(e){this._metadata=e}setName(e,n="custom"){this._name=e,this.setAttribute(j,n)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new wr(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const n=Ze(e),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const e=super.toContext();return q({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Re(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(h&&l.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){h&&l.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&C(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>C(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,m)=>f>m?f:m)}const{scope:s,isolationScope:i}=Ui(this),{metadata:a}=this,{source:o}=a,c={contexts:{...this._contexts,trace:rr(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:s,capturedSpanIsolationScope:i,...q({dynamicSamplingContext:Re(this)})},_metrics_summary:Rr(this),...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(h&&l.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),h&&l.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Ge={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},ji="finishReason",se=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class qi extends wr{constructor(e,n,r,s){super(s),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const n=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),n.apply(e,r)),C(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Gi extends kr{constructor(e,n,r=Ge.idleTimeout,s=Ge.finalTimeout,i=Ge.heartbeatInterval,a=!1,o=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=se[4],this._autoFinishAllowed=!o,a&&(h&&l.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=se[3],this.end())},this._finalTimeout)}end(e){const n=Ze(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(ji,this._finishReason),this.spanRecorder){h&&l.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;C(r).timestamp||(r.setStatus("cancelled"),r.end(n),h&&l.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:i}=C(r),a=s&&s<n,o=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&s&&i-s<o;if(h){const u=JSON.stringify(r,void 0,2);a?c||l.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):l.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return a&&c}),h&&l.log("[Tracing] flushing IdleTransaction")}else h&&l.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new qi(n,r,this.spanContext().spanId,e),h&&l.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=se[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(h&&l.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=se[1],this.end(e))},this._idleTimeout)}
6_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),h&&l.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,h&&l.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(h&&l.log(`[Tracing] popActivity ${e}`),delete this.activities[e],h&&l.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=nr();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=se[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(h&&l.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=se[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){h&&l.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Nr(t,e,n){if(!pe(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(oe,Number(t.sampled)),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setAttribute(oe,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate<"u"?(r=e.tracesSampleRate,t.setAttribute(oe,Number(r))):(r=1,t.setAttribute(oe,r)),Or(r)?r?(t.sampled=Math.random()<r,t.sampled?(h&&l.log(`[Tracing] starting ${t.op} transaction - ${C(t).description}`),t):(h&&l.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(h&&l.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):(h&&l.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Or(t){return Ds(t)||!(typeof t=="number"||typeof t=="boolean")?(h&&l.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?(h&&l.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Wi(){const e=this.getScope().getSpan();return e?{"sentry-trace":et(e)}:{}}function Yi(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=t.instrumenter||"sentry";s!==i&&(h&&l.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.
7The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),t.sampled=!1);let a=new kr(t,this);return a=Nr(a,r,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...e}),a.isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function Ar(t,e,n,r,s,i,a,o=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let d=new Gi(e,t,n,r,a,s,o);return d=Nr(d,u,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...i}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",d),d}function zi(){const t=Fs();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Yi),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Wi),Mi())}function Xi(t,e,n){const r=re();r&&r.setMeasurement(t,e,n)}function Ki(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function Vi(t,e,n,r){const s=yr(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Z(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ne(i,[a])}function Ji(t,e,n,r){const s=yr(n),i=t.type&&t.type!=="replay_event"?t.type:"event";Ki(t,n&&n.sdk);const a=Ai(t,s,r,e);return delete t.sdkProcessingMetadata,ne(a,[[{type:i},t]])}const Qi="7";function $r(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Zi(t){return`${$r(t)}${t.projectId}/envelope/`}function ea(t,e){return Ms({sentry_key:t.publicKey,sentry_version:Qi,...e&&{sentry_client:`${e.name}/${e.version}`}})}function ta(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${Zi(t)}?${ea(t,r)}`}function na(t,e){const n=fr(t);if(!n)return"";const r=`${$r(n)}embed/error-page/`;let s=`dsn=${Z(n)}`;for(const i in e)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const a=e.user;if(!a)continue;a.name&&(s+=`&name=${encodeURIComponent(a.name)}`),a.email&&(s+=`&email=${encodeURIComponent(a.email)}`)}else s+=`&${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`;return`${r}?${s}`}const Nn=[];function ra(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function sa(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=Hs(n(e)):r=e;const s=ra(r),i=aa(s,a=>a.name==="Debug");if(i!==-1){const[a]=s.splice(i,1);s.push(a)}return s}function ia(t,e){const n={};return e.forEach(r=>{r&&Cr(t,r,n)}),n}function On(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Cr(t,e,n){if(n[e.name]){h&&l.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,Nn.indexOf(e.name)===-1&&(e.setupOnce(Ls,M),Nn.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((i,a)=>r(i,a,t),{id:e.name});t.addEventProcessor(s)}h&&l.log(`Integration installed: ${e.name}`)}function Ku(t){const e=R();if(!e||!e.addIntegration){h&&l.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function aa(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function z(t,e){return Object.assign(function(...r){return e(...r)},{id:t})}function Vu(t){return t}function Ju(t,e,n,r){const s=Object.entries(q(r)).sort((i,a)=>i[0].localeCompare(a[0]));return`${t}${e}${n}${s}`}function Qu(t){let e=0;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e&=e}return e>>>0}function oa(t){let e="";for(const n of t){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([i,a])=>`${i}:${a}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
8`}return e}function Zu(t){return t.replace(/[^\w]+/gi,"_")}function ed(t){return t.replace(/[^\w\-.]+/gi,"_")}function ca(t){return t.replace(/[^\w\-./]+/gi,"")}const ua=[[`
9`,"\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function da(t){for(const[e,n]of ua)if(t===e)return n;return t}function la(t){return[...t].reduce((e,n)=>e+da(n),"")}function td(t){const e={};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=ca(n);e[r]=la(String(t[n]))}return e}function fa(t,e,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=Z(e));const i=pa(t);return ne(s,[i])}function pa(t){const e=oa(t);return[{type:"statsd",length:e.length},e]}const An="Not capturing exception because it's already been captured.";class ma{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=fr(e.dsn):h&&l.warn("No DSN provided, client will not send events."),this._dsn){const n=ta(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:n})}}captureException(e,n,r){if(fn(e)){h&&l.log(An);return}let s=n&&n.event_id;return this._process(this.eventFromException(e,n).then(i=>this._captureEvent(i,n,r)).then(i=>{s=i}
9)),s}captureMessage(e,n,r,s){let i=r&&r.event_id;const a=sr(e)?e:String(e),o=Wt(e)?this.eventFromMessage(a,n,r):this.eventFromException(e,r);return this._process(o.then(c=>this._captureEvent(c,r,s)).then(c=>{i=c})),i}captureEvent(e,n,r){if(n&&n.originalException&&fn(n.originalException)){h&&l.log(An);return}let s=n&&n.event_id;const a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,a||r).then(o=>{s=o})),s}captureSession(e){typeof e.release!="string"?h&&l.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),pn(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(s=>r&&s))):de(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return h&&l.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const n=this._integrations[e.name];Cr(this,e,this._integrations),n||On(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Ji(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Ri(r,Ni(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){const n=Vi(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const s=`${e}:${n}`;h&&l.log(`Adding outcome: "${s}"`),this._outcomes[s]=this._outcomes[s]+1||1}}captureAggregateMetrics(e){h&&l.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=fa(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=ia(this,e),On(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,n){let r=!1,s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const c of i){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const a=e.status==="ok";(a&&e.errors===0||a&&r)&&(pn(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new qt(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,e&&r>=e&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s=Qe()){const i=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a.length>0&&(n.integrations=a),this.emit("preprocessEvent",e,n),Us(i,e,n,r,this,s).then(o=>{if(o===null)return o;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&c){const{traceId:d,spanId:f,parentSpanId:m,dsc:p}=c;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:m},...o.contexts};const g=p||Yt(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:g,...o.sdkProcessingMetadata}}return o})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(s=>s.event_id,s=>{if(h){const i=s;i.logLevel==="log"?l.log(i.message):l.warn(i)}})}_processEvent(e,n,r){const s=this.getOptions(),{sampleRate:i}=s,a=Pr(e),o=xr(e),c=e.type||"error",u=`before send for type \`${c}\``;if(o&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),jt(new 
9U(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d=c==="replay_event"?"replay":c,m=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,m).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",d,e),new U("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const y=ga(s,p,n);return ha(y,u)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",d,e),new U(`${u} returned \`null\`, will not send event.`,"log");const g=r&&r.getSession();!a&&g&&this._updateSessionFromEvent(g,p);const y=p.transaction_info;if(a&&y&&p.transaction!==e.transaction){const O="custom";p.transaction_info={...y,source:O}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof U?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new U(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${p}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,n=>{h&&l.error("Error while sending event:",n)});h&&l.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:e[n]}})}}function ha(t,e){const n=`${e} must return \`null\` or a valid event.`;if(tr(t))return t.then(r=>{if(!vt(r)&&r!==null)throw new U(n);return r},r=>{throw new U(`${e} rejected with ${r}`)});if(!vt(t)&&t!==null)throw new U(n);return t}function ga(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;return xr(e)&&r?r(e,n):Pr(e)&&s?s(e,n):e}function xr(t){return t.type===void 0}function Pr(t){return t.type==="transaction"}function nd(t){const e=R();!e||!e.addEventProcessor||e.addEventProcessor(t)}function _a(t,e){e.debug===!0&&(h?l.enable():Zn(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Y().update(e.initialScope);const r=new t(e);ya(r),Ta(r)}function ya(t){const n=M().getStackTop();n.client=t,n.scope.setClient(t)}function Ta(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const Ea=30;function Dr(t,e,n=vi(t.bufferSize||Ea)){let r={};const s=a=>n.drain(a);function i(a){const o=[];if(At(a,(f,m)=>{const p=Rn(m);if(Di(r,p)){const g=$n(f,m);t.recordDroppedEvent("ratelimit_backoff",p,g)}else o.push(f)}),o.length===0)return de();const c=ne(a[0],o),u=f=>{At(c,(m,p)=>{const g=$n(m,p);t.recordDroppedEvent(f,Rn(p),g)})},d=()=>e({body:wi(c,t.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&h&&l.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Fi(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof U)return h&&l.error("Skipped sending event because buffer is full."),u("queue_overflow"),de();throw f})}return i.__sentry__baseTransport__=!0,{send:i,flush:s}}function $n(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Sa(t,e){const n={sent_at:new Date().toISOString()};e&&(n.dsn=Z(e));const r=t.map(va);return ne(n,r)}function va(t){return[{type:"span"},t]}function ba(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:mn})),version:mn}),t._metadata=s}const Ia=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Ra=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Fr="InboundFilters",wa=(t={})=>({name:Fr,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),i=ka(t,s);return Na(e,i)?null:e}}),Mr=wa,rd=z(Fr,Mr);function ka(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ia],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Ra],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Na(t,e){return e.ignoreInternal&&Pa(t)?(h&&l.warn(`Event dropped due to being internal Sentry Error.
11Event: ${G(t)}`),!0):Oa(t,e.ignoreErrors)?(h&&l.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12Event: ${G(t)}`),!0):Aa(t,e.ignoreTransactions)?(h&&l.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
13Event: ${G(t)}`),!0):$a(t,e.denyUrls)?(h&&l.warn(`Event dropped due to being matched by \`denyUrls\` option.
14Event: ${G(t)}.
15Url: ${Xe(t)}`),!0):Ca(t,e.allowUrls)?!1:(h&&l.warn(`Event dropped due to not being matched by \`allowUrls\` option.
16Event: ${G(t)}.
17Url: ${Xe(t)}`),!0)}function Oa(t,e){return t.type||!e||!e.length?!1:xa(t).some(n=>Oe(n,e))}function Aa(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Oe(n,e):!1}function $a(t,e){if(!e||!e.length)return!1;const n=Xe(t);return n?Oe(n,e):!1}function Ca(t,e){if(!e||!e.length)return!0;const n=Xe(t);return n?Oe(n,e):!0}function xa(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),h&&e.length===0&&l.error(`Could not extract message for event ${G(t)}`),e}function Pa(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Da(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Xe(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Da(e):null}catch{return h&&l.error(`Cannot extract url for event ${G(t)}`),null}}let Cn;const Lr="FunctionToString",xn=new WeakMap,Fa=()=>({name:Lr,setupOnce(){Cn=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=zt(this),n=xn.has(R())&&e!==void 0?e:this;return Cn.apply(n,t)}}catch{}},setup(t){xn.set(t,!0)}}),Hr=Fa,sd=z(Lr,Hr),b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_=k;function Ma(){_.document?_.document.addEventListener("visibilitychange",()=>{const t=re();if(_.document.hidden&&t){const e="cancelled",{op:n,status:r}=C(t);b&&l.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):b&&l.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Ae=(t,e,n)=>{let r,s;return i=>{e.value>=0&&(i||n)&&(s=e.value-(r||0),(s||r===void 0)&&(r=e.value,e.delta=s,t(e)))}},La=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ha=()=>{const t=_.performance.timing,e=_.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},st=()=>_.__WEB_VITALS_POLYFILL__?_.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Ha()):_.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Zt=()=>{const t=st();return t&&t.activationStart||0},$e=(t,e)=>{const n=st();let r="navigate";return n&&(_.document&&_.document.prerendering||Zt()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:La(),navigationType:r}},me=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{e(s.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Ce=(t,e)=>{const n=r=>{(r.type==="pagehide"||_.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};_.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Ua=(t,e={})=>{const n=$e("CLS",0);let r,s=0,i=[];const a=c=>
17{c.forEach(u=>{if(!u.hadRecentInput){const d=i[0],f=i[i.length-1];s&&i.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(s+=u.value,i.push(u)):(s=u.value,i=[u]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},o=me("layout-shift",a);if(o){r=Ae(t,n,e.reportAllChanges);const c=()=>{a(o.takeRecords()),r(!0)};return Ce(c),c}};let Ke=-1;const Ba=()=>{_.document&&_.document.visibilityState&&(Ke=_.document.visibilityState==="hidden"&&!_.document.prerendering?0:1/0)},ja=()=>{Ce(({timeStamp:t})=>{Ke=t},!0)},en=()=>(Ke<0&&(Ba(),ja()),{get firstHiddenTime(){return Ke}}),qa=t=>{const e=en(),n=$e("FID");let r;const s=o=>{o.startTime<e.firstHiddenTime&&(n.value=o.processingStart-o.startTime,n.entries.push(o),r(!0))},i=o=>{o.forEach(s)},a=me("first-input",i);r=Ae(t,n),a&&Ce(()=>{i(a.takeRecords()),a.disconnect()},!0)};let Ur=0,ht=1/0,Ue=0;const Ga=t=>{t.forEach(e=>{e.interactionId&&(ht=Math.min(ht,e.interactionId),Ue=Math.max(Ue,e.interactionId),Ur=Ue?(Ue-ht)/7+1:0)})};let xt;const Wa=()=>xt?Ur:performance.interactionCount||0,Ya=()=>{"interactionCount"in performance||xt||(xt=me("event",Ga,{type:"event",buffered:!0,durationThreshold:0}))},Br=()=>Wa(),Pn=10,B=[],gt={},Dn=t=>{const e=B[B.length-1],n=gt[t.interactionId];if(n||B.length<Pn||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};gt[r.id]=r,B.push(r)}B.sort((r,s)=>s.latency-r.latency),B.splice(Pn).forEach(r=>{delete gt[r.id]})}},za=()=>{const t=Math.min(B.length-1,Math.floor(Br()/50));return B[t]},Xa=(t,e)=>{e=e||{},Ya();const n=$e("INP");let r;const s=a=>{a.forEach(c=>{c.interactionId&&Dn(c),c.entryType==="first-input"&&!B.some(d=>d.entries.some(f=>c.duration===f.duration&&c.startTime===f.startTime))&&Dn(c)});const o=za();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},i=me("event",s,{durationThreshold:e.durationThreshold||40});r=Ae(t,n,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Ce(()=>{s(i.takeRecords()),n.value<0&&Br()>0&&(n.value=0,n.entries=[]),r(!0)}))},Fn={},Ka=t=>{const e=en(),n=$e("LCP");let r;const s=a=>{const o=a[a.length-1];if(o){const c=Math.max(o.startTime-Zt(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[o],r())}},i=me("largest-contentful-paint",s);if(i){r=Ae(t,n);const a=()=>{Fn[n.id]||(s(i.takeRecords()),i.disconnect(),Fn[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{_.document&&addEventListener(o,a,{once:!0,capture:!0})}),Ce(a,!0),a}},Pt=t=>{_.document&&(_.document.prerendering?addEventListener("prerenderingchange",()=>Pt(t),!0):_.document.readyState!=="complete"?addEventListener("load",()=>Pt(t),!0):setTimeout(t,0))},Va=(t,e)=>{e=e||{};const n=$e("TTFB"),r=Ae(t,n,e.reportAllChanges);Pt(()=>{const s=st();if(s){if(n.value=Math.max(s.responseStart-Zt(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},Se={},Ve={};let jr,qr,Gr,Wr,Yr;function Ja(t,e=!1){return xe("cls",t,no,jr,e)}function Qa(t,e=!1){return xe("lcp",t,so,Gr,e)}function Za(t){return xe("ttfb",t,io,Wr)}function eo(t){return xe("fid",t,ro,qr)}function to(t){return xe("inp",t,ao,Yr)}function ke(t,e){return zr(t,e),Ve[t]||(oo(t),Ve[t]=!0),Xr(t,e)}function he(t,e){const n=Se[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(s){b&&l.error(`Error while triggering instrumentation handler.
18Type: ${t}
19Name: ${W(r)}
20Error:`,s)}}function no(){return Ua(t=>{he("cls",{metric:t}),jr=t},{reportAllChanges:!0})}function ro(){return qa(t=>{he("fid",{metric:t}),qr=t})}function so(){return Ka(t=>{he("lcp",{metric:t}),Gr=t})}function io(){return Va(t=>{he("ttfb",{metric:t}),Wr=t})}function ao(){return Xa(t=>{he("inp",{metric:t}),Yr=t})}function xe(t,e,n,r,s=!1){zr(t,e);let i;return Ve[t]||(i=n(),Ve[t]=!0),r&&e({metric:r}),Xr(t,e,s?i:void 0)}function oo(t){const e={};t==="event"&&(e.durationThreshold=0),me(t,n=>{he(t,{entries:n})},e)}function zr(t,e){Se[t]=Se[t]||[],Se[t].push(e)}function Xr(t,e,n){return()=>{n&&n();const r=Se[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function _t(t){return typeof t=="number"&&isFinite(t)}
20function fe(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}const co=2147483647;function w(t){return t/1e3}function tn(){return _&&_.addEventListener&&_.performance}let Mn=0,I={},H,ve;function uo(){const t=tn();if(t&&D){t.mark&&_.performance.mark("sentry-tracing-init");const e=go(),n=mo(),r=ho(),s=_o();return()=>{e(),n(),r(),s()}}return()=>{}}function lo(){ke("longtask",({entries:t})=>{for(const e of t){const n=re();if(!n)return;const r=w(D+e.startTime),s=w(e.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function fo(){ke("event",({entries:t})=>{for(const e of t){const n=re();if(!n)return;if(e.name==="click"){const r=w(D+e.startTime),s=w(e.duration),i={description:we(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},a=ir(e.target);a&&(i.attributes={"ui.component_name":a}),n.startChild(i)}}})}function po(t,e){if(tn()&&D){const r=yo(t,e);return()=>{r()}}return()=>{}}function mo(){return Ja(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(b&&l.log("[Measurements] Adding CLS"),I.cls={value:t.value,unit:""},ve=e)},!0)}function ho(){return Qa(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(b&&l.log("[Measurements] Adding LCP"),I.lcp={value:t.value,unit:"millisecond"},H=e)},!0)}function go(){return eo(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=w(D),r=w(e.startTime);b&&l.log("[Measurements] Adding FID"),I.fid={value:t.value,unit:"millisecond"},I["mark.fid"]={value:n+r,unit:"second"}})}function _o(){return Za(({metric:t})=>{t.entries[t.entries.length-1]&&(b&&l.log("[Measurements] Adding TTFB"),I.ttfb={value:t.value,unit:"millisecond"})})}const Ln={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"};function yo(t,e){return to(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find($=>$.duration===n.value&&Ln[$.name]!==void 0),s=R();if(!r||!s)return;const i=Ln[r.name],a=s.getOptions(),o=w(D+r.startTime),c=w(n.value),u=r.interactionId!==void 0?t[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:m,user:p,replayId:g}=u,y=p!==void 0?p.email||p.id||p.ip_address:void 0,O=m!==void 0?m.getProfileId():void 0,S=new rt({startTimestamp:o,endTimestamp:o+c,op:`ui.interaction.${i}`,name:we(r.target),attributes:{release:a.release,environment:a.environment,transaction:d,...y!==void 0&&y!==""?{user:y}:{},...O!==void 0?{profile_id:O}:{},...g!==void 0?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),v=ko(f,a,e);if(v&&Math.random()<v){const $=S?Sa([S],s.getDsn()):void 0,X=s&&s.getTransport();X&&$&&X.send($).then(null,_e=>{b&&l.error("Error while sending interaction:",_e)});return}})}function To(t){const e=tn();if(!e||!_.performance.getEntries||!D)return;b&&l.log("[Tracing] Adding & adjusting spans using Performance API");const n=w(D),r=e.getEntries(),{op:s,start_timestamp:i}=C(t);if(r.slice(Mn).forEach(a=>{const o=w(a.startTime),c=w(a.duration);if(!(t.op==="navigation"&&i&&n+o<i))switch(a.entryType){case"navigation":{So(t,a,n);break}case"mark":case"paint":case"measure":{Eo(t,a,o,c,n);const u=en(),d=a.startTime<u.firstHiddenTime;a.name==="first-paint"&&d&&(b&&l.log("[Measurements] Adding FP"),I.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&d&&(b&&l.log("[Measurements] Adding FCP"),I.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{bo(t,a,a.name,o,c,n);break}}}),Mn=Math.max(r.length-1,0),Io(t),s==="pageload"){wo(I),["fcp","fp","lcp"].forEach(o=>{if(!I[o]||!i||n>=i)return;const c=I[o].value,u=n+w(c),d=Math.abs((u-i)*1e3),f=d-c;b&&l.log(`[Measurements] Normalized ${o} from ${c} to ${d} (${f})`),I[o].value=d});const a=I["mark.fid"];a&&I.fid&&(fe(t,{description:"first input delay",endTimestamp:a.value+w(I.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete I["mark.fid"]),"fcp"in I||delete I.cls,Object.keys(I).forEac
20h(o=>{Xi(o,I[o].value,I[o].unit)}),Ro(t)}H=void 0,ve=void 0,I={}}function Eo(t,e,n,r,s){const i=s+n,a=i+r;return fe(t,{description:e.name,endTimestamp:a,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function So(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Be(t,e,r,n)}),Be(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Be(t,e,"fetch",n,"cache","domainLookupStart"),Be(t,e,"domainLookup",n,"DNS"),vo(t,e,n)}function Be(t,e,n,r,s,i){const a=i?e[i]:e[`${n}End`],o=e[`${n}Start`];!o||!a||fe(t,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+w(o),endTimestamp:r+w(a)})}function vo(t,e,n){e.responseEnd&&(fe(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+w(e.requestStart),endTimestamp:n+w(e.responseEnd)}),fe(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+w(e.responseStart),endTimestamp:n+w(e.responseEnd)}))}function bo(t,e,n,r,s,i){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const a=V(n),o={};yt(o,e,"transferSize","http.response_transfer_size"),yt(o,e,"encodedBodySize","http.response_content_length"),yt(o,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(o["resource.render_blocking_status"]=e.renderBlockingStatus),a.protocol&&(o["url.scheme"]=a.protocol.split(":").pop()),a.host&&(o["server.address"]=a.host),o["url.same_origin"]=n.includes(_.location.origin);const c=i+r,u=c+s;fe(t,{description:n.replace(_.location.origin,""),endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:o})}function Io(t){const e=_.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),_t(n.rtt)&&(I["connection.rtt"]={value:n.rtt,unit:"millisecond"})),_t(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),_t(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function Ro(t){H&&(b&&l.log("[Measurements] Adding LCP Data"),H.element&&t.setTag("lcp.element",we(H.element)),H.id&&t.setTag("lcp.id",H.id),H.url&&t.setTag("lcp.url",H.url.trim().slice(0,200)),t.setTag("lcp.size",H.size)),ve&&ve.sources&&(b&&l.log("[Measurements] Adding CLS Data"),ve.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,we(e.node))))}function yt(t,e,n,r){const s=e[n];s!=null&&s<co&&(t[r]=s)}function wo(t){const e=st();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(b&&l.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function ko(t,e,n){if(!pe(e))return!1;let r;return t!==void 0&&typeof e.tracesSampler=="function"?r=e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:_.location}):t!==void 0&&t.sampled!==void 0?r=t.sampled:typeof e.tracesSampleRate<"u"?r=e.tracesSampleRate:r=1,Or(r)?r===!0?n:r===!1?0:r*n:(b&&l.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function No(t,e,n,r,s="auto.http.browser"){if(!pe()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const p=t.fetchData.__span;if(!p)return;const g=r[p];g&&($o(g,t),delete r[p]);return}const a=Y(),o=R(),{method:c,url:u}=t.fetchData,d=Ao(u),f=d?V(d).host:void 0,m=i?Sr({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":d,"server.address":f,[ce]:s},op:"http.client"}):void 0;if(m&&(t.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m),n(t.fetchData.url)&&o){const p=t.args[0];t.args[1]=t.args[1]||{};const g=t.args[1];g.headers=Oo(p,o,a,g,m)}return m}function Oo(t,e,n,r,s){const i=s||n.getSpan(),a=Qe(),{traceId:o,spanId:c,sampled:u,dsc:d}={...a.getPropagationContext(),...n.getPropagationContext()},f=i?et(i):ar(o,c,u),m=or(d||(i?Re(i):Yt(o,e,n))),p=r.headers||(typeof Request<"u"&&be(t,Request)?t.headers:void 0);if(p)if(typeof Headers<"u"&&be(p,Headers)){const g=new Headers(p);return g.append("sentry-trace",f),m&&g.append(bt,m),g}else if(Array.isArray(p)){const g=[...p,["sentry-trace",f]];
20return m&&g.push([bt,m]),g}else{const g="baggage"in p?p.baggage:void 0,y=[];return Array.isArray(g)?y.push(...g):g&&y.push(g),m&&y.push(m),{...p,"sentry-trace":f,baggage:y.length>0?y.join(","):void 0}}else return{"sentry-trace":f,baggage:m}}function Ao(t){try{return new URL(t).href}catch{return}}function $o(t,e){if(e.response){Jt(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus("internal_error");t.end()}const Dt=["localhost",/^\/(?!\/)/],Ft={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Dt,tracePropagationTargets:Dt};function Co(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:a}={traceFetch:Ft.traceFetch,traceXHR:Ft.traceXHR,...t},o=typeof i=="function"?i:d=>!0,c=d=>Fo(d,r||s),u={};e&&mr(d=>{const f=No(d,o,c,u);if(f){const m=Kr(d.fetchData.url),p=m?V(m).host:void 0;f.setAttributes({"http.url":m,"server.address":p})}a&&f&&Hn(f)}),n&&_r(d=>{const f=Mo(d,o,c,u);a&&f&&Hn(f)})}function xo(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Hn(t){const{url:e}=C(t).data||{};if(!e||typeof e!="string")return;const n=ke("resource",({entries:r})=>{r.forEach(s=>{xo(s)&&s.name.endsWith(e)&&(Do(s).forEach(a=>t.setAttribute(...a)),setTimeout(n))})})}function Po(t){let e="unknown",n="unknown",r="";for(const s of t){if(s==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}function L(t=0){return((D||performance.timeOrigin)+t)/1e3}function Do(t){const{name:e,version:n}=Po(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),D?[...r,["http.request.redirect_start",L(t.redirectStart)],["http.request.fetch_start",L(t.fetchStart)],["http.request.domain_lookup_start",L(t.domainLookupStart)],["http.request.domain_lookup_end",L(t.domainLookupEnd)],["http.request.connect_start",L(t.connectStart)],["http.request.secure_connection_start",L(t.secureConnectionStart)],["http.request.connection_end",L(t.connectEnd)],["http.request.request_start",L(t.requestStart)],["http.request.response_start",L(t.responseStart)],["http.request.response_end",L(t.responseEnd)]]:r}function Fo(t,e){return Oe(t,e||Dt)}function Mo(t,e,n,r){const s=t.xhr,i=s&&s[ae];if(!pe()||!s||s.__sentry_own_request__||!i)return;const a=e(i.url);if(t.endTimestamp&&a){const p=s.__sentry_xhr_span_id__;if(!p)return;const g=r[p];g&&i.status_code!==void 0&&(Jt(g,i.status_code),g.end(),delete r[p]);return}const o=Y(),c=Qe(),u=Kr(i.url),d=u?V(u).host:void 0,f=a?Sr({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":d,[ce]:"auto.http.browser"},op:"http.client"}):void 0;f&&(s.__sentry_xhr_span_id__=f.spanContext().spanId,r[s.__sentry_xhr_span_id__]=f);const m=R();if(s.setRequestHeader&&n(i.url)&&m){const{traceId:p,spanId:g,sampled:y,dsc:O}={...c.getPropagationContext(),...o.getPropagationContext()},S=f?et(f):ar(p,g,y),v=or(O||(f?Re(f):Yt(p,m,o)));Lo(s,S,v)}return f}function Lo(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(bt,n)}catch{}}function Kr(t){try{return new URL(t,_.location.origin).href}catch{return}}const Ho="BrowserTracing",Uo={...Ge,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ft},id=(t={})=>{const e=b?!!(t.tracePropagationTargets||t.tracingOrigins):!1;zi(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n={...Uo,...t},r=uo(),s={};n.enableInp&&po(s,n.interactionsSampleRate),n.enableLongTask&&lo(),n._experiments.enableInteractions&&fo();const i={name:void 0,context:void 0};function a(o){const c=M(),{beforeStartSpan:u,idleTimeout:d,finalTimeout:f,heartbeatInterval:m}=n,p=o.op==="pageload";let g;if(p){const v=p?Un("sentry-trace"):"",$=p?Un("baggage"):void 0,{traceId:X,dsc:_e,parentSpanId:bs,sampled:Is}=Bs(v,$);g={traceId:X,parentSpanId:bs,parentSampled:Is,...o,metadata:{...o.metadata,dynamicSamplingContext:_e},trimEnd:!0}}else g={trimEnd:!0,...o};const y=u?u(g):g;y.metadata=y.name!==g.name?{...y.metadata,source:"custom"}:y.metadata,i.name=y.name,i.context=y,y.sampled===!1&&b&&l.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),b&&l.log(`[Tracing] Starting ${y.op} transaction on scope`);const{location:O}=_,S=Ar(c,y,d,f,!0,{location:O},m,p);return p&&_.document&&(_.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(_.document.readyState)&&S.sendAutoFinishSignal()}),["interactive","complete"].includes(_.document.readyState)&&S.sendAutoFinishSignal()),S.registerBeforeFinishCallback(v=>{r(),To(v)}),S}return{name:Ho,setupOnce:()=>{}
20,afterAllSetup(o){const c=o.getOptions(),{markBackgroundSpan:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:m,enableHTTPTimings:p,_experiments:g}=n,y=c&&c.tracePropagationTargets,O=y||n.tracePropagationTargets;b&&e&&y&&l.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let S,v=_.location&&_.location.href;if(o.on&&(o.on("startNavigationSpan",$=>{S&&(b&&l.log(`[Tracing] Finishing current transaction with op: ${C(S).op}`),S.end()),S=a({op:"navigation",...$})}),o.on("startPageLoadSpan",$=>{S&&(b&&l.log(`[Tracing] Finishing current transaction with op: ${C(S).op}`),S.end()),S=a({op:"pageload",...$})})),n.instrumentPageLoad&&o.emit&&_.location){const $={name:_.location.pathname,startTimestamp:D?D/1e3:void 0,origin:"auto.pageload.browser",attributes:{[j]:"url"}};Vr(o,$)}n.instrumentNavigation&&o.emit&&_.location&&Vt(({to:$,from:X})=>{if(X===void 0&&v&&v.indexOf($)!==-1){v=void 0;return}if(X!==$){v=void 0;const _e={name:_.location.pathname,origin:"auto.navigation.browser",attributes:{[j]:"url"}};Jr(o,_e)}}),u&&Ma(),g.enableInteractions&&Bo(n,i),n.enableInp&&qo(s,i),Co({traceFetch:d,traceXHR:f,tracePropagationTargets:O,shouldCreateSpanForRequest:m,enableHTTPTimings:p})},options:n}};function Vr(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);const n=le();return(n&&C(n).op)==="pageload"?n:void 0}function Jr(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);const n=le();return(n&&C(n).op)==="navigation"?n:void 0}function Un(t){const e=js(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Bo(t,e){let n;const r=()=>{const{idleTimeout:s,finalTimeout:i,heartbeatInterval:a}=t,o="ui.action.click",c=re();if(c&&c.op&&["navigation","pageload"].includes(c.op)){b&&l.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name){b&&l.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}const{location:u}=_,d={name:e.name,op:o,trimEnd:!0,data:{[j]:e.context?Go(e.context):"url"}};n=Ar(M(),d,s,i,!0,{location:u},a)};["click"].forEach(s=>{_.document&&addEventListener(s,r,{once:!1,capture:!0})})}function jo(t){return"duration"in t}const Bn=10;function qo(t,e){const n=({entries:r})=>{const s=R(),i=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,o=re(),c=Y(),u=c!==void 0?c.getUser():void 0;r.forEach(d=>{if(jo(d)){const f=d.interactionId;if(f===void 0)return;const m=t[f],p=d.duration,g=d.startTime,y=Object.keys(t),O=y.length>0?y.reduce((S,v)=>t[S].duration<t[v].duration?S:v):void 0;if(d.entryType==="first-input"&&y.map(v=>t[v]).some(v=>v.duration===p&&v.startTime===g)||!f)return;if(m)m.duration=Math.max(m.duration,p);else if(y.length<Bn||O===void 0||p>t[O].duration){const S=e.name,v=e.context;S&&v&&(O&&Object.keys(t).length>=Bn&&delete t[O],t[f]={routeName:S,duration:p,parentContext:v,user:u,activeTransaction:o,replayId:a,startTime:g})}}})};ke("event",n),ke("first-input",n)}function Go(t){const e=t.attributes&&t.attributes[j],n=t.data&&t.data[j],r=t.metadata&&t.metadata.source;return e||n||r}const T=k;let Mt=0;function Qr(){return Mt>0}function Wo(){Mt++,setTimeout(()=>{Mt--})}function Q(t,e={},n){if(typeof t!="function")return t;try{const s=t.__sentry_wrapped__;if(s)return s;if(zt(t))return t}catch{return t}const r=function(){const s=Array.prototype.slice.call(arguments);try{const i=s.map(a=>Q(a,e));return t.apply(this,i)}catch(i){throw Wo(),Je(a=>{a.addEventProcessor(o=>(e.mechanism&&(It(o,void 0),Ye(o,e.mechanism)),o.extra={...o.extra,arguments:s},o)),cr(i)}),i}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}qs(r,t),Ie(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}const P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Zr(t,e){const n=nn(t,e),r={type:e&&e.name,value:Ko(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Yo(t,e,n,r){const s=R(),i=s&&s.getOptions().normalizeDepth,a={exception:{values:[{type:Kt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Qo(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Ws(e,i)}};if(n){const o=nn(t,n);o.length&&(a.exception.values[0].stacktrace={frames:o})}return a}function Tt(t,e){return{exception:{values:[Zr(t,e)]}}}function nn(t,e){const n=e.stacktrace||e.stack||"",r=Xo(e);try{return t(n,r)}catch{}return[]}const zo=/Minified React error #\d+;/i;function Xo(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(zo.test(t.message))return 1}return 0}function Ko(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Vo(t,e,n,r){const s=n&&n.syntheticException||void 0,i=rn(t,e,s,r);return Ye(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),de(i)}function Jo(t,e,n="info",r,s){const i=r&&r.syntheticException||void 0,a=Lt(t,e,i,s);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),de(a)}function rn(t,e,n,r,s){let i;if(Xt(e)&&e.error)return Tt(t,e.error);if(hn(e)||Gs(e)){const a=e;if("stack"in e)i=Tt(t,e);else{const o=a.name||(hn(a)?"DOMError":"DOMException"),c=a.message?`${o}: ${a.message}`:o;i=Lt(t,c,n,r),It(i,c)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return ur(e)?Tt(t,e):vt(e)||Kt(e)?(i=Yo(t,e,n,s),Ye(i,{synthetic:!0}),i):(i=Lt(t,e,n,r),It(i,`${e}`),Ye(i,{synthetic:!0}),i)}function Lt(t,e,n,r){const s={};if(r&&n){const i=nn(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]})}
20if(sr(e)){const{__sentry_template_string__:i,__sentry_template_values__:a}=e;return s.logentry={message:i,params:a},s}return s.message=e,s}function Qo(t,{isUnhandledRejection:e}){const n=Ys(t),r=e?"promise rejection":"exception";return Xt(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Kt(t)?`Event \`${Zo(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Zo(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function ec(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Z(r)}},i=tc(t);return ne(s,[i])}function tc(t){return[{type:"user_report"},t]}class nc extends ma{constructor(e){const n=T.SENTRY_SDK_SOURCE||Vs();ba(e,"browser",["browser"],n),super(e),e.sendClientReports&&T.document&&T.document.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Vo(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Jo(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){P&&l.warn("SDK not enabled, will not capture user feedback.");return}const n=ec(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){P&&l.log("No outcomes to send");return}if(!this._dsn){P&&l.log("No dsn provided, will not send outcomes");return}P&&l.log("Sending outcomes:",e);const n=$i(e,this._options.tunnel&&Z(this._dsn));this._sendEnvelope(n)}}let Te;function rc(){if(Te)return Te;if(Nt(T.fetch))return Te=T.fetch.bind(T);const t=T.document;let e=T.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){P&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Te=e.bind(T)}function sc(){Te=void 0}function ic(t,e=rc()){let n=0,r=0;function s(i){const a=i.body.length;n+=a,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then(c=>(n-=a,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return sc(),n-=a,r--,jt(c)}}return Dr(t,s)}const ac=4;function oc(t){function e(n){return new qt((r,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===ac&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const a in t.headers)Object.prototype.hasOwnProperty.call(t.headers,a)&&i.setRequestHeader(a,t.headers[a]);i.send(n.body)})}return Dr(t,e)}const ge="?",cc=10,uc=20,dc=30,lc=40,fc=50;function Pe(t,e,n,r){const s={filename:t,function:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const pc=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mc=/\((\S*)(?::(\d+))(?::(\d+))\)/,hc=t=>{const e=pc.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const i=mc.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}const[r,s]=es(e[1]||ge,e[2]);return Pe(s,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},gc=[dc,hc],_c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yc=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Tc=t=>{const e=_c.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=yc.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],s=e[1]||ge;return[s,r]=es(s,r),Pe(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Ec=[fc,Tc],Sc=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vc=t=>{const e=Sc.exec(t);return e?Pe(e[2],e[1]||ge,+e[3],e[4]?+e[4]:void 0):void 0},bc=[lc,vc],Ic=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Rc=t=>{const e=Ic.exec(t);return e?Pe(e[2],e[3]||ge,+e[1]):void 0},ad=[cc,Rc],wc=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,kc=t=>{const e=wc.exec(t);return e?Pe(e[5],e[3]||e[4]||ge,+e[1],+e[2]):void 0},od=[uc,kc],Nc=[gc,Ec,bc],Oc=zs(...Nc),es=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:ge,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},je=1024,ts="Breadcrumbs",Ac=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:ts,setupOnce(){},setup(n){e.console&&si(xc(n)),e.dom&&oi(Cc(n,e.dom)),e.xhr&&_r(Pc(n)),e.fetch&&mr(Dc(n)),e.history&&Vt(Fc(n)),e.sentry&&n.on&&n.on("beforeSendEvent",$c(n))}}},ns=Ac,cd=z(ts,ns);function $c(t){return function(n){R()===t&&J({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:G(n)},{event:n})}}function Cc(t,e){return function(r){if(R()!==t)return;let s,i,a=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>je&&(P&&l.warn(`\`dom.maxStringLength\` cannot exceed ${je}, but a value of ${o} was configured. Sentry will use ${je}
20 instead.`),o=je),typeof a=="string"&&(a=[a]);try{const u=r.event,d=Mc(u)?u.target:u;s=we(d,{keyAttrs:a,maxStringLength:o}),i=ir(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),J(c,{event:r.event,name:r.name,global:r.global})}}function xc(t){return function(n){if(R()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ii(n.level),message:gn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;J(r,{input:n.args,level:n.level})}}function Pc(t){return function(n){if(R()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ae];if(!r||!s||!i)return;const{method:a,url:o,status_code:c,body:u}=i,d={method:a,url:o,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s};J({category:"xhr",data:d,type:"http"},f)}}function Dc(t){return function(n){if(R()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};J({category:"fetch",data:i,level:"error",type:"http"},a)}else{const i=n.response,a={...n.fetchData,status_code:i&&i.status},o={input:n.args,response:i,startTimestamp:r,endTimestamp:s};J({category:"fetch",data:a,type:"http"},o)}}}function Fc(t){return function(n){if(R()!==t)return;let r=n.from,s=n.to;const i=V(T.location.href);let a=r?V(r):void 0;const o=V(s);(!a||!a.path)&&(a=i),i.protocol===o.protocol&&i.host===o.host&&(s=o.relative),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),J({category:"navigation",data:{from:r,to:s}})}}function Mc(t){return!!t&&!!t.target}const rs="Dedupe",Lc=()=>{let t;return{name:rs,setupOnce(){},processEvent(e){if(e.type)return e;try{if(Hc(e,t))return P&&l.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},ss=Lc,ud=z(rs,ss);function Hc(t,e){return e?!!(Uc(t,e)||Bc(t,e)):!1}function Uc(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!as(t,e)||!is(t,e))}function Bc(t,e){const n=jn(e),r=jn(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!as(t,e)||!is(t,e))}function is(t,e){let n=qn(t),r=qn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],a=n[s];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function as(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function jn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function qn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch{return}}const os="GlobalHandlers",jc=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:os,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(qc(n),Gn("onerror")),e.onunhandledrejection&&(Gc(n),Gn("onunhandledrejection"))}}},cs=jc,dd=z(os,cs);function qc(t){hr(e=>{const{stackParser:n,attachStacktrace:r}=ds();if(R()!==t||Qr())return;const{msg:s,url:i,line:a,column:o,error:c}=e,u=c===void 0&&ue(s)?zc(s,i,a,o):us(rn(n,c||s,void 0,r,!1),i,a,o);u.level="error",dr(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Gc(t){gr(e=>{const{stackParser:n,attachStacktrace:r}=ds();if(R()!==t||Qr())return;const s=Wc(e),i=Wt(s)?Yc(s):rn(n,s,void 0,r,!0);i.level="error",dr(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Wc(t){if(Wt(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return t}function Yc(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function zc(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Xt(t)?t.message:t,a="Error";const o=i.match(s);return o&&(a=o[1],i=o[2]),us({exception:{values:[{type:a,value:i}]}},e,n,r)}function us(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],a=i[0]=i[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=ue(e)&&e.length>0?e:Xs();
20return c.length===0&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),t}function Gn(t){P&&l.log(`Global Handler attached: ${t}`)}function ds(){const t=R();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ls="HttpContext",Xc=()=>({name:ls,setupOnce(){},preprocessEvent(t){if(!T.navigator&&!T.location&&!T.document)return;const e=t.request&&t.request.url||T.location&&T.location.href,{referrer:n}=T.document||{},{userAgent:r}=T.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}}),fs=Xc,ld=z(ls,fs),Kc="cause",Vc=5,ps="LinkedErrors",Jc=(t={})=>{const e=t.limit||Vc,n=t.key||Kc;return{name:ps,setupOnce(){},preprocessEvent(r,s,i){const a=i.getOptions();Qs(Zr,a.stackParser,a.maxValueLength,n,e,r,s)}}},ms=Jc,fd=z(ps,ms),Qc=["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"],hs="TryCatch",Zc=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:hs,setupOnce(){e.setTimeout&&A(T,"setTimeout",Wn),e.setInterval&&A(T,"setInterval",Wn),e.requestAnimationFrame&&A(T,"requestAnimationFrame",eu),e.XMLHttpRequest&&"XMLHttpRequest"in T&&A(XMLHttpRequest.prototype,"send",tu);const n=e.eventTarget;n&&(Array.isArray(n)?n:Qc).forEach(nu)}}},gs=Zc,pd=z(hs,gs);function Wn(t){return function(...e){const n=e[0];return e[0]=Q(n,{mechanism:{data:{function:W(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function eu(t){return function(e){return t.apply(this,[Q(e,{mechanism:{data:{function:"requestAnimationFrame",handler:W(t)},handled:!1,type:"instrument"}})])}}function tu(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&A(n,s,function(i){const a={mechanism:{data:{function:s,handler:W(i)},handled:!1,type:"instrument"}},o=zt(i);return o&&(a.mechanism.data.handler=W(o)),Q(i,a)})}),t.apply(this,e)}}function nu(t){const e=T,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(A(n,"addEventListener",function(r){return function(s,i,a){try{typeof i.handleEvent=="function"&&(i.handleEvent=Q(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:W(i),target:t},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,Q(i,{mechanism:{data:{function:"addEventListener",handler:W(i),target:t},handled:!1,type:"instrument"}}),a])}}),A(n,"removeEventListener",function(r){return function(s,i,a){const o=i;try{const c=o&&o.__sentry_wrapped__;c&&r.call(this,s,c,a)}catch{}return r.call(this,s,o,a)}}))}const ru=[Mr(),Hr(),gs(),ns(),cs(),ms(),ss(),fs()];function su(t){return[...ru]}function md(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=su()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),T.SENTRY_RELEASE&&T.SENTRY_RELEASE.id&&(t.release=T.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:Ks(t.stackParser||Oc),integrations:sa(t),transport:t.transport||(pr()?ic:oc)};_a(nc,e),t.autoSessionTracking&&iu()}const Yn=(t={},e=M())=>{if(!T.document){P&&l.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=e.getStackTop(),s=t.dsn||n&&n.getDsn();if(!s){P&&l.error("DSN not configured for showReportDialog call");return}r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const i=T.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=na(s,t),t.onLoad&&(i.onload=t.onLoad);const{onClose:a}=t;if(a){const c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{a()}finally{T.removeEventListener("message",c)}};T.addEventListener("message",c)}const o=T.document.head||T.document.body;o?o.appendChild(i):P&&l.error("Not injecting report dialog. No injection point found in HTML")};function hd(){}function gd(t){t()}function _d(t){return Q(t)()}
20function iu(){if(typeof T.document>"u"){P&&l.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}_n({ignoreDuration:!0}),yn(),Vt(({from:t,to:e})=>{t!==void 0&&t!==e&&(_n({ignoreDuration:!0}),yn())})}function yd(t){const e=R();e&&e.captureUserFeedback(t)}var _s={exports:{}},E={};/** @license React v16.13.1
21 * react-is.production.min.js
22 *
23 * Copyright (c) Facebook, Inc. and its affiliates.
24 *
25 * This source code is licensed under the MIT license found in the
26 * LICENSE file in the root directory of this source tree.
27 */var N=typeof Symbol=="function"&&Symbol.for,sn=N?Symbol.for("react.element"):60103,an=N?Symbol.for("react.portal"):60106,it=N?Symbol.for("react.fragment"):60107,at=N?Symbol.for("react.strict_mode"):60108,ot=N?Symbol.for("react.profiler"):60114,ct=N?Symbol.for("react.provider"):60109,ut=N?Symbol.for("react.context"):60110,on=N?Symbol.for("react.async_mode"):60111,dt=N?Symbol.for("react.concurrent_mode"):60111,lt=N?Symbol.for("react.forward_ref"):60112,ft=N?Symbol.for("react.suspense"):60113,au=N?Symbol.for("react.suspense_list"):60120,pt=N?Symbol.for("react.memo"):60115,mt=N?Symbol.for("react.lazy"):60116,ou=N?Symbol.for("react.block"):60121,cu=N?Symbol.for("react.fundamental"):60117,uu=N?Symbol.for("react.responder"):60118,du=N?Symbol.for("react.scope"):60119;function x(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case sn:switch(t=t.type,t){case on:case dt:case it:case ot:case at:case ft:return t;default:switch(t=t&&t.$$typeof,t){case ut:case lt:case mt:case pt:case ct:return t;default:return e}}case an:return e}}}function ys(t){return x(t)===dt}E.AsyncMode=on;E.ConcurrentMode=dt;E.ContextConsumer=ut;E.ContextProvider=ct;E.Element=sn;E.ForwardRef=lt;E.Fragment=it;E.Lazy=mt;E.Memo=pt;E.Portal=an;E.Profiler=ot;E.StrictMode=at;E.Suspense=ft;E.isAsyncMode=function(t){return ys(t)||x(t)===on};E.isConcurrentMode=ys;E.isContextConsumer=function(t){return x(t)===ut};E.isContextProvider=function(t){return x(t)===ct};E.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===sn};E.isForwardRef=function(t){return x(t)===lt};E.isFragment=function(t){return x(t)===it};E.isLazy=function(t){return x(t)===mt};E.isMemo=function(t){return x(t)===pt};E.isPortal=function(t){return x(t)===an};E.isProfiler=function(t){return x(t)===ot};E.isStrictMode=function(t){return x(t)===at};E.isSuspense=function(t){return x(t)===ft};E.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===it||t===dt||t===ot||t===at||t===ft||t===au||typeof t=="object"&&t!==null&&(t.$$typeof===mt||t.$$typeof===pt||t.$$typeof===ct||t.$$typeof===ut||t.$$typeof===lt||t.$$typeof===cu||t.$$typeof===uu||t.$$typeof===du||t.$$typeof===ou)};E.typeOf=x;_s.exports=E;var lu=_s.exports,cn=lu,fu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mu={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ts={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},un={};un[cn.ForwardRef]=mu;un[cn.Memo]=Ts;function zn(t){return cn.isMemo(t)?Ts:un[t.$$typeof]||fu}var hu=Object.defineProperty,gu=Object.getOwnPropertyNames,Xn=Object.getOwnPropertySymbols,_u=Object.getOwnPropertyDescriptor,yu=Object.getPrototypeOf,Kn=Object.prototype;function Es(t,e,n){if(typeof e!="string"){if(Kn){var r=yu(e);r&&r!==Kn&&Es(t,r,n)}var s=gu(e);Xn&&(s=s.concat(Xn(e)));for(var i=zn(t),a=zn(e),o=0;o<s.length;++o){var c=s[o];if(!pu[c]&&!(n&&n[c])&&!(a&&a[c])&&!(i&&i[c])){var u=_u(e,c);try{hu(t,c,u)}catch{}}}}return t}var Tu=Es;const Eu=Rs(Tu),Su=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vn="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function vu(t){const e=t.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}const bu="unknown",Jn={componentStack:null,error:null,eventId:null};function Iu(t,e){const n=new WeakMap;function r(s,i){if(!n.has(s)){if(s.cause)return n.set(s,!0),r(s.cause,i);s.cause=i}}r(t,e)}class dn extends K.Component{constructor(e){super(e),dn.prototype.__init.call(this),this.state=Jn,this._openFallbackReportDialog=!0;const n=R();n&&n.on&&e.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&Yn({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,{componentStack:n}){const{beforeCapture:r,onError:s,showDialog:i,dialogOptions:a}=this.props;Je(o=>{if(vu(K.version)&&ur(e)){const u=new Error(e.message);u.name=`React ErrorBoundary ${e.name}`,u.stack=n,Iu(e,u)}r&&r(o,e,n);const c=cr(e,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});s&&s(e,n,c),i&&(this._lastEventId=c,this._openFallbackReportDialog&&Yn({...a,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&s(e,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:n,componentStack:r,eventId:s}=this.state;e&&e(n,r,s),this.setState(Jn)}}render(){const{fallback:e,children:n}=this.props,r=this.state;if(r.error){let s;return typeof e=="function"?s=e({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}
27):s=e,K.isValidElement(s)?s:(e&&Su&&l.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}function Ru(t,e){const n=t.displayName||t.name||bu,r=s=>K.createElement(dn,{...e,__self:this,__source:{fileName:Vn,lineNumber:240}},K.createElement(t,{...s,__self:this,__source:{fileName:Vn,lineNumber:241}}));return r.displayName=`errorBoundary(${n})`,Eu(r,t),r}const wu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ku(){const t=k;if(t.__remixContext)return t.__remixContext.future}function Nu(){return Tr([k,"access",e=>e.__remixContext,"optionalAccess",e=>e.state,"optionalAccess",e=>e.loaderData,"optionalAccess",e=>e.root,"optionalAccess",e=>e.remixVersion])}const Qn="/home/runner/work/sentry-javascript/sentry-javascript/packages/remix/src/client/performance.tsx",Ss={"routing.instrumentation":"remix-router"};let We,Ht,Ut,Ne,vs;function Ou(){if(T&&T.location)return T.location.pathname}function Au(t){return t===2||Tr([ku,"call",e=>e(),"optionalAccess",e=>e.v2_errorBoundary])||!1}function $u(){const t=Ou();if(!t)return;const e={name:t,op:"pageload",origin:"auto.pageload.remix",tags:Ss,metadata:{source:"url"}};if(Ne)Ne(e);else{const n=R();if(!n)return;Vr(n,e)}}function Cu(t){const e={name:t[t.length-1].id,op:"navigation",origin:"auto.navigation.remix",tags:Ss,metadata:{source:"route"}};if(Ne)Ne(e);else{const n=R();if(!n)return;Jr(n,e)}}function Td(t,e,n){return(r,s=!0,i=!0)=>{xu({useEffect:t,useLocation:e,useMatches:n,instrumentNavigation:i,customStartTransaction:r}),s&&$u()}}function Ed(t,e={wrapWithErrorBoundary:!0,errorBoundaryOptions:{}}){return r=>{if(!We||!Ht||!Ut)return wu&&!Js()&&l.warn("Remix SDK was unable to wrap your root because of one or more missing parameters."),K.createElement(t,{...r,__self:this,__source:{fileName:Qn,lineNumber:181}});let s=!1;const i=Ht(),a=Ut();return We(()=>{const o=le();if(o&&a&&a.length){const c=St(o);c&&(c.updateName(a[a.length-1].id),c.setAttribute(j,"route"))}s=!0},[]),We(()=>{const o=le();if(s){o&&o.end();return}vs&&a&&a.length&&(o&&o.end(),Cu(a))},[i]),s=!1,!Au(Nu())&&e.wrapWithErrorBoundary?Ru(t,e.errorBoundaryOptions)(r):K.createElement(t,{...r,__self:this,__source:{fileName:Qn,lineNumber:233}})}}function xu({useEffect:t,useLocation:e,useMatches:n,instrumentNavigation:r,customStartTransaction:s}){We=t,Ht=e,Ut=n,vs=r,Ne=s}export{Ii as $,ke as A,re as B,cd as C,b as D,ud as E,sd as F,dd as G,ld as H,rd as I,pd as J,Qa as K,fd as L,oi as M,nd as N,mr as O,_r as P,Fi as Q,Di as R,j as S,Ge as T,ae as U,Ai as V,_ as W,yr as X,Ji as Y,si as Z,Tr as _,Vu as a,fs as a$,Mu as a0,fi as a1,Lu as a2,wi as a3,Bu as a4,T as a5,P as a6,ba as a7,md as a8,Sr as a9,qu as aA,Wu as aB,Yu as aC,Gu as aD,nc as aE,ic as aF,oc as aG,gc as aH,Nc as aI,Oc as aJ,Ec as aK,ad as aL,od as aM,bc as aN,Vo as aO,Jo as aP,Zr as aQ,ec as aR,yd as aS,ru as aT,hd as aU,su as aV,gd as aW,Yn as aX,_d as aY,ns as aZ,cs as a_,Eu as aa,id as ab,Vr as ac,Jr as ad,He as ae,ce as af,le as ag,Su as ah,Hu as ai,xu as aj,$u as ak,Td as al,Ed as am,dn as an,Ru as ao,oe as ap,Ku as aq,zu as ar,Dr as as,ju as at,Hr as au,Er as av,Mr as aw,ya as ax,Jt as ay,Xi as az,z as b,ms as b0,gs as b1,ne as c,ni as d,Uu as e,At as f,ta as g,Qs as h,ed as i,td as j,Zu as k,Ju as l,Vt as m,Ft as n,zi as o,xi as p,uo as q,po as r,Qu as s,lo as t,Xu as u,fo as v,Ma as w,Co as x,Ar as y,To as z};

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.