PageSourceSearch

https://cormacmccarthybooks.com/_nuxt/CBH3teFq.js

js cormacmccarthybooks.com collected 2026-10-02 13:18:32 UTC 161,448 bytes, 11 lines download raw bytes

1import{aa as bt,al as Kr,f as Vr,g as Xr,bc as ki,D as H,am as O,cy as Ue,a2 as zn,b6 as mn,cf as jn,bT as pe,bZ as Ii,Q as qn,ac as Ti,J as Ri,a5 as Ci,c as Mi,ae as xi,b_ as Oi,k as Jr,bG as Qr,aS as Ai,aE as Ni,aC as Ke,aM as gn,bL as dt,aq as Zr,b3 as es,bC as Gt,c2 as Gn,bh as Di,b8 as Li,b4 as Yt,aJ as Pi,a4 as wt,ax as Kt,as as Yn,bX as Fi,S as Kn,az as G,ap as oe,aO as ts,aG as be,c7 as Ve,b1 as Vt,G as ce,A as ns,bg as rs,C as Bi,av as ie,bA as Vn,cc as ss,aH as Xt,a$ as is,aY as Xn,aZ as Ui,v as Jn,a_ as $i,b0 as yn,u as ft,br as Wi,at as Hi,W as q,l as fe,M as Qn,b2 as zi,a as Jt,ag as ji,U as xe,O as qi,w as Gi,B as _n,i as os,bD as Bt,b as kt,aV as Sn,aA as Yi,bU as Zn,cM as ze,aI as Oe,c5 as er,a1 as tr,y as Ki,c1 as as,$ as cs,z as Vi,b7 as Xi,aN as En,aK as Ji,aL as Qi,c4 as Zi,ay as us,aP as eo,c3 as nr,h as to,aF as no,t as ro,N as so,K as io,s as oo,x as ao,H as co,bY as uo,bo as vn,ad as lo,aQ as fo,X as ho,a0 as po,ct as mo}from"./BPlt5jNJ.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c1bd06d2-ebf3-4622-ad89-e3223246c7a0",e._sentryDebugIdIdentifier="sentry-dbid-c1bd06d2-ebf3-4622-ad89-e3223246c7a0")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:splash-application":!0})}const go="7";function yo(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function _o(e){return`${yo(e)}${e.projectId}/envelope/`}function So(e,t){const n={sentry_version:go};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Eo(e,t,n){return t||`${_o(e)}?${So(e,n)}`}function vo(e,t,n){const r=[{type:"client_report"},{timestamp:Kr(),discarded_events:e}];return bt(t?{dsn:t}:{},[r])}function ls(e){const t=[];e.message&&t.push(e.message);try{const 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}function bo(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[Xr],exclusive_time:o?.[Vr],measurements:e.measurements,is_segment:!0}}function wo(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[Xr]:e.profile_id},...e.exclusive_time&&{[Vr]:e.exclusive_time}}}},measurements:e.measurements}}const rr="Not capturing exception because it's already been captured.",sr="Discarded session because of missing or non-string release",ds=Symbol.for("SentryInternalError"),fs=Symbol.for("SentryDoNotSendEventError");function ct(e){return{message:e,[ds]:!0}}function Ut(e){return{message:e,[fs]:!0}}function ir(e){return!!e&&typeof e=="object"&&ds in e}function or(e){return!!e&&typeof e=="object"&&fs in e}class ko{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ki(t.dsn):H&&O.warn("No DSN provided, client will not send events."),this._dsn){const n=Eo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=Ue();if(zn(t))return H&&O.log(rr),s;const i={event_id:s,...n};return this._process(this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r))),i.event_id}captureMessage(t,n,r,s){const i={event_id:Ue(),...r},o=es(t)?t:String(t),a=mn(t)?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,s))),i.event_id}captureEvent(t,n,r){const s=Ue();if(n?.originalException&&zn(n.originalException))return H&&O.log(rr),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,a||r,c)),i.event_id}captureSession(t){this.sendSession(t),jn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;
vendor: 7,926 bytes, lines 1-2
1return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):pe(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Ii(this,t,this._integrations),n||qn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Ti(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Ri(r,Ci(i));const s=this.sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const{release:n,environment:r=Mi}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){H&&O.warn(sr);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){H&&O.warn(sr);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=xi(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;H&&O.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(H&&O.error("Error while sending envelope:",n),n)):(H&&O.error("Transport disabled"),pe({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Oi(this,t),qn(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0;for(const c of i)if(c.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(jn(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Jr(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,t&&r>=t&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Qr(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:Ai(r),...a.contexts};const c=Ni(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Ke(),s=gn()){return H&&Qt(t)&&O.log(`Captured error event \`${ls(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{H&&(or(i)?O.log(i.message):ir(i)?O.warn(i.message):O.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=hs(t),c=Qt(t),u=t.type||"error",d=`before send for type \`${u}\``,l=typeof o>"u"?void 0:Gt(o);if(c&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),dt(Ut(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,s).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",f),Ut("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const m=To(this,i,h,n);return Io(m,d)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",f),a){const _=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw Ut(`${d} returned \`null\`, will not send event.`)}const p=r.getSession()||s.getSession();if(c&&p&&this._updateSessionFromEvent(p,h),a){const y=h.sdkProcessingMetadata?.spanCountBeforeProcessing||0,_=h.spans?h.spans.length:0,k=y-_;k>0&&this.recordDroppedEvent("before_send","span",k)}const m=h.transaction_info;if(a&&m&&h.transaction!==t.transaction){const y="custom";h.transaction_info={...m,source:y}}return this.sendEvent(h,n),h}).then(null,h=>{throw or(h)||ir(h)?h:(this.captureException(h,{data:{__sentry__:!0},originalException:h}),ct(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2Reason: ${h}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){H&&O.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){H&&O.log("No outcomes to send");return}if(!this._dsn){H&&O.log("No dsn provided, will not send outcomes");return}H&&O.log("Sending outcomes:",t);const n=vo(t,this._options.tunnel&&Zr(this._dsn));this.sendEnvelope(n)}}function Io(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Li(e))return e.then(r=>{if(!Yt(r)&&r!==null)throw ct(n);return r},r=>{throw ct(`${t} rejected with ${r}`)});if(!Yt(e)&&e!==null)throw ct(n);return e}function To(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o}=t;let a=n;if(Qt(a)&&s)return s(a,r);if(hs(a)){if(o){const c=o(bo(a));if(c?a=Di(n,wo(c)):Gn(),a.spans){const u=[];for(const d of a.spans){const l=o(d);l?u.push(l):(Gn(),u.push(d))}a.spans=u}}if(i){if(a.spans){const c=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:c}}return i(a,r)}}return a}function Qt(e){return e.type===void 0}function hs(e){return e.type==="transaction"}function Ro(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Co(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Zr(r)),bt(s,[Ro(e)])}function $t(e,t){const n=Mo(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Co(n,r._metadata,r.tunnel,e.getDsn());ps().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function Mo(e){return ps().get(e)}function ps(){return Pi("clientToLogBufferMap",()=>new WeakMap)}function xo(e,t){t.debug===!0&&(H?O.enable():wt(()=>{})),Ke().update(t.initialScope);const r=new e(t);return Oo(r),r.init(),r}function Oo(e){Ke().setClient(e)}const ms=Symbol.for("SentryBufferFullError");function Ao(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]||Promise.resolve(void 0)}function s(o){if(!n())return dt(ms);const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new Jr((a,c)=>{let u=t.length;if(!u)return a(!0);const d=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(l=>{pe(l).then(()=>{--u||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:i}}const No=60*1e3;function Do(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?No:r-t}function Lo(e,t){return e[t]||e.all||0}function gs(e,t,n=Date.now()){return Lo(e,t)>n}function ys(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const h of u.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[h]=r+f):s[h]=r+f}else o?s.all=r+Do(o,r):t===429&&(s.all=r+60*1e3);return s}const Po=64;function Fo(e,t,n=Ao(e.bufferSize||Po)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Kt(o,(l,f)=>{const h=Yn(f);
2gs(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(l)}),a.length===0)return pe({});const c=bt(o[0],a),u=l=>{Kt(c,(f,h)=>{e.recordDroppedEvent(l,Yn(h))})},d=()=>t({body:Fi(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&H&&O.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=ys(r,l),l),l=>{throw u("network_error"),H&&O.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===ms)return H&&O.error("Skipped sending event because buffer is full."),u("queue_overflow"),pe({});throw l})}return{send:i,flush:s}}function Bo(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return $o(e,n)||Uo(e,r)}function Uo(e,t){return t?ar(e)===ar(t):!1}function $o(e,t){return t?e.includes(t.host):!1}function ar(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Wo(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function Ho(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function _s(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Kn})),version:Kn}),e._metadata=s}function zo(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?c():r}function l(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return l.cancel=u,l.flush=d,l}const jo=100;function Se(e,t){const n=G(),r=gn();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=jo}=n.getOptions();if(i<=0)return;const a={timestamp:Kr(),...e},c=s?wt(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let cr;const qo="FunctionToString",ur=new WeakMap,Go=(()=>({name:qo,setupOnce(){cr=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ts(this),n=ur.has(G())&&t!==void 0?t:this;return cr.apply(n,e)}}catch{}},setup(e){ur.set(e,!0)}})),Yo=oe(Go),Ko=[/^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$/],Vo="EventFilters",Xo=oe((e={})=>{let t;return{name:Vo,setup(n){const r=n.getOptions();t=lr(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=lr(e,i)}return Qo(n,t)?null:n}}}),Jo=oe(((e={})=>({...Xo(e),name:"InboundFilters"})));function lr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ko],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Qo(e,t){if(e.type){if(e.type==="transaction"&&ea(e,t.ignoreTransactions))return H&&O.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
3Event: ${be(e)}`),!0}else{if(Zo(e,t.ignoreErrors))return H&&O.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
4Event: ${be(e)}`),!0;if(sa(e))return H&&O.warn(`Event dropped due to not having an error message, error type or stacktrace.
5Event: ${be(e)}`),!0;if(ta(e,t.denyUrls))return H&&O.warn(`Event dropped due to being matched by \`denyUrls\` option.
6Event: ${be(e)}.
7Url: ${ht(e)}`),!0;if(!na(e,t.allowUrls))return H&&O.warn(`Event dropped due to not being matched by \`allowUrls\` option.
8Event: ${be(e)}.
9Url: ${ht(e)}`),!0}return!1}function Zo(e,t){return t?.length?ls(e).some(n=>Ve(n,t)):!1}function ea(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Ve(n,t):!1}function ta(e,t){if(!t?.length)return!1;const n=ht(e);return n?Ve(n,t):!1}function na(e,t){if(!t?.length)return!0;const n=ht(e);return n?Ve(n,t):!0}function ra(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ht(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ra(n):null}catch{return H&&O.error(`Cannot extract url for event ${be(e)}`),null}}function sa(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function ia(e,t,n,r,s,i){if(!s.exception?.values||!i||!Vt(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Zt(e,t,r,i.originalException,n,s.exception.values,o,0))}function Zt(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(Vt(r[s],Error)){dr(o,a);const u=e(t,r[s]),d=c.length;fr(u,s,d,a),c=Zt(e,t,n,r[s],s,[u,...c],u,d)}
9return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(Vt(u,Error)){dr(o,a);const l=e(t,u),f=c.length;fr(l,`errors[${d}]`,f,a),c=Zt(e,t,n,u,s,[l,...c],l,f)}}),c}function dr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function fr(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}}const Ss=new Map,hr=new Set;function oa(e){if(ce._sentryModuleMetadata)for(const t of Object.keys(ce._sentryModuleMetadata)){const n=ce._sentryModuleMetadata[t];if(hr.has(t))continue;hr.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){Ss.set(s.filename,n);break}}}function aa(e,t){return oa(e),Ss.get(t)}function ca(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(const r of n.stacktrace.frames||[]){if(!r.filename||r.module_metadata)continue;const s=aa(e,r.filename);s&&(r.module_metadata=s)}})}catch{}}function ua(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}function la(e){const t="console";ns(t,e),rs(t,da)}function da(){"console"in ce&&Bi.forEach(function(e){e in ce.console&&ie(ce.console,e,function(t){return Vn[e]=t,function(...n){ss("console",{args:n,level:e}),Vn[e]?.apply(ce.console,n)}})})}function Es(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const fa="Dedupe",ha=(()=>{let e;return{name:fa,processEvent(t){if(t.type)return t;try{if(ma(t,e))return H&&O.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),pa=oe(ha);function ma(e,t){return t?!!(ga(e,t)||ya(e,t)):!1}function ga(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!bs(e,t)||!vs(e,t))}function ya(e,t){const n=pr(t),r=pr(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!bs(e,t)||!vs(e,t))}function vs(e,t){let n=Xt(e),r=Xt(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function bs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function pr(e){return e.exception?.values?.[0]}const _a=oe(e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Kt(n,(r,s)=>{if(s==="event"){const i=Array.isArray(r)?r[1]:void 0;i&&(ua(i),r[1]=i)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;ca(r,n)})},processEvent(t){const n=Sa(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](i=>!i.some(o=>e.filterKeys.includes(o)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));function Sa(e){const t=Xt(e);if(t)return t.filter(n=>!!n.filename).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(mr)).map(r=>r.slice(mr.length)):[])}const mr="_sentryBundlerPluginAppKey:";function ws(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Ea(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function va(){return"npm"}function ba(){return!Ea()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function gr(){return typeof window<"u"&&(!ba()||wa())}function wa(){return ce.process?.type==="renderer"}function bn(e,t){const n=wn(e,t),r={type:Ca(t),value:Ma(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function ka(e,t,n,r){const i=G()?.getOptions().normalizeDepth,o=Da(t),a={__serialized__:Wi(t,i)};if(o)return{exception:{values:[bn(e,o)]},extra:a};const c={exception:{values:[{type:yn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Aa(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=wn(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Wt(e,t){return{exception:{values:[bn(e,t)]}}}function wn(e,t){const n=t.stacktrace||t.stack||"",r=Ta(t),s=Ra(t);try{return e(n,r,s)}catch{}return[]}const Ia=/Minified React error #\d+;/i;function Ta(e){return e&&Ia.test(e.message)?1:0}function Ra(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function ks(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Ca(e){const t=e?.name;return!t&&ks(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ma(e){const t=e?.message;return ks(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function xa(e,t,n,r){const s=n?.syntheticException||void 0,i=kn(e,t,s,r);return ft(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),pe(i)}function Oa(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=en(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),pe(o)}
9function kn(e,t,n,r,s){let i;if(is(t)&&t.error)return Wt(e,t.error);if(Xn(t)||Ui(t)){const o=t;if("stack"in t)i=Wt(e,t);else{const a=o.name||(Xn(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=en(e,c,n,r),Jn(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return $i(t)?Wt(e,t):Yt(t)||yn(t)?(i=ka(e,t,n,s),ft(i,{synthetic:!0}),i):(i=en(e,t,n,r),Jn(i,`${t}`),ft(i,{synthetic:!0}),i)}function en(e,t,n,r){const s={};if(r&&n){const i=wn(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),ft(s,{synthetic:!0})}if(es(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function Aa(e,{isUnhandledRejection:t}){const n=Hi(e),r=t?"promise rejection":"exception";return is(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:yn(e)?`Event \`${Na(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Na(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Da(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const La=5e3;class Pa extends ko{constructor(t){const n=Fa(t),r=q.SENTRY_SDK_SOURCE||va();_s(n,"browser",["browser"],r),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:a}=this._options,c=o??a?.enableLogs;q.document&&(i||c)&&q.document.addEventListener("visibilitychange",()=>{q.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),c&&$t(this))}),c&&(this.on("flush",()=>{$t(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{$t(this)},La)})),s&&(this.on("postprocessEvent",Wo),this.on("beforeSendSession",Ho))}eventFromException(t,n){return xa(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Oa(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function Fa(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ba=1e3;let yr,tn,nn;function Is(e){ns("dom",e),rs("dom",Ua)}function Ua(){if(!fe.document)return;const e=ss.bind(null,"dom"),t=_r(e,!0);fe.document.addEventListener("click",t,!1),fe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=fe[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(ie(s,"addEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){const l=_r(e);d.handler=l,i.call(this,o,l,c)}d.refCount++}catch{}return i.call(this,o,a,c)}}),ie(s,"removeEventListener",function(i){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(i.call(this,o,d.handler,c),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,c)}}))})}function $a(e){if(e.type!==tn)return!1;try{if(!e.target||e.target._sentryId!==nn)return!1}catch{}return!0}function Wa(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function _r(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Ha(n);if(Wa(n.type,r))return;Qn(n,"_sentryCaptured",!0),r&&!r._sentryId&&Qn(r,"_sentryId",Ue());
9const s=n.type==="keypress"?"input":n.type;$a(n)||(e({event:n,name:s,global:t}),tn=n.type,nn=r?r._sentryId:void 0),clearTimeout(yr),yr=fe.setTimeout(()=>{nn=void 0,tn=void 0},Ba)}}function Ha(e){try{return e.target}catch{return null}}const ut={};function Ts(e){const t=ut[e];if(t)return t;let n=fe[e];if(zi(n))return ut[e]=n.bind(fe);const r=fe.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){Jt&&O.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(ut[e]=n.bind(fe))}function Sr(e){ut[e]=void 0}function Xe(...e){return Ts("setTimeout")(...e)}function Rs(e){return new URLSearchParams(e).toString()}function Cs(e,t=O){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Rs(e)];if(!e)return[void 0]}catch(n){return Jt&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Jt&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ms(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function za(e,t=Ts("fetch")){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Sr("fetch"),dt("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=o,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Sr("fetch"),n-=o,r--,dt(c)}}return Fo(e,s)}const ja=30,qa=50;function rn(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?xe:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Ga=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ya=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ka=/\((\S*)(?::(\d+))(?::(\d+))\)/,Va=e=>{const t=Ga.exec(e);if(t){const[,r,s,i]=t;return rn(r,xe,+s,+i)}const n=Ya.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const o=Ka.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}const[s,i]=xs(n[1]||xe,n[2]);return rn(i,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Xa=[ja,Va],Ja=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qa=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Za=e=>{const t=Ja.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=Qa.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||xe;return[s,r]=xs(s,r),rn(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ec=[qa,Za],tc=[Xa,ec],nc=ji(...tc),xs=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:xe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tt=1024,rc="Breadcrumbs",sc=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:rc,setup(n){t.console&&la(cc(n)),t.dom&&Is(ac(n,t.dom)),t.xhr&&qi(uc(n)),t.fetch&&Gi(lc(n)),t.history&&_n(dc(n)),t.sentry&&n.on("beforeSendEvent",oc(n))}}}),ic=oe(sc);function oc(e){return function(n){G()===e&&Se({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:be(n)},{event:n})}}function ac(e,t){return function(r){if(G()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>tt&&(kt&&O.warn(`\`dom.maxStringLength\` cannot exceed ${tt}, but a value of ${a} was configured. Sentry will use ${tt} instead.`),a=tt),typeof o=="string"&&(o=[o]);try{const u=r.event,d=fc(u)?u.target:u;s=Sn(d,{keyAttrs:o,maxStringLength:a}),i=Yi(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),Se(c,{event:r.event,name:r.name,global:r.global})}}function cc(e){return function(n){if(G()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Es(n.level),message:Zn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Zn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Se(r,{input:n.args,level:n.level})}}function uc(e){return function(n){if(G()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[os];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,d={method:o,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:ws(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,l),Se(f,l)}}function lc(e){return function(n){if(G()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;
9if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),Se(a,o)}else{const i=n.response,o={...n.fetchData,status_code:i?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;const a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:ws(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Se(c,a)}}}function dc(e){return function(n){if(G()!==e)return;let r=n.from,s=n.to;const i=Bt(q.location.href);let o=r?Bt(r):void 0;const a=Bt(s);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Se({category:"navigation",data:{from:r,to:s}})}}function fc(e){return!!e&&!!e.target}const hc=["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"],pc="BrowserApiErrors",mc=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:pc,setupOnce(){t.setTimeout&&ie(q,"setTimeout",Er),t.setInterval&&ie(q,"setInterval",Er),t.requestAnimationFrame&&ie(q,"requestAnimationFrame",yc),t.XMLHttpRequest&&"XMLHttpRequest"in q&&ie(XMLHttpRequest.prototype,"send",_c);const n=t.eventTarget;n&&(Array.isArray(n)?n:hc).forEach(s=>Sc(s,t))}}}),gc=oe(mc);function Er(e){return function(...t){const n=t[0];return t[0]=ze(n,{mechanism:{data:{function:Oe(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function yc(e){return function(t){return e.apply(this,[ze(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Oe(e)},handled:!1,type:"instrument"}})])}}function _c(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&ie(n,s,function(i){const o={mechanism:{data:{function:s,handler:Oe(i)},handled:!1,type:"instrument"}},a=ts(i);return a&&(o.mechanism.data.handler=Oe(a)),ze(i,o)})}),e.apply(this,t)}}function Sc(e,t){const r=q[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ie(r,"addEventListener",function(s){return function(i,o,a){try{Ec(o)&&(o.handleEvent=ze(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oe(o),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&vc(this,i,o),s.apply(this,[i,ze(o,{mechanism:{data:{function:"addEventListener",handler:Oe(o),target:e},handled:!1,type:"instrument"}}),a])}}),ie(r,"removeEventListener",function(s){return function(i,o,a){try{const c=o.__sentry_wrapped__;c&&s.call(this,i,c,a)}catch{}return s.call(this,i,o,a)}}))}function Ec(e){return typeof e.handleEvent=="function"}function vc(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const bc=oe(()=>({name:"BrowserSession",setupOnce(){if(typeof q.document>"u"){kt&&O.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}er({ignoreDuration:!0}),tr(),_n(({from:e,to:t})=>{e!==void 0&&e!==t&&(er({ignoreDuration:!0}),tr())})}})),wc="GlobalHandlers",kc=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:wc,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Tc(n),vr("onerror")),t.onunhandledrejection&&(Rc(n),vr("onunhandledrejection"))}}}),Ic=oe(kc);function Tc(e){Ki(t=>{const{stackParser:n,attachStacktrace:r}=Os();if(G()!==e||as())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=xc(kn(n,c||s,void 0,r,!1),i,o,a);u.level="error",cs(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Rc(e){Vi(t=>{const{stackParser:n,attachStacktrace:r}=Os();if(G()!==e||as())return;const s=Cc(t),i=mn(s)?Mc(s):kn(n,s,void 0,r,!0);i.level="error",cs(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Cc(e){if(mn(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Mc(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xc(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=Xi(t)&&t.length>0?t:En();
9return c.length===0&&c.push({colno:u,filename:l,function:xe,in_app:!0,lineno:d}),e}function vr(e){kt&&O.log(`Global Handler attached: ${e}`)}function Os(){return G()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Oc=oe(()=>({name:"HttpContext",preprocessEvent(e){if(!q.navigator&&!q.location&&!q.document)return;const t=Ji(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),Ac="cause",Nc=5,Dc="LinkedErrors",Lc=((e={})=>{const t=e.limit||Nc,n=e.key||Ac;return{name:Dc,preprocessEvent(r,s,i){const o=i.getOptions();ia(bn,o.stackParser,n,t,r,s)}}}),Pc=oe(Lc);function Fc(){return Bc()?(kt&&wt(()=>{}),!0):!1}function Bc(){if(typeof q.window>"u")return!1;const e=q;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=En(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(q===q.top&&r.some(i=>n.startsWith(`${i}://`)))}function As(e){return[Jo(),Yo(),gc(),ic(),Ic(),Pc(),pa(),Oc(),bc()]}function Uc(e={}){const t=!e.skipBrowserExtensionCheck&&Fc(),n={...e,enabled:t?!1:e.enabled,stackParser:Zi(e.stackParser||nc),integrations:Qi({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?As():e.defaultIntegrations}),transport:e.transport||za};return xo(Pa,n)}const $=ce,In="sentryReplaySession",$c="replay_event",Tn="Unable to send Replay",Wc=3e5,Hc=9e5,zc=5e3,jc=5500,qc=6e4,Gc=5e3,Yc=3,br=15e4,nt=5e3,Kc=3e3,Vc=300,Rn=2e7,Xc=4999,Jc=15e3,wr=36e5;var Qc=Object.defineProperty,Zc=(e,t,n)=>t in e?Qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kr=(e,t,n)=>Zc(e,typeof t!="symbol"?t+"":t,n),j=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(j||{});function eu(e){return e.nodeType===e.ELEMENT_NODE}function $e(e){return e?.host?.shadowRoot===e}function We(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function tu(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function nu(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function pt(e){try{const t=e.rules||e.cssRules;return t?tu(Array.from(t,Ns).join("")):null}catch{return null}}function ru(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function Ns(e){let t;if(iu(e))try{t=pt(e.styleSheet)||nu(e)}catch{}else if(ou(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=ru(e)),r&&(n=su(n)),r||s)return n}return t||e.cssText}function su(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function iu(e){return"styleSheet"in e}function ou(e){return"selectorText"in e}class Ds{constructor(){kr(this,"idNodeMap",new Map),kr(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function au(){return new Ds}function It({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function je({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ae(e){return e.toLowerCase()}function sn(e){return e.toUpperCase()}const Ir="__rrweb_original__";function cu(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=Ir in i?i[Ir]:i;
9if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function Cn(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ae(t):null}function mt(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Ls(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const Tr={};function Ps(e){const t=Tr[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Tr[e]=r.bind(window)}function on(...e){return Ps("setTimeout")(...e)}function Fs(...e){return Ps("clearTimeout")(...e)}function Bs(e){try{return e.contentDocument}catch{}}let uu=1;const lu=new RegExp("[^a-z0-9-_:]"),qe=-2;function Mn(){return uu++}function du(e){if(e instanceof HTMLFormElement)return"form";const t=Ae(e.tagName);return lu.test(t)?"div":t}function fu(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let ke,Rr;const hu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pu=/^(?:[a-z+]+:)?\/\//i,mu=/^www\..*/i,gu=/^(data:)([^,]*),(.*)/i;function gt(e,t){return(e||"").replace(hu,(n,r,s,i,o,a)=>{const c=s||o||a,u=r||i||"";if(!c)return n;if(pu.test(c)||mu.test(c))return`url(${u}${c}${u})`;if(gu.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${fu(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const f of l)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${u}${d.join("/")}${u})`})}const yu=/^[^ \t\n\r\u000c]+/,_u=/^[, \t\n\r\u000c]+/;function Su(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(_u),!(n>=t.length);){let i=r(yu);if(i.slice(-1)===",")i=Te(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=Te(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const Cr=new WeakMap;function Te(e,t){return!t||t.trim()===""?t:Tt(e,t)}function Eu(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Tt(e,t){let n=Cr.get(e);if(n||(n=e.createElement("a"),Cr.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Us(e,t,n,r,s,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Te(e,r):n==="srcset"?Su(e,r):n==="style"?gt(r,Tt(e)):t==="object"&&n==="data"?Te(e,r):typeof i=="function"?i(n,r,s):r)}function $s(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function vu(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function bu(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function we(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:we(e.parentNode,t,n,r+1)}function Re(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(bu(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Ne(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(i){if(c=we(o,Re(r,s)),c<0)return!0;a=we(o,Re(t,n),c>=0?c:1/0)}else{if(a=we(o,Re(t,n)),a<0)return!1;c=we(o,Re(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function wu(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=on(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Fs(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return on(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function ku(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=on(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Fs(i),r=!0,t()})}function Iu(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:_={},inlineImages:k,recordCanvas:P,keepIframeSrcFn:A,newlyAddedElement:I=!1}=t,S=Tu(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:j.Document,childNodes:[],compatMode:e.compatMode}:{type:j.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:j.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Cu(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:y,dataURLOptions:_,inlineImages:k,recordCanvas:P,keepIframeSrcFn:A,newlyAddedElement:I,rootId:S,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f});case e.TEXT_NODE:return Ru(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:S});case e.CDATA_SECTION_NODE:return{type:j.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:j.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Tu(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Ru(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=l==="STYLE"?!0:void 0,p=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=pt(e.parentNode.sheet))}catch{}f=gt(f,Tt(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");const y=Ne(e,r,i,s,o,n);if(!h&&!p&&!m&&f&&y&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||y)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),l==="OPTION"&&f){const _=It({type:null,tagName:l,maskInputOptions:c});f=je({isMasked:Ne(e,r,i,s,o,_),element:e,value:f,maskInputFn:u})}return{type:j.Text,textContent:f||"",isStyle:h,rootId:d}}function Cu(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:y,unmaskTextClass:_,maskTextSelector:k,unmaskTextSelector:P}=t,A=vu(e,r,s,i),I=du(e);let S={};const M=e.attributes.length;for(let g=0;g<M;g++){const w=e.attributes[g];w.name&&!$s(I,w.name,w.value)&&(S[w.name]=Us(n,I,Ae(w.name),w.value,e,c))}if(I==="link"&&o){const g=Array.from(n.styleSheets).find(F=>F.href===e.href);let w=null;g&&(w=pt(g)),w&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=gt(w,g.href))}if(I==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const g=pt(e.sheet);g&&(S._cssText=gt(g,Tt(n)))}if(I==="input"||I==="textarea"||I==="select"||I==="option"){const g=e,w=Cn(g),F=mt(g,sn(I),w),B=g.checked;if(w!=="submit"&&w!=="button"&&F){const X=Ne(g,y,k,_,P,It({type:w,tagName:sn(I),maskInputOptions:a}));S.value=je({isMasked:X,element:g,value:F,maskInputFn:u})}
9B&&(S.checked=B)}if(I==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),I==="canvas"&&f){if(e.__context==="2d")cu(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const g=e.toDataURL(d.type,d.quality),w=n.createElement("canvas");w.width=e.width,w.height=e.height;const F=w.toDataURL(d.type,d.quality);g!==F&&(S.rr_dataURL=g)}}if(I==="img"&&l){ke||(ke=n.createElement("canvas"),Rr=ke.getContext("2d"));const g=e,w=g.currentSrc||g.getAttribute("src")||"<unknown-src>",F=g.crossOrigin,B=()=>{g.removeEventListener("load",B);try{ke.width=g.naturalWidth,ke.height=g.naturalHeight,Rr.drawImage(g,0,0),S.rr_dataURL=ke.toDataURL(d.type,d.quality)}catch{if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?B():g.addEventListener("load",B);return}}g.crossOrigin==="anonymous"&&(F?S.crossOrigin=F:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?B():g.addEventListener("load",B)}if((I==="audio"||I==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),A){const{width:g,height:w}=e.getBoundingClientRect();S={class:S.class,rr_width:`${g}px`,rr_height:`${w}px`}}I==="iframe"&&!h(S.src)&&(!A&&!Bs(e)&&(S.rr_src=S.src),delete S.src);let C;try{customElements.get(I)&&(C=!0)}catch{}return{type:j.Element,tagName:I,attributes:S,childNodes:[],isSVG:Eu(e)||void 0,needBlock:A,rootId:m,isCustom:C}}function U(e){return e==null?"":e.toLowerCase()}function Mu(e,t){if(t.comment&&e.type===j.Comment)return!0;if(e.type===j.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ls(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(U(e.attributes.name).match(/^msapplication-tile(image|color)$/)||U(e.attributes.name)==="application-name"||U(e.attributes.rel)==="icon"||U(e.attributes.rel)==="apple-touch-icon"||U(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&U(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(U(e.attributes.property).match(/^(og|twitter|fb):/)||U(e.attributes.name).match(/^(og|twitter):/)||U(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(U(e.attributes.name)==="robots"||U(e.attributes.name)==="googlebot"||U(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(U(e.attributes.name)==="author"||U(e.attributes.name)==="generator"||U(e.attributes.name)==="framework"||U(e.attributes.name)==="publisher"||U(e.attributes.name)==="progid"||U(e.attributes.property).match(/^article:/)||U(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(U(e.attributes.name)==="google-site-verification"||U(e.attributes.name)==="yandex-verification"||U(e.attributes.name)==="csrf-token"||U(e.attributes.name)==="p:domain_verify"||U(e.attributes.name)==="verify-v1"||U(e.attributes.name)==="verification"||U(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ce(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOMOptions:k,dataURLOptions:P={},inlineImages:A=!1,recordCanvas:I=!1,onSerialize:S,onIframeLoad:M,iframeLoadTimeout:C=5e3,onBlockedImageLoad:g,onStylesheetLoad:w,stylesheetLoadTimeout:F=5e3,keepIframeSrcFn:B=()=>!1,newlyAddedElement:X=!1}=t;let{preserveWhiteSpace:K=!0}=t;const ee=Iu(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,dataURLOptions:P,inlineImages:A,recordCanvas:I,keepIframeSrcFn:B,newlyAddedElement:X});if(!ee)return null;let V;r.hasNode(e)?V=r.getId(e):Mu(ee,k)||!K&&ee.type===j.Text&&!ee.isStyle&&!ee.textContent.replace(/^\s+|\s+$/gm,"").length?V=qe:V=Mn();const R=Object.assign(ee,{id:V}
9);if(r.add(e,R),V===qe)return null;S&&S(e);let Z=!f;if(R.type===j.Element){Z=Z&&!R.needBlock;const W=e.shadowRoot;W&&We(W)&&(R.isShadowHost=!0)}if((R.type===j.Document||R.type===j.Element)&&Z){k.headWhitespace&&R.type===j.Element&&R.tagName==="head"&&(K=!1);const W={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOMOptions:k,dataURLOptions:P,inlineImages:A,recordCanvas:I,preserveWhiteSpace:K,onSerialize:S,onIframeLoad:M,iframeLoadTimeout:C,onBlockedImageLoad:g,onStylesheetLoad:w,stylesheetLoadTimeout:F,keepIframeSrcFn:B},ae=e.childNodes?Array.from(e.childNodes):[];for(const ne of ae){const me=Ce(ne,W);me&&R.childNodes.push(me)}if(eu(e)&&e.shadowRoot)for(const ne of Array.from(e.shadowRoot.childNodes)){const me=Ce(ne,W);me&&(We(e.shadowRoot)&&(me.isShadow=!0),R.childNodes.push(me))}}if(e.parentNode&&$e(e.parentNode)&&We(e.parentNode)&&(R.isShadow=!0),R.type===j.Element&&R.tagName==="iframe"&&!R.needBlock&&wu(e,()=>{const W=Bs(e);if(W&&M){const ae=Ce(W,{doc:W,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOMOptions:k,dataURLOptions:P,inlineImages:A,recordCanvas:I,preserveWhiteSpace:K,onSerialize:S,onIframeLoad:M,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:F,keepIframeSrcFn:B});ae&&M(e,ae)}},C),R.type===j.Element&&R.tagName==="img"&&!e.complete&&R.needBlock){const W=e,ae=()=>{if(W.isConnected&&!W.complete&&g)try{const ne=W.getBoundingClientRect();ne.width>0&&ne.height>0&&g(W,R,ne)}catch{}W.removeEventListener("load",ae)};W.isConnected&&W.addEventListener("load",ae)}return R.type===j.Element&&R.tagName==="link"&&typeof R.attributes.rel=="string"&&(R.attributes.rel==="stylesheet"||R.attributes.rel==="preload"&&typeof R.attributes.href=="string"&&Ls(R.attributes.href)==="css")&&ku(e,()=>{if(w){const W=Ce(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOMOptions:k,dataURLOptions:P,inlineImages:A,recordCanvas:I,preserveWhiteSpace:K,onSerialize:S,onIframeLoad:M,iframeLoadTimeout:C,onStylesheetLoad:w,stylesheetLoadTimeout:F,keepIframeSrcFn:B});W&&w(e,W)}},F),R.type===j.Element&&delete R.needBlock,R}function xu(e,t){const{mirror:n=new Ds,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOM:k=!1,dataURLOptions:P,preserveWhiteSpace:A,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:M,onBlockedImageLoad:C,onStylesheetLoad:g,stylesheetLoadTimeout:w,keepIframeSrcFn:F=()=>!1}=t||{};return Ce(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:_,slimDOMOptions:k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k,dataURLOptions:P,inlineImages:f,recordCanvas:h,preserveWhiteSpace:A,onSerialize:I,onIframeLoad:S,iframeLoadTimeout:M,onBlockedImageLoad:C,onStylesheetLoad:g,stylesheetLoadTimeout:w,keepIframeSrcFn:F,newlyAddedElement:!1})}function Q(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let Mr={map:{},getId(){return-1},getNode(){return null},removeNodeFromMap(){},has(){return!1},reset(){}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Mr=new Proxy(Mr,{get(e,t,n){return Reflect.get(e,t,n)}}));function Ge(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(Fu(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=Rt(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function Ws(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Rt(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Ws(e,t,i||{},!0)}function xn(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let yt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(yt=()=>new Date().getTime());function Hs(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function zs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function js(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qs(e){if(!e)return null;
9try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function te(e,t,n,r,s){if(!e)return!1;const i=qs(e);if(!i)return!1;const o=Re(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const a=we(i,o);let c=-1;return a<0?!1:(r&&(c=we(i,Re(null,r))),a>-1&&c<0?!0:a<c)}function Ou(e,t){return t.getId(e)!==-1}function Ht(e,t){return t.getId(e)===qe}function Gs(e,t){if($e(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Gs(e.parentNode,t):!0:!0}function an(e){return!!e.changedTouches}function Au(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Ys(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ks(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function cn(e){return!!e?.shadowRoot}class Nu{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Vs(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Du(e){let t=e,n;for(;n=Vs(t);)t=n;return t}function Lu(e){const t=e.ownerDocument;if(!t)return!1;const n=Du(e);return t.contains(n)}function Xs(e){const t=e.ownerDocument;return t?t.contains(e)||Lu(e):!1}const xr={};function On(e){const t=xr[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return xr[e]=r.bind(window)}function Pu(...e){return On("requestAnimationFrame")(...e)}function Rt(...e){return On("setTimeout")(...e)}function Fu(...e){return On("clearTimeout")(...e)}var T=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(T||{}),b=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(b||{}),J=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(J||{}),le=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(le||{}),Ie=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ie||{});function An(e){try{return e.contentDocument}catch{}}function Bu(e){try{return e.contentWindow}catch{}}function Or(e){return"__ln"in e}class Uu{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Or(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Or(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;
9n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Ar=(e,t)=>`${e}@${t}`;class $u{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new Uu,s=c=>{let u=c,d=qe;for(;d===qe;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},i=c=>{if(!c.parentNode||!Xs(c))return;const u=$e(c.parentNode)?this.mirror.getId(Vs(c)):this.mirror.getId(c.parentNode),d=s(c);if(u===-1||d===-1)return r.addNode(c);const l=Ce(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{Ys(f,this.mirror)&&!te(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Ks(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),cn(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{te(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)},onBlockedImageLoad:(f,h,{width:p,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${p}px`,height:`${m}px`}}}]})}});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Nr(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!Dr(this.droppedSet,c)&&!Nr(this.removes,c,this.mirror)||Dr(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const u=this.mirror.getId(o.value.parentNode),d=s(o.value);u!==-1&&d!==-1&&(c=o)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){c=d;break}else{const h=d.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Ht(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!te(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ne(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,qs(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=Cn(n),a=n.tagName;s=mt(n,a,o);const c=It({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),u=Ne(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=je({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(te(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!An(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
9,this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!$s(n.tagName,r)&&(i.attributes[r]=Us(this.doc,Ae(n.tagName),Ae(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||u!==o.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(te(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=$e(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);te(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ht(n,this.mirror)||!Ou(n,this.mirror)||(this.addedSet.has(n)?(un(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Gs(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Ar(r,s)]?un(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:$e(t.target)&&We(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Ht(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Ar(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);te(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),cn(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function un(e,t){e.delete(t),t.childNodes?.forEach(n=>un(e,n))}function Nr(e,t,n){return e.length===0?!1:Wu(e,t,n)}function Wu(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function Dr(e,t){return e.size===0?!1:Js(e,t)}function Js(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Js(e,n):!1}let He;function Hu(e){He=e}function zu(){He=void 0}const N=e=>He?(...n)=>{try{return e(...n)}catch(r){if(He&&He(r)===!0)return()=>{};throw r}}:e,Me=[];function Je(e){try{if("composedPath"in e){const 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 Qs(e,t){const n=new $u;Me.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(N(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function ju({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Ge(N(l=>{const f=Date.now()-a;e(o.map(h=>(h.timeOffset-=f,h)),l),o=[],a=null}),i),u=N(Ge(N(l=>{const f=Je(l),{clientX:h,clientY:p}=an(l)?l.changedTouches[0]:l;a||(a=yt()),o.push({x:h,y:p,id:r.getId(f),timeOffset:yt()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?b.Drag:l instanceof MouseEvent?b.MouseMove:b.TouchMove)}),s,{trailing:!1})),d=[Q("mousemove",u,n),Q("touchmove",u,n),Q("drag",u,n)];return N(()=>{d.forEach(l=>l())})}function qu({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let u=null;const d=l=>f=>{const h=Je(f);if(te(h,r,s,i,!0))return;let p=null,m=l;if("pointerType"in f){switch(f.pointerType){case"mouse":p=le.Mouse;break;case"touch":p=le.Touch;break;case"pen":p=le.Pen;break}p===le.Touch?J[l]===J.MouseDown?m="TouchStart":J[l]===J.MouseUp&&(m="TouchEnd"):le.Pen}else an(f)&&(p=le.Touch);p!==null?(u=p,(m.startsWith("Touch")&&p===le.Touch||m.startsWith("Mouse")&&p===le.Mouse)&&(p=null)):J[l]===J.Click&&(p=u,u=null);const y=an(f)?f.changedTouches[0]:f;if(!y)return;const _=n.getId(h),{clientX:k,clientY:P}=y;N(e)({type:J[m],id:_,x:k,y:P,...p!==null&&{pointerType:p}})};return Object.keys(J).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEac
9h(l=>{let f=Ae(l);const h=d(l);if(window.PointerEvent)switch(J[l]){case J.MouseDown:case J.MouseUp:f=f.replace("mouse","pointer");break;case J.TouchStart:case J.TouchEnd:return}c.push(Q(f,h,t))}),N(()=>{c.forEach(l=>l())})}function Zs({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=N(Ge(N(c=>{const u=Je(c);if(!u||te(u,r,s,i,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=Hs(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return Q("scroll",a,t)}function Gu({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=N(Ge(N(()=>{const i=zs(),o=js();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return Q("resize",s,t)}const Yu=["INPUT","TEXTAREA","SELECT"],Lr=new WeakMap;function Ku({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(M){let C=Je(M);const g=M.isTrusted,w=C&&sn(C.tagName);if(w==="OPTION"&&(C=C.parentElement),!C||!w||Yu.indexOf(w)<0||te(C,r,s,i,!0))return;const F=C;if(F.classList.contains(o)||a&&F.matches(a))return;const B=Cn(C);let X=mt(F,w,B),K=!1;const ee=It({maskInputOptions:c,tagName:w,type:B}),V=Ne(C,f,p,h,m,ee);(B==="radio"||B==="checkbox")&&(K=C.checked),X=je({isMasked:V,element:C,value:X,maskInputFn:u}),_(C,l?{text:X,isChecked:K,userTriggered:g}:{text:X,isChecked:K});const R=C.name;B==="radio"&&R&&K&&t.querySelectorAll(`input[type="radio"][name="${R}"]`).forEach(Z=>{if(Z!==C){const W=je({isMasked:V,element:Z,value:mt(Z,w,B),maskInputFn:u});_(Z,l?{text:W,isChecked:!K,userTriggered:!1}:{text:W,isChecked:!K})}})}function _(M,C){const g=Lr.get(M);if(!g||g.text!==C.text||g.isChecked!==C.isChecked){Lr.set(M,C);const w=n.getId(M);N(e)({...C,id:w})}}const P=(d.input==="last"?["change"]:["input","change"]).map(M=>Q(M,N(y),t)),A=t.defaultView;if(!A)return()=>{P.forEach(M=>M())};const I=A.Object.getOwnPropertyDescriptor(A.HTMLInputElement.prototype,"value"),S=[[A.HTMLInputElement.prototype,"value"],[A.HTMLInputElement.prototype,"checked"],[A.HTMLSelectElement.prototype,"value"],[A.HTMLTextAreaElement.prototype,"value"],[A.HTMLSelectElement.prototype,"selectedIndex"],[A.HTMLOptionElement.prototype,"selected"]];return I&&I.set&&P.push(...S.map(M=>Ws(M[0],M[1],{set(){N(y)({target:this,isTrusted:!1})}},!1,A))),N(()=>{P.forEach(M=>M())})}function _t(e){const t=[];function n(r,s){if(rt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||rt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||rt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||rt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function ge(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Vu({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:N((d,l,f)=>{const[h,p]=f,{id:m,styleId:y}=ge(l,t,n.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:h,index:p}]}),d.apply(l,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:N((d,l,f)=>{const[h]=f,{id:p,styleId:m}=ge(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),d.apply(l,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:N((d,l,f)=>{const[h]=f,{id:p,styleId:m}=ge(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),d.apply(l,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:N((d,l,f)=>{const[h]=f,{id:p,styleId:m}=ge(l,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),d.apply(l,f)})}));const c={};st("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(st("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),st("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),st("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};
9return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:N((f,h,p)=>{const[m,y]=p,{id:_,styleId:k}=ge(h.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||k&&k!==-1)&&e({id:_,styleId:k,adds:[{rule:m,index:[..._t(h),y||0]}]}),f.apply(h,p)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:N((f,h,p)=>{const[m]=p,{id:y,styleId:_}=ge(h.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||_&&_!==-1)&&e({id:y,styleId:_,removes:[{index:[..._t(h),m]}]}),f.apply(h,p)})})}),N(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function ei({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(o){const a=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),N(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Xu({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:N((a,c,u)=>{const[d,l,f]=u;if(n.has(d))return i.apply(c,[d,l,f]);const{id:h,styleId:p}=ge(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:d,value:l,priority:f},index:_t(c.parentRule)}),a.apply(c,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:N((a,c,u)=>{const[d]=u;if(n.has(d))return o.apply(c,[d]);const{id:l,styleId:f}=ge(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||f&&f!==-1)&&e({id:l,styleId:f,remove:{property:d},index:_t(c.parentRule)}),a.apply(c,u)})}),N(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Ju({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=N(u=>Ge(N(d=>{const l=Je(d);if(!l||te(l,t,n,r,!0))return;const{currentTime:f,volume:h,muted:p,playbackRate:m}=l;e({type:u,id:s.getId(l),currentTime:f,volume:h,muted:p,playbackRate:m})}),i.media||500)),c=[Q("play",a(Ie.Play),o),Q("pause",a(Ie.Pause),o),Q("seeked",a(Ie.Seeked),o),Q("volumechange",a(Ie.VolumeChange),o),Q("ratechange",a(Ie.RateChange),o)];return N(()=>{c.forEach(u=>u())})}function Qu({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,d){const l=new i(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const o=xn(t.fonts,"add",function(a){return function(c){return Rt(N(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),N(()=>{r.forEach(a=>a())})}function Zu(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=N(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let f=0;f<l;f++){const h=u.getRangeAt(f),{startContainer:p,startOffset:m,endContainer:y,endOffset:_}=h;te(p,r,s,i,!0)||te(y,r,s,i,!0)||d.push({start:n.getId(p),startOffset:m,end:n.getId(y),endOffset:_})}o({ranges:d})});return c(),Q("selectionchange",c)}function el({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:xn(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function tl(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Qs(e,e.doc));const s=ju(e),i=qu(e),o=Zs(e),a=Gu(e,{win:n}),c=Ku(e),u=Ju(e);let d=()=>{},l=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(d=Vu(e,{win:n}),l=ei(e,e.doc),f=Xu(e,{win:n}),e.collectFonts&&(h=Qu(e)));const p=Zu(e),m=el(e),y=[];
9for(const _ of e.plugins)y.push(_.observer(_.callback,n,_.options));return N(()=>{Me.forEach(_=>_.reset()),r?.disconnect(),s(),i(),o(),a(),c(),u(),d(),l(),f(),h(),p(),m(),y.forEach(_=>_())})}function rt(e){return typeof window[e]<"u"}function st(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ln{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class nl{constructor(){this.crossOriginIframeMirror=new ln(Mn),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class rl{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ln(Mn),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ln(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=An(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case T.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:T.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case T.Meta:case T.Load:case T.DomContentLoaded:return!1;case T.Plugin:return n;case T.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case T.IncrementalSnapshot:switch(n.data.source){case b.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case b.Drag:case b.TouchMove:case b.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(n.data,t,["i
9d"]),n;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case b.Font:return n;case b.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case b.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==j.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class sl{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class il{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!We(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Qs({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Zs({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Rt(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(ei({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=An(t),r=Bu(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(xn(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Xs(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ol=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var it=0;
9it<Pr.length;it++)ol[Pr.charCodeAt(it)]=it;class Fr{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class al{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Nu,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:Ns(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class cl{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,Pu(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let z,St;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch{}const se=au();function he(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:_,maskAttributeFn:k,maskInputFn:P,maskTextFn:A,maxCanvasSize:I=null,packFn:S,sampling:M={},dataURLOptions:C={},mousemoveWait:g,recordDOM:w=!0,recordCanvas:F=!1,recordCrossOriginIframes:B=!1,recordAfter:X=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:K=!1,collectFonts:ee=!1,inlineImages:V=!1,plugins:R,keepIframeSrcFn:Z=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:ae,onMutation:ne,getCanvasManager:me}=e;Hu(ae);const Ze=B?window.parent===window:!0;let Le=!1;if(!Ze)try{window.parent.document&&(Le=!1)}catch{Le=!0}if(Ze&&!t)throw new Error("emit function is required");if(!Ze&&!Le)return()=>{};g!==void 0&&M.mousemove===void 0&&(M.mousemove=g),se.reset();const Ot=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==void 0?y:{},At=_===!0||_==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_==="all",headMetaDescKeywords:_==="all"}:_||{};Au();let Nt,Dt=0;const Wn=D=>{for(const re of R||[])re.eventProcessor&&(D=re.eventProcessor(D));return S&&!Le&&(D=S(D)),D};z=(D,re)=>{const x=D;if(x.timestamp=yt(),Me[0]?.isFrozen()&&x.type!==T.FullSnapshot&&!(x.type===T.IncrementalSnapshot&&x.data.source===b.Mutation)&&Me.forEach(Y=>Y.unfreeze()),Ze)t?.(Wn(x),re);else if(Le){const Y={type:"rrweb",event:Wn(x),origin:window.location.origin,isCheckout:re};window.parent.postMessage(Y,"*")}if(x.type===T.FullSnapshot)Nt=x,Dt=0;else if(x.type===T.IncrementalSnapshot){if(x.data.source===b.Mutation&&x.data.isAttachIframe)return;Dt++;const Y=r&&Dt>=r,L=n&&Nt&&x.timestamp-Nt.timestamp>n;(Y||L)&&Ft(!0)}};const Pe=D=>{z({type:T.IncrementalSnapshot,data:{source:b.Mutation,...D}})},Hn=D=>z({type:T.IncrementalSnapshot,data:{source:b.Scroll,...D}}),bi=D=>z({type:T.IncrementalSnapshot,data:{source:b.CanvasMutation,...D}}),wi=D=>z({type:T.IncrementalSnapshot,data:{source:b.AdoptedStyleSheet,...D}}),Ee=new al({mutationCb:Pe,adoptedStyleSheetCb:wi}),ve=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new nl:new rl({mirror:se,mutationCb:Pe,stylesheetManager:Ee,recordCrossOriginIframes:B,wrappedEmit:z});for(const D of R||[])D.getMirror&&D.getMirror({nodeMirror:se,crossOriginIframeMirror:ve.crossOriginIframeMirror,crossOriginIframeStyleMirror:ve.crossOriginIframeStyleMirror});const Lt=new cl,Pt=ll(me,{mirror:se,win:window,mutationCb:D=>z({type:T.IncrementalSnapshot,data:{source:b.CanvasMutation,...D}}),recordCanvas:F,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:I,sampling:M.canvas,dataURLOptions:C,errorHandler:ae}),et=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sl:new il({mutationCb:Pe,scrollCb:Hn,bypassOptions:{onMutation:ne,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Ot,dataURLOptions:C,maskAttributeFn:k,maskTextFn:A,maskInputFn:P,recordCanvas:F,inlineImages:V,sampling:M,slimDOMOptions:At,iframeManager:ve,stylesheetManager:Ee,canvasManager:Pt,keepIframeSrcFn:Z,processedNodeManager:Lt},mirror:se}),Ft=(D=!1)=>
9{if(!w)return;z({type:T.Meta,data:{href:window.location.href,width:js(),height:zs()}},D),Ee.reset(),et.init(),Me.forEach(x=>x.lock());const re=xu(document,{mirror:se,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Ot,maskAttributeFn:k,maskInputFn:P,maskTextFn:A,slimDOM:At,dataURLOptions:C,recordCanvas:F,inlineImages:V,onSerialize:x=>{Ys(x,se)&&ve.addIframe(x),Ks(x,se)&&Ee.trackLinkElement(x),cn(x)&&et.addShadowRoot(x.shadowRoot,document)},onIframeLoad:(x,Y)=>{ve.attachIframe(x,Y),x.contentWindow&&Pt.addWindow(x.contentWindow),et.observeAttachShadow(x)},onStylesheetLoad:(x,Y)=>{Ee.attachLinkElement(x,Y)},onBlockedImageLoad:(x,Y,{width:L,height:Fe})=>{Pe({adds:[],removes:[],texts:[],attributes:[{id:Y.id,attributes:{style:{width:`${L}px`,height:`${Fe}px`}}}]})},keepIframeSrcFn:Z});re&&(z({type:T.FullSnapshot,data:{node:re,initialOffset:Hs(window)}}),Me.forEach(x=>x.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ee.adoptStyleSheets(document.adoptedStyleSheets,se.getId(document)))};St=Ft;try{const D=[],re=Y=>N(tl)({onMutation:ne,mutationCb:Pe,mousemoveCb:(L,Fe)=>z({type:T.IncrementalSnapshot,data:{source:Fe,positions:L}}),mouseInteractionCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.MouseInteraction,...L}}),scrollCb:Hn,viewportResizeCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.ViewportResize,...L}}),inputCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.Input,...L}}),mediaInteractionCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.MediaInteraction,...L}}),styleSheetRuleCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.StyleSheetRule,...L}}),styleDeclarationCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.StyleDeclaration,...L}}),canvasMutationCb:bi,fontCb:L=>z({type:T.IncrementalSnapshot,data:{source:b.Font,...L}}),selectionCb:L=>{z({type:T.IncrementalSnapshot,data:{source:b.Selection,...L}})},customElementCb:L=>{z({type:T.IncrementalSnapshot,data:{source:b.CustomElement,...L}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Ot,inlineStylesheet:p,sampling:M,recordDOM:w,recordCanvas:F,inlineImages:V,userTriggeredOnInput:K,collectFonts:ee,doc:Y,maskAttributeFn:k,maskInputFn:P,maskTextFn:A,keepIframeSrcFn:Z,blockSelector:i,unblockSelector:o,slimDOMOptions:At,dataURLOptions:C,mirror:se,iframeManager:ve,stylesheetManager:Ee,shadowDomManager:et,processedNodeManager:Lt,canvasManager:Pt,ignoreCSSAttributes:W,plugins:R?.filter(L=>L.observer)?.map(L=>({observer:L.observer,options:L.options,callback:Fe=>z({type:T.Plugin,data:{plugin:L.name,payload:Fe}})}))||[]},{});ve.addLoadListener(Y=>{try{D.push(re(Y.contentDocument))}catch{}});const x=()=>{Ft(),D.push(re(document))};return document.readyState==="interactive"||document.readyState==="complete"?x():(D.push(Q("DOMContentLoaded",()=>{z({type:T.DomContentLoaded,data:{}}),X==="DOMContentLoaded"&&x()})),D.push(Q("load",()=>{z({type:T.Load,data:{}}),X==="load"&&x()},window))),()=>{D.forEach(Y=>Y()),Lt.destroy(),St=void 0,zu()}}catch{}}function ul(e){if(!St)throw new Error("please take full snapshot after start recording");St(e)}he.mirror=se;he.takeFullSnapshot=ul;function ll(e,t){try{return e?e(t):new Fr}catch{return new Fr}}var Br;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Br||(Br={}));const dl=3,fl=5;function Nn(e){return e>9999999999?e:e*1e3}function zt(e){return e>9999999999?e/1e3:e}function Qe(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:T.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:vn(t,10,1e3)}}),t.category==="console")))}const hl="button,a";function ti(e){return e.closest(hl)||e}function ni(e){const t=ri(e);return!t||!(t instanceof Element)?t:ti(t)}function ri(e){return pl(e)?e.target:e}function pl(e){return typeof e=="object"&&!!e&&"target"in e}let ye;function ml(e){return ye||(ye=[],gl()),ye.push(e),()=>{const t=ye?ye.indexOf(e):-1;t>-1&&ye.splice(t,1)}}function gl(){ie($,"open",function(e){return function(...t){if(ye)try{ye.forEach(n=>n())}catch{}return e.apply($,t)}})}const yl=new Set([b.Mutation,b.StyleSheetRule,b.StyleDeclaration,b.AdoptedStyleSheet,b.CanvasMutation,b.Selection,b.MediaInteraction]);function _l(e,t,n){e.handleClick(t,n)}class Sl{constructor(t,n,r=Qe){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=ml(()=>{this._lastMutation=Ur()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(vl(n,this._ignoreSelector)||!bl(t))return;const r={timestamp:zt(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=zt(t)}registerScroll(t=Date.now()){this._lastScroll=zt(t)}registerClick(t){const n=ti(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>
9{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Ur();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:$.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,d);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:$.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Xe(()=>this._checkClicks(),1e3)}}const El=["A","BUTTON","INPUT"];function vl(e,t){return!!(!El.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function bl(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Ur(){return Date.now()/1e3}function wl(e,t){try{if(!kl(t))return;const{source:n}=t.data;if(yl.has(n)&&e.registerMutation(t.timestamp),n===b.Scroll&&e.registerScroll(t.timestamp),Il(t)){const{type:r,id:s}=t.data,i=he.mirror.getNode(s);i instanceof HTMLElement&&r===J.Click&&e.registerClick(i)}}catch{}}function kl(e){return e.type===dl}function Il(e){return e.data.source===b.MouseInteraction}function ue(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Dn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Dn||{});const Tl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Rl(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Tl.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Cl=e=>t=>{if(!e.isEnabled())return;const n=Ml(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&_l(e.clickDetector,n,ni(t.event)),Qe(e,n)};function si(e,t){const n=he.mirror.getId(e),r=n&&he.mirror.getNode(n),s=r&&he.mirror.getMeta(r),i=s&&Ol(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===Dn.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:Rl(i.attributes)}}:{}}}function Ml(e){const{target:t,message:n}=xl(e);return ue({category:`ui.${e.name}`,...si(t,n)})}function xl(e){const t=e.name==="click";let n,r=null;try{r=t?ni(e.event):ri(e.event),n=Sn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Ol(e){return e.type===Dn.Element}function Al(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=Nl(t);n&&Qe(e,n)}function Nl(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||Dl(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const u=Sn(o,{maxStringLength:200})||"<unknown>",d=si(o,u);return ue({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function Dl(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}
9const Ll={resource:$l,paint:Bl,navigation:Ul};function ot(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Pl(e){return e.map(Fl).filter(Boolean)}function Fl(e){const t=Ll[e.entryType];return t?t(e):null}function De(e){return((ho()||$.performance.timeOrigin)+e)/1e3}function Bl(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=De(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function Ul(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:De(h),end:De(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:i,redirectCount:f}}}function $l(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:De(i),end:De(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function Wl(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Ct(e,"largest-contentful-paint",n)}function Hl(e){return e.sources!==void 0}function zl(e){const t=[],n=[];for(const r of e.entries)if(Hl(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=he.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Ct(e,"cumulative-layout-shift",n,t)}function jl(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Ct(e,"first-input-delay",n)}function ql(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Ct(e,"interaction-to-next-paint",n)}function Ct(e,t,n,r){const s=e.value,i=e.rating,o=De(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>he.mirror.getId(a)):void 0,attributions:r}}}function Gl(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(so(s,n))}),r.push(io(ot(Wl,e)),oo(ot(zl,e)),ao(ot(jl,e)),co(ot(ql,e))),()=>{r.forEach(s=>s())}}const E=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yl='
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';function Kl(){const e=new Blob([Yl]);return URL.createObjectURL(e)}const $r=["log","warn","error"],lt="[Replay] ";function jt(e,t="info"){Se({category:"console",data:{logger:"replay"},level:t,message:`${lt}${e}`},{level:t})}function Vl(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return E?($r.forEach(r=>{n[r]=(...s)=>{O[r](lt,...s),t&&jt(s.join(""),Es(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),O.error(lt,r),e?po(r):t&&jt(r,"error")},n.infoTick=(...r)=>{O.log(lt,...r),t&&setTimeout(()=>jt(r[0]),0)}):$r.forEach(r=>{n[r]=()=>{}}),n}const v=Vl();class Ln extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Rn}.`)}}class ii{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Rn)throw new Ln;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Nn(t):null}}class Xl{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){E&&v.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){E&&v.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class Jl{constructor(t){this._worker=new Xl(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Nn(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Rn?Promise.reject(new Ln):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{E&&v.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Ql{constructor(t){this._fallback=new ii,this._compression=new Jl(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){E&&v.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){E&&v.exception(i,"Failed to add events when switching buffers.")}}}function Zl({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=ed(t);if(n)return n}return E&&v.log("Using simple buffer"),new ii}function ed(e){try{const t=e||td();if(!t)return;E&&v.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new Ql(n)}catch(t){E&&v.exception(t,"Failed to create compression worker")}}function td(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Kl():""}function Pn(){try{return"sessionStorage"in $&&!!$.sessionStorage}catch{return!1}}
9function nd(e){rd(),e.session=void 0}function rd(){if(Pn())try{$.sessionStorage.removeItem(In)}catch{}}function oi(e){return e===void 0?!1:Math.random()<e}function Fn(e){if(Pn())try{$.sessionStorage.setItem(In,JSON.stringify(e))}catch{}}function ai(e){const t=Date.now(),n=e.id||Ue(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a}}function sd(e,t){return oi(e)?"session":t?"buffer":!1}function Wr({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=sd(e,t),i=ai({sampled:s,previousSessionId:r});return n&&Fn(i),i}function id(){if(!Pn())return null;try{const e=$.sessionStorage.getItem(In);if(!e)return null;const t=JSON.parse(e);return E&&v.infoTick("Loading existing session"),ai(t)}catch{return null}}function dn(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function ci(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return dn(e.started,t,r)||dn(e.lastActivity,n,r)}function ui(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!ci(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function qt({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&id();return s?ui(s,{sessionIdleExpire:e,maxReplayDuration:t})?(E&&v.infoTick("Session in sessionStorage is expired, creating new one..."),Wr(r,{previousSessionId:s.id})):s:(E&&v.infoTick("Creating new session"),Wr(r,{previousSessionId:n}))}function od(e){return e.type===T.Custom}function Bn(e,t,n){return di(e,t)?(li(e,t,n),!0):!1}function ad(e,t,n){return di(e,t)?li(e,t,n):Promise.resolve(null)}async function li(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=cd(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof Ln,a=o?"addEventSizeExceeded":"addEvent";if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a});const c=G();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function di(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Nn(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(E&&v.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function cd(e,t){try{if(typeof t=="function"&&od(e))return t(e)}catch(n){return E&&v.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Un(e){return!e.type}function fn(e){return e.type==="transaction"}function ud(e){return e.type==="replay_event"}function Hr(e){return e.type==="feedback"}function ld(e){return(t,n)=>{if(!e.isEnabled()||!Un(t)&&!fn(t))return;const r=n?.statusCode;if(!(!r||r<200||r>=300)){if(fn(t)){dd(e,t);return}fd(e,t)}}}function dd(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function fd(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Xe(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function hd(e){return t=>{!e.isEnabled()||!Un(t)||pd(e,t)}}function pd(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=ue({category:"replay.hydrate-error",data:{url:En()}});Qe(e,r)}}function md(e){const t=G();t&&t.on("beforeAddBreadcrumb",n=>gd(e,n))}function gd(e,t){if(!e.isEnabled()||!fi(t))return;const n=yd(t);n&&Qe(e,n)}function yd(e){return!fi(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?_d(e):ue(e)}function _d(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return ue(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>nt?(n=!0,`${s.slice(0,nt)}…`):s;if(typeof s=="object")try{const i=vn(s,7);return JSON.stringify(i).length>nt?(n=!0,`${JSON.stringify(i,null,2).slice(0,nt)}…`):i}catch{}return s});return ue({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function fi(e){return!!e.category}function Sd(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function hi(){const e=Ke().getPropagationContext().dsc;e&&delete e.replay_id;const t=us();if(t){const n=no(t);delete n.replay_id}}function Ed(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:T.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function vd(e,t){return e.recordingMode!=="buffer"||t.message===Tn||!t.exception||t.type?!1:oi(e.getOptions().errorSampleRate)}function bd(e){return Object.assign((t,n)=>
9!e.isEnabled()||e.isPaused()?t:ud(t)?(delete t.breadcrumbs,t):!Un(t)&&!fn(t)&&!Hr(t)?t:e.checkAndHandleExpiredSession()?Hr(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Ed(e,t),t):Sd(t,n)&&!e.getOptions()._experiments.captureExceptions?(E&&v.log("Ignoring error from rrweb internals",t),null):((vd(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(hi(),t),{id:"Replay"})}function Mt(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:T.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function wd(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function kd(e){return t=>{if(!e.isEnabled())return;const n=wd(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Mt(e,[n]),!1)))}}function Id(e,t){return E&&e.getOptions()._experiments.traceInternals?!1:Bo(t,G())}function pi(e,t){e.isEnabled()&&t!==null&&(Id(e,t.name)||e.addUpdate(()=>(Mt(e,[t]),!0)))}function xt(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Rs(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function mi(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Et(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function gi(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Ye(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function _e(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=Td(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function hn(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function Td(e){if(!e||typeof e!="string")return{body:e};const t=e.length>br,n=Rd(e);if(t){const r=e.slice(0,br);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Rd(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function vt(e,t){const n=Cd(e);return Ve(n,t)}function Cd(e,t=$.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith($.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Md(e,t,n){try{const r=await Od(e,t,n),s=gi("resource.fetch",r);pi(n.replay,s)}catch(r){E&&v.exception(r,"Failed to capture fetch breadcrumb")}}function xd(e,t){const{input:n,response:r}=t,s=n?Ms(n):void 0,i=xt(s),o=r?mi(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function Od(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=vt(o,n.networkDetailAllowUrls)&&!vt(o,n.networkDetailDenyUrls),f=l?Ad(n,t.input,u):Ye(u),h=await Nd(l,n,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:h}}function Ad({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?Pd(n,t):{};if(!e)return _e(s,r,void 0);const i=Ms(n),[o,a]=Cs(i,v),c=_e(s,r,o);return a?Et(c,a):c}async function Nd(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Ye(s);const i=r?yi(r.headers,n):{};if(!r||!t&&s!==void 0)return _e(i,s,void 0);const[o,a]=await Ld(r),c=Dd(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?Et(c,a):c}function Dd(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?xt(e):n;return r?t?_e(s,i,e):_e(s,i,void 0):Ye(i)}catch(i){return E&&v.exception(i,"Failed to serialize response body"),_e(s,n,void 0)}}async function Ld(e){const t=Fd(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Bd(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(E&&v.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(E&&v.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function yi(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
9function Pd(e,t){return e.length===1&&typeof e[0]!="string"?zr(e[0],t):e.length===2?zr(e[1],t):{}}function zr(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?yi(n,t):Array.isArray(n)?{}:hn(n,t):{}}function Fd(e){try{return e.clone()}catch(t){E&&v.exception(t,"Failed to clone response body")}}function Bd(e){return new Promise((t,n)=>{const r=Xe(()=>n(new Error("Timeout while trying to read response body")),500);Ud(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function Ud(e){return await e.text()}async function $d(e,t,n){try{const r=Hd(e,t,n),s=gi("resource.xhr",r);pi(n.replay,s)}catch(r){E&&v.exception(r,"Failed to capture xhr breadcrumb")}}function Wd(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=xt(r),i=n.getResponseHeader("content-length")?mi(n.getResponseHeader("content-length")):Gd(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function Hd(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:f}=e.data;if(!c)return null;if(!a||!vt(c,n.networkDetailAllowUrls)||vt(c,n.networkDetailDenyUrls)){const S=Ye(l),M=Ye(f);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:d,request:S,response:M}}const h=a[os],p=h?hn(h.request_headers,n.networkRequestHeaders):{},m=hn(zd(a),n.networkResponseHeaders),[y,_]=n.networkCaptureBodies?Cs(o,v):[void 0],[k,P]=n.networkCaptureBodies?jd(a):[void 0],A=_e(p,l,y),I=_e(m,f,k);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:d,request:_?Et(A,_):A,response:P?Et(I,P):I}}function zd(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
10`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}function jd(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return qd(e.response,e.responseType)}catch(n){t.push(n)}return E&&v.warn("Failed to get xhr response body",...t),[void 0]}function qd(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return E&&v.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return E&&v.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Gd(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return xt(n)}catch{return}}function Yd(e){const t=G();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,u)=>Kd(a,c,u))}catch{}}function Kd(e,t,n){if(t.data)try{Vd(t)&&Jd(n)&&(Wd(t,n),$d(t,n,e)),Xd(t)&&Qd(n)&&(xd(t,n),Md(t,n,e))}catch(r){E&&v.exception(r,"Error when enriching network breadcrumb")}}function Vd(e){return e.category==="xhr"}function Xd(e){return e.category==="fetch"}function Jd(e){return e?.xhr}function Qd(e){return e?.response}function Zd(e){const t=G();Is(Cl(e)),_n(kd(e)),md(e),Yd(e);const n=bd(e);ro(n),t&&(t.on("beforeSendEvent",hd(e)),t.on("afterSendEvent",ld(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const i=e.getSessionId();s?.includeReplay&&e.isEnabled()&&i&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function ef(e){try{return Promise.all(Mt(e,[tf($.performance.memory)]))}catch{return[]}}function tf(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function nf(e,t,n){return zo(e,t,{...n,setTimeoutImpl:Xe})}const at=ce.navigator;function rf(){return/iPhone|iPad|iPod/i.test(at?.userAgent??"")||/Macintosh/i.test(at?.userAgent??"")&&at?.maxTouchPoints&&at?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function sf(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){E&&v.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&wl(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Bn(e,n,s))return!0;
10if(!s)return!1;const i=e.session;if(af(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer){const o=e.eventBuffer.getEarliestTimestamp();o&&(E&&v.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&Fn(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function of(e){const t=e.getOptions();return{type:T.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function af(e,t){!t||!e.session||e.session.segmentId!==0||Bn(e,of(e),!1)}function cf(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function uf(e,t,n,r){return bt(lo(e,fo(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function lf({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
11`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function df({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await Qr(e.getOptions(),r,i,t,e,gn());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function ff({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=lf({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=G(),f=Ke(),h=l?.getTransport(),p=l?.getDsn();if(!l||!h||!p||!i.sampled)return pe({});const m={type:$c,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},y=await df({scope:f,client:l,replayId:t,event:m});if(!y)return l.recordDroppedEvent("event_processor","replay"),E&&v.log("An event processor returned `null`, will not send event."),pe({});delete y.sdkProcessingMetadata;const _=uf(y,o,p,l.getOptions().tunnel);let k;try{k=await h.send(_)}catch(A){const I=new Error(Tn);try{I.cause=A}catch{}throw I}if(typeof k.statusCode=="number"&&(k.statusCode<200||k.statusCode>=300))throw new _i(k.statusCode);const P=ys({},k);if(gs(P,"replay"))throw new $n(P);return k}class _i extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class $n extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Si(e,t={count:0,interval:Gc}){const{recordingData:n,onError:r}=e;if(n.length)try{return await ff(e),!0}catch(s){if(s instanceof _i||s instanceof $n)throw s;if(uo("Replays",{_retryCount:t.count}),r&&r(s),t.count>=Yc){const i=new Error(`${Tn} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Xe(async()=>{try{await Si(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const Ei="__THROTTLED",hf="__SKIPPED";function pf(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const d=o;return o=!0,d?hf:Ei}o=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class mf{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Wc,sessionIdleExpire:Hc},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=nf(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=pf((o,a)=>ad(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(Kc,r),timeout:r,scrollTimeout:Vc,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new Sl(this,i)),E){const o=t._experiments;v.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{$.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
11dTasks()},this._handleWindowBlur=()=>{const o=ue({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=ue({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{Al(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){E&&v.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){E&&v.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",E&&v.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){E&&v.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){E&&v.log("Buffering is in progress, call `flush()` to save the replay");return}E&&v.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=qt({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){E&&v.log("Buffering is in progress, call `flush()` to save the replay");return}E&&v.infoTick("Starting replay in buffer mode");const t=qt({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=he({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:qc}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:sf(this),...rf(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{E&&v.log(`Stopping Replay${n?` triggered by ${n}`:""}`),hi(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,nd(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),E&&v.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),E&&v.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();E&&v.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}
11checkAndHandleExpiredSession(){if(this._lastActivity&&dn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${$.location.pathname}${$.location.hash}${$.location.search}`,n=`${$.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Ei){const s=ue({category:"replay.throttled"});this.addUpdate(()=>!Bn(this,{type:fl,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||us(),n=t&&eo(t),s=(n&&nr(n).data||{})[to];if(!(!n||!s||!["route","custom"].includes(s)))return nr(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Zl({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=qt({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return ui(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{$.document.addEventListener("visibilitychange",this._handleVisibilityChange),$.addEventListener("blur",this._handleWindowBlur),$.addEventListener("focus",this._handleWindowFocus),$.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Zd(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Gl(this)}_removeListeners(){try{$.document.removeEventListener("visibilitychange",this._handleVisibilityChange),$.removeEventListener("blur",this._handleWindowBlur),$.removeEventListener("focus",this._handleWindowFocus),$.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||ci(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){E&&v.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:T.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=Pl(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Mt(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
11_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){E&&v.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await ef(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Si({replayId:t,recordingData:i,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=G();if(r){const s=n instanceof $n?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){E&&v.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){E&&v.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&E&&v.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Fn(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=cf(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const a=ue({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Be(e,t){return[...e,...t].join(",")}function gf({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=Be(e,[".sentry-mask","[data-sentry-mask]"]),a=Be(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:Be(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Be(r,[]),ignoreSelector:Be(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function yf({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const jr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',_f=["content-length","content-type","accept"];let qr=!1;const Sf=(e=>new Ef(e));class Ef{constructor({flushMinDelay:t=zc,flushMaxDelay:n=jc,minReplayDuration:r=Xc,maxReplayDuration:s=wr,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:_=[],networkCaptureBodies:k=!0,networkRequestHeaders:P=[],networkResponseHeaders:A=[],mask:I=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:M=[],block:C=[],unblock:g=[],ignore:w=[],maskFn:F,beforeAddRecordingEvent:B,beforeErrorSampling:X,onError:K}={}){this.name="Replay";const ee=gf({mask:I,unmask:M,block:C,unblock:g,ignore:w});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:F,maskInputFn:F,maskAttributeFn:(V,R,Z)=>yf({maskAttributes:S,maskAllText:u,privacyOptions:ee,key:V,value:R,el:Z}),...ee,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:V=>{try{V.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Jc),maxReplayDuration:Math.min(s,wr),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:y,networkDetailDenyUrls:_,networkCaptureBodies:k,networkRequestHeaders:Gr(P),networkResponseHeaders:Gr(A),beforeAddRecordingEvent:B,beforeErrorSampling:X,onError:K,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jr}`:jr),this._isInitialized&&gr())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return qr}set _isInitialized(t){qr=t}afterAllSetup(t){!gr()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
11startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=vf(this._initialOptions,t);this._replay=new mf({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function vf(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Gt(n.replaysSessionSampleRate),i=Gt(n.replaysOnErrorSampleRate);return s==null&&i==null&&wt(()=>{}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function Gr(e){return[..._f,...e.map(t=>t.toLowerCase())]}function bf(e){const t={defaultIntegrations:[...As()],...e};return _s(t,"nuxt",["nuxt","vue"]),Uc(t)}const Yr=e=>{const{event_id:t,timestamp:n,platform:r,sdkProcessingMetadata:s,...i}=e,o=["address","address1","address2","city","email","emailAddress","first_name","firstName","last_name","lastName","postalCode","state","zip"].map(d=>new RegExp(`.*?${d}.*`));function a(d){try{const l=JSON.parse(d);return!!(l&&d)&&(l instanceof Array||l instanceof Object)}catch{return!1}}return{...((d,l)=>{let f;try{f=structuredClone(d)}catch{f=vn(d)}function h(p){for(const m in p)if(p.hasOwnProperty(m))if(typeof p[m]=="object"&&p[m]!==null)h(p[m]);else if(a(p[m])){const y=JSON.parse(p[m]);h(y),p[m]=JSON.stringify(y)}else l?.some(_=>_.test(m))&&(p[m]="[REDACTED]")}return h(f),f.breadcrumbs&&(f.breadcrumbs=f.breadcrumbs.map(p=>(p.category==="console"&&l.some(m=>m.test(p.message))&&(p.message="[REDACTED]"),p))),f})(i,o),event_id:t,timestamp:n,platform:r,...s?{sdkProcessingMetadata:s}:{}}},de=mo(),vi=[_a({filterKeys:["splash-application"],behaviour:"drop-error-if-contains-third-party-frames"})];de.public.SENTRY_REPLAY_ENABLED&&vi.push(Sf({maskAllText:!0,blockAllMedia:!0}));const pn={dsn:de.public.SENTRY_DSN,environment:de.public.SENTRY_ENVIRONMENT,tracesSampleRate:de.public.SENTRY_TRACES_SAMPLE_RATE||1,debug:de.public.SENTRY_DEBUG==="true",release:de.public.SENTRY_RELEASE,beforeSend:Yr,beforeSendTransaction:Yr,integrations:vi};de.public.SENTRY_REPLAY_ENABLED&&(pn.replaysSessionSampleRate=parseFloat(de.public.SENTRY_REPLAYS_SESSION_SAMPLE_RATE),pn.replaysOnErrorSampleRate=parseFloat(de.public.SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE));bf(pn);

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.