1import{h as f}from"https://build.cargo.site/u/49da0e/static/chunks/chunk-HCDFCMWC.js";import{d as jc}from"https://build.cargo.site/u/49da0e/static/chunks/chunk-QK2OWAVC.js";f();f();f();f();f();var gt="10.31.0";f();var N=globalThis;function st(){return Un(N),N}function Un(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||gt,t[gt]=t[gt]||{}}function Xt(e,t,n=N){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[gt]=r[gt]||{};return o[e]||(o[e]=t())}f();f();f();f();var b=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();f();f();f();var Gf=Object.prototype.toString;function St(e){switch(Gf.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ct(e,Error)}}function Fr(e,t){return Gf.call(e)===`[object ${t}]`}function _s(e){return Fr(e,"ErrorEvent")}function gs(e){return Fr(e,"DOMError")}function zc(e){return Fr(e,"DOMException")}function Fe(e){return Fr(e,"String")}function Dn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function at(e){return e===null||Dn(e)||typeof e!="object"&&typeof e!="function"}function je(e){return Fr(e,"Object")}function cr(e){return typeof Event<"u"&&Ct(e,Event)}function qc(e){return typeof Element<"u"&&Ct(e,Element)}function Yc(e){return Fr(e,"RegExp")}function jt(e){return!!(e?.then&&typeof e.then=="function")}function Vc(e){return je(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ct(e,t){try{return e instanceof t}catch{return!1}}function Yo(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Vo(e){return typeof Request<"u"&&Ct(e,Request)}var Jc=N,LE=80;function ve(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||LE;for(;n&&i++<r&&(u=PE(n,d),!(u==="html"||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function PE(e,t){let n=e,r=[];if(!n?.tagName)return"";if(Jc.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&Fe(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function ct(){try{return Jc.document.location.href}catch{return""}}function Jo(e){if(!Jc.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}f();var ur=["debug","info","warn","error","log","assert","trace"],UE="Sentry Logger ",Hr={};function Je(e){if(!("console"in N))return e();let t=N.console,n={},r=Object.keys(Hr);r.forEach(o=>{let i=Hr[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function DE(){Xc().enabled=!0}function BE(){Xc().enabled=!1}function $f(){return Xc().enabled}function FE(...e){Kc("log",...e)}function HE(...e){Kc("warn",...e)}function GE(...e){Kc("error",...e)}function Kc(e,...t){b&&$f()&&Je(()=>{N.console[e](`${UE}[${e}]:`,...t)})}function Xc(){return b?Xt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var _={enable:DE,disable:BE,isEnabled:$f,log:FE,warn:HE,error:GE};function Se(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!="function")return;let o=n(r);typeof o=="function"&&Ss(o,r);try{e[t]=o}catch{b&&_.log(`Failed to replace method "${t}" in object`,e)}}function be(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{b&&_.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ss(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,be(e,"__sentry_original__",t)}catch{}}function lr(e){return e.__sentry_original__}function Es(e){if(St(e))return{message:e.message,name:e.name,stack:e.stack,...jf(e)};if(cr(e)){let t={type:e.type,target:Wf(e.target),currentTarget:Wf(e.currentTarget),...jf(e)};return typeof CustomEvent<"u"&&Ct(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Wf(e){try{return qc(e)?ve(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function jf(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Qc(e){let t=Object.keys(Es(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}f();f();var wt="?",zf=/\(error: (.*)\)/,qf=/captureMessage|captureException/;function ys(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(` 2`);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=zf.test(c)?c.replace(zf,"$1"):c;if(!u.match(/\S*Error: /)){for(let d of t){let l=d(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return Yf(i.slice(o))}}function eu(e){return Array.isArray(e)?ys(...e):e}function Yf(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Ts(t).function||"")&&t.pop(),t.reverse(),qf.test(Ts(t).function||"")&&(t.pop(),qf.test(Ts(t).function||"")&&t.pop()),t.slice(0,50).map(n=>({...n,filename:n.filename||Ts(t).filename,function:n.function||wt}))}function Ts(e){return e[e.length-1]||{}}var Zc="<anonymous>";function Et(e){try{return!e||typeof e!="function"?Zc:e.name||Zc}catch{return Zc}}function Gr(e){let t=e.exception;if(t){let n=[];
2try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function bs(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function ln(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ko(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function dr(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{Yo(o)?n.push(bs(o)):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function $r(e,t,n=!1){return Fe(e)?Yc(t)?t.test(e):Fe(t)?n?e===t:e.includes(t):!1:!1}function ze(e,t=[],n=!1){return t.some(r=>$r(e,r,n))}function $E(){let e=N;return e.crypto||e.msCrypto}var tu;function WE(){return Math.random()*16}function de(e=$E()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return tu||(tu="10000000100040008000"+1e11),tu.replace(/[018]/g,t=>(t^(WE()&15)>>t/4).toString(16))}function Vf(e){return e.exception?.values?.[0]}function dn(e){let{message:t,event_id:n}=e;if(t)return t;let r=Vf(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Wr(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Ke(e,t){let n=Vf(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o?.data,...t.data};n.mechanism.data=i}}function nu(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(s=>Ko(s,0));let i=Math.min(r-1,o);t.context_line=Ko(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(s=>Ko(s,0))}function Is(e){if(jE(e))return!0;try{be(e,"__sentry_captured__",!0)}catch{}return!1}function jE(e){try{return e.__sentry_captured__}catch{}}f();var Kf=1e3;function xt(){return Date.now()/Kf}function zE(){let{performance:e}=N;if(!e?.now||!e.timeOrigin)return xt;let t=e.timeOrigin;return()=>(t+e.now())/Kf}var Jf;function Z(){return(Jf??(Jf=zE()))()}var ru;function qE(){let{performance:e}=N;if(!e?.now)return[void 0,"none"];let t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing?.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,u=c<t;return i||u?o<=c?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}function Ee(){return ru||(ru=qE()),ru[0]}function Xf(e){let t=Z(),n={sid:de(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>YE(n)};return e&&Tn(n,e),n}function Tn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Z(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:de()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Qf(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Tn(e,n)}function YE(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}f();function Bn(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Bn(r[o],t[o],n-1));return r}f();function qe(){return de()}function Xe(){return de().substring(16)}f();var ou="_sentrySpan";function ut(e,t){t?be(e,ou,t):delete e[ou]}function Qt(e){return e[ou]}var VE=100,Qe=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:qe(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,ut(t,Qt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Tn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t,r=n instanceof e?n.getScopeData():je(n)?t:void 0,{tags:o,attributes:i,extra:s,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ut(this,void 0),this._attachments=[],this.setPropagationContext({traceId:qe(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:VE;if(r<=0)return this;let o={timestamp:xt(),...t,message:t.message?ln(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Qt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Bn(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||de();if(!this._client)return b&&_.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r?.event_id||de();if(!this._client)return b&&_.warn("No client configured on scope - will not capture message!"),o;let i=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n?.event_id||de();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(b&&_.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(t=>{t(this)}),this._notifyingListeners=!1)}};function Zf(){return Xt("defaultCurrentScope",()=>new Qe)}function ep(){return Xt("defaultIsolationScope",()=>new Qe)}var iu=class{constructor(t,n){let r;t?r=t:r=new Qe;let o;n?o=n:o=new Qe,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return jt(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function jr(){let e=st(),t=Un(e);return t.stack=t.stack||new iu(Zf(),ep())}function JE(e){return jr().withScope(e)}function KE(e,t){let n=jr();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function tp(e){return jr().withScope(()=>e(jr().getIsolationScope()))}function np(){return{withIsolationScope:tp,withScope:JE,withSetScope:KE,withSetIsolationScope:(e,t)=>tp(t),getCurrentScope:()=>jr().getScope(),getIsolationScope:()=>jr().getIsolationScope()}}function zt(e){let t=Un(e);return t.acs?t.acs:np()}function M(){let e=st();return zt(e).getCurrentScope()}function ue(){let e=st();return zt(e).getIsolationScope()}function lt(){return Xt("globalScope",()=>new Qe)}function Ue(...e){let t=st(),n=zt(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function As(...e){let t=st(),n=zt(t);if(e.length===2){let[r,o]=e;return r?n.withSetIsolationScope(r,o):n.withIsolationScope(o)}return n.withIsolationScope(e[0])}function y(){return M().getClient()}function Xo(e){let t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||Xe()};return r&&(i.parent_span_id=r),i}f();f();var Ne="sentry.source",yn="sentry.sample_rate",Qo="sentry.previous_trace_sample_rate",se="sentry.op",G="sentry.origin",Fn="sentry.idle_span_finish_reason",fn="sentry.measurement_unit",pn="sentry.measurement_value",zr="sentry.custom_span_name",qr="sentry.profile_id",qt="sentry.exclusive_time";var su="http.request.method",au="url.full",cu="sentry.link.type";f();var Rs="sentry-",XE=/^sentry-/,QE=8192;function Yr(e){let t=ZE(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(XE)){let s=o.slice(Rs.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function vs(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Rs}${r}`]=o),n),{});return eT(t)}function ZE(e){if(!(!e||!Fe(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=rp(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):rp(e)}function rp(e){return e.split(",").map(t=>{let n=t.indexOf("=");if(n===-1)return[];let r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function eT(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>QE?(b&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}f();function fr(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(i){throw t(i),n(),i}return tT(o,t,n,r)}function tT(e,t,n,r){return jt(e)?e.then(o=>(n(),r(o),o),o=>{throw t(o),n(),o}):(n(),r(e),e)}f();function xe(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||y()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}f();function kt(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}f();f();function Ns(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function mn(e,t){e.setAttribute("http.response.status_code",t);let n=Ns(t);n.message!=="unknown_error"&&e.setStatus(n)}f();var op="_sentryScope",ip="_sentryIsolationScope";function nT(e){try{let t=N.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function rT(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}
2function sp(e,t,n){e&&(be(e,ip,nT(n)),be(e,op,t))}function pr(e){let t=e;return{scope:t[op],isolationScope:rT(t[ip])}}f();f();var oT=/^o(\d+)\./,iT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function sT(e){return e==="http"||e==="https"}function He(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Cs(e){let t=iT.exec(e);if(!t){Je(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",a=""]=t.slice(1),c="",u=a,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let l=u.match(/^\d+/);l&&(u=l[0])}return ap({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function ap(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function aT(e){if(!b)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(_.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?sT(r)?t&&isNaN(parseInt(t,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cT(e){return e.match(oT)?.[1]}function ws(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=cT(n)),r}function Zo(e){let t=typeof e=="string"?Cs(e):ap(e);if(!(!t||!aT(t)))return t}var xs=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function cp(e){if(!e)return;let t=e.match(xs);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function ei(e,t){let n=cp(e),r=Yr(t);if(!n?.traceId)return{traceId:qe(),sampleRand:Math.random()};let o=uT(n,r);r&&(r.sample_rand=o.toString());let{traceId:i,parentSpanId:s,parentSampled:a}=n;return{traceId:i,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:o}}function ti(e=qe(),t=Xe(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function ni(e=qe(),t=Xe(),n){return`00-${e}-${t}-${n?"01":"00"}`}function uT(e,t){let n=kt(t?.sample_rand);if(n!==void 0)return n;let r=kt(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}function uu(e,t){let n=ws(e);return t&&n&&t!==n?(_.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(_.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}var Os=0,Ms=1,up=!1;function dp(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=P(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function ri(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:P(e).parent_span_id,i=pr(e).scope,s=r?i?.getPropagationContext().propagationSpanId||Xe():t;return{parent_span_id:o,span_id:s,trace_id:n}}function oi(e){let{traceId:t,spanId:n}=e.spanContext(),r=Ot(e);return ti(t,n,r)}function fp(e){let{traceId:t,spanId:n}=e.spanContext(),r=Ot(e);return ni(t,n,r)}function Ls(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:r===Ms,attributes:i,...o}))}function Zt(e){return typeof e=="number"?lp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?lp(e.getTime()):Z()}function lp(e){return e>9999999999?e/1e3:e}function P(e){if(fT(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(dT(e)){let{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:Zt(o),timestamp:Zt(s)||void 0,status:Ps(a),op:r[se],origin:r[G],links:Ls(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function dT(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function fT(e){return typeof e.getSpanJSON=="function"}function Ot(e){let{traceFlags:t}=e.spanContext();return t===Ms}function Ps(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"internal_error"}var mr="_sentryChildSpans",lu="_sentryRootSpan";function Us(e,t){let n=e[lu]||e;be(t,lu,n),e[mr]?e[mr].add(t):be(e,mr,new Set([t]))}function pp(e,t){e[mr]&&e[mr].delete(t)}function bn(e){let t=new Set;function n(r){if(!t.has(r)&&Ot(r)){t.add(r);let o=r[mr]?Array.from(r[mr]):[];for(let i of o)n(i)}}return n(e),Array.from(t)}function ee(e){return e[lu]||e}function X(){let e=st(),t=zt(e);return t.getActiveSpan?t.getActiveSpan():Qt(M())}function ii(){up||(Je(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),up=!0)}function du(e,t){e.updateName(t),e.setAttributes({[Ne]:"custom",[zr]:t})}f();f();var In="production";var mp="_frozenDsc";function Vr(e,t){be(e,mp,t)}function fu(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||In,release:n.release,public_key:r,trace_id:e,org_id:ws(t)};return t.emit("createDsc",o),o}function hr(e,t){let n=t.getPropagationContext();return n.dsc||fu(n.traceId,e)}function ke(e){let t=y();if(!t)return{};let n=ee(e),r=P(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[yn]??o[Qo];function a(h){return(typeof s=="number"||typeof s=="string")&&(h.sample_rate=`${s}`),h}let c=n[mp];if(c)return a(c);let u=i?.get("sentry.dsc"),d=u&&Yr(u);
2if(d)return a(d);let l=fu(e.spanContext().traceId,t),p=o[Ne],m=r.description;return p!=="url"&&m&&(l.transaction=m),xe()&&(l.sampled=String(Ot(n)),l.sample_rand=i?.get("sentry.sample_rand")??pr(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function pu(e){let t=ke(e);return vs(t)}f();function hp(e){if(!b)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=P(e),{spanId:o}=e.spanContext(),i=Ot(e),s=ee(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!a){let{op:d,description:l}=P(s);u.push(`root ID: ${s.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}_.log(`${c} 3 ${u.join(` 4 `)}`)}function _p(e){if(!b)return;let{description:t="< unknown name >",op:n="< unknown op >"}=P(e),{spanId:r}=e.spanContext(),i=ee(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;_.log(s)}f();function gp(e,t,n){if(!xe(e))return[!1];let r,o;typeof e.tracesSampler=="function"?(o=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?o=t.parentSampled:typeof e.tracesSampleRate<"u"&&(o=e.tracesSampleRate,r=!0);let i=kt(o);if(i===void 0)return b&&_.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return b&&_.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"}`),[!1,i,r];let s=n<i;return s||b&&_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}f();var Ze=class{constructor(t={}){this._traceId=t.traceId||qe(),this._spanId=t.spanId||Xe()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Os}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}};f();f();f();f();function De(e,t=100,n=1/0){try{return mu("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ds(e,t=3,n=100*1024){let r=De(e,t);return _T(r)>n?Ds(e,t-1,n):r}function mu(e,t,n=1/0,r=1/0,o=gT()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=pT(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return mu("",m,c-1,r,o)}catch{}let d=Array.isArray(t)?[]:{},l=0,p=Es(t);for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(l>=r){d[m]="[MaxProperties ~]";break}let h=p[m];d[m]=mu(m,h,c-1,r,o),l++}return s(t),d}function pT(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Yo(t))return bs(t);if(Vc(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Et(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=mT(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function mT(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function hT(e){return~-encodeURI(e).split(/%..|./).length}function _T(e){return hT(JSON.stringify(e))}function gT(){let e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Oe(e,t=[]){return[e,t]}function hu(e,t){let[n,r]=e;return[n,[...r,t]]}function Mt(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function Fs(e,t){return Mt(e,(n,r)=>t.includes(r))}function Bs(e){let t=Un(N);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function ST(e){let t=Un(N);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Hn(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[Bs(r),i]:r.push(typeof i=="string"?Bs(i):i)}for(let i of n){let[s,a]=i;
4if(o(` 5${JSON.stringify(s)} 6`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(De(a))}o(c)}}return typeof r=="string"?r:ET(r)}function ET(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function _u(e){let t=typeof e=="string"?Bs(e):e;function n(s){let a=t.subarray(0,s);return t=t.subarray(s+1),a}function r(){let s=t.indexOf(10);return s<0&&(s=t.length),JSON.parse(ST(n(s)))}let o=r(),i=[];for(;t.length;){let s=r(),a=typeof s.length=="number"?s.length:void 0;i.push([s,a?n(a):r()])}return[o,i]}function gu(e){return[{type:"span"},e]}function Su(e){let t=typeof e.data=="string"?Bs(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var TT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Hs(e){return TT[e]}function Gn(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function si(e,t,n,r){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:He(r)},...o&&{trace:o}}}f();function Sp(e){_.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function _r(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(yT(n)){if($r(e.description,n))return b&&Sp(e),!0;continue}if(!n.name&&!n.op)continue;let r=n.name?$r(e.description,n.name):!0,o=n.op?e.op&&$r(e.op,n.op):!0;if(r&&o)return b&&Sp(e),!0}return!1}function Ep(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function yT(e){return typeof e=="string"||e instanceof RegExp}function bT(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Tp(e,t,n,r){let o=Gn(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:He(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Oe(i,[s])}function yp(e,t,n,r){let o=Gn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";bT(e,n?.sdk);let s=si(e,o,r,t);return delete e.sdkProcessingMetadata,Oe(s,[[{type:i},e]])}function bp(e,t){function n(m){return!!m.trace_id&&!!m.public_key}let r=ke(e[0]),o=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&o&&{dsn:He(o)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(m=>!_r(P(m),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);let l=a?m=>{let h=P(m),g=a(h);return g||(ii(),h)}:P,p=[];for(let m of u){let h=l(m);h&&p.push(gu(h))}return Oe(s,p)}f();function ai(e,t,n,r=X()){let o=r&&ee(r);o&&(b&&_.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[pn]:t,[fn]:n}))}function Gs(e){if(!e||e.length===0)return;let t={};return e.forEach(n=>{let r=n.attributes||{},o=r[fn],i=r[pn];typeof o=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:o})}),t}var Ip=1e3,$n=class{constructor(t={}){this._traceId=t.traceId||qe(),this._spanId=t.spanId||Xe(),this._startTime=t.startTimestamp||Z(),this._links=t.links,this._attributes={},this.setAttributes({[G]:"manual",[se]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Ms:Os}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=Zt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Ne,"custom"),this}end(t){this._endTime||(this._endTime=Zt(t),_p(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[se],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ps(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[G],profile_id:this._attributes[qr],exclusive_time:this._attributes[qt],measurements:Gs(this._events),is_segment:this._isStandaloneSpan&&ee(this)===this||void 0,segment_id:this._isStandaloneSpan?ee(this).spanContext().spanId:void 0,links:Ls(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){b&&_.log("[Tracing] Adding an event to span:",t);let o=Ap(n)?n:r||Z(),i=Ap(n)?{}:n||{}
6,s={name:t,time:Zt(o),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=y();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===ee(this)))return;if(this._isStandaloneSpan){this._sampled?AT(bp([this],t)):(b&&_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(pr(this).scope||M()).captureEvent(r)}_convertSpanToTransaction(){if(!Rp(P(this)))return;this._name||(b&&_.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=pr(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=bn(this).filter(d=>d!==this&&!IT(d)).map(d=>P(d)).filter(Rp),s=this._attributes[Ne];delete this._attributes[zr],i.forEach(d=>{delete d.data[zr]});let a={contexts:{trace:dp(this)},spans:i.length>Ip?i.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,Ip):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:ke(this)},request:r,...s&&{transaction_info:{source:s}}},c=Gs(this._events);return c&&Object.keys(c).length&&(b&&_.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}};function Ap(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Rp(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function IT(e){return e instanceof $n&&e.isStandaloneSpan()}function AT(e){let t=y();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}var $s="__SENTRY_SUPPRESS_TRACING__";function Ye(e,t){let n=ui();if(n.startSpan)return n.startSpan(e,t);let r=yu(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return Ue(a,()=>Np(i)(()=>{let u=M(),d=bu(u,i),p=e.onlyIfParent&&!d?new Ze:Tu({parentSpan:d,spanArguments:r,forceTransaction:o,scope:u});return ut(u,p),fr(()=>t(p),()=>{let{status:m}=P(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:2,message:"internal_error"})},()=>{p.end()})}))}function dt(e,t){let n=ui();if(n.startSpanManual)return n.startSpanManual(e,t);let r=yu(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return Ue(a,()=>Np(i)(()=>{let u=M(),d=bu(u,i),p=e.onlyIfParent&&!d?new Ze:Tu({parentSpan:d,spanArguments:r,forceTransaction:o,scope:u});return ut(u,p),fr(()=>t(p,()=>p.end()),()=>{let{status:m}=P(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:2,message:"internal_error"})})}))}function Tt(e){let t=ui();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=yu(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?s=>Ue(e.scope,s):o!==void 0?s=>Wn(o,s):s=>s())(()=>{let s=M(),a=bu(s,o);return e.onlyIfParent&&!a?new Ze:Tu({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}var Eu=(e,t)=>{let n=st(),r=zt(n);if(r.continueTrace)return r.continueTrace(e,t);let{sentryTrace:o,baggage:i}=e,s=y(),a=Yr(i);return s&&!uu(s,a?.org_id)?Ws(t):Ue(c=>{let u=ei(o,i);return c.setPropagationContext(u),ut(c,void 0),t()})};function Wn(e,t){let n=ui();return n.withActiveSpan?n.withActiveSpan(e,t):Ue(r=>(ut(r,e||void 0),t(r)))}function ci(e){let t=ui();return t.suppressTracing?t.suppressTracing(e):Ue(n=>{n.setSDKProcessingMetadata({[$s]:!0});let r=e();return n.setSDKProcessingMetadata({[$s]:void 0}),r})}function Ws(e){return Ue(t=>(t.setPropagationContext({traceId:qe(),sampleRand:Math.random()}),b&&_.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Wn(null,e)))}function Tu({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!xe()){let s=new Ze;if(n||!e){let a={sampled:"false",sample_rate:"0",transaction:t.name,...ke(s)};Vr(s,a)}return s}let o=ue(),i;if(e&&!n)i=RT(e,r,t),Us(e,i);else if(e){let s=ke(e),{traceId:a,spanId:c}=e.spanContext(),u=Ot(e);i=vp({traceId:a,parentSpanId:c,...t},r,u),Vr(i,s)}else{let{traceId:s,dsc:a,parentSpanId:c,sampled:u}={...o.getPropagationContext(),...r.getPropagationContext()};i=vp({traceId:s,parentSpanId:c,...t},r,u),a&&Vr(i,a)}return hp(i),sp(i,r,o),i}function yu(e){let n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...n};return r.startTimestamp=Zt(e.startTime),delete r.startTime,r}return n}function ui(){let e=st();return zt(e)}function vp(e,t,n){let r=y(),o=r?.getOptions()||{},{name:i=""}=e,s={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??n,c=s.spanAttributes,u=t.getPropagationContext(),[d,l,p]=t.getScopeData().sdkProcessingMetadata[$s]?[!1]:gp(o,{name:i,parentSampled:a,attributes:c,parentSampleRate:kt(u.dsc?.sample_rate)},u.sampleRand),m=new $n({...e,attributes:{[Ne]:"custom",[yn]:l!==void 0&&p?l:void 0,...c},sampled:d});return!d&&r&&(b&&_.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function RT(e,t,n){let{spanId:r,traceId:o}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[$s]?!1:Ot(e),s=i?new $n({...n,parentSpanId:r,traceId:o,sampled:i}):new Ze({traceId:o});Us(e,s);let a=y();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function bu(e,t){if(t)return t;if(t===null)return;let n=Qt(e);
6if(!n)return;let r=y();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ee(n):n}function Np(e){return e!==void 0?t=>Wn(e,t):t=>t()}f();f();f();var Iu=0,Cp=1,wp=2;function jn(e){return new li(t=>{t(e)})}function gr(e){return new li((t,n)=>{n(e)})}var li=class e{constructor(t){this._state=Iu,this._handlers=[],this._runExecutor(t)}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===Iu)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Cp&&n[1](this._value),this._state===wp&&n[2](this._value),n[0]=!0)})}_runExecutor(t){let n=(i,s)=>{if(this._state===Iu){if(jt(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(Cp,i)},o=i=>{n(wp,i)};try{t(r,o)}catch(i){o(i)}}};function xp(e,t,n,r=0){try{let o=Au(t,n,e,r);return jt(o)?o:jn(o)}catch(o){return gr(o)}}function Au(e,t,n,r){let o=n[r];if(!e||!o)return e;let i=o({...e},t);return b&&i===null&&_.log(`Event processor "${o.id||"?"}" dropped event`),jt(i)?i.then(s=>Au(s,t,n,r+1)):Au(i,t,n,r+1)}f();function kp(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;vT(e,t),r&&wT(e,r),xT(e,n),NT(e,o),CT(e,i)}function An(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:p,transactionName:m,span:h}=t;js(e,"extra",n),js(e,"tags",r),js(e,"user",o),js(e,"contexts",i),e.sdkProcessingMetadata=Bn(e.sdkProcessingMetadata,a,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...p}}function js(e,t,n){e[t]=Bn(e[t],n,1)}function vT(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function NT(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function CT(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function wT(e,t){e.contexts={trace:ri(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ke(t),...e.sdkProcessingMetadata};let n=ee(t),r=P(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function xT(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}f();var Sr,Op,Mp,zn;function zs(e){let t=N._sentryDebugIds,n=N._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(zn&&r.length===Op&&o.length===Mp)return zn;Op=r.length,Mp=o.length,zn={},Sr||(Sr={});let i=(s,a)=>{for(let c of s){let u=a[c],d=Sr?.[c];if(d&&zn&&u)zn[d[0]]=u,Sr&&(Sr[c]=[d[0],u]);else if(u){let l=e(c);for(let p=l.length-1;p>=0;p--){let h=l[p]?.filename;if(h&&zn&&Sr){zn[h]=u,Sr[c]=[h,u];break}}}}};return t&&i(r,t),n&&i(o,n),zn}function Ru(e,t){let n=zs(e);if(!n)return[];let r=[];for(let o of t)o&&n[o]&&r.push({type:"sourcemap",code_file:o,debug_id:n[o]});return r}function di(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||de(),timestamp:t.timestamp||xt()},u=n.integrations||e.integrations.map(S=>S.name);kT(c,e),LT(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&OT(c,e.stackParser);let d=UT(r,n.captureContext);n.mechanism&&Ke(c,n.mechanism);let l=o?o.getEventProcessors():[],p=lt().getScopeData();if(i){let S=i.getScopeData();An(p,S)}if(d){let S=d.getScopeData();An(p,S)}let m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),kp(c,p);let h=[...l,...p.eventProcessors];return xp(h,c,n).then(S=>(S&&MT(S),typeof s=="number"&&s>0?PT(S,s,a):S))}function kT(e,t){let{environment:n,release:r,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||In,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&i&&(s.url=ln(s.url,i)),i&&e.exception?.values?.forEach(a=>
6{a.value&&(a.value=ln(a.value,i))})}function OT(e,t){let n=zs(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename])})})}function MT(e){let t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:"sourcemap",code_file:r,debug_id:o})})}function LT(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function PT(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:De(o.data,t,n)}}))},...e.user&&{user:De(e.user,t,n)},...e.contexts&&{contexts:De(e.contexts,t,n)},...e.extra&&{extra:De(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=De(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:De(o.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=De(e.contexts.flags,3,n)),r}function UT(e,t){if(!t)return e;let n=e?e.clone():new Qe;return n.update(t),n}function Lp(e){if(e)return DT(e)?{captureContext:e}:FT(e)?{captureContext:e}:e}function DT(e){return e instanceof Qe||typeof e=="function"}var BT=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function FT(e){return Object.keys(e).some(t=>BT.includes(t))}function Q(e,t){return M().captureException(e,Lp(t))}function fi(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return M().captureMessage(e,n,r)}function en(e,t){return M().captureEvent(e,t)}function pi(e,t){ue().setContext(e,t)}function vu(e){ue().setExtras(e)}function Nu(e,t){ue().setExtra(e,t)}function Cu(e){ue().setTags(e)}function wu(e,t){ue().setTag(e,t)}function xu(e){ue().setUser(e)}function mi(){return ue().lastEventId()}async function ku(e){let t=y();return t?t.flush(e):(b&&_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Ou(e){let t=y();return t?t.close(e):(b&&_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Mu(){return!!y()}function hi(){let e=y();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function _i(e){ue().addEventProcessor(e)}function Jr(e){let t=ue(),n=M(),{userAgent:r}=N.navigator||{},o=Xf({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return i?.status==="ok"&&Tn(i,{status:"exited"}),gi(),t.setSession(o),o}function gi(){let e=ue(),n=M().getSession()||e.getSession();n&&Qf(n),Pp(),e.setSession()}function Pp(){let e=ue(),t=y(),n=e.getSession();n&&t&&t.captureSession(n)}function Kr(e=!1){if(e){gi();return}Pp()}f();f();f();f();var qs={},Up={};function et(e,t){qs[e]=qs[e]||[],qs[e].push(t)}function tt(e,t){if(!Up[e]){Up[e]=!0;try{t()}catch(n){b&&_.error(`Error while instrumenting ${e}`,n)}}}function Me(e,t){let n=e&&qs[e];if(n)for(let r of n)try{r(t)}catch(o){b&&_.error(`Error while triggering instrumentation handler. 7Type: ${e} 8Name: ${Et(r)} 9Error:`,o)}}var Lu=null;function Si(e){let t="error";et(t,e),tt(t,HT)}function HT(){Lu=N.onerror,N.onerror=function(e,t,n,r,o){return Me("error",{column:r,error:o,line:n,msg:e,url:t}),Lu?Lu.apply(this,arguments):!1},N.onerror.__SENTRY_INSTRUMENTED__=!0}f();var Pu=null;function Ei(e){let t="unhandledrejection";et(t,e),tt(t,GT)}function GT(){Pu=N.onunhandledrejection,N.onunhandledrejection=function(e){return Me("unhandledrejection",e),Pu?Pu.apply(this,arguments):!0},N.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Dp=!1;function Ti(){if(Dp)return;function e(){let t=X(),n=t&&ee(t);if(n){let r="internal_error";b&&_.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}e.tag="sentry_tracingErrorCallback",Dp=!0,Si(e),Ei(e)}f();var Xr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},$T="heartbeatFailed",WT="idleTimeout",jT="finalTimeout",zT="externalFinish";function Ys(e,t={}){let n=new Map,r=!1,o,i=zT,s=!t.disableAutoFinish,a=[],{idleTimeout:c=Xr.idleTimeout,finalTimeout:u=Xr.finalTimeout,childSpanTimeout:d=Xr.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:p=!0}=t,m=y();
9if(!m||!xe()){let T=new Ze,k={sample_rate:"0",sampled:"false",...ke(T)};return Vr(T,k),T}let h=M(),g=X(),S=qT(e);S.end=new Proxy(S.end,{apply(T,k,$){if(l&&l(S),k instanceof Ze)return;let[R,...O]=$,w=R||Z(),U=Zt(w),H=bn(S).filter(C=>C!==S),ne=P(S);if(!H.length||!p)return F(U),Reflect.apply(T,k,[U,...O]);let te=m.getOptions().ignoreSpans,le=H?.reduce((C,V)=>{let fe=P(V);return!fe.timestamp||te&&_r(fe,te)?C:C?Math.max(C,fe.timestamp):fe.timestamp},void 0),v=ne.start_timestamp,Y=Math.min(v?v+u/1e3:1/0,Math.max(v||-1/0,Math.min(U,le||1/0)));return F(Y),Reflect.apply(T,k,[Y,...O])}});function E(){o&&(clearTimeout(o),o=void 0)}function I(T){E(),o=setTimeout(()=>{!r&&n.size===0&&s&&(i=WT,S.end(T))},c)}function B(T){o=setTimeout(()=>{!r&&s&&(i=$T,S.end(T))},d)}function L(T){E(),n.set(T,!0);let k=Z();B(k+d/1e3)}function q(T){if(n.has(T)&&n.delete(T),n.size===0){let k=Z();I(k+c/1e3)}}function F(T){r=!0,n.clear(),a.forEach(H=>H()),ut(h,g);let k=P(S),{start_timestamp:$}=k;if(!$)return;k.data[Fn]||S.setAttribute(Fn,i);let O=k.status;(!O||O==="unknown")&&S.setStatus({code:1}),_.log(`[Tracing] Idle span "${k.op}" finished`);let w=bn(S).filter(H=>H!==S),U=0;w.forEach(H=>{H.isRecording()&&(H.setStatus({code:2,message:"cancelled"}),H.end(T),b&&_.log("[Tracing] Cancelling span since span ended early",JSON.stringify(H,void 0,2)));let ne=P(H),{timestamp:te=0,start_timestamp:le=0}=ne,v=le<=T,Y=(u+c)/1e3,C=te-le<=Y;if(b){let V=JSON.stringify(H,void 0,2);v?C||_.log("[Tracing] Discarding span since it finished after idle span final timeout",V):_.log("[Tracing] Discarding span since it happened after idle span was finished",V)}(!C||!v)&&(pp(S,H),U++)}),U>0&&S.setAttribute("sentry.idle_span_discarded_spans",U)}return a.push(m.on("spanStart",T=>{if(r||T===S||P(T).timestamp||T instanceof $n&&T.isStandaloneSpan())return;bn(S).includes(T)&&L(T.spanContext().spanId)})),a.push(m.on("spanEnd",T=>{r||q(T.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",T=>{T===S&&(s=!0,I(),n.size&&B())})),t.disableAutoFinish||I(),setTimeout(()=>{r||(S.setStatus({code:2,message:"deadline_exceeded"}),i=jT,S.end())},u),S}function qT(e){let t=Tt(e);return ut(M(),t),b&&_.log("[Tracing] Started span is an idle span"),t}f();var YT="7";function Bp(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function VT(e){return`${Bp(e)}${e.projectId}/envelope/`}function JT(e,t){let n={sentry_version:YT};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function yi(e,t,n){return t||`${VT(e)}?${JT(e,n)}`}function Uu(e,t){let n=Zo(e);if(!n)return"";let r=`${Bp(n)}embed/error-page/`,o=`dsn=${He(n)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}f();f();var Du=[];function KT(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Bu(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){let o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return KT(r)}function Fp(e,t){let n={};return t.forEach(r=>{r&&Hu(e,r,n)}),n}function Fu(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Hu(e,t,n){if(n[t.name]){b&&_.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Du.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Du.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}b&&_.log(`Integration installed: ${t.name}`)}function Qr(e){let t=y();if(!t){b&&_.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}f();f();function Vs(e,t){return t?Ue(t,()=>{let n=X(),r=n?ri(n):Xo(t);return[n?ke(n):hr(e,t),r]}):[void 0,void 0]}f();var Hp={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};f();function XT(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Gp(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}
9),n&&r&&(o.dsn=He(r)),Oe(o,[XT(e)])}var QT=100;function ZT(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function hn(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function $p(e,t){let n=Gu(),r=Wp(e);r===void 0?n.set(e,[t]):r.length>=QT?(Zr(e,r),n.set(e,[t])):n.set(e,[...r,t])}function qn(e,t=M(),n=$p){let r=t?.getClient()??y();if(!r){b&&_.warn("No client available to capture log.");return}let{release:o,environment:i,enableLogs:s=!1,beforeSendLog:a}=r.getOptions();if(!s){b&&_.warn("logging option not enabled, log will not be captured.");return}let[,c]=Vs(r,t),u={...e.attributes},{user:{id:d,email:l,username:p}}=ey(t);hn(u,"user.id",d,!1),hn(u,"user.email",l,!1),hn(u,"user.name",p,!1),hn(u,"sentry.release",o),hn(u,"sentry.environment",i);let{name:m,version:h}=r.getSdkMetadata()?.sdk??{};hn(u,"sentry.sdk.name",m),hn(u,"sentry.sdk.version",h);let g=r.getIntegrationByName("Replay"),S=g?.getReplayId(!0);hn(u,"sentry.replay_id",S),S&&g?.getRecordingMode()==="buffer"&&hn(u,"sentry._internal.replay_is_buffering",!0);let E=e.message;if(Dn(E)){let{__sentry_template_string__:R,__sentry_template_values__:O=[]}=E;O?.length&&(u["sentry.message.template"]=R),O.forEach((w,U)=>{u[`sentry.message.parameter.${U}`]=w})}let I=Qt(t);hn(u,"sentry.trace.parent_span_id",I?.spanContext().spanId);let B={...e,attributes:u};r.emit("beforeCaptureLog",B);let L=a?Je(()=>a(B)):B;if(!L){r.recordDroppedEvent("before_send","log_item",1),b&&_.warn("beforeSendLog returned null, log will not be captured.");return}let{level:q,message:F,attributes:T={},severityNumber:k}=L,$={timestamp:Z(),level:q,body:F,trace_id:c?.trace_id,severity_number:k??Hp[q],attributes:Object.keys(T).reduce((R,O)=>(R[O]=ZT(T[O]),R),{})};n(r,$),r.emit("afterCaptureLog",L)}function Zr(e,t){let n=t??Wp(e)??[];if(n.length===0)return;let r=e.getOptions(),o=Gp(n,r._metadata,r.tunnel,e.getDsn());Gu().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Wp(e){return Gu().get(e)}function ey(e){let t=lt().getScopeData();return An(t,ue().getScopeData()),An(t,e.getScopeData()),t}function Gu(){return Xt("clientToLogBufferMap",()=>new WeakMap)}f();f();function ty(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function jp(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=He(r)),Oe(o,[ty(e)])}var ny=1e3;function ry(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function Rn(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function zp(e,t){let n=Wu(),r=qp(e);r===void 0?n.set(e,[t]):r.length>=ny?(eo(e,r),n.set(e,[t])):n.set(e,[...r,t])}function oy(e,t,n){let{release:r,environment:o}=t.getOptions(),i={...e.attributes},{user:{id:s,email:a,username:c}}=sy(n);Rn(i,"user.id",s,!1),Rn(i,"user.email",a,!1),Rn(i,"user.name",c,!1),Rn(i,"sentry.release",r),Rn(i,"sentry.environment",o);let{name:u,version:d}=t.getSdkMetadata()?.sdk??{};Rn(i,"sentry.sdk.name",u),Rn(i,"sentry.sdk.version",d);let l=t.getIntegrationByName("Replay"),p=l?.getReplayId(!0);return Rn(i,"sentry.replay_id",p),p&&l?.getRecordingMode()==="buffer"&&Rn(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function iy(e,t,n){let r={};for(let c in e.attributes)e.attributes[c]!==void 0&&(r[c]=ry(e.attributes[c]));let[,o]=Vs(t,n),i=Qt(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0;return{timestamp:Z(),trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:r}}function $u(e,t){let n=t?.scope??M(),r=t?.captureSerializedMetric??zp,o=n?.getClient()??y();if(!o){b&&_.warn("No client available to capture metric.");return}let{_experiments:i,enableMetrics:s,beforeSendMetric:a}=o.getOptions();
9if(!(s??i?.enableMetrics??!0)){b&&_.warn("metrics option not enabled, metric will not be captured.");return}let u=oy(e,o,n);o.emit("processMetric",u);let d=a||i?.beforeSendMetric,l=d?d(u):u;if(!l){b&&_.log("`beforeSendMetric` returned `null`, will not send metric.");return}let p=iy(l,o,n);b&&_.log("[Metric]",p),r(o,p),o.emit("afterCaptureMetric",l)}function eo(e,t){let n=t??qp(e)??[];if(n.length===0)return;let r=e.getOptions(),o=jp(n,r._metadata,r.tunnel,e.getDsn());Wu().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function qp(e){return Wu().get(e)}function sy(e){let t=lt().getScopeData();return An(t,ue().getScopeData()),An(t,e.getScopeData()),t}function Wu(){return Xt("clientToMetricBufferMap",()=>new WeakMap)}f();f();var to=Symbol.for("SentryBufferFullError");function Er(e=100){let t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function o(s){if(!n())return gr(to);let a=s();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(s){if(!t.size)return jn(!0);let a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;let c=[a,new Promise(u=>setTimeout(()=>u(!1),s))];return Promise.race(c)}return{get $(){return Array.from(t)},add:o,drain:i}}f();function Js(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function Yp(e,t){return e[t]||e.all||0}function bi(e,t,n=Date.now()){return Yp(e,t)>n}function Ii(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,d]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)o.all=r+p;else for(let m of u.split(";"))m==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+Js(s,r):t===429&&(o.all=r+60*1e3);return o}var ju=64;function Ai(e,t,n=Er(e.bufferSize||ju)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(Mt(s,(l,p)=>{let m=Hs(p);bi(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):a.push(l)}),a.length===0)return Promise.resolve({});let c=Oe(s[0],a),u=l=>{Mt(c,(p,m)=>{e.recordDroppedEvent(l,Hs(m))})},d=()=>t({body:Hn(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&b&&_.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Ii(r,l),l),l=>{throw u("network_error"),b&&_.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===to)return b&&_.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:i,flush:o}}f();function Vp(e,t,n){let r=[{type:"client_report"},{timestamp:n||xt(),discarded_events:e}];return Oe(t?{dsn:t}:{},[r])}f();function Ks(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}f();function Jp(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[qr],exclusive_time:s?.[qt],measurements:e.measurements,is_segment:!0}}function Kp(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[qr]:e.profile_id},...e.exclusive_time&&{[qt]:e.exclusive_time}}}},measurements:e.measurements}}var Xp="Not capturing exception because it's already been captured.",Qp="Discarded session because of missing or non-string release",om=Symbol.for("SentryInternalError"),im=Symbol.for("SentryDoNotSendEventError"),ay=5e3;function Xs(e){return{message:e,[om]:!0}}function zu(e){return{message:e,[im]:!0}}function Zp(e){return!!e&&typeof e=="object"&&om in e}function em(e){return!!e&&typeof e=="object"&&im in e}function tm(e,t,n,r,o){let i=0,s,a=!1;e.on(n,()=>{i=0,clearTimeout(s),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?o(e):a||(a=!0,s=setTimeout(()=>{o(e)},ay))}),e.on("flush",()=>{o(e)})}var Ri=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Er(t.transportOptions?.bufferSize??ju),t.dsn?this._dsn=Zo(t.dsn):b&&_.warn("No DSN provided, client will not send events."),this._dsn){let r=yi(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&tm(this,"afterCaptureLog","flushLogs",dy,Zr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&tm(this,"afterCaptureMetric","flushMetrics",ly,eo)}captureException(t,n,r){let o=de();if(Is(t))return b&&_.log(Xp),o;let i={event_id:o,...n};return this._process(()=>this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r)).then(s=>s),"error"),i.event_id}captureMessage(t,n,r,o){let i={event_id:de(),...r},s=Dn(t)?t:String(t),a=at(t),c=a?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(()=>c.then(u=>this._captureEvent(u,i,o)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){let o=de();if(n?.originalException&&Is(n.originalException))return b&&_.log(Xp),o;let i={event_id:o,...n},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope,u=nm(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),u),i.event_id}captureSession(t){this.sendSession(t),Tn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){let n=this._transport;if(!n)return!0;
9this.emit("flush");let r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){let n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];Hu(this,t,this._integrations),n||Fu(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=yp(t,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=hu(r,Su(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){let{release:n,environment:r=In}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!n){b&&_.warn(Qp);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){b&&_.warn(Qp);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);let o=Tp(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;b&&_.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){let r=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>n(...i);return r.add(o),()=>{r.delete(o)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return b&&_.error("Error while sending envelope:",n),{}}return b&&_.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Fp(this,t),Fu(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",o=!1,i=n.exception?.values;if(i){o=!0,r=!1;for(let c of i)if(c.mechanism?.handled===!1){r=!0;break}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Tn(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),di(i,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:Xo(r),...a.contexts};let c=hr(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=M(),o=ue()){return b&&qu(t)&&_.log(`Captured error event \`${Ks(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{b&&(em(i)?_.log(i.message):Zp(i)?_.warn(i.message):_.warn(i))})}_processEvent(t,n,r,o){let i=this.getOptions(),{sampleRate:s}=i,a=sm(t),c=qu(t),d=`before send for type \`${t.type||"error"}\``,l=typeof s>"u"?void 0:kt(s);if(c&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),gr(zu(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let p=nm(t.type);return this._prepareEvent(t,n,r,o).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),zu("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;let g=uy(this,i,m,n);return cy(g,d)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),a){let E=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",E)}throw zu(`${d} returned \`null\`, will not send event.`)}let h=r.getSession()||o.getSession();if(c&&h&&this._updateSessionFromEvent(h,m),a){let S=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,E=m.spans?m.spans.length:0,I=S-E;I>0&&this.recordDroppedEvent("before_send","span",I)}let g=m.transaction_info;if(a&&g&&m.transaction!==t.transaction){let S="custom";m.transaction_info={...g,source:S}}return this.sendEvent(m,n),m}).then(null,m=>{throw em(m)||Zp(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),Xs(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 10Reason: ${m}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===to&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){b&&_.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){b&&_.log("No outcomes to send");return}if(!this._dsn){b&&_.log("No dsn provided, will not send outcomes");return}b&&_.log("Sending outcomes:",t);let n=Vp(t,this._options.tunnel&&He(this._dsn));this.sendEnvelope(n)}};function nm(e){return e==="replay_event"?"replay":e||"error"}function cy(e,t){let n=`${t} must return \`null\` or a valid event.`;if(jt(e))return e.then(r=>{if(!je(r)&&r!==null)throw Xs(n);return r},r=>{throw Xs(`${t} rejected with ${r}`)});if(!je(e)&&e!==null)throw Xs(n);return e}function uy(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:a}=t,c=n;
10if(qu(c)&&o)return o(c,r);if(sm(c)){if(s||a){let u=Jp(c);if(a?.length&&_r(u,a))return null;if(s){let d=s(u);d?c=Bn(n,Kp(d)):ii()}if(c.spans){let d=[],l=c.spans;for(let m of l){if(a?.length&&_r(m,a)){Ep(l,m);continue}if(s){let h=s(m);h?d.push(h):(ii(),d.push(m))}else d.push(m)}let p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(i){if(c.spans){let u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(c,r)}}return c}function qu(e){return e.type===void 0}function sm(e){return e.type==="transaction"}function ly(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+am(e.attributes)}function dy(e){let t=0;return e.message&&(t+=e.message.length*2),t+am(e.attributes)}function am(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*rm(n[0]):at(n)?t+=rm(n):t+=100}),t}function rm(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}f();function Yu(e,t){t.debug===!0&&(b?_.enable():Je
10(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),M().update(t.initialScope);let r=new e(t);return Qs(r),r.init(),r}function Qs(e){M().setClient(e)}f();var Vu=100,Ju=5e3,fy=36e5;function Ku(e){function t(...n){b&&_.log("[Offline]:",...n)}return n=>{let r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");let o=n.createStore(n),i=Ju,s;function a(l,p,m){return Fs(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,p,m):!0}function c(l){s&&clearTimeout(s),s=setTimeout(async()=>{s=void 0;let p=await o.shift();p&&(t("Attempting to send previously queued event"),p[0].sent_at=new Date().toISOString(),d(p,!0).catch(m=>{t("Failed to retry sending",m)}))},l),typeof s!="number"&&s.unref&&s.unref()}function u(){s||(c(i),i=Math.min(i*2,fy))}async function d(l,p=!1){if(!p&&Fs(l,["replay_event","replay_recording"]))return await o.push(l),c(Vu),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");let m=await r.send(l),h=Vu;if(m){if(m.headers?.["retry-after"])h=Js(m.headers["retry-after"]);else if(m.headers?.["x-sentry-rate-limits"])h=6e4;else if((m.statusCode||0)>=400)return m}return c(h),i=Ju,m}catch(m){if(await a(l,m,i))return p?await o.unshift(l):await o.push(l),u(),t("Error sending. Event queued.",m),{};throw m}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(i=Ju,c(Vu)),r.flush(l))}}}f();var no="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function cm(e,t){let n;return Mt(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function py(e,t){return n=>{let r=e(n);return{...r,send:async o=>{let i=cm(o,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(o)}}}}function my(e,t){return Oe(t?{...e[0],dsn:t}:e[0],e[1])}function Xu(e,t){return n=>{let r=e(n),o=new Map,i=t||(u=>{let d=u.getEvent();return d?.extra?.[no]&&Array.isArray(d.extra[no])?d.extra[no]:[]});function s(u,d){let l=d?`${u}:${d}`:u,p=o.get(l);if(!p){let m=Cs(u);if(!m)return;let h=yi(m,n.tunnel);p=d?py(e,d)({...n,url:h}):e({...n,url:h}),o.set(l,p)}return[u,p]}async function a(u){function d(h){let g=h?.length?h:["event"];return cm(u,g)}let l=i({envelope:u,getEvent:d}).map(h=>typeof h=="string"?s(h,void 0):s(h.dsn,h.release)).filter(h=>!!h),p=l.length?l:[["",r]];return(await Promise.all(p.map(([h,g])=>g.send(my(u,h)))))[0]}async function c(u){let d=[...o.values(),r];return(await Promise.all(d.map(p=>p.flush(u)))).every(p=>p)}return{send:a,flush:c}}}f();f();var hy="thismessage:/";function ro(e){return"isRelative"in e}function Tr(e,t){let n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?hy:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let o=new URL(e,r);return n?{isRelative:n,pathname:o.pathname,search:o.search,hash:o.hash}:o}catch{}}function Qu(e){if(ro(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function tn(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vi(e){return e.split(/[?#]/,1)[0]}function Ni(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return gy(e,n)||_y(e,r)}function _y(e,t){return t?um(e)===um(t):!1}function gy(e,t){let n=Tr(e);return!n||ro(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function um(e){return e[e.length-1]==="/"?e.slice(0,-1):e}f();function Zs(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}var Zu=Zs;f();function el(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}f();function tl(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:gt})),version:gt}),e._metadata=o}f();function yr(e={}){let t=e.client||y();if(!hi()||!t)return{};let n=st(),r=zt(n);if(r.getTraceData)return r.getTraceData(e);let o=e.scope||M(),i=e.span||X(),s=i?oi(i):Sy(o),a=i?ke(i):hr(t,o),c=vs(a);if(!xs.test(s))return _.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let d={"sentry-trace":s,baggage:c};return e.propagateTraceparent&&(d.traceparent=i?fp(i):Ey(o)),d}function Sy(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ti(t,r,n)}function Ey(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ni(t,r,n)}f();function nl(e,t,n){let r,o,i,s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function d(){return o!==void 0||i!==void 0?c():r}function l(){return o&&clearTimeout(o),o=a(c,t),s&&i===void 0&&(i=a(c,s)),r}return l.cancel=u,l.flush=d,l}f();var Ty=100;function ft(e,t){let n=y(),r=ue();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Ty}=n.getOptions();if(i<=0)return;let a={timestamp:xt(),...e},c=o?Je(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}f();var lm,yy="FunctionToString",dm=new WeakMap,by=()=>({name:yy,setupOnce(){lm=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=lr(this),n=dm.has(y())&&t!==void 0?t:this;return lm.apply(n,e)}}catch{}},setup(e){dm.set(e,!0)}}),Ci=by;f();var Iy=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Ay="EventFilters",ta=(e={})=>{let t;return{name:Ay,setup(n){let r=n.getOptions();t=fm(e,r)},processEvent(n,r,o){if(!t){let i=o.getOptions();t=fm(e,i)}return Ry(n,t)?null:n}}},wi=(e={})=>({...ta(e),name:"InboundFilters"});function fm(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Iy],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ry(e,t){if(e.type){if(e.type==="transaction"&&Ny(e,t.ignoreTransactions))return b&&_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 11Event: ${dn(e)}`),!0}else{if(vy(e,t.ignoreErrors))return b&&_.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 12Event: ${dn(e)}`),!0;if(ky(e))return b&&_.warn(`Event dropped due to not having an error message, error type or stacktrace. 13Event: ${dn(e)}`),!0;if(Cy(e,t.denyUrls))return b&&_.warn(`Event dropped due to being matched by \`denyUrls\` option. 14Event: ${dn(e)}. 15Url: ${ea(e)}`),!0;if(!wy(e,t.allowUrls))return b&&_.warn(`Event dropped due to not being matched by \`allowUrls\` option. 16Event: ${dn(e)}. 17Url: ${ea(e)}`),!0}return!1}function vy(e,t){return t?.length?Ks(e).some(n=>ze(n,t)):!1}function Ny(e,t){if(!t?.length)return!1;let n=e.transaction;return n?ze(n,t):!1}function Cy(e,t){if(!t?.length)return!1;let n=ea(e);return n?ze(n,t):!1}function wy(e,t){if(!t?.length)return!0;let n=ea(e);return n?ze(n,t):!0}function xy(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ea(e){try{let n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?xy(n):null}catch{return b&&_.error(`Cannot extract url for event ${dn(e)}`),null}}function ky(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}f();
17function ol(e,t,n,r,o,i){if(!o.exception?.values||!i||!Ct(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=rl(e,t,r,i.originalException,n,o.exception.values,s,0))}function rl(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(Ct(r[o],Error)){pm(s,a);let u=e(t,r[o]),d=c.length;mm(u,o,d,a),c=rl(e,t,n,r[o],o,[u,...c],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(Ct(u,Error)){pm(s,a);let l=e(t,u),p=c.length;mm(l,`errors[${d}]`,p,a),c=rl(e,t,n,u,o,[l,...c],l,p)}}),c}function pm(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function mm(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}f();f();var _m=new Map,hm=new Set;function Oy(e){if(N._sentryModuleMetadata)for(let t of Object.keys(N._sentryModuleMetadata)){let n=N._sentryModuleMetadata[t];if(hm.has(t))continue;hm.add(t);let r=e(t);for(let o of r.reverse())if(o.filename){_m.set(o.filename,n);break}}}function My(e,t){return Oy(e),_m.get(t)}function na(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;let o=My(e,r.filename);o&&(r.module_metadata=o)})})}function ra(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}var il=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Mt(t,(n,r)=>{if(r==="event"){let o=Array.isArray(n)?n[1]:void 0;o&&(ra(o),n[1]=o)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let n=e.getOptions().stackParser;na(n,t)})}});f();f();function br(e){let t="console";et(t,e),tt(t,Ly)}function Ly(){"console"in N&&ur.forEach(function(e){e in N.console&&Se(N.console,e,function(t){return Hr[e]=t,function(...n){Me("console",{args:n,level:e}),Hr[e]?.apply(N.console,n)}})})}f();function Yn(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var Py="CaptureConsole",Uy=(e={})=>{let t=e.levels||ur,n=e.handled??!0;return{name:Py,setup(r){"console"in N&&br(({args:o,level:i})=>{y()!==r||!t.includes(i)||Dy(o,i,n)})}}},sl=Uy;function Dy(e,t,n){let r=Yn(t),o=new Error,i={level:Yn(t),extra:{arguments:e}};Ue(s=>{if(s.addEventProcessor(u=>(u.logger="console",Ke(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){let u=`Assertion failed: ${dr(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(u,r,{captureContext:i,syntheticException:o})}return}let a=e.find(u=>u instanceof Error);if(a){Q(a,i);return}let c=dr(e," ");s.captureMessage(c,r,{captureContext:i,syntheticException:o})})}f();var By="Dedupe",Fy=()=>{let e;return{name:By,processEvent(t){if(t.type)return t;try{if(Hy(t,e))return b&&_.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},xi=Fy;function Hy(e,t){return t?!!(Gy(e,t)||$y(e,t)):!1}function Gy(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Em(e,t)||!Sm(e,t))}function $y(e,t){let n=gm(t),r=gm(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Em(e,t)||!Sm(e,t))}function Sm(e,t){let n=Gr(e),r=Gr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Em(e,t){let n=e.fingerprint,r=t.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 gm(e){return e.exception?.values?.[0]}f();var Wy="ExtraErrorData",jy=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:Wy,processEvent(r,o,i){let{maxValueLength:s}=i.getOptions();return zy(r,o,t,n,s)}}},al=jy;function zy(e,t={},n,r,o){if(!t.originalException||!St(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,s=Tm(t.originalException,r,o);if(s){let a={...e.contexts},c=De(s,n);return je(c)&&(be(c,"__sentry_skip_normalization__",!0),a[i]=c),{...e,contexts:a}}return e}function Tm(e,t,n){try{let r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let i of Object.keys(e)){if(r.indexOf(i)!==-1)continue;let s=e[i];o[i]=St(s)||typeof s=="string"?n?ln(`${s}`,n):`${s}`:s}if(t&&e.cause!==void 0)if(St(e.cause)){let i=e.cause.name||e.cause.constructor.name;o.cause={[i]:Tm(e.cause,!1,n)}}else o.cause=e.cause;if(typeof e.toJSON=="function"){let i=e.toJSON();for(let s of Object.keys(i)){let a=i[s];o[s]=St(a)?a.toString():a}}return o}catch(r){b&&_.error("Unable to extract extra data from the Error object:",r)}return null}f();f();function qy(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var Yy=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Vy(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Yy.exec(t);return n?n.slice(1):[]}function ym(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=qy(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function bm(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Im(e,t){e=ym(e).slice(1),t=ym(t).slice(1);let n=bm(e.split("/")),r=bm(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function Am(e,t){let n=Vy(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var Jy="RewriteFrames",cl=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in N&&!!N.window,o=e.iteratee||Ky({isBrowser:r,root:t,prefix:n});function i(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:s(c.stacktrace)}}))}}}catch{return a}}function s(a){return{...a,frames:a?.frames?.map(c=>o(c))}}return{name:Jy,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=i(c)),c}}};function Ky({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(o||i){let s=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?Im(t,s):Am(s);r.filename=`${n}${a}`}return r}}f();var Xy=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],Qy=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],Zy={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},vm=["select","insert","upsert","update","delete"];function oa(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function ia(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function eb(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function tb(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;let[n,...r]=t.split("."),o;return n?.startsWith("fts")?o="textSearch":n?.startsWith("plfts")?o="textSearch[plain]":n?.startsWith("phfts")?o="textSearch[phrase]":n?.startsWith("wfts")?o="textSearch[websearch]":o=n&&Zy[n]||"filter",`${o}(${e}, ${r.join(".")})`}function Rm(e,t=!1){return new Proxy(e,{apply(n,r,o){return Ye({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[G]:"auto.db.supabase",[se]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},i=>Reflect.apply(n,r,o).then(s=>(s&&typeof s=="object"&&"error"in s&&s.error?(i.setStatus({code:2}),Q(s.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):i.setStatus({code:1}),i.end(),s)).catch(s=>{throw i.setStatus({code:2}),i.end(),Q(s,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),s}).then(...o))}})}function nb(e){let t=e.auth;if(!(!t||ia(e.auth))){for(let n of Xy){let r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=Rm(r))}for(let n of Qy){let r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=Rm(r,!0))}oa(e.auth)}}function rb(e){ia(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){let o=Reflect.apply(t,n,r),i=o.constructor;return ib(i),o}}),oa(e.prototype.from))}function ob(e){ia(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){let o=vm,i=n,s=eb(i.method,i.headers);if(!o.includes(s)||!i?.url?.pathname||typeof i.url.pathname!="string")return Reflect.apply(t,n,r);let a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];
17for(let[m,h]of i.url.searchParams.entries())u.push(tb(m,h));let d=Object.create(null);if(je(i.body))for(let[m,h]of Object.entries(i.body))d[m]=h;let l=`${s==="select"?"":`${s}${d?"(...) ":""}`}${u.join(" ")} from(${c})`,p={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[G]:"auto.db.supabase",[se]:"db"};return u.length&&(p["db.query"]=u),Object.keys(d).length&&(p["db.body"]=d),Ye({name:l,attributes:p},m=>Reflect.apply(t,n,[]).then(h=>{if(m&&(h&&typeof h=="object"&&"status"in h&&mn(m,h.status||500),m.end()),h.error){let E=new Error(h.error.message);h.error.code&&(E.code=h.error.code),h.error.details&&(E.details=h.error.details);let I={};u.length&&(I.query=u),Object.keys(d).length&&(I.body=d),Q(E,B=>(B.addEventProcessor(L=>(Ke(L,{handled:!1,type:"auto.db.supabase.postgres"}),L)),B.setContext("supabase",I),B))}let g={type:"supabase",category:`db.${s}`,message:l},S={};return u.length&&(S.query=u),Object.keys(d).length&&(S.body=d),Object.keys(S).length&&(g.data=S),ft(g),h},h=>{throw m&&(mn(m,500),m.end()),h}).then(...r))}}),oa(e.prototype.then))}function ib(e){for(let t of vm)ia(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,o){let i=Reflect.apply(n,r,o),s=i.constructor;return b&&_.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),ob(s),i}}),oa(e.prototype[t]))}var sa=e=>{if(!e){b&&_.warn("Supabase integration was not installed because no Supabase client was provided.");return}let t=e.constructor===Function?e:e.constructor;rb(t),nb(e)},sb="Supabase",ab=e=>({setupOnce(){sa(e)},name:sb}),ul=e=>ab(e.supabaseClient);f();var cb=10,ub="ZodErrors";function lb(e){return St(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function db(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function fb(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function pb(e){let t=new Set;for(let r of e.issues){let o=fb(r.path);o.length>0&&t.add(o)}let n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){let o=e.issues[0];o!==void 0&&"expected"in o&&typeof o.expected=="string"&&(r=o.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${ln(n.join(", "),100)}`}function mb(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!lb(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(db);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:pb(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(o){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message} 18${o.stack}`:"unknown"}}}}}var hb=(e={})=>{let t=e.limit??cb;return{name:ub,processEvent(n,r){return mb(t,e.saveZodIssuesAsAttachment,n,r)}}},ll=hb;f();var dl=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Mt(n,(r,o)=>{if(o==="event"){let i=Array.isArray(r)?r[1]:void 0;i&&(ra(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;let r=t.getOptions().stackParser;na(r,n)})},processEvent(t){let n=_b(t);if(n){let r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(s=>e.filterKeys.includes(s)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function _b(e){let t=Gr(e);if(t)return t.filter(n=>!!n.filename&&(n.lineno??n.colno)!=null).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(Nm)).map(r=>r.slice(Nm.length)):[])}var Nm="_sentryBundlerPluginAppKey:";f();f();var Cm=100,wm=10,aa="flag.evaluation.";function Lt(e){let n=M().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function yt(e,t,n=Cm){let r=M().getScopeData().contexts;r.flags||(r.flags={values:[]});let o=r.flags.values;gb(o,e,t,n)}function gb(e,t,n,r){if(typeof n!="boolean")return;if(e.length>
18r){b&&_.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let o=e.findIndex(i=>i.flag===t);o!==-1&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function bt(e,t,n=wm){if(typeof t!="boolean")return;let r=X();if(!r)return;let o=P(r).data;if(`${aa}${e}`in o){r.setAttribute(`${aa}${e}`,t);return}Object.keys(o).filter(s=>s.startsWith(aa)).length<n&&r.setAttribute(`${aa}${e}`,t)}var fl=()=>({name:"FeatureFlags",processEvent(e,t,n){return Lt(e)},addFeatureFlag(e,t){yt(e,t),bt(e,t)}});f();var pl=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;typeof t.isOn=="function"&&Se(t,"isOn",xm),typeof t.getFeatureValue=="function"&&Se(t,"getFeatureValue",xm)},processEvent(t,n,r){return Lt(t)}});function xm(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(yt(n,r),bt(n,r)),r}}f();function ml(e,t,n,r,o){if(!e.fetchData)return;let{method:i,url:s}=e.fetchData,a=xe()&&t(s);if(e.endTimestamp&&a){let m=e.fetchData.__span;if(!m)return;let h=r[m];h&&(Tb(h,e),Sb(h,e,o),delete r[m]);return}let{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof o=="object"?o:{spanOrigin:o},d=!!X(),l=a&&d?Tt(bb(s,i,c)):new Ze;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){let m=e.args[0],h=e.args[1]||{},g=Eb(m,h,xe()&&d?l:void 0,u);g&&(e.args[1]=h,h.headers=g)}let p=y();if(p){let m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",l,m)}return l}function Sb(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Eb(e,t,n,r){let o=yr({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;let c=t.headers||(Vo(e)?e.headers:void 0);if(c)if(yb(c)){let u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),s){let d=u.get("baggage");d?ca(d)||u.set("baggage",`${d},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(c)){let u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&a&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);let d=c.find(l=>l[0]==="baggage"&&ca(l[1]));return s&&!d&&u.push(["baggage",s]),u}else{let u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,p=l?Array.isArray(l)?[...l]:[l]:[],m=l&&(Array.isArray(l)?l.find(g=>ca(g)):ca(l));s&&!m&&p.push(s);let h={...c,"sentry-trace":u??i,baggage:p.length>0?p.join(","):void 0};return r&&a&&!d&&(h.traceparent=a),h}else return{...o}}function Tb(e,t){if(t.response){mn(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function ca(e){return e.split(",").some(t=>t.trim().startsWith(Rs))}function yb(e){return typeof Headers<"u"&&Ct(e,Headers)}function bb(e,t,n){let r=Tr(e);return{name:r?`${t} ${Qu(r)}`:t,attributes:Ib(e,r,t,n)}}function Ib(e,t,n,r){let o={url:e,type:"fetch","http.method":n,[G]:r,[se]:"http.client"};return t&&(ro(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}f();function ki(e,t={},n=M()){let{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||y();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}var ua={};jc(ua,{debug:()=>Rb,error:()=>Cb,fatal:()=>wb,fmt:()=>Zu,info:()=>vb,trace:()=>Ab,warn:()=>Nb});f();function oo(e,t,n,r,o){qn({level:e,message:t,attributes:n,severityNumber:o},r)}function Ab(e,t,{scope:n}={}){oo("trace",e,t,n)}function Rb(e,t,{scope:n}={}){oo("debug",e,t,n)}function vb(e,t,{scope:n}={}){oo("info",e,t,n)}function Nb(e,t,{scope:n}={}){oo("warn",e,t,n)}function Cb(e,t,{scope:n}={}){oo("error",e,t,n)}function wb(e,t,{scope:n}={}){oo("fatal",e,t,n)}f();f();function Oi(e,t,n){return"util"in N&&typeof N.util.format=="function"?N.util.format(...e):xb(e,t,n)}function xb(e,t,n){return e.map(r=>at(r)?String(r):JSON.stringify(De(r,t,n))).join(" ")}function km(e){return/%[sdifocO]/.test(e)}
18function Om(e,t){let n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((o,i)=>{n[`sentry.message.parameter.${i}`]=o}),n}var kb="ConsoleLogs",Mm={[G]:"auto.log.console"},Ob=(e={})=>{let t=e.levels||ur;return{name:kb,setup(n){let{enableLogs:r,normalizeDepth:o=3,normalizeMaxBreadth:i=1e3}=n.getOptions();if(!r){b&&_.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}br(({args:s,level:a})=>{if(y()!==n||!t.includes(a))return;let c=s[0],u=s.slice(1);if(a==="assert"){if(!c){let m=u.length>0?`Assertion failed: ${Oi(u,o,i)}`:"Assertion failed";qn({level:"error",message:m,attributes:Mm})}return}let d=a==="log",l=s.length>1&&typeof s[0]=="string"&&!km(s[0]),p={...Mm,...l?Om(c,u):{}};qn({level:d?"info":a,message:Oi(s,o,i),severityNumber:d?10:void 0,attributes:p})})}}},hl=Ob;var la={};jc(la,{count:()=>Mb,distribution:()=>Pb,gauge:()=>Lb});f();function _l(e,t,n,r){$u({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Mb(e,t=1,n){_l("counter",e,t,n)}function Lb(e,t,n){_l("gauge",e,t,n)}function Pb(e,t,n){_l("distribution",e,t,n)}f();var Ub=["trace","debug","info","warn","error","fatal"];function gl(e={}){let t=new Set(e.levels??Ub),n=e.client;return{log(r){let{type:o,level:i,message:s,args:a,tag:c,date:u,...d}=r,l=n||y();if(!l)return;let p=Fb(o,i);if(!t.has(p))return;let{normalizeDepth:m=3,normalizeMaxBreadth:h=1e3}=l.getOptions(),g=[];s&&g.push(s),a&&a.length>0&&g.push(Oi(a,m,h));let S=g.join(" ");d["sentry.origin"]="auto.log.consola",c&&(d["consola.tag"]=c),o&&(d["consola.type"]=o),i!=null&&typeof i=="number"&&(d["consola.level"]=i),qn({level:p,message:S,attributes:d})}}}var Db={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},Bb={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function Fb(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){let n=Db[e];if(n)return n}if(typeof t=="number"){let n=Bb[t];if(n)return n}return"info"}f();var Lm="gen_ai.prompt",Vn="gen_ai.system",Be="gen_ai.request.model",io="gen_ai.request.stream",Jn="gen_ai.request.temperature",so="gen_ai.request.max_tokens",Kn="gen_ai.request.frequency_penalty",ao="gen_ai.request.presence_penalty",Xn="gen_ai.request.top_p",da="gen_ai.request.top_k",Pm="gen_ai.request.encoding_format",Um="gen_ai.request.dimensions",It="gen_ai.response.finish_reasons",nt="gen_ai.response.model",nn="gen_ai.response.id",Dm="gen_ai.response.stop_reason",Pt="gen_ai.usage.input_tokens",Ut="gen_ai.usage.output_tokens",Dt="gen_ai.usage.total_tokens",At="gen_ai.operation.name",Bt="gen_ai.request.messages",Le="gen_ai.response.text",Qn="gen_ai.request.available_tools",Ir="gen_ai.response.streaming",Ge="gen_ai.response.tool_calls",Sl="gen_ai.agent.name",Bm="gen_ai.pipeline.name",Fm="gen_ai.usage.cache_creation_input_tokens",Hm="gen_ai.usage.cache_read_input_tokens";var Gm="gen_ai.invoke_agent",$m="openai.response.id",El="openai.response.model",Wm="openai.response.timestamp",jm="openai.usage.completion_tokens",zm="openai.usage.prompt_tokens",fa={CHAT:"chat",RESPONSES:"responses",EMBEDDINGS:"embeddings"},Tl="anthropic.response.timestamp";f();f();var ma=e=>new TextEncoder().encode(e).length,ha=e=>ma(JSON.stringify(e));function bl(e,t){if(ma(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){let i=Math.floor((n+r)/2),s=e.slice(0,i);ma(s)<=t?(o=s,n=i+1):r=i-1}return o}function Hb(e){return typeof e=="string"?e:"text"in e?e.text:""}function qm(e,t){return typeof e=="string"?t:{...e,text:t}}function Gb(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function $b(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function Mi(e){return!e||typeof e!="object"?!1:Wb(e)||Vm(e)||"media_type"in e&&typeof e.media_type=="string"&&"data"in e||"image_url"in e&&typeof e.image_url=="string"&&e.image_url.startsWith("data:")||"type"in e&&(e.type==="blob"||e.type==="base64")||"b64_json"in e||"type"in e&&"result"in e&&e.type==="image_generation"||"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}function Wb(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&Mi(e.source)}function Vm(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="str
18ing"}function Jm(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function jb(e,t){let n={...e,content:""},r=ha(n),o=t-r;if(o<=0)return[];let i=bl(e.content,o);return[{...e,content:i}]}function zb(e,t){let{parts:n}=e,r=n.map(a=>qm(a,"")),o=ha({...e,parts:r}),i=t-o;if(i<=0)return[];let s=[];for(let a of n){let c=Hb(a),u=ma(c);if(u<=i)s.push(a),i-=u;else if(s.length===0){let d=bl(c,i);d&&s.push(qm(a,d));break}else break}return s.length<=0?[]:[{...e,parts:s}]}function qb(e,t){return!e||typeof e!="object"?[]:Gb(e)?jb(e,t):Jm(e)?zb(e,t):[]}var Ym="[Filtered]",Yb=["image_url","data","content","b64_json","result","uri"];function pa(e){let t={...e};Mi(t.source)&&(t.source=pa(t.source)),Vm(e)&&(t.inlineData={...e.inlineData,data:Ym});for(let n of Yb)typeof t[n]=="string"&&(t[n]=Ym);return t}function yl(e){return e.map(n=>{let r;return n&&typeof n=="object"&&($b(n)?r={...n,content:yl(n.content)}:"content"in n&&Mi(n.content)&&(r={...n,content:pa(n.content)}),Jm(n)&&(r={...r??n,parts:yl(n.parts)}),Mi(r)?r=pa(r):Mi(n)&&(r=pa(n))),r??n})}function Vb(e,t){if(!Array.isArray(e)||e.length===0)return e;let n=yl(e);if(ha(n)<=t)return n;let o=n.map(ha),i=0,s=n.length;for(let a=n.length-1;a>=0;a--){let c=o[a];if(c&&i+c>t)break;c&&(i+=c),s=a}if(s===n.length){let a=n[n.length-1];return qb(a,t)}return n.slice(s)}function Zn(e){return Vb(e,2e4)}function Km(e){return bl(e,2e4)}function Ar(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function co(e){return`gen_ai.${Ar(e)}`}function _a(e,t){return e?`${e}.${t}`:t}function Li(e,t,n,r,o){if(t!==void 0&&e.setAttributes({[Pt]:t}),n!==void 0&&e.setAttributes({[Ut]:n}),t!==void 0||n!==void 0||r!==void 0||o!==void 0){let i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[Dt]:i})}}function uo(e){if(typeof e=="string")return Km(e);if(Array.isArray(e)){let t=Zn(e);return JSON.stringify(t)}return JSON.stringify(e)}f();f();f();var Xm=["responses.create","chat.completions.create","embeddings.create"],Jb=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],Qm=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Jb];f();function ga(e){return e.includes("chat.completions")?fa.CHAT:e.includes("responses")?fa.RESPONSES:e.includes("embeddings")?fa.EMBEDDINGS:e.split(".").pop()||"unknown"}function Il(e){return`gen_ai.${ga(e)}`}function Zm(e){return Xm.includes(e)}function eh(e,t){return e?`${e}.${t}`:t}function th(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function nh(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function rh(e){if(e===null||typeof e!="object"||!("object"in e))return!1;let t=e;return t.object==="list"&&typeof t.model=="string"&&t.model.toLowerCase().includes("embedding")}function oh(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function ih(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function sh(e,t,n){if(Sa(e,t.id,t.model,t.created),t.usage&&Pi(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let r=t.choices.map(o=>o.finish_reason).filter(o=>o!==null);if(r.length>0&&e.setAttributes({[It]:JSON.stringify(r)}),n){let o=t.choices.map(i=>i.message?.tool_calls).filter(i=>Array.isArray(i)&&i.length>0).flat();o.length>0&&e.setAttributes({[Ge]:JSON.stringify(o)})}}}function ah(e,t,n){if(Sa(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[It]:JSON.stringify([t.status])}),t.usage&&Pi(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){let r=t;if(Array.isArray(r.output)&&r.output.length>0){let o=r.output.filter(i=>typeof i=="object"&&i!==null&&i.type==="function_call");o.length>0&&e.setAttributes({[Ge]:JSON.stringify(o)})}}}function ch(e,t){e.setAttributes({[El]:t.model,[nt]:t.model}),t.usage&&Pi(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}function Pi(e,t,n,r){t!==void 0&&e.setAttributes({[zm]:t,[Pt]:t}),n!==void 0&&e.setAttributes({[jm]:n,[Ut]:n}),r!==void 0&&e.setAttributes({[Dt]:r})}function Sa(e,t,n,r){e.setAttributes({[$m]:t,[nn]:t}),e.setAttributes({[El]:n,[nt]:n}),e.setAttributes({[Wm]:new Date(r*1e3).toISOString()})}function Kb(e,t){for(let n of e){let r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{let o=t.chatCompletionToolCalls[r];n.function.arguments&&o?.function&&(o.function.arguments+=n.function.arguments)}}}function Xb(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(let r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&Kb(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function Qb(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:2,message:"internal_error"}),Q(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;let o=e;if(!Qm.includes(o.type)){t.eventTypes.push(o.type);return}if(n&&(o.type==="response.output_item.done"&&"item"in o&&t.responsesApiToolCalls.push(o.item),o.type==="response.output_text.delta"&&"delta"in o&&o.delta)){t.responseTexts.push(o.delta);return}if("response"in o){let{response:i}=o;t.responseId=i.id??t.responseId,t.responseModel=i.model??t.responseModel,t.responseTimestamp=i.created_at??t.responseTimestamp,i.usage&&(t.promptTokens=i.usage.input_tokens,t.completionTokens=i.usage.output_tokens,t.totalTokens=i.usage.total_tokens),i.status&&t.finishReasons.push(i.status),n&&i.output_text&&t.responseTexts.push(i.output_text)}}async function*uh(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let o of e)ih(o)?Xb(o,r,n):oh(o)&&Qb(o,r,n,t),yield o}finally{Sa(t,r.responseId,r.responseModel,r.responseTimestamp),Pi(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[Ir]:!0}),r.finishReasons.length&&t.setAttributes({[It]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[Le]:r.responseTexts.join("")});let i=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];i.length>0&&t.setAttributes({[Ge]:JSON.stringify(i)}),t.end()}}function Zb(e,t){let n={[Vn]:"openai",[At]:ga(t),[G]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let r=e[0],o=Array.isArray(r.tools)?r.tools:[],s=r.web_search_options&&typeof r.web_search_options=="object"?[{type:"web_search_options",...r.web_search_options}]:[],a=[...o,...s];a.length>0&&(n[Qn]=JSON.stringify(a))}if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let r=e[0];n[Be]=r.model??"unknown","temperature"in r&&(n[Jn]=r.temperature),"top_p"in r&&(n[Xn]=r.top_p),"frequency_penalty"in r&&(n[Kn]=r.frequency_penalty),"presence_penalty"in r&&(n[ao]=r.presence_penalty),"stream"in r&&(n[io]=r.stream),"encoding_format"in r&&(n[Pm]=r.encoding_format),"dimensions"in r&&(n[Um]=r.dimensions)}else n[Be]="unknown";return n}function eI(e,t,n){if(!t||typeof t!="object")return;let r=t;if(th(r)){if(sh(e,r,n),n&&r.choices?.length){let o=r.choices.map(i=>i.message?.content||"");e.setAttributes({[Le]:JSON.stringify(o)})}}else nh(r)?(ah(e,r,n),n&&r.output_text&&e.setAttributes({[Le]:r.output_text})):rh(r)&&ch(e,r)}function lh(e,t){if("messages"in t){let n=uo(t.messages);e.setAttributes({[Bt]:n})}if("input"in t){let n=uo(t.input);e.setAttributes({[Bt]:n})}}function tI(e,t,n,r){return async function(...i){let s=Zb(i,t),a=s[Be]||"unknown",c=ga(t),u=i[0];return u&&typeof u=="object"&&u.stream===!0?dt({name:`${c} ${a}
18 stream-response`,op:Il(t),attributes:s},async l=>{try{r.recordInputs&&u&&lh(l,u);let p=await e.apply(n,i);return uh(p,l,r.recordOutputs??!1)}catch(p){throw l.setStatus({code:2,message:"internal_error"}),Q(p,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),l.end(),p}}):Ye({name:`${c} ${a}`,op:Il(t),attributes:s},async l=>{try{r.recordInputs&&u&&lh(l,u);let p=await e.apply(n,i);return eI(l,p,r.recordOutputs),p}catch(p){throw Q(p,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),p}})}}function dh(e,t="",n){return new Proxy(e,{get(r,o){let i=r[o],s=eh(t,String(o));return typeof i=="function"&&Zm(s)?tI(i,s,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?dh(i,s,n):i}})}function Al(e,t){let n=!!y()?.getOptions().sendDefaultPii,r={recordInputs:n,recordOutputs:n,...t};return dh(e,"",r)}f();f();function nI(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:2,message:e.error?.type??"internal_error"}),Q(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function rI(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function oI(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function iI(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function sI(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;let n=t.activeToolBlocks[e.index];if(!n)return;let r=n.inputJsonParts.join(""),o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}function fh(e,t,n,r){!(e&&typeof e=="object")||nI(e,r)||(rI(e,t),oI(e,t),iI(e,t,n),sI(e,t))}
18function aI(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[nn]:e.responseId}),e.responseModel&&t.setAttributes({[nt]:e.responseModel}),Li(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[Ir]:!0}),e.finishReasons.length>0&&t.setAttributes({[It]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[Le]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[Ge]:JSON.stringify(e.toolCalls)}),t.end())}async function*ph(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let o of e)fh(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[nn]:r.responseId}),r.responseModel&&t.setAttributes({[nt]:r.responseModel}),Li(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[Ir]:!0}),r.finishReasons.length>0&&t.setAttributes({[It]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[Le]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[Ge]:JSON.stringify(r.toolCalls)}),t.end()}}function mh(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",o=>{fh(o,r,n,t)}),e.on("message",()=>{aI(r,t,n)}),e.on("error",o=>{Q(o,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:2,message:"stream_error"}),t.end())}),e}f();f();var hh=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function _h(e){return hh.includes(e)}function gh(e,t){t.error&&(e.setStatus({code:2,message:t.error.type||"internal_error"}),Q(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function Sh(e){let{system:t,messages:n}=e,r=typeof t=="string"?[{role:"system",content:e.system}]:[],o=Array.isArray(n)?n:n!=null?[n]:[];return[...r,...o]}function cI(e,t){let n={[Vn]:"anthropic",[At]:Ar(t),[G]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){let r=e[0];r.tools&&Array.isArray(r.tools)&&(n[Qn]=JSON.stringify(r.tools)),n[Be]=r.model??"unknown","temperature"in r&&(n[Jn]=r.temperature),"top_p"in r&&(n[Xn]=r.top_p),"stream"in r&&(n[io]=r.stream),"top_k"in r&&(n[da]=r.top_k),"frequency_penalty"in r&&(n[Kn]=r.frequency_penalty),"max_tokens"in r&&(n[so]=r.max_tokens)}else t==="models.retrieve"||t==="models.get"?n[Be]=e[0]:n[Be]="unknown";return n}function Rl(e,t){let n=Sh(t);if(n.length){let r=uo(n);e.setAttributes({[Bt]:r})}if("input"in t){let r=uo(t.input);e.setAttributes({[Bt]:r})}"prompt"in t&&e.setAttributes({[Lm]:JSON.stringify(t.prompt)})}function uI(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[Le]:t.content.map(r=>r.text).filter(r=>!!r).join("")});let n=[];for(let r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[Ge]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[Le]:t.completion}),"input_tokens"in t&&e.setAttributes({[Le]:JSON.stringify(t.input_tokens)})}function lI(e,t){"id"in t&&"model"in t&&(e.setAttributes({[nn]:t.id,[nt]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[Tl]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[Tl]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&Li(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function dI(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){gh(e,t);return}n&&uI(e,t),lI(e,t)}}function Eh(e,t,n){throw Q(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:"internal_error"}),t.end()),e}function fI(e,t,n,r,o,i,s,a,c,u,d){let l=o[Be]??"unknown",p={name:`${i} ${l}
18 stream-response`,op:co(s),attributes:o};return u&&!d?dt(p,async m=>{try{c.recordInputs&&a&&Rl(m,a);let h=await e.apply(n,r);return ph(h,m,c.recordOutputs??!1)}catch(h){return Eh(h,m,s)}}):dt(p,m=>{try{c.recordInputs&&a&&Rl(m,a);let h=t.apply(n,r);return mh(h,m,c.recordOutputs??!1)}catch(h){return Eh(h,m,s)}})}function pI(e,t,n,r){return new Proxy(e,{apply(o,i,s){let a=cI(s,t),c=a[Be]??"unknown",u=Ar(t),d=typeof s[0]=="object"?s[0]:void 0,l=!!d?.stream,p=t==="messages.stream";return l||p?fI(e,o,n,s,a,u,t,d,r,l,p):Ye({name:`${u} ${c}`,op:co(t),attributes:a},m=>(r.recordInputs&&d&&Rl(m,d),fr(()=>o.apply(n,s),h=>{Q(h,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},h=>dI(m,h,r.recordOutputs))))}})}function Th(e,t="",n){return new Proxy(e,{get(r,o){let i=r[o],s=_a(t,String(o));return typeof i=="function"&&_h(s)?pI(i,s,r,n):typeof i=="function"?i.bind(r):i&&typeof i=="object"?Th(i,s,n):i}})}function vl(e,t){let n=!!y()?.getOptions().sendDefaultPii,r={recordInputs:n,recordOutputs:n,...t};return Th(e,"",r)}f();f();var Nl=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],yh="google_genai",Cl="chats.create",bh="chat";f();function mI(e,t){let n=e?.promptFeedback;if(n?.blockReason){let r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:2,message:`Content blocked: ${r}`}),Q(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function hI(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);let n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function _I(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(let r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(let o of r?.content?.parts??[])n&&o.text&&t.responseTexts.push(o.text),o.functionCall&&t.toolCalls.push({type:"function",id:o.functionCall.id,name:o.functionCall.name,arguments:o.functionCall.args})}}function gI(e,t,n,r){!e||mI(e,r)||(hI(e,t),_I(e,t,n))}async function*Ih(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let o of e)gI(o,r,n,t),yield o}finally{let o={[Ir]:!0};r.responseId&&(o[nn]=r.responseId),r.responseModel&&(o[nt]=r.responseModel),r.promptTokens!==void 0&&(o[Pt]=r.promptTokens),r.completionTokens!==void 0&&(o[Ut]=r.completionTokens),r.totalTokens!==void 0&&(o[Dt]=r.totalTokens),r.finishReasons.length&&(o[It]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(o[Le]=r.responseTexts.join("")),n&&r.toolCalls.length&&(o[Ge]=JSON.stringify(r.toolCalls)),t.setAttributes(o),t.end()}}f();function Ah(e){if(Nl.includes(e))return!0;let t=e.split(".").pop();return Nl.includes(t)}function Rh(e){return e.includes("Stream")}function lo(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>lo(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function vh(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){let n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function SI(e){let t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[Jn]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[Xn]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[da]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[so]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[Kn]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[ao]=e.presencePenalty),t}function EI(e,t,n){let r={[Vn]:yh,[At]:Ar(e),[G]:"auto.ai.google_genai"};if(t){if(r[Be]=vh(t,n),"config"in t&&typeof t.config=="object"&&t.config){let o=t.config;if(Object.assign(r,SI(o)),"tools"in o&&Array.isArray(o.tools)){let i=o.tools.flatMap(s=>s.functionDeclarations);r[Qn]=JSON.stringify(i)}}}else r[Be]=vh({},n);return r}function Nh(e,t){let n=[];"config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...lo(t.config.systemInstruction,"system")),"history"in t&&n.push(...lo(t.history,"user")),"contents"in t&&n.push(...lo(t.contents,"user")),"message"in t&&n.push(...lo(t.message,"user")),n.length&&e.setAttributes({[Bt]:JSON.stringify(Zn(n))})}function TI(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(nt,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){let r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[Pt]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[Ut]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[Dt]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(o=>o.content?.parts&&Array.isArray(o.content.parts)?o.content.parts.map(i=>typeof i.text=="string"?i.text:"").filter(i=>i.length>0).join(""):"").filter(o=>o.length>0);r.length>
180&&e.setAttributes({[Le]:r.join("")})}if(n&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[Ge]:JSON.stringify(r)})}}}function Ch(e,t,n,r){let o=t===Cl;return new Proxy(e,{apply(i,s,a){let c=a[0],u=EI(t,c,n),d=u[Be]??"unknown",l=Ar(t);return Rh(t)?dt({name:`${l} ${d} stream-response`,op:co(t),attributes:u},async p=>{try{r.recordInputs&&c&&Nh(p,c);let m=await i.apply(n,a);return Ih(m,p,!!r.recordOutputs)}catch(m){throw p.setStatus({code:2,message:"internal_error"}),Q(m,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),p.end(),m}}):Ye({name:o?`${l} ${d} create`:`${l} ${d}`,op:co(t),attributes:u},p=>(r.recordInputs&&c&&Nh(p,c),fr(()=>i.apply(n,a),m=>{Q(m,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},m=>{o||TI(p,m,r.recordOutputs)})))}})}function wl(e,t="",n){return new Proxy(e,{get:(r,o,i)=>{let s=Reflect.get(r,o,i),a=_a(t,String(o));if(typeof s=="function"&&Ah(a)){if(a===Cl){let c=Ch(s,a,r,n);return function(...d){let l=c(...d);return l&&typeof l=="object"?wl(l,bh,n):l}}return Ch(s,a,r,n)}return typeof s=="function"?s.bind(r):s&&typeof s=="object"?wl(s,a,n):s}})}function xl(e,t){let n=!!y()?.getOptions().sendDefaultPii,r={recordInputs:n,recordOutputs:n,...t};return wl(e,"",r)}f();f();var Rr="auto.ai.langchain",wh={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"};f();var vn=(e,t,n)=>{n!=null&&(e[t]=n)},Ft=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function Rt(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function Ui(e){let t=e.toLowerCase();return wh[t]??t}function xh(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function kl(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Di(e){return e.map(t=>{let n=t._getType;if(typeof n=="function"){let o=n.call(t);return{role:Ui(o),content:Rt(t.content)}}let r=t.constructor?.name;if(r)return{role:Ui(xh(r)),content:Rt(t.content)};if(t.type){let o=String(t.type).toLowerCase();return{role:Ui(o),content:Rt(t.content)}}if(t.role)return{role:Ui(String(t.role)),content:Rt(t.content)};if(t.lc===1&&t.kwargs){let o=t.id,i=Array.isArray(o)&&o.length>0?o[o.length-1]:"",s=typeof i=="string"?xh(i):"user";return{role:Ui(s),content:Rt(t.kwargs?.content)}}return{role:"user",content:Rt(t.content)}})}function yI(e,t,n){let r={},o="kwargs"in e?e.kwargs:void 0,i=t?.temperature??n?.ls_temperature??o?.temperature;Ft(r,Jn,i);let s=t?.max_tokens??n?.ls_max_tokens??o?.max_tokens;Ft(r,so,s);let a=t?.top_p??o?.top_p;Ft(r,Xn,a);let c=t?.frequency_penalty;Ft(r,Kn,c);let u=t?.presence_penalty;return Ft(r,ao,u),t&&"stream"in t&&vn(r,io,!!t.stream),r}function kh(e,t,n,r,o,i){return{[Vn]:Rt(e??"langchain"),[At]:n,[Be]:Rt(t),[G]:Rr,...yI(r,o,i)}}function Oh(e,t,n,r,o){let i=o?.ls_provider,s=r?.model??o?.ls_model_name??"unknown",a=kh(i,s,"pipeline",e,r,o);if(n&&Array.isArray(t)&&t.length>0){let c=t.map(u=>({role:"user",content:u}));vn(a,Bt,Rt(c))}return a}function Mh(e,t,n,r,o){let i=o?.ls_provider??e.id?.[2],s=r?.model??o?.ls_model_name??"unknown",a=kh(i,s,"chat",e,r,o);if(n&&Array.isArray(t)&&t.length>0){let c=Di(t.flat()),u=Zn(c);vn(a,Bt,Rt(u))}return a}function bI(e,t){let n=[],r=e.flat();for(let o of r){let i=o.message?.content;if(Array.isArray(i))for(let s of i){let a=s;a.type==="tool_use"&&n.push(a)}}n.length>0&&vn(t,Ge,Rt(n))}function II(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)Ft(t,Pt,n.promptTokens),Ft(t,Ut,n.completionTokens),Ft(t,Dt,n.totalTokens);else if(r){Ft(t,Pt,r.input_tokens),Ft(t,Ut,r.output_tokens);let o=Number(r.input_tokens),i=Number(r.output_tokens),s=(Number.isNaN(o)?0:o)+(Number.isNaN(i)?0:i);s>0&&Ft(t,Dt,s),r.cache_creation_input_tokens!==void 0&&Ft(t,Fm,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&Ft(t,Hm,r.cache_read_input_tokens)}}function Lh(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let u=e.generations.flat().map(d=>d.generationInfo?.finish_reason?d.generationInfo.finish_reason:d.generation_info?.finish_reason?d.generation_info.finish_reason:null).filter(d=>
18typeof d=="string");if(u.length>0&&vn(n,It,Rt(u)),bI(e.generations,n),t){let d=e.generations.flat().map(l=>l.text??l.message?.content).filter(l=>typeof l=="string");d.length>0&&vn(n,Le,Rt(d))}}II(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0]?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&vn(n,nt,s);let a=r?.id??i?.id;a&&vn(n,nn,a);let c=r?.stop_reason??i?.response_metadata?.finish_reason;return c&&vn(n,Dm,Rt(c)),n}function Ol(e={}){let t=e.recordInputs??!1,n=e.recordOutputs??!1,r=new Map,o=s=>{let a=r.get(s);a?.isRecording()&&(a.end(),r.delete(s))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(s,a,c,u,d,l,p,m){let h=kl(l),g=Oh(s,a,t,h,p),S=g[Be],E=g[At];dt({name:`${E} ${S}`,op:"gen_ai.pipeline",attributes:{...g,[se]:"gen_ai.pipeline"}},I=>(r.set(c,I),I))},handleChatModelStart(s,a,c,u,d,l,p,m){let h=kl(l),g=Mh(s,a,t,h,p),S=g[Be],E=g[At];dt({name:`${E} ${S}`,op:"gen_ai.chat",attributes:{...g,[se]:"gen_ai.chat"}},I=>(r.set(c,I),I))},handleLLMEnd(s,a,c,u,d){let l=r.get(a);if(l?.isRecording()){let p=Lh(s,n);p&&l.setAttributes(p),o(a)}},handleLLMError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"llm_error"}),o(a)),Q(s,{mechanism:{handled:!1,type:`${Rr}.llm_error_handler`}})},handleChainStart(s,a,c,u){let d=s.name||"unknown_chain",l={[G]:"auto.ai.langchain","langchain.chain.name":d};t&&(l["langchain.chain.inputs"]=JSON.stringify(a)),dt({name:`chain ${d}`,op:"gen_ai.invoke_agent",attributes:{...l,[se]:"gen_ai.invoke_agent"}},p=>(r.set(c,p),p))},handleChainEnd(s,a){let c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({"langchain.chain.outputs":JSON.stringify(s)}),o(a))},handleChainError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"chain_error"}),o(a)),Q(s,{mechanism:{handled:!1,type:`${Rr}.chain_error_handler`}})},handleToolStart(s,a,c,u){let d=s.name||"unknown_tool",l={[G]:Rr,"gen_ai.tool.name":d};t&&(l["gen_ai.tool.input"]=a),dt({name:`execute_tool ${d}`,op:"gen_ai.execute_tool",attributes:{...l,[se]:"gen_ai.execute_tool"}},p=>(r.set(c,p),p))},handleToolEnd(s,a){let c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({"gen_ai.tool.output":JSON.stringify(s)}),o(a))},handleToolError(s,a){let c=r.get(a);c?.isRecording()&&(c.setStatus({code:2,message:"tool_error"}),o(a)),Q(s,{mechanism:{handled:!1,type:`${Rr}.tool_error_handler`}})},copy(){return i},toJSON(){return{lc:1,type:"not_implemented",id:i.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:i.lc_id}}};return i}f();f();var Ml="auto.ai.langgraph";f();function AI(e){if(!e||e.length===0)return null;let t=[];for(let n of e)if(n&&typeof n=="object"){let r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function RI(e){let t=e,n=0,r=0,o=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){let i=t.usage_metadata;return typeof i.input_tokens=="number"&&(n=i.input_tokens),typeof i.output_tokens=="number"&&(r=i.output_tokens),typeof i.total_tokens=="number"&&(o=i.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&typeof t.response_metadata=="object"){let i=t.response_metadata;if(i.tokenUsage&&typeof i.tokenUsage=="object"){let s=i.tokenUsage;typeof s.promptTokens=="number"&&(n=s.promptTokens),typeof s.completionTokens=="number"&&(r=s.completionTokens),typeof s.totalTokens=="number"&&(o=s.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function vI(e,t){let n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){let r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(nt,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(It,[r.finish_reason])}}function Ph(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}
18function Uh(e,t,n){let o=n?.messages;if(!o||!Array.isArray(o))return;let i=t?.length??0,s=o.length>i?o.slice(i):[];if(s.length===0)return;let a=AI(s);a&&e.setAttribute(Ge,JSON.stringify(a));let c=Di(s);e.setAttribute(Le,JSON.stringify(c));let u=0,d=0,l=0;for(let p of s){let m=RI(p);u+=m.inputTokens,d+=m.outputTokens,l+=m.totalTokens,vI(e,p)}u>0&&e.setAttribute(Pt,u),d>0&&e.setAttribute(Ut,d),l>0&&e.setAttribute(Dt,l)}function Dh(e,t){return new Proxy(e,{apply(n,r,o){return Ye({op:"gen_ai.create_agent",name:"create_agent",attributes:{[G]:Ml,[se]:"gen_ai.create_agent",[At]:"create_agent"}},i=>{try{let s=Reflect.apply(n,r,o),a=o.length>0?o[0]:{};a?.name&&typeof a.name=="string"&&(i.setAttribute(Sl,a.name),i.updateName(`create_agent ${a.name}`));let c=s.invoke;return c&&typeof c=="function"&&(s.invoke=NI(c.bind(s),s,a,t)),s}catch(s){throw i.setStatus({code:2,message:"internal_error"}),Q(s,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),s}})}})}function NI(e,t,n,r){return new Proxy(e,{apply(o,i,s){return Ye({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[G]:Ml,[se]:Gm,[At]:"invoke_agent"}},async a=>{try{let c=n?.name;c&&typeof c=="string"&&(a.setAttribute(Bm,c),a.setAttribute(Sl,c),a.updateName(`invoke_agent ${c}`));let u=Ph(t);u&&a.setAttribute(Qn,JSON.stringify(u));let d=r.recordInputs,l=r.recordOutputs,p=s.length>0?s[0].messages??[]:[];if(p&&d){let h=Di(p),g=Zn(h);a.setAttribute(Bt,JSON.stringify(g))}let m=await Reflect.apply(o,i,s);return l&&Uh(a,p??null,m),m}catch(c){throw a.setStatus({code:2,message:"internal_error"}),Q(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}})}})}function Ll(e,t){let n=t||{};return e.compile=Dh(e.compile.bind(e),n),e}f();function Ea(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}f();f();var fo=N;function Pl(){return"history"in fo&&!!fo.history}function CI(){if(!("fetch"in fo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Bi(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Fi(){if(typeof EdgeRuntime=="string")return!0;if(!CI())return!1;if(Bi(fo.fetch))return!0;let e=!1,t=fo.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Bi(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){b&&_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ul(){return"ReportingObserver"in fo}function vr(e,t){let n="fetch";et(n,e),tt(n,()=>Fh(void 0,t))}function Dl(e){let t="fetch-body-resolved";et(t,e),tt(t,()=>Fh(xI))}function Fh(e,t=!1){t&&!Fi()||Se(N,"fetch",function(n){return function(...r){let o=new Error,{method:i,url:s}=kI(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:Z()*1e3,virtualError:o,headers:OI(r)};return e||Me("fetch",{...a}),n.apply(N,r).then(async c=>(e?e(c):Me("fetch",{...a,endTimestamp:Z()*1e3,response:c}),c),c=>{if(Me("fetch",{...a,endTimestamp:Z()*1e3,error:c}),St(c)&&c.stack===void 0&&(c.stack=o.stack,be(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{let u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}async function wI(e,t){if(e?.body){let n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),i=!0;for(;i;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=await r.read();clearTimeout(s),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(s)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}function xI(e){let t;try{t=e.clone()}catch{return}wI(t,()=>{Me("fetch-body-resolved",{endTimestamp:Z()*1e3,response:e})})}function Ta(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Bh(e){return typeof e=="string"?e:e?Ta(e,"url")?e.url:e.toString?e.toString():"":""}function kI(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:Bh(n),method:Ta(r,"method")?String(r.method).toUpperCase():Vo(n)&&Ta(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:Bh(t),method:Ta(t,"method")?String(t.method).toUpperCase():"GET"}}function OI(e){let[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Vo(t))return new Headers(t.headers)}catch{}}f();f();f();function Bl(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Fl(){return"npm"}function Hh(){return!Bl()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function er(){return typeof window<"u"&&(!Hh()||MI())}function MI(){return N.process?.type==="renderer"}f();f();f();function po(e,t){let n=$l(e,t),r={type:BI(t),value:FI(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function LI(e,t,n,r){let i=y()?.getOptions().normalizeDepth,s=$I(t),a={__serialized__:Ds(t,i)};if(s)return{exception:{values:[po(e,s)]},extra:a};let c={exception:{values:[{type:cr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:HI(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=$l(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Hl(e,t){return{exception:{values:[po(e,t)]}}}function $l(e,t){let n=t.stacktrace||t.stack||"",r=UI(t),o=DI(t);try{return e(n,r,o)}catch{}return[]}var PI=/Minified React error #\d+;/i;function UI(e){return e&&PI.test(e.message)?1:0}function DI(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Gh(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function BI(e){let t=e?.name;return!t&&Gh(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function FI(e){let t=e?.message;return Gh(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function ya(e,t,n,r){let o=n?.syntheticException||void 0,i=mo(e,t,o,r);return Ke(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),jn(i)}function ba(e,t,n="info",r,o){let i=r?.syntheticException||void 0,s=Gl(e,t,i,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),jn(s)}function mo(e,t,n,r,o){let i;if(_s(t)&&t.error)return Hl(e,t.error);if(gs(t)||zc(t)){let s=t;if("stack"in t)i=Hl(e,t);else{let a=s.name||(gs(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Gl(e,c,n,r),Wr(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return St(t)?Hl(e,t):je(t)||cr(t)?(i=LI(e,t,n,o),Ke(i,{synthetic:!0}),i):(i=Gl(e,t,n,r),Wr(i,`${t}`,void 0),Ke(i,{synthetic:!0}),i)}function Gl(e,t,n,r){let o={};if(r&&n){let i=$l(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),Ke(o,{synthetic:!0})}
18if(Dn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function HI(e,{isUnhandledRejection:t}){let n=Qc(e),r=t?"promise rejection":"exception";return _s(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:cr(e)?`Event \`${GI(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function GI(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function $I(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}f();var x=N,Wl=0;function jl(){return Wl>0}function WI(){Wl++,setTimeout(()=>{Wl--})}function Nr(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(lr(e))return e}catch{return e}let r=function(...o){try{let i=o.map(s=>Nr(s,t));return e.apply(this,i)}catch(i){throw WI(),Ue(s=>{s.addEventProcessor(a=>(t.mechanism&&(Wr(a,void 0,void 0),Ke(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),Q(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Ss(r,e),be(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Hi(){let e=ct(),{referrer:t}=x.document||{},{userAgent:n}=x.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}var ho=class extends Ri{constructor(t){let n=jI(t),r=x.SENTRY_SDK_SOURCE||Fl();tl(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);let{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;x.document&&(i||s||u)&&x.document.addEventListener("visibilitychange",()=>{x.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&Zr(this),u&&eo(this))}),o&&this.on("beforeSendSession",el)}eventFromException(t,n){return ya(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return ba(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}};function jI(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:x.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}f();f();f();f();var Yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();var D=N;f();var zI=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",_n=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||o===void 0)&&(o=t.value,t.delta=i,t.rating=zI(t.value,n),e(t)))}};f();f();f();var Nn=(e=!0)=>{let t=D.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t};var Vt=()=>Nn()?.activationStart??0;f();function rn(e,t,n){D.document&&D.addEventListener(e,t,n)}function _o(e,t,n){D.document&&D.removeEventListener(e,t,n)}var go=-1,$h=new Set,qI=()=>D.document?.visibilityState==="hidden"&&!D.document?.prerendering?0:1/0,Ia=e=>{if(YI(e)&&go>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(let t of $h)t();isFinite(go)||(go=e.type==="visibilitychange"?e.timeStamp:0,_o("prerenderingchange",Ia,!0))}},gn=()=>{if(D.document&&go<0){let e=Vt();go=(D.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??qI(),rn("visibilitychange",Ia,!0),rn("pagehide",Ia,!0),rn("prerenderingchange",Ia,!0)}return{get firstHiddenTime(){return go},onHidden(e){$h.add(e)}}};function YI(e){return e.type==="pagehide"||D.document?.visibilityState==="hidden"}f();f();var Wh=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Sn=(e,t=-1)=>{let n=Nn(),r="navigate";return n&&(D.document?.prerendering||Vt()>0?r="prerender":D.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Wh(),navigationType:r}};f();var zl=new WeakMap;function So(e,t){return zl.get(e)||zl.set(e,new t),zl.get(e)}f();var Aa=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;let n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}};f();var Jt=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(o=>{Promise.resolve().then(()=>{t(o.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}};f();var Eo=e=>{let t=!1;return()=>{t||(e(),t=!0)}};f();f();var tr=e=>{D.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()};var VI=[1800,3e3],jh=(e,t={})=>{tr(()=>{let n=gn(),r=Sn("FCP"),o,s=Jt("paint",a=>{for(let c of a)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Vt(
18),0),r.entries.push(c),o(!0)))});s&&(o=_n(e,r,VI,t.reportAllChanges))})};var JI=[.1,.25],zh=(e,t={})=>{jh(Eo(()=>{let n=Sn("CLS",0),r,o=gn(),i=So(t,Aa),s=c=>{for(let u of c)i._processEntry(u);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Jt("layout-shift",s);a&&(r=_n(e,n,JI,t.reportAllChanges),o.onHidden(()=>{s(a.takeRecords()),r(!0)}),D?.setTimeout?.(r))}))};f();f();f();var qh=0,ql=1/0,Ra=0,KI=e=>{e.forEach(t=>{t.interactionId&&(ql=Math.min(ql,t.interactionId),Ra=Math.max(Ra,t.interactionId),qh=Ra?(Ra-ql)/7+1:0)})},Yl,Vl=()=>Yl?qh:performance.interactionCount||0,Yh=()=>{"interactionCount"in performance||Yl||(Yl=Jt("event",KI,{type:"event",buffered:!0,durationThreshold:0}))};var Jl=10,Vh=0,XI=()=>Vl()-Vh,va=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Vh=Vl(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let t=Math.min(this._longestInteractionList.length-1,Math.floor(XI()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;let n=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Jl||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,i)=>i._latency-o._latency),this._longestInteractionList.length>Jl){let o=this._longestInteractionList.splice(Jl);for(let i of o)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}};f();f();var Na=e=>{let t=n=>{(n.type==="pagehide"||D.document?.visibilityState==="hidden")&&e(n)};rn("visibilitychange",t,!0),rn("pagehide",t,!0)};var Ca=e=>{let t=D.requestIdleCallback||D.setTimeout;D.document?.visibilityState==="hidden"?e():(e=Eo(e),rn("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),_o("visibilitychange",e,{capture:!0})}),Na(e))};var QI=[200,500],ZI=40,Jh=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=gn();tr(()=>{Yh();let r=Sn("INP"),o,i=So(t,va),s=c=>{Ca(()=>{for(let d of c)i._processEntry(d);let u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,o())})},a=Jt("event",s,{durationThreshold:t.durationThreshold??ZI});o=_n(e,r,QI,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),o(!0)}))})};f();f();var wa=class{_processEntry(t){this._onBeforeProcessingEntry?.(t)}};var eA=[2500,4e3],Kh=(e,t={})=>{tr(()=>{let n=gn(),r=Sn("LCP"),o,i=So(t,wa),s=c=>{t.reportAllChanges||(c=c.slice(-1));for(let u of c)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Vt(),0),r.entries=[u],o())},a=Jt("largest-contentful-paint",s);if(a){o=_n(e,r,eA,t.reportAllChanges);let c=Eo(()=>{s(a.takeRecords()),a.disconnect(),o(!0)}),u=d=>{d.isTrusted&&(Ca(c),_o(d.type,u,{capture:!0}))};for(let d of["keydown","click","visibilitychange"])rn(d,u,{capture:!0})}})};f();var tA=[800,1800],Kl=e=>{D.document?.prerendering?tr(()=>Kl(e)):D.document?.readyState!=="complete"?addEventListener("load",()=>Kl(e),!0):setTimeout(e)},Xh=(e,t={})=>{let n=Sn("TTFB"),r=_n(e,n,tA,t.reportAllChanges);Kl(()=>{let o=Nn();o&&(n.value=Math.max(o.responseStart-Vt(),0),n.entries=[o],r(!0))})};var Gi={},xa={},Qh,Zh,e_,t_;function Cr(e,t=!1){return ka("cls",e,nA,Qh,t)}function wr(e,t=!1){return ka("lcp",e,rA,Zh,t)}function Xl(e){return ka("ttfb",e,oA,e_)}function $i(e){return ka("inp",e,iA,t_)}function Ht(e,t){return n_(e,t),xa[e]||(sA(e),xa[e]=!0),r_(e,t)}function Wi(e,t){let n=Gi[e];if(n?.length)for(let r of n)try{r(t)}catch(o){Yt&&_.error(`Error while triggering instrumentation handler. 19Type: ${e} 20Name: ${Et(r)} 21Error:`,o)}}function nA(){return zh(e=>{Wi("cls",{metric:e}),Qh=e},{reportAllChanges:!0})}function rA(){return Kh(e=>{Wi("lcp",{metric:e}),Zh=e},{reportAllChanges:!0})}function oA(){return Xh(e=>{Wi("ttfb",{metric:e}),e_=e})}function iA(){return Jh(e=>{Wi("inp",{metric:e}),t_=e})}function ka(e,t,n,r,o=!1){n_(e,t);let i;return xa[e]||(i=n(),xa[e]=!0),r&&t({metric:r}),r_(e,t,o?i:void 0)}function sA(e){let t={};e==="event"&&(t.durationThreshold=0),Jt(e,n=>{Wi(e,{entries:n})},t)}function n_(e,t){Gi[e]=Gi[e]||[],Gi[e].push(t)}function r_(e,t,n){return()=>{n&&n();let r=Gi[e];if(!r)return;let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}function o_(e){return"duration"in e}f();f();f();function Oa(e){return typeof e=="number"&&isFinite(e)}function Cn(e,t,n,{...r}){let o=P(e).start_timestamp;return o&&o>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Wn(e,()=>{let i=Tt({startTime:t,...r});return i&&i.end(n),i})}function To(e){let t=y();if(!t)return;let{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=M(),p=l.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0,h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}let g={release:s,environment:a,user:m||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":D.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o};return Tt({name:n,attributes:g,startTime:i,experimental:{standalone:!0}})}function wn(){return D.addEventListener&&D.performance}function me(e){return e/1e3}function i_(e){let t="unknown",n="unknown",r="";for(let o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}
21return r===e&&(t=r),{name:t,version:n}}function Ma(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function La(e,t){let n,r=!1;function o(a){!r&&n&&t(a,n),r=!0}Na(()=>{o("pagehide")});let i=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,s()})}function s_(e){let t=0,n;if(!Ma("layout-shift"))return;let r=Cr(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);La(e,(o,i)=>{aA(t,n,i,o),r()})}function aA(e,t,n,r){Yt&&_.log(`Sending CLS span (${e})`);let o=t?me((Ee()||0)+t.startTime):Z(),i=M().getScopeData().transactionName,s=t?ve(t.sources[0]?.node):"Layout shift",a={[G]:"auto.http.browser.cls",[se]:"ui.webvital.cls",[qt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=ve(u.node)});let c=To({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("cls",{[fn]:"",[pn]:e}),c.end(o))}f();function a_(e){let t=0,n;if(!Ma("largest-contentful-paint"))return;let r=wr(({metric:o})=>{let i=o.entries[o.entries.length-1];i&&(t=o.value,n=i)},!0);La(e,(o,i)=>{cA(t,n,i,o),r()})}function cA(e,t,n,r){Yt&&_.log(`Sending LCP span (${e})`);let o=me((Ee()||0)+(t?.startTime||0)),i=M().getScopeData().transactionName,s=t?ve(t.element):"Largest contentful paint",a={[G]:"auto.http.browser.lcp",[se]:"ui.webvital.lcp",[qt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=ve(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));let c=To({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[fn]:"millisecond",[pn]:e}),c.end(o))}f();function Kt(e){return e&&((Ee()||performance.timeOrigin)+e)/1e3}function ji(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=i_(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Ee()||wn()?.timeOrigin?uA({...t,"http.request.redirect_start":Kt(e.redirectStart),"http.request.redirect_end":Kt(e.redirectEnd),"http.request.worker_start":Kt(e.workerStart),"http.request.fetch_start":Kt(e.fetchStart),"http.request.domain_lookup_start":Kt(e.domainLookupStart),"http.request.domain_lookup_end":Kt(e.domainLookupEnd),"http.request.connect_start":Kt(e.connectStart),"http.request.secure_connection_start":Kt(e.secureConnectionStart),"http.request.connection_end":Kt(e.connectEnd),"http.request.request_start":Kt(e.requestStart),"http.request.response_start":Kt(e.responseStart),"http.request.response_end":Kt(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function uA(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var lA=2147483647,c_=0,on={},vt,Ua;function Ql({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=wn();if(r&&Ee()){r.mark&&D.performance.mark("sentry-tracing-init");let o=t?a_(n):fA(),i=pA(),s=e?s_(n):dA();return()=>{o?.(),i(),s?.()}}return()=>{}}function Zl(){Ht("longtask",({entries:e})=>{let t=X();if(!t)return;let{op:n,start_timestamp:r}=P(t);for(let o of e){let i=me(Ee()+o.startTime),s=me(o.duration);n==="navigation"&&r&&i<r||Cn(t,i,i+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[G]:"auto.ui.browser.metrics"}})}})}function ed(){new PerformanceObserver(t=>{let n=X();if(n)for(let r of t.getEntries()){if(!r.scripts[0])continue;let o=me(Ee()+r.startTime),{start_timestamp:i,op:s}=P(n);if(s==="navigation"&&i&&o<i)continue;let a=me(r.duration),c={[G]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:p,sourceFunctionName:m,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,p&&(c["code.filepath"]=p),m&&(c["code.function"]=m),h!==-1&&(c["browser.script.source_char_position"]=h),Cn(n,o,o+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function td(){Ht("event",({entries:e})=>{let t=X();if(t){for(let n of e)if(n.name==="click"){let r=me(Ee()+n.startTime),o=me(n.duration),i={name:ve(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[G]:"auto.ui.browser.metrics"}},s=Jo(n.target);s&&(i.attributes["ui.component_name"]=s),Cn(t,r,r+o,i)}}})}function dA(){return Cr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(on.cls={value:e.value,unit:""},Ua=t)},!0)}function fA(){return wr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(on.lcp={value:e.value,unit:"millisecond"},vt=t)},!0)}function pA(){return Xl(({metric:e})=>{e.entries[e.entries.length-1]&&(on.ttfb={value:e.value,unit:"millisecond"})})}
21function nd(e,t){let n=wn(),r=Ee();if(!n?.getEntries||!r)return;let o=me(r),i=n.getEntries(),{op:s,start_timestamp:a}=P(e);i.slice(c_).forEach(c=>{let u=me(c.startTime),d=me(Math.max(0,c.duration));if(!(s==="navigation"&&a&&o+u<a))switch(c.entryType){case"navigation":{gA(e,c,o);break}case"mark":case"paint":case"measure":{hA(e,c,u,d,o,t.ignorePerformanceApiSpans);let l=gn(),p=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&p&&(on.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(on.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{TA(e,c,c.name,u,d,o,t.ignoreResourceSpans);break}}}),c_=Math.max(i.length-1,0),yA(e),s==="pageload"&&(AA(on),t.recordClsOnPageloadSpan||delete on.cls,t.recordLcpOnPageloadSpan||delete on.lcp,Object.entries(on).forEach(([c,u])=>{ai(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Vt()),bA(e,t)),vt=void 0,Ua=void 0,on={}}function mA(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components \u269B"}catch{return}}function hA(e,t,n,r,o,i){if(mA(t)||["mark","measure"].includes(t.entryType)&&ze(t.name,i))return;let s=Nn(!1),a=me(s?s.requestStart:0),c=o+Math.max(n,a),u=o+n,d=u+r,l={[G]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),_A(l,t),c<=d&&Cn(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function _A(e,t){try{let n=t.detail;if(!n)return;if(typeof n=="object"){for(let[r,o]of Object.entries(n))if(o&&at(o))e[`sentry.browser.measure.detail.${r}`]=o;else if(o!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(o)}catch{}return}if(at(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function gA(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Pa(e,t,r,n)}),Pa(e,t,"secureConnection",n,"TLS/SSL"),Pa(e,t,"fetch",n,"cache"),Pa(e,t,"domainLookup",n,"DNS"),EA(e,t,n)}function Pa(e,t,n,r,o=n){let i=SA(n),s=t[i],a=t[`${n}Start`];!a||!s||Cn(e,r+me(a),r+me(s),{op:`browser.${o}`,name:t.name,attributes:{[G]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function SA(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function EA(e,t,n){let r=n+me(t.requestStart),o=n+me(t.responseEnd),i=n+me(t.responseStart);t.responseEnd&&(Cn(e,r,o,{op:"browser.request",name:t.name,attributes:{[G]:"auto.ui.browser.metrics"}}),Cn(e,i,o,{op:"browser.response",name:t.name,attributes:{[G]:"auto.ui.browser.metrics"}}))}function TA(e,t,n,r,o,i,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;let c={[G]:"auto.resource.browser.metrics"},u=tn(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(D.location.origin),IA(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let d={...c,...ji(t)},l=i+r,p=l+o;Cn(e,l,p,{name:n.replace(D.location.origin,""),op:a,attributes:d})}function yA(e){let t=D.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Oa(n.rtt)&&(on["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Oa(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Oa(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function bA(e,t){vt&&t.recordLcpOnPageloadSpan&&(vt.element&&e.setAttribute("lcp.element",ve(vt.element)),vt.id&&e.setAttribute("lcp.id",vt.id),vt.url&&e.setAttribute("lcp.url",vt.url.trim().slice(0,200)),vt.loadTime!=null&&e.setAttribute("lcp.loadTime",vt.loadTime),vt.renderTime!=null&&e.setAttribute("lcp.renderTime",vt.renderTime),e.setAttribute("lcp.size",vt.size)),Ua?.sources&&t.recordClsOnPageloadSpan&&Ua.sources.forEac
21h((n,r)=>e.setAttribute(`cls.source.${r+1}`,ve(n.node)))}function IA(e,t,n){n.forEach(([r,o])=>{let i=e[r];i!=null&&(typeof i=="number"&&i<lA||typeof i=="string")&&(t[o]=i)})}function AA(e){let t=Nn(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}f();function rd(){return wn()&&Ee()?Ht("element",RA):()=>{}}var RA=({entries:e})=>{let t=X(),n=t?ee(t):void 0,r=n?P(n).description:M().getScopeData().transactionName;e.forEach(o=>{let i=o;if(!i.identifier)return;let s=i.name,a=i.renderTime,c=i.loadTime,[u,d]=c?[me(c),"load-time"]:a?[me(a),"render-time"]:[Z(),"entry-emission"],l=s==="image-paint"?me(Math.max(0,(a??0)-(c??0))):0,p={[G]:"auto.ui.browser.elementtiming",[se]:"ui.elementtiming",[Ne]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":i.id,"element.type":i.element?.tagName?.toLowerCase()||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":s};Ye({name:`element[${i.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},m=>{m.end(u+l)})})};f();var vA=1e3,u_,od,id;function zi(e){let t="dom";et(t,e),tt(t,NA)}function NA(){if(!D.document)return;let e=Me.bind(null,"dom"),t=l_(e,!0);D.document.addEventListener("click",t,!1),D.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let o=D[n]?.prototype;o?.hasOwnProperty?.("addEventListener")&&(Se(o,"addEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){let l=l_(e);d.handler=l,i.call(this,s,l,c)}d.refCount++}catch{}return i.call(this,s,a,c)}}),Se(o,"removeEventListener",function(i){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,s,a,c)}}))})}function CA(e){if(e.type!==od)return!1;try{if(!e.target||e.target._sentryId!==id)return!1}catch{}return!0}function wA(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function l_(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=xA(n);if(wA(n.type,r))return;be(n,"_sentryCaptured",!0),r&&!r._sentryId&&be(r,"_sentryId",de());let o=n.type==="keypress"?"input":n.type;CA(n)||(e({event:n,name:o,global:t}),od=n.type,id=r?r._sentryId:void 0),clearTimeout(u_),u_=D.setTimeout(()=>{id=void 0,od=void 0},vA)}}function xA(e){try{return e.target}catch{return null}}f();var Da;function xn(e){let t="history";et(t,e),tt(t,kA)}function kA(){if(D.addEventListener("popstate",()=>{let t=D.location.href,n=Da;if(Da=t,n===t)return;Me("history",{from:n,to:t})}),!Pl())return;function e(t){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let o=Da,i=OA(String(r));if(Da=i,o===i)return t.apply(this,n);Me("history",{from:o,to:i})}return t.apply(this,n)}}Se(D.history,"pushState",e),Se(D.history,"replaceState",e)}function OA(e){try{return new URL(e,D.location.origin).toString()}catch{return e}}f();var Ba={};function yo(e){let t=Ba[e];if(t)return t;let n=D[e];if(Bi(n))return Ba[e]=n.bind(D);let r=D.document;if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){Yt&&_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Ba[e]=n.bind(D))}function sd(e){Ba[e]=void 0}function xr(...e){return yo("setTimeout")(...e)}f();var pt="__sentry_xhr_v3__";function kr(e){let t="xhr";et(t,e),tt(t,MA)}function MA(){if(!D.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let o=new Error,i=Z()*1e3,s=Fe(r[0])?r[0].toUpperCase():void 0,a=LA(r[1]);if(!s||!a)return t.apply(n,r);
21n[pt]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let c=()=>{let u=n[pt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}let d={endTimestamp:Z()*1e3,startTimestamp:i,xhr:n,virtualError:o};Me("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){let[p,m]=l,h=d[pt];return h&&Fe(p)&&Fe(m)&&(h.request_headers[p.toLowerCase()]=m),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){let o=n[pt];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);let i={startTimestamp:Z()*1e3,xhr:n};return Me("xhr",i),t.apply(n,r)}})}function LA(e){if(Fe(e))return e;try{return e.toString()}catch{}}f();function Fa(e){return new URLSearchParams(e).toString()}function Or(e,t=_){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Fa(e)];if(!e)return[void 0]}catch(n){return Yt&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Yt&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function bo(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function qi(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Yt&&_.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 22`).reduce((n,r)=>{let[o,i]=r.split(": ");return i&&(n[o.toLowerCase()]=i),n},{}):{}}f();var ad=[],Ha=new Map,Io=new Map,PA=60;function ud(){if(wn()&&Ee()){let t=UA();return()=>{t()}}return()=>{}}var cd={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 UA(){return $i(DA)}var DA=({metric:e})=>{if(e.value==null)return;let t=me(e.value);if(t>PA)return;let n=e.entries.find(h=>h.duration===e.value&&cd[h.name]);if(!n)return;let{interactionId:r}=n,o=cd[n.name],i=me(Ee()+n.startTime),s=X(),a=s?ee(s):void 0,c=r!=null?Ha.get(r):void 0,u=c?.span||a,d=u?P(u).description:M().getScopeData().transactionName,l=c?.elementName||ve(n.target),p={[G]:"auto.http.browser.inp",[se]:`ui.interaction.${o}`,[qt]:n.duration},m=To({name:l,transaction:d,attributes:p,startTime:i});m&&(m.addEvent("inp",{[fn]:"millisecond",[pn]:e.value}),m.end(i+t))};function ld(){let e=Object.keys(cd);er()&&e.forEach(o=>{D.addEventListener(o,t,{capture:!0,passive:!0})});function t(o){let i=o.target;if(!i)return;let s=ve(i),a=Math.round(o.timeStamp);if(Io.set(a,s),Io.size>50){let c=Io.keys().next().value;c!==void 0&&Io.delete(c)}}function n(o){let i=Math.round(o.startTime),s=Io.get(i);if(!s)for(let a=-5;a<=5;a++){let c=Io.get(i+a);if(c){s=c;break}}return s||"<unknown>"}let r=({entries:o})=>{let i=X(),s=i&&ee(i);o.forEach(a=>{if(!o_(a))return;let c=a.interactionId;if(c==null||Ha.has(c))return;let u=a.target?ve(a.target):n(a);if(ad.length>10){let d=ad.shift();Ha.delete(d)}ad.push(c),Ha.set(c,{span:s,elementName:u})})};Ht("event",r),Ht("first-input",r)}f();var A=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Ga=1024,BA="Breadcrumbs",FA=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:BA,setup(n){t.console&&br($A(n)),t.dom&&zi(GA(n,t.dom)),t.xhr&&kr(WA(n)),t.fetch&&vr(jA(n)),t.history&&xn(zA(n)),t.sentry&&n.on("beforeSendEvent",HA(n))}}},$a=FA;function HA(e){return function(n){y()===e&&ft({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:dn(n)},{event:n})}}function GA(e,t){return function(r){if(y()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ga&&(A&&_.warn(`\`dom.maxStringLength\` cannot exceed ${Ga}, but a value of ${a} was configured. Sentry will use ${Ga} instead.`),a=Ga),typeof s=="string"&&(s=[s]);try{let u=r.event,d=qA(u)?u.target:u;o=ve(d,{keyAttrs:s,maxStringLength:a}),i=Jo(d)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),ft(c,{event:r.event,name:r.name,global:r.global})}}function $A(e){return function(n){if(y()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Yn(n.level),message:dr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${dr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ft(r,{input:n.args,level:n.level})}}function WA(e){return function(n){if(y()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[pt];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,d={method:s,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},p={category:"xhr",data:d,type:"http",level:Ea(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,l),ft(p,l)}}function jA(e){return function(n){if(y()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;
22if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),ft(a,s)}else{let i=n.response,s={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;let a={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:Ea(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),ft(c,a)}}}function zA(e){return function(n){if(y()!==e)return;let r=n.from,o=n.to,i=tn(x.location.href),s=r?tn(r):void 0,a=tn(o);s?.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),ft({category:"navigation",data:{from:r,to:o}})}}function qA(e){return!!e&&!!e.target}f();var YA=["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"],VA="BrowserApiErrors",JA=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:VA,setupOnce(){t.setTimeout&&Se(x,"setTimeout",d_),t.setInterval&&Se(x,"setInterval",d_),t.requestAnimationFrame&&Se(x,"requestAnimationFrame",KA),t.XMLHttpRequest&&"XMLHttpRequest"in x&&Se(XMLHttpRequest.prototype,"send",XA);let n=t.eventTarget;n&&(Array.isArray(n)?n:YA).forEach(o=>QA(o,t))}}},Wa=JA;function d_(e){return function(...t){let n=t[0];return t[0]=Nr(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Et(e)}`}}),e.apply(this,t)}}function KA(e){return function(t){return e.apply(this,[Nr(t,{mechanism:{data:{handler:Et(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function XA(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Se(n,o,function(i){let s={mechanism:{data:{handler:Et(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=lr(i);return a&&(s.mechanism.data.handler=Et(a)),Nr(i,s)})}),e.apply(this,t)}}function QA(e,t){let r=x[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Se(r,"addEventListener",function(o){return function(i,s,a){try{ZA(s)&&(s.handleEvent=Nr(s.handleEvent,{mechanism:{data:{handler:Et(s),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&eR(this,i,s),o.apply(this,[i,Nr(s,{mechanism:{data:{handler:Et(s),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Se(r,"removeEventListener",function(o){return function(i,s,a){try{let c=s.__sentry_wrapped__;c&&o.call(this,i,c,a)}catch{}return o.call(this,i,s,a)}}))}function ZA(e){return typeof e.handleEvent=="function"}function eR(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}f();var ja=()=>({name:"BrowserSession",setupOnce(){if(typeof x.document>"u"){A&&_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Jr({ignoreDuration:!0}),Kr(),xn(({from:e,to:t})=>{e!==void 0&&e!==t&&(Jr({ignoreDuration:!0}),Kr())})}});f();var tR="GlobalHandlers",nR=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:tR,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(rR(n),f_("onerror")),t.onunhandledrejection&&(oR(n),f_("onunhandledrejection"))}}},za=nR;function rR(e){Si(t=>{let{stackParser:n,attachStacktrace:r}=p_();if(y()!==e||jl())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=iR(mo(n,c||o,void 0,r,!1),i,s,a);u.level="error",en(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function oR(e){Ei(t=>{let{stackParser:n,attachStacktrace:r}=p_();if(y()!==e||jl())return;let o=dd(t),i=at(o)?fd(o):mo(n,o,void 0,r,!0);i.level="error",en(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function dd(e){if(at(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function fd(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function iR(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=sR(t)??ct();
22return c.length===0&&c.push({colno:u,filename:l,function:wt,in_app:!0,lineno:d}),e}function f_(e){A&&_.log(`Global Handler attached: ${e}`)}function p_(){return y()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function sR(e){if(!(!Fe(e)||e.length===0)){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e}}f();var qa=()=>({name:"HttpContext",preprocessEvent(e){if(!x.navigator&&!x.location&&!x.document)return;let t=Hi(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});f();var aR="cause",cR=5,uR="LinkedErrors",lR=(e={})=>{let t=e.limit||cR,n=e.key||aR;return{name:uR,preprocessEvent(r,o,i){let s=i.getOptions();ol(po,s.stackParser,n,t,r,o)}}},Ya=lR;f();var dR="SpotlightBrowser",fR=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:dR,setup:()=>{A&&_.log("Using Sidecar URL",t)},processEvent:n=>mR(n)?null:n,afterAllSetup:n=>{pR(n,t)}}};function pR(e,t){let n=yo("fetch"),r=0;e.on("beforeEnvelope",o=>{if(r>3){_.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Hn(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(i=>{i.status>=200&&i.status<400&&(r=0)},i=>{r++,_.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",i)})})}var m_=fR;function mR(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}f();var hR=10,_R=20,gR=30,SR=40,ER=50;function Ao(e,t,n,r){let o={filename:e,function:t==="<anonymous>"?wt:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var TR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bR=/\((\S*)(?::(\d+))(?::(\d+))\)/,IR=/at (.+?) ?\(data:(.+?),/,AR=e=>{let t=e.match(IR);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=TR.exec(e);if(n){let[,o,i,s]=n;return Ao(o,wt,+i,+s)}let r=yR.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){let a=bR.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}let[i,s]=S_(r[1]||wt,r[2]);return Ao(s,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},pd=[gR,AR],RR=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vR=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,NR=e=>{let t=RR.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=vR.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||wt;return[o,r]=S_(o,r),Ao(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},md=[ER,NR],CR=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wR=e=>{let t=CR.exec(e);return t?Ao(t[2],t[1]||wt,+t[3],t[4]?+t[4]:void 0):void 0},h_=[SR,wR],xR=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,kR=e=>{let t=xR.exec(e);return t?Ao(t[2],t[3]||wt,+t[1]):void 0},__=[hR,kR],OR=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,MR=e=>{let t=OR.exec(e);return t?Ao(t[5],t[3]||t[4]||wt,+t[1],+t[2]):void 0},g_=[_R,MR],hd=[pd,md],Va=ys(...hd),S_=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:wt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};f();var LR=40;function Ro(e,t=yo("fetch")){let n=0,r=0;async function o(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw sd("fetch"),c}finally{n-=s,r--}}return Ai(e,o,Er(e.bufferSize||LR))}f();function E_(){return PR()?(A&&Je(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function PR(){if(typeof x.window>"u")return!1;let e=x;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let n=ct(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(x===x.top&&r.some(i=>n.startsWith(`${i}://`)))}function _d(e){return[wi(),Ci(),Wa(),$a(),za(),Ya(),xi(),qa(),ja()]}function T_(e={}){let t=!e.skipBrowserExtensionCheck&&E_(),n=e.defaultIntegrations==null?_d():e.defaultIntegrations,r={...e,enabled:t?!1:e.enabled,stackParser:eu(e.stackParser||Va),integrations:Bu({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Ro};return Yu(ho,r)}function y_(){}function b_(e){e()}var Gx={};jc(Gx,{BrowserClient:()=>ho,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>no,OpenFeatureIntegrationHook:()=>Wc,SDK_VERSION:()=>gt,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>se,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>G,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>yn,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>Ne,Scope:()=>Qe,WINDOW:()=>x,addBreadcrumb:()=>ft,addEventProcessor:()=>_i,addIntegration:()=>Qr,breadcrumbsIntegration:()=>$a,browserApiErrorsIntegration:()=>Wa,browserProfilingIntegration:()=>IE,browserSessionIntegration:()=>ja,browserTracingIntegration:()=>eE,buildLaunchDarklyFlagUsedHandler:()=>RE,captureConsoleIntegration:()=>sl,captureEvent:()=>en,captureException:()=>Q,captureFeedback:()=>ki,captureMessage:()=>fi,captureSession:()=>Kr,chromeStackLineParser:()=>pd,close:()=>Ou,consoleLoggingIntegration:()=>hl,contextLinesIntegration:()=>pg,continueTrace:()=>Eu,createConsolaReporter:()=>gl,createLangChainCallbackHandler:()=>Ol,createTransport:()=>Ai,createUserFeedbackEnvelope:()=>rg,dedupeIntegration:()=>xi,defaultRequestInstrumentationOptions:()=>fs,defaultStackLineParsers:()=>hd,defaultStackParser:()=>Va,diagnoseSdkConnectivity:()=>xE,endSession:()=>gi,eventFiltersIntegration:()=>ta,eventFromException:()=>ya,eventFromMessage:()=>ba,exceptionFromError:()=>po,extraErrorDataIntegration:()=>al,featureFlagsIntegration:()=>fl,feedbackAsyncIntegration:()=>tg,feedbackIntegration:()=>Od,feedbackSyncIntegration:()=>Od,flush:()=>ku,forceLoad:()=>y_,functionToStringIntegration:()=>Ci,geckoStackLineParser:()=>md,getActiveSpan:()=>X,getClient:()=>y,getCurrentScope:()=>M,getDefaultIntegrations:()=>_d,getFeedback:()=>G_,getGlobalScope:()=>lt,getIsolationScope:()=>ue,getReplay:()=>CS,getRootSpan:()=>ee,getSpanDescendants:()=>bn,getSpanStatusFromHttpCode:()=>Ns,getTraceData:()=>yr,globalHandlersIntegration:()=>za,graphqlClientIntegration:()=>gg,growthbookIntegration:()=>CE,httpClientIntegration:()=>cg,httpContextIntegration:()=>qa,inboundFiltersIntegration:()=>wi,init:()=>T_,instrumentAnthropicAiClient:()=>vl,instrumentGoogleGenAIClient:()=>xl,instrumentLangGraph:()=>Ll,instrumentOpenAiClient:()=>Al,instrumentOutgoingRequests:()=>Dc,instrumentSupabaseClient:()=>sa,isEnabled:()=>hi,isInitialized:()=>Mu,lastEventId:()=>mi,launchDarklyIntegration:()=>AE,lazyLoadIntegration:()=>sc,linkedErrorsIntegration:()=>Ya,logger:()=>ua,makeBrowserOfflineTransport:()=>oE,makeFetchTransport:()=>Ro,makeMultiplexedTransport:()=>Xu,metrics:()=>la,moduleMetadataIntegration:()=>il,onLoad:()=>b_,openFeatureIntegration:()=>vE,opera10StackLineParser:()=>__,opera11StackLineParser:()=>g_,parameterize:()=>Zs,registerSpanErrorInstrumentation:()=>Ti,registerWebWorker:()=>ME,replayCanvasIntegration:()=>WS,replayIntegration:()=>NS,reportPageLoaded:()=>nE,reportingObserverIntegration:()=>sg,rewriteFramesIntegration:()=>cl,sendFeedback:()=>vd,setActiveSpanInBrowser:()=>rE,setContext:()=>pi,setCurrentClient:()=>Qs,setExtra:()=>Nu,setExtras:()=>vu,setHttpStatus:()=>mn,setMeasurement:()=>ai,setTag:()=>wu,setTags:()=>Cu,setUser:()=>xu,showReportDialog:()=>og,spanToBaggageHeader:()=>pu,spanToJSON:()=>P,spanToTraceHeader:()=>oi,spotlightBrowserIntegration:()=>m_,startBrowserTracingNavigationSpan:()=>
22Lf,startBrowserTracingPageLoadSpan:()=>Mf,startInactiveSpan:()=>Tt,startNewTrace:()=>Ws,startSession:()=>Jr,startSpan:()=>Ye,startSpanManual:()=>dt,statsigIntegration:()=>wE,supabaseIntegration:()=>ul,suppressTracing:()=>ci,thirdPartyErrorFilterIntegration:()=>dl,uiProfiler:()=>ng,unleashIntegration:()=>NE,updateSpanName:()=>du,webWorkerIntegration:()=>OE,winjsStackLineParser:()=>h_,withActiveSpan:()=>Wn,withIsolationScope:()=>As,withScope:()=>Ue,zodErrorsIntegration:()=>ll});f();f();f();var sn=N,he=sn.document,Yi=sn.navigator,F_="Report a Bug",UR="Cancel",DR="Send Bug Report",BR="Confirm",FR="Report a Bug",HR="[email protected]",GR="Email",$R="What's the bug? What did you expect?",WR="Description",jR="Your Name",zR="Name",qR="Thank you for your report!",YR="(required)",VR="Add a screenshot",JR="Remove screenshot",KR="Highlight",XR="Hide",QR="Remove",ZR="widget",ev="api",tv=5e3,vd=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");let n=y();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&M().setTags(e.tags);let r=ki({source:ev,url:ct(),...e},t);return new Promise((o,i)=>{let s=setTimeout(()=>i("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(s),a(),u?.statusCode&&u.statusCode>
22=200&&u.statusCode<300?o(r):u?.statusCode===403?i("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):i("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},Qa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nv(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Yi.userAgent)||/Macintosh/i.test(Yi.userAgent)&&Yi.maxTouchPoints&&Yi.maxTouchPoints>1||!isSecureContext)}function Ja(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function rv(e){let t=he.createElement("style");return t.textContent=` 23.widget__actor { 24 position: fixed; 25 z-index: var(--z-index); 26 margin: var(--page-margin); 27 inset: var(--actor-inset); 28 29 display: flex; 30 align-items: center; 31 gap: 8px; 32 padding: 16px; 33 34 font-family: inherit; 35 font-size: var(--font-size); 36 font-weight: 600; 37 line-height: 1.14em; 38 text-decoration: none; 39 40 background: var(--actor-background, var(--background)); 41 border-radius: var(--actor-border-radius, 1.7em/50%); 42 border: var(--actor-border, var(--border));
43 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 44 color: var(--actor-color, var(--foreground)); 45 fill: var(--actor-color, var(--foreground)); 46 cursor: pointer; 47 opacity: 1; 48 transition: transform 0.2s ease-in-out; 49 transform: translate(0, 0) scale(1); 50} 51.widget__actor[aria-hidden="true"] { 52 opacity: 0; 53 pointer-events: none; 54 visibility: hidden; 55 transform: translate(0, 16px) scale(0.98); 56} 57 58.widget__actor:hover { 59 background: var(--actor-hover-background, var(--background)); 60 filter: var(--interactive-filter); 61} 62 63.widget__actor svg { 64 width: 1.14em; 65 height: 1.14em; 66} 67 68@media (max-width: 600px) { 69 .widget__actor span { 70 display: none; 71 } 72} 73`,e&&t.setAttribute("nonce",e),t}function Gt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}var vo=20,ov="http://www.w3.org/2000/svg";function iv(){let e=a=>sn.document.createElementNS(ov,a),t=Gt(e("svg"),{width:`${vo}`,height:`${vo}`,viewBox:`0 0 ${vo} ${vo}`,fill:"var(--actor-color, var(--foreground))"}),n=Gt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Gt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let o=e("defs"),i=Gt(e("clipPath"),{id:"clip0_57_80"}),s=Gt(e("rect"),{width:`${vo}`,height:`${vo}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}function sv({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let o=he.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||F_,o.appendChild(iv()),e){let s=he.createElement("span");s.appendChild(he.createTextNode(e)),o.appendChild(s)}let i=rv(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}var H_="rgba(88, 74, 192, 1)",av={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:H_,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},I_={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
73d:H_,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function A_(e){return` 74 --foreground: ${e.foreground}; 75 --background: ${e.background}; 76 --accent-foreground: ${e.accentForeground}; 77 --accent-background: ${e.accentBackground}; 78 --success-color: ${e.successColor}; 79 --error-color: ${e.errorColor}; 80 --border: ${e.border}; 81 --box-shadow: ${e.boxShadow}; 82 --outline: ${e.outline}; 83 --interactive-filter: ${e.interactiveFilter}; 84 `}function cv({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let o=he.createElement("style");return o.textContent=` 85:host { 86 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 87 --font-size: 14px; 88 --z-index: 100000; 89 90 --page-margin: 16px; 91 --inset: auto 0 0 auto; 92 --actor-inset: var(--inset); 93 94 font-family: var(--font-family); 95 font-size: var(--font-size); 96 97 ${e!=="system"?"color-scheme: only light;":""} 98 99 ${A_(e==="dark"?{...I_,...t}:{...av,...n})} 100} 101 102${e==="system"?` 103@media (prefers-color-scheme: dark) { 104 :host { 105 ${A_({...I_,...t})} 106 } 107}`:""} 108} 109`,r&&o.setAttribute("nonce",r),o}var oc=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:o="sentry-feedback",autoInject:i=!0,showBranding:s=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:p={email:"email",name:"username"},tags:m,styleNonce:h,scriptNonce:g,colorScheme:S="system",themeLight:E={},themeDark:I={},addScreenshotButtonLabel:B=VR,cancelButtonLabel:L=UR,confirmButtonLabel:q=BR,emailLabel:F=GR,emailPlaceholder:T=HR,formTitle:k=FR,isRequiredLabel:$=YR,messageLabel:R=WR,messagePlaceholder:O=$R,nameLabel:w=zR,namePlaceholder:U=jR,removeScreenshotButtonLabel:H=JR,submitButtonLabel:ne=DR,successMessageText:te=qR,triggerLabel:le=F_,triggerAriaLabel:v="",highlightToolText:Y=KR,hideToolText:C=XR,removeHighlightText:V=QR,onFormOpen:fe,onFormClose:ae,onSubmitSuccess:we,onSubmitError:ot,onFormSubmitted:Ln}={})=>{let it={id:o,autoInject:i,showBranding:s,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:p,tags:m,styleNonce:h,scriptNonce:g,colorScheme:S,themeDark:I,themeLight:E,triggerLabel:le,triggerAriaLabel:v,cancelButtonLabel:L,submitButtonLabel:ne,confirmButtonLabel:q,formTitle:k,emailLabel:F,emailPlaceholder:T,messageLabel:R,messagePlaceholder:O,nameLabel:w,namePlaceholder:U,successMessageText:te,isRequiredLabel:$,addScreenshotButtonLabel:B,removeScreenshotButtonLabel:H,highlightToolText:Y,hideToolText:C,removeHighlightText:V,onFormClose:ae,onFormOpen:fe,onSubmitError:ot,onSubmitSuccess:we,onFormSubmitted:Ln},_t=null,cn=[],Pn=pe=>{if(!_t){let Ae=he.createElement("div");Ae.id=String(pe.id),he.body.appendChild(Ae),_t=Ae.attachShadow({mode:"open"}),_t.appendChild(cv(pe))}return _t},jo=async pe=>{let Ae=pe.enableScreenshot&&nv(),Wt,$e;try{Wt=(t?t():await e("feedbackModalIntegration",g))(),Qr(Wt)}catch{throw Qa&&_.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{let un=Ae?n?n():await e("feedbackScreenshotIntegration",g):void 0;un&&($e=un(),Qr($e))}catch{Qa&&_.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let Ve=Wt.createDialog({options:{...pe,onFormClose:()=>{Ve?.close(),pe.onFormClose?.()},onFormSubmitted:()=>{Ve?.close(),pe.onFormSubmitted?.()}},screenshotIntegration:$e,sendFeedback:vd,shadow:Pn(pe)});return Ve},hs=(pe,Ae={})=>{let Wt=Ja(it,Ae),$e=typeof pe=="string"?he.querySelector(pe):typeof pe.addEventListener=="function"?pe:null;if(!$e)throw Qa&&_.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let Ve=null,un=async()=>{Ve||(Ve=await jo({...Wt,onFormSubmitted:()=>{Ve?.removeFromDom(),Wt.onFormSubmitted?.()}})),Ve.appendToDom(),Ve.open()};$e.addEventListener("click",un);let re=()=>{cn=cn.filter(Nt=>Nt!==re),Ve?.removeFromDom(),Ve=null,$e.removeEventListener("click",un)};return cn.push(re),re},zo=(pe={})=>{let Ae=Ja(it,pe),Wt=Pn(Ae),$e=sv({triggerLabel:Ae.triggerLabel,triggerAriaLabel:Ae.triggerAriaLabel,shadow:Wt,styleNonce:h});return hs($e.el,{...Ae,onFormOpen(){$e.hide()},onFormClose(){$e.show()},onFormSubmitted(){$e.show()}}),$e};return{name:"Feedback",setupOnce(){!er()||!it.autoInject||(he.readyState==="loading"?he.addEventListener("DOMContentLoaded",()=>zo().appendToDom()):zo().appendToDom())},attachTo:hs,createWidget(pe={}){let Ae=zo(Ja(it,pe));return Ae.appendToDom(),Ae},async createForm(pe={}){return jo(Ja(it,pe))},remove(){_t&&(_t.parentElement?.remove(),_t=null),cn.forEach(pe=>pe()),cn=[]}}};function G_(){return y()?.getIntegrationByName("Feedback")}var ic,ge,$_,Mr,R_,W_,bd,Vi={},Nd=[],uv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Cd=Array.isArray;function rr(e,t){for(var n in t)e[n]=t[n];return e}function j_(e){var t=e.parentNode;t&&t.removeChild(e)}function J(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ic.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Za(e,s,r,o,null)}function Za(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++$_,__i:-1,__u:0};return o==null&&ge.vnode!=null&&ge.vnode(i),i}function Ji(e){return e.children}function ec(e,t){this.props=e,this.context=t}function Co(e,t){if(t==null)return e.__?Co(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Co(e):null}function lv(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=rr({},o)).__v=o.__v+1,ge.vnode&&ge.vnode(r),wd(s,r,o,e.__n,s.ownerSVGElement!==void 0,32&o.__u?[i]:null,t,i??Co(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&z_(r),r}function z_(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return z_(e)}}function v_(e){(!e.__d&&(e.__d=!0)&&Mr.push(e)&&!rc.__r++||R_!==ge.debounceRendering)&&((R_=ge.debounceRendering)||W_)(rc)}function rc(){var e,t,n,r=[],o=[];for(Mr.sort(bd);e=Mr.shift();)e.__d&&(n=Mr.length,t=lv(e,r,o)||t,n===0||Mr.length>n?(Id(r,t,o),o.length=r.length=0,t=void 0,Mr.sort(bd)):t&&ge.__c&&ge.__c(t,Nd));t&&Id(r,t,o),rc.__r=0}function q_(e,t,n,r,o,i,s,a,c,u,d){var l,p,m,h,g,S=r&&r.__k||Nd,E=t.length;for(n.__d=c,dv(n,t,S),c=n.__d,l=0;l<E;l++)(m=n.__k[l])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?Vi:S[m.__i]||Vi,m.__i=l,wd(e,m,p,o,i,s,a,c,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&xd(p.ref,null,m),d.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),65536&m.__u||p.__k===m.__k?c=Y_(m,c,e):typeof m.type=="function"&&m.__d!==void 0?c=m.__d:h&&(c=h.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=c,n.__e=g}function dv(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="str
109ing"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Za(null,o,null,null,o):Cd(o)?Za(Ji,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Za(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=fv(o,n,s=r+l,d),o.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?l++:a>s?d>c-s?l+=a-s:l--:l=a<s&&a==s-1?a-s:0,a!==r+l&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Co(i)),Ad(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Co(i)),Ad(i,i))}function Y_(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Y_(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function fv(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function N_(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||uv.test(t)?n:n+"px"}function Ka(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||N_(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||N_(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?w_:C_,i)):e.removeEventListener(t,i?w_:C_,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function C_(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(ge.event?ge.event(e):e)}}function w_(e){if(this.l)return this.l[e.type+!0](ge.event?ge.event(e):e)}function wd(e,t,n,r,o,i,s,a,c,u){var d,l,p,m,h,g,S,E,I,B,L,q,F,T,k,$=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=ge.__b)&&d(t);e:if(typeof $=="function")try{if(E=t.props,I=(d=$.contextType)&&r[d.__c],B=d?I?I.props.value:d.__:r,n.__c?S=(l=t.__c=n.__c).__=l.__E:("prototype"in $&&$.prototype.render?t.__c=l=new $(E,B):(t.__c=l=new ec(E,B),l.constructor=$,l.render=mv),I&&I.sub(l),l.props=E,l.state||(l.state={}),l.context=B,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),$.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=rr({},l.__s)),rr(l.__s,$.getDerivedStateFromProps(E,l.__s))),m=l.props,h=l.state,l.__v=t,p)$.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if($.getDerivedStateFromProps==null&&E!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(E,B),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(E,l.__s,B)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=E,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(R){R&&(R.__=t)}),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(E,l.__s,B),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,g)})}if(l.context=B,l.props=E,l.__P=e,l.__e=!1,q=ge.__r,F=0,"prototype"in $&&$.prototype.render){for(l.state=l.__s,l.__d=!1,q&&q(t),d=l.render(l.props,l.state,l.context),T=0;T<l._sb.length;T++)l.__h.push(l._sb[T]);l._sb=[]}else do l.__d=!1,q&&q(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++F<25);l.state=l.__s,l.getChildContext!=null&&(r=rr(rr({},r),l.getChildContext())),p||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(m,h)),q_(e,Cd(k=d!=null&&d.type===Ji&&d.key==null?d.props.children:d)?k:[k],t,n,r,o,i,s,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),S&&(l.__E=l.__=null)}catch(R){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),ge.__e(R,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=pv(n.__e,t,n,r,o,i,s,c,u);(d=ge.diffed)&&d(t)}
109function Id(e,t,n){for(var r=0;r<n.length;r++)xd(n[r],n[++r],n[++r]);ge.__c&&ge.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){ge.__e(i,o.__v)}})}function pv(e,t,n,r,o,i,s,a,c){var u,d,l,p,m,h,g,S=n.props,E=t.props,I=t.type;if(I==="svg"&&(o=!0),i!=null){for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!I&&(I?m.localName===I:m.nodeType===3)){e=m,i[u]=null;break}}if(e==null){if(I===null)return document.createTextNode(E);e=o?document.createElementNS("http://www.w3.org/2000/svg",I):document.createElement(I,E.is&&E),i=null,a=!1}if(I===null)S===E||a&&e.data===E||(e.data=E);else{if(i=i&&ic.call(e.childNodes),S=n.props||Vi,!a&&i!=null)for(S={},u=0;u<e.attributes.length;u++)S[(m=e.attributes[u]).name]=m.value;for(u in S)m=S[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=m:u==="key"||u in E||Ka(e,u,null,m,o));for(u in E)m=E[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?h=m:u=="checked"?g=m:u==="key"||a&&typeof m!="function"||S[u]===m||Ka(e,u,m,S[u],o);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),q_(e,Cd(p)?p:[p],t,n,r,o&&I!=="foreignObject",i,s,i?i[0]:n.__k&&Co(n,0),a,c),i!=null)for(u=i.length;u--;)i[u]!=null&&j_(i[u]);a||(u="value",h!==void 0&&(h!==e[u]||I==="progress"&&!h||I==="option"&&h!==S[u])&&Ka(e,u,h,S[u],!1),u="checked",g!==void 0&&g!==e[u]&&Ka(e,u,g,S[u],!1))}return e}function xd(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ge.__e(r,n)}}function Ad(e,t,n){var r,o;if(ge.unmount&&ge.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||xd(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ge.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ad(r[o],t,n||typeof e.type!="function");n||e.__e==null||j_(e.__e),e.__=e.__e=e.__d=void 0}function mv(e,t,n){return this.constructor(e,n)}function hv(e,t,n){var r,o,i,s;ge.__&&ge.__(e,t),o=(r=!1)?null:t.__k,i=[],s=[],wd(t,e=t.__k=J(Ji,null,[e]),o||Vi,Vi,t.ownerSVGElement!==void 0,o?null:t.firstChild?ic.call(t.childNodes):null,i,o?o.__e:t.firstChild,r,s),e.__d=void 0,Id(i,e,s)}ic=Nd.slice,ge={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},$_=0,ec.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=rr({},this.state),typeof e=="function"&&(e=e(rr({},n),this.props)),e&&rr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),v_(this))},ec.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v_(this))},ec.prototype.render=Ji,Mr=[],W_=typeof Promise=="function"?Promise.prototype.then.bind(Prom
109ise.resolve()):setTimeout,bd=function(e,t){return e.__v.__b-t.__v.__b},rc.__r=0;var kn,_e,gd,x_,wo=0,V_=[],tc=[],Re=ge,k_=Re.__b,O_=Re.__r,M_=Re.diffed,L_=Re.__c,P_=Re.unmount,U_=Re.__;function Pr(e,t){Re.__h&&Re.__h(_e,e,wo||t),wo=0;var n=_e.__H||(_e.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:tc}),n.__[e]}function Lr(e){return wo=1,J_(X_,e)}function J_(e,t,n){var r=Pr(kn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):X_(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=_e,!_e.u)){var o=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,a,c,u);var l=!1;return d.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!i||i.call(this,a,c,u))};_e.u=!0;var i=_e.shouldComponentUpdate,s=_e.componentWillUpdate;_e.componentWillUpdate=function(a,c,u){if(this.__e){var d=i;i=void 0,o(a,c,u),i=d}s&&s.call(this,a,c,u)},_e.shouldComponentUpdate=o}return r.__N||r.__}function _v(e,t){var n=Pr(kn++,3);!Re.__s&&kd(n.__H,t)&&(n.__=e,n.i=t,_e.__H.__h.push(n))}function K_(e,t){var n=Pr(kn++,4);!Re.__s&&kd(n.__H,t)&&(n.__=e,n.i=t,_e.__h.push(n))}function gv(e){return wo=5,Ki(function(){return{current:e}},[])}function Sv(e,t,n){wo=6,K_(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Ki(e,t){var n=Pr(kn++,7);return kd(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function No(e,t){return wo=8,Ki(function(){return e},t)}function Ev(e){var t=_e.context[e.__c],n=Pr(kn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_e)),t.props.value):e.__}function Tv(e,t){Re.useDebugValue&&Re.useDebugValue(t?t(e):e)}function yv(e){var t=Pr(kn++,10),n=Lr();return t.__=e,_e.componentDidCatch||(_e.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function bv(){var e=Pr(kn++,11);if(!e.__){for(var t=_e.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Iv(){for(var e;e=V_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nc),e.__H.__h.forEach(Rd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}Re.__b=function(e){_e=null,k_&&k_(e)},Re.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),U_&&U_(e,t)},Re.__r=function(e){O_&&O_(e),kn=0;var t=(_e=e.__c).__H;t&&(gd===_e?(t.__h=[],_e.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=tc,n.__N=n.i=void 0})):(t.__h.forEach(nc),t.__h.forEach(Rd),t.__h=[],kn=0)),gd=_e},Re.diffed=function(e){M_&&M_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(V_.push(t)!==1&&x_===Re.requestAnimationFrame||((x_=Re.requestAnimationFrame)||Av)(Iv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==tc&&(n.__=n.__V),n.i=void 0,n.__V=tc})),gd=_e=null},Re.__c=function(e,t){t.some(function(n){try{n.__h.forEach(nc),n.__h=n.__h.filter(function(r){return!r.__||Rd(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Re.__e(r,n.__v)}}),L_&&L_(e,t)},Re.unmount=function(e){P_&&P_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{nc(r)}catch(o){t=o}}),n.__H=void 0,t&&Re.__e(t,n.__v))};var D_=typeof requestAnimationFrame=="function";function Av(e){var t,n=function(){clearTimeout(r),D_&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);D_&&(t=requestAnimationFrame(n))}function nc(e){var t=_e,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_e=t}function Rd(e){var t=_e;e.__c=e.__(),_e=t}function kd(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function X_(e,t){return typeof t=="function"?t(e):t}var Rv=Object.defineProperty({__proto__:null,useCallback:No,useContext:Ev,useDebugValue:Tv,useEffect:_v,useErrorBoundary:yv,useId:bv,useImperativeHandle:Sv,useLayoutEffect:K_,useMemo:Ki,useReducer:J_,useRef:gv,useState:Lr},Symbol.toStringTag,{value:"Module"}),vv="http://www.w3.org/2000/svg";function Nv(){let e=r=>he.createElementNS(vv,r),t=Gt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Gt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function Cv({options:e}){let t=Ki(()=>({__html:Nv().outerHTML}),[]);return J("h2",{class:"dialog__header"},J("span",{class:"dialog__title"},e.formTitle),e.showBranding?J("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function wv(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Sd(e,t){let n=e.get(t);return typeof n=="string"?n.trim():""}
109function xv({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:a,showName:c,screenshotInput:u}){let{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:p,cancelButtonLabel:m,emailLabel:h,emailPlaceholder:g,isEmailRequired:S,isNameRequired:E,messageLabel:I,messagePlaceholder:B,nameLabel:L,namePlaceholder:q,submitButtonLabel:F,isRequiredLabel:T}=e,[k,$]=Lr(!1),[R,O]=Lr(null),[w,U]=Lr(!1),H=u?.input,[ne,te]=Lr(null),le=No(C=>{te(C),U(!1)},[]),v=No(C=>{let V=wv(C,{emailLabel:h,isEmailRequired:S,isNameRequired:E,messageLabel:I,nameLabel:L});return V.length>0?O(`Please enter in the following required fields: ${V.join(", ")}`):O(null),V.length===0},[h,S,E,I,L]),Y=No(async C=>{$(!0);try{if(C.preventDefault(),!(C.target instanceof HTMLFormElement))return;let V=new FormData(C.target),fe=await(u&&w?u.value():void 0),ae={name:Sd(V,"name"),email:Sd(V,"email"),message:Sd(V,"message"),attachments:fe?[fe]:void 0};if(!v(ae))return;try{let we=await o({name:ae.name,email:ae.email,message:ae.message,source:ZR,tags:d},{attachments:ae.attachments});i(ae,we)}catch(we){Qa&&_.error(we),O(we),s(we)}}finally{$(!1)}},[u&&w,i,s]);return J("form",{class:"form",onSubmit:Y},H&&w?J(H,{onError:le}):null,J("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:k},J("div",{class:"form__top"},R?J("div",{class:"form__error-container"},R):null,c?J("label",{for:"name",class:"form__label"},J(Ed,{label:L,isRequiredLabel:T,isRequired:E}),J("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:q,required:E,type:"text"})):J("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?J("label",{for:"email",class:"form__label"},J(Ed,{label:h,isRequiredLabel:T,isRequired:S}),J("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:S,type:"email"})):J("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),J("label",{for:"message",class:"form__label"},J(Ed,{label:I,isRequiredLabel:T,isRequired:!0}),J("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:B,required:!0,rows:5})),H?J("label",{for:"screenshot",class:"form__label"},J("button",{class:"btn btn--default",disabled:k,type:"button",onClick:()=>{te(null),U(C=>!C)}},w?p:l),ne?J("div",{class:"form__error-container"},ne.message):null):null),J("div",{class:"btn-group"},J("button",{class:"btn btn--primary",disabled:k,type:"submit"},F),J("button",{class:"btn btn--default",disabled:k,type:"button",onClick:r},m))))}function Ed({label:e,isRequired:t,isRequiredLabel:n}){return J("span",{class:"form__label__text"},e,t&&J("span",{class:"form__label__text--required"},n))}var Xa=16,B_=17,kv="http://www.w3.org/2000/svg";function Ov(){let e=c=>sn.document.createElementNS(kv,c),t=Gt(e("svg"),{width:`${Xa}`,height:`${B_}`,viewBox:`0 0 ${Xa} ${B_}`,fill:"inherit"}),n=Gt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Gt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Gt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173
10910.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);let i=e("defs"),s=Gt(e("clipPath"),{id:"clip0_57_156"}),a=Gt(e("rect"),{width:`${Xa}`,height:`${Xa}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function Mv({open:e,onFormSubmitted:t,...n}){let r=n.options,o=Ki(()=>({__html:Ov().outerHTML}),[]),[i,s]=Lr(null),a=No(()=>{i&&(clearTimeout(i),s(null)),t()},[i]),c=No((u,d)=>{n.onSubmitSuccess(u,d),s(setTimeout(()=>{t(),s(null)},tv))},[t]);return J(Ji,null,i?J("div",{class:"success__position",onClick:a},J("div",{class:"success__content"},r.successMessageText,J("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):J("dialog",{class:"dialog",onClick:r.onFormClose,open:e},J("div",{class:"dialog__position"},J("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},J(Cv,{options:r}),J(xv,{...n,onSubmitSuccess:c})))))}var Lv=` 110.dialog { 111 position: fixed; 112 z-index: var(--z-index); 113 margin: 0; 114 inset: 0; 115 116 display: flex; 117 align-items: center; 118 justify-content: center; 119 padding: 0; 120 height: 100vh; 121 width: 100vw; 122 123 color: var(--dialog-color, var(--foreground)); 124 fill: var(--dialog-color, var(--foreground)); 125 line-height: 1.75em; 126 127 background-color: rgba(0, 0, 0, 0.05); 128 border: none; 129 inset: 0; 130 opacity: 1; 131 transition: opacity 0.2s ease-in-out; 132} 133 134.dialog__position { 135 position: fixed; 136 z-index: var(--z-index); 137 inset: var(--dialog-inset); 138 padding: var(--page-margin); 139 display: flex; 140 max-height: calc(100vh - (2 * var(--page-margin))); 141} 142@media (max-width: 600px) { 143 .dialog__position { 144 inset: var(--page-margin); 145 padding: 0; 146 } 147} 148 149.dialog__position:has(.editor) { 150 inset: var(--page-margin); 151 padding: 0; 152} 153 154.dialog:not([open]) { 155 opacity: 0; 156 pointer-events: none; 157 visibility: hidden; 158} 159.dialog:not([open]) .dialog__content { 160 transform: translate(0, -16px) scale(0.98); 161} 162 163.dialog__content { 164 display: flex; 165 flex-direction: column; 166 gap: 16px; 167 padding: var(--dialog-padding, 24px); 168 max-width: 100%; 169 width: 100%; 170 max-height: 100%; 171 overflow: auto; 172 173 background: var(--dialog-background, var(--background)); 174 border-radius: var(--dialog-border-radius, 20px); 175 border: var(--dialog-border, var(--border));
176 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 177 transform: translate(0, 0) scale(1); 178 transition: transform 0.2s ease-in-out; 179} 180 181`,Pv=` 182.dialog__header { 183 display: flex; 184 gap: 4px; 185 justify-content: space-between; 186 font-weight: var(--dialog-header-weight, 600); 187 margin: 0; 188} 189.dialog__title { 190 align-self: center; 191 width: var(--form-width, 272px); 192} 193 194@media (max-width: 600px) { 195 .dialog__title { 196 width: auto; 197 } 198} 199 200.dialog__position:has(.editor) .dialog__title { 201 width: auto; 202} 203 204 205.brand-link { 206 display: inline-flex; 207} 208.brand-link:focus-visible { 209 outline: var(--outline); 210} 211`,Uv=` 212.form { 213 display: flex; 214 overflow: auto; 215 flex-direction: row; 216 gap: 16px; 217 flex: 1 0; 218} 219 220.form fieldset { 221 border: none; 222 margin: 0; 223 padding: 0; 224} 225 226.form__right { 227 flex: 0 0 auto; 228 display: flex; 229 overflow: auto; 230 flex-direction: column; 231 justify-content: space-between; 232 gap: 20px; 233 width: var(--form-width, 100%); 234} 235 236.dialog__position:has(.editor) .form__right { 237 width: var(--form-width, 272px); 238} 239 240.form__top { 241 display: flex; 242 flex-direction: column; 243 gap: 8px; 244} 245 246.form__error-container { 247 color: var(--error-color); 248 fill: var(--error-color); 249} 250 251.form__label { 252 display: flex; 253 flex-direction: column; 254 gap: 4px; 255 margin: 0px; 256} 257 258.form__label__text { 259 display: flex; 260 gap: 4px; 261 align-items: center; 262} 263 264.form__label__text--required { 265 font-size: 0.85em; 266} 267 268.form__input { 269 font-family: inherit; 270 line-height: inherit; 271 background: transparent; 272 box-sizing: border-box; 273 border: var(--input-border, var(--border)); 274 border-radius: var(--input-border-radius, 6px); 275 color: var(--input-color, inherit); 276 fill: var(--input-color, inherit); 277 font-size: var(--input-font-size, inherit); 278 font-weight: var(--input-font-weight, 500); 279 padding: 6px 12px; 280} 281 282.form__input::placeholder { 283 opacity: 0.65; 284 color: var(--input-placeholder-color, inherit); 285 filter: var(--interactive-filter); 286} 287 288.form__input:focus-visible { 289 outline: var(--input-focus-outline, var(--outline)); 290} 291 292.form__input--textarea { 293 font-family: inherit; 294 resize: vertical; 295} 296 297.error { 298 color: var(--error-color); 299 fill: var(--error-color); 300} 301`,Dv=` 302.btn-group { 303 display: grid; 304 gap: 8px; 305} 306 307.btn { 308 line-height: inherit; 309 border: var(--button-border, var(--border)); 310 border-radius: var(--button-border-radius, 6px); 311 cursor: pointer; 312 font-family: inherit; 313 font-size: var(--button-font-size, inherit); 314 font-weight: var(--button-font-weight, 600); 315 padding: var(--button-padding, 6px 16px); 316} 317.btn[disabled] { 318 opacity: 0.6; 319 pointer-events: none; 320} 321 322.btn--primary { 323 color: var(--button-primary-color, var(--accent-foreground)); 324 fill: var(--button-primary-color, var(--accent-foreground)); 325 background: var(--button-primary-background, var(--accent-background)); 326 border: var(--button-primary-border, var(--border)); 327 border-radius: var(--button-primary-border-radius, 6px); 328 font-weight: var(--button-primary-font-weight, 500); 329} 330.btn--primary:hover { 331 color: var(--button-primary-hover-color, var(--accent-foreground)); 332 fill: var(--button-primary-hover-color, var(--accent-foreground)); 333 background: var(--button-primary-hover-background, var(--accent-background)); 334 filter: var(--interactive-filter); 335} 336.btn--primary:focus-visible { 337 background: var(--button-primary-hover-background, var(--accent-background)); 338 filter: var(--interactive-filter); 339 outline: var(--button-primary-focus-outline, var(--outline)); 340} 341 342.btn--default { 343 color: var(--button-color, var(--foreground)); 344 fill: var(--button-color, var(--foreground)); 345 background: var(--button-background, var(--background)); 346 border: var(--button-border, var(--border)); 347 border-radius: var(--button-border-radius, 6px); 348 font-weight: var(--button-font-weight, 500); 349} 350.btn--default:hover { 351 color: var(--button-color, var(--foreground)); 352 fill: var(--button-color, var(--foreground)); 353 background: var(--button-hover-background, var(--background)); 354 filter: var(--interactive-filter); 355} 356.btn--default:focus-visible { 357 background: var(--button-hover-background, var(--background)); 358 filter: var(--interactive-filter); 359 outline: var(--button-focus-outline, var(--outline)); 360} 361`,Bv=` 362.success__position { 363 position: fixed; 364 inset: var(--dialog-inset); 365 padding: var(--page-margin); 366 z-index: var(--z-index); 367} 368.success__content { 369 background: var(--success-background, var(--background)); 370 border: var(--success-border, var(--border)); 371 border-radius: var(--success-border-radius, 1.7em/50%);
372 box-shadow: var(--success-box-shadow, var(--box-shadow)); 373 font-weight: var(--success-font-weight, 600); 374 color: var(--success-color); 375 fill: var(--success-color); 376 padding: 12px 24px; 377 line-height: 1.75em; 378 379 display: grid; 380 align-items: center; 381 grid-auto-flow: column; 382 gap: 6px; 383 cursor: default; 384} 385 386.success__icon { 387 display: flex; 388} 389`;function Fv(e){let t=he.createElement("style");return t.textContent=` 390:host { 391 --dialog-inset: var(--inset); 392} 393 394${Lv} 395${Pv} 396${Uv} 397${Dv} 398${Bv} 399`,e&&t.setAttribute("nonce",e),t}function Hv(){let e=M().getUser(),t=ue().getUser(),n=lt().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var Q_=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let o=r,i=e.useSentryUser,s=Hv(),a=he.createElement("div"),c=Fv(e.styleNonce),u="",d={get el(){return a},appendToDom(){!o.contains(c)&&!o.contains(a)&&(o.appendChild(c),o.appendChild(a))},removeFromDom(){a.remove(),c.remove(),he.body.style.overflow=u},open(){p(!0),e.onFormOpen?.(),y()?.emit("openFeedbackWidget"),u=he.body.style.overflow,he.body.style.overflow="hidden"},close(){p(!1),he.body.style.overflow=u}},l=t?.createInput({h:J,hooks:Rv,dialog:d,options:e}),p=m=>{hv(J(Mv,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:i&&s?.[i.name]||"",defaultEmail:i&&s?.[i.email]||"",onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,g)=>{p(!1),e.onSubmitSuccess?.(h,g)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:m}),a)};return d}});function Gv({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function $v(e){let t=he.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 400.editor { 401 display: flex; 402 flex-grow: 1; 403 flex-direction: column; 404} 405 406.editor__image-container { 407 justify-items: center; 408 padding: 15px; 409 position: relative; 410 height: 100%; 411 border-radius: var(--menu-border-radius, 6px); 412 413 background-color: ${n}; 414 background-image: repeating-linear-gradient( 415 -145deg, 416 transparent, 417 transparent 8px, 418 ${n} 8px, 419 ${n} 11px 420 ), 421 repeating-linear-gradient( 422 -45deg, 423 transparent, 424 transparent 15px, 425 ${r} 15px, 426 ${r} 16px 427 ); 428} 429 430.editor__canvas-container { 431 width: 100%; 432 height: 100%; 433 position: relative; 434 display: flex; 435 align-items: center; 436 justify-content: center; 437} 438 439.editor__canvas-container > * { 440 object-fit: contain; 441 position: absolute; 442} 443 444.editor__tool-container { 445 padding-top: 8px; 446 display: flex; 447 justify-content: center; 448} 449 450.editor__tool-bar { 451 display: flex; 452 gap: 8px; 453} 454 455.editor__tool { 456 display: flex; 457 padding: 8px 12px; 458 justify-content: center; 459 align-items: center; 460 border: var(--button-border, var(--border)); 461 border-radius: var(--button-border-radius, 6px); 462 background: var(--button-background, var(--background)); 463 color: var(--button-color, var(--foreground)); 464} 465 466.editor__tool--active { 467 background: var(--button-primary-background, var(--accent-background)); 468 color: var(--button-primary-color, var(--accent-foreground)); 469} 470 471.editor__rect { 472 position: absolute; 473 z-index: 2; 474} 475 476.editor__rect button { 477 opacity: 0; 478 position: absolute; 479 top: -12px; 480 right: -12px; 481 cursor: pointer; 482 padding: 0; 483 z-index: 3; 484 border: none; 485 background: none; 486} 487 488.editor__rect:hover button { 489 opacity: 1; 490} 491`,e&&t.setAttribute("nonce",e),t}function Wv({h:e}){return function({action:n,setAction:r,options:o}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},o.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},o.hideToolText)))}}function jv({hooks:e}){function t(){let[n,r]=e.useState(sn.devicePixelRatio??1);return e.useEffect(()=>{let o=()=>{r(sn.devicePixelRatio)},i=matchMedia(`(resolution: ${sn.devicePixelRatio}dppx)`);return i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:o,onAfterScreenshot:i,onError:s}){let a=t();e.useEffect(()=>{(async()=>{r();let u=await Yi.mediaDevices.getDisplayMedia({video:{width:sn.innerWidth*a,height:sn.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=he.createElement("video");await new Promise((l,p)=>{d.srcObject=u,d.onloadedmetadata=()=>
491{o(d,a),u.getTracks().forEach(m=>m.stop()),l()},d.play().catch(p)}),i()})().catch(s)},[])}}function zv(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function nr(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function Td(e,t){nr(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function yd(e,t,n){nr(e,{alpha:!0},(r,o)=>{n.length&&(o.fillStyle="rgba(0, 0, 0, 0.25)",o.fillRect(0,0,r.width,r.height)),n.forEach(i=>{zv(i,o,t)})})}function qv({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){let i=jv({hooks:t}),s=Wv({h:e}),a=Gv({h:e}),c={__html:$v(o.styleNonce).innerText},u=r.el.style,d=({screenshot:l})=>{let[p,m]=t.useState("highlight"),[h,g]=t.useState([]),S=t.useRef(null),E=t.useRef(null),I=t.useRef(null),B=t.useRef(null),[L,q]=t.useState(1),F=t.useMemo(()=>{let w=he.getElementById(o.id);if(!w)return"white";let U=getComputedStyle(w);return U.getPropertyValue("--button-primary-background")||U.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{let w=()=>{let U=S.current;U&&(nr(l.canvas,{alpha:!1},H=>{let ne=Math.min(U.clientWidth/H.width,U.clientHeight/H.height);q(ne)}),(U.clientHeight===0||U.clientWidth===0)&&setTimeout(w,0))};return w(),sn.addEventListener("resize",w),()=>{sn.removeEventListener("resize",w)}},[l]);let T=t.useCallback((w,U)=>{nr(w,{alpha:!0},(H,ne)=>{ne.scale(U,U),H.width=l.canvas.width,H.height=l.canvas.height})},[l]);t.useEffect(()=>{T(E.current,l.dpi),Td(E.current,l.canvas)},[l]),t.useEffect(()=>{T(I.current,l.dpi),nr(I.current,{alpha:!0},(w,U)=>{U.clearRect(0,0,w.width,w.height)}),yd(I.current,F,h)},[h,F]),t.useEffect(()=>{T(n,l.dpi),Td(n,l.canvas),nr(he.createElement("canvas"),{alpha:!0},(w,U)=>{U.scale(l.dpi,l.dpi),w.width=l.canvas.width,w.height=l.canvas.height,yd(w,F,h),Td(n,w)})},[h,l,F]);let k=w=>{if(!p||!B.current)return;let U=B.current.getBoundingClientRect(),H={type:p,x:w.offsetX/L,y:w.offsetY/L},ne=(v,Y)=>{let C=(Y.clientX-U.x)/L,V=(Y.clientY-U.y)/L;return{type:v.type,x:Math.min(v.x,C),y:Math.min(v.y,V),w:Math.abs(C-v.x),h:Math.abs(V-v.y)}},te=v=>{nr(I.current,{alpha:!0},(Y,C)=>{C.clearRect(0,0,Y.width,Y.height)}),yd(I.current,F,[...h,ne(H,v)])},le=v=>{let Y=ne(H,v);Y.w*L>=1&&Y.h*L>=1&&g(C=>[...C,Y]),he.removeEventListener("mousemove",te),he.removeEventListener("mouseup",le)};he.addEventListener("mousemove",te),he.addEventListener("mouseup",le)},$=t.useCallback(w=>U=>{U.preventDefault(),U.stopPropagation(),g(H=>{let ne=[...H];return ne.splice(w,1),ne})},[]),R={width:`${l.canvas.width*L}px`,height:`${l.canvas.height*L}px`},O=w=>{w.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:S},e("canvas",{ref:E,id:"background",style:R}),e("canvas",{ref:I,id:"foreground",style:R}),e("div",{ref:B,onMouseDown:k,style:R},h.map((w,U)=>e("div",{key:U,class:"editor__rect",style:{top:`${w.y*L}px`,left:`${w.x*L}px`,width:`${w.w*L}px`,height:`${w.h*L}px`}},e("button",{"aria-label":o.removeHighlightText,onClick:$(U),onMouseDown:O,onMouseUp:O,type:"button"},e(a,null))))))),e(s,{options:o,action:p,setAction:m}))};return function({onError:p}){let[m,h]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((g,S)=>{nr(he.createElement("canvas"),{alpha:!1},(E,I)=>{I.scale(S,S),E.width=g.videoWidth,E.height=g.videoHeight,I.drawImage(g,0,0,E.width,E.height),h({canvas:E,dpi:S})}),n.width=g.videoWidth,n.height=g.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(g=>{u.display="block",p(g)},[])}),m?e(d,{screenshot:m}):e("div",null)}}var Z_=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let o=he.createElement("canvas");return{input:qv({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{let i=await new Promise(s=>{o.toBlob(s,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}});f();var Yv={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},eg=x;async function sc(e,t){let n=Yv[e],r=eg.Sentry=eg.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);let o=r[e];if(typeof o=="function"&&!("_isShim"in o))return o;let i=Vv(n),s=x.document.createElement("script");
491s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);let a=new Promise((l,p)=>{s.addEventListener("load",()=>l()),s.addEventListener("error",p)}),c=x.document.currentScript,u=x.document.body||x.document.head||c?.parentElement;if(u)u.appendChild(s);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}let d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function Vv(e){let n=y()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${gt}/${e}.min.js`,n).toString()}var tg=oc({lazyLoadIntegration:sc});f();var Od=oc({getModalIntegration:()=>Q_,getScreenshotIntegration:()=>Z_});f();function Jv(){let e=y();if(!e){A&&_.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){A&&_.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function Kv(){let e=y();if(!e){A&&_.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){A&&_.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}var ng={startProfiler:Jv,stopProfiler:Kv};f();function rg(e,{metadata:t,tunnel:n,dsn:r}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:He(r)}},i=Xv(e);return Oe(o,[i])}function Xv(e){return[{type:"user_report"},e]}f();function og(e={}){let t=x.document,n=t?.head||t?.body;if(!n){A&&_.error("[showReportDialog] Global document not defined");return}let r=M(),i=y()?.getDsn();if(!i){A&&_.error("[showReportDialog] DSN not configured");return}let s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||mi()},a=x.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Uu(i,s);let{onLoad:c,onClose:u}=s;if(c&&(a.onload=c),u){let d=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{x.removeEventListener("message",d)}};x.addEventListener("message",d)}n.appendChild(a)}f();var Qv=N,Zv="ReportingObserver",ig=new WeakMap,eN=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(r){if(ig.has(y()))for(let o of r)Ue(i=>{i.setExtra("url",o.url);let s=`ReportingObserver [${o.type}]`,a="No details available";if(o.body){let c={};for(let u in o.body)c[u]=o.body[u];if(i.setExtra("body",c),o.type==="crash"){let u=o.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=o.body.message||a}fi(`${s}: ${a}`)})}return{name:Zv,setupOnce(){if(!Ul())return;new Qv.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){ig.set(r,!0)}}},sg=eN;f();var tN="HttpClient",nN=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:tN,setup(n){lN(n,t),dN(n,t)}}},cg=nN;function rN(e,t,n,r,o){if(lg(e,n.status,n.url)){let i=fN(t,r),s,a,c,u;fg()&&([s,c]=ag("Cookie",i),[a,u]=ag("Set-Cookie",n));let d=dg({url:i.url,method:i.method,status:n.status,requestHeaders:s,responseHeaders:a,requestCookies:c,responseCookies:u,error:o,type:"fetch"});en(d)}}function ag(e,t){let n=sN(t.headers),r;try{let o=n[e]||n[e.toLowerCase()]||void 0;o&&(r=ug(o))}catch{}return[n,r]}function oN(e,t,n,r,o){if(lg(e,t.status,t.responseURL)){let i,s,a;if(fg()){try{let u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(s=ug(u))}catch{}try{a=aN(t)}catch{}i=r}let c=dg({url:t.responseURL,method:n,status:t.status,requestHeaders:i,responseHeaders:a,responseCookies:s,error:o,type:"xhr"});en(c)}}function iN(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function ug(e){return e.split("; ").reduce((t,n)=>{let[r,o]=n.split("=");return r&&o&&(t[r]=o),t},{})}function sN(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}function aN(e){let t=e.getAllResponseHeaders();return t?t.split(`\r 492`).reduce((n,r)=>{let[o,i]=r.split(": ");return o&&i&&(n[o]=i),n},{}):{}}function cN(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function uN(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function lN(e,t){Fi()&&vr(n=>{if(y()!==e)return;let{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&rN(t,a,r,c,i||s)},!1)}function dN(e,t){"XMLHttpRequest"in N&&kr(n=>{if(y()!==e)return;let{error:r,virtualError:o}=n,i=n.xhr,s=i[pt];if(!s)return;let{method:a,request_headers:c}=s;try{oN(t,i,a,c,r||o)}catch(u){A&&_.warn("Error while extracting response event form XHR response",u)}})}function lg(e,t,n){return uN(e.failedRequestStatusCodes,t)&&cN(e.failedRequestTargets,n)&&!Ni(n,y())}function dg(e){let t=y(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:iN(e.responseHeaders)}}};return Ke(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function fN(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request
492(e,t)}function fg(){let e=y();return e?!!e.getOptions().sendDefaultPii:!1}f();var Md=N,pN=7,mN="ContextLines",hN=(e={})=>{let t=e.frameContextLines!=null?e.frameContextLines:pN;return{name:mN,processEvent(n){return _N(n,t)}}},pg=hN;function _N(e,t){let n=Md.document,r=Md.location&&vi(Md.location.href);if(!n||!r)return e;let o=e.exception?.values;if(!o?.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let s=["<!DOCTYPE html>","<html>",...i.split(` 493`),"</html>"];return o.forEach(a=>{let c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>gN(u,s,r,t)))}),e}function gN(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||nu(t,e,r),e}f();var SN="GraphQLClient",EN=e=>({name:SN,setup(t){TN(t,e),yN(t,e)}});function TN(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{let i=P(n).data||{};if(!(i[se]==="http.client"))return;let c=i[au]||i["http.url"],u=i[su]||i["http.method"];if(!Fe(c)||!Fe(u))return;let{endpoints:d}=t,l=ze(c,d),p=hg(r);if(l&&p){let m=_g(p);if(m){let h=mg(m);n.updateName(`${u} ${c} (${h})`),cc(m)&&n.setAttribute("graphql.document",m.query),uc(m)&&(n.setAttribute("graphql.persisted_query.hash.sha256",m.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",m.extensions.persistedQuery.version))}}})}function yN(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{let{category:o,type:i,data:s}=n;if(i==="http"&&(o==="fetch"||o==="xhr")){let d=s?.url,{endpoints:l}=t,p=ze(d,l),m=hg(r);if(p&&s&&m){let h=_g(m);if(!s.graphql&&h){let g=mg(h);s["graphql.operation"]=g,cc(h)&&(s["graphql.document"]=h.query),uc(h)&&(s["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,s["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function mg(e){if(uc(e))return`persisted ${e.operationName}`;if(cc(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=bN(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function hg(e){let t="xhr"in e,n;if(t){let r=e.xhr[pt];n=r&&Or(r.body)[0]}else{let r=bo(e.input);n=Or(r)[0]}return n}function bN(e){let t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};let o=e.match(n);return o?{operationType:o[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function ac(e){return typeof e=="object"&&e!==null}function cc(e){return ac(e)&&typeof e.query=="string"}function uc(e){return ac(e)&&typeof e.operationName=="string"&&ac(e.extensions)&&ac(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function _g(e){try{let t=JSON.parse(e);return cc(t)||uc(t)?t:void 0}catch{return}}var gg=EN;f();var ye=N,uf="sentryReplaySession",IN="replay_event",lf="Unable to send Replay",AN=3e5,RN=9e5,vN=5e3,NN=5500,CN=6e4,wN=5e3,xN=3,Sg=15e4,lc=5e3,kN=3e3,ON=300,df=2e7,MN=4999,LN=5e4,Eg=36e5,PN=Object.defineProperty,UN=(e,t,n)=>t in e?PN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tg=(e,t,n)=>UN(e,typeof t!="symbol"?t+"":t,n),Pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Pe||{});function DN(e){return e.nodeType===e.ELEMENT_NODE}function Zi(e){return e?.host?.shadowRoot===e}function es(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function BN(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function FN(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function hc(e){try{let t=e.rules||e.cssRules;return t?BN(Array.from(t,$g).join("")):null}catch{return null}}function HN(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}
493${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function $g(e){let t;if($N(e))try{t=hc(e.styleSheet)||FN(e)}catch{}else if(WN(e)){let n=e.cssText,r=e.selectorText.includes(":"),o=typeof e.style.all=="string"&&e.style.all;if(o&&(n=HN(e)),r&&(n=GN(n)),r||o)return n}return t||e.cssText}function GN(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function $N(e){return"styleSheet"in e}function WN(e){return"selectorText"in e}var _c=class{constructor(){Tg(this,"idNodeMap",new Map),Tg(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function jN(){return new _c}function Nc({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function ns({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function Do(e){return e.toLowerCase()}function Fd(e){return e.toUpperCase()}var yg="__rrweb_original__";function zN(e){let t=e.getContext("2d");if(!t)return!0;let n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){let i=t.getImageData,s=yg in i?i[yg]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function ff(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Do(t):null}function gc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Wg(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}var bg={};function jg(e){let t=bg[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return bg[e]=r.bind(window)}function Hd(...e){return jg("setTimeout")(...e)}function zg(...e){return jg("clearTimeout")(...e)}function qg(e){try{return e.contentDocument}catch{}}var qN=1,YN=new RegExp("[^a-z0-9-_:]"),rs=-2;function pf(){return qN++}function VN(e){if(e instanceof HTMLFormElement)return"form";let t=Do(e.tagName);return YN.test(t)?"div":t}function JN(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var xo,Ig,KN=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,XN=/^(?:[a-z+]+:)?\/\//i,QN=/^www\..*/i,ZN=/^(data:)([^,]*),(.*)/i;function eC(e,t){if(!e||t.size===0)return e;try{let n=e.split(";"),r=[];for(let o of n){if(o=o.trim(),!o)continue;let i=o.indexOf(":");if(i===-1){r.push(o);continue}let s=o.slice(0,i).trim();t.has(s)||r.push(o)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Sc(e,t){return(e||"").replace(KN,(n,r,o,i,s,a)=>{let c=o||s||a,u=r||i||"";if(!c)return n;if(XN.test(c)||QN.test(c))return`url(${u}${c}${u})`;if(ZN.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${JN(t)+c}${u})`;let d=t.split("/"),l=c.split("/");d.pop();for(let p of l)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}var tC=/^[^ \t\n\r\u000c]+/,nC=/^[, \t\n\r\u000c]+/;function rC(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s,a=i.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}let o=[];for(;r(nC),!(n>=t.length);){let i=r(tC);if(i.slice(-1)===",")i=Mo(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Mo(e,i);let a=!1;for(;;){let c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return o.join(", ")}var Ag=new WeakMap;function Mo(e,t){return!t||t.trim()===""?t:Cc(e,t)}function oC(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Cc(e,t){let n=Ag.get(e);if(n||(n=e.createElement("a"),Ag.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Yg(e,t,n,r,o,i,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Mo(e,r);if(n==="xlink:href"&&r[0]!=="#")return Mo(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Mo(e,r);if(n==="srcset")return rC(e,r);if(n==="style"){let a=Sc(r,Cc(e));return s&&s.size>
4930&&(a=eC(a,s)),a}else if(t==="object"&&n==="data")return Mo(e,r);return typeof i=="function"?i(n,r,o):r}function Vg(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function iC(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function sC(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Ur(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ur(e.parentNode,t,n,r+1)}function Lo(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(sC(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Bo(e,t,n,r,o,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){let u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(i){if(c=Ur(s,Lo(r,o)),c<0)return!0;a=Ur(s,Lo(t,n),c>=0?c:1/0)}else{if(a=Ur(s,Lo(t,n)),a<0)return!1;c=Ur(s,Lo(r,o),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function aC(e,t,n){let r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){let a=Hd(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{zg(a),o=!0,t()});return}let s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return Hd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function cC(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;let i=Hd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{zg(i),r=!0,t()})}function uC(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:g,maskInputFn:S,dataURLOptions:E={},inlineImages:I,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:q=!1,ignoreCSSAttributes:F}=t,T=lC(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Pe.Document,childNodes:[],compatMode:e.compatMode}:{type:Pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:T};case e.ELEMENT_NODE:return fC(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:h,maskInputFn:S,dataURLOptions:E,inlineImages:I,recordCanvas:B,keepIframeSrcFn:L,newlyAddedElement:q,rootId:T,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,ignoreCSSAttributes:F});case e.TEXT_NODE:return dC(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,maskTextFn:g,maskInputOptions:h,maskInputFn:S,rootId:T});case e.CDATA_SECTION_NODE:return{type:Pe.CDATA,textContent:"",rootId:T};case e.COMMENT_NODE:return{type:Pe.Comment,textContent:e.textContent||"",rootId:T};default:return!1}}function lC(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function dC(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName,p=e.textContent,m=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,g=l==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=hc(e.parentNode.sheet))}catch(E){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${E}`,e)}p=Sc(p,Cc(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let S=Bo(e,r,i,o,s,n);if(!m&&!h&&!g&&p&&S&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(c.textarea||S)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),l==="OPTION"&&p){let E=Nc({type:null,tagName:l,maskInputOptions:c});p=ns({isMasked:Bo(e,r,i,o,s,E),element:e,value:p,maskInputFn:u})}return{type:Pe.Text,textContent:p||"",isStyle:m,rootId:d}}function fC(e,t){let{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:g,maskTextClass:S,unmaskTextClass:E,maskTextSelector:I,unmaskTextSelector:B,ignoreCSSAttributes:L}=t,q=iC(e,r,o,i),F=VN(e),T={},k=e.attributes.length;for(let R=0;R<k;R++){let O=e.attributes[R];O.name&&!Vg(F,O.name,O.value)&&(T[O.name]=Yg(n,F,Do(O.name),O.value,e,c,L))}if(F==="link"&&s){let R=Array.from(n.styleSheets).find(w=>w.href===e.href),O=null;R&&(O=hc(R)),O&&(T.rel=null,T.href=null,T.crossorigin=null,T._cssText=Sc(O,R.href))}if(F==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let R=hc(e.sheet);R&&(T._cssText=Sc(R,Cc(n)))}if(F==="input"||F==="textarea"||F==="select"||F==="option"){let R=e,O=ff(R),w=gc(R,Fd(F
493),O),U=R.checked;if(O!=="submit"&&O!=="button"&&w){let H=Bo(R,S,I,E,B,Nc({type:O,tagName:Fd(F),maskInputOptions:a}));T.value=ns({isMasked:H,element:R,value:w,maskInputFn:u})}U&&(T.checked=U)}if(F==="option"&&(e.selected&&!a.select?T.selected=!0:delete T.selected),F==="canvas"&&p){if(e.__context==="2d")zN(e)||(T.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let R=e.toDataURL(d.type,d.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;let w=O.toDataURL(d.type,d.quality);R!==w&&(T.rr_dataURL=R)}}if(F==="img"&&l){xo||(xo=n.createElement("canvas"),Ig=xo.getContext("2d"));let R=e,O=R.currentSrc||R.getAttribute("src")||"<unknown-src>",w=R.crossOrigin,U=()=>{R.removeEventListener("load",U);try{xo.width=R.naturalWidth,xo.height=R.naturalHeight,Ig.drawImage(R,0,0),T.rr_dataURL=xo.toDataURL(d.type,d.quality)}catch(H){if(R.crossOrigin!=="anonymous"){R.crossOrigin="anonymous",R.complete&&R.naturalWidth!==0?U():R.addEventListener("load",U);return}else console.warn(`Cannot inline img src=${O}! Error: ${H}`)}R.crossOrigin==="anonymous"&&(w?T.crossOrigin=w:R.removeAttribute("crossorigin"))};R.complete&&R.naturalWidth!==0?U():R.addEventListener("load",U)}if((F==="audio"||F==="video")&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),q){let{width:R,height:O}=e.getBoundingClientRect();T={class:T.class,rr_width:`${R}px`,rr_height:`${O}px`}}F==="iframe"&&!m(T.src)&&(!q&&!qg(e)&&(T.rr_src=T.src),delete T.src);let $;try{customElements.get(F)&&($=!0)}catch{}return{type:Pe.Element,tagName:F,attributes:T,childNodes:[],isSVG:oC(e)||void 0,needBlock:q,rootId:g,isCustom:$}}function Te(e){return e==null?"":e.toLowerCase()}function pC(e,t){if(t.comment&&e.type===Pe.Comment)return!0;if(e.type===Pe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Wg(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Po(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOMOptions:I,dataURLOptions:B={},inlineImages:L=!1,recordCanvas:q=!1,onSerialize:F,onIframeLoad:T,iframeLoadTimeout:k=5e3,onBlockedImageLoad:$,onStylesheetLoad:R,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:U=!1,ignoreCSSAttributes:H}=t,{preserveWhiteSpace:ne=!0}=t,te=uC(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,dataURLOptions:B,inlineImages:L,recordCanvas:q,keepIframeSrcFn:w,newlyAddedElement:U,ignoreCSSAttributes:H});if(!te)return console.warn(e,"not serialized"),null;let le;r.hasNode(e)?le=r.getId(e):pC(te,I)||!ne&&te.type===Pe.Text&&!te.isStyle&&!te.textContent.replace(/^\s+|\s+$/gm,"").length?le=rs:le=pf();let v=Object.assign(te,{id:le});if(r.add(e,v),le===rs)return null;F&&F(e);let Y=!p;if(v.type===Pe.Element){Y=Y&&!v.needBlock;let C=e.shadowRoot;C&&es(C)&&(v.isShadowHost=!0)}if((v.type===Pe.Document||v.type===Pe.Element)&&Y){I.headWhitespace&&v.type===Pe.Element&&v.tagName==="head"&&(ne=!1);let C={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOMOptions:I,dataURLOptions:B,inlineImages:L,recordCanvas:q,preserveWhiteSpace:ne,onSerialize:F,onIframeLoad:T,iframeLoadTimeout:k,onBlockedImageLoad:$,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:w,ignoreCSSAttributes:H},V=e.childNodes?Array.from(e.childNodes):[];for(let fe of V){let ae=Po(fe,C);ae&&v.childNodes.push(ae)}if(DN(e)&&e.shadowRoot)for(let fe of Array.from(e.shadowRoot.childNodes)){let ae=Po(fe,C);ae&&(es(e.shadowRoot)&&(ae.isShadow=!0),v.childNodes.push(ae))}}if(e.parentNode&&Zi(e.parentNode)&&es(e.parentNode)&&(v.isShadow=!0),v.type===Pe.Element&&v.tagName==="iframe"&&!v.needBlock&&aC(e,()=>{let C=qg(e);if(C&&T){let V=Po(C,{doc:C,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOMOptions:I,dataURLOptions:B,inlineImages:L,recordCanvas:q,preserveWhiteSpace:ne,onSerialize:F,onIframeLoad:T,iframeLoadTimeout:k,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:w,ignoreCSSAttributes:H});V&&T(e,V)}},k),v.type===Pe.Element&&v.tagName==="img"&&!e.complete&&v.needBlock){let C=e,V=()=>
493{if(C.isConnected&&!C.complete&&$)try{let fe=C.getBoundingClientRect();fe.width>0&&fe.height>0&&$(C,v,fe)}catch{}C.removeEventListener("load",V)};C.isConnected&&C.addEventListener("load",V)}return v.type===Pe.Element&&v.tagName==="link"&&typeof v.attributes.rel=="string"&&(v.attributes.rel==="stylesheet"||v.attributes.rel==="preload"&&typeof v.attributes.href=="string"&&Wg(v.attributes.href)==="css")&&cC(e,()=>{if(R){let C=Po(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOMOptions:I,dataURLOptions:B,inlineImages:L,recordCanvas:q,preserveWhiteSpace:ne,onSerialize:F,onIframeLoad:T,iframeLoadTimeout:k,onStylesheetLoad:R,stylesheetLoadTimeout:O,keepIframeSrcFn:w,ignoreCSSAttributes:H});C&&R(e,C)}},O),v.type===Pe.Element&&delete v.needBlock,v}function mC(e,t){let{mirror:n=new _c,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOM:I=!1,dataURLOptions:B,preserveWhiteSpace:L,onSerialize:q,onIframeLoad:F,iframeLoadTimeout:T,onBlockedImageLoad:k,onStylesheetLoad:$,stylesheetLoadTimeout:R,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:w=new Set([])}=t||{};return Po(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:g,maskTextFn:S,maskInputFn:E,slimDOMOptions:I===!0||I==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:I==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:I===!1?{}:I,dataURLOptions:B,inlineImages:p,recordCanvas:m,preserveWhiteSpace:L,onSerialize:q,onIframeLoad:F,iframeLoadTimeout:T,onBlockedImageLoad:k,onStylesheetLoad:$,stylesheetLoadTimeout:R,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:w})}function ht(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var ko=`Please stop import mirror directly. Instead of that,\r 494now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 495or you can use record.mirror to access the mirror instance during recording.`,Rg={map:{},getId(){return console.error(ko),-1},getNode(){return console.error(ko),null},removeNodeFromMap(){console.error(ko)},has(){return console.error(ko),!1},reset(){console.error(ko)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Rg=new Proxy(Rg,{get(e,t,n){return t==="map"&&console.error(ko),Reflect.get(e,t,n)}}));function os(e,t,n={}){let r=null,o=0;return function(...i){let s=Date.now();!o&&n.leading===!1&&(o=s);let a=t-(s-o),c=this;a<=0||a>t?(r&&(TC(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=wc(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function Jg(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){wc(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Jg(e,t,i||{},!0)}function mf(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var Ec=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ec=()=>new Date().getTime());function Kg(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Xg(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Qg(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Zg(e){if(!e)return null;
495try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $t(e,t,n,r,o){if(!e)return!1;let i=Zg(e);if(!i)return!1;let s=Lo(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=Ur(i,s),c=-1;return a<0?!1:(r&&(c=Ur(i,Lo(null,r))),a>-1&&c<0?!0:a<c)}function hC(e,t){return t.getId(e)!==-1}function Ld(e,t){return t.getId(e)===rs}function eS(e,t){if(Zi(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?eS(e.parentNode,t):!0:!0}function Gd(e){return!!e.changedTouches}function _C(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function tS(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function nS(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function $d(e){return!!e?.shadowRoot}var Wd=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function rS(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function gC(e){let t=e,n;for(;n=rS(t);)t=n;return t}function SC(e){let t=e.ownerDocument;if(!t)return!1;let n=gC(e);return t.contains(n)}function oS(e){let t=e.ownerDocument;return t?t.contains(e)||SC(e):!1}var vg={};function hf(e){let t=vg[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return vg[e]=r.bind(window)}function EC(...e){return hf("requestAnimationFrame")(...e)}function wc(...e){return hf("setTimeout")(...e)}function TC(...e){return hf("clearTimeout")(...e)}var K=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(K||{}),z=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(z||{}),mt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(mt||{}),On=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(On||{}),Oo=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Oo||{});function _f(e){try{return e.contentDocument}catch{}}function yC(e){try{return e.contentWindow}catch{}}function Ng(e){return"__ln"in e}var jd=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ng(t.previousSibling)){let r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Ng(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;
495n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){let n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Cg=(e,t)=>`${e}@${t}`,zd=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Set,r=new jd,o=c=>{let u=c,d=rs;for(;d===rs;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!oS(c))return;let u=Zi(c.parentNode)?this.mirror.getId(rS(c)):this.mirror.getId(c.parentNode),d=o(c);if(u===-1||d===-1)return r.addNode(c);let l=Po(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{tS(p,this.mirror)&&!$t(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),nS(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),$d(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{$t(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,m),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)},onBlockedImageLoad:(p,m,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:m.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)wg(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(let c of this.addedSet)!xg(this.droppedSet,c)&&!wg(this.removes,c,this.mirror)||xg(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){let u=this.mirror.getId(s.value.parentNode),d=o(s.value);u!==-1&&d!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){let d=u;if(u=u.previous,d){let l=this.mirror.getId(d.value.parentNode);if(o(d.value)===-1)continue;if(l!==-1){c=d;break}else{let m=d.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let h=m.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Ld(t.target,this.mirror))switch(t.type){case"characterData":{let n=t.target.textContent;!$t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Bo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Zg(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{let n=t.target,r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){let s=ff(n),a=n.tagName;o=gc(n,a,s);let c=Nc({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),u=Bo(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=ns({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if($t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!_f(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
495,this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Vg(n.tagName,r)&&(i.attributes[r]=Yg(this.doc,Do(n.tagName),Do(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if($t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{let r=this.mirror.getId(n),o=Zi(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);$t(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ld(n,this.mirror)||!hC(n,this.mirror)||(this.addedSet.has(n)?(qd(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||eS(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Cg(r,o)]?qd(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:Zi(t.target)&&es(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ld(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Cg(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);$t(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),$d(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function qd(e,t){e.delete(t),t.childNodes?.forEach(n=>qd(e,n))}function wg(e,t,n){return e.length===0?!1:bC(e,t,n)}function bC(e,t,n){let r=t.parentNode;for(;r;){let o=n.getId(r);if(e.some(i=>i.id===o))return!0;r=r.parentNode}return!1}function xg(e,t){return e.size===0?!1:iS(e,t)}function iS(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:iS(e,n):!1}var ts;function IC(e){ts=e}function AC(){ts=void 0}var ie=e=>ts?(...n)=>{try{return e(...n)}catch(r){if(ts&&ts(r)===!0)return()=>{};throw r}}:e,Uo=[];function us(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sS(e,t){let n=new zd;Uo.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);let i=new r(ie(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function RC({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],a,c=os(ie(l=>{let p=Date.now()-a;e(s.map(m=>(m.timeOffset-=p,m)),l),s=[],a=null}),i),u=ie(os(ie(l=>{let p=us(l),{clientX:m,clientY:h}=Gd(l)?l.changedTouches[0]:l;a||(a=Ec()),s.push({x:m,y:h,id:r.getId(p),timeOffset:Ec()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?z.Drag:l instanceof MouseEvent?z.MouseMove:z.TouchMove)}),o,{trailing:!1})),d=[ht("mousemove",u,n),ht("touchmove",u,n),ht("drag",u,n)];return ie(()=>{d.forEach(l=>l())})}function vC({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],u=null,d=l=>p=>{let m=us(p);if($t(m,r,o,i,!0))return;let h=null,g=l;if("pointerType"in p){switch(p.pointerType){case"mouse":h=On.Mouse;break;case"touch":h=On.Touch;break;case"pen":h=On.Pen;break}h===On.Touch?mt[l]===mt.MouseDown?g="TouchStart":mt[l]===mt.MouseUp&&(g="TouchEnd"):On.Pen}else Gd(p)&&(h=On.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===On.Touch||g.startsWith("Mouse")&&h===On.Mouse)&&(h=null)):mt[l]===mt.Click&&(h=u,u=null);let S=Gd(p)?p.changedTouches[0]:p;if(!S)return;let E=n.getId(m),{clientX:I,clientY:B}=S;ie(e)({type:mt[g],id:E,x:I,y:B,...h!==null&&{pointerType:h}})};return Object.keys(mt).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEac
495h(l=>{let p=Do(l),m=d(l);if(window.PointerEvent)switch(mt[l]){case mt.MouseDown:case mt.MouseUp:p=p.replace("mouse","pointer");break;case mt.TouchStart:case mt.TouchEnd:return}c.push(ht(p,m,t))}),ie(()=>{c.forEach(l=>l())})}function aS({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){let a=ie(os(ie(c=>{let u=us(c);if(!u||$t(u,r,o,i,!0))return;let d=n.getId(u);if(u===t&&t.defaultView){let l=Kg(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return ht("scroll",a,t)}function NC({viewportResizeCb:e},{win:t}){let n=-1,r=-1,o=ie(os(ie(()=>{let i=Xg(),s=Qg();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return ht("resize",o,t)}var CC=["INPUT","TEXTAREA","SELECT"],kg=new WeakMap;function wC({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:p,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:g}){function S(T){let k=us(T),$=T.isTrusted,R=k&&Fd(k.tagName);if(R==="OPTION"&&(k=k.parentElement),!k||!R||CC.indexOf(R)<0||$t(k,r,o,i,!0))return;let O=k;if(O.classList.contains(s)||a&&O.matches(a))return;let w=ff(k),U=gc(O,R,w),H=!1,ne=Nc({maskInputOptions:c,tagName:R,type:w}),te=Bo(k,p,h,m,g,ne);(w==="radio"||w==="checkbox")&&(H=k.checked),U=ns({isMasked:te,element:k,value:U,maskInputFn:u}),E(k,l?{text:U,isChecked:H,userTriggered:$}:{text:U,isChecked:H});let le=k.name;w==="radio"&&le&&H&&t.querySelectorAll(`input[type="radio"][name="${le}"]`).forEach(v=>{if(v!==k){let Y=ns({isMasked:te,element:v,value:gc(v,R,w),maskInputFn:u});E(v,l?{text:Y,isChecked:!H,userTriggered:!1}:{text:Y,isChecked:!H})}})}function E(T,k){let $=kg.get(T);if(!$||$.text!==k.text||$.isChecked!==k.isChecked){kg.set(T,k);let R=n.getId(T);ie(e)({...k,id:R})}}let B=(d.input==="last"?["change"]:["input","change"]).map(T=>ht(T,ie(S),t)),L=t.defaultView;if(!L)return()=>{B.forEach(T=>T())};let q=L.Object.getOwnPropertyDescriptor(L.HTMLInputElement.prototype,"value"),F=[[L.HTMLInputElement.prototype,"value"],[L.HTMLInputElement.prototype,"checked"],[L.HTMLSelectElement.prototype,"value"],[L.HTMLTextAreaElement.prototype,"value"],[L.HTMLSelectElement.prototype,"selectedIndex"],[L.HTMLOptionElement.prototype,"selected"]];return q&&q.set&&B.push(...F.map(T=>Jg(T[0],T[1],{set(){ie(S)({target:this,isTrusted:!1})}},!1,L))),ie(()=>{B.forEach(T=>T())})}function Tc(e){let t=[];function n(r,o){if(dc("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||dc("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||dc("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||dc("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){let s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function or(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function xC({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ie((d,l,p)=>{let[m,h]=p,{id:g,styleId:S}=or(l,t,n.styleMirror);return(g&&g!==-1||S&&S!==-1)&&e({id:g,styleId:S,adds:[{rule:m,index:h}]}),d.apply(l,p)})});let i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ie((d,l,p)=>{let[m]=p,{id:h,styleId:g}=or(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:m}]}),d.apply(l,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:ie((d,l,p)=>{let[m]=p,{id:h,styleId:g}=or(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:m}),d.apply(l,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ie((d,l,p)=>{let[m]=p,{id:h,styleId:g}=or(l,t,n.styleMirror);
495return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:m}),d.apply(l,p)})}));let c={};fc("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(fc("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),fc("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),fc("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:ie((p,m,h)=>{let[g,S]=h,{id:E,styleId:I}=or(m.parentStyleSheet,t,n.styleMirror);return(E&&E!==-1||I&&I!==-1)&&e({id:E,styleId:I,adds:[{rule:g,index:[...Tc(m),S||0]}]}),p.apply(m,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:ie((p,m,h)=>{let[g]=h,{id:S,styleId:E}=or(m.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||E&&E!==-1)&&e({id:S,styleId:E,removes:[{index:[...Tc(m),g]}]}),p.apply(m,h)})})}),ie(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function cS({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);let o=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(s){let a=i.set?.call(this,s);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),ie(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function kC({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ie((a,c,u)=>{let[d,l,p]=u;if(n.has(d))return i.apply(c,[d,l,p]);let{id:m,styleId:h}=or(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(m&&m!==-1||h&&h!==-1)&&e({id:m,styleId:h,set:{property:d,value:l,priority:p},index:Tc(c.parentRule)}),a.apply(c,u)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:ie((a,c,u)=>{let[d]=u;if(n.has(d))return s.apply(c,[d]);let{id:l,styleId:p}=or(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||p&&p!==-1)&&e({id:l,styleId:p,remove:{property:d},index:Tc(c.parentRule)}),a.apply(c,u)})}),ie(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function OC({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){let a=ie(u=>os(ie(d=>{let l=us(d);if(!l||$t(l,t,n,r,!0))return;let{currentTime:p,volume:m,muted:h,playbackRate:g}=l;e({type:u,id:o.getId(l),currentTime:p,volume:m,muted:h,playbackRate:g})}),i.media||500)),c=[ht("play",a(Oo.Play),s),ht("pause",a(Oo.Pause),s),ht("seeked",a(Oo.Seeked),s),ht("volumechange",a(Oo.VolumeChange),s),ht("ratechange",a(Oo.RateChange),s)];return ie(()=>{c.forEach(u=>u())})}function MC({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){let l=new i(c,u,d);return o.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};let s=mf(t.fonts,"add",function(a){return function(c){return wc(ie(()=>{let u=o.get(c);u&&(e(u),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),ie(()=>{r.forEach(a=>a())})}function LC(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e,a=!0,c=ie(()=>{let u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;let d=[],l=u.rangeCount||0;for(let p=0;p<l;p++){let m=u.getRangeAt(p),{startContainer:h,startOffset:g,endContainer:S,endOffset:E}=m;$t(h,r,o,i,!0)||$t(S,r,o,i,!0)||d.push({start:n.getId(h),startOffset:g,end:n.getId(S),endOffset:E})}s({ranges:d})});return c(),ht("selectionchange",c)}function PC({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:mf(n.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function UC(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=sS(e,e.doc));let o=RC(e),i=vC(e),s=aS(e),a=NC(e,{win:n}),c=wC(e),u=OC(e),d=()=>{},l=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=xC(e,{win:n}),l=cS(e,e.doc),p=kC(e,{win:n}),e.collectFonts&&(m=MC(e)));let h=LC(e),g=PC(e),S=[];for(let E of e.plugins)S.push(E.observer(E.callback,n,E.options));return ie(()=>
495{Uo.forEach(E=>E.reset()),r?.disconnect(),o(),i(),s(),a(),c(),u(),d(),l(),p(),m(),h(),g(),S.forEach(E=>E())})}function dc(e){return typeof window[e]<"u"}function fc(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var is=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let i=o.get(n);return i||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}},Yd=class{constructor(){this.crossOriginIframeMirror=new is(pf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},Vd=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new is(pf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new is(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);let r=_f(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){let n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case K.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);let r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:K.IncrementalSnapshot,data:{source:z.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case K.Meta:case K.Load:case K.DomContentLoaded:return!1;case K.Plugin:return n;case K.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case K.IncrementalSnapshot:switch(n.data.source){case z.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case z.Drag:case z.TouchMove:case z.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case z.ViewportResize:return!1;case z.MediaInteraction:case z.MouseInteraction:case z.Scroll:case z.CanvasMutation:case z.Input:return this.replaceIds(n.data,t,["i
495d"]),n;case z.StyleSheetRule:case z.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case z.Font:return n;case z.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case z.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,o){for(let i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Pe.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}},Jd=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},Kd=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!es(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);let r=sS({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(aS({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),wc(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(cS({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){let n=_f(t),r=yC(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){let r=this;this.restoreHandlers.push(mf(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&oS(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},Og="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DC=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(Xi=0;Xi<Og.length;Xi++)DC[Og.charCodeAt(Xi)]=Xi;var Xi,yc=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},Xd=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Wd,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;let r={id:n,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:$g(a),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Qd=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){let r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.active||(this.active=!0,EC(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}},Ce,bc;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var an=jN();function Mn(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:S,slimDOMOptions:E,maskAttributeFn:I,maskInputFn:B,maskTextFn:L,maxCanvasSize:q=null,packFn:F,sampling:T={},dataURLOptions:k={},mousemoveWait:$,recordDOM:R=!0,recordCanvas:O=!1,recordCrossOriginIframes:w=!1,recordAfter:U=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:H=!1,collectFonts:ne=!1,inlineImages:te=!1,plugins:le,keepIframeSrcFn:v=()=>!1,ignoreCSSAttributes:Y=new Set([]),errorHandler:C,onMutation:V,getCanvasManager:fe}=e;IC(C);let ae=w?window.parent===window:!0,we=!1;if(!ae)try{window.parent.document&&(we=!1)}catch{we=!0}if(ae&&!t)throw new Error("emit function is required");if(!ae&&!we)return()=>{};$!==void 0&&T.mousemove===void 0&&(T.mousemove=$),an.reset();let ot=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:S!==void 0?S:{},Ln=E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:E==="all",headMetaDescKeywords:E==="all"}:E||{};_C();let it,_t=0,cn=re=>{for(let Nt of le||[])Nt.eventProcessor&&(re=Nt.eventProcessor(re));return F&&!we&&(re=F(re)),re};Ce=(re,Nt)=>{let oe=re;if(oe.timestamp=Ec(),Uo[0]?.isFrozen()&&oe.type!==K.FullSnapshot&&!(oe.type===K.IncrementalSnapshot&&oe.data.source===z.Mutation)&&Uo.forEac
495h(We=>We.unfreeze()),ae)t?.(cn(oe),Nt);else if(we){let We={type:"rrweb",event:cn(oe),origin:window.location.origin,isCheckout:Nt};window.parent.postMessage(We,"*")}if(oe.type===K.FullSnapshot)it=oe,_t=0;else if(oe.type===K.IncrementalSnapshot){if(oe.data.source===z.Mutation&&oe.data.isAttachIframe)return;_t++;let We=r&&_t>=r,ce=n&&it&&oe.timestamp-it.timestamp>n;(We||ce)&&un(!0)}};let Pn=re=>{Ce({type:K.IncrementalSnapshot,data:{source:z.Mutation,...re}})},jo=re=>Ce({type:K.IncrementalSnapshot,data:{source:z.Scroll,...re}}),hs=re=>Ce({type:K.IncrementalSnapshot,data:{source:z.CanvasMutation,...re}}),zo=re=>Ce({type:K.IncrementalSnapshot,data:{source:z.AdoptedStyleSheet,...re}}),pe=new Xd({mutationCb:Pn,adoptedStyleSheetCb:zo}),Ae=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Yd:new Vd({mirror:an,mutationCb:Pn,stylesheetManager:pe,recordCrossOriginIframes:w,wrappedEmit:Ce});for(let re of le||[])re.getMirror&&re.getMirror({nodeMirror:an,crossOriginIframeMirror:Ae.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ae.crossOriginIframeStyleMirror});let Wt=new Qd,$e=FC(fe,{mirror:an,win:window,mutationCb:re=>Ce({type:K.IncrementalSnapshot,data:{source:z.CanvasMutation,...re}}),recordCanvas:O,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:q,sampling:T.canvas,dataURLOptions:k,errorHandler:C}),Ve=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Jd:new Kd({mutationCb:Pn,scrollCb:jo,bypassOptions:{onMutation:V,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:ot,dataURLOptions:k,maskAttributeFn:I,maskTextFn:L,maskInputFn:B,recordCanvas:O,inlineImages:te,sampling:T,slimDOMOptions:Ln,iframeManager:Ae,stylesheetManager:pe,canvasManager:$e,keepIframeSrcFn:v,processedNodeManager:Wt,ignoreCSSAttributes:Y},mirror:an}),un=(re=!1)=>{if(!R)return;Ce({type:K.Meta,data:{href:window.location.href,width:Qg(),height:Xg()}},re),pe.reset(),Ve.init(),Uo.forEach(oe=>oe.lock());let Nt=mC(document,{mirror:an,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:ot,maskAttributeFn:I,maskInputFn:B,maskTextFn:L,slimDOM:Ln,dataURLOptions:k,recordCanvas:O,inlineImages:te,onSerialize:oe=>{tS(oe,an)&&Ae.addIframe(oe),nS(oe,an)&&pe.trackLinkElement(oe),$d(oe)&&Ve.addShadowRoot(oe.shadowRoot,document)},onIframeLoad:(oe,We)=>{Ae.attachIframe(oe,We),oe.contentWindow&&$e.addWindow(oe.contentWindow),Ve.observeAttachShadow(oe)},onStylesheetLoad:(oe,We)=>{pe.attachLinkElement(oe,We)},onBlockedImageLoad:(oe,We,{width:ce,height:qo})=>{Pn({adds:[],removes:[],texts:[],attributes:[{id:We.id,attributes:{style:{width:`${ce}px`,height:`${qo}px`}}}]})},keepIframeSrcFn:v,ignoreCSSAttributes:Y});if(!Nt)return console.warn("Failed to snapshot the document");Ce({type:K.FullSnapshot,data:{node:Nt,initialOffset:Kg(window)}}),Uo.forEach(oe=>oe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&pe.adoptStyleSheets(document.adoptedStyleSheets,an.getId(document))};bc=un;try{let re=[],Nt=We=>ie(UC)({onMutation:V,mutationCb:Pn,mousemoveCb:(ce,qo)=>Ce({type:K.IncrementalSnapshot,data:{source:qo,positions:ce}}),mouseInteractionCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.MouseInteraction,...ce}}),scrollCb:jo,viewportResizeCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.ViewportResize,...ce}}),inputCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.Input,...ce}}),mediaInteractionCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.MediaInteraction,...ce}}),styleSheetRuleCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.StyleSheetRule,...ce}}),styleDeclarationCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.StyleDeclaration,...ce}}),canvasMutationCb:hs,fontCb:ce=>Ce({type:K.IncrementalSnapshot,data:{source:z.Font,...ce}}),selectionCb:ce=>{Ce({type:K.IncrementalSnapshot,data:{source:z.Selection,...ce}})},customElementCb:ce=>{Ce({type:K.IncrementalSnapshot,data:{source:z.CustomElement,...ce}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:ot,inlineStylesheet:h,sampling:T,recordDOM:R,recordCanvas:O,inlineImages:te,userTriggeredOnInput:H,collectFonts:ne,doc:We,maskAttributeFn:I,maskInputFn:B,maskTextFn:L,keepIframeSrcFn:v,blockSelector:i,unblockSelector:s,slimDOMOptions:Ln,dataURLOptions:k,mirror:an,iframeManager:Ae,stylesheetManager:pe,shadowDomManager:Ve,processedNodeManager:Wt,canvasManager:$e,ignoreCSSAttributes:Y,plugins:le?.filter(ce=>ce.observer)?.map(ce=>({observer:ce.observer,options:ce.options,callback:qo=>Ce({type:K.Plugin,data:{plugin:ce.name,payload:qo}})}))||[]},{});Ae.addLoadListener(We=>{try{re.push(Nt(We.contentDocument))}catch(ce){console.warn(ce)}});let oe=()=>{un(),re.push(Nt(document))};return document.readyState==="interactive"||document.readyState==="complete"?oe():(re.push(ht("DOMContentLoaded",()=>{Ce({type:K.DomContentLoaded,data:{}}),U==="DOMContentLoaded"&&oe()})),re.push(ht("load",()=>{Ce({type:K.Load,data:{}}),U==="load"&&oe()}
495,window))),()=>{re.forEach(We=>We()),Wt.destroy(),bc=void 0,AC()}}catch(re){console.warn(re)}}function BC(e){if(!bc)throw new Error("please take full snapshot after start recording");bc(e)}Mn.mirror=an;Mn.takeFullSnapshot=BC;function FC(e,t){try{return e?e(t):new yc}catch{return console.warn("Unable to initialize CanvasManager"),new yc}}var Mg;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Mg||(Mg={}));var HC=3,GC=5;function gf(e){return e>9999999999?e:e*1e3}function Pd(e){return e>9999999999?e/1e3:e}function ls(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:K.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:De(t,10,1e3)}}),t.category==="console")))}var $C="button,a";function uS(e){return e.closest($C)||e}function lS(e){let t=dS(e);return!t||!(t instanceof Element)?t:uS(t)}function dS(e){return WC(e)?e.target:e}function WC(e){return typeof e=="object"&&!!e&&"target"in e}var ir;function jC(e){return ir||(ir=[],zC()),ir.push(e),()=>{let t=ir?ir.indexOf(e):-1;t>-1&&ir.splice(t,1)}}function zC(){Se(ye,"open",function(e){return function(...t){if(ir)try{ir.forEach(n=>n())}catch{}return e.apply(ye,t)}})}var qC=new Set([z.Mutation,z.StyleSheetRule,z.StyleDeclaration,z.AdoptedStyleSheet,z.CanvasMutation,z.Selection,z.MediaInteraction]);function YC(e,t,n){e.handleClick(t,n)}var Zd=class{constructor(t,n,r=ls){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){let t=jC(()=>{this._lastMutation=Lg()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(JC(n,this._ignoreSelector)||!KC(t))return;let r={timestamp:Pd(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Pd(t)}registerScroll(t=Date.now()){this._lastScroll=Pd(t)}registerClick(t){let n=uS(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){let t=[],n=Lg();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(let r of t){let o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){let c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:ye.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,d);return}if(s>1){let c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:ye.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=xr(()=>this._checkClicks(),1e3)}},VC=["A","BUTTON","INPUT"];function JC(e,t){return!!(!VC.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function KC(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Lg(){return Date.now()/1e3}function XC(e,t){try{if(!QC(t))return;let{source:n}=t.data;if(qC.has(n)&&e.registerMutation(t.timestamp),n===z.Scroll&&e.registerScroll(t.timestamp),ZC(t)){let{type:r,id:o}=t.data,i=Mn.mirror.getNode(o);i instanceof HTMLElement&&r===mt.Click&&e.registerClick(i)}}catch{}}
495function QC(e){return e.type===HC}function ZC(e){return e.data.source===z.MouseInteraction}function En(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Sf=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Sf||{}),e0=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function t0(e){let t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(let n in e)if(e0.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var n0=e=>t=>{if(!e.isEnabled())return;let n=r0(t);if(!n)return;let r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&YC(e.clickDetector,n,lS(t.event)),ls(e,n)};function fS(e,t){let n=Mn.mirror.getId(e),r=n&&Mn.mirror.getNode(n),o=r&&Mn.mirror.getMeta(r),i=o&&i0(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Sf.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:t0(i.attributes)}}:{}}}function r0(e){let{target:t,message:n}=o0(e);return En({category:`ui.${e.name}`,...fS(t,n)})}function o0(e){let t=e.name==="click",n,r=null;try{r=t?lS(e.event):dS(e.event),n=ve(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function i0(e){return e.type===Sf.Element}function s0(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=a0(t);n&&ls(e,n)}function a0(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||c0(s)||!i)return null;let a=t||r||o,c=i.length===1;if(!a&&c)return null;let u=ve(s,{maxStringLength:200})||"<unknown>",d=fS(s,u);return En({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function c0(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var u0={resource:m0,paint:f0,navigation:p0};function Ud(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function l0(e){return e.map(d0).filter(Boolean)}function d0(e){let t=u0[e.entryType];return t?t(e):null}function Fo(e){return((Ee()||ye.performance.timeOrigin)+e)/1e3}function f0(e){let{duration:t,entryType:n,name:r,startTime:o}=e,i=Fo(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function p0(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:p,startTime:m,transferSize:h,type:g}=e;return o===0?null:{type:`${t}.${g}`,start:Fo(m),end:Fo(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:i,redirectCount:p}}}function m0(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Fo(i),end:Fo(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function h0(e){let t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Ef(e,"largest-contentful-paint",n)}function _0(e){return e.sources!==void 0}function g0(e){let t=[],n=[];for(let r of e.entries)if(_0(r)){let o=[];for(let i of r.sources)if(i.node){n.push(i.node);let s=Mn.mirror.getId(i.node);s&&o.push(s)}t.push({value:r.value,nodeIds:o.length?o:void 0})}return Ef(e,"cumulative-layout-shift",n,t)}function S0(e){let t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Ef(e,"interaction-to-next-paint",n)}function Ef(e,t,n,r){let o=e.value,i=e.rating,s=Fo(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map(a=>Mn.mirror.getId(a)):void 0,attributions:r}}}function E0(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(o=>{r.push(Ht(o,n))}),r.push(wr(Ud(h0,e)),Cr(Ud(g0,e)),$i(Ud(S0,e))),()=>{r.forEach(o=>o())}}var W=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,T0='
vendor: 10,329 bytes, line 495
495var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
495';function y0(){let e=new Blob([T0]);return URL.createObjectURL(e)}var Pg=["log","warn","error"],mc="[Replay] ";function Dd(e,t="info"){ft({category:"console",data:{logger:"replay"},level:t,message:`${mc}${e}`},{level:t})}function b0(){let e=!1,t=!1,n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return W?(Pg.forEach(r=>{n[r]=(...o)=>{_[r](mc,...o),t&&Dd(o.join(""),Yn(r))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),_.error(mc,r),e?Q(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Dd(r,"error")},n.infoTick=(...r)=>{_.log(mc,...r),t&&setTimeout(()=>Dd(r[0]),0)}):Pg.forEach(r=>{n[r]=()=>{}}),n}var j=b0(),ss=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${df}.`)}},Ic=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>df)throw new ss;this.events.push(t)}finish(){return new Promise(t=>{let n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(n=>n.timestamp).sort()[0];return t?gf(t):null}},ef=class{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){W&&j.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){let r=this._getAndIncrementId();return new Promise((o,i)=>{let s=({data:a})=>{let c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){W&&j.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}},tf=class{constructor(t){this._worker=new ef(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let n=gf(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);let r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>df?Promise.reject(new ss):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{W&&j.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}},nf=class{constructor(t){this._fallback=new Ic,this._compression=new tf(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){W&&j.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,o=[];for(let i of t)o.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(o),this._fallback.clear()}catch(i){W&&j.exception(i,"Failed to add events when switching buffers.")}}};function I0({useCompression:e,workerUrl:t}){if(e&&window.Worker){let n=A0(t);if(n)return n}return W&&j.log("Using simple buffer"),new Ic}function A0(e){try{let t=e||R0();if(!t)return;W&&j.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new nf(n)}catch(t){W&&j.exception(t,"Failed to create compression worker")}}function R0(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?y0():""}function Tf(){try{return"sessionStorage"in ye&&!!ye.sessionStorage}catch{return!1}}function v0(e){N0(),e.session=void 0}function N0(){if(Tf())try{ye.sessionStorage.removeItem(uf)}catch{}}function pS(e){return e===void 0?!1:Math.random()<e}function xc(e){if(Tf())try{ye.sessionStorage.setItem(uf,JSON.stringify(e))}catch{}}function mS(e){let t=Date.now(),n=e.id||de(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a,dirty:c}}function C0(e,t){return pS(e)?"session":t?"buffer":!1}function Ug({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let o=C0(e,t),i=mS({sampled:o,previousSessionId:r});return n&&xc(i),i}
495function w0(){if(!Tf())return null;try{let e=ye.sessionStorage.getItem(uf);if(!e)return null;let t=JSON.parse(e);return W&&j.infoTick("Loading existing session"),mS(t)}catch{return null}}function rf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function hS(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return rf(e.started,t,r)||rf(e.lastActivity,n,r)}function _S(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!hS(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Bd({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let o=r.stickySession&&w0();return o?_S(o,{sessionIdleExpire:e,maxReplayDuration:t})?(W&&j.infoTick("Session in sessionStorage is expired, creating new one..."),Ug(r,{previousSessionId:o.id})):o:(W&&j.infoTick("Creating new session"),Ug(r,{previousSessionId:n}))}function x0(e){return e.type===K.Custom}function yf(e,t,n){return SS(e,t)?(gS(e,t,n),!0):!1}function k0(e,t,n){return SS(e,t)?gS(e,t,n):Promise.resolve(null)}async function gS(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let o=e.recordingMode==="buffer";try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let i=e.getOptions(),s=O0(t,i.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(i){let s=i&&i instanceof ss,a=s?"addEventSizeExceeded":"addEvent",c=y();if(c){let u=s?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(s&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function SS(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=gf(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(W&&j.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function O0(e,t){try{if(typeof t=="function"&&x0(e))return t(e)}catch(n){return W&&j.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function bf(e){return!e.type}function of(e){return e.type==="transaction"}function M0(e){return e.type==="replay_event"}function Dg(e){return e.type==="feedback"}function L0(e){return(t,n)=>{if(!e.isEnabled()||!bf(t)&&!of(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(of(t)){P0(e,t);return}U0(e,t)}}}function P0(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function U0(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||xr(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function D0(e){return t=>{!e.isEnabled()||!bf(t)||B0(e,t)}}function B0(e,t){let n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let r=En({category:"replay.hydrate-error",data:{url:ct()}});ls(e,r)}}function F0(e){let t=y();t&&t.on("beforeAddBreadcrumb",n=>H0(e,n))}function H0(e,t){if(!e.isEnabled()||!ES(t))return;let n=G0(t);n&&ls(e,n)}function G0(e){return!ES(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?$0(e):En(e)}function $0(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return En(e);let n=!1,r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>lc?(n=!0,`${o.slice(0,lc)}\u2026`):o;if(typeof o=="object")try{let i=De(o,7);return JSON.stringify(i).length>lc?(n=!0,`${JSON.stringify(i,null,2).slice(0,lc)}\u2026`):i}catch{}return o});return En({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function ES(e){return!!e.category}function W0(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function TS(){let e=M().getPropagationContext().dsc;e&&delete e.replay_id;let t=X();if(t){let n=ke(t);delete n.replay_id}}function j0(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:K.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function z0(e,t){return e.recordingMode!=="buffer"||t.message===lf||!t.exception||t.type?!1:pS(e.getOptions().errorSampleRate)}function q0(e){return Object.assign((t,n)=>
495{if(!e.isEnabled()||e.isPaused())return t;if(M0(t))return delete t.breadcrumbs,t;if(!bf(t)&&!of(t)&&!Dg(t))return t;if(!e.checkAndHandleExpiredSession())return TS(),t;if(Dg(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),j0(e,t),t;if(W0(t,n)&&!e.getOptions()._experiments.captureExceptions)return W&&j.log("Ignoring error from rrweb internals",t),null;let o=z0(e,t);if((o||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),o&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){let s=e.session;s.dirty=!0,e.getOptions().stickySession&&xc(s)}return t},{id:"Replay"})}function kc(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{let a=e.throttledAddEvent({type:K.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function Y0(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function V0(e){return t=>{if(!e.isEnabled())return;let n=Y0(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(kc(e,[n]),!1)))}}function J0(e,t){return W&&e.getOptions()._experiments.traceInternals?!1:Ni(t,y())}function yS(e,t){e.isEnabled()&&t!==null&&(J0(e,t.name)||e.addUpdate(()=>(kc(e,[t]),!0)))}function Oc(e){if(!e)return;let t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Fa(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function bS(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function Ac(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function IS(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:c}}}function as(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:i}=K0(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function sf(e,t){return Object.entries(e).reduce((n,[r,o])=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function K0(e){if(!e||typeof e!="string")return{body:e};let t=e.length>Sg,n=X0(e);if(t){let r=e.slice(0,Sg);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function X0(e){let t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Rc(e,t){let n=Q0(e);return ze(n,t)}function Q0(e,t=ye.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ye.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Z0(e,t,n){try{let r=await tw(e,t,n),o=IS("resource.fetch",r);yS(n.replay,o)}catch(r){W&&j.exception(r,"Failed to capture fetch breadcrumb")}}function ew(e,t){let{input:n,response:r}=t,o=n?bo(n):void 0,i=Oc(o),s=r?bS(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}async function tw(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Rc(s,n.networkDetailAllowUrls)&&!Rc(s,n.networkDetailDenyUrls),p=l?nw(n,t.input,u):as(u),m=await rw(l,n,t.response,d);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:m}}function nw({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let o=n?sw(n,t):{};if(!e)return sr(o,r,void 0);let i=bo(n),[s,a]=Or(i,j),c=sr(o,r,s);return a?Ac(c,a):c}async function rw(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&o!==void 0)return as(o);let i=r?AS(r.headers,n):{};if(!r||!t&&o!==void 0)return sr(i,o,void 0);let[s,a]=await iw(r),c=ow(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return a?Ac(c,a):c}function ow(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{let i=e?.length&&n===void 0?Oc(e):n;return r?t?sr(o,i,e):sr(o,i,void 0):as(i)}catch(i){return W&&j.exception(i,"Failed to serialize response body"),sr(o,n,void 0)}}async function iw(e){let t=aw(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await cw(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(W&&j.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(W&&j.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function AS(e,t){let n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
495function sw(e,t){return e.length===1&&typeof e[0]!="string"?Bg(e[0],t):e.length===2?Bg(e[1],t):{}}function Bg(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?AS(n,t):Array.isArray(n)?{}:sf(n,t):{}}function aw(e){try{return e.clone()}catch(t){W&&j.exception(t,"Failed to clone response body")}}function cw(e){return new Promise((t,n)=>{let r=xr(()=>n(new Error("Timeout while trying to read response body")),500);uw(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function uw(e){return await e.text()}async function lw(e,t,n){try{let r=fw(e,t,n),o=IS("resource.xhr",r);yS(n.replay,o)}catch(r){W&&j.exception(r,"Failed to capture xhr breadcrumb")}}function dw(e,t){let{xhr:n,input:r}=t;if(!n)return;let o=Oc(r),i=n.getResponseHeader("content-length")?bS(n.getResponseHeader("content-length")):hw(n.response,n.responseType);o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}function fw(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:p}=e.data;if(!c)return null;if(!a||!Rc(c,n.networkDetailAllowUrls)||Rc(c,n.networkDetailDenyUrls)){let F=as(l),T=as(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:F,response:T}}let m=a[pt],h=m?sf(m.request_headers,n.networkRequestHeaders):{},g=sf(qi(a),n.networkResponseHeaders),[S,E]=n.networkCaptureBodies?Or(s,j):[void 0],[I,B]=n.networkCaptureBodies?pw(a):[void 0],L=sr(h,l,S),q=sr(g,p,I);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:d,request:E?Ac(L,E):L,response:B?Ac(q,B):q}}function pw(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return mw(e.response,e.responseType)}catch(n){t.push(n)}return W&&j.warn("Failed to get xhr response body",...t),[void 0]}function mw(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return W&&j.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return W&&j.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function hw(e,t){try{let n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Oc(n)}catch{return}}function _w(e){let t=y();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(c,u)=>gw(a,c,u))}catch{}}function gw(e,t,n){if(t.data)try{Sw(t)&&Tw(n)&&(dw(t,n),lw(t,n,e)),Ew(t)&&yw(n)&&(ew(t,n),Z0(t,n,e))}catch(r){W&&j.exception(r,"Error when enriching network breadcrumb")}}function Sw(e){return e.category==="xhr"}function Ew(e){return e.category==="fetch"}function Tw(e){return e?.xhr}function yw(e){return e?.response}function bw(e){let t=y();zi(n0(e)),xn(V0(e)),F0(e),_w(e);let n=q0(e);_i(n),t&&(t.on("beforeSendEvent",D0(e)),t.on("afterSendEvent",L0(e)),t.on("createDsc",r=>{let o=e.getSessionId();o&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=o)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,o)=>{let i=e.getSessionId();o?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Iw(e){try{return Promise.all(kc(e,[Aw(ye.performance.memory)]))}catch{return[]}}function Aw(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Rw(e,t,n){return nl(e,t,{...n,setTimeoutImpl:xr})}var pc=N.navigator;function vw(){return/iPhone|iPad|iPod/i.test(pc?.userAgent??"")||/Macintosh/i.test(pc?.userAgent??"")&&pc?.maxTouchPoints&&pc?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Nw(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){W&&j.warn("Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&XC(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!yf(e,n,o))return!0;
495if(!o)return!1;let i=e.session;if(ww(e,o),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){let s=e.eventBuffer.getEarliestTimestamp();s&&(W&&j.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),i.started=s,e.getOptions().stickySession&&xc(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function Cw(e){let t=e.getOptions();return{type:K.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function ww(e,t){!t||!e.session||e.session.segmentId!==0||yf(e,Cw(e),!1)}function xw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function kw(e,t,n,r){return Oe(si(e,Gn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Ow({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)} 496`;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function Mw({client:e,scope:t,replayId:n,event:r}){let o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit("preprocessEvent",r,i);let s=await di(e.getOptions(),r,i,t,e,ue());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let a=e.getSdkMetadata(),{name:c,version:u,settings:d}=a?.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},s}async function Lw({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let s=Ow({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=y(),p=M(),m=l?.getTransport(),h=l?.getDsn();if(!l||!m||!h||!i.sampled)return Promise.resolve({});let g={type:IN,replay_start_timestamp:d/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},S=await Mw({scope:p,client:l,replayId:t,event:g});if(!S)return l.recordDroppedEvent("event_processor","replay"),W&&j.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete S.sdkProcessingMetadata;let E=kw(S,s,h,l.getOptions().tunnel),I;try{I=await m.send(E)}catch(L){let q=new Error(lf);try{q.cause=L}catch{}throw q}if(typeof I.statusCode=="number"&&(I.statusCode<200||I.statusCode>=300))throw new vc(I.statusCode);let B=Ii({},I);if(bi(B,"replay"))throw new cs(B);return I}var vc=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},cs=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};async function RS(e,t={count:0,interval:wN}){let{recordingData:n,onError:r}=e;if(n.length)try{return await Lw(e),!0}catch(o){if(o instanceof vc||o instanceof cs)throw o;if(pi("Replays",{_retryCount:t.count}),r&&r(o),t.count>=xN){let i=new Error(`${lf} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{xr(async()=>{try{await RS(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}var vS="__THROTTLED",Pw="__SKIPPED";function Uw(e,t,n){let r=new Map,o=a=>{let c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0),s=!1;return(...a)=>{let c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){let d=s;return s=!0,d?Pw:vS}s=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var af=class{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:AN,sessionIdleExpire:RN},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Rw(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Uw((s,a)=>k0(this,s,a),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(kN,r),timeout:r,scrollTimeout:ON,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new Zd(this,i)),W){let s=t._experiments;j.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{ye.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
496dTasks()},this._handleWindowBlur=()=>{let s=En({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{let s=En({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{s0(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){W&&j.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options,o=n<=0&&r<=0;if(this._requiresManualStart=o,!o){if(this._initializeSessionForSampling(t),!this.session){W&&j.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",W&&j.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){W&&j.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){W&&j.log("Buffering is in progress, call `flush()` to save the replay");return}W&&j.infoTick("Starting replay in session mode"),this._updateUserActivity();let t=Bd({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){W&&j.log("Buffering is in progress, call `flush()` to save the replay");return}W&&j.infoTick("Starting replay in buffer mode");let t=Bd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=Mn({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:CN}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Nw(this),...vw(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{W&&j.log(`Stopping Replay${n?` triggered by ${n}`:""}`),TS(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,v0(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),W&&j.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),W&&j.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();W&&j.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
496checkAndHandleExpiredSession(){if(this._lastActivity&&rf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${ye.location.pathname}${ye.location.hash}${ye.location.search}`,n=`${ye.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){let r=this._throttledAddEvent(t,n);if(r===vS){let o=En({category:"replay.throttled"});this.addUpdate(()=>!yf(this,{type:GC,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastActiveSpan||X(),n=t&&ee(t),o=(n&&P(n).data||{})[Ne];if(!(!n||!o||!["route","custom"].includes(o)))return P(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=I0({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Bd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;let t=this.session;return _S(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ye.document.addEventListener("visibilitychange",this._handleVisibilityChange),ye.addEventListener("blur",this._handleWindowBlur),ye.addEventListener("focus",this._handleWindowFocus),ye.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(bw(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=E0(this)}_removeListeners(){try{ye.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ye.removeEventListener("blur",this._handleWindowBlur),ye.removeEventListener("focus",this._handleWindowFocus),ye.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||hS(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){W&&j.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:K.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=l0(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(kc(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
496_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){W&&j.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await Iw(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await RS({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,timestamp:n,onError:s=>this.handleException(s)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});let r=y();if(r){let o=n instanceof cs?"ratelimit_backoff":"send_error";r.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){W&&j.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){W&&j.log(`Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&W&&j.log("Flushing initial segment without checkout.");let c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&xc(this.session)}_onMutationHandler(t){let{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{let c=xw(a.target),u=n.join(",");return c?.matches(u)}))return!1;let r=t.length,o=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=o&&r>o;if(r>i||s){let a=En({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}};function Qi(e,t){return[...e,...t].join(",")}function Dw({mask:e,unmask:t,block:n,unblock:r,ignore:o}){let i=["base","iframe[srcdoc]:not([src])"],s=Qi(e,[".sentry-mask","[data-sentry-mask]"]),a=Qi(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:Qi(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Qi(r,[]),ignoreSelector:Qi(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Bw({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var Fg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Fw=["content-length","content-type","accept"],Hg=!1,NS=e=>new cf(e),cf=class{constructor({flushMinDelay:t=vN,flushMaxDelay:n=NN,minReplayDuration:r=MN,maxReplayDuration:o=Eg,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:m=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:S=[],networkDetailDenyUrls:E=[],networkCaptureBodies:I=!0,networkRequestHeaders:B=[],networkResponseHeaders:L=[],mask:q=[],maskAttributes:F=["title","placeholder","aria-label"],unmask:T=[],block:k=[],unblock:$=[],ignore:R=[],maskFn:O,beforeAddRecordingEvent:w,beforeErrorSampling:U,onError:H}={}){this.name="Replay";let ne=Dw({mask:q,unmask:T,block:k,unblock:$,ignore:R});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(te,le,v)=>Bw({maskAttributes:F,maskAllText:u,privacyOptions:ne,key:te,value:le,el:v}),...ne,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:te=>{try{te.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,LN),maxReplayDuration:Math.min(o,Eg),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:m,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:S,networkDetailDenyUrls:E,networkCaptureBodies:I,networkRequestHeaders:Gg(B),networkResponseHeaders:Gg(L),beforeAddRecordingEvent:w,beforeErrorSampling:U,onError:H,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Fg}`:Fg,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&er())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Hg}set _isInitialized(t){Hg=t}afterAllSetup(t){!er()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
496startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){let n=Hw(this._initialOptions,t);this._replay=new af({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{let n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}};function Hw(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=kt(n.replaysSessionSampleRate),i=kt(n.replaysOnErrorSampleRate);return o==null&&i==null&&Je(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),o!=null&&(r.sessionSampleRate=o),i!=null&&(r.errorSampleRate=i),r}function Gg(e){return[...Fw,...e.map(t=>t.toLowerCase())]}function CS(){return y()?.getIntegrationByName("Replay")}f();var Gw=Object.defineProperty,$w=(e,t,n)=>t in e?Gw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wS=(e,t,n)=>$w(e,typeof t!="symbol"?t+"":t,n),Af=class{constructor(){wS(this,"idNodeMap",new Map),wS(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Ww(){return new Af}function jw(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Rf(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Rf(e.parentNode,t,n,r+1)}function xS(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(jw(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var Ho=`Please stop import mirror directly. Instead of that,\r 497now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 498or you can use record.mirror to access the mirror instance during recording.`,kS={map:{},getId(){return console.error(Ho),-1},getNode(){return console.error(Ho),null},removeNodeFromMap(){console.error(Ho)},has(){return console.error(Ho),!1},reset(){console.error(Ho)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(kS=new Proxy(kS,{get(e,t,n){return t==="map"&&console.error(Ho),Reflect.get(e,t,n)}}));function Nf(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){FS(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Nf(e,t,i||{},!0)}function Cf(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function zw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Uc(e,t,n,r,o){if(!e)return!1;let i=zw(e);if(!i)return!1;let s=xS(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=Rf(i,s),c=-1;return a<0?!1:(r&&(c=Rf(i,xS(null,r))),a>-1&&c<0?!0:a<c)}var OS={};function BS(e){let t=OS[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return OS[e]=r.bind(window)}function Dr(...e){return BS("requestAnimationFrame")(...e)}
498function FS(...e){return BS("setTimeout")(...e)}var $o=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))($o||{}),Lc;function qw(e){Lc=e}var If=e=>Lc?(...n)=>{try{return e(...n)}catch(r){if(Lc&&Lc(r)===!0)return()=>{};throw r}}:e,Go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yw=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(ds=0;ds<Go.length;ds++)Yw[Go.charCodeAt(ds)]=ds;var ds,Vw=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=Go[t[n]>>2],o+=Go[(t[n]&3)<<4|t[n+1]>>4],o+=Go[(t[n+1]&15)<<2|t[n+2]>>6],o+=Go[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},MS=new Map;function Jw(e,t){let n=MS.get(e);return n||(n=new Map,MS.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var HS=(e,t,n)=>{if(!e||!($S(e,t)||typeof e=="object"))return;let r=e.constructor.name,o=Jw(n,r),i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function Pc(e,t,n){if(e instanceof Array)return e.map(r=>Pc(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let r=e.constructor.name,o=Vw(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Pc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){let r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Pc(e.data,t,n),e.width,e.height]};if($S(e,t)||typeof e=="object"){let r=e.constructor.name,o=HS(e,t,n);return{rr_type:r,index:o}}}}return e}var GS=(e,t,n)=>e.map(r=>Pc(r,t,n)),$S=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function Kw(e,t,n,r,o){let i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;let c=Cf(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return Uc(this.canvas,n,r,o,!0)||FS(()=>{let l=GS(d,t,this);e(this.canvas,{type:$o["2D"],property:a,args:l})},0),u.apply(this,d)}});i.push(c)}catch{let c=Nf(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:$o["2D"],property:a,args:[u],setter:!0})}});i.push(c)}return()=>{i.forEach(a=>a())}}function Xw(e){return e==="experimental-webgl"?"webgl":e}function LS(e,t,n,r,o){let i=[];try{let s=Cf(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Uc(this,t,n,r,!0)){let d=Xw(c);if("__context"in this||(this.__context=d),o&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){let l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(s=>s())}}function PS(e,t,n,r,o,i,s,a){let c=[],u=Object.getOwnPropertyNames(e);for(let d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;let l=Cf(e,d,function(p){return function(...m){let h=p.apply(this,m);if(HS(h,a,this),"tagName"in this.canvas&&!Uc(this.canvas,r,o,i,!0)){let g=GS(m,a,this),S={type:t,property:d,args:g};n(this.canvas,S)}return h}});c.push(l)}catch{let l=Nf(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(l)}return c}function Qw(e,t,n,r,o,i){let s=[];return s.push(...PS(t.WebGLRenderingContext.prototype,$o.WebGL,e,n,r,o,i,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...PS(t.WebGL2RenderingContext.prototype,$o.WebGL2,e,n,r,o,i,t)),()=>
498{s.forEach(a=>a())}}var Zw='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function ex(){let e=new Blob([Zw]);return URL.createObjectURL(e)}var vf=class{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};let{enableManualSnapshot:n,sampling:r="all",win:o,recordCanvas:i,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&qw(s),(i&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(o),!n&&If(()=>{i&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){let{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:i,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}If(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,o,i),s&&typeof n=="number"){let c=LS(t,r,o,i,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Dr(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){let t=new Worker(ex());return t.onmessage=n=>{let r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;let{base64:i,type:s,width:a,height:c}=r;this.mutationCb({id:o,type:$o["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:i}],type:s}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;let n=r=>{this.takeSnapshot(r,!1),t=Dr(n)};t=Dr(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,o){let i=LS(t,n,r,o,!1),s=Kw(this.processMutation.bind(this),t,n,r,o),a=Qw(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{i(),s(),a()})}getCanvasElements(t,n,r){let o=[],i=s=>{s.querySelectorAll("canvas").forEach(a=>{Uc(a,t,n,r,!0)||o.push(a)})};for(let s of this.windows){let a=s.deref(),c;try{c=a&&a.document}catch{}c&&i(c)}for(let s of this.shadowDoms){let a=s.deref();a&&i(a)}return o}takeSnapshot(t,n,r){let{sampling:o,blockClass:i,blockSelector:s,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(o==="all"?2:o||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(i,s,a)).forEac
498h(h=>{let g=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(g))){if(this.snapshotInProgressMap.set(g,!0),!n&&["webgl","webgl2"].includes(h.__context)){let S=h.getContext(h.__context);S?.getContextAttributes()?.preserveDrawingBuffer===!1&&S.clear(S.COLOR_BUFFER_BIT)}createImageBitmap(h).then(S=>{this.worker?.postMessage({id:g,bitmap:S,width:h.width,height:h.height,dataURLOptions:c,maxCanvasSize:u},[S])}).catch(S=>{If(()=>{throw this.snapshotInProgressMap.delete(g),S})()})}}),!0)}startPendingCanvasMutationFlusher(){Dr(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=n=>{this.rafStamps.latestId=n,Dr(t)};Dr(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{let r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Dr(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;let o=r.map(s=>{let{type:a,...c}=s;return c}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}};try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}Ww();var US;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(US||(US={}));var DS={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},tx="ReplayCanvas",Mc=1280,nx=(e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Mc):Mc,n?Math.min(n,Mc):Mc]},o,i=new Promise(s=>o=s);return{name:tx,getOptions(){let{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{let d=new vf({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return o(d),d},...DS[s]||DS.medium}},async snapshot(s,a){(await i).snapshot(s,a)}}},WS=nx;f();f();function jS(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function wf(e){try{return new URL(e,x.location.origin).href}catch{return}}function zS(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function xf(e){try{return new Headers(e)}catch{return}}var qS=new WeakMap,kf=new Map,fs={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Dc(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...fs,...t},d=typeof i=="function"?i:h=>!0,l=h=>rx(h,a),p={},m=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){let S=kf.get(g.span_id);S&&(g.timestamp=S/1e3,kf.delete(g.span_id))}}),h)),o&&Dl(h=>{if(h.response){let g=qS.get(h.response);g&&h.endTimestamp&&kf.set(g,h.endTimestamp)}}),vr(h=>{let g=ml(h,d,l,p,{propagateTraceparent:m,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&qS.set(h.response,h.fetchData.__span),g){let S=wf(h.fetchData.url),E=S?tn(S).host:void 0;g.setAttributes({"http.url":S,"server.address":E}),s&&YS(g),c?.(g,{headers:h.headers})}})),r&&kr(h=>{let g=ox(h,d,l,p,m,u);g&&(s&&YS(g),c?.(g,{headers:xf(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function YS(e){let{url:t}=P(e).data;if(!t||typeof t!="string")return;let n=Ht("resource",({entries:r})=>{r.forEach(o=>{zS(o)&&o.name.endsWith(t)&&(e.setAttributes(ji(o)),setTimeout(n))})})}function rx(e,t){let n=ct();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}let i=r.origin===o;return t?ze(r.toString(),t)||i&&ze(r.pathname,t):i}else{let r=!!e.match(/^\/(?!\/)/);return t?ze(e,t):r}}function ox(e,t,n,r,o,i){let s=e.xhr,a=s?.[pt];if(!s||s.__sentry_own_request__||!a)return;let{url:c,method:u}=a,d=xe()&&t(c);if(e.endTimestamp&&d){let E=s.__sentry_xhr_span_id__;if(!E)return;let I=r[E];I&&a.status_code!==void 0&&(mn(I,a.status_code),I.end(),i?.(I,{headers:xf(qi(s)),error:e.error}),delete r[E]);return}let l=wf(c),p=l?tn(l):tn(c),m=vi(c),h=!!X(),g=d&&h?Tt({name:`${u} ${m}`,attributes:{url:c,type:"xhr","http.method":u,"http.url":l,"server.address":p?.host,[G]:"auto.http.browser",[se]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Ze;s.__sentry_xhr_span_id__=g.spanContext().spanId,r[s.__sentry_xhr_span_id__]=g,n(c)&&ix(s,xe()&&h?g:void 0,o);let S=y();return S&&S.emit("beforeOutgoingRequestSpan",g,e),g}function ix(e,t,n){let{"sentry-trace":r,baggage:o,traceparent:i}=yr({span:t,propagateTraceparent:n});r&&sx(e,r,o,i)}function sx(e,t,n,r){let o=e.__sentry_xhr_v3__?.request_headers;if(!(o?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){let i=o?.baggage;(!i||!jS(i))&&e.setRequestHeader("baggage",n)}}catch{}}f();f();function VS(){x.document?x.document.addEventListener("visibilitychange",()=>{let e=X();if(!e)return;let t=ee(e);
498if(x.document.hidden&&t){let n="cancelled",{op:r,status:o}=P(t);A&&_.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):A&&_.warn("[Tracing] Could not set up background tab detection due to lack of global document")}f();var ax=3600,JS="sentry_previous_trace",cx="sentry.previous_trace";function KS(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t==="session-storage",o=r?dx():void 0;e.on("spanStart",s=>{if(ee(s)!==s)return;let a=M().getPropagationContext();o=ux(o,s,a),r&&lx(o)});let i=!0;n&&e.on("beforeSampling",s=>{if(!o)return;let a=M(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(Of(o.spanContext))},sampleRand:o.sampleRand}),s.parentSampled=Of(o.spanContext),s.parentSampleRate=o.sampleRate,s.spanAttributes={...s.spanAttributes,[Qo]:o.sampleRate}})}function ux(e,t,n){let r=P(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[yn])}catch{return 0}}let i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=ax&&(A&&_.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[cu]:"previous_trace"}}),t.setAttribute(cx,`${s.traceId}-${s.spanId}-${Of(s)?1:0}`)),i)}function lx(e){try{x.sessionStorage.setItem(JS,JSON.stringify(e))}catch(t){A&&_.warn("Could not store previous trace in sessionStorage",t)}}function dx(){try{let e=x.sessionStorage?.getItem(JS);return JSON.parse(e)}catch{return}}function Of(e){return e.traceFlags===1}var fx="BrowserTracing",px={...Xr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...fs},eE=(e={})=>{let t={name:void 0,source:void 0},n=x.document,{enableInp:r,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:S,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:I,enableHTTPTimings:B,ignoreResourceSpans:L,ignorePerformanceApiSpans:q,instrumentPageLoad:F,instrumentNavigation:T,detectRedirects:k,linkPreviousTrace:$,consistentTraceSampling:R,enableReportPageLoaded:O,onRequestSpanStart:w,onRequestSpanEnd:U}={...px,...e},H,ne,te;function le(v,Y,C=!0){let V=Y.op==="pageload",fe=Y.name,ae=d?d(Y):Y,we=ae.attributes||{};if(fe!==ae.name&&(we[Ne]="custom",ae.attributes=we),!C){let it=xt();Tt({...ae,startTime:it}).end(it);return}t.name=ae.name,t.source=we[Ne];let ot=Ys(ae,{idleTimeout:l,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:V,beforeSpanEnd:it=>{H?.(),nd(it,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:L,ignorePerformanceApiSpans:q}),QS(v,void 0);let _t=M(),cn=_t.getPropagationContext();_t.setPropagationContext({...cn,traceId:ot.spanContext().traceId,sampled:Ot(ot),dsc:ke(it)}),V&&(te=void 0)},trimIdleSpanEndTimestamp:!O});V&&O&&(te=ot),QS(v,ot);function Ln(){n&&["interactive","complete"].includes(n.readyState)&&v.emit("idleSpanEnableAutoFinish",ot)}V&&!O&&n&&(n.addEventListener("readystatechange",()=>{Ln()}),Ln())}return{name:fx,setup(v){if(Ti(),H=Ql({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:v}),r&&ud(),o&&rd(),s&&N.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?ed():i&&Zl(),a&&td(),k&&n){let C=()=>{ne=Z()};addEventListener("click",C,{capture:!0}),addEventListener("keydown",C,{capture:!0,passive:!0})}function Y(){let C=ps(v);C&&!P(C).timestamp&&(A&&_.log(`[Tracing] Finishing current active span with op: ${P(C).op}`),C.setAttribute(Fn,"cancelled"),C.end())}v.on("startNavigationSpan",(C,V)=>{if(y()!==v)return;if(V?.isRedirect){A&&_.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),le(v,{op:"navigation.redirect",...C},!1);return}ne=void 0,Y(),ue().setPropagationContext({traceId:qe(),sampleRand:Math.random(),propagationSpanId:xe()?void 0:Xe()});let fe=M();
498fe.setPropagationContext({traceId:qe(),sampleRand:Math.random(),propagationSpanId:xe()?void 0:Xe()}),fe.setSDKProcessingMetadata({normalizedRequest:void 0}),le(v,{op:"navigation",...C,parentSpan:null,forceTransaction:!0})}),v.on("startPageLoadSpan",(C,V={})=>{if(y()!==v)return;Y();let fe=V.sentryTrace||XS("sentry-trace"),ae=V.baggage||XS("baggage"),we=ei(fe,ae),ot=M();ot.setPropagationContext(we),xe()||(ot.getPropagationContext().propagationSpanId=Xe()),ot.setSDKProcessingMetadata({normalizedRequest:Hi()}),le(v,{op:"pageload",...C})}),v.on("endPageloadSpan",()=>{O&&te&&(te.setAttribute(Fn,"reportPageLoaded"),te.end())})},afterAllSetup(v){let Y=ct();if($!=="off"&&KS(v,{linkPreviousTrace:$,consistentTraceSampling:R}),x.location){if(F){let C=Ee();Mf(v,{name:x.location.pathname,startTime:C?C/1e3:void 0,attributes:{[Ne]:"url",[G]:"auto.pageload.browser"}})}T&&xn(({to:C,from:V})=>{if(V===void 0&&Y?.indexOf(C)!==-1){Y=void 0;return}Y=void 0;let fe=Tr(C),ae=ps(v),we=ae&&k&&hx(ae,ne);Lf(v,{name:fe?.pathname||x.location.pathname,attributes:{[Ne]:"url",[G]:"auto.navigation.browser"}},{url:C,isRedirect:we})})}h&&VS(),a&&mx(v,l,p,m,t),r&&ld(),Dc(v,{traceFetch:g,traceXHR:S,trackFetchStreamPerformance:E,tracePropagationTargets:v.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:I,enableHTTPTimings:B,onRequestSpanStart:w,onRequestSpanEnd:U})}}};function Mf(e,t,n){e.emit("startPageLoadSpan",t,n),M().setTransactionName(t.name);let r=ps(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Lf(e,t,n){let{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});let i=M();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...Hi(),url:r}}),ps(e)}function XS(e){return x.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function mx(e,t,n,r,o){let i=x.document,s,a=()=>{let c="ui.action.click",u=ps(e);if(u){let d=P(u).op;if(["navigation","pageload"].includes(d)){A&&_.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Fn,"interactionInterrupted"),s.end(),s=void 0),!o.name){A&&_.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=Ys({name:o.name,op:c,attributes:{[Ne]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}var tE="_sentry_idleSpan";function ps(e){return e[tE]}function QS(e,t){be(e,tE,t)}var ZS=1.5;function hx(e,t){let n=P(e),r=xt(),o=n.start_timestamp;return!(r-o>ZS||t&&r-t<=ZS)}f();function nE(e=y()){e?.emit("endPageloadSpan")}f();function rE(e){let t=X();if(t===e)return;let n=M();e.end=new Proxy(e.end,{apply(r,o,i){return ut(n,t),Reflect.apply(r,o,i)}}),ut(n,e)}f();function Wo(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function _x(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=Wo(n);return o=>r.then(i=>o(i.transaction(t,"readwrite").objectStore(t)))}function Pf(e){return Wo(e.getAllKeys())}function gx(e,t,n){return e(r=>Pf(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),Wo(r.transaction)}))}function Sx(e,t,n){return e(r=>Pf(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),Wo(r.transaction)}))}function Ex(e){return e(t=>Pf(t).then(n=>{let r=n[0];if(r!=null)return Wo(t.get(r)).then(o=>(t.delete(r),Wo(t.transaction).then(()=>o)))}))}function Tx(e){let t;function n(){return t==null&&(t=_x(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{let o=await Hn(r);await gx(n(),o,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{let o=await Hn(r);await Sx(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let r=await Ex(n());if(r)return _u(r)}catch{}}}}function yx(e){return t=>{let n=e({...t,createStore:Tx});return x.addEventListener("online",async r=>{await n.flush()}),n}}function oE(e=Ro){return yx(Ku(e))}f();f();f();var iE=1e6,bx="window"in N&&N.window===N&&typeof importScripts>"u",ar=String(0),Bc=bx?"main":"worker",Fc=x.navigator,aE="",cE="",uE="",Uf=Fc?.userAgent||"",lE="",Ix=Fc?.language||Fc?.languages?.[0]||"";function Ax(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}var sE=Fc?.userAgentData;Ax(sE)&&sE.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(aE=e.platform||"",uE=e.architecture||"",lE=e.model||"",cE=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];Uf=`${t.brand} ${t.version}`}}).catch(e=>{});function Rx(e){return!("thread_metadata"in e)}function vx(e){return Rx(e)?xx(e):e}function Nx(e){let t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&A&&_.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function Cx(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=Nx(r),i=vx(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Z()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Z()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||In,runtime:{name:"javascript",version:x.navigator.userAgent},os:{name:aE,version:cE,build_number:Uf},device:{locale:Ix,model:lE,manufacturer:Uf,architecture:uE,is_emulator:!1},debug_meta:{images:hE(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||de(),trace_id:o,active_thread_id:ar,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function dE(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=wx(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:de(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||de(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:hE(e.resources)},profile:r}}function fE(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};let t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}
498:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function wx(e){let t=[];for(let a=0;a<e.frames.length;a++){let c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}let n=[];for(let a=0;a<e.stacks.length;a++){let c=e.stacks[a];if(!c)continue;let u=[],d=c;for(;d;)u.push(d.frameId),d=d.parentId===void 0?void 0:e.stacks[d.parentId];n[a]=u}let r=Ee(),o=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,i=o-(r||o),s=[];for(let a=0;a<e.samples.length;a++){let c=e.samples[a];if(!c)continue;let u=(o+(c.timestamp-i))/1e3;s[a]={stack_id:c.stackId??0,thread_id:ar,timestamp:u}}return{frames:t,stacks:n,samples:s,thread_metadata:{[ar]:{name:Bc}}}}function Hc(e){return P(e).op==="pageload"}function xx(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[ar]:{name:Bc}}},o=e.samples[0];if(!o)return r;let i=o.timestamp,s=Ee(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-i)*iE).toFixed(0),stack_id:t,thread_id:ar};return}let l=e.stacks[u.stackId],p=[];for(;l;){p.push(l.frameId);let h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}let m={elapsed_since_start_ns:((u.timestamp+c-i)*iE).toFixed(0),stack_id:n,thread_id:ar};r.stacks[n]=p,r.samples[d]=m,n++}),r}function pE(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:"profile"},n]);return e}function mE(e){let t=[];return Mt(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++)n[o]?.contexts?.profile?.profile_id&&t.push(n[o])}),t}function hE(e){let r=y()?.getOptions()?.stackParser;return r?Ru(r,e):[]}function _E(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(A&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(A&&_.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function kx(e){return e.samples.length<2?(A&&_.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(A&&_.log("[Profiling] Discarding profile because it contains no frames"),!1)}var Df=!1,Bf=3e4;function Ox(e){return typeof e=="function"}function Gc(){let e=x.Profiler;if(!Ox(e)){A&&_.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=10,n=Math.floor(Bf/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{A&&(_.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),_.log("[Profiling] Disabling profiling for current user session.")),Df=!0}}function Ff(e){if(Df)return A&&_.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return A&&_.log("[Profiling] Discarding profile because root span was not sampled."),!1;let n=y()?.getOptions();if(!n)return A&&_.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return _E(r)?r?(r===!0?!0:Math.random()<r)?!0:(A&&_.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(A&&_.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(A&&_.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function gE(e){if(Df)return A&&_.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return A&&_.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return _E(t)?t?Math.random()<=t:(A&&_.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(A&&_.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function ms(e){return typeof e.profilesSampleRate<"u"}function SE(e,t,n,r){return kx(n)?Cx(e,t,n,r):null}var Br=new Map;function EE(){return Br.size}function TE(e){let t=Br.get(e);return t&&Br.delete(e),t}function yE(e,t){if(Br.set(e,t),Br.size>30){let n=Br.keys().next().value;n!==void 0&&Br.delete(n)}}function bE(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":ar,"thread.name":Bc}},e.spans?.forEach(t=>{t.data={...t.data||{},"thread.id":ar,"thread.name":Bc}})),e}function Hf(e){let t;Hc(e)&&(t=Z()*1e3);let n=Gc();if(!n)return;A&&_.log(`[Profiling] started profiling span: ${P(e).description}`);let r=de(),o=null;M().setContext("profile",{profile_id:r,start_timestamp:t});async function i(){if(e&&n){if(o){A&&_.log("[Profiling] profile for:",P(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(s&&(x.clearTimeout(s),s=void 0),A&&_.log(`[Profiling] stopped profiling of span: ${P(e).description}`),!u){A&&_.log(`[Profiling] profiler returned null profile for: ${P(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=u,yE(r,u)}).catch(u=>{A&&_.log("[Profiling] error while stopping profiler:",u)})}}let s=x.setTimeout(()=>{A&&_.log("[Profiling] max profile duration elapsed, stopping profiling for:",P(e).description),i()},Bf),a=e.end.bind(e);function c(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}e.end=c}f();var Mx=6e4,Lx=3e5,$c=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){let n=t.getOptions().profileLifecycle,r=gE(t.getOptions());A&&_.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||A&&_.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=de(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}
498start(){if(this._lifecycleMode==="trace"){A&&_.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){A&&_.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){A&&_.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){A&&_.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){A&&_.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;let n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);let r=this._activeRootSpanIds.size;r===1&&(A&&_.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,A&&_.log("[Profiling] Started profiling with profiler ID:",this._profilerId),lt().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){A&&_.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{A&&_.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&<().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){A&&_.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==ee(n))return;if(!n.isRecording()){A&&_.log("[Profiling] Discarding profile because root span was not sampled.");return}let r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);let o=this._activeRootSpanIds.size;o===1&&(A&&_.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${o}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;let r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);let o=this._activeRootSpanIds.size;A&&_.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${o}).`),o===0&&(this._collectCurrentChunk().catch(i=>{A&&_.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",i)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,lt().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);let n=setTimeout(()=>this._onRootSpanTimeout(t),Lx);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let t=Gc();if(!t){A&&_.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{A&&_.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},Mx))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(A&&_.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let t=this._profiler;if(this._profiler=void 0,!!t)try{let n=await t.stop(),r=dE(n,this._client,this._profilerId),o=fE(r);if("reason"in o){A&&_.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",o.reason);return}this._sendProfileChunk(r),A&&_.log("[Profiling] Collected browser profile chunk.")}catch(n){A&&_.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}
498_sendProfileChunk(t){let n=this._client,r=Gn(n.getSdkMetadata?.()),o=n.getDsn(),i=n.getOptions().tunnel,s=Oe({event_id:de(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&o&&{dsn:He(o)}},[[{type:"profile_chunk"},t]]);n.sendEnvelope(s).then(null,a=>{A&&_.error("Error while sending profile chunk envelope:",a)})}};var Px="BrowserProfiling",Ux=()=>({name:Px,setup(e){let t=e.getOptions(),n=new $c;if(!ms(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),ms(t)&&!t.profilesSampleRate){A&&_.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=X(),o=r&&ee(r);if(ms(t)&&t.profileSessionSampleRate!==void 0&&A&&_.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),ms(t))o&&Hc(o)&&Ff(o)&&Hf(o),e.on("spanStart",i=>{i===ee(i)&&Ff(i)&&Hf(i)}),e.on("beforeEnvelope",i=>{if(!EE())return;let s=mE(i);if(!s.length)return;let a=[];for(let c of s){let u=c?.contexts,d=u?.profile?.profile_id,l=u?.profile?.start_timestamp;if(typeof d!="string"){A&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){A&&_.log("[Profiling] cannot find profile for a span without a profile context");continue}u?.profile&&delete u.profile;let p=TE(d);if(!p){A&&_.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}let m=SE(d,l,p,c);m&&a.push(m)}pE(i,a)});else{let i=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),i==="manual")n.initialize(e);else if(i==="trace"){if(!xe(t)){A&&_.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),x.setTimeout(()=>{let s=X(),a=s&&ee(s);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return bE(e)}}),IE=Ux;f();var AE=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Lt(e)}});function RE(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{yt(e,t.value),bt(e,t.value)}}}f();var vE=()=>({name:"OpenFeature",processEvent(e,t,n){return Lt(e)}}),Wc=class{after(t,n){yt(n.flagKey,n.value),bt(n.flagKey,n.value)}error(t,n,r){yt(t.flagKey,t.defaultValue),bt(t.flagKey,t.defaultValue)}};f();var NE=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;Se(t,"isEnabled",Dx)},processEvent(t,n,r){return Lt(t)}});function Dx(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(yt(n,r),bt(n,r)):A&&_.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}f();var CE=({growthbookClass:e})=>pl({growthbookClass:e});f();var wE=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{yt(n.gate.name,n.gate.value),bt(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Lt(t)}});f();async function xE(){let e=y();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await ci(()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}f();var Bx="WebWorker",OE=({worker:e})=>({name:Bx,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>kE(t))},addWorker:t=>kE(t)});function kE(e){e.addEventListener("message",t=>{Hx(t.data)&&(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(A&&_.log("Sentry debugId web worker message received",t.data),x._sentryDebugIds={...t.data._sentryDebugIds,...x._sentryDebugIds}),t.data._sentryWorkerError&&(A&&_.log("Sentry worker rejection message received",t.data._sentryWorkerError),Fx(t.data._sentryWorkerError)))})}function Fx(e){let t=y();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=at(o)?fd(o):mo(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),en(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),A&&_.log("Captured worker unhandled rejection",o)}function ME({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:dd(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}
498),A&&_.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),A&&_.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function Hx(e){if(!je(e)||e._sentryMessage!==!0)return!1;let t="_sentryDebugIds"in e,n="_sentryWorkerError"in e;return!(!t&&!n||t&&!(je(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!je(e._sentryWorkerError))}export{Q as a,fi as b,xu as c,la as d,T_ as e,Gx as f};
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.