PageSourceSearch

https://web-static3.lovart.ai/lovart_prd/static/_next/static/chunks/0odbxv2tgtzaz.js

js lovart.ai collected 2026-10-01 12:16:20 UTC 249,685 bytes, 19 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,476565,e=>{"use strict";let t,n,r,i,s,a,o,l,c,u,d,p,h,f,m,g,y,_,v,b,S,w,E,k,x,T,I;var C,M,R,O,D,A,N,P,L,$=e.i(82033),j=e.i(254667);let F="9.47.1",U=globalThis;function B(){return z(U),U}function z(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||F,t[F]=t[F]||{}}function W(e,t,n=U){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[F]=r[F]||{};return i[e]||(i[e]=t())}let H="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,q=Object.prototype.toString;function V(e){switch(q.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return en(e,Error)}}function J(e,t){return q.call(e)===`[object ${t}]`}function K(e){return J(e,"ErrorEvent")}function G(e){return J(e,"DOMError")}function Y(e){return J(e,"String")}function X(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Q(e){return null===e||X(e)||"object"!=typeof e&&"function"!=typeof e}function Z(e){return J(e,"Object")}function ee(e){return"u">typeof Event&&en(e,Event)}function et(e){return!!(e?.then&&"function"==typeof e.then)}function en(e,t){try{return e instanceof t}catch{return!1}}function er(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function ei(e){return"u">typeof Request&&en(e,Request)}function es(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],s=0,a=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&s++<5&&(n=function(e,t){let n=[];if(!e?.tagName)return"";if(U.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(r?.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&Y(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,o),"html"!==n&&(!(s>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch{return"<unknown>"}}function ea(){try{return U.document.location.href}catch{return""}}function eo(e){if(!U.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){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}let el=["debug","info","warn","error","log","assert","trace"],ec={};function eu(e){if(!("console"in U))return e();let t=U.console,n={},r=Object.keys(ec);r.forEach(e=>{let r=ec[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ed(){return eh().enabled}function ep(e,...t){H&&ed()&&eu(()=>{U.console[e](`Sentry Logger [${e}]:`,...t)})}function eh(){return H?W("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let ef={enable:function(){eh().enabled=!0},disable:function(){eh().enabled=!1},isEnabled:ed,log:function(...e){ep("log",...e)},warn:function(...e){ep("warn",...e)},error:function(...e){ep("error",...e)}};function em(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function eg(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{er(r)?n.push("[VueViewModel]"):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ey(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!Y(e)&&(J(t,"RegExp")?t.test(e):!!Y(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function e_(e,t,n){if(!(t in e))return;let r=e[t];if("function"!=typeof r)return;let i=n(r);"function"==typeof i&&eb(i,r);try{e[t]=i}catch{H&&ef.log(`Failed to replace method "${t}" in object`,e)}}function ev(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{H&&ef.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function eb(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ev(e,"__sentry_original__",t)}catch{}}function eS(e){return e.__sentry_original__}function ew(e){if(V(e))return{message:e.message,name:e.name,stack:e.stack,...ek(e)};if(!ee(e))return e;{let t={type:e.type,target:eE(e.target),currentTarget:eE(e.currentTarget),...ek(e)};return"u">typeof CustomEvent&&en(e,CustomEvent)&&(t.detail=e.detail),t}}function eE(e){try{return"u">typeof Element&&en(e,Element)?es(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ek(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function ex(e=U.crypto||U.msCrypto){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function eT(e){return e.exception?.values?.[0]}function eI(e){let{message:t,event_id:n}=e;if(t)return t;let r=eT(e);return r?r.type&&r.value?`${r.type}: ${r.value}
1`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function eC(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function eM(e,t){let n=eT(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r?.data,...t.data};n.mechanism.data=e}}function eR(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{ev(e,"__sentry_captured__",!0)}catch{}return!1}function eO(){return Date.now()/1e3}function eD(){return(t??(t=function(){let{performance:e}=U;if(!e?.now||!e.timeOrigin)return eO;let t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function eA(){return n||(n=function(){let{performance:e}=U;if(!e?.now)return[void 0,"none"];let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing?.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||s<36e5)if(r<=s)return[e.timeOrigin,"timeOrigin"];else return[i,"navigationStart"];return[n,"dateNow"]}()),n[0]}function eN(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||eD(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ex()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eP(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=eP(r[e],t[e],n-1));return r}function eL(){return ex().substring(16)}let e$="_sentrySpan";function ej(e,t){t?ev(e,e$,t):delete e[e$]}class eF{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ex(),sampleRand:Math.random()}}clone(){let e=new eF;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ej(e,this[e$]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eN(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:n,extra:r,user:i,contexts:s,level:a,fingerprint:o=[],propagationContext:l}=(t instanceof eF?t.getScopeData():Z(t)?e:void 0)||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...r},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),o.length&&(this._fingerprint=o),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ej(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ex(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:eO(),...e,message:e.message?em(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[e$]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eP(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ex();if(!this._client)return H&&ef.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||ex();if(!this._client)return H&&ef.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||ex();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):H&&ef.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(e=>{e(this)}),this._notifyingListeners=!1)}}class eU{constructor(e,t){let n,r;n=e||new eF,r=t||new eF,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t,n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return et(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eB(){let e=z(B());return e.stack=e.stack||new eU(W("defaultCurrentScope",()=>new eF),W("defaultIsolationScope",()=>new eF))}function ez(e){return eB().withScope(e)}function eW(e,t){let n=eB();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eH(e){return eB().withScope(()=>e(eB().getIsolationScope()))}function eq(e){let t=z(e);return t.acs?t.acs:{withIsolationScope:eH,withScope:ez,withSetScope:eW,withSetIsolationScope:(e,t)=>eH(t),getCurrentScope:()=>eB().getScope(),getIsolationScope:()=>eB().getIsolationScope()}}function eV(){return eq(B()).getCurrentScope()}function eJ(){return eq(B()).getIsolationScope()}function eK(...e){let t=eq(B());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function eG(){return eV().getClient()}let eY="sentry.source",eX="sentry.sample_rate",eQ="sentry.previous_trace_sample_rate",eZ="sentry.op",e0="sentry.origin",e1="sentry.idle_span_finish_reason",e2="sentry.measurement_unit",e3="sentry.measurement_value",e5="sentry.custom_span_name",e6="sentry.profile_id",e8="sentry.exclusive_time";function e4(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||eG()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}function e7(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}let e9="_sentryScope",te="_sentryIsolationScope";function tt(e){return{scope:e[e9],isolationScope:e[te]}}let tn="sentry-",tr=/^sentry-/;function ti(e){let t=function(e){if(e&&(Y(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(ts(t)).forEach(([t,n])=>{e[t]=n}),e),{}):ts(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(tr)&&(e[t.slice(tn.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function ts(e){return e.split(",").map(e=>e.split("=").map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function ta(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let to=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tl(e=ex(),t=eL(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}let tc=!1;function tu(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:1===n,attributes:i,...r})):void 0}function td(e){return"number"==typeof e?tp(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tp(e.getTime()):eD()}function tp(e){return e>0x2540be3ff?e/1e3:e}function th(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:n,traceId:r}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:s,endTime:a,status:o,links:l}=e;return{span_id:n,trace_id:r,data:t,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:td(i),timestamp:td(a)||void 0,status:tm(o),op:t[eZ],origin:t[e0],links:tu(l)}}return{span_id:n,trace_id:r,start_timestamp:0,data:{}}}function tf(e){let{traceFlags:t}=e.spanContext();return 1===t}function tm(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}let tg="_sentryChildSpans",ty="_sentryRootSpan";function t_(e,t){let n=e[ty]||e;ev(t,ty,n),e[tg]?e[tg].add(t):ev(e,tg,new Set([t]))}function tv(e){let t=new Set;return!function e(n){if(!t.has(n)&&tf(n))for(let r of(t.add(n),n[tg]?Array.from(n[tg]):[]))e(r)}(e),Array.from(t)}function tb(e){return e[ty]||e}function tS(){let e=eq(B());return e.getActiveSpan?e.getActiveSpan():eV()[e$]}function tw(){tc||(eu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),tc=!0)}let tE="production",tk=/^o(\d+)\./,tx=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tT(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function tI(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}let tC="_frozenDsc";function tM(e,t){let n,r=t.getOptions(),{publicKey:i,host:s}=t.getDsn()||{};if(r.orgId)n=String(r.orgId);else{let e;s&&(e=s.match(tk),n=e?.[1])}let a={environment:r.environment||tE,release:r.release,public_key:i,trace_id:e,org_id:n};return t.emit("createDsc",a),a}function tR(e,t){let n=t.getPropagationContext();return n.dsc||tM(n.traceId,e)}function tO(e){let t=eG();if(!t)return{};let n=tb(e),r=th(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[eX]??i[eQ];function o(e){return("number"==typeof a||"string"==typeof a)&&(e.sample_rate=`${a}`),e}let l=n[tC];if(l)return o(l);let c=s?.get("sentry.dsc"),u=c&&ti(c);if(u)return o(u);let d=tM(e.spanContext().traceId,t),p=i[eY],h=r.description;return"url"!==p&&h&&(d.transaction=h),e4()&&(d.sampled=String(tf(n)),d.sample_rand=s?.get("sentry.sample_rand")??tt(n).scope?.getPropagationContext().sampleRand.toString()),o(d),t.emit("createDsc",d,n),d}class tD{constructor(e={}){this._traceId=e.traceId||ex(),this._spanId=e.spanId||eL()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
1addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}let tA=/\(error: (.*)\)/,tN=/captureMessage|captureException/;function tP(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];if(n.length>1024)continue;let a=tA.test(n)?n.replace(tA,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){i.push(t);break}}if(i.length>=50+r)break}}var a=i.slice(r);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(tL(o).function||"")&&o.pop(),o.reverse(),tN.test(tL(o).function||"")&&(o.pop(),tN.test(tL(o).function||"")&&o.pop()),o.slice(0,50).map(e=>({...e,filename:e.filename||tL(o).filename,function:e.function||"?"}))}}function tL(e){return e[e.length-1]||{}}let t$="<anonymous>";function tj(e){try{if(!e||"function"!=typeof e)return t$;return e.name||t$}catch{return t$}}function tF(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function tU(t,n=100,r=Infinity){try{return function t(n,r,i=Infinity,s=Infinity,a=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[o,l]=a;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let c=function(t,n){try{var r;let i;if("domain"===t&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(n===e.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";if(er(n))return"[VueViewModel]";if(Z(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${tj(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let s=(r=n,i=Object.getPrototypeOf(r),i?.constructor?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(n,r);if(!c.startsWith("[object "))return c;if(r.__sentry_skip_normalization__)return r;let u="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===u)return c.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let e=r.toJSON();return t("",e,u-1,s,a)}catch{}let d=Array.isArray(r)?[]:{},p=0,h=ew(r);for(let e in h){if(!Object.prototype.hasOwnProperty.call(h,e))continue;if(p>=s){d[e]="[MaxProperties ~]";break}let n=h[e];d[e]=t(e,n,u-1,s,a),p++}return l(r),d}("",t,n,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tB(e,t=[]){return[e,t]}function tz(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function tW(e){let t=z(U);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let tH={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"};function tq(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tV(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tT(r)},...i&&{trace:i}}}function tJ(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[e2],i=n[e3];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}class tK{constructor(e={}){this._traceId=e.traceId||ex(),this._spanId=e.spanId||eL(),this._startTime=e.startTimestamp||eD(),this._links=e.links,this._attributes={},this.setAttributes({[e0]:"manual",[eZ]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
1addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=td(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eY,"custom"),this}end(e){this._endTime||(this._endTime=td(e),function(e){if(!H)return;let{description:t="< unknown name >",op:n="< unknown op >"}=th(e),{spanId:r}=e.spanContext(),i=tb(e)===e,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;ef.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eZ],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tm(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[e0],profile_id:this._attributes[e6],exclusive_time:this._attributes[e8],measurements:tJ(this._events),is_segment:this._isStandaloneSpan&&tb(this)===this||void 0,segment_id:this._isStandaloneSpan?tb(this).spanContext().spanId:void 0,links:tu(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){H&&ef.log("[Tracing] Adding an event to span:",e);let r=tG(t)?t:n||eD(),i=tG(t)?{}:t||{},s={name:e,time:td(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=eG();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===tb(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=eG();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=tO(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:tT(r)}},a=t?.getOptions().beforeSendSpan,o=a?e=>{let t=th(e),n=a(t);return n||(tw(),t)}:th,l=[];for(let t of e){let e=o(t);e&&l.push([{type:"span"},e])}return tB(s,l)}([this],e)):(H&&ef.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&(tt(this).scope||eV()).captureEvent(t)}_convertSpanToTransaction(){if(!tY(th(this)))return;this._name||(H&&ef.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=tt(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=tv(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof tK&&t.isStandaloneSpan())}).map(e=>th(e)).filter(tY),i=this._attributes[eY];delete this._attributes[e5],r.forEach(e=>{delete e.data[e5]});let s={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:l}=th(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:l}}(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:tO(this)},request:n,...i&&{transaction_info:{source:i}}},a=tJ(this._events);return a&&Object.keys(a).length&&(H&&ef.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function tG(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tY(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tX="__SENTRY_SUPPRESS_TRACING__";function tQ(e){let t=eq(B());if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=t1(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>eK(e.scope,t):void 0!==i?e=>tZ(i,e):e=>e())(()=>{let t=eV(),s=t3(t,i);return e.onlyIfParent&&!s?new tD:t0({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})})}function tZ(e,t){let n=eq(B());return n.withActiveSpan?n.withActiveSpan(e,t):eK(n=>(ej(n,e||void 0),t(n)))}function t0({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i;let s;if(!e4()){let r=new tD;
1if(n||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...tO(r)};ev(r,tC,e)}return r}let a=eJ();if(e&&!n)s=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[tX]&&tf(e),a=s?new tK({...n,parentSpanId:r,traceId:i,sampled:s}):new tD({traceId:i});t_(e,a);let o=eG();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}(e,r,t),t_(e,s);else if(e){let n=tO(e),{traceId:i,spanId:a}=e.spanContext(),o=tf(e);ev(s=t2({traceId:i,parentSpanId:a,...t},r,o),tC,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:o}={...a.getPropagationContext(),...r.getPropagationContext()};s=t2({traceId:e,parentSpanId:i,...t},r,o),n&&ev(s,tC,n)}return!function(e){if(!H)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=th(e),{spanId:i}=e.spanContext(),s=tf(e),a=tb(e),o=a===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!o){let{op:e,description:t}=th(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}ef.log(`${l}
2  ${c.join("\n  ")}`)}(s),(i=s)&&(ev(i,te,a),ev(i,e9,r)),s}function t1(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=td(e.startTime),delete n.startTime,n}return t}function t2(e,t,n){let r=eG(),i=r?.getOptions()||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});let o=a.parentSampled??n,l=a.spanAttributes,c=t.getPropagationContext(),[u,d,p]=t.getScopeData().sdkProcessingMetadata[tX]?[!1]:function(e,t,n){let r,i;if(!e4(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let s=ta(r);if(void 0===s)return H&&ef.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return H&&ef.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,i];let a=n<s;return!a&&H&&ef.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[a,s,i]}(i,{name:s,parentSampled:o,attributes:l,parentSampleRate:ta(c.dsc?.sample_rate)},c.sampleRand),h=new tK({...e,attributes:{[eY]:"custom",[eX]:void 0!==d&&p?d:void 0,...l},sampled:u});return!u&&r&&(H&&ef.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function t3(e,t){if(t)return t;if(null===t)return;let n=e[e$];if(!n)return;let r=eG();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?tb(n):n}let t5={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function t6(e,t={}){let n,r,i=new Map,s=!1,a="externalFinish",o=!t.disableAutoFinish,l=[],{idleTimeout:c=t5.idleTimeout,finalTimeout:u=t5.finalTimeout,childSpanTimeout:d=t5.childSpanTimeout,beforeSpanEnd:p}=t,h=eG();if(!h||!e4()){let e=new tD,t={sample_rate:"0",sampled:"false",...tO(e)};return ev(e,tC,t),e}let f=eV(),m=tS(),g=(n=tQ(e),ej(eV(),n),H&&ef.log("[Tracing] Started span is an idle span"),n);function y(){r&&(clearTimeout(r),r=void 0)}function _(e){y(),r=setTimeout(()=>{!s&&0===i.size&&o&&(a="idleTimeout",g.end(e))},c)}function v(e){r=setTimeout(()=>{!s&&o&&(a="heartbeatFailed",g.end(e))},d)}function b(e){s=!0,i.clear(),l.forEach(e=>e()),ej(f,m);let t=th(g),{start_timestamp:n}=t;if(!n)return;t.data[e1]||g.setAttribute(e1,a),ef.log(`[Tracing] Idle span "${t.op}" finished`);let r=tv(g).filter(e=>e!==g),o=0;r.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),H&&ef.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=th(t),i=r<=e,s=n-r<=(u+c)/1e3;if(H){let e=JSON.stringify(t,void 0,2);i?s||ef.log("[Tracing] Discarding span since it finished after idle span final timeout",e):ef.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!i)&&(g[tg]&&g[tg].delete(t),o++)}),o>0&&g.setAttribute("sentry.idle_span_discarded_spans",o)}return g.end=new Proxy(g.end,{apply(e,t,n){if(p&&p(g),t instanceof tD)return;let[r,...i]=n,s=td(r||eD()),a=tv(g).filter(e=>e!==g);if(!a.length)return b(s),Reflect.apply(e,t,[s,...i]);let o=a.map(e=>th(e).timestamp).filter(e=>!!e),l=o.length?Math.max(...o):void 0,c=th(g).start_timestamp,d=Math.min(c?c+u/1e3:1/0,Math.max(c||-1/0,Math.min(s,l||1/0)));return b(d),Reflect.apply(e,t,[d,...i])}}),l.push(h.on("spanStart",e=>{var t;!(s||e===g||th(e).timestamp||e instanceof tK&&e.isStandaloneSpan())&&tv(g).includes(e)&&(t=e.spanContext().spanId,y(),i.set(t,!0),v(eD()+d/1e3))})),l.push(h.on("spanEnd",e=>{if(!s){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&_(eD()+c/1e3)}})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===g&&(o=!0,_(),i.size&&v())})),t.disableAutoFinish||_(),setTimeout(()=>{s||(g.setStatus({code:2,message:"deadline_exceeded"}),a="finalTimeout",g.end())},u),g}function t8(e){return"isRelative"in e}function t4(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function t7(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}}let t9={},ne={};function nt(e,t){t9[e]=t9[e]||[],t9[e].push(t)}function nn(e,t){if(!ne[e]){ne[e]=!0;try{t()}catch(t){H&&ef.error(`Error while instrumenting ${e}`,t)}}}function nr(e,t){let n=e&&t9[e];if(n)for(let r of n)try{r(t)}catch(t){H&&ef.error(`Error while triggering instrumentation handler.
3Type: ${e}
4Name: ${tj(r)}
5Error:`,t)}}let ni=null;function ns(e){let t="error";nt(t,e),nn(t,na)}function na(){ni=U.onerror,U.onerror=function(e,t,n,r,i){return nr("error",{column:r,error:i,line:n,msg:e,url:t}),!!ni&&ni.apply(this,arguments)},U.onerror.__SENTRY_INSTRUMENTED__=!0}let no=null;function nl(e){let t="unhandledrejection";nt(t,e),nn(t,nc)}function nc(){no=U.onunhandledrejection,U.onunhandledrejection=function(e){return nr("unhandledrejection",e),!no||no.apply(this,arguments)},U.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let nu=!1;
5function nd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function np(e){let t="history";nt(t,e),nn(t,nh)}function nh(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let i=r,s=function(e){try{return new URL(e,U.location.origin).toString()}catch{return e}}(String(n));if(r=s,i===s)return e.apply(this,t);nr("history",{from:i,to:s})}return e.apply(this,t)}}U.addEventListener("popstate",()=>{let e=U.location.href,t=r;r=e,t===e||nr("history",{from:t,to:e})}),"history"in U&&U.history&&(e_(U.history,"pushState",e),e_(U.history,"replaceState",e))}let nf="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nm=(e,t,n,r)=>{let i,s;return a=>{if(t.value>=0&&(a||r)&&((s=t.value-(i??0))||void 0===i)){var o;i=t.value,t.delta=s,o=t.value,t.rating=o>n[1]?"poor":o>n[0]?"needs-improvement":"good",e(t)}}},ng=(e=!0)=>{let t=U.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ny=()=>{let e=ng();return e?.activationStart??0},n_=(e,t=-1)=>{let n=ng(),r="navigate";return n&&(U.document?.prerendering||ny()>0?r="prerender":U.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},nv=new WeakMap;function nb(e,t){return nv.get(e)||nv.set(e,new t),nv.get(e)}class nS{constructor(){nS.prototype.__init.call(this),nS.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let nw=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},nE=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nk=-1,nx=e=>{"hidden"===U.document.visibilityState&&nk>-1&&(nk="visibilitychange"===e.type?e.timeStamp:0,nT())},nT=()=>{removeEventListener("visibilitychange",nx,!0),removeEventListener("prerenderingchange",nx,!0)},nI=()=>{if(U.document&&nk<0){let e=ny();nk=(U.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(U.document?.visibilityState!=="hidden"||U.document?.prerendering?1/0:0),addEventListener("visibilitychange",nx,!0),addEventListener("prerenderingchange",nx,!0)}return{get firstHiddenTime(){return nk}}},nC=e=>{U.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nM=[1800,3e3],nR=[.1,.25],nO=e=>{let t=t=>{("pagehide"===t.type||U.document?.visibilityState==="hidden")&&e(t)};U.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},nD=[100,300],nA=0,nN=1/0,nP=0,nL=e=>{e.forEach(e=>{e.interactionId&&(nN=Math.min(nN,e.interactionId),nA=(nP=Math.max(nP,e.interactionId))?(nP-nN)/7+1:0)})},n$=()=>i?nA:performance.interactionCount||0,nj=0;class nF{constructor(){nF.prototype.__init.call(this),nF.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){nj=n$(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((n$()-nj)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>
5t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let nU=e=>{let t=U.requestIdleCallback||U.setTimeout;U.document?.visibilityState==="hidden"?e():(t(e=nE(e)),nO(e))},nB=[200,500];class nz{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nW=[2500,4e3],nH=[800,1800],nq=e=>{U.document?.prerendering?nC(()=>nq(e)):U.document?.readyState!=="complete"?addEventListener("load",()=>nq(e),!0):setTimeout(e)},nV={},nJ={};function nK(e,t=!1){return n6("cls",e,n0,s,t)}function nG(e,t=!1){return n6("lcp",e,n2,o,t)}function nY(e){return n6("fid",e,n1,a)}function nX(e){return n6("inp",e,n5,c)}function nQ(e,t){var n;let r;return n8(e,t),nJ[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),nw(n,e=>{nZ(n,{entries:e})},r),nJ[e]=!0),n4(e,t)}function nZ(e,t){let n=nV[e];if(n?.length)for(let r of n)try{r(t)}catch(t){nf&&ef.error(`Error while triggering instrumentation handler.
6Type: ${e}
7Name: ${tj(r)}
8Error:`,t)}}function n0(){return((e,t={})=>{((e,t={})=>{nC(()=>{let n,r=nI(),i=n_("FCP"),s=nw("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-ny(),0),i.entries.push(t),n(!0)))});s&&(n=nm(e,i,nM,t.reportAllChanges))})})(nE(()=>{let n,r=n_("CLS",0),i=nb(t,nS),s=e=>{for(let t of e)i._processEntry(t);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,n())},a=nw("layout-shift",s);a&&(n=nm(e,r,nR,t.reportAllChanges),U.document?.addEventListener("visibilitychange",()=>{U.document?.visibilityState==="hidden"&&(s(a.takeRecords()),n(!0))}),U?.setTimeout?.(n))}))})(e=>{nZ("cls",{metric:e}),s=e},{reportAllChanges:!0})}function n1(){return((e,t={})=>{nC(()=>{let n,r=nI(),i=n_("FID"),s=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=e=>{e.forEach(s)},o=nw("first-input",a);n=nm(e,i,nD,t.reportAllChanges),o&&nO(nE(()=>{a(o.takeRecords()),o.disconnect()}))})})(e=>{nZ("fid",{metric:e}),a=e})}function n2(){return((e,t={})=>{nC(()=>{let n,r=nI(),i=n_("LCP"),s=nb(t,nz),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(a),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-ny(),0),i.entries=[a],n())},o=nw("largest-contentful-paint",a);if(o){n=nm(e,i,nW,t.reportAllChanges);let r=nE(()=>{a(o.takeRecords()),o.disconnect(),n(!0)});for(let e of["keydown","click","visibilitychange"])U.document&&addEventListener(e,()=>nU(r),{capture:!0,once:!0})}})})(e=>{nZ("lcp",{metric:e}),o=e},{reportAllChanges:!0})}function n3(){return((e,t={})=>{let n=n_("TTFB"),r=nm(e,n,nH,t.reportAllChanges);nq(()=>{let e=ng();e&&(n.value=Math.max(e.responseStart-ny(),0),n.entries=[e],r(!0))})})(e=>{nZ("ttfb",{metric:e}),l=e})}function n5(){return((e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&nC(()=>{let n;"interactionCount"in performance||i||(i=nw("event",nL,{type:"event",buffered:!0,durationThreshold:0}));let r=n_("INP"),s=nb(t,nF),a=e=>{nU(()=>{for(let t of e)s._processEntry(t);let t=s._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,n())})},o=nw("event",a,{durationThreshold:t.durationThreshold??40});n=nm(e,r,nB,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),nO(()=>{a(o.takeRecords()),n(!0)}))})})(e=>{nZ("inp",{metric:e}),c=e})}function n6(e,t,n,r,i=!1){let s;return n8(e,t),nJ[e]||(s=n(),nJ[e]=!0),r&&t({metric:r}),n4(e,t,i?s:void 0)}function n8(e,t){nV[e]=nV[e]||[],nV[e].push(t)}function n4(e,t,n){return()=>{n&&n();let r=nV[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function n7(e){return"number"==typeof e&&isFinite(e)}function n9(e,t,n,{...r}){let i=th(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tZ(e,()=>{let e=tQ({startTime:t,...r});return e&&e.end(n),e})}function re(e){let t,n=eG();if(!n)return;let{name:r,transaction:i,attributes:s,startTime:a}=e,{release:o,environment:l,sendDefaultPii:c}=n.getOptions(),u=n.getIntegrationByName("Replay"),d=u?.getReplayId(),p=eV(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return tQ({name:r,attributes:{release:o,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":U.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s},startTime:a,experimental:{standalone:!0}})}function rt(){return U.addEventListener&&U.performance}function rn(e){return e/1e3}function rr(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}
8return r===e&&(t=r),{name:t,version:n}}function ri(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function rs(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}nO(()=>{i("pagehide")});let s=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),s?.(),a?.())}),a=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,a?.()})}let ra=[],ro=new Map,rl={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"},rc=({metric:e})=>{if(void 0==e.value)return;let t=rn(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&rl[t.name]);if(!n)return;let{interactionId:r}=n,i=rl[n.name],s=rn(eA()+n.startTime),a=tS(),o=a?tb(a):void 0,l=(null!=r?ro.get(r):void 0)||o,c=l?th(l).description:eV().getScopeData().transactionName,u=re({name:es(n.target),transaction:c,attributes:{[e0]:"auto.http.browser.inp",[eZ]:`ui.interaction.${i}`,[e8]:n.duration},startTime:s});u&&(u.addEvent("inp",{[e2]:"millisecond",[e3]:e.value}),u.end(s+t))},ru=0,rd={};function rp(e,t,n,r,i=n){var s;let a=t["secureConnection"===(s=n)?"connectEnd":"fetch"===s?"domainLookupStart":`${s}End`],o=t[`${n}Start`];o&&a&&n9(e,r+rn(o),r+rn(a),{op:`browser.${i}`,name:t.name,attributes:{[e0]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function rh(e,t,n,r){let i=t[n];null!=i&&i<0x7fffffff&&(e[r]=i)}let rf=({entries:e})=>{let t=tS(),n=t?tb(t):void 0,r=n?th(n).description:eV().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,n=e.renderTime,i=e.loadTime,[s,a]=i?[rn(i),"load-time"]:n?[rn(n),"render-time"]:[eD(),"entry-emission"],o="image-paint"===t?rn(Math.max(0,(n??0)-(i??0))):0,l={[e0]:"auto.ui.browser.elementtiming",[eZ]:"ui.elementtiming",[eY]:"component","sentry.span_start_time_source":a,"sentry.transaction_name":r,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":n,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let n=eq(B());if(n.startSpan)return n.startSpan(e,t);let r=t1(e),{forceTransaction:i,parentSpan:s,scope:a}=e;eK(a?.clone(),()=>{var n;return(void 0!==(n=s)?e=>tZ(n,e):e=>e())(()=>{let n=eV(),a=t3(n,s),o=e.onlyIfParent&&!a?new tD:t0({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return ej(n,o),function(e,t,n=()=>{}){var r,i,s;let a;try{a=e()}catch(e){throw t(e),n(),e}return r=a,i=t,s=n,et(r)?r.then(e=>(s(),e),e=>{throw i(e),s(),e}):(s(),r)}(()=>t(o),()=>{let{status:e}=th(o);o.isRecording()&&(!e||"ok"===e)&&o.setStatus({code:2,message:"internal_error"})},()=>{o.end()})})})}({name:`element[${e.identifier}]`,attributes:l,startTime:s,onlyIfParent:!0},e=>{e.end(s+o)})})},rm="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rg(e){return new r_(t=>{t(e)})}function ry(e){return new r_((t,n)=>{n(e)})}class r_{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new r_((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new r_((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(et(t))return void t.then(n,r);this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function rv(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:h,span:f}=t;rb(e,"extra",n),rb(e,"tags",r),rb(e,"user",i),rb(e,"contexts",s),e.sdkProcessingMetadata=eP(e.sdkProcessingMetadata,o,2),a&&(e.level=a),h&&(e.transactionName=h),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function rb(e,t,n){e[t]=eP(e[t],n,1)}function rS(e){let t=U._sentryDebugIds;if(!t)return{};let n=Object.keys(t);
8return f&&n.length===h?f:(h=n.length,f=n.reduce((n,r)=>{p||(p={});let i=p[r];if(i)n[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let s=i[e],a=s?.filename,o=t[r];if(a&&o){n[a]=o,p[r]=[a,o];break}}}return n},{}))}function rw(e,t,n,r,i,s){var a,o,l;let c,{normalizeDepth:u=3,normalizeMaxBreadth:d=1e3}=e,p={...t,event_id:t.event_id||n.event_id||ex(),timestamp:t.timestamp||eO()},h=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||tE,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let a=e.request;a?.url&&(a.url=em(a.url,s))})(p,e),a=p,(o=h).length>0&&(a.sdk=a.sdk||{},a.sdk.integrations=[...a.sdk.integrations||[],...o]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&(l=p,c=rS(e.stackParser),l.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=c[e.filename])})}));let f=function(e,t){if(!t)return e;let n=e?e.clone():new eF;return n.update(t),n}(r,n.captureContext);n.mechanism&&eM(p,n.mechanism);let m=i?i.getEventProcessors():[],g=W("globalScope",()=>new eF).getScopeData();s&&rv(g,s.getScopeData()),f&&rv(g,f.getScopeData());let y=[...n.attachments||[],...g.attachments];return y.length&&(n.attachments=y),!function(e,t){var n,r,i,s,a,o,l,c;let u,d,{fingerprint:p,span:h,breadcrumbs:f,sdkProcessingMetadata:m}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),h&&((n=e).contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:th(e).parent_span_id,s=tt(e).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||eL():t,trace_id:n}}(r=h),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:tO(r),...n.sdkProcessingMetadata},(u=th(tb(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=u)),i=e,s=p,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint.length||delete i.fingerprint,a=e,o=f,d=[...a.breadcrumbs||[],...o],a.breadcrumbs=d.length?d:void 0,l=e,c=m,l.sdkProcessingMetadata={...l.sdkProcessingMetadata,...c}}(p,g),(function e(t,n,r,i=0){return new r_((s,a)=>{let o=t[i];if(null===n||"function"!=typeof o)s(n);else{let l=o({...n},r);H&&o.id&&null===l&&ef.log(`Event processor "${o.id}" dropped event`),et(l)?l.then(n=>e(t,n,r,i+1).then(s)).then(null,a):e(t,l,r,i+1).then(s).then(null,a)}})})([...m,...g.eventProcessors],p,n).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof u&&u>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tU(e.data,t,n)}}))},...e.user&&{user:tU(e.user,t,n)},...e.contexts&&{contexts:tU(e.contexts,t,n)},...e.extra&&{extra:tU(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=tU(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:tU(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=tU(e.contexts.flags,3,n)),r}(e,u,d):e)}let rE=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function rk(e,t){return eV().captureException(e,function(e){if(e){var t;return(t=e)instanceof eF||"function"==typeof t||Object.keys(e).some(e=>rE.includes(e))?{captureContext:e}:e}}(t))}function rx(e,t){return eV().captureEvent(e,t)}function rT(e,t){eJ().setContext(e,t)}function rI(e,t){eJ().setTag(e,t)}function rC(e){eJ().setUser(e)}function rM(e){var t;let n,r,i=eJ(),s=eV(),{userAgent:a}=U.navigator||{},o=(t={user:s.getUser()||i.getUser(),...a&&{userAgent:a},...e},n=eD(),r={sid:ex(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}},t&&eN(r,t),r),l=i.getSession();return l?.status==="ok"&&eN(l,{status:"exited"}),rR(),i.setSession(o),o}function rR(){let e,t=eJ(),n=eV().getSession()||t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),eN(n,e)),rO(),t.setSession()}function rO(){let e=eJ(),t=eG(),n=e.getSession();n&&t&&t.captureSession(n)}function rD(e=!1){e?rR():rO()}let rA=0;function rN(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if(eS(e))return e}catch{return e}let n=function(...n){try{let r=n.map(e=>rN(e,t));return e.apply(this,r)}catch(e){throw rA++,setTimeout(()=>{rA--}),eK(r=>{r.addEventProcessor(e=>(t.mechanism&&(eC(e,void 0,void 0),eM(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),rk(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}eb(n,e),ev(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function rP(){let e=ea(),{referrer:t}=U.document||{},{userAgent:n}=U.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}let rL="sentry_previous_trace";function r$(e){return 1===e.traceFlags}function rj(e,t){let n="fetch";
8nt(n,e),nn(n,()=>rF(void 0,t))}function rF(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in U))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(nd(U.fetch))return!0;let e=!1,t=U.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=nd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){H&&ef.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&e_(U,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:rW(t),method:rz(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:rW(t),method:rz(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:s},startTimestamp:1e3*eD(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(ei(t))return new Headers(t.headers)}catch{}}(n)};return e||nr("fetch",{...a}),t.apply(U,n).then(async t=>(e?e(t):nr("fetch",{...a,endTimestamp:1e3*eD(),response:t}),t),e=>{if(nr("fetch",{...a,endTimestamp:1e3*eD(),error:e}),V(e)&&void 0===e.stack&&(e.stack=r.stack,ev(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function rU(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function rB(e){let t;try{t=e.clone()}catch{return}rU(t,()=>{nr("fetch-body-resolved",{endTimestamp:1e3*eD(),response:e})})}function rz(e,t){return!!e&&"object"==typeof e&&!!e[t]}function rW(e){return"string"==typeof e?e:e?rz(e,"url")?e.url:e.toString?e.toString():"":""}function rH(e={}){let t,n=e.client||eG();if(t=eG(),!(t?.getOptions().enabled!==!1&&t?.getTransport())||!n)return{};let r=eq(B());if(r.getTraceData)return r.getTraceData(e);let i=e.scope||eV(),s=e.span||tS(),a=s?function(e){let{traceId:t,spanId:n}=e.spanContext();return tl(t,n,tf(e))}(s):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return tl(t,r,n)}(i),o=function(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${tn}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>8192?(H&&ef.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},""):void 0}}(s?tO(s):tR(n,i));return to.test(a)?{"sentry-trace":a,baggage:o}:(ef.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function rq(e){return e.split(",").some(e=>e.trim().startsWith(tn))}let rV="__sentry_xhr_v3__";function rJ(e){nt("xhr",e),nn("xhr",rK)}function rK(){if(!U.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*eD(),s=Y(n[0])?n[0].toUpperCase():void 0,a=function(e){if(Y(e))return e;try{return e.toString()}catch{}}(n[1]);if(!s||!a)return e.apply(t,n);t[rV]={method:s,url:a,request_headers:{}},"POST"===s&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[rV];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}nr("xhr",{endTimestamp:1e3*eD(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(o(),e.apply(t,n))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,s=t[rV];return s&&Y(r)&&Y(i)&&(s.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[rV];return r&&(void 0!==n[0]&&(r.body=n[0]),nr("xhr",{startTimestamp:1e3*eD(),xhr:t})),e.apply(t,n)}})}function rG(e=0){return((eA()||performance.timeOrigin)+e)/1e3}let rY=new WeakMap,rX=new Map,rQ={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rZ(e){let{url:t}=th(e).data;if(!t||"string"!=typeof t)return;let n=nQ("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let t=[];if(void 0!=e.nextHopProtocol){let{name:n,version:r}=rr(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return eA()?[...t,["http.request.redirect_start",rG(e.redirectStart)],["http.request.fetch_start",rG(e.fetchStart)],["http.request.domain_lookup_start",rG(e.domainLookupStart)],["http.request.domain_lookup_end",rG(e.domainLookupEnd)],["http.request.connect_start",rG(e.connectStart)],["http.request.secure_connection_start",rG(e.secureConnectionStart)],["http.request.connection_end",rG(e.connectEnd)],["http.request.request_start",rG(e.requestStart)],["http.request.response_start",rG(e.responseStart)],["http.request.response_end",rG(e.responseEnd)]]:t})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function r0(e){try{return new URL(e,U.location.origin).href}catch{return}}let r1={...t5,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
8dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...rQ};function r2(e){let t=U.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}let r3="_sentry_idleSpan",r5=[];function r6(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function r8(e,t,n){if(n[t.name]){H&&ef.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===r5.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),r5.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}H&&ef.log(`Integration installed: ${t.name}`)}let r4=String(0),r7=U.navigator,r9="",ie="",it="",ir=r7?.userAgent||"",ii="",is=r7?.language||r7?.languages?.[0]||"",ia=r7?.userAgentData;function io(e){return"pageload"===th(e).op}"object"==typeof ia&&null!==ia&&"getHighEntropyValues"in ia&&ia.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(r9=e.platform||"",it=e.architecture||"",ii=e.model||"",ie=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];ir=`${t.brand} ${t.version}`}}).catch(e=>void 0);let il=!1;function ic(e){if(il)return rm&&ef.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return rm&&ef.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=eG(),n=t?.getOptions();if(!n)return rm&&ef.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return("number"!=typeof r&&"boolean"!=typeof r||"number"==typeof r&&isNaN(r)?(rm&&ef.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):!0!==r&&!1!==r&&(r<0||r>1)&&(rm&&ef.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${r}.`),1))?(rm&&ef.warn("[Profiling] Discarding profile because of invalid sample rate."),!1):r?!!(!0===r||Math.random()<r)||(rm&&ef.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(rm&&ef.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1)}let iu=new Map;function id(e){let t;io(e)&&(t=1e3*eD());let n=function(){let e=U.Profiler;if("function"!=typeof e){rm&&ef.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){rm&&(ef.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),ef.log("[Profiling] Disabling profiling for current user session.")),il=!0}}();if(!n)return;rm&&ef.log(`[Profiling] started profiling span: ${th(e).description}`);let r=ex();async function i(){if(e&&n)return n.stop().then(t=>{if(s&&(U.clearTimeout(s),s=void 0),rm&&ef.log(`[Profiling] stopped profiling of span: ${th(e).description}`),!t){rm&&ef.log(`[Profiling] profiler returned null profile for: ${th(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}if(iu.set(r,t),iu.size>30){let e=iu.keys().next().value;iu.delete(e)}}).catch(e=>{rm&&ef.log("[Profiling] error while stopping profiler:",e)})}eV().setContext("profile",{profile_id:r,start_timestamp:t});let s=U.setTimeout(()=>{rm&&ef.log("[Profiling] max profile duration elapsed, stopping profiling for:",th(e).description),i()},3e4),a=e.end.bind(e);e.end=function(){return e?(i().then(()=>{a()},()=>{a()}),e):a()}}function ip(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function ih(e,t){let n=eG(),r=eJ();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=n.getOptions();if(s<=0)return;let a={timestamp:eO(),...e},o=i?eu(()=>i(a,t)):a;null!==o&&(n.emit&&n.emit("beforeAddBreadcrumb",o,t),r.addBreadcrumb(o,s))}function im(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function ig(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function iy(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=r+o):i[e]=r+o;else i.all=r+o}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}var i_=e.i(604710);function iv(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==i_.default?i_.default:0))||(e=U.process,e?.type==="renderer"))}let ib={};function iS(e){let t=ib[e];if(t)return t;let n=U[e];if(nd(n))return ib[e]=n.bind(U);let r=U.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){nf&&ef.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?ib[e]=n.bind(U):n}function iw(...e){return iS("setTimeout")(...e)}
8function iE(e){return new URLSearchParams(e).toString()}function ik(e,t=ef){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iE(e)];if(!e)return[void 0]}catch(n){return nf&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return nf&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ix(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function iT(e){nt("dom",e),nn("dom",iI)}function iI(){if(!U.document)return;let e=nr.bind(null,"dom"),t=iC(e,!0);U.document.addEventListener("click",t,!1),U.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=U[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(e_(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=iC(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch{}return t.call(this,n,r,i)}}),e_(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function iC(e,t=!1){return n=>{var r;if(!n||n._sentryCaptured)return;let i=function(e){try{return e.target}catch{return null}}(n);if(r=n.type,"keypress"===r&&(!i?.tagName||"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&!i.isContentEditable&&1))return;ev(n,"_sentryCaptured",!0),i&&!i._sentryId&&ev(i,"_sentryId",ex());let s="keypress"===n.type?"input":n.type;!function(e){if(e.type!==g)return!1;try{if(!e.target||e.target._sentryId!==y)return!1}catch{}return!0}(n)&&(e({event:n,name:s,global:t}),g=n.type,y=i?i._sentryId:void 0),clearTimeout(m),m=U.setTimeout(()=>{y=void 0,g=void 0},1e3)}}let iM="sentryReplaySession",iR="Unable to send Replay";var iO=Object.defineProperty,iD=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?iO(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},iA=((C=iA||{})[C.Document=0]="Document",C[C.DocumentType=1]="DocumentType",C[C.Element=2]="Element",C[C.Text=3]="Text",C[C.CDATA=4]="CDATA",C[C.Comment=5]="Comment",C);function iN(e){let t=e?.host;return t?.shadowRoot===e}function iP(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function iL(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,i$).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function i$(e){let t;if("styleSheet"in e)try{t=iL(e.styleSheet)||function(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(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],s=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class ij{constructor(){iD(this,"idNodeMap",new Map),iD(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function iF({maskInputOptions:e,tagName:t,type:n}
8){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function iU({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function iB(e){return e.toLowerCase()}function iz(e){return e.toUpperCase()}let iW="__rrweb_original__";function iH(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?iB(t):null}function iq(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function iV(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let iJ={};function iK(e){let t=iJ[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return iJ[e]=r.bind(window)}function iG(...e){return iK("setTimeout")(...e)}function iY(...e){return iK("clearTimeout")(...e)}function iX(e){try{return e.contentDocument}catch(e){}}let iQ=1,iZ=RegExp("[^a-z0-9-_:]");function i0(){return iQ++}let i1=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,i2=/^(?:[a-z+]+:)?\/\//i,i3=/^www\..*/i,i5=/^(data:)([^,]*),(.*)/i;function i6(e,t){return(e||"").replace(i1,(e,n,r,i,s,a)=>{let o=r||s||a,l=n||i||"";if(!o)return e;if(i2.test(o)||i3.test(o)||i5.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let c=t.split("/"),u=o.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let i8=/^[^ \t\n\r\u000c]+/,i4=/^[, \t\n\r\u000c]+/,i7=new WeakMap;function i9(e,t){return t&&""!==t.trim()?se(e,t):t}function se(e,t){let n=i7.get(e);if(n||(n=e.createElement("a"),i7.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function st(e,t,n,r,i,s){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return i9(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return i9(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(i4),!(n>=t.length);){let s=r(i8);if(","===s.slice(-1))s=i9(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=i9(e,s);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(a)")"===e&&(a=!1);else if(","===e){n+=1,i.push((s+r).trim());break}else"("===e&&(a=!0);r+=e,n+=1}}}return i.join(", ")}(e,r);if("style"===n)return i6(r,se(e));else if("object"===t&&"data"===n)return i9(e,r);return"function"==typeof s?s(n,r,i):r}function sn(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function sr(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:sr(e.parentNode,t,n,r+1)}function si(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function ss(e,t,n,r,i,s){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(s){if((l=sr(a,si(r,i)))<0)return!0;o=sr(a,si(t,n),l>=0?l:1/0)}else{if((o=sr(a,si(t,n)))<0)return!1;l=sr(a,si(r,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!s}catch(e){}return!!s}function sa(e){return null==e?"":e.toLowerCase()}function so(e,t){let n,{doc:r,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={}
8,inlineImages:E=!1,recordCanvas:k=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I=5e3,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:D=!1}=t,{preserveWhiteSpace:A=!0}=t,N=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E=!1}=t,k=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:iA.Document,childNodes:[],compatMode:e.compatMode};return{type:iA.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:iA.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,maskTextClass:y,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:w}=t,E=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,s,a),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=iB(e.tagName);return iZ.test(t)?"div":t}(e),x={},T=e.attributes.length;for(let t=0;t<T;t++){let n=e.attributes[t];n.name&&!sn(k,n.name,n.value)&&(x[n.name]=st(r,k,iB(n.name),n.value,e,c))}if("link"===k&&o){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=iL(t)),n&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=i6(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=iL(e.sheet);t&&(x._cssText=i6(t,se(r)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=iH(e),n=iq(e,iz(k),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=ss(e,y,S,b,w,iF({type:t,tagName:iz(k),maskInputOptions:l}));x.value=iU({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(x.checked=r)}if("option"===k&&(e.selected&&!l.select?x.selected=!0:delete x.selected),"canvas"===k&&h){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((iW in i?i[iW]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(x.rr_dataURL=t)}}if("img"===k&&p){_||(v=(_=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{_.width=e.naturalWidth,_.height=e.naturalHeight,v.drawImage(e,0,0),x.rr_dataURL=_.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?x.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop)),E){let{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||f(x.src)||(E||iX(e)||(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(n=!0)}catch(e){}return{type:iA.Element,tagName:k,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:E,rootId:g,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:h,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E,rootId:k,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=iL(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=i6(p,se(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=ss(e,r,s,i,a,n);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=iU({isMasked:ss(e,r,s,i,a,iF({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:iA.Text,textContent:p||"",isStyle:h,rootId:u}}(e,{doc:n,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:iA.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:iA.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:y,maskInputFn:b,dataURLOptions:w,inlineImages:E,recordCanvas:k,keepIframeSrcFn:O,newlyAddedElement:D});if(!N)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===iA.Comment)return!0;
8if(e.type===iA.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===iV(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(sa(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===sa(e.attributes.name)||"icon"===sa(e.attributes.rel)||"apple-touch-icon"===sa(e.attributes.rel)||"shortcut icon"===sa(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&sa(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(sa(e.attributes.property).match(/^(og|twitter|fb):/)||sa(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===sa(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===sa(e.attributes.name)||"googlebot"===sa(e.attributes.name)||"bingbot"===sa(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===sa(e.attributes.name)||"generator"===sa(e.attributes.name)||"framework"===sa(e.attributes.name)||"publisher"===sa(e.attributes.name)||"progid"===sa(e.attributes.name)||sa(e.attributes.property).match(/^article:/)||sa(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===sa(e.attributes.name)||"yandex-verification"===sa(e.attributes.name)||"csrf-token"===sa(e.attributes.name)||"p:domain_verify"===sa(e.attributes.name)||"verify-v1"===sa(e.attributes.name)||"verification"===sa(e.attributes.name)||"shopify-checkout-api-token"===sa(e.attributes.name)))return!0}}return!1}(N,S)&&(A||N.type!==iA.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?i0():-2;let P=Object.assign(N,{id:n});if(i.add(e,P),-2===n)return null;x&&x(e);let L=!h;if(P.type===iA.Element){L=L&&!P.needBlock;let t=e.shadowRoot;t&&iP(t)&&(P.isShadowHost=!0)}if((P.type===iA.Document||P.type===iA.Element)&&L){S.headWhitespace&&P.type===iA.Element&&"head"===P.tagName&&(A=!1);let t={doc:r,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onBlockedImageLoad:C,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:O};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=so(n,t);e&&P.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=so(n,t);r&&(iP(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}if(e.parentNode&&iN(e.parentNode)&&iP(e.parentNode)&&(P.isShadow=!0),P.type!==iA.Element||"iframe"!==P.tagName||P.needBlock||function(e,t,n){let r,i=e.contentWindow;if(!i)return;let s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=iG(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{iY(r),s=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return iG(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=iX(e);if(t&&T){let n=so(t,{doc:t,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:O});n&&T(e,n)}},I),P.type===iA.Element&&"img"===P.tagName&&!e.complete&&P.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,P,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return P.type===iA.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===iV(P.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let s=iG(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{iY(s),i=!0,t()})}(e,()=>{if(M){let t=so(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:y,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:k,preserveWhiteSpace:A,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:O});t&&M(e,t)}},R),P.type===iA.Element&&delete P.needBlock,P}function sl(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let sc="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",su={map:{},getId:()=>(console.error(sc),-1),getNode:()=>(console.error(sc),null),removeNodeFromMap(){console.error(sc)},has:()=>(console.error(sc),!1),reset(){console.error(sc)}};function sd(e,t,n={}){let r=null,i=0;return function(...s){let a=Date.now();i||!1!==n.leading||(i=a);let o=t-(a-i),l=this;o<=0||o>t?(r&&(function(...e){sC("clearTimeout")(...e)}
8(r),r=null),i=a,e.apply(l,s)):r||!1===n.trailing||(r=sM(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},o))}}function sp(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(su=new Proxy(su,{get:(e,t,n)=>("map"===t&&console.error(sc),Reflect.get(e,t,n))}));let sh=Date.now;function sf(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function sm(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sg(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sy(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function s_(e,t,n,r,i){if(!e)return!1;let s=sy(e);if(!s)return!1;let a=si(t,n);if(!i){let e=r&&s.matches(r);return a(s)&&!e}let o=sr(s,a),l=-1;return!(o<0)&&(r&&(l=sr(s,si(null,r))),o>-1&&l<0||o<l)}function sv(e,t){return -2===t.getId(e)}function sb(e){return!!e.changedTouches}function sS(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function sw(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function sE(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(sh=()=>new Date().getTime());class sk{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function sx(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function sT(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=sx(n);)n=t;return n}(e);return t.contains(n)}(e))}let sI={};function sC(e){let t=sI[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return sI[e]=r.bind(window)}function sM(...e){return sC("setTimeout")(...e)}var sR=((M=sR||{})[M.DomContentLoaded=0]="DomContentLoaded",M[M.Load=1]="Load",M[M.FullSnapshot=2]="FullSnapshot",M[M.IncrementalSnapshot=3]="IncrementalSnapshot",M[M.Meta=4]="Meta",M[M.Custom=5]="Custom",M[M.Plugin=6]="Plugin",M),sO=((R=sO||{})[R.Mutation=0]="Mutation",R[R.MouseMove=1]="MouseMove",R[R.MouseInteraction=2]="MouseInteraction",R[R.Scroll=3]="Scroll",R[R.ViewportResize=4]="ViewportResize",R[R.Input=5]="Input",R[R.TouchMove=6]="TouchMove",R[R.MediaInteraction=7]="MediaInteraction",R[R.StyleSheetRule=8]="StyleSheetRule",R[R.CanvasMutation=9]="CanvasMutation",R[R.Font=10]="Font",R[R.Log=11]="Log",R[R.Drag=12]="Drag",R[R.StyleDeclaration=13]="StyleDeclaration",R[R.Selection=14]="Selection",R[R.AdoptedStyleSheet=15]="AdoptedStyleSheet",R[R.CustomElement=16]="CustomElement",R),sD=((O=sD||{})[O.MouseUp=0]="MouseUp",O[O.MouseDown=1]="MouseDown",O[O.Click=2]="Click",O[O.ContextMenu=3]="ContextMenu",O[O.DblClick=4]="DblClick",O[O.Focus=5]="Focus",O[O.Blur=6]="Blur",O[O.TouchStart=7]="TouchStart",O[O.TouchMove_Departed=8]="TouchMove_Departed",O[O.TouchEnd=9]="TouchEnd",O[O.TouchCancel=10]="TouchCancel",O),sA=((D=sA||{})[D.Mouse=0]="Mouse",D[D.Pen=1]="Pen",D[D.Touch=2]="Touch",D),sN=((A=sN||{})[A.Play=0]="Play",A[A.Pause=1]="Pause",A[A.Seeked=2]="Seeked",A[A.VolumeChange=3]="VolumeChange",A[A.RateChange=4]="RateChange",A);function sP(e){try{return e.contentDocument}catch(e){}}class sL{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
8(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let s$=(e,t)=>`${e}@${t}`;class sj{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=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new sL,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!sT(i))return;let s=iN(i.parentNode)?this.mirror.getId(sx(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===s||-1===a)return n.addNode(i);let o=so(i,{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:e=>{sS(e,this.mirror)&&!s_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),sw(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),sE(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{s_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})}});o&&(e.push({parentId:s,nextId:a,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!sU(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)sB(this.droppedSet,e)||sU(this.removes,e,this.mirror)?sB(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(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=e=>{if(!sv(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;s_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ss(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,sy(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=iH(t),i=t.tagName;r=iq(t,i,n);let s=iF({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=iU({isMasked:ss(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(s_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
8if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(sP(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!sn(t.tagName,n)&&(i.attributes[n]=st(this.doc,iB(t.tagName),iB(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?i.styleDiff[r]=e:i.styleDiff[r]=[e,s]:i._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(s_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=iN(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);s_(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||sv(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(sF(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(iN(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[s$(n,r)]?sF(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(iN(e.target)&&iP(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(sv(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[s$(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!s_(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),sE(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["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"].forEach(t=>{this[t]=e[t]})}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 sF(e,t){e.delete(t),t.childNodes?.forEach(t=>sF(e,t))}function sU(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function sB(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let sz=e=>b?(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}:e,sW=[];function sH(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 sq(e,t){let n=new sj;sW.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);let s=new r(sz(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function sV({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){return sl("scroll",sz(sd(sz(a=>{let o=sH(a);if(!o||s_(o,r,i,s,!0))return;let l=n.getId(o);if(o===t&&t.defaultView){let n=sf(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}let sJ=["INPUT","TEXTAREA","SELECT"],sK=new WeakMap;function sG(e){var t=[];if(sZ("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||sZ("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||sZ("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||sZ("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function sY(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function sX({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){let n=s.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),sz(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function sQ(e,t={}){let n,r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=sq(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=sd(sz(t=>{let n=Date.now()-i;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],i=null}),a),c=sz(sd(sz(e=>{let t=sH(e),{clientX:n,clientY:s}=sb(e)?e.changedTouches[0]:e;i||(i=sh()),o.push({x:n,y:s,id:r.getId(t),timeOffset:sh()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?sO.Drag:e instanceof MouseEvent?sO.MouseMove:sO.TouchMove)}),s,{trailing:!1})),u=[sl("mousemove",c,n),sl("touchmove",c,n),sl("drag",c,n)];return sz(()=>
8{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],c=null;return Object.keys(sD).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(a=>{let o=iB(a),u=t=>{let o=sH(t);if(s_(o,r,i,s,!0))return;let l=null,u=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=sA.Mouse;break;case"touch":l=sA.Touch;break;case"pen":l=sA.Pen}l===sA.Touch?sD[a]===sD.MouseDown?u="TouchStart":sD[a]===sD.MouseUp&&(u="TouchEnd"):sA.Pen}else sb(t)&&(l=sA.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===sA.Touch||u.startsWith("Mouse")&&l===sA.Mouse)&&(l=null)):sD[a]===sD.Click&&(l=c,c=null);let d=sb(t)?t.changedTouches[0]:t;if(!d)return;let p=n.getId(o),{clientX:h,clientY:f}=d;sz(e)({type:sD[u],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(sD[a]){case sD.MouseDown:case sD.MouseUp:o=o.replace("mouse","pointer");break;case sD.TouchStart:case sD.TouchEnd:return}l.push(sl(o,u,t))}),sz(()=>{l.forEach(e=>e())})}(e),a=sV(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return sl("resize",sz(sd(sz(()=>{let t=sm(),i=sg();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=sH(e),u=e.isTrusted,g=n&&iz(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>sJ.indexOf(g)||s_(n,r,i,s,!0))return;let _=n;if(_.classList.contains(a)||o&&_.matches(o))return;let v=iH(n),b=iq(_,g,v),S=!1,w=iF({maskInputOptions:l,tagName:g,type:v}),E=ss(n,p,f,h,m,w);("radio"===v||"checkbox"===v)&&(S=n.checked),b=iU({isMasked:E,element:n,value:b,maskInputFn:c}),y(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});let k=n.name;"radio"===v&&k&&S&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(e=>{if(e!==n){let t=iU({isMasked:E,element:e,value:iq(e,g,v),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=sK.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){sK.set(t,r);let i=n.getId(t);sz(e)({...r,id:i})}}let _=("last"===u.input?["change"]:["input","change"]).map(e=>sl(e,sz(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>(function e(t,n,r,i,s=window){let a=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,i?r:{set(e){sM(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){sz(g)({target:this,isTrusted:!1})}},!1,v))),sz(()=>{_.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:a}){let o=sz(a=>sd(sz(s=>{let o=sH(s);if(!o||s_(o,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=o;e({type:a,id:i.getId(o),currentTime:l,volume:c,muted:u,playbackRate:d})}),s.media||500)),l=[sl("play",o(sN.Play),a),sl("pause",o(sN.Pause),a),sl("seeked",o(sN.Seeked),a),sl("volumechange",o(sN.VolumeChange),a),sl("ratechange",o(sN.RateChange),a)];return sz(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:sz((r,i,s)=>{let[a,o]=s,{id:l,styleId:c}=sY(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:o}]}),r.apply(i,s)})});let o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:sz((r,i,s)=>{let[a]=s,{id:o,styleId:l}=sY(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:a}]}),r.apply(i,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:sz((r,i,s)=>{let[a]=s,{id:o,styleId:l}=sY(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:a}),r.apply(i,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:sz((r,i,s)=>{let[a]=s,{id:o,styleId:l}=sY(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:a}),r.apply(i,s)})}));let l={};s0("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(s0("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),s0("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),s0("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:sz((r,i,s)=>{let[a,o]=s,{id:l,styleId:c}=sY(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...sG(i),o||0]}]}),r.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:sz((r,i,s)=>{let[a]=s,{id:o,styleId:l}=sY(i.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...sG(i),a]}]}),r.apply(i,s)})})}),sz(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=sX(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:sz((i,a,o)=>{let[l,c,u]=o;if(n.has(l))return s.apply(a,[l,c,u]);let{id:d,styleId:p}=sY(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:sG(a.parentRule)}),i.apply(a,o)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:sz((i,s,o)=>{let[l]=o;if(n.has(l))return a.apply(s,[l]);let{id:c,styleId:u}=sY(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:sG(s.parentRule)}),i.apply(s,o)})}),sz(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=sp(t.fonts,"add",function(t){return function(n){return sM(sz(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(a),sz(()=>
8{r.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:a}=e,o=!0,l=sz(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:o,endContainer:c,endOffset:u}=e.getRangeAt(t);s_(a,r,i,s,!0)||s_(c,r,i,s,!0)||l.push({start:n.getId(a),startOffset:o,end:n.getId(c),endOffset:u})}a({ranges:l})});return l(),sl("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?sp(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return sz(()=>{sW.forEach(e=>e.reset()),n?.disconnect(),i(),s(),a(),o(),l(),c(),u(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function sZ(e){return void 0!==window[e]}function s0(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class s1{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),s.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
8getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class s2{constructor(){this.crossOriginIframeMirror=new s1(i0),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class s3{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new s1(i0),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new s1(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=sP(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case sR.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:sR.IncrementalSnapshot,data:{source:sO.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sR.Meta:case sR.Load:case sR.DomContentLoaded:break;case sR.Plugin:return t;case sR.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sR.IncrementalSnapshot:switch(t.data.source){case sO.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sO.Drag:case sO.TouchMove:case sO.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case sO.ViewportResize:return!1;case sO.MediaInteraction:case sO.MouseInteraction:case sO.Scroll:case sO.CanvasMutation:case sO.Input:return this.replaceIds(t.data,e,["id"]),t;case sO.StyleSheetRule:case sO.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case sO.Font:return t;case sO.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case sO.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
8h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===iA.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class s5{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class s6{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!iP(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=sq({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(sV({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),sM(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(sX({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=sP(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(sp(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&sT(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var s8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s4="u"<typeof Uint8Array?[]:new Uint8Array(256),s7=0;s7<s8.length;s7++)s4[s8.charCodeAt(s7)]=s7;class s9{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class ae{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new sk,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:i$(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class at{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){sC("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let an=new ij;function ar(e={}){let t,{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:E,maskTextFn:k,maxCanvasSize:x=null,packFn:T,sampling:I={},dataURLOptions:C={},mousemoveWait:M,recordDOM:R=!0,recordCanvas:O=!1,recordCrossOriginIframes:D=!1,recordAfter:A="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:P=!1,inlineImages:L=!1,plugins:$,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:z}=e;b=U;let W=!D||window.parent===window,H=!1;if(!W)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(W&&!n)throw Error("emit function is required");if(!W&&!H)return()=>{};void 0!==M&&void 0===I.mousemove&&(I.mousemove=M),an.reset();let q=!0===g?{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}:void 0!==y?y:{},V=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};!function(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=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let J=0,K=e=>{for(let t of $||[])t.eventProcessor&&(e=t.eventProcessor(e));return T&&!H&&(e=T(e)),e};S=(e,s)=>{if(e.timestamp=sh(),sW[0]?.isFrozen()&&e.type!==sR.FullSnapshot&&(e.type!==sR.IncrementalSnapshot||e.data.source!==sO.Mutation)&&sW.forEach(e
8=>e.unfreeze()),W)n?.(K(e),s);else if(H){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===sR.FullSnapshot)t=e,J=0;else if(e.type===sR.IncrementalSnapshot){if(e.data.source===sO.Mutation&&e.data.isAttachIframe)return;J++;let n=i&&J>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&er(!0)}};let G=e=>{S({type:sR.IncrementalSnapshot,data:{source:sO.Mutation,...e}})},Y=e=>S({type:sR.IncrementalSnapshot,data:{source:sO.Scroll,...e}}),X=e=>S({type:sR.IncrementalSnapshot,data:{source:sO.CanvasMutation,...e}}),Q=new ae({mutationCb:G,adoptedStyleSheetCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new s2:new s3({mirror:an,mutationCb:G,stylesheetManager:Q,recordCrossOriginIframes:D,wrappedEmit:S});for(let e of $||[])e.getMirror&&e.getMirror({nodeMirror:an,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new at,et=function(e,t){try{return e?e(t):new s9}catch{return console.warn("Unable to initialize CanvasManager"),new s9}}(z,{mirror:an,win:window,mutationCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.CanvasMutation,...e}}),recordCanvas:O,blockClass:s,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:I.canvas,dataURLOptions:C,errorHandler:U}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new s5:new s6({mutationCb:G,scrollCb:Y,bypassOptions:{onMutation:B,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:q,dataURLOptions:C,maskAttributeFn:v,maskTextFn:k,maskInputFn:E,recordCanvas:O,inlineImages:L,sampling:I,slimDOMOptions:V,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:j,processedNodeManager:ee},mirror:an}),er=(e=!1)=>{if(!R)return;S({type:sR.Meta,data:{href:window.location.href,width:sg(),height:sm()}},e),Q.reset(),en.init(),sW.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new ij,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:I=()=>!1}=t||{};return so(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:I,newlyAddedElement:!1})}(document,{mirror:an,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:q,maskAttributeFn:v,maskInputFn:E,maskTextFn:k,slimDOM:V,dataURLOptions:C,recordCanvas:O,inlineImages:L,onSerialize:e=>{sS(e,an)&&Z.addIframe(e),sw(e,an)&&Q.trackLinkElement(e),sE(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{G({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");S({type:sR.FullSnapshot,data:{node:t,initialOffset:sf(window)}}
8),sW.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,an.getId(document))};w=er;try{let e=[],t=e=>sz(sQ)({onMutation:B,mutationCb:G,mousemoveCb:(e,t)=>S({type:sR.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.ViewportResize,...e}}),inputCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.Input,...e}}),mediaInteractionCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.MediaInteraction,...e}}),styleSheetRuleCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.StyleSheetRule,...e}}),styleDeclarationCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>S({type:sR.IncrementalSnapshot,data:{source:sO.Font,...e}}),selectionCb:e=>{S({type:sR.IncrementalSnapshot,data:{source:sO.Selection,...e}})},customElementCb:e=>{S({type:sR.IncrementalSnapshot,data:{source:sO.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:q,inlineStylesheet:m,sampling:I,recordDOM:R,recordCanvas:O,inlineImages:L,userTriggeredOnInput:N,collectFonts:P,doc:e,maskAttributeFn:v,maskInputFn:E,maskTextFn:k,keepIframeSrcFn:j,blockSelector:a,unblockSelector:o,slimDOMOptions:V,dataURLOptions:C,mirror:an,iframeManager:Z,stylesheetManager:Q,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:$?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>S({type:sR.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(sl("DOMContentLoaded",()=>{S({type:sR.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&n()})),e.push(sl("load",()=>{S({type:sR.Load,data:{}}),"load"===A&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),w=void 0,b=void 0}}catch(e){console.warn(e)}}function ai(e){return e>0x2540be3ff?e:1e3*e}function as(e){return e>0x2540be3ff?e/1e3:e}function aa(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:sR.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:tU(t,10,1e3)}}),"console"===t.category)))}function ao(e){return e.closest("button,a")||e}function al(e){let t=ac(e);return t&&t instanceof Element?ao(t):t}function ac(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}ar.mirror=an,ar.takeFullSnapshot=function(e){if(!w)throw Error("please take full snapshot after start recording");w(e)},(N=L||(L={}))[N.NotStarted=0]="NotStarted",N[N.Running=1]="Running",N[N.Stopped=2]="Stopped";let au=new Set([sO.Mutation,sO.StyleSheetRule,sO.StyleDeclaration,sO.AdoptedStyleSheet,sO.CanvasMutation,sO.Selection,sO.MediaInteraction]);class ad{constructor(e,t,n=aa){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=ah()},E||(E=[],e_(U,"open",function(e){return function(...t){if(E)try{E.forEach(e=>e())}catch{}return e.apply(U,t)}})),E.push(e),()=>{let t=E?E.indexOf(e):-1;t>-1&&E.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,i;if(n=t,r=this._ignoreSelector,!ap.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:as(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>
8Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=as(e)}registerScroll(e=Date.now()){this._lastScroll=as(e)}registerClick(e){let t=ao(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=ah();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:U.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:U.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=iw(()=>this._checkClicks(),1e3)}}let ap=["A","BUTTON","INPUT"];function ah(){return Date.now()/1e3}function af(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var am=((P=am||{})[P.Document=0]="Document",P[P.DocumentType=1]="DocumentType",P[P.Element=2]="Element",P[P.Text=3]="Text",P[P.CDATA=4]="CDATA",P[P.Comment=5]="Comment",P);let ag=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ay(e,t){let n=ar.mirror.getId(e),r=n&&ar.mirror.getNode(n),i=r&&ar.mirror.getMeta(r),s=i&&i.type===am.Element?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===am.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(ag.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let a_={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:aS(s),end:aS(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,s=aS(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:aS(h),end:aS(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function av(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function ab(e){let t=a_[e.entryType];return t?t(e):null}function aS(e){return((eA()||U.performance.timeOrigin)+e)/1e3}function aw(e){let t=e.entries[e.entries.length-1];return aT(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function aE(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=ar.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return aT(e,"cumulative-layout-shift",n,t)}function ak(e){let t=e.entries[e.entries.length-1];return aT(e,"first-input-delay",t?.target?[t.target]:void 0)}function ax(e){let t=e.entries[e.entries.length-1];return aT(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function aT(e,t,n,r){let i=e.value,s=e.rating,a=aS(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:s,nodeIds:n?n.map(e=>ar.mirror.getId(e)):void 0,attributions:r}}}let aI="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,aC=["log","warn","error"],aM="[Replay] ";function aR(e,t="info"){ih({category:"console",data:{logger:"replay"},level:t,message:`${aM}${e}`},{level:t})}let aO=(x=!1,T=!1,I={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{x=!!e.captureExceptions,T=!!e.traceInternals}}
8,aI?(aC.forEach(e=>{I[e]=(...t)=>{ef[e](aM,...t),T&&aR(t.join(""),ip(e))}}),I.exception=(e,...t)=>{t.length&&I.error&&I.error(...t),ef.error(aM,e),x?rk(e):T&&aR(e,"error")},I.infoTick=(...e)=>{ef.log(aM,...e),T&&setTimeout(()=>aR(e[0]),0)}):aC.forEach(e=>{I[e]=()=>void 0}),I);class aD extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class aA{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(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new aD;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ai(e):null}}class aN{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){aI&&aO.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",s),!t.success){aI&&aO.error("Error in compression worker: ",t.response),i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class aP{constructor(e){this._worker=new aN(e),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(e){let t=ai(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new aD):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{aI&&aO.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class aL{constructor(e){this._fallback=new aA,this._compression=new aP(e),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(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){aI&&aO.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){aI&&aO.exception(e,"Failed to add events when switching buffers.")}}}function a$(){try{return"sessionStorage"in U&&!!U.sessionStorage}catch{return!1}}function aj(e){return void 0!==e&&Math.random()<e}function aF(e){if(a$())try{U.sessionStorage.setItem(iM,JSON.stringify(e))}catch{}}function aU(e){let t=Date.now(),n=e.id||ex(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:e.sampled,previousSessionId:e.previousSessionId}}function aB({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=aU({sampled:aj(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&aF(i),i}function az(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function aW(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return az(e.started,t,r)||az(e.lastActivity,n,r)}function aH(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!aW(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function aq({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!a$())return null;try{let e=U.sessionStorage.getItem(iM);if(!e)return null;let t=JSON.parse(e);return aI&&aO.infoTick("Loading existing session"),aU(t)}catch{return null}}();return i?aH(i,{sessionIdleExpire:e,maxReplayDuration:t})?(aI&&aO.infoTick("Session in sessionStorage is expired, creating new one..."),aB(r,{previousSessionId:i.id})):i:(aI&&aO.infoTick("Creating new session"),aB(r,{previousSessionId:n}))}function aV(e,t,n){return!!aK(e,t)&&(aJ(e,t,n),!0)}async function aJ(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;
8try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let s=e.getOptions(),a=function(e,t){try{if("function"==typeof t&&e.type===sR.Custom)return t(e)}catch(e){return aI&&aO.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,s.beforeAddRecordingEvent);if(!a)return;return await r.addEvent(a)}catch(s){let t=s&&s instanceof aD;if(t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"});let n=eG();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function aK(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=ai(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(aI&&aO.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function aG(e){return"transaction"===e.type}function aY(e){return"feedback"===e.type}function aX(e){return!!e.category}function aQ(){let e=eV().getPropagationContext().dsc;e&&delete e.replay_id;let t=tS();if(t){let e=tO(t);delete e.replay_id}}function aZ(e,t){return t.map(({type:t,start:n,end:r,name:i,data:s})=>{let a=e.throttledAddEvent({type:sR.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof a?Promise.resolve(null):a})}function a0(e,t){e.isEnabled()&&null!==t&&!function(e,t){var n,r,i,s,a;let o,l;if(aI&&e.getOptions()._experiments.traceInternals)return!1;return n=eG(),o=n?.getDsn(),l=n?.getOptions().tunnel,r=t,!!(i=o)&&r.includes(i.host)||(s=t,!!(a=l)&&im(s)===im(a))}(e,t.name)&&e.addUpdate(()=>(aZ(e,[t]),!0))}function a1(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=iE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function a2(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function a3(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 a5(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:a,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:s,statusCode:a,request:o,response:l}}}function a6(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function a8(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:s}=function(e){var t;let n,r;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,s=(n=(t=e)[0],r=t[t.length-1],"["===n&&"]"===r||"{"===n&&"}"===r);if(i){let t=e.slice(0,15e4);return s?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(s)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,s?.length&&(r._meta={warnings:s}),r}function a4(e,t){return Object.entries(e).reduce((n,[r,i])=>{let s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function a7(e,t=U.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(U.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 a9(e,t,n){try{let r=await oe(e,t,n),i=a5("resource.fetch",r);a0(n.replay,i)}catch(e){aI&&aO.exception(e,"Failed to capture fetch breadcrumb")}}async function oe(e,t,n){var r,i;let s=Date.now(),{startTimestamp:a=s,endTimestamp:o=s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data,h=(r=n.networkDetailAllowUrls,ey(a7(l),r)&&(i=n.networkDetailDenyUrls,!ey(a7(l),i)));return{startTimestamp:a,endTimestamp:o,url:l,method:c,statusCode:u,request:h?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var i,s;let a=n?(i=n,s=t,1===i.length&&"string"!=typeof i[0]?oi(i[0],s):2===i.length?oi(i[1],s):{}):{};if(!e)return a8(a,r,void 0);let[o,l]=ik(ix(n),aO),c=a8(a,r,o);return l?a3(c,l):c}(n,t.input,d):a6(d),response:await ot(h,n,t.response,p)}}async function ot(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return a6(i);let s=r?or(r.headers,n):{};if(!r||!t&&void 0!==i)return a8(s,i,void 0);let[a,o]=await on(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let s=e?.length&&void 0===n?a1(e):n;if(!r)return a6(s);if(t)return a8(i,s,e);return a8(i,s,void 0)}catch(e){return aI&&aO.exception(e,"Failed to serialize response body"),a8(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return o?a3(l,o):l}async function on(e){let t=function(e){try{return e.clone()}catch(e){aI&&aO.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>
8{let r=iw(()=>t(Error("Timeout while trying to read response body")),500);os(n).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return aI&&aO.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return aI&&aO.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function or(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function oi(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?or(n,t):Array.isArray(n)?{}:a4(n,t):{}}async function os(e){return await e.text()}async function oa(e,t,n){try{let r=function(e,t,n){var r,i;let s,a=Date.now(),{startTimestamp:o=a,endTimestamp:l=a,input:c,xhr:u}=t,{url:d,method:p,status_code:h=0,request_body_size:f,response_body_size:m}=e.data;if(!d)return null;if(!u||(r=n.networkDetailAllowUrls,!ey(a7(d),r))||(i=n.networkDetailDenyUrls,ey(a7(d),i))){let e=a6(f);return{startTimestamp:o,endTimestamp:l,url:d,method:p,statusCode:h,request:e,response:a6(m)}}let g=u[rV],y=g?a4(g.request_headers,n.networkRequestHeaders):{},_=a4((s=u.getAllResponseHeaders())?s.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{},n.networkResponseHeaders),[v,b]=n.networkCaptureBodies?ik(c,aO):[void 0],[S,w]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&n&&"object"==typeof n)return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return aI&&aO.exception(e,"Failed to serialize body",n),[void 0,"BODY_PARSE_ERROR"]}return aI&&aO.log("Skipping network body because of body type",n),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return aI&&aO.warn("Failed to get xhr response body",...t),[void 0]}(u):[void 0],E=a8(y,f,v),k=a8(_,m,S);return{startTimestamp:o,endTimestamp:l,url:d,method:p,statusCode:h,request:b?a3(E,b):E,response:w?a3(k,w):k}}(e,t,n),i=a5("resource.xhr",r);a0(n.replay,i)}catch(e){aI&&aO.exception(e,"Failed to capture xhr breadcrumb")}}async function oo(e){try{return Promise.all(aZ(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(U.performance.memory)]))}catch{return[]}}let ol=U.navigator;async function oc({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let s=await rw(e.getOptions(),r,i,t,e,eJ());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let a=e.getSdkMetadata(),{name:o,version:l}=a?.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function ou({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){var a;let o,l=function({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
9`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:p}=r,h=eG(),f=eV(),m=h?.getTransport(),g=h?.getDsn();if(!h||!m||!g||!s.sampled)return rg({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},_=await oc({scope:f,client:h,replayId:t,event:y});if(!_)return h.recordDroppedEvent("event_processor","replay"),aI&&aO.log("An event processor returned `null`, will not send event."),rg({});delete _.sdkProcessingMetadata;let v=(a=h.getOptions().tunnel,tB(tV(_,tq(_),a,g),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(v)}catch(t){let e=Error(iR);try{e.cause=t}catch{}throw e}if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new od(o.statusCode);let b=iy({},o);if(ig(b,"replay"))throw new op(b);return o}
9class od extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class op extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function oh(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await ou(e),!0}catch(n){if(n instanceof od||n instanceof op)throw n;if(rT("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${iR} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{iw(async()=>{try{await oh(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let of="__THROTTLED";class om{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},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=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,i,s,a=n?.maxWait?Math.max(n.maxWait,t):0,o=n?.setTimeoutImpl||setTimeout;function l(){return c(),r=e()}function c(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function u(){return i&&clearTimeout(i),i=o(l,t),a&&void 0===s&&(s=o(l,a)),r}return u.cancel=c,u.flush=function(){return void 0!==i||void 0!==s?l():r},u}(e,t,{...n,setTimeoutImpl:iw})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,n=!1;return(...r)=>{let i,s=Math.floor(Date.now()/1e3);if(i=s-5,t.forEach((e,n)=>{n<i&&t.delete(n)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=n;return n=!0,e?"__SKIPPED":of}n=!1;let a=t.get(s)||0;return t.set(s,a+1),e(...r)}}((e,t)=>aK(this,e)?aJ(this,e,t):Promise.resolve(null));const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new ad(this,i)),aI){const t=e._experiments;aO.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===U.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=af({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=af({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||s,c=1===a.length;if(!l&&c)return null;let u=es(o,{maxStringLength:200})||"<unknown>",d=ay(o,u);return af({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a}})}(t);n&&aa(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){aI&&aO.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){aI&&aO.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",aI&&aO.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){aI&&aO.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){aI&&aO.log("Buffering is in progress, call `flush()` to save the replay");return}aI&&aO.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=aq({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
9startBuffering(){if(this._isEnabled){aI&&aO.log("Buffering is in progress, call `flush()` to save the replay");return}aI&&aO.infoTick("Starting replay in buffer mode");let e=aq({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,n=this._canvas;this._stopRecording=ar({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession()){aI&&aO.warn("Received replay event after session expired.");return}let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(au.has(r)&&e.registerMutation(t.timestamp),r===sO.Scroll&&e.registerScroll(t.timestamp),t.data.source===sO.MouseInteraction){let{type:n,id:r}=t.data,i=ar.mirror.getNode(r);i instanceof HTMLElement&&n===sD.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!aV(e,n,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;aV(e,(t=e.getOptions(),{type:sR.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&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(aI&&aO.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&aF(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(ol?.userAgent??"")||/Macintosh/i.test(ol?.userAgent??"")&&ol?.maxTouchPoints&&ol?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{aI&&aO.log(`Stopping Replay${t?` triggered by ${t}`:""}`),aQ(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(a$())try{U.sessionStorage.removeItem(iM)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),aI&&aO.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),aI&&aO.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();aI&&aO.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&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"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}
9checkAndHandleExpiredSession(){return this._lastActivity&&az(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${U.location.pathname}${U.location.hash}${U.location.search}`,t=`${U.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===of){let e=af({category:"replay.throttled"});this.addUpdate(()=>!aV(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||tS(),t=e&&tb(e),n=(t&&th(t).data||{})[eY];if(t&&n&&["route","custom"].includes(n))return th(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 9
9var 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});
9']),URL.createObjectURL(e)}return""}();if(!t)return;aI&&aO.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new aL(n)}catch(e){aI&&aO.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return aI&&aO.log("Using simple buffer"),new aA}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=aq({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!aH(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{U.document.addEventListener("visibilitychange",this._handleVisibilityChange),U.addEventListener("blur",this._handleWindowBlur),U.addEventListener("focus",this._handleWindowFocus),U.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t;let n,r=eG();iT(t=>{var n,r;if(!e.isEnabled())return;let i=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?al(e.event):ac(e.event),t=es(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(e);return af({category:`ui.${e.name}`,...ay(t,n)})}(t);if(!i)return;let s="click"===t.name,a=s?t.event:void 0;s&&e.clickDetector&&a?.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(n=e.clickDetector,r=al(t.event),n.handleClick(i,r)),aa(e,i)}),np(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(aZ(e,[n]),!1)))}),(n=eG())&&n.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!aX(t))return;let r=(n=t,!aX(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return af(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=tU(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return af({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):af(n));r&&aa(e,r)})(e,t));let i=eG();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:a};i&&i.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i,s,a;r=t,"xhr"===r.category&&(i=n,i?.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=a1(r),s=n.getResponseHeader("content-length")?a2(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return a1(n)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),oa(t,n,e)),s=t,"fetch"===s.category&&(a=n,a?.response)&&(!function(e,t){let{input:n,response:r}=t,i=a1(n?ix(n):void 0),s=r?a2(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,n),a9(t,n,e))}catch(e){aI&&aO.exception(e,"Error when enriching network breadcrumb")}})(o,e,t))}catch{}t=Object.assign((t,n)=>
9!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||aG(t)||aY(t)?e.checkAndHandleExpiredSession()?aY(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:sR.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception?.values?.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions?(aI&&aO.log("Ignoring error from rrweb internals",t),null):(("buffer"===e.recordingMode&&t.message!==iR&&t.exception&&!t.type&&aj(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(aQ(),t):t,{id:"Replay"}),eJ().addEventProcessor(t),r&&(r.on("beforeSendEvent",t=>{var n,r;let i;e.isEnabled()&&!t.type&&(n=e,r=t,i=r.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&aa(n,af({category:"replay.hydrate-error",data:{url:ea()}})))}),r.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!aG(t))return;let r=n?.statusCode;if(r&&!(r<200)&&!(r>=300)){if(aG(t)){var i,s;let n;return void(i=e,s=t,n=i.getContext(),s.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(s.contexts.trace.trace_id))}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&iw(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(nQ(e,n))}),r.push(nG(av(aw,e)),nK(av(aE,e)),nY(av(ak,e)),nX(av(ax,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{U.document.removeEventListener("visibilitychange",this._handleVisibilityChange),U.removeEventListener("blur",this._handleWindowBlur),U.removeEventListener("focus",this._handleWindowFocus),U.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||aW(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){aI&&aO.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:sR.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(ab).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.
9initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(aZ(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={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(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){aI&&aO.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await oo(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await oh({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=eG();e&&e.recordDroppedEvent(t instanceof op?"ratelimit_backoff":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){aI&&aO.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){aI&&aO.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&aI&&aO.log("Flushing initial segment without checkout.");let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&aF(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=r&&n>r;if(n>i||s){let e=af({category:"replay.mutations",data:{count:n,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function og(e,t){return[...e,...t].join(",")}let oy='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',o_=["content-length","content-type","accept"],ov=!1;class ob{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:o={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:E=[],unblock:k=[],ignore:x=[],maskFn:T,beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:M}={}){this.name="Replay";const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:og(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:og(t,[]),blockSelector:og(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
9([src])"]),unblockSelector:og(r,[]),ignoreSelector:og(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:E,unblock:k,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:S,maskAllText:l,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:oS(_),networkResponseHeaders:oS(v),beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:M,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${oy}`:oy),this._isInitialized&&iv())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ov}set _isInitialized(e){ov=e}afterAllSetup(e){iv()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let n,r,i,s,a=(t=this._initialOptions,n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},i=ta(n.replaysSessionSampleRate),s=ta(n.replaysOnErrorSampleRate),null==i&&null==s&&eu(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=s&&(r.errorSampleRate=s),r);this._replay=new om({options:a,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function oS(e){return[...o_,...e.map(e=>e.toLowerCase())]}function ow(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}let oE=[/^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$/];function ok(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:oE],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ox(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return H&&ef.error(`Cannot extract url for event ${eI(e)}`),null}}let oT=new WeakMap;function oI(e,t){let n=tF(e),r=tF(t);if(!n&&!r)return!0;
9if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function oC(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function oM(e){return e.exception?.values?.[0]}let oR="Not capturing exception because it's already been captured.",oO="Discarded session because of missing or non-string release",oD=Symbol.for("SentryInternalError"),oA=Symbol.for("SentryDoNotSendEventError");function oN(e){return{message:e,[oD]:!0}}function oP(e){return{message:e,[oA]:!0}}function oL(e){return!!e&&"object"==typeof e&&oD in e}function o$(e){return!!e&&"object"==typeof e&&oA in e}class oj{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=tx.exec(e);if(!t)return void eu(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",s="",a="",o=""]=t.slice(1),l="",c=o,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return tI({host:s,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):tI(e);if(t&&function(e){if(!H)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(ef.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(ef.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(ef.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(ef.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):H&&ef.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t,n){let r,i,s;
9return t||`${r=e.protocol?`${e.protocol}:`:"",i=e.port?`:${e.port}`:"",`${r}//${e.host}${i}${e.path?`/${e.path}`:""}/api/`}${e.projectId}/envelope/?${s={sentry_version:"7"},e.publicKey&&(s.sentry_key=e.publicKey),n&&(s.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(s).toString()}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){let r=ex();if(eR(e))return H&&ef.log(oR),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:ex(),...n},s=X(e)?e:String(e),a=Q(e)?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=ex();if(t?.originalException&&eR(t.originalException))return H&&ef.log(oR),r;let i={event_id:r,...t},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,o=s.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,a||n,o)),i.event_id}captureSession(e){this.sendSession(e),eN(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
9return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):rg(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];r8(this,e,this._integrations),t||r6(this,[e])}sendEvent(e,t={}){var n,r,i,s;let a,o,l;this.emit("beforeSendEvent",e,t);let c=(n=this._dsn,r=this._options._metadata,i=this._options.tunnel,a=tq(r),o=e.type&&"replay_event"!==e.type?e.type:"event",(s=r?.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||s.name,e.sdk.version=e.sdk.version||s.version,e.sdk.integrations=[...e.sdk.integrations||[],...s.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...s.packages||[]]),l=tV(e,a,i,n),delete e.sdkProcessingMetadata,tB(l,[[{type:o},e]]));for(let e of t.attachments||[])c=function(e,t){let[n,r]=e;return[n,[...r,t]]}(c,function(e){let t="string"==typeof e.data?tW(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));let u=this.sendEnvelope(c);u&&u.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){var t,n,r;let i,{release:s,environment:a=tE}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!s){H&&ef.warn(oO);return}t.release=t.release||s,t.environment=t.environment||a,e.attrs=t}else{if(!e.release&&!s){H&&ef.warn(oO);return}e.release=e.release||s,e.environment=e.environment||a}this.emit("beforeSendSession",e);let o=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=tq(n),tB({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tT(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(o)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;H&&ef.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(H&&ef.error("Error while sending envelope:",e),e)):(H&&ef.error("Transport disabled"),rg({}))}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(n=>{n&&r8(e,n,t)}),t),r6(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t?.handled===!1){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(eN(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new r_(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),rw(i,e,t,n,this,r).then(e=>
9(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:function(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||eL()};return n&&(i.parent_span_id=n),i}(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tR(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=eV(),r=eJ()){return H&&oF(e)&&ef.log(`Captured error event \`${ow(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{H&&(o$(e)?ef.log(e.message):oL(e)?ef.warn(e.message):ef.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:s}=i,a=oU(e),o=oF(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===s?void 0:ta(s);if(o&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),ry(oP(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d="replay_event"===l?"replay":l;return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),oP("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(et(e))return e.then(e=>{if(!Z(e)&&null!==e)throw oN(n);return e},e=>{throw oN(`${t} rejected with ${e}`)});if(!Z(e)&&null!==e)throw oN(n);return e}(function(e,t,n){let{beforeSend:r,beforeSendTransaction:i,beforeSendSpan:s}=e,a=t;if(oF(a)&&r)return r(a,n);if(oU(a)){if(s){let e=s(function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[e6],exclusive_time:a?.[e8],measurements:e.measurements,is_segment:!0}}(a));if(e)a=eP(t,{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&&{[e6]:e.profile_id},...e.exclusive_time&&{[e8]:e.exclusive_time}}}},measurements:e.measurements});else tw();if(a.spans){let e=[];for(let t of a.spans){let n=s(t);n?e.push(n):(tw(),e.push(t))}a.spans=e}}if(i){if(a.spans){let e=a.spans.length;a.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(a,n)}}return a}(i,e,t),c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw oP(`${c} returned \`null\`, will not send event.`)}let s=n.getSession()||r.getSession();if(o&&s&&this._updateSessionFromEvent(s,i),a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return a&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(o$(e)||oL(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),oN(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;H&&ef.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){H&&ef.log("No outcomes to send");return}if(!this._dsn){H&&ef.log("No dsn provided, will not send outcomes");return}H&&ef.log("Sending outcomes:",t);let n=tB((e=this._options.tunnel&&tT(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eO(),discarded_events:t}]]);this.sendEnvelope(n)}}function oF(e){return void 0===e.type}function oU(e){return"transaction"===e.type}function oB(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:F})),version:F}),e._metadata=i}function oz(e,t){var n,r,i,s;let a,o=t??(s=e,oW().get(s))??[];if(0===o.length)return;let l=e.getOptions(),c=(n=l._metadata,r=l.tunnel,i=e.getDsn(),a={},n?.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(a.dsn=tT(i)),tB(a,[[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}]]));oW().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(c)}function oW(){return W("clientToLogBufferMap",()=>new WeakMap)}function oH(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function oq(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function oV(e,t){var n,r;let i,s,a=oK(e,t),o={type:(n=t,!(i=n?.name)&&oY(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,s=r?.message,oY(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?s.error.message:s:"No error message")};return a.length&&(o.stacktrace={frames:a}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function oJ(e,t){return{exception:{values:[oV(e,t)]}}}function oK(e,t){var n,r;let i=t.stacktrace||t.stack||"",s=(n=t)&&oG.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,s,a)}catch{}return[]}let oG=/Minified React error #\d+;/i;function oY(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function oX(e,t,n,r,i){let s;if(K(t)&&t.error)return oJ(e,t.error);if(G(t)||J(t,"DOMException")){if("stack"in t)s=oJ(e,t);else{let i=t.name||(G(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;eC(s=oQ(e,a,n,r),a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return V(t)?oJ(e,t):(Z(t)||ee(t)?eM(s=function(e,t,n,r){let i=eG(),s=i?.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),o={__serialized__:function e(t,n=3,r=102400){let i=tU(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,s)};if(a)return{exception:{values:[oV(e,a)]},extra:o};let l={exception:{values:[{type:ee(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(ew(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return em(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");
10if(!(r.length>t)){if(e===n.length)return r;return em(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(K(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(ee(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=oK(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i),{synthetic:!0}):(eC(s=oQ(e,t,n,r),`${t}`,void 0),eM(s,{synthetic:!0})),s)}function oQ(e,t,n,r){let i={};if(r&&n){let r=oK(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),eM(i,{synthetic:!0})}if(X(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}class oZ extends oj{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:U.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);oB(t,"browser",["browser"],U.SENTRY_SDK_SOURCE||"npm"),super(t);const{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:s}=this._options,a=i??s?.enableLogs;U.document&&(r||a)&&U.document.addEventListener("visibilitychange",()=>{"hidden"===U.document.visibilityState&&(r&&this._flushOutcomes(),a&&oz(this))}),a&&(this.on("flush",()=>{oz(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{oz(this)},5e3)})),n&&(this.on("postprocessEvent",oH),this.on("beforeSendSession",oq))}eventFromException(e,t){var n,r;let i;return n=this._options.stackParser,r=this._options.attachStacktrace,eM(i=oX(n,e,t?.syntheticException||void 0,r)),i.level="error",t?.event_id&&(i.event_id=t.event_id),rg(i)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=oQ(e,t,r?.syntheticException||void 0,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),rg(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function o0(){"console"in U&&el.forEach(function(e){e in U.console&&e_(U.console,e,function(t){return ec[e]=t,function(...t){nr("console",{args:t,level:e});let n=ec[e];n?.apply(U.console,t)}})})}function o1(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}let o2=["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"];function o3(e){return function(...t){let n=t[0];return t[0]=rN(n,{mechanism:{data:{function:tj(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function o5(e){return function(t){return e.apply(this,[rN(t,{mechanism:{data:{function:"requestAnimationFrame",handler:tj(e)},handled:!1,type:"instrument"}})])}}function o6(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&e_(n,e,function(t){let n={mechanism:{data:{function:e,handler:tj(t)},handled:!1,type:"instrument"}},r=eS(t);return r&&(n.mechanism.data.handler=tj(r)),rN(t,n)})}),e.apply(this,t)}}function o8(e){rm&&ef.log(`Global Handler attached: ${e}`)}function o4(){let e=eG();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function o7(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function o9(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function le(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}
10let lt=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ln=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lr=/\((\S*)(?::(\d+))(?::(\d+))\)/,li=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ls=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,la=tP([30,e=>{let t=lt.exec(e);if(t){let[,e,n,r]=t;return le(e,"?",+n,+r)}let n=ln.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=lr.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=lo(n[1]||"?",n[2]);return le(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=li.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=ls.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=lo(n,e),le(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),lo=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ll=Symbol.for("SentryBufferFullError");function lc(e,t=iS("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ry(ll);let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new r_((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{rg(e).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let s=[];if(tz(i,(t,n)=>{let i=tH[n];ig(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):s.push(t)}),0===s.length)return rg({});let a=tB(i[0],s),o=t=>{tz(a,(n,r)=>{e.recordDroppedEvent(t,tH[r])})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[tW(r),e]:r.push("string"==typeof e?tW(e):e)}for(let e of n){let[t,n]=e;if(i(`
11${JSON.stringify(t)}
12`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(tU(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&H&&ef.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=iy(r,e),e),e=>{throw o("network_error"),H&&ef.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===ll)return H&&ef.error("Skipped sending event because buffer is full."),o("queue_overflow"),rg({});throw e})},flush:e=>n.drain(e)}}(e,function(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};if(!t)return ib.fetch=void 0,ry("No fetch implementation available");try{return t(e.url,a).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return ib.fetch=void 0,n-=s,r--,ry(e)}})}var lu=e.i(820967);let ld=(0,j.createLogger)("util-sentry"),lp=["extension://","chrome-extension://","moz-extension://","safari-extension://"],lh=["lovart.ai","lovart.art","xingliu.art"],lf=[/^https?:\/\/challenges\.cloudflare\.com\//i,/^https?:\/\/accounts\.google\.com\//i],lm=[/Failed to fetch/i,/Load failed/i,/NetworkError/i,/Network request failed/i,/ERR_NETWORK/i,/ECONNABORTED/i,/请求超时/,/网络错误/,/AbortError/i,/signal is aborted/i,/The operation was aborted/i,/The user aborted a request/i,/FPJSAgentError/i,/FingerprintError/i,/Failed to load the JS script of the agent/i,/Not available for this origin/i,/Client timeout/i,/Non-Error promise rejection captured with value: timeout/i,/Non-Error promise rejection captured with value: Failed to get locale image size/i,/Non-Error promise rejection captured with value: Failed to get remote image size/i,/Non-Error promise rejection captured with value: Request timeout/i,/WebAssembly compilation aborted: Network error/i,/Aborted\(both async and sync fetching of the wasm failed\)/i,/EncodingError/i,/The source image cannot be decoded/i,/upstream connect error/i,/503 Service Temporarily Unavailable/i,/InvalidStateError.*Transition was aborted/i,/WebGL not supported/i,/ResizeObserver loop/i,/UET is not defined/i,/getComputedStyle\(\.\.\.\)\.getPropertyValue is not a function/i],lg=/^Non-Error promise rejection captured with value:/,ly=e=>{let t=e.category||"";
12if("fetch"===t||"xhr"===t){let n=String(e.data?.url??"");if(!n)return null;try{return`${t} ${new URL(n,window.location.origin).pathname}`}catch{return null}}if("ui.click"===t||"navigation"===t){let n=String(e.message??"").slice(0,80);return n?`${t} ${n}`:null}return null},l_=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,lv=!1,lb=null,lS=["dsn","environment","release","sampleRate","tracesSampleRate","profilesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate"],lw=e=>{let t=Math.abs(e),n=String(Math.floor(t/60)).padStart(2,"0"),r=String(t%60).padStart(2,"0");return`UTC${e<0?"-":"+"}${n}:${r}`},lE=[],lk=$.isCN?{homeDsn:"https://[email protected]/4",selfHostedDsn:"https://[email protected]/3",tracePropagationTargets:lE,tracesSampleRate:.2}:{homeDsn:"https://[email protected]/3",selfHostedDsn:"https://[email protected]/2",tracePropagationTargets:lE,tracesSampleRate:.02};e.s(["flushReplay",0,()=>{let e,t=(e=eG(),e?.getIntegrationByName("Replay"));t&&t.flush().catch(()=>{})},"initSentry",0,e=>{let t;if(lv){let t=lb?lS.filter(t=>lb[t]!==e[t]).map(t=>`${t}: 生效 ${String(lb[t])} / 被忽略 ${String(e[t])}`):[];t.length&&ld(`initSentry 重复调用,以先到的配置为准。被忽略的差异 -> ${t.join("; ")}`);return}if(!e.dsn)return;let n={timezone:l_(),...e.user??{}},r=e.replaysSessionSampleRate??0,i=e.replaysOnErrorSampleRate??0,s=[((e={})=>{let t,n,r={name:void 0,source:void 0},i=U.document,{enableInp:s,enableElementTiming:a,enableLongTask:o,enableLongAnimationFrame:c,_experiments:{enableInteractions:p,enableStandaloneClsSpans:h,enableStandaloneLcpSpans:f},beforeStartSpan:m,idleTimeout:g,finalTimeout:y,childSpanTimeout:_,markBackgroundSpan:v,traceFetch:b,traceXHR:S,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:E,enableHTTPTimings:k,ignoreResourceSpans:x,ignorePerformanceApiSpans:T,instrumentPageLoad:I,instrumentNavigation:C,detectRedirects:M,linkPreviousTrace:R,consistentTraceSampling:O,onRequestSpanStart:D}={...r1,...e};function A(e,n,s=!0){let a="pageload"===n.op,o=m?m(n):n,l=o.attributes||{};if(n.name!==o.name&&(l[eY]="custom",o.attributes=l),!s){let e=eO();tQ({...o,startTime:e}).end(e);return}r.name=o.name,r.source=l[eY];let c=t6(o,{idleTimeout:g,finalTimeout:y,childSpanTimeout:_,disableAutoFinish:a,beforeSpanEnd:n=>{t?.(),function(e,t){let n=rt(),r=eA();if(!n?.getEntries||!r)return;let i=rn(r),s=n.getEntries(),{op:a,start_timestamp:o}=th(e);if(s.slice(ru).forEach(n=>{let r=rn(n.startTime),s=rn(Math.max(0,n.duration));if("navigation"!==a||!o||!(i+r<o))switch(n.entryType){case"navigation":var l,c,u,d,p,h;let f,m,g;l=e,c=n,u=i,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{rp(l,c,e,u)}),rp(l,c,"secureConnection",u,"TLS/SSL"),rp(l,c,"fetch",u,"cache"),rp(l,c,"domainLookup",u,"DNS"),d=l,p=c,f=(h=u)+rn(p.requestStart),m=h+rn(p.responseEnd),g=h+rn(p.responseStart),p.responseEnd&&(n9(d,f,m,{op:"browser.request",name:p.name,attributes:{[e0]:"auto.ui.browser.metrics"}}),n9(d,g,m,{op:"browser.response",name:p.name,attributes:{[e0]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i,s){if(["mark","measure"].includes(t.entryType)&&ey(t.name,s))return;let a=ng(!1),o=i+Math.max(n,rn(a?a.requestStart:0)),l=i+n,c=l+r,u={[e0]:"auto.resource.browser.metrics"};o!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=o),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&Q(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Q(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(u,t),o<=c&&n9(e,o,c,{name:t.name,op:t.entryType,attributes:u})}(e,n,r,s,i,t.ignorePerformanceApiSpans);let a=nI(),o=n.startTime<a.firstHiddenTime;"first-paint"===n.name&&o&&(rd.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&o&&(rd.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(o))return;let l=t7(n),c={[e0]:"auto.resource.browser.metrics"};rh(c,t,"transferSize","http.response_transfer_size"),rh(c,t,"encodedBodySize","http.response_content_length"),rh(c,t,"decodedBodySize","http.decoded_response_content_length");let u=t.deliveryType;null!=u&&(c["http.response_delivery_type"]=u);let d=t.renderBlockingStatus;if(d&&(c["resource.render_blocking_status"]=d),l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(U.location.origin),null!=t.nextHopProtocol){let{name:e,version:n}=rr(t.nextHopProtocol);c["network.protocol.name"]=e,c["network.protocol.version"]=n}let p=s+r;n9(e,p,p+i,{name:n.replace(U.location.origin,""),op:o,attributes:c})}(e,n,n.name,r,s,i,t.ignoreResourceSpans)}}),ru=Math.max(s.length-1,0),function(e){let t=U.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),n7(n.rtt)&&(rd["connection.rtt"]={value:n.rtt,unit:"millisecond"})),n7(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),n7(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===a){var l,c;!function(e){let t=ng(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(rd);let n=rd["mark.fid"];n&&rd.fid&&(n9(e,n.value,n.value+rn(rd.fid.value),{name:"first input delay",op:"ui.action",attributes:{[e0]:"auto.ui.browser.metrics"}}),delete rd["mark.fid"]),t.recordClsOnPageloadSpan||delete rd.cls,t.recordLcpOnPageloadSpan||delete rd.lcp,Object.entries(rd).forEac
12h(([e,t])=>{!function(e,t,n,r=tS()){let i=r&&tb(r);i&&(H&&ef.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[e3]:t,[e2]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",ny()),l=e,c=t,u&&c.recordLcpOnPageloadSpan&&(u.element&&l.setAttribute("lcp.element",es(u.element)),u.id&&l.setAttribute("lcp.id",u.id),u.url&&l.setAttribute("lcp.url",u.url.trim().slice(0,200)),null!=u.loadTime&&l.setAttribute("lcp.loadTime",u.loadTime),null!=u.renderTime&&l.setAttribute("lcp.renderTime",u.renderTime),l.setAttribute("lcp.size",u.size)),d?.sources&&c.recordClsOnPageloadSpan&&d.sources.forEach((e,t)=>l.setAttribute(`cls.source.${t+1}`,es(e.node)))}u=void 0,d=void 0,rd={}}(n,{recordClsOnPageloadSpan:!h,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:x,ignorePerformanceApiSpans:T}),ev(e,r3,void 0);let r=eV(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:c.spanContext().traceId,sampled:tf(c),dsc:tO(n)})}});function p(){i&&["interactive","complete"].includes(i.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}ev(e,r3,c),a&&i&&(i.addEventListener("readystatechange",()=>{p()}),p())}return{name:"BrowserTracing",setup(e){function r(){let e=tS(),t=e&&tb(e);if(t){let e="internal_error";H&&ef.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}if(nu||(r.tag="sentry_tracingErrorCallback",nu=!0,ns(r),nl(r)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=rt();if(r&&eA()){r.mark&&U.performance.mark("sentry-tracing-init");let i=nY(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=rn(eA()),r=rn(t.startTime);rd.fid={value:e.value,unit:"millisecond"},rd["mark.fid"]={value:n+r,unit:"second"}}),s=t?function(e){let t,n=0;if(!ri("largest-contentful-paint"))return;let r=nG(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);rs(e,(e,i)=>{var s,a,o,l;let c,u,d,p,h;s=n,a=t,o=i,l=e,nf&&ef.log(`Sending LCP span (${s})`),c=rn((eA()||0)+(a?.startTime||0)),u=eV().getScopeData().transactionName,d=a?es(a.element):"Largest contentful paint",p={[e0]:"auto.http.browser.lcp",[eZ]:"ui.webvital.lcp",[e8]:0,"sentry.pageload.span_id":o,"sentry.report_event":l},a&&(a.element&&(p["lcp.element"]=es(a.element)),a.id&&(p["lcp.id"]=a.id),a.url&&(p["lcp.url"]=a.url.trim().slice(0,200)),null!=a.loadTime&&(p["lcp.loadTime"]=a.loadTime),null!=a.renderTime&&(p["lcp.renderTime"]=a.renderTime),null!=a.size&&(p["lcp.size"]=a.size)),(h=re({name:d,transaction:u,attributes:p,startTime:c}))&&(h.addEvent("lcp",{[e2]:"millisecond",[e3]:s}),h.end(c)),r()})}(n):nG(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rd.lcp={value:e.value,unit:"millisecond"},u=t)},!0),a=n6("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rd.ttfb={value:e.value,unit:"millisecond"})},n3,l),o=e?function(e){let t,n=0;if(!ri("layout-shift"))return;let r=nK(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);rs(e,(e,i)=>{var s,a,o,l;let c,u,d,p,h;s=n,a=t,o=i,l=e,nf&&ef.log(`Sending CLS span (${s})`),c=rn((eA()||0)+(a?.startTime||0)),u=eV().getScopeData().transactionName,d=a?es(a.sources[0]?.node):"Layout shift",p={[e0]:"auto.http.browser.cls",[eZ]:"ui.webvital.cls",[e8]:a?.duration||0,"sentry.pageload.span_id":o,"sentry.report_event":l},a?.sources&&a.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=es(e.node)}),(h=re({name:d,transaction:u,attributes:p,startTime:c}))&&(h.addEvent("cls",{[e2]:"",[e3]:s}),h.end(c)),r()})}(n):nK(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rd.cls={value:e.value,unit:""},d=t)},!0);return()=>{i(),s?.(),a(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:h||!1,recordLcpStandaloneSpans:f||!1,client:e}),s&&function(){if(rt()&&eA()){let e=nX(rc);()=>{e()}}}(),a&&rt()&&eA()&&nQ("element",rf),c&&U.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=tS();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=rn(eA()+n.startTime),{start_timestamp:r,op:i}=th(t);if("navigation"===i&&r&&e<r)continue;let s=rn(n.duration),a={[e0]:"auto.ui.browser.metrics"}
12,{invoker:o,invokerType:l,sourceURL:c,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];a["browser.script.invoker"]=o,a["browser.script.invoker_type"]=l,c&&(a["code.filepath"]=c),u&&(a["code.function"]=u),-1!==d&&(a["browser.script.source_char_position"]=d),n9(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):o&&nQ("longtask",({entries:e})=>{let t=tS();if(!t)return;let{op:n,start_timestamp:r}=th(t);for(let i of e){let e=rn(eA()+i.startTime),s=rn(i.duration);"navigation"===n&&r&&e<r||n9(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[e0]:"auto.ui.browser.metrics"}})}}),p&&nQ("event",({entries:e})=>{let t=tS();if(t){for(let n of e)if("click"===n.name){let e=rn(eA()+n.startTime),r=rn(n.duration),i={name:es(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[e0]:"auto.ui.browser.metrics"}},s=eo(n.target);s&&(i.attributes["ui.component_name"]=s),n9(t,e,e+r,i)}}}),M&&i){let e=()=>{n=eD()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function m(){let t=e[r3];t&&!th(t).timestamp&&(rm&&ef.log(`[Tracing] Finishing current active span with op: ${th(t).op}`),t.setAttribute(e1,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if(eG()!==e)return;if(n?.isRedirect){rm&&ef.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),A(e,{op:"navigation.redirect",...t},!1);return}m(),eJ().setPropagationContext({traceId:ex(),sampleRand:Math.random()});let r=eV();r.setPropagationContext({traceId:ex(),sampleRand:Math.random()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),A(e,{op:"navigation",...t})}),e.on("startPageLoadSpan",(t,n={})=>{if(eG()!==e)return;m();let r=function(e,t){let n=function(e){let t;if(!e)return;let n=e.match(to);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=ti(t);if(!n?.traceId)return{traceId:ex(),sampleRand:Math.random()};let i=function(e,t){let n=ta(t?.sample_rand);if(void 0!==n)return n;let r=ta(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}(n.sentryTrace||r2("sentry-trace"),n.baggage||r2("baggage")),i=eV();i.setPropagationContext(r),i.setSDKProcessingMetadata({normalizedRequest:rP()}),A(e,{op:"pageload",...t})})},afterAllSetup(e){var t,i,a,o,l,c,u;let d,h,f=ea();if("off"!==R&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=U.sessionStorage?.getItem(rL);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if(tb(e)!==e)return;let t=eV().getPropagationContext();i=function(e,t,n){let r=th(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[eX])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(rm&&ef.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{"sentry.link.type":"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!r$(s)}`)),i)}(i,e,t),r&&function(e){try{U.sessionStorage.setItem(rL,JSON.stringify(e))}catch(e){rm&&ef.warn("Could not store previous trace in sessionStorage",e)}}(i)});let s=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=eV(),n=t.getPropagationContext();if(s&&n.parentSpanId){s=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(r$(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=r$(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[eQ]:i.sampleRate}})}(e,{linkPreviousTrace:R,consistentTraceSampling:O}),U.location){if(I){let n,r=eA();t=e,i={name:U.location.pathname,startTime:r?r/1e3:void 0,attributes:{[eY]:"url",[e0]:"auto.pageload.browser"}},t.emit("startPageLoadSpan",i,void 0),eV().setTransactionName(i.name),(n=t[r3])&&t.emit("afterStartPageLoadSpan",n)}C&&np(({to:t,from:r})=>{var i,s;let a,o;if(void 0===r&&f?.indexOf(t)!==-1){f=void 0;return}f=void 0;let l=t4(t),c=e[r3],u=c&&M&&(i=c,s=n,a=th(i),!((o=eO())-a.start_timestamp>.3)&&(!s||!(o-s<=.3)));!function(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let s=eV();s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...rP(),url:r}}),e[r3]}(e,{name:l?.pathname||U.location.pathname,attributes:{[eY]:"url",[e0]:"auto.navigation.browser"}},{url:t,isRedirect:u})})}v&&(U.document?U.document.addEventListener("visibilitychange",()=>{let e=tS();if(!e)return;let t=tb(e);if(U.document.hidden&&t){let e="cancelled",{op:n,status:r}=th(t);rm&&ef.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):rm&&ef.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p&&(a=e,o=g,l=y,c=_,u=r,U.document&&addEventListener("click",()=>{let e="ui.action.click",t=a[r3];
12if(t&&["navigation","pageload"].includes(th(t).op)){rm&&ef.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(d&&(d.setAttribute(e1,"interactionInterrupted"),d.end(),d=void 0),!u.name){rm&&ef.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}d=t6({name:u.name,op:e,attributes:{[eY]:u.source||"url"}},{idleTimeout:o,finalTimeout:l,childSpanTimeout:c})},{capture:!0})),s&&(nQ("event",h=({entries:e})=>{let t=tS(),n=t&&tb(t);e.forEach(e=>{if(!("duration"in e)||!n)return;let t=e.interactionId;if(null!=t&&!ro.has(t)){if(ra.length>10){let e=ra.shift();ro.delete(e)}ra.push(t),ro.set(t,n)}})}),nQ("first-input",h)),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:l}={...rQ,...t},c="function"==typeof s?s:e=>!0,u=e=>(function(e,t){let n=ea();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let s=r.origin===i;return t?ey(r.toString(),t)||s&&ey(r.pathname,t):s}{let n=!!e.match(/^\/(?!\/)/);return t?ey(e,t):n}})(e,o),d={};if(n){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=rX.get(e.span_id);t&&(e.timestamp=t/1e3,rX.delete(e.span_id))}}),e)),i&&(nt(t="fetch-body-resolved",e=>{if(e.response){let t=rY.get(e.response);t&&e.endTimestamp&&rX.set(t,e.endTimestamp)}}),nn(t,()=>rF(rB))),rj(e=>{let t=function(e,t,n,r,i="auto.http.browser"){var s,a,o,l,c;let u,d;if(!e.fetchData)return;let{method:p,url:h}=e.fetchData,f=e4()&&t(h);if(e.endTimestamp&&f){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){e7(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let m=!!tS(),g=f&&m?tQ((s=h,a=p,o=i,{name:(u=t4(s))?`${a} ${function(e){if(t8(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()}(u)}`:a,attributes:(l=s,c=u,d={url:l,type:"fetch","http.method":a,[e0]:o,[eZ]:"http.client"},c&&(t8(c)||(d["http.url"]=c.href,d["server.address"]=c.host),c.search&&(d["http.query"]=c.search),c.hash&&(d["http.fragment"]=c.hash)),d)})):new tD;if(e.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(e.fetchData.url)){let t=e.args[0],n=e.args[1]||{},r=function(e,t,n){var r;let i=rH({span:n}),s=i["sentry-trace"],a=i.baggage;if(!s)return;let o=t.headers||(ei(e)?e.headers:void 0);if(!o)return{...i};if(r=o,"u">typeof Headers&&en(r,Headers)){let e=new Headers(o);if(e.get("sentry-trace")||e.set("sentry-trace",s),a){let t=e.get("baggage");t?rq(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(o)){let e=[...o];o.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]);let t=o.find(e=>"baggage"===e[0]&&rq(e[1]));return a&&!t&&e.push(["baggage",a]),e}{let e="sentry-trace"in o?o["sentry-trace"]:void 0,t="baggage"in o?o.baggage:void 0,n=t?Array.isArray(t)?[...t]:[t]:[],r=t&&(Array.isArray(t)?t.find(e=>rq(e)):rq(t));return a&&!r&&n.push(a),{...o,"sentry-trace":e??s,baggage:n.length>0?n.join(","):void 0}}}(t,n,e4()&&m?g:void 0);r&&(e.args[1]=n,n.headers=r)}let y=eG();if(y){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};y.emit("beforeOutgoingRequestSpan",g,t)}return g}(e,c,u,d);if(e.response&&e.fetchData.__span&&rY.set(e.response,e.fetchData.__span),t){let n=r0(e.fetchData.url),r=n?t7(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),a&&rZ(t),l?.(t,{headers:e.headers})}})}r&&rJ(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i?.[rV];if(!i||i.__sentry_own_request__||!s)return;let{url:a,method:o}=s,l=e4()&&t(a);if(e.endTimestamp&&l){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==s.status_code&&(e7(t,s.status_code),t.end(),delete r[e]);return}let c=r0(a),u=c?t7(c):t7(a),d=a.split(/[?#]/,1)[0],p=!!tS(),h=l&&p?tQ({name:`${o} ${d}`,attributes:{url:a,type:"xhr","http.method":o,"http.url":c,"server.address":u?.host,[e0]:"auto.http.browser",[eZ]:"http.client",...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new tD;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h,n(a)&&function(e,t){let{"sentry-trace":n,baggage:r}=rH({span:t});n&&function(e,t,n){let r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){let t=r?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,n,r)}(i,e4()&&p?h:void 0);let f=eG();return f&&f.emit("beforeOutgoingRequestSpan",h,e),h}(e,c,u,d);if(t){let n;a&&rZ(t);try{n=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(t,{headers:n})}})}(e,{traceFetch:b,traceXHR:S,trackFetchStreamPerformance:w,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:k,onRequestSpanStart:D})}}})({idleTimeout:5e3}),{name:"BrowserProfiling",setup(e){let t=tS(),n=t&&tb(t);n&&io(n)&&ic(n)&&id(n),e.on("spanStart",e=>{e===tb(e)&&ic(e)&&id(e)}),e.on("beforeEnvelope",e=>{let t;if(!iu.size)return;let n=(t=[],tz(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];
12r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){let t=e?.contexts,n=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof n||!n){rm&&ef.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let s=function(e){let t=iu.get(e);return t&&iu.delete(e),t}(n);if(!s){rm&&ef.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}let a=function(e,t,n,r){return(n.samples.length<2?(rm&&ef.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(rm&&ef.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){let i;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let s=("string"==typeof(i=r.contexts?.trace?.trace_id)&&32!==i.length&&rm&&ef.log(`[Profiling] Invalid traceId: ${i} on profiled event`),"string"!=typeof i)?"":i,a="thread_metadata"in n?n:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[r4]:{name:"main"}}},i=e.samples[0];if(!i)return r;let s=i.timestamp,a=eA(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=o-(a||o);return e.samples.forEach((i,a)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((i.timestamp+l-s)*1e6).toFixed(0),stack_id:t,thread_id:r4};return}let o=e.stacks[i.stackId],c=[];for(;o;){c.push(o.frameId);let t=e.frames[o.frameId];t&&void 0===r.frames[o.frameId]&&(r.frames[o.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),o=void 0===o.parentId?void 0:e.stacks[o.parentId]}let u={elapsed_since_start_ns:((i.timestamp+l-s)*1e6).toFixed(0),stack_id:n,thread_id:r4};r.stacks[n]=c,r.samples[a]=u,n++}),r}(n),o=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*eD()),l="number"==typeof r.timestamp?1e3*r.timestamp:1e3*eD();return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||tE,runtime:{name:"javascript",version:U.navigator.userAgent},os:{name:r9,version:ie,build_number:ir},device:{locale:is,model:ii,manufacturer:ir,architecture:it,is_emulator:!1},debug_meta:{images:function(e){let t=eG(),n=t?.getOptions(),r=n?.stackParser;if(!r)return[];let i=rS(r);if(!i)return[];let s=[];for(let t of e)t&&i[t]&&s.push({type:"sourcemap",code_file:t,debug_id:i[t]});return s}(n.resources)},profile:a,transactions:[{name:r.transaction||"",id:r.event_id||ex(),trace_id:s,active_thread_id:r4,relative_start_ns:"0",relative_end_ns:((l-o)*1e6).toFixed(0)}]}}(e,t,n,r)}(n,i,s,e);a&&r.push(a)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)})}}];(r>0||i>0)&&s.push(new ob({maskAllText:!0,blockAllMedia:!0,beforeErrorSampling:e=>{let t=e.exception?.values?.[0];if(!t)return!1;let n=t.type||"",r=t.value||"",i=`${n}: ${r}`;return!(lm.some(e=>"string"==typeof e?i.includes(e):e.test(i))||"AxiosError"===n||"LiblibAxiosError"===n||"onunhandledrejection"===(t.mechanism?.type||"")&&/axios/i.test(i))}})),oB(t={...{dsn:e.dsn,environment:e.environment,...e.release?{release:e.release}:{},initialScope:{user:n},sendDefaultPii:e.sendDefaultPii??!0,sampleRate:e.sampleRate??1,tracesSampleRate:e.tracesSampleRate??.1,profilesSampleRate:e.profilesSampleRate??.05,tracePropagationTargets:e.tracePropagationTargets,replaysSessionSampleRate:r,replaysOnErrorSampleRate:i,integrations:s,beforeSend:(e,t)=>{if(((e,t)=>{let n=e.exception?.values?.[0]?.stacktrace?.frames;if(n?.some(e=>e.filename&&lp.some(t=>e.filename.includes(t)))||(e=>{let t;if(!e?.includes("://"))return!1;if(/\/googleads\//i.test(e))return!0;if(lf.some(t=>t.test(e)))return!1;try{t=new URL(e).hostname.toLowerCase()}catch{return!1}return!!t&&!lh.some(e=>t===e||t.endsWith(`.${e}`))})((e=>{if(!e?.length)return null;for(let t=e.length-1;t>=0;t-=1){let n=e[t]?.filename;if(n&&"<anonymous>"!==n&&"[native code]"!==n)return n}return null})(n)))return!0;let r=e.exception?.values;if(r?.some(e=>{let t=(e.type||"").toLowerCase(),n=(e.mechanism?.type||"").toLowerCase();return"unhandledrejection"===t||"onunhandledrejection"===n})){let e=t?.originalException;if(e?.isAxiosError||e?.name==="AxiosError"||e?.axiosConfig)return!0}let i=e.exception?.values?.[0]?.value||"",s=e.exception?.values?.[0]?.type||"",a=`${s}: ${i}`;return!!lm.some(e=>"string"==typeof e?a.includes(e):e.test(a))})(e,t))return null;(e=>{let t=e.exception?.values?.[0];if(t?.type!=="UnhandledRejection"||!lg.test(t.value||"")||t.stacktrace?.frames?.length)return;let n=e.breadcrumbs||[],r=null;for(let e=n.length-1;e>=0&&!r;e-=1)r=ly(n[e]);r&&(e.tags={...e.tags,rejectionContext:r},e.fingerprint=["{{ default }}",r])})(e);try{let t=new URLSearchParams(window.location.search).get("projectId");t&&(e.tags={...e.tags,projectId:t})}catch{}return e}}},"react"),rT("react",{version:lu.version}),function(e={}){var t,n;
12let r,i,s=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===U.window||U.nw)return!1;let e=U.chrome||U.browser;if(!e?.runtime?.id)return!1;let t=ea();return!(U===U.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}()&&(rm&&eu(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),a={...e,enabled:!s&&e.enabled,stackParser:Array.isArray(t=e.stackParser||la)?tP(...t):t,integrations:function(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(n){t=ok(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=ok(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&ey(n,t)}(e,t.ignoreTransactions))return H&&ef.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
13Event: ${eI(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&ow(n).some(e=>ey(e,r)))return H&&ef.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
14Event: ${eI(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return H&&ef.warn(`Event dropped due to not having an error message, error type or stacktrace.
15Event: ${eI(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=ox(e);return!!n&&ey(n,t)}(e,t.denyUrls))return H&&ef.warn(`Event dropped due to being matched by \`denyUrls\` option.
16Event: ${eI(e)}.
17Url: ${ox(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=ox(e);return!n||ey(n,t)}(e,t.allowUrls))return H&&ef.warn(`Event dropped due to not being matched by \`allowUrls\` option.
18Event: ${eI(e)}.
19Url: ${ox(e)}`),!0}return!1}(n,t)?n:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){k=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=eS(this),n=oT.has(eG())&&void 0!==t?t:this;return k.apply(n,e)}}catch{}},setup(e){oT.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&e_(U,"setTimeout",o3),t.setInterval&&e_(U,"setInterval",o3),t.requestAnimationFrame&&e_(U,"requestAnimationFrame",o5),t.XMLHttpRequest&&"XMLHttpRequest"in U&&e_(XMLHttpRequest.prototype,"send",o6);let e=t.eventTarget;e&&(Array.isArray(e)?e:o2).forEach(e=>{var n,r;let i;return n=e,r=t,i=U[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&(e_(i,"addEventListener",function(e){return function(t,i,s){var a,o,l,c;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=rN(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:tj(i),target:n},handled:!1,type:"instrument"}}))}catch{}return r.unregisterOriginalCallbacks&&(o=this,l=t,c=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,c)),e.apply(this,[t,rN(i,{mechanism:{data:{function:"addEventListener",handler:tj(i),target:n},handled:!1,type:"instrument"}}),s])}}),e_(i,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}})))})}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,s,a,o,l;let c;t.console&&(n=e,nt(c="console",function(e){if(eG()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:ip(e.level),message:eg(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${eg(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);ih(t,{input:e.args,level:e.level})}),nn(c,o0)),t.dom&&iT((r=e,i=t.dom,function(e){let t,n;if(eG()!==r)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(rm&&ef.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{var o;let r=e.event,i=(o=r)&&o.target?r.target:r;t=es(i,{keyAttrs:s,maxStringLength:a}),n=eo(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),ih(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&rJ((s=e,function(e){if(eG()!==s)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[rV];if(!t||!n||!r)return;let{method:i,url:a,status_code:o,body:l}=r,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},u={category:"xhr",data:{method:i,url:a,status_code:o},type:"http",level:o1(o)};s.emit("beforeOutgoingRequestBreadcrumb",u,c),ih(u,c)})),t.fetch&&rj((a=e,function(e){if(eG()!==a)return;let{startTimestamp:t,endTimestamp:n}=e;
19if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:r,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",s,i),ih(s,i)}else{let r=e.response,i={...e.fetchData,status_code:r?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,r?.status;let s={input:e.args,response:r,startTimestamp:t,endTimestamp:n},o={category:"fetch",data:i,type:"http",level:o1(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",o,s),ih(o,s)}})),t.history&&np((o=e,function(e){if(eG()!==o)return;let t=e.from,n=e.to,r=t7(U.location.href),i=t?t7(t):void 0,s=t7(n);i?.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),ih({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){eG()===l&&ih({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:eI(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,ns(e=>{var t,r,i,s;let a,o,l,c,u,d,{stackParser:p,attachStacktrace:h}=o4();if(eG()!==n||rA>0)return;let{msg:f,url:m,line:g,column:y,error:_}=e,v=(t=oX(p,_||f,void 0,h,!1),r=m,i=g,s=y,u=(c=(l=(o=(a=t.exception=t.exception||{}).values=a.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=c.frames||[],d=Y(r)&&r.length>0?r:ea(),0===u.length&&u.push({colno:s,filename:d,function:"?",in_app:!0,lineno:i}),t);v.level="error",rx(v,{originalException:_,mechanism:{handled:!1,type:"onerror"}})}),o8("onerror")),t.onunhandledrejection&&(r=e,nl(e=>{var t;let{stackParser:n,attachStacktrace:i}=o4();if(eG()!==r||rA>0)return;let s=function(e){if(Q(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}(e),a=Q(s)?(t=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):oX(n,s,void 0,i,!0);a.level="error",rx(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}),o8("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,s){if(!i.exception?.values||!s||!en(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,n,r,i,s,a,o,l){if(a.length>=r+1)return a;let c=[...a];if(en(i[s],Error)){o7(o,l);let a=t(n,i[s]),u=c.length;o9(a,s,u,l),c=e(t,n,r,i[s],s,[a,...c],a,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if(en(i,Error)){o7(o,l);let u=t(n,i),d=c.length;o9(u,`errors[${a}]`,d,l),c=e(t,n,r,i,s,[u,...c],u,d)}}),c}(e,t,r,s.originalException,n,i.exception.values,a,0))}(oV,i.getOptions().stackParser,n,t,e,r)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var t,n,i,s,a,o;let l,c,u,d;if(t=e,(n=r)&&(i=t,s=n,l=i.message,c=s.message,(l||c)&&(!l||c)&&(l||!c)&&l===c&&oC(i,s)&&oI(i,s)&&1||(a=t,o=n,u=oM(o),d=oM(a),u&&d&&u.type===d.type&&u.value===d.value&&oC(a,o)&&oI(a,o))))return H&&ef.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return r=e}},{name:"HttpContext",preprocessEvent(e){if(!U.navigator&&!U.location&&!U.document)return;let t=rP(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}},{name:"BrowserSession",setupOnce(){if(void 0===U.document){rm&&ef.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}rM({ignoreDuration:!0}),rD(),np(({from:e,to:t})=>{void 0!==e&&e!==t&&(rM({ignoreDuration:!0}),rD())})}}]:e.defaultIntegrations}),transport:e.transport||lc};!0===a.debug&&(H?ef.enable():eu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eV().update(a.initialScope),n=i=new oZ(a),eV().setClient(n),i.init()}(t),rC(n),(()=>{try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&rI("timezone",e)}catch{}try{rI("timezone_offset",lw(-new Date().getTimezoneOffset()))}catch{}})(),lv=!0,lb=e,ld(`Sentry initialized: ${e.dsn}`)},"reportError",0,(e,t={})=>{eK(n=>{t.user&&n.setUser(t.user),t.level&&n.setLevel(t.level),t.tags&&Object.entries(t.tags).forEac
19h(([e,t])=>n.setTag(e,t)),t.extra&&Object.entries(t.extra).forEach(([e,t])=>n.setExtra(e,t)),t.contexts&&Object.entries(t.contexts).forEach(([e,t])=>n.setContext(e,t)),rk(e)})},"sentryConfig",0,lk,"setSentryTag",0,(e,t)=>{rI(e,t)},"setSentryUser",0,e=>{rC({timezone:l_(),...e})}],476565)}]);

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.