1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CY2ZuP-3.js","../chunks/By_0yY3q.js","../chunks/CCh8nuPu.js","../chunks/3FoDp4d2.js","../chunks/zaXz5ev0.js","../chunks/BBCT9hSJ.js","../chunks/B0pUoq3u.js","../chunks/HBY3Ch2L.js","../chunks/B5t-swrw.js","../chunks/DLieaooH.js","../chunks/_5PEE_tX.js","../chunks/BmirG9Gd.js","../chunks/DL1mgwFh.js","../chunks/DErGtlZC.js","../chunks/Cabh606K.js","../chunks/C3NCNoiO.js","../chunks/C7Wl0r9R.js","../chunks/C93ajD2b.js","../chunks/iH0Gkn5I.js","../chunks/iNL0Dnau.js","../chunks/DU6KHFun.js","../chunks/BGyjVxcC.js","../chunks/Dl_SBzbv.js","../chunks/lCtlc69F.js","../chunks/CV5PPjrP.js","../chunks/Cmm4b2hI.js","../chunks/6AOT1hnE.js","../chunks/D_g8rjyB.js","../chunks/ek5DU4wt.js","../chunks/BsllP_Ng.js","../chunks/CbOAVW1d.js","../chunks/v8wJVWHE.js","../chunks/CpK33Q4i.js","../chunks/BNn9Ae0W.js","../chunks/Cg-8jijK.js","../chunks/CGe29Dlp.js","../chunks/Dm6rQsG_.js","../chunks/DFbJJkDC.js","../chunks/CWKosWYt.js","../chunks/Czfg-hWI.js","../chunks/J2W6Ca9V.js","../chunks/CHXX_CYC.js","../chunks/BVkyrDMH.js","../chunks/BbfxNR2z.js","../chunks/TX20tM2I.js","../chunks/CGAa8VbF.js","../chunks/CEEmx9J-.js","../chunks/CEnn45es.js","../chunks/DvQKKUJE.js","../chunks/DByhP8e2.js","../chunks/BnAtYG6T.js","../chunks/DkYr9Hwr.js","../chunks/Cdum8vLY.js","../chunks/CDzwt9be.js","../chunks/BEN9JmKG.js","../chunks/Ln1UHIax.js","../chunks/BuUGACv4.js","../chunks/0WrrtSED.js","../chunks/mlmddHPE.js","../chunks/B4wh-SgY.js","../assets/select-trigger.CV-KWLNP.css","../chunks/Ah7e3D5n.js","../chunks/_CKCFAHM.js","../chunks/DeY_0yPU.js","../chunks/DJrVdA1B.js","../chunks/CHNEzGiR.js","../chunks/C3_TspCe.js","../chunks/BMN9pk89.js","../chunks/CwY5R0Ib.js","../chunks/B-lE0E5m.js","../chunks/D88vYiJh.js","../chunks/D3GPj4j7.js","../chunks/DGtFIvb3.js","../chunks/BXDIeVLQ.js","../chunks/DcTjgBoJ.js","../chunks/49WIp9Pq.js","../chunks/D0a8e7TB.js","../chunks/aTvcMHZP.js","../chunks/1APRwHeN.js","../chunks/Bjz8Q8B1.js","../chunks/BkYlQ4Lo.js","../chunks/DFKmaikT.js","../chunks/_s7L0Zqt.js","../chunks/Cug51ri5.js","../chunks/7UjQhcTS.js","../chunks/anpNciuQ.js","../assets/0.9AEYq5ke.css","../nodes/1.BvuPHvVF.js","../nodes/2.BsYSRgGx.js","../nodes/3.CbVVSm3l.js","../chunks/cTHBPJVO.js","../chunks/dW7LcmNR.js","../chunks/BnpRTkXR.js","../chunks/BdxQ3N0B.js","../chunks/DbgUarIf.js","../chunks/Cw7szNaM.js","../chunks/NWtSww3g.js","../chunks/Cpn7WyBV.js","../chunks/XiIhsV5C.js","../chunks/ClwEWz5x.js","../chunks/C_XxSUoS.js","../nodes/4.C1KDGXE4.js","../chunks/DkdQaqEk.js","../chunks/CEookLsG.js","../nodes/5.Bsy81c5T.js","../nodes/6.CDKazU2N.js","../nodes/7.Dr_uzUMM.js","../nodes/8.jE4c2p7M.js","../nodes/9.DKadlMzw.js","../nodes/10.DWi_cp92.js","../chunks/Bsd6N_0p.js","../chunks/AfrYwtQ0.js","../chunks/C4PjYpt3.js","../chunks/BsjB8k3_.js","../chunks/2dzw4yml.js","../chunks/CBnU1WoL.js","../chunks/CfCV_hRT.js","../chunks/D9EPoMYU.js","../chunks/DUWWPtM1.js","../assets/NurdleDerbyHeroSection.DV91Q3OH.css","../chunks/Ciy83tdN.js","../chunks/q2OZFJ9W.js","../chunks/Bs0LcKmx.js","../assets/10.Dac7xZWT.css","../nodes/11.qcfDF79i.js","../chunks/Dbcn989e.js","../chunks/BjZXVP5y.js","../chunks/BClqqoF8.js","../chunks/z844RcaY.js","../nodes/12.wsOPYaU9.js","../chunks/00imZYw5.js","../chunks/B8vpxpIm.js","../chunks/D6boEcI-.js","../chunks/BUetpt3y.js","../chunks/jArj6DEX.js","../chunks/BmM_BRu9.js","../chunks/D_x9XhNd.js","../chunks/MDRyNXad.js","../chunks/CjlD2DaA.js","../chunks/HzM-aprZ.js","../chunks/RY0K-er8.js","../nodes/13.B5j1nCvj.js","../chunks/DDq9WNsF.js","../chunks/BasOjxtd.js","../chunks/BE1D5dgs.js","../chunks/Da-02A7j.js","../chunks/wGVbulH1.js","../chunks/D0r4Mzq3.js","../chunks/BDm9X-zC.js","../chunks/Cmbwn_X0.js","../chunks/B7_PzonU.js","../chunks/snfLVo-6.js","../assets/scroll-area.bHHIbcsu.css","../chunks/B-Konqvj.js","../chunks/DynS1jVn.js","../nodes/14.xmYEIIO3.js","../nodes/15.9w9NgUaz.js","../chunks/C01jpg08.js","../chunks/BjdVA
1i0G.js","../chunks/BYaexRmI.js","../chunks/DVb9x86o.js","../nodes/16.DbuHG8bP.js","../nodes/17.Bu3EXrS4.js","../chunks/B9I2nyY-.js","../chunks/v5EJaZid.js","../chunks/uG26nfvz.js","../nodes/18.XEAoIJca.js","../nodes/19.CXQxzuWo.js","../nodes/20.6lDI9Pn4.js","../nodes/21.CEEVQVbw.js","../chunks/KqG5YbEw.js","../nodes/22.DPW4n6gu.js","../nodes/23.B9ykIOpE.js","../chunks/DBUDiQQp.js","../chunks/Pt3R4lx8.js","../nodes/24.zKuzxNND.js","../nodes/25.DyWNCUAv.js","../nodes/26.B8qhSeVg.js","../nodes/27.0IBnC_W0.js","../chunks/Dih5HudW.js","../chunks/CPcsIUrw.js","../chunks/DShgCeeH.js","../chunks/DbkvBSjV.js","../chunks/BTNW8peO.js","../chunks/A6s4mu7J.js","../chunks/C4kMhl-j.js","../assets/NewsForm.CTTnXyWd.css","../nodes/28.BEcd50-8.js","../nodes/29.DIvzov2W.js","../chunks/ChToZAcN.js","../nodes/30.Dfo0j7t7.js","../nodes/31.Dc-gaijM.js","../nodes/32.DaQpixR7.js","../nodes/33.CZW1PCoj.js","../chunks/DM3-mYh5.js","../nodes/34.CdGvSxsi.js","../nodes/35.TpHMXJq3.js","../chunks/DX5c3Ha3.js","../chunks/B4a69FLO.js","../nodes/36.os6iSC_Y.js","../chunks/CcJUThRz.js","../nodes/37.DgfnIFpV.js","../chunks/Bl7A1woe.js","../chunks/DG0PhdPn.js","../chunks/CS2cWh8I.js","../chunks/CiTMoSkH.js","../chunks/AC5_uJft.js","../chunks/TP-K8Bva.js","../chunks/DyJEDqpH.js","../nodes/38.CHaJt5Wr.js","../nodes/39.B5COiGS2.js","../nodes/40.D8Vv6eFt.js","../chunks/DtOQGpPo.js","../nodes/41.DsUr8i-w.js","../chunks/CaP6KVUe.js","../nodes/42.0OYDf4UM.js","../chunks/Ck8Fkh9A.js","../nodes/43.Da4wliTN.js","../chunks/CSuW3jEn.js","../chunks/DMj_wll9.js","../nodes/44.BDGfnRSJ.js","../chunks/IU2rYw_r.js","../nodes/45.e9NXgfEe.js","../chunks/CDvNvFZ_.js","../chunks/xUk9cvRN.js","../nodes/46.DdlWC_3-.js","../chunks/BA5zV0_u.js","../chunks/Bbd2HpV7.js","../chunks/DRg5hf3J.js","../chunks/DH0Nq3NH.js","../chunks/Cj856TU5.js","../chunks/j6sDYzWv.js","../assets/46.BWJQbodL.css","../nodes/47.E2PCiJ__.js","../chunks/-TgFiv-A.js","../nodes/48.7rxu6Rq2.js","../nodes/49.CF1cF8Ns.js","../nodes/50.CS395FLj.js","../chunks/BvuQzs40.js","../chunks/DtMSZikg.js","../nodes/52.Ddze78ST.js","../nodes/53.B4VQHz2y.js","../nodes/54.B_3xGcsw.js","../assets/54.Bz9GYmnT.css","../nodes/55.C3NI2LMM.js","../nodes/57.hPcuEzB3.js","../chunks/Bb_4BylS.js","../assets/drawer-trigger.BUKjZNL4.css","../chunks/KeojuECr.js","../chunks/B5AmlMh4.js","../nodes/58.D0TNVgh3.js","../nodes/59.D4IYlGHb.js","../nodes/60.COU7oXnR.js","../nodes/61.Ca8nxN3D.js","../nodes/62.B58ya4Y3.js","../nodes/63.Igg3VmEY.js","../nodes/64.DYnut9Ov.js","../nodes/65.CFclEYPN.js","../nodes/66.CLguX-EG.js","../chunks/b9lyIc1i.js","../nodes/67.C0valOLP.js","../chunks/C2QxHtWO.js","../chunks/Boxmplky.js","../nodes/68.6sWts-a2.js","../chunks/BOHuk4pv.js","../nodes/69.MrgO7hdA.js","../nodes/70.DONSZXvo.js","../nodes/71.BMCHbqSR.js","../nodes/72.TC25f7QT.js","../nodes/73.Ckuxg1pr.js","../nodes/74.Bnu-v-nM.js","../chunks/BK8mXbRZ.js","../nodes/75.DpYVGoiQ.js"])))=>i.map(i=>d[i]); 2import{p as yc}from"../chunks/DFKmaikT.js";import{D as $,d as b,g as Je,G as ae,e as be,f as dt,i as Yt,j as K,k as Ge,l as Dn,m as Qn,n as Sc,p as re,t as ve,q as Ec,r as mr,u as oe,v as Nr,_ as ho,w as Kt,x as vc,y as bc,z as Tc,A as et,B as cs,C as sn,E as mo,F as us,H as go,I as ls,J as Ys,K as Ic,L as wc,M as Ks,N as Zn,O as ft,P as _o,Q as Rc,R as Wt,T as Xs,U as Js,V as kc,W as Cc,X as Ac,Y as Mc,Z as xc,$ as yo,a0 as Oc,a1 as So,a2 as Mt,a3 as Lc,a4 as Eo,a5 as bt,a6 as Pr,a7 as Nc,a8 as Qs,a9 as Pc,aa as Dc,ab as Fc,ac as Dr,ad as ds,ae as xt,af as Zs,ag as Bc,ah as Uc,ai as Hc,aj as Wc,ak as $c,al as zc,am as qc,an as Vc,ao as jc,ap as fs,aq as ot,ar as ze,as as Fn,at as Gc,au as Ee,av as ei,aw as ti,ax as Yc,ay as vo,az as ps,aA as Kc,aB as lt,b as ce,a as Tt,aC as Ot,aD as Xc,aE as Jc,aF as Fr,aG as Xt,c as hs,aH as bo,aI as ni,aJ as Qc,aK as ms,aL as Zc,aM as eu,aN as tu,aO as fe,aP as le,aQ as gs,aR as _s,aS as nu,aT as To,aU as Io,aV as $t,aW as ru,aX as It,aY as ri,aZ as si,a_ as gr,a$ as wo,b0 as su,S as $e,b1 as iu,b2 as ou,b3 as Ro,b4 as au,b5 as cu,b6 as Br,b7 as uu,b8 as lu,b9 as du,ba as _r,bb as ii,bc as fu,bd as pu}from"../chunks/b9lyIc1i.js";import{p as hu,n as mu}from"../chunks/D88vYiJh.js";import{s as Cn,b1 as gu,g as Te,z as _u,aU as yu,ad as Su,p as Eu,ay as vu,u as bu,y as Tu,f as Pe,e as Iu,a as Re,b as wu,c as yr,k as He,h as rt,i as Ru,r as ku,d as ko,j as Cu,t as Au}from"../chunks/3FoDp4d2.js";import{h as Mu,m as xu,u as Ou,s as Lu}from"../chunks/zaXz5ev0.js";import"../chunks/By_0yY3q.js";import{o as Nu}from"../chunks/CCh8nuPu.js";import{i as Bt}from"../chunks/HBY3Ch2L.js";
2import{c as st}from"../chunks/DLieaooH.js";import{b as it}from"../chunks/C93ajD2b.js";import{p as Ut}from"../chunks/DErGtlZC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"05fc4c17870d7109da7247fe25d3a0ba4a688fed"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="69138592-2f0b-497c-9899-e102ce96bf9f",e._sentryDebugIdIdentifier="sentry-dbid-69138592-2f0b-497c-9899-e102ce96bf9f")}catch{}})();const Pu="modulepreload",Du=function(e,t){return new URL(e,t).href},oi={},E=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const o=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),a=c?.nonce||c?.getAttribute("nonce");s=u(n.map(l=>{if(l=Du(l,r),l in oi)return;oi[l]=!0;const d=l.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(r)for(let h=o.length-1;h>=0;h--){const m=o[h];if(m.href===l&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const p=document.createElement("link");if(p.rel=d?"stylesheet":Pu,d||(p.as="script"),p.crossOrigin="",p.href=l,a&&p.setAttribute("nonce",a),document.head.appendChild(p),d)return new Promise((h,m)=>{p.addEventListener("load",h),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return s.then(o=>{for(const c of o||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})},An={},ai={};function tt(e,t){An[e]=An[e]||[],An[e].push(t)}function nt(e,t){if(!ai[e]){ai[e]=!0;try{t()}catch(n){$&&b.error(`Error while instrumenting ${e}`,n)}}}function Ce(e,t){const n=e&&An[e];if(n)for(const r of n)try{r(t)}catch(s){$&&b.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${Je(r)} 5Error:`,s)}}let Sr=null;function Co(e){const t="error";tt(t,e),nt(t,Fu)}function Fu(){Sr=ae.onerror,ae.onerror=function(e,t,n,r,s){return Ce("error",{column:r,error:s,line:n,msg:e,url:t}),Sr?Sr.apply(this,arguments):!1},ae.onerror.__SENTRY_INSTRUMENTED__=!0}let Er=null;function Ao(e){const t="unhandledrejection";tt(t,e),nt(t,Bu)}function Bu(){Er=ae.onunhandledrejection,ae.onunhandledrejection=function(e){return Ce("unhandledrejection",e),Er?Er.apply(this,arguments):!0},ae.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let ci=!1;
5function Uu(){if(ci)return;function e(){const t=be(),n=t&&dt(t);if(n){const r="internal_error";$&&b.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Yt,message:r})}}e.tag="sentry_tracingErrorCallback",ci=!0,Co(e),Ao(e)}const Mn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Hu="heartbeatFailed",Wu="idleTimeout",$u="finalTimeout",zu="externalFinish";function Mo(e,t={}){const n=new Map;let r=!1,s,i=zu,o=!t.disableAutoFinish;const c=[],{idleTimeout:a=Mn.idleTimeout,finalTimeout:u=Mn.finalTimeout,childSpanTimeout:l=Mn.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=K();if(!p||!Ge()){const g=new Dn,I={sample_rate:"0",sampled:"false",...Qn(g)};return Sc(g,I),g}const h=re(),m=be(),_=qu(e);_.end=new Proxy(_.end,{apply(g,I,X){if(d&&d(_),I instanceof Dn)return;const[v,...w]=X,H=v||ve(),F=Ec(H),L=mr(_).filter(A=>A!==_),te=oe(_);if(!L.length||!f)return R(F),Reflect.apply(g,I,[F,...w]);const V=p.getOptions().ignoreSpans,Y=L?.reduce((A,B)=>{const Q=oe(B);return!Q.timestamp||V&&Nr(Q,V)?A:A?Math.max(A,Q.timestamp):Q.timestamp},void 0),S=te.start_timestamp,W=Math.min(S?S+u/1e3:1/0,Math.max(S||-1/0,Math.min(F,Y||1/0)));return R(W),Reflect.apply(g,I,[W,...w])}});function y(){s&&(clearTimeout(s),s=void 0)}function T(g){y(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=Wu,_.end(g))},a)}function N(g){s=setTimeout(()=>{!r&&o&&(i=Hu,_.end(g))},l)}function O(g){y(),n.set(g,!0);const I=ve();N(I+l/1e3)}function U(g){if(n.has(g)&&n.delete(g),n.size===0){const I=ve();T(I+a/1e3)}}function R(g){r=!0,n.clear(),c.forEach(L=>L()),ho(h,m);const I=oe(_),{start_timestamp:X}=I;if(!X)return;I.data[Kt]||_.setAttribute(Kt,i);const w=I.status;(!w||w==="unknown")&&_.setStatus({code:vc}),b.log(`[Tracing] Idle span "${I.op}" finished`);const H=mr(_).filter(L=>L!==_);let F=0;H.forEach(L=>{L.isRecording()&&(L.setStatus({code:Yt,message:"cancelled"}),L.end(g),$&&b.log("[Tracing] Cancelling span since span ended early",JSON.stringify(L,void 0,2)));const te=oe(L),{timestamp:V=0,start_timestamp:Y=0}=te,S=Y<=g,W=(u+a)/1e3,A=V-Y<=W;if($){const B=JSON.stringify(L,void 0,2);S?A||b.log("[Tracing] Discarding span since it finished after idle span final timeout",B):b.log("[Tracing] Discarding span since it happened after idle span was finished",B)}(!A||!S)&&(bc(_,L),F++)}),F>0&&_.setAttribute("sentry.idle_span_discarded_spans",F)}return c.push(p.on("spanStart",g=>{if(r||g===_||oe(g).timestamp||g instanceof Tc&&g.isStandaloneSpan())return;mr(_).includes(g)&&O(g.spanContext().spanId)})),c.push(p.on("spanEnd",g=>{r||U(g.spanContext().spanId)})),c.push(p.on("idleSpanEnableAutoFinish",g=>{g===_&&(o=!0,T(),n.size&&N())})),t.disableAutoFinish||T(),setTimeout(()=>{r||(_.setStatus({code:Yt,message:"deadline_exceeded"}),i=$u,_.end())},u),_}function qu(e){const t=et(e);return ho(re(),t),$&&b.log("[Tracing] Started span is an idle span"),t}const Vu="7";function ju(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Gu(e){return`${ju(e)}${e.projectId}/envelope/`}function Yu(e,t){const n={sentry_version:Vu};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Ku(e,t,n){return t||`${Gu(e)}?${Yu(e,n)}`}const ui=[];function Xu(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ju(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return Xu(r)}function Qu(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&xo(e,r,n)}),n}function li(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function xo(e,t,n){if(n[t.name]){$&&b.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ui.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),ui.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=t[r];typeof s=="function"&&e.on(r,i=>s.call(t,i,e))}),$&&b.log(`Integration installed: ${t.name}`)}function Zu(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function el(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=cs(r)),sn(s,[Zu(e)])}function Ur(e,t){const n=t??tl(e)??[];if(n.length===0)return;const r=e.getOptions(),s=el(n,r._metadata,r.tunnel,e.getDsn());Oo().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function tl(e){return Oo().get(e)}function Oo(){return mo("clientToLogBufferMap",()=>new WeakMap)}function nl(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function rl(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=cs(r)),sn(s,[nl(e)])}function Lo(e,t){const n=t??sl(e)??[];if(n.length===0)return;const r=e.getOptions(),s=rl(n,r._metadata,r.tunnel,e.getDsn());No().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function sl(e){return No().get(e)}function No(){return mo("clientToMetricBufferMap",()=>new WeakMap)}function Po(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const ys=Symbol.for("SentryBufferFullError");function Ss(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return go(ys);const c=o();return t.add(c),c.then(()=>r(c),()=>r(c)),c}function i(o){if(!t.size)return us(!0);const c=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return c;const a=[c,new Promise(u=>Po(setTimeout(()=>u(!1),o)))];return Promise.race(a)}return{get $(){return Array.from(t)},add:s,drain:i}}const il=60*1e3;function ol(e,t=ls()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?il:r-t}function al(e,t){return e[t]||e.all||0}function Do(e,t,n=ls()){return al(e,t)>n}function Fo(e,{statusCode:t,headers:n},r=ls()){const s={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(const c of i.trim().split(",")){const[a,u,,,l]=c.split(":",5),d=parseInt(a,10),f=(isNaN(d)?60:d)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+ol(o,r):t===429&&(s.all=r+60*1e3);return s}const Bo=64;function cl(e,t,n=Ss(e.bufferSize||Bo)){let r={};const s=o=>n.drain(o);function i(o){const c=[];if(Ys(o,(d,f)=>{const p=Ks(f);
5Do(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):c.push(d)}),c.length===0)return Promise.resolve({});const a=sn(o[0],c),u=d=>{if(wc(a,["client_report"])){$&&b.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Ys(a,(f,p)=>{e.recordDroppedEvent(d,Ks(p))})},l=()=>t({body:Ic(a)}).then(d=>d.statusCode===413?($&&b.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):($&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&b.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Fo(r,d),d),d=>{throw u("network_error"),$&&b.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===ys)return $&&b.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:i,flush:s}}function ul(e,t,n){const r=[{type:"client_report"},{timestamp:Zn(),discarded_events:e}];return sn(t?{dsn:t}:{},[r])}function Uo(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 ll(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:c,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?.[_o],exclusive_time:o?.[ft],measurements:e.measurements,is_segment:!0}}function dl(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&&{[_o]:e.profile_id},...e.exclusive_time&&{[ft]:e.exclusive_time}}}},measurements:e.measurements}}const di="Not capturing exception because it's already been captured.",fi="Discarded session because of missing or non-string release",Ho=Symbol.for("SentryInternalError"),Wo=Symbol.for("SentryDoNotSendEventError"),fl=5e3;function xn(e){return{message:e,[Ho]:!0}}function vr(e){return{message:e,[Wo]:!0}}function pi(e){return!!e&&typeof e=="object"&&Ho in e}function hi(e){return!!e&&typeof e=="object"&&Wo in e}function mi(e,t,n,r,s){let i=0,o,c=!1;e.on(n,()=>{i=0,clearTimeout(o),c=!1}),e.on(t,a=>{i+=r(a),i>=8e5?s(e):c||(c=!0,o=Po(setTimeout(()=>{s(e)},fl)))}),e.on("flush",()=>{s(e)})}class pl{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ss(t.transportOptions?.bufferSize??Bo),t.dsn?this._dsn=Rc(t.dsn):$&&b.warn("No DSN provided, client will not send events."),this._dsn){const r=Ku(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&mi(this,"afterCaptureLog","flushLogs",_l,Ur),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&mi(this,"afterCaptureMetric","flushMetrics",gl,Lo)}captureException(t,n,r){const s=Wt();if(Xs(t))return $&&b.log(di),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:Wt(),...r},o=Eo(t)?t:String(t),c=bt(t),a=c?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>a.then(u=>this._captureEvent(u,i,s)),c?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=Wt();if(n?.originalException&&Xs(n.originalException))return $&&b.log(di),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},c=o.capturedSpanScope,a=o.capturedSpanIsolationScope,u=gi(t.type);return this._process(()=>this._captureEvent(t,i,c||r,a),u),i.event_id}captureSession(t){this.sendSession(t),Js(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
5this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){Ur(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),xo(this,t,this._integrations),n||li(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=kc(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=Cc(r,Ac(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=Mc}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){$&&b.warn(fi);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){$&&b.warn(fi);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=xc(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}`;$&&b.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]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return $&&b.error("Error while sending envelope:",n),{}}return $&&b.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Qu(this,t),li(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const i=n.exception?.values;if(i){s=!0,r=!1;for(const a of i)if(a.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Js(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,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),yo(i,t,n,r,this,s).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:{...c.contexts?.trace,...Oc(r)},...c.contexts};const a=So(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:a,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=re(),s=Mt()){return $&&Hr(t)&&b.log(`Captured error event \`${Uo(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{$&&(hi(i)?b.log(i.message):pi(i)?b.warn(i.message):b.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,c=$o(t),a=Hr(t),l=`before send for type \`${t.type||"error"}\``,d=typeof o>"u"?void 0:Pr(o);if(a&&typeof d=="number"&&Lc()>d)return this.recordDroppedEvent("sample_rate","error"),go(vr(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=gi(t.type);return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),vr("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return p;const m=ml(this,i,p,n);return hl(m,l)}).then(p=>{if(p===null){if(this.recordDroppedEvent("before_send",f),c){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw vr(`${l} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(a&&h&&this._updateSessionFromEvent(h,p),c){const _=p.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=p.spans?p.spans.length:0,T=_-y;T>0&&this.recordDroppedEvent("before_send","span",T)}const m=p.transaction_info;if(c&&m&&p.transaction!==t.transaction){const _="custom";p.transaction_info={...m,source:_}}
5return this.sendEvent(p,n),p}).then(null,p=>{throw hi(p)||pi(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),xn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 6Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===ys&&this.recordDroppedEvent("queue_overflow",n),r))}_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(){$&&b.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){$&&b.log("No outcomes to send");return}if(!this._dsn){$&&b.log("No dsn provided, will not send outcomes");return}$&&b.log("Sending outcomes:",t);const n=ul(t,this._options.tunnel&&cs(this._dsn));this.sendEnvelope(n)}}function gi(e){return e==="replay_event"?"replay":e||"error"}function hl(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Fc(e))return e.then(r=>{if(!Dr(r)&&r!==null)throw xn(n);return r},r=>{throw xn(`${t} rejected with ${r}`)});if(!Dr(e)&&e!==null)throw xn(n);return e}function ml(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=t,c=!Nc(t.beforeSendSpan)&&t.beforeSendSpan;let a=n;if(Hr(a)&&s)return s(a,r);if($o(a)){if(c||o){const u=ll(a);if(o?.length&&Nr(u,o))return null;if(c){const l=c(u);l?a=Pc(n,dl(l)):Qs()}if(a.spans){const l=[],d=a.spans;for(const p of d){if(o?.length&&Nr(p,o)){Dc(d,p);continue}if(c){const h=c(p);h?l.push(h):(Qs(),l.push(p))}else l.push(p)}const f=a.spans.length-l.length;f&&e.recordDroppedEvent("before_send","span",f),a.spans=l}}if(i){if(a.spans){const u=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(a,r)}}return a}function Hr(e){return e.type===void 0}function $o(e){return e.type==="transaction"}function gl(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+zo(e.attributes)}function _l(e){let t=0;return e.message&&(t+=e.message.length*2),t+zo(e.attributes)}function zo(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*_i(n[0]):bt(n)?t+=_i(n):t+=100}),t}function _i(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function yl(e){return ds(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function yi(e){return yl(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Sl(e,t){t.debug===!0&&($?b.enable():xt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),re().update(t.initialScope);const r=new e(t);return El(r),r.init(),r}function El(e){re().setClient(e)}const vl="thismessage:/";function Es(e){return"isRelative"in e}function vs(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?vl:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function bl(e){if(Es(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function ut(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Tl(e){return e.split(/[?#]/,1)[0]}function Ye(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const c=e.slice(i+1);o=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function Il(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return Rl(e,n)||wl(e,r)}function wl(e,t){return t?Si(e)===Si(t):!1}function Rl(e,t){const n=vs(e);return!n||Es(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Si(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function kl(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 bs(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:Zs})),s.version=Zs)}function qo(e={}){const t=e.client||K();if(!Bc()||!t)return{};const n=Uc(),r=Hc(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||re(),i=e.span||be(),o=i?Wc(i):Cl(s),c=i?Qn(i):So(t,s),a=$c(c);if(!zc.test(o))return b.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const l={"sentry-trace":o,baggage:a};return e.propagateTraceparent&&(l.traceparent=i?qc(i):Al(s)),l}function Cl(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Vc(t,r,n)}function Al(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return jc(t,r,n)}function Ml(e,t,n){let r,s,i;const o=n?.maxWait?Math.max(n.maxWait,t):0,c=n?.setTimeoutImpl||setTimeout;function a(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function l(){return s!==void 0||i!==void 0?a():r}function d(){return s&&clearTimeout(s),s=c(a,t),o&&i===void 0&&(i=c(a,o)),r}return d.cancel=u,d.flush=l,d}const xl=100;function Qe(e,t){const n=K(),r=Mt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=xl}=n.getOptions();if(i<=0)return;const c={timestamp:Zn(),...e},a=s?xt(()=>s(c,t)):c;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
6)}let Ei;const Ol="FunctionToString",vi=new WeakMap,Ll=(()=>({name:Ol,setupOnce(){Ei=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=fs(this),n=vi.has(K())&&t!==void 0?t:this;return Ei.apply(n,e)}}catch{}},setup(e){vi.set(e,!0)}})),Nl=Ll,Pl=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Dl="EventFilters",Fl=(e={})=>{let t;return{name:Dl,setup(n){const r=n.getOptions();t=bi(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=bi(e,i)}return Ul(n,t)?null:n}}},Bl=((e={})=>({...Fl(e),name:"InboundFilters"}));function bi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Pl],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ul(e,t){if(e.type){if(e.type==="transaction"&&Wl(e,t.ignoreTransactions))return $&&b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 7Event: ${ot(e)}`),!0}else{if(Hl(e,t.ignoreErrors))return $&&b.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 8Event: ${ot(e)}`),!0;if(Vl(e))return $&&b.warn(`Event dropped due to not having an error message, error type or stacktrace. 9Event: ${ot(e)}`),!0;if($l(e,t.denyUrls))return $&&b.warn(`Event dropped due to being matched by \`denyUrls\` option. 10Event: ${ot(e)}. 11Url: ${Bn(e)}`),!0;if(!zl(e,t.allowUrls))return $&&b.warn(`Event dropped due to not being matched by \`allowUrls\` option. 12Event: ${ot(e)}. 13Url: ${Bn(e)}`),!0}return!1}function Hl(e,t){return t?.length?Uo(e).some(n=>ze(n,t)):!1}function Wl(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ze(n,t):!1}function $l(e,t){if(!t?.length)return!1;const n=Bn(e);return n?ze(n,t):!1}function zl(e,t){if(!t?.length)return!0;const n=Bn(e);return n?ze(n,t):!0}function ql(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 Bn(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ql(n):null}catch{return $&&b.error(`Cannot extract url for event ${ot(e)}`),null}}function Vl(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function jl(e,t,n,r,s,i){if(!s.exception?.values||!i||!Fn(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=Wr(e,t,r,i.originalException,n,s.exception.values,o,0))}function Wr(e,t,n,r,s,i,o,c){if(i.length>=n+1)return i;let a=[...i];if(Fn(r[s],Error)){Ti(o,c,r);const u=e(t,r[s]),l=a.length;Ii(u,s,l,c),a=Wr(e,t,n,r[s],s,[u,...a],u,l)}return Vo(r)&&r.errors.forEach((u,l)=>{if(Fn(u,Error)){Ti(o,c,r);const d=e(t,u),f=a.length;Ii(d,`errors[${l}]`,f,c),a=Wr(e,t,n,u,s,[d,...a],d,f)}}),a}function Vo(e){return Array.isArray(e.errors)}function Ti(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Vo(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Ii(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Gl(e){const t="console";tt(t,e),nt(t,Yl)}function Yl(){"console"in ae&&Gc.forEach(function(e){e in ae.console&&Ee(ae.console,e,function(t){return ei[e]=t,function(...n){Ce("console",{args:n,level:e}),ei[e]?.apply(ae.console,n)}})})}function jo(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Kl="Dedupe",Xl=(()=>{let e;return{name:Kl,processEvent(t){if(t.type)return t;try{if(Ql(t,e))return $&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Jl=Xl;function Ql(e,t){return t?!!(Zl(e,t)||ed(e,t)):!1}function Zl(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Yo(e,t)||!Go(e,t))}function ed(e,t){const n=wi(t),r=wi(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Yo(e,t)||!Go(e,t))}function Go(e,t){let n=ti(e),r=ti(t);if(!n&&!r)return!0;
13if(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 Yo(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 wi(e){return e.exception?.values?.[0]}const td="ConversationId",nd=(()=>({name:td,setup(e){e.on("spanStart",t=>{const n=re().getScopeData(),r=Mt().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:i,data:o,description:c}=oe(t);if(!i?.startsWith("gen_ai.")&&!o["ai.operationId"]&&!c?.startsWith("ai."))return;t.setAttribute(Yc,s)}})}})),rd=nd;function sd(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,c=Ge()&&t(o);if(e.endTimestamp){const p=e.fetchData.__span;if(!p)return;const h=r[p];h&&(c&&(ad(h,e),id(h,e,s)),delete r[p]);return}const{spanOrigin:a="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},l=K(),d=!!be(),f=c&&d?et(ld(o,i,a)):new Dn;if(c&&!d&&l?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const p=e.args[0],h={...e.args[1]||{}},m=od(p,h,Ge()&&d?f:void 0,u);m&&(e.args[1]=h,h.headers=m)}if(l){const p={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};l.emit("beforeOutgoingRequestSpan",f,p)}return f}function id(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function od(e,t,n,r){const s=qo({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,c=s.traceparent;if(!i)return;const a=t.headers||(ps(e)?e.headers:void 0);if(a)if(cd(a)){const u=new Headers(a);if(u.get("sentry-trace")||u.set("sentry-trace",i),r&&c&&!u.get("traceparent")&&u.set("traceparent",c),o){const l=u.get("baggage");l?yn(l)||u.set("baggage",`${l},${o}`):u.set("baggage",o)}return u}else if(ud(a)){const u=[...a];u.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",i]),r&&c&&!u.find(d=>d[0]==="traceparent")&&u.push(["traceparent",c]);const l=a.find(d=>d[0]==="baggage"&&typeof d[1]=="string"&&yn(d[1]));return o&&!l&&u.push(["baggage",o]),u}else{const u="sentry-trace"in a?a["sentry-trace"]:void 0,l="traceparent"in a?a.traceparent:void 0,d="baggage"in a?a.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],p=d&&(Array.isArray(d)?d.find(m=>yn(m)):yn(d));o&&!p&&f.push(o);const h=Object.assign({},a,{"sentry-trace":u??i,baggage:f.length>0?f.join(","):void 0});return r&&c&&!l&&(h.traceparent=c),h}else return{...s}}function ad(e,t){if(t.response){vo(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Yt,message:"internal_error"});e.end()}function yn(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Kc))}function cd(e){return typeof Headers<"u"&&Fn(e,Headers)}function ud(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function ld(e,t,n){if(e.startsWith("data:")){const i=Ye(e);return{name:`${t} ${i}`,attributes:Ri(e,void 0,t,n)}}const r=vs(e),s=r?bl(r):e;return{name:`${t} ${s}`,attributes:Ri(e,r,t,n)}}function Ri(e,t,n,r){const s={url:Ye(e),type:"fetch","http.method":n,[ce]:r,[lt]:"http.client"};return t&&(Es(t)||(s["http.url"]=Ye(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function Ko(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Jt=ae;function dd(){return"history"in Jt&&!!Jt.history}function fd(){if(!("fetch"in Jt))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function $r(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function pd(){if(typeof EdgeRuntime=="string")return!0;if(!fd())return!1;if($r(Jt.fetch))return!0;let e=!1;const t=Jt.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=$r(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){$&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n
13)}return e}function Xo(e,t){const n="fetch";tt(n,e),nt(n,()=>Jo(void 0,t))}function hd(e){const t="fetch-body-resolved";tt(t,e),nt(t,()=>Jo(gd))}function Jo(e,t=!1){t&&!pd()||Ee(ae,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=_d(r),c={args:r,fetchData:{method:i,url:o},startTimestamp:ve()*1e3,virtualError:s,headers:yd(r)};return e||Ce("fetch",{...c}),n.apply(ae,r).then(async a=>(e?e(a):Ce("fetch",{...c,endTimestamp:ve()*1e3,response:a}),a),a=>{Ce("fetch",{...c,endTimestamp:ve()*1e3,error:a}),ds(a)&&a.stack===void 0&&(a.stack=s.stack,Tt(a,"framesToPop",1));const l=K()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&a instanceof TypeError&&(a.message==="Failed to fetch"||a.message==="Load failed"||a.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(c.fetchData.url).host;l==="always"?a.message=`${a.message} (${p})`:Tt(a,"__sentry_fetch_url_host__",p)}catch{}throw a})}})}async function md(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function gd(e){let t;try{t=e.clone()}catch{return}md(t,()=>{Ce("fetch-body-resolved",{endTimestamp:ve()*1e3,response:e})})}function On(e,t){return!!e&&typeof e=="object"&&!!e[t]}function ki(e){return typeof e=="string"?e:e?On(e,"url")?e.url:e.toString?e.toString():"":""}function _d(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:ki(n),method:On(r,"method")?String(r.method).toUpperCase():ps(n)&&On(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:ki(t),method:On(t,"method")?String(t.method).toUpperCase():"GET"}}function yd(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(ps(t))return new Headers(t.headers)}catch{}}function Sd(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ed(){return"npm"}function vd(){return!Sd()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function zr(){return typeof window<"u"&&(!vd()||bd())}function bd(){return ae.process?.type==="renderer"}const D=ae;let qr=0;function Qo(){return qr>0}function Td(){qr++,setTimeout(()=>{qr--})}function wt(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(fs(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>wt(o,t));return e.apply(this,i)}catch(i){throw Td(),Jc(o=>{o.addEventProcessor(c=>(t.mechanism&&(Fr(c,void 0),Xt(c,t.mechanism)),c.extra={...c.extra,arguments:s},c)),hs(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Xc(r,e),Tt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Ts(){const e=Ot(),{referrer:t}=D.document||{},{userAgent:n}=D.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Is(e,t){const n=ws(e,t),r={type:Cd(t),value:Ad(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Id(e,t,n,r){const i=K()?.getOptions().normalizeDepth,o=Nd(t),c={__serialized__:Zc(t,i)};if(o)return{exception:{values:[Is(e,o)]},extra:c};const a={exception:{values:[{type:ms(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Od(t,{isUnhandledRejection:r})}]},extra:c};if(n){const u=ws(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function br(e,t){return{exception:{values:[Is(e,t)]}}}function ws(e,t){const n=t.stacktrace||t.stack||"",r=Rd(t),s=kd(t);try{return e(n,r,s)}catch{}return[]}const wd=/Minified React error #\d+;/i;function Rd(e){return e&&wd.test(e.message)?1:0}function kd(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Zo(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Cd(e){const t=e?.name;return!t&&Zo(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ad(e){const t=e?.message;return Zo(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?yi(t.error):yi(e):"No error message"}function Md(e,t,n,r){const s=n?.syntheticException||void 0,i=Rs(e,t,s,r);return Xt(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),us(i)}function xd(e,t,n="info",r,s){const i=r?.syntheticException||void 0,o=Vr(e,t,i,s);return o.level=n,r?.event_id&&(o.event_id=r.event_id),us(o)}
13function Rs(e,t,n,r,s){let i;if(bo(t)&&t.error)return br(e,t.error);if(ni(t)||Qc(t)){const o=t;if("stack"in t)i=br(e,t);else{const c=o.name||(ni(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=Vr(e,a,n,r),Fr(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return ds(t)?br(e,t):Dr(t)||ms(t)?(i=Id(e,t,n,s),Xt(i,{synthetic:!0}),i):(i=Vr(e,t,n,r),Fr(i,`${t}`),Xt(i,{synthetic:!0}),i)}function Vr(e,t,n,r){const s={};if(r&&n){const i=ws(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),Xt(s,{synthetic:!0})}if(Eo(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 Od(e,{isUnhandledRejection:t}){const n=eu(e),r=t?"promise rejection":"exception";return bo(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ms(e)?`Event \`${Ld(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ld(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Nd(e){return Object.values(e).find(t=>t instanceof Error)}class Pd extends pl{constructor(t){const n=Dd(t),r=D.SENTRY_SDK_SOURCE||Ed();bs(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:c,enableMetrics:a}=this._options,u=a??c?.enableMetrics??!0;D.document&&(i||o||u)&&D.document.addEventListener("visibilitychange",()=>{D.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&Ur(this),u&&Lo(this))}),s&&this.on("beforeSendSession",kl)}eventFromException(t,n){return Md(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return xd(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 Dd(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:D.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ne=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,x=ae,Fd=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",on=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=Fd(t.value,n),e(t)))}},an=(e=!0)=>{const t=x.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Lt=()=>an()?.activationStart??0;function Ke(e,t,n){x.document&&x.addEventListener(e,t,n)}function Un(e,t,n){x.document&&x.removeEventListener(e,t,n)}let vt=-1;const ea=new Set,Bd=()=>x.document?.visibilityState==="hidden"&&!x.document?.prerendering?0:1/0,Ln=e=>{if(Ud(e)&&vt>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of ea)t();isFinite(vt)||(vt=e.type==="visibilitychange"?e.timeStamp:0,Un("prerenderingchange",Ln,!0))}},cn=()=>{if(x.document&&vt<0){const e=Lt();vt=(x.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??Bd(),Ke("visibilitychange",Ln,!0),Ke("pagehide",Ln,!0),Ke("prerenderingchange",Ln,!0)}return{get firstHiddenTime(){return vt},onHidden(e){ea.add(e)}}};function Ud(e){return e.type==="pagehide"||x.document?.visibilityState==="hidden"}const Hd=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,un=(e,t=-1)=>{const n=an();let r="navigate";return n&&(x.document?.prerendering||Lt()>0?r="prerender":x.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Hd(),navigationType:r}},Tr=new WeakMap;function ks(e,t){try{return Tr.get(e)||Tr.set(e,new t),Tr.get(e)}catch{return new t}}class Hn{constructor(){Hn.prototype.__init.call(this),Hn.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Nt=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Cs=e=>{let t=!1;return()=>{t||(e(),t=!0)}},er=e=>{x.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Wd=[1800,3e3],$d=(e,t={})=>{er(()=>{const n=cn(),r=un("FCP");let s;const o=Nt("paint",c=>{for(const a of c)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(r.value=Math.max(a.startTime-Lt(),0),r.entries.push(a),s(!0)))});o&&(s=on(e,r,Wd,t.reportAllChanges))})},zd=[.1,.25],qd=(e,t={})=>{$d(Cs(()=>{const n=un("CLS",0);let r;const s=cn(),i=ks(t,Hn),o=a=>{for(const u of a)i._processEntry(u);i._sessionValue>
13n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},c=Nt("layout-shift",o);c&&(r=on(e,n,zd,t.reportAllChanges),s.onHidden(()=>{o(c.takeRecords()),r(!0)}),x?.setTimeout?.(r))}))};let ta=0,Ir=1/0,Sn=0;const Vd=e=>{e.forEach(t=>{t.interactionId&&(Ir=Math.min(Ir,t.interactionId),Sn=Math.max(Sn,t.interactionId),ta=Sn?(Sn-Ir)/7+1:0)})};let jr;const na=()=>jr?ta:performance.interactionCount||0,jd=()=>{"interactionCount"in performance||jr||(jr=Nt("event",Vd,{type:"event",buffered:!0,durationThreshold:0}))},wr=10;let ra=0;const Gd=()=>na()-ra;class Wn{constructor(){Wn.prototype.__init.call(this),Wn.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ra=na(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Gd()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<wr||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,i)=>i._latency-s._latency),this._longestInteractionList.length>wr){const s=this._longestInteractionList.splice(wr);for(const i of s)this._longestInteractionMap.delete(i.id)}this._onAfterProcessingINPCandidate?.(r)}}}const sa=e=>{const t=x.requestIdleCallback||x.setTimeout;x.document?.visibilityState==="hidden"?e():(e=Cs(e),Ke("visibilitychange",e,{once:!0,capture:!0}),Ke("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Un("visibilitychange",e,{capture:!0}),Un("pagehide",e,{capture:!0})}))},Yd=[200,500],Kd=40,Xd=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=cn();er(()=>{jd();const r=un("INP");let s;const i=ks(t,Wn),o=a=>{sa(()=>{for(const l of a)i._processEntry(l);const u=i._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},c=Nt("event",o,{durationThreshold:t.durationThreshold??Kd});s=on(e,r,Yd,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(c.takeRecords()),s(!0)}))})};class Jd{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const Qd=[2500,4e3],Zd=(e,t={})=>{er(()=>{const n=cn(),r=un("LCP");let s;const i=ks(t,Jd),o=a=>{t.reportAllChanges||(a=a.slice(-1));for(const u of a)i._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Lt(),0),r.entries=[u],s())},c=Nt("largest-contentful-paint",o);if(c){s=on(e,r,Qd,t.reportAllChanges);const a=Cs(()=>{o(c.takeRecords()),c.disconnect(),s(!0)}),u=l=>{l.isTrusted&&(sa(a),Un(l.type,u,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])Ke(l,u,{capture:!0})}})},ef=[800,1800],Gr=e=>{x.document?.prerendering?er(()=>Gr(e)):x.document?.readyState!=="complete"?addEventListener("load",()=>Gr(e),!0):setTimeout(e)},tf=(e,t={})=>{const n=un("TTFB"),r=on(e,n,ef,t.reportAllChanges);Gr(()=>{const s=an();s&&(n.value=Math.max(s.responseStart-Lt(),0),n.entries=[s],r(!0))})},zt={},$n={};let ia,oa,aa,ca;function tr(e,t=!1){return rr("cls",e,rf,ia,t)}function nr(e,t=!1){return rr("lcp",e,sf,oa,t)}function nf(e){return rr("ttfb",e,of,aa)}function As(e){return rr("inp",e,af,ca)}function Rt(e,t){return ua(e,t),$n[e]||(cf(e),$n[e]=!0),la(e,t)}function ln(e,t){const n=zt[e];if(n?.length)for(const r of n)try{r(t)}catch(s){Ne&&b.error(`Error while triggering instrumentation handler. 14Type: ${e} 15Name: ${Je(r)} 16Error:`,s)}}function rf(){return qd(e=>{ln("cls",{metric:e}),ia=e},{reportAllChanges:!0})}function sf(){return Zd(e=>{ln("lcp",{metric:e}),oa=e},{reportAllChanges:!0})}function of(){return tf(e=>{ln("ttfb",{metric:e}),aa=e})}function af(){return Xd(e=>{ln("inp",{metric:e}
16),ca=e})}function rr(e,t,n,r,s=!1){ua(e,t);let i;return $n[e]||(i=n(),$n[e]=!0),r&&t({metric:r}),la(e,t,s?i:void 0)}function cf(e){const t={};e==="event"&&(t.durationThreshold=0),Nt(e,n=>{ln(e,{entries:n})},t)}function ua(e,t){zt[e]=zt[e]||[],zt[e].push(t)}function la(e,t,n){return()=>{n&&n();const r=zt[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function uf(e){return"duration"in e}const lf=e=>{const t=n=>{(n.type==="pagehide"||x.document?.visibilityState==="hidden")&&e(n)};Ke("visibilitychange",t,{capture:!0,once:!0}),Ke("pagehide",t,{capture:!0,once:!0})};function Rr(e){return typeof e=="number"&&isFinite(e)}function Ze(e,t,n,{...r}){const s=oe(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),tu(e,()=>{const i=et({startTime:t,...r});return i&&i.end(n),i})}function Ms(e){const t=K();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:c,sendDefaultPii:a}=t.getOptions(),l=t.getIntegrationByName("Replay")?.getReplayId(),d=re(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:c,user:p||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":x.navigator?.userAgent,"client.address":a?"{{auto}}":void 0,...s};return et({name:n,attributes:m,startTime:i,experimental:{standalone:!0}})}function dn(){return x.addEventListener&&x.performance}function ne(e){return e/1e3}function df(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function sr(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ir(e,t){let n,r=!1;function s(c){!r&&n&&t(c,n.spanContext().spanId,n),r=!0}lf(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(c,a)=>{a?.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",c=>{n=c,o()})}function ff(e){let t=0,n;if(!sr("layout-shift"))return;const r=tr(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);ir(e,(s,i)=>{pf(t,n,i,s),r()})}function pf(e,t,n,r){Ne&&b.log(`Sending CLS span (${e})`);const s=t?ne((fe()||0)+t.startTime):ve(),i=re().getScopeData().transactionName,o=t?le(t.sources[0]?.node):"Layout shift",c={[ce]:"auto.http.browser.cls",[lt]:"ui.webvital.cls",[ft]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,l)=>{c[`cls.source.${l+1}`]=le(u.node)});const a=Ms({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("cls",{[_s]:"",[gs]:e}),a.end(s))}const hf=6e4;function fn(e){return e!=null&&e>0&&e<=hf}function mf(e){let t=0,n;if(!sr("largest-contentful-paint"))return;const r=nr(({metric:s})=>{const i=s.entries[s.entries.length-1];!i||!fn(s.value)||(t=s.value,n=i)},!0);ir(e,(s,i)=>{gf(t,n,i,s),r()})}function gf(e,t,n,r){if(!fn(e))return;Ne&&b.log(`Sending LCP span (${e})`);const s=ne((fe()||0)+(t?.startTime||0)),i=re().getScopeData().transactionName,o=t?le(t.element):"Largest contentful paint",c={[ce]:"auto.http.browser.lcp",[lt]:"ui.webvital.lcp",[ft]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=le(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const a=Ms({name:o,transaction:i,attributes:c,startTime:s});a&&(a.addEvent("lcp",{[_s]:"millisecond",[gs]:e}),a.end(s))}function ke(e){return e&&((fe()||performance.timeOrigin)+e)/1e3}function da(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=df(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return fe()||dn()?.timeOrigin?_f({...t,"http.request.redirect_start":ke(e.redirectStart),"http.request.redirect_end":ke(e.redirectEnd),"http.request.worker_start":ke(e.workerStart),"http.request.fetch_start":ke(e.fetchStart),"http.request.domain_lookup_start":ke(e.domainLookupStart),"http.request.domain_lookup_end":ke(e.domainLookupEnd),"http.request.connect_start":ke(e.connectStart),"http.request.secure_connection_start":ke(e.secureConnectionStart),"http.request.connection_end":ke(e.connectEnd),"http.request.request_start":ke(e.requestStart),"http.request.response_start":ke(e.responseStart),"http.request.response_end":ke(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function _f(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const yf=2147483647;let Ci=0,ge={},Se,zn;function Sf({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=dn();if(r&&fe()){r.mark&&x.performance.mark("sentry-tracing-init");const s=t?mf(n):t===!1?If():void 0,i=e?ff(n):e===!1?Tf():void 0,o=wf();return()=>{o(),s?.(),i?.()}}return()=>{}}function Ef(){Rt("longtask",({entries:e})=>{const t=be();if(!t)return;const{op:n,start_timestamp:r}=oe(t);
16for(const s of e){const i=ne(fe()+s.startTime),o=ne(s.duration);n==="navigation"&&r&&i<r||Ze(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ce]:"auto.ui.browser.metrics"}})}})}function vf(){new PerformanceObserver(t=>{const n=be();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=ne(fe()+r.startTime),{start_timestamp:i,op:o}=oe(n);if(o==="navigation"&&i&&s<i)continue;const c=ne(r.duration),a={[ce]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:l,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;a["browser.script.invoker"]=l,a["browser.script.invoker_type"]=d,f&&(a["code.filepath"]=f),p&&(a["code.function"]=p),h!==-1&&(a["browser.script.source_char_position"]=h),Ze(n,s,s+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0})}function bf(){Rt("event",({entries:e})=>{const t=be();if(t){for(const n of e)if(n.name==="click"){const r=ne(fe()+n.startTime),s=ne(n.duration),i={name:le(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[ce]:"auto.ui.browser.metrics"}},o=To(n.target);o&&(i.attributes["ui.component_name"]=o),Ze(t,r,r+s,i)}}})}function Tf(){return tr(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ge.cls={value:e.value,unit:""},zn=t)},!0)}function If(){return nr(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!fn(e.value)||(ge.lcp={value:e.value,unit:"millisecond"},Se=t)},!0)}function wf(){return nf(({metric:e})=>{e.entries[e.entries.length-1]&&(ge.ttfb={value:e.value,unit:"millisecond"})})}function Rf(e,t){const n=dn(),r=fe();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:s,ignorePerformanceApiSpans:i,ignoreResourceSpans:o,recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:a}=t,u=ne(r),l=n.getEntries(),{op:d,start_timestamp:f}=oe(e);if(l.slice(Ci).forEach(p=>{const h=ne(p.startTime),m=ne(Math.max(0,p.duration));if(!(d==="navigation"&&f&&u+h<f))switch(p.entryType){case"navigation":{Mf(e,p,u);break}case"mark":case"paint":case"measure":{Cf(e,p,h,m,u,i);const _=cn(),y=p.startTime<_.firstHiddenTime;p.name==="first-paint"&&y&&(ge.fp={value:p.startTime,unit:"millisecond"}),p.name==="first-contentful-paint"&&y&&(ge.fcp={value:p.startTime,unit:"millisecond"});break}case"resource":{Lf(e,p,p.name,h,m,u,o);break}}}),Ci=Math.max(l.length-1,0),Nf(e,s),d==="pageload"){if(Ff(ge),s){const p=(h,m,_)=>{const y=_??`browser.web_vital.${h}.value`;e.setAttribute(y,m),Ne&&b.log("Setting web vital attribute",{[y]:m},"on pageload span")};["ttfb","fp","fcp"].forEach(h=>{ge[h]&&p(h,ge[h].value)}),ge["ttfb.requestTime"]&&p("ttfb.requestTime",ge["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else c||delete ge.cls,a||delete ge.lcp,Object.entries(ge).forEach(([p,h])=>{nu(p,h.value,h.unit)}),Pf(e,t);e.setAttribute(s?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(s?"browser.performance.navigation.activation_start":"performance.activationStart",Lt())}Se=void 0,zn=void 0,ge={}}function kf(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function Cf(e,t,n,r,s,i){if(kf(t)||["mark","measure"].includes(t.entryType)&&ze(t.name,i))return;const o=an(!1),c=ne(o?o.requestStart:0),a=s+Math.max(n,c),u=s+n,l=u+r,d={[ce]:"auto.resource.browser.metrics"};a!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=a),Af(d,t),a<=l&&Ze(e,a,l,{name:t.name,op:t.entryType,attributes:d})}function Af(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&bt(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(bt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Mf(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{En(e,t,r,n)}),En(e,t,"secureConnection",n,"TLS/SSL"),En(e,t,"fetch",n,"cache"),En(e,t,"domainLookup",n,"DNS"),Of(e,t,n)}function En(e,t,n,r,s=n){const i=xf(n),o=t[i],c=t[`${n}Start`];!c||!o||Ze(e,r+ne(c),r+ne(o),{op:`browser.${s}`,name:t.name,attributes:{[ce]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function xf(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Of(e,t,n){const r=n+ne(t.requestStart),s=n+ne(t.responseEnd),i=n+ne(t.responseStart);t.responseEnd&&(Ze(e,r,s,{op:"browser.request",name:t.name,attributes:{[ce]:"auto.ui.browser.metrics"}}),Ze(e,i,s,{op:"browser.response",name:t.name,attributes:{[ce]:"auto.ui.browser.metrics"}}))}function Lf(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(c))return;const a={[ce]:"auto.resource.browser.metrics"},u=ut(n);u.protocol&&(a["url.scheme"]=u.protocol.split(":").pop()),u.host&&(a["server.address"]=u.host),a["url.same_origin"]=n.includes(x.location.origin),Df(t,a,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const l={...a,...da(t)},d=i+r,f=d+s;Ze(e,d,f,{name:n.replace(x.location.origin,""),op:c,attributes:l})}function Nf(e,t){const n=x.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),Rr(r.rtt)&&(ge["connection.rtt"]={value:r.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",r.rtt))),Rr(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Rr(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function Pf(e,t){Se&&t.recordLcpOnPageloadSpan&&(Se.element&&e.setAttribute("lcp.element",le(Se.element)),Se.id&&e.setAttribute("lcp.id",Se.id),Se.url&&e.setAttribute("lcp.url",Se.url.trim().slice(0,200)),Se.loadTime!=null&&e.setAttribute("lcp.loadTime",
16Se.loadTime),Se.renderTime!=null&&e.setAttribute("lcp.renderTime",Se.renderTime),e.setAttribute("lcp.size",Se.size)),zn?.sources&&t.recordClsOnPageloadSpan&&zn.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,le(n.node)))}function Df(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<yf||typeof i=="string")&&(t[s]=i)})}function Ff(e){const t=an(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const kr=[],qt=new Map,pt=new Map,fa=60;function Bf(){if(dn()&&fe()){const t=Uf();return()=>{t()}}return()=>{}}const Qt={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Uf(){return As(Hf)}const Hf=({metric:e})=>{if(e.value==null)return;const t=ne(e.value);if(t>fa)return;const n=e.entries.find(h=>h.duration===e.value&&Qt[h.name]);if(!n)return;const{interactionId:r}=n,s=Qt[n.name],i=ne(fe()+n.startTime),o=be(),c=o?dt(o):void 0,a=r!=null?qt.get(r):void 0,u=a?.span||
16c,l=u?oe(u).description:re().getScopeData().transactionName,d=a?.elementName||le(n.target),f={[ce]:"auto.http.browser.inp",[lt]:`ui.interaction.${s}`,[ft]:n.duration},p=Ms({name:d,transaction:l,attributes:f,startTime:i});p&&(p.addEvent("inp",{[_s]:"millisecond",[gs]:e.value}),p.end(i+t))};function Wf(e){return e!=null?qt.get(e):void 0}function $f(){const e=Object.keys(Qt);zr()&&e.forEach(s=>{x.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=le(i),c=Math.round(s.timeStamp);if(pt.set(c,o),pt.size>50){const a=pt.keys().next().value;a!==void 0&&pt.delete(a)}}function n(s){const i=Math.round(s.startTime);let o=pt.get(i);if(!o)for(let c=-5;c<=5;c++){const a=pt.get(i+c);if(a){o=a;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=be(),o=i&&dt(i);s.forEach(c=>{if(!uf(c))return;const a=c.interactionId;if(a==null||qt.has(a))return;const u=c.target?le(c.target):n(c);if(kr.length>10){const l=kr.shift();qt.delete(l)}kr.push(a),qt.set(a,{span:o,elementName:u})})};Rt("event",r),Rt("first-input",r)}function xs(e){const{name:t,op:n,origin:r,metricName:s,value:i,attributes:o,parentSpan:c,reportEvent:a,startTime:u,endTime:l}=e,d=re().getScopeData().transactionName,f={[ce]:r,[lt]:n,[ft]:0,[`browser.web_vital.${s}.value`]:i,"sentry.transaction":d,"user_agent.original":x.navigator?.userAgent,...o};c&&Io(c).attributes?.[lt]==="pageload"&&(f["sentry.pageload.span_id"]=c.spanContext().spanId),a&&(f[`browser.web_vital.${s}.report_event`]=a);const p=et({name:t,attributes:f,startTime:u,parentSpan:c});p&&p.end(l??u)}function zf(e){let t=0,n;if(!sr("largest-contentful-paint"))return;const r=nr(({metric:s})=>{const i=s.entries[s.entries.length-1];!i||!fn(s.value)||(t=s.value,n=i)},!0);ir(e,(s,i,o)=>{qf(t,n,o,s),r()})}function qf(e,t,n,r){if(!fn(e))return;Ne&&b.log(`Sending LCP span (${e})`);const s=fe()||0,i=ne(s),o=ne(s+(t?.startTime||0)),c=t?le(t.element):"Largest contentful paint",a={};t?.element&&(a["browser.web_vital.lcp.element"]=le(t.element)),t?.id&&(a["browser.web_vital.lcp.id"]=t.id),t?.url&&(a["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(a["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(a["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(a["browser.web_vital.lcp.size"]=t.size),xs({name:c,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:a,parentSpan:n,reportEvent:r,startTime:i,endTime:o})}function Vf(e){let t=0,n;if(!sr("layout-shift"))return;const r=tr(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);ir(e,(s,i,o)=>{jf(t,n,o,s),r()})}function jf(e,t,n,r){Ne&&b.log(`Sending CLS span (${e})`);const s=t?ne((fe()||0)+t.startTime):ve(),i=t?le(t.sources[0]?.node):"Layout shift",o={};t?.sources&&t.sources.forEach((c,a)=>{o[`browser.web_vital.cls.source.${a+1}`]=le(c.node)}),xs({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:s})}function Gf(){if(!dn()||!fe())return;As(({metric:n})=>{if(n.value==null||ne(n.value)>fa)return;const s=n.entries.find(i=>i.duration===n.value&&Qt[i.name]);s&&Yf(n.value,s)})}function Yf(e,t){Ne&&b.log(`Sending INP span (${e})`);const n=ne(fe()+t.startTime),r=ne(e),s=Qt[t.name],i=Wf(t.interactionId),o=be(),c=o?dt(o):void 0,a=i?.span||c,u=a?Io(a).name:re().getScopeData().transactionName,l=i?.elementName||le(t.target);xs({name:l,op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[ft]:t.duration,"sentry.transaction":u},startTime:n,endTime:n+r,parentSpan:a})}const Kf=1e3;let Ai,Yr,Kr;function pa(e){tt("dom",e),nt("dom",Xf)}function Xf(){if(!x.document)return;const e=Ce.bind(null,"dom"),t=Mi(e,!0);x.document.addEventListener("click",t,!1),x.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=x[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(Ee(s,"addEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[o]=u[o]||{refCount:0};if(!l.handler){const d=Mi(e);l.handler=d,i.call(this,o,d,a)}l.refCount++}catch{}return i.call(this,o,c,a)}}),Ee(s,"removeEventListener",function(i){return function(o,c,a){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},l=u[o];l&&(l.refCount--,l.refCount<=0&&(i.call(this,o,l.handler,a),l.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,c,a)}}))})}function Jf(e){if(e.type!==Yr)return!1;try{if(!e.target||e.target._sentryId!==Kr)return!1}catch{}return!0}function Qf(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Mi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Zf(n);if(Qf(n.type,r))return;Tt(n,"_sentryCaptured",!0),r&&!r._sentryId&&Tt(r,"_sentryId",Wt());
16const s=n.type==="keypress"?"input":n.type;Jf(n)||(e({event:n,name:s,global:t}),Yr=n.type,Kr=r?r._sentryId:void 0),clearTimeout(Ai),Ai=x.setTimeout(()=>{Kr=void 0,Yr=void 0},Kf)}}function Zf(e){try{return e.target}catch{return null}}let vn;function or(e){const t="history";tt(t,e),nt(t,ep)}function ep(){if(x.addEventListener("popstate",()=>{const t=x.location.href,n=vn;if(vn=t,n===t)return;Ce("history",{from:n,to:t})}),!dd())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=vn,i=tp(String(r));if(vn=i,s===i)return t.apply(this,n);Ce("history",{from:s,to:i})}return t.apply(this,n)}}Ee(x.history,"pushState",e),Ee(x.history,"replaceState",e)}function tp(e){try{return new URL(e,x.location.origin).toString()}catch{return e}}const Nn={};function ha(e){const t=Nn[e];if(t)return t;let n=x[e];if($r(n))return Nn[e]=n.bind(x);const r=x.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){Ne&&b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Nn[e]=n.bind(x))}function np(e){Nn[e]=void 0}function pn(...e){return ha("setTimeout")(...e)}const at="__sentry_xhr_v3__";function ma(e){tt("xhr",e),nt("xhr",rp)}function rp(){if(!x.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=ve()*1e3,o=$t(r[0])?r[0].toUpperCase():void 0,c=sp(r[1]);if(!o||!c)return t.apply(n,r);n[at]={method:o,url:c,request_headers:{}},o==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const u=n[at];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const l={endTimestamp:ve()*1e3,startTimestamp:i,xhr:n,virtualError:s};Ce("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return a(),u.apply(l,d)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){const[f,p]=d,h=l[at];return h&&$t(f)&&$t(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(l,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[at];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:ve()*1e3,xhr:n};return Ce("xhr",i),t.apply(n,r)}})}function sp(e){if($t(e))return e;try{return e.toString()}catch{}}const ip=Symbol.for("sentry__originalRequestBody");function ga(e){return new URLSearchParams(e).toString()}function _a(e,t=b){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ga(e)];if(!e)return[void 0]}catch(n){return Ne&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ne&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ya(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][ip];return n!==void 0?n:void 0}}function Sa(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Ne&&b.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 17`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const op=40;function ap(e,t=ha("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const a=await t(e.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw np("fetch"),a}finally{n-=o,r--}}return cl(e,s,Ss(e.bufferSize||op))}const we=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,cp=30,up=50;function Xr(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?It:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const lp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,dp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,fp=/\((\S*)(?::(\d+))(?::(\d+))\)/,pp=/at (.+?) ?\(data:(.+?),/,hp=e=>{const t=e.match(pp);
17if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=lp.exec(e);if(n){const[,s,i,o]=n;return Xr(s,It,+i,+o)}const r=dp.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const c=fp.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[i,o]=Ea(r[1]||It,r[2]);return Xr(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},mp=[cp,hp],gp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yp=e=>{const t=gp.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=_p.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]||It;return[s,r]=Ea(s,r),Xr(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Sp=[up,yp],Ep=[mp,Sp],vp=ru(...Ep),Ea=(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]:It,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},bn=1024,bp="Breadcrumbs",Tp=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:bp,setup(n){t.console&&Gl(kp(n)),t.dom&&pa(Rp(n,t.dom)),t.xhr&&ma(Cp(n)),t.fetch&&Xo(Ap(n)),t.history&&or(Mp(n)),t.sentry&&n.on("beforeSendEvent",wp(n))}}}),Ip=Tp;function wp(e){return function(n){K()===e&&Qe({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ot(n)},{event:n})}}function Rp(e,t){return function(r){if(K()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>bn&&(we&&b.warn(`\`dom.maxStringLength\` cannot exceed ${bn}, but a value of ${c} was configured. Sentry will use ${bn} instead.`),c=bn),typeof o=="string"&&(o=[o]);try{const u=r.event,l=xp(u)?u.target:u;s=le(l,{keyAttrs:o,maxStringLength:c}),i=To(l)}catch{s="<unknown>"}if(s.length===0)return;const a={category:`ui.${r.name}`,message:s};i&&(a.data={"ui.component_name":i}),Qe(a,{event:r.event,name:r.name,global:r.global})}}function kp(e){return function(n){if(K()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:jo(n.level),message:ri(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${ri(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Qe(r,{input:n.args,level:n.level})}}function Cp(e){return function(n){if(K()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[at];if(!r||!s||!i)return;const{method:o,url:c,status_code:a,body:u}=i,l={method:o,url:c,status_code:a},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:l,type:"http",level:Ko(a)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),Qe(f,d)}}function Ap(e){return function(n){if(K()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},o={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,i),Qe(o,i)}else{const i=n.response,o={...n.fetchData,status_code:i?.status},c={input:n.args,response:i,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:o,type:"http",level:Ko(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,c),Qe(a,c)}}}function Mp(e){return function(n){if(K()!==e)return;let r=n.from,s=n.to;const i=ut(D.location.href);let o=r?ut(r):void 0;const c=ut(s);o?.path||(o=i),i.protocol===c.protocol&&i.host===c.host&&(s=c.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Qe({category:"navigation",data:{from:r,to:s}})}}function xp(e){return!!e&&!!e.target}const Op="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".
17split(","),Lp="BrowserApiErrors",Np=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Lp,setupOnce(){t.setTimeout&&Ee(D,"setTimeout",xi),t.setInterval&&Ee(D,"setInterval",xi),t.requestAnimationFrame&&Ee(D,"requestAnimationFrame",Dp),t.XMLHttpRequest&&"XMLHttpRequest"in D&&Ee(XMLHttpRequest.prototype,"send",Fp);const n=t.eventTarget;n&&(Array.isArray(n)?n:Op).forEach(s=>Bp(s,t))}}}),Pp=Np;function xi(e){return function(...t){const n=t[0];return t[0]=wt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Je(e)}`}}),e.apply(this,t)}}function Dp(e){return function(t){return e.apply(this,[wt(t,{mechanism:{data:{handler:Je(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Fp(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Ee(n,s,function(i){const o={mechanism:{data:{handler:Je(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},c=fs(i);return c&&(o.mechanism.data.handler=Je(c)),wt(i,o)})}),e.apply(this,t)}}function Bp(e,t){const r=D[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ee(r,"addEventListener",function(s){return function(i,o,c){try{Up(o)&&(o.handleEvent=wt(o.handleEvent,{mechanism:{data:{handler:Je(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&Hp(this,i,o),s.apply(this,[i,wt(o,{mechanism:{data:{handler:Je(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),Ee(r,"removeEventListener",function(s){return function(i,o,c){try{const a=o.__sentry_wrapped__;a&&s.call(this,i,a,c)}catch{}return s.call(this,i,o,c)}}))}function Up(e){return typeof e.handleEvent=="function"}function Hp(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Wp=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof D.document>"u"){we&&b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}si({ignoreDuration:!0}),gr();const n=Mt();let r=n.getUser();n.addScopeListener(s=>{const i=s.getUser();(r?.id!==i?.id||r?.ip_address!==i?.ip_address)&&(gr(),r=i)}),t==="route"&&or(({from:s,to:i})=>{s!==i&&(si({ignoreDuration:!0}),gr())})}}},$p="CultureContext",zp=(()=>({name:$p,preprocessEvent(e){const t=Oi();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=Oi();t&&(e.attributes={"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar,...e.attributes})}})),qp=zp;function Oi(){try{const e=D.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Vp="GlobalHandlers",jp=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Vp,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Yp(n),Li("onerror")),t.onunhandledrejection&&(Kp(n),Li("onunhandledrejection"))}}}),Gp=jp;function Yp(e){Co(t=>{const{stackParser:n,attachStacktrace:r}=va();if(K()!==e||Qo())return;const{msg:s,url:i,line:o,column:c,error:a}=t,u=Qp(Rs(n,a||s,void 0,r,!1),i,o,c);u.level="error",wo(u,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Kp(e){Ao(t=>{const{stackParser:n,attachStacktrace:r}=va();if(K()!==e||Qo())return;const s=Xp(t),i=bt(s)?Jp(s):Rs(n,s,void 0,r,!0);i.level="error",wo(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Xp(e){if(bt(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 Jp(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Qp(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},c=o.stacktrace=o.stacktrace||{},a=c.frames=c.frames||[];return a.length===0&&a.push({colno:r,lineno:n,filename:Zp(t)??Ot(),function:It,in_app:!0}),e}function Li(e){we&&b.log(`Global Handler attached: ${e}`)}function va(){return K()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Zp(e){if(!(!$t(e)||e.length===0))return e.startsWith("data:")?`<${Ye(e,!1)}>`:e}const eh=()=>({name:"HttpContext",preprocessEvent(e){if(!D.navigator&&!D.location&&!D.document)return;const t=Ts(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),th="cause",nh=5,rh="LinkedErrors",sh=((e={})=>{const t=e.limit||nh,n=e.key||th;return{name:rh,preprocessEvent(r,s,i){const o=i.getOptions();jl(Is,o.stackParser,n,t,r,s)}}}),ih=sh;function oh(){return ah()?(we&&xt(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}
17function ah(){if(typeof D.window>"u")return!1;const e=D;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Ot();return!(D===D.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function Jr(e){return[Bl(),Nl(),rd(),Pp(),Ip(),Gp(),ih(),Jl(),eh(),qp(),Wp()]}function ch(e={}){const t=!e.skipBrowserExtensionCheck&&oh();let n=e.defaultIntegrations==null?Jr():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:su(e.stackParser||vp),integrations:Ju({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ap};return Sl(Pd,r)}const ee=ae,Os="sentryReplaySession",uh="replay_event",Ls="Unable to send Replay",lh=3e5,dh=9e5,fh=5e3,ph=5500,hh=6e4,mh=5e3,gh=3,Ni=15e4,Tn=5e3,_h=3e3,yh=300,Ns=2e7,Sh=4999,Eh=5e4,Pi=36e5;var vh=Object.defineProperty,bh=(e,t,n)=>t in e?vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Di=(e,t,n)=>bh(e,typeof t!="symbol"?t+"":t,n),ie=(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))(ie||{});function Th(e){return e.nodeType===e.ELEMENT_NODE}function Vt(e){return e?.host?.shadowRoot===e}function jt(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ih(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 wh(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 qn(e){try{const t=e.rules||e.cssRules;return t?Ih(Array.from(t,ba).join("")):null}catch{return null}}function Rh(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 ba(e){let t;if(Ch(e))try{t=qn(e.styleSheet)||wh(e)}catch{}else if(Ah(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=Rh(e)),r&&(n=kh(n)),r||s)return n}return t||e.cssText}function kh(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Ch(e){return"styleSheet"in e}function Ah(e){return"selectorText"in e}class Ta{constructor(){Di(this,"idNodeMap",new Map),Di(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 Mh(){return new Ta}function ar({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 Zt({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function kt(e){return e.toLowerCase()}function Qr(e){return e.toUpperCase()}const Fi="__rrweb_original__";function xh(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=Fi in i?i[Fi]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function Ps(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?kt(t):null}function Vn(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Ia(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 Bi={};function wa(e){const t=Bi[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 Bi[e]=r.bind(window)}function Zr(...e){return wa("setTimeout")(...e)}
17function Ra(...e){return wa("clearTimeout")(...e)}function ka(e){try{return e.contentDocument}catch{}}let Oh=1;const Lh=new RegExp("[^a-z0-9-_:]"),en=-2;function Ds(){return Oh++}function Nh(e){if(e instanceof HTMLFormElement)return"form";const t=kt(e.tagName);return Lh.test(t)?"div":t}function Ph(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let ht,Ui;const Dh=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fh=/^(?:[a-z+]+:)?\/\//i,Bh=/^www\..*/i,Uh=/^(data:)([^,]*),(.*)/i;function Hh(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function jn(e,t){return(e||"").replace(Dh,(n,r,s,i,o,c)=>{const a=s||o||c,u=r||i||"";if(!a)return n;if(Fh.test(a)||Bh.test(a))return`url(${u}${a}${u})`;if(Uh.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${Ph(t)+a}${u})`;const l=t.split("/"),d=a.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${u}${l.join("/")}${u})`})}const Wh=/^[^ \t\n\r\u000c]+/,$h=/^[, \t\n\r\u000c]+/;function zh(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const c=i.exec(t.substring(n));return c?(o=c[0],n+=o.length,o):""}const s=[];for(;r($h),!(n>=t.length);){let i=r(Wh);if(i.slice(-1)===",")i=_t(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=_t(e,i);let c=!1;for(;;){const a=t.charAt(n);if(a===""){s.push((i+o).trim());break}else if(c)a===")"&&(c=!1);else if(a===","){n+=1,s.push((i+o).trim());break}else a==="("&&(c=!0);o+=a,n+=1}}}return s.join(", ")}const Hi=new WeakMap;function _t(e,t){return!t||t.trim()===""?t:cr(e,t)}function qh(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function cr(e,t){let n=Hi.get(e);if(n||(n=e.createElement("a"),Hi.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function Ca(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return _t(e,r);if(n==="xlink:href"&&r[0]!=="#")return _t(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return _t(e,r);if(n==="srcset")return zh(e,r);if(n==="style"){let c=jn(r,cr(e));return o&&o.size>0&&(c=Hh(c,o)),c}else if(t==="object"&&n==="data")return _t(e,r);return typeof i=="function"?i(n,r,s):r}function Aa(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Vh(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 jh(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ct(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ct(e.parentNode,t,n,r+1)}function yt(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(jh(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Ct(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 c=-1,a=-1;if(i){if(a=ct(o,yt(r,s)),a<0)return!0;c=ct(o,yt(t,n),a>=0?a:1/0)}else{if(c=ct(o,yt(t,n)),c<0)return!1;a=ct(o,yt(r,s),c>=0?c:1/0)}return c>=0?a>=0?c<=a:!0:a>=0?!1:!!i}catch{}return!!i}function Gh(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 c=Zr(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{Ra(c),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Zr(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Yh(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Zr(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Ra(i),r=!0,t()})}function Kh(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:_,dataURLOptions:y={}
17,inlineImages:T,recordCanvas:N,keepIframeSrcFn:O,newlyAddedElement:U=!1,ignoreCSSAttributes:R}=t,g=Xh(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ie.Document,childNodes:[],compatMode:e.compatMode}:{type:ie.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ie.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return Qh(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:a,maskInputOptions:h,maskInputFn:_,dataURLOptions:y,inlineImages:T,recordCanvas:N,keepIframeSrcFn:O,newlyAddedElement:U,rootId:g,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:R});case e.TEXT_NODE:return Jh(e,{doc:n,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:_,rootId:g});case e.CDATA_SECTION_NODE:return{type:ie.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:ie.Comment,textContent:e.textContent||"",rootId:g};default:return!1}}function Xh(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Jh(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=qn(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=jn(f,cr(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const _=Ct(e,r,i,s,o,n);if(!p&&!h&&!m&&f&&_&&(f=c?c(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(a.textarea||_)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const y=ar({type:null,tagName:d,maskInputOptions:a});f=Zt({isMasked:Ct(e,r,i,s,o,y),element:e,value:f,maskInputFn:u})}return{type:ie.Text,textContent:f||"",isStyle:p,rootId:l}}function Qh(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:_,unmaskTextClass:y,maskTextSelector:T,unmaskTextSelector:N,ignoreCSSAttributes:O}=t,U=Vh(e,r,s,i),R=Nh(e);let g={};const I=e.attributes.length;for(let v=0;v<I;v++){const w=e.attributes[v];w.name&&!Aa(R,w.name,w.value)&&(g[w.name]=Ca(n,R,kt(w.name),w.value,e,a,O))}if(R==="link"&&o){const v=Array.from(n.styleSheets).find(H=>H.href===e.href);let w=null;v&&(w=qn(v)),w&&(g.rel=null,g.href=null,g.crossorigin=null,g._cssText=jn(w,v.href))}if(R==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const v=qn(e.sheet);v&&(g._cssText=jn(v,cr(n)))}if(R==="input"||R==="textarea"||R==="select"||R==="option"){const v=e,w=Ps(v),H=Vn(v,Qr(R),w),F=v.checked;if(w!=="submit"&&w!=="button"&&H){const L=Ct(v,_,T,y,N,ar({type:w,tagName:Qr(R),maskInputOptions:c}));g.value=Zt({isMasked:L,element:v,value:H,maskInputFn:u})}F&&(g.checked=F)}if(R==="option"&&(e.selected&&!c.select?g.selected=!0:delete g.selected),R==="canvas"&&f){if(e.__context==="2d")xh(e)||(g.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const v=e.toDataURL(l.type,l.quality),w=n.createElement("canvas");w.width=e.width,w.height=e.height;const H=w.toDataURL(l.type,l.quality);v!==H&&(g.rr_dataURL=v)}}if(R==="img"&&d){ht||(ht=n.createElement("canvas"),Ui=ht.getContext("2d"));const v=e,w=v.currentSrc||v.getAttribute("src")||"<unknown-src>",H=v.crossOrigin,F=()=>{v.removeEventListener("load",F);try{ht.width=v.naturalWidth,ht.height=v.naturalHeight,Ui.drawImage(v,0,0),g.rr_dataURL=ht.toDataURL(l.type,l.quality)}catch(L){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?F():v.addEventListener("load",F);return}else console.warn(`Cannot inline img src=${w}! Error: ${L}`)}v.crossOrigin==="anonymous"&&(H?g.crossOrigin=H:v.removeAttribute("crossorigin"))};
17v.complete&&v.naturalWidth!==0?F():v.addEventListener("load",F)}if((R==="audio"||R==="video")&&(g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),U){const{width:v,height:w}=e.getBoundingClientRect();g={class:g.class,rr_width:`${v}px`,rr_height:`${w}px`}}R==="iframe"&&!p(g.src)&&(!U&&!ka(e)&&(g.rr_src=g.src),delete g.src);let X;try{customElements.get(R)&&(X=!0)}catch{}return{type:ie.Element,tagName:R,attributes:g,childNodes:[],isSVG:qh(e)||void 0,needBlock:U,rootId:m,isCustom:X}}function Z(e){return e==null?"":e.toLowerCase()}function Zh(e,t){if(t.comment&&e.type===ie.Comment)return!0;if(e.type===ie.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"&&Ia(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Z(e.attributes.name)==="application-name"||Z(e.attributes.rel)==="icon"||Z(e.attributes.rel)==="apple-touch-icon"||Z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Z(e.attributes.property).match(/^(og|twitter|fb):/)||Z(e.attributes.name).match(/^(og|twitter):/)||Z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Z(e.attributes.name)==="robots"||Z(e.attributes.name)==="googlebot"||Z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Z(e.attributes.name)==="author"||Z(e.attributes.name)==="generator"||Z(e.attributes.name)==="framework"||Z(e.attributes.name)==="publisher"||Z(e.attributes.name)==="progid"||Z(e.attributes.property).match(/^article:/)||Z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Z(e.attributes.name)==="google-site-verification"||Z(e.attributes.name)==="yandex-verification"||Z(e.attributes.name)==="csrf-token"||Z(e.attributes.name)==="p:domain_verify"||Z(e.attributes.name)==="verify-v1"||Z(e.attributes.name)==="verification"||Z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function St(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:T,dataURLOptions:N={},inlineImages:O=!1,recordCanvas:U=!1,onSerialize:R,onIframeLoad:g,iframeLoadTimeout:I=5e3,onBlockedImageLoad:X,onStylesheetLoad:v,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:H=()=>!1,newlyAddedElement:F=!1,ignoreCSSAttributes:L}=t;let{preserveWhiteSpace:te=!0}=t;const V=Kh(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,dataURLOptions:N,inlineImages:O,recordCanvas:U,keepIframeSrcFn:H,newlyAddedElement:F,ignoreCSSAttributes:L});if(!V)return console.warn(e,"not serialized"),null;let Y;r.hasNode(e)?Y=r.getId(e):Zh(V,T)||!te&&V.type===ie.Text&&!V.isStyle&&!V.textContent.replace(/^\s+|\s+$/gm,"").length?Y=en:Y=Ds();const S=Object.assign(V,{id:Y});if(r.add(e,S),Y===en)return null;R&&R(e);let W=!f;if(S.type===ie.Element){W=W&&!S.needBlock;const A=e.shadowRoot;A&&jt(A)&&(S.isShadowHost=!0)}if((S.type===ie.Document||S.type===ie.Element)&&W){T.headWhitespace&&S.type===ie.Element&&S.tagName==="head"&&(te=!1);const A={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:T,dataURLOptions:N,inlineImages:O,recordCanvas:U,preserveWhiteSpace:te,onSerialize:R,onIframeLoad:g,iframeLoadTimeout:I,onBlockedImageLoad:X,onStylesheetLoad:v,stylesheetLoadTimeout:w,keepIframeSrcFn:H,ignoreCSSAttributes:L},B=e.childNodes?Array.from(e.childNodes):[];for(const Q of B){const J=St(Q,A);J&&S.childNodes.push(J)}if(Th(e)&&e.shadowRoot)for(const Q of Array.from(e.shadowRoot.childNodes)){const J=St(Q,A);J&&(jt(e.shadowRoot)&&(J.isShadow=!0),S.childNodes.push(J))}}if(e.parentNode&&Vt(e.parentNode)&&jt(e.parentNode)&&(S.isShadow=!0),S.type===ie.Element&&S.tagName==="iframe"&&!S.needBlock&&Gh(e,()=>{const A=ka(e);if(A&&g){const B=St(A,{doc:A,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:T,dataURLOptions:N,inlineImages:O,recordCanvas:U,preserveWhiteSpace:te,onSerialize:R,onIframeLoad:g,iframeLoadTimeout:I,onStylesheetLoad:v,stylesheetLoadTimeout:w,keepIframeSrcFn:H,ignoreCSSAttributes:L});B&&g(e,B)}},I),S.type===ie.Element&&S.tagName==="img"&&!e.complete&&S.needBlock){const A=e,B=()=>
17{if(A.isConnected&&!A.complete&&X)try{const Q=A.getBoundingClientRect();Q.width>0&&Q.height>0&&X(A,S,Q)}catch{}A.removeEventListener("load",B)};A.isConnected&&A.addEventListener("load",B)}return S.type===ie.Element&&S.tagName==="link"&&typeof S.attributes.rel=="string"&&(S.attributes.rel==="stylesheet"||S.attributes.rel==="preload"&&typeof S.attributes.href=="string"&&Ia(S.attributes.href)==="css")&&Yh(e,()=>{if(v){const A=St(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:T,dataURLOptions:N,inlineImages:O,recordCanvas:U,preserveWhiteSpace:te,onSerialize:R,onIframeLoad:g,iframeLoadTimeout:I,onStylesheetLoad:v,stylesheetLoadTimeout:w,keepIframeSrcFn:H,ignoreCSSAttributes:L});A&&v(e,A)}},w),S.type===ie.Element&&delete S.needBlock,S}function em(e,t){const{mirror:n=new Ta,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:c="rr-mask",unmaskTextClass:a=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOM:T=!1,dataURLOptions:N,preserveWhiteSpace:O,onSerialize:U,onIframeLoad:R,iframeLoadTimeout:g,onBlockedImageLoad:I,onStylesheetLoad:X,stylesheetLoadTimeout:v,keepIframeSrcFn:w=()=>!1,ignoreCSSAttributes:H=new Set([])}=t||{};return St(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:c,unmaskTextClass:a,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:T==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:T===!1?{}:T,dataURLOptions:N,inlineImages:f,recordCanvas:p,preserveWhiteSpace:O,onSerialize:U,onIframeLoad:R,iframeLoadTimeout:g,onBlockedImageLoad:I,onStylesheetLoad:X,stylesheetLoadTimeout:v,keepIframeSrcFn:w,newlyAddedElement:!1,ignoreCSSAttributes:H})}function _e(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const mt=`Please stop import mirror directly. Instead of that,\r 18now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 19or you can use record.mirror to access the mirror instance during recording.`;let Wi={map:{},getId(){return console.error(mt),-1},getNode(){return console.error(mt),null},removeNodeFromMap(){console.error(mt)},has(){return console.error(mt),!1},reset(){console.error(mt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Wi=new Proxy(Wi,{get(e,t,n){return t==="map"&&console.error(mt),Reflect.get(e,t,n)}}));function tn(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const c=t-(o-s),a=this;c<=0||c>t?(r&&(am(r),r=null),s=o,e.apply(a,i)):!r&&n.trailing!==!1&&(r=ur(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(a,i)},c))}}function Ma(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){ur(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>Ma(e,t,i||{},!0)}function Fs(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 Gn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Gn=()=>new Date().getTime());function xa(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 Oa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function La(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Na(e){if(!e)return null;
19try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ie(e,t,n,r,s){if(!e)return!1;const i=Na(e);if(!i)return!1;const o=yt(t,n);if(!s){const u=r&&i.matches(r);return o(i)&&!u}const c=ct(i,o);let a=-1;return c<0?!1:(r&&(a=ct(i,yt(null,r))),c>-1&&a<0?!0:c<a)}function tm(e,t){return t.getId(e)!==-1}function Cr(e,t){return t.getId(e)===en}function Pa(e,t){if(Vt(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Pa(e.parentNode,t):!0:!0}function es(e){return!!e.changedTouches}function nm(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 Da(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Fa(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function ts(e){return!!e?.shadowRoot}class rm{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 Ba(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function sm(e){let t=e,n;for(;n=Ba(t);)t=n;return t}function im(e){const t=e.ownerDocument;if(!t)return!1;const n=sm(e);return t.contains(n)}function Ua(e){const t=e.ownerDocument;return t?t.contains(e)||im(e):!1}const $i={};function Bs(e){const t=$i[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 $i[e]=r.bind(window)}function om(...e){return Bs("requestAnimationFrame")(...e)}function ur(...e){return Bs("setTimeout")(...e)}function am(...e){return Bs("clearTimeout")(...e)}var P=(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))(P||{}),M=(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))(M||{}),me=(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))(me||{}),We=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(We||{}
19),gt=(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))(gt||{});function Us(e){try{return e.contentDocument}catch{}}function cm(e){try{return e.contentWindow}catch{}}function zi(e){return"__ln"in e}class um{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&&zi(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&&zi(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.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 qi=(e,t)=>`${e}@${t}`;class lm{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 um,s=a=>{let u=a,l=en;for(;l===en;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=a=>{if(!a.parentNode||!Ua(a))return;const u=Vt(a.parentNode)?this.mirror.getId(Ba(a)):this.mirror.getId(a.parentNode),l=s(a);if(u===-1||l===-1)return r.addNode(a);const d=St(a,{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=>{Da(f,this.mirror)&&!Ie(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),Fa(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),ts(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{Ie(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,p),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)Vi(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(const a of this.addedSet)!ji(this.droppedSet,a)&&!Vi(this.removes,a,this.mirror)||ji(this.movedSet,a)?i(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){const u=this.mirror.getId(o.value.parentNode),l=s(o.value);u!==-1&&l!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){const l=u;if(u=u.previous,l){const d=this.mirror.getId(l.value.parentNode);if(s(l.value)===-1)continue;if(d!==-1){a=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){a=l;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),i(a.value)}const c={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:u}=a;if(typeof u.style=="string"){const l=JSON.stringify(a.styleDiff),d=JSON.stringify(a._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!n.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!c.texts.length&&!c.attributes.length&&!c.removes.length&&!c.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(c))},this.processMutation=t=>{if(!Cr(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ie(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Ct(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Na(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=Ps(n),c=n.tagName;s=Vn(n,c,o);const a=ar({maskInputOptions:this.maskInputOptions,tagName:c,type:o}),u=Ct(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a);s=Zt({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(Ie(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(!Us(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
19,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"),!Aa(n.tagName,r)&&(i.attributes[r]=Ca(this.doc,kt(n.tagName),kt(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 c of Array.from(n.style)){const a=n.style.getPropertyValue(c),u=n.style.getPropertyPriority(c);a!==o.style.getPropertyValue(c)||u!==o.style.getPropertyPriority(c)?u===""?i.styleDiff[c]=a:i.styleDiff[c]=[a,u]:i._unchangedStyles[c]=[a,u]}for(const c of Array.from(o.style))n.style.getPropertyValue(c)===""&&(i.styleDiff[c]=!1)}break}case"childList":{if(Ie(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=Vt(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ie(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Cr(n,this.mirror)||!tm(n,this.mirror)||(this.addedSet.has(n)?(ns(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Pa(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[qi(r,s)]?ns(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Vt(t.target)&&jt(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(Cr(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[qi(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ie(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),ts(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ns(e,t){e.delete(t),t.childNodes?.forEach(n=>ns(e,n))}function Vi(e,t,n){return e.length===0?!1:dm(e,t,n)}function dm(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 ji(e,t){return e.size===0?!1:Ha(e,t)}function Ha(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Ha(e,n):!1}let Gt;function fm(e){Gt=e}function pm(){Gt=void 0}const q=e=>Gt?(...n)=>{try{return e(...n)}catch(r){if(Gt&&Gt(r)===!0)return()=>{};throw r}}:e,Et=[];function hn(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 Wa(e,t){const n=new lm;Et.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(q(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 hm({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=[],c;const a=tn(q(d=>{const f=Date.now()-c;e(o.map(p=>(p.timeOffset-=f,p)),d),o=[],c=null}),i),u=q(tn(q(d=>{const f=hn(d),{clientX:p,clientY:h}=es(d)?d.changedTouches[0]:d;c||(c=Gn()),o.push({x:p,y:h,id:r.getId(f),timeOffset:Gn()-c}),a(typeof DragEvent<"u"&&d instanceof DragEvent?M.Drag:d instanceof MouseEvent?M.MouseMove:M.TouchMove)}),s,{trailing:!1})),l=[_e("mousemove",u,n),_e("touchmove",u,n),_e("drag",u,n)];return q(()=>{l.forEach(d=>d())})}function mm({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const c=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[];let u=null;const l=d=>f=>{const p=hn(f);if(Ie(p,r,s,i,!0))return;let h=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=We.Mouse;break;case"touch":h=We.Touch;break;case"pen":h=We.Pen;break}
19h===We.Touch?me[d]===me.MouseDown?m="TouchStart":me[d]===me.MouseUp&&(m="TouchEnd"):We.Pen}else es(f)&&(h=We.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===We.Touch||m.startsWith("Mouse")&&h===We.Mouse)&&(h=null)):me[d]===me.Click&&(h=u,u=null);const _=es(f)?f.changedTouches[0]:f;if(!_)return;const y=n.getId(p),{clientX:T,clientY:N}=_;q(e)({type:me[m],id:y,x:T,y:N,...h!==null&&{pointerType:h}})};return Object.keys(me).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&c[d]!==!1).forEach(d=>{let f=kt(d);const p=l(d);if(window.PointerEvent)switch(me[d]){case me.MouseDown:case me.MouseUp:f=f.replace("mouse","pointer");break;case me.TouchStart:case me.TouchEnd:return}a.push(_e(f,p,t))}),q(()=>{a.forEach(d=>d())})}function $a({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const c=q(tn(q(a=>{const u=hn(a);if(!u||Ie(u,r,s,i,!0))return;const l=n.getId(u);if(u===t&&t.defaultView){const d=xa(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return _e("scroll",c,t)}function gm({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=q(tn(q(()=>{const i=Oa(),o=La();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return _e("resize",s,t)}const _m=["INPUT","TEXTAREA","SELECT"],Gi=new WeakMap;function ym({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function _(g){let I=hn(g);const X=g.isTrusted,v=I&&Qr(I.tagName);if(v==="OPTION"&&(I=I.parentElement),!I||!v||_m.indexOf(v)<0||Ie(I,r,s,i,!0))return;const w=I;if(w.classList.contains(o)||c&&w.matches(c))return;const H=Ps(I);let F=Vn(w,v,H),L=!1;const te=ar({maskInputOptions:a,tagName:v,type:H}),V=Ct(I,f,h,p,m,te);(H==="radio"||H==="checkbox")&&(L=I.checked),F=Zt({isMasked:V,element:I,value:F,maskInputFn:u}),y(I,d?{text:F,isChecked:L,userTriggered:X}:{text:F,isChecked:L});const Y=I.name;H==="radio"&&Y&&L&&t.querySelectorAll(`input[type="radio"][name="${Y}"]`).forEach(S=>{if(S!==I){const W=Zt({isMasked:V,element:S,value:Vn(S,v,H),maskInputFn:u});y(S,d?{text:W,isChecked:!L,userTriggered:!1}:{text:W,isChecked:!L})}})}function y(g,I){const X=Gi.get(g);if(!X||X.text!==I.text||X.isChecked!==I.isChecked){Gi.set(g,I);const v=n.getId(g);q(e)({...I,id:v})}}const N=(l.input==="last"?["change"]:["input","change"]).map(g=>_e(g,q(_),t)),O=t.defaultView;if(!O)return()=>{N.forEach(g=>g())};const U=O.Object.getOwnPropertyDescriptor(O.HTMLInputElement.prototype,"value"),R=[[O.HTMLInputElement.prototype,"value"],[O.HTMLInputElement.prototype,"checked"],[O.HTMLSelectElement.prototype,"value"],[O.HTMLTextAreaElement.prototype,"value"],[O.HTMLSelectElement.prototype,"selectedIndex"],[O.HTMLOptionElement.prototype,"selected"]];return U&&U.set&&N.push(...R.map(g=>Ma(g[0],g[1],{set(){q(_)({target:this,isTrusted:!1})}},!1,O))),q(()=>{N.forEach(g=>g())})}function Yn(e){const t=[];function n(r,s){if(In("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||In("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||In("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||In("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 Ve(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Sm({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:q((l,d,f)=>{const[p,h]=f,{id:m,styleId:_}=Ve(d,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,adds:[{rule:p,index:h}]}),l.apply(d,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Ve(d,t,n.styleMirror);
19return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),l.apply(d,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Ve(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),l.apply(d,f)})}));let c;r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:q((l,d,f)=>{const[p]=f,{id:h,styleId:m}=Ve(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),l.apply(d,f)})}));const a={};wn("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(wn("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),wn("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),wn("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(a).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:q((f,p,h)=>{const[m,_]=h,{id:y,styleId:T}=Ve(p.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||T&&T!==-1)&&e({id:y,styleId:T,adds:[{rule:m,index:[...Yn(p),_||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:q((f,p,h)=>{const[m]=h,{id:_,styleId:y}=Ve(p.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,removes:[{index:[...Yn(p),m]}]}),f.apply(p,h)})})}),q(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),c&&(r.CSSStyleSheet.prototype.replaceSync=c),Object.entries(a).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function za({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 c=i.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return c}}),q(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function Em({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:q((c,a,u)=>{const[l,d,f]=u;if(n.has(l))return i.apply(a,[l,d,f]);const{id:p,styleId:h}=Ve(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:l,value:d,priority:f},index:Yn(a.parentRule)}),c.apply(a,u)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:q((c,a,u)=>{const[l]=u;if(n.has(l))return o.apply(a,[l]);const{id:d,styleId:f}=Ve(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:l},index:Yn(a.parentRule)}),c.apply(a,u)})}),q(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function vm({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const c=q(u=>tn(q(l=>{const d=hn(l);if(!d||Ie(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=d;e({type:u,id:s.getId(d),currentTime:f,volume:p,muted:h,playbackRate:m})}),i.media||500)),a=[_e("play",c(gt.Play),o),_e("pause",c(gt.Pause),o),_e("seeked",c(gt.Seeked),o),_e("volumechange",c(gt.VolumeChange),o),_e("ratechange",c(gt.RateChange),o)];return q(()=>{a.forEach(u=>u())})}function bm({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(a,u,l){const d=new i(a,u,l);return s.set(d,{family:a,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const o=Fs(t.fonts,"add",function(c){return function(a){return ur(q(()=>{const u=s.get(a);u&&(e(u),s.delete(a))}),0),c.apply(this,[a])}});return r.push(()=>{n.FontFace=i}),r.push(o),q(()=>{r.forEach(c=>c())})}function Tm(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let c=!0;const a=q(()=>{const u=t.getSelection();if(!u||c&&u?.isCollapsed)return;c=u.isCollapsed||!1;const l=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:_,endOffset:y}=p;Ie(h,r,s,i,!0)||Ie(_,r,s,i,!0)||l.push({start:n.getId(h),startOffset:m,end:n.getId(_),endOffset:y})}o({ranges:l})});return a(),_e("selectionchange",a)}function Im({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Fs(n.customElements,"define",function(s){return function(i,o,c){try{t({define:{name:i}})}catch{}
19return s.apply(this,[i,o,c])}})}function wm(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Wa(e,e.doc));const s=hm(e),i=mm(e),o=$a(e),c=gm(e,{win:n}),a=ym(e),u=vm(e);let l=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(l=Sm(e,{win:n}),d=za(e,e.doc),f=Em(e,{win:n}),e.collectFonts&&(p=bm(e)));const h=Tm(e),m=Im(e),_=[];for(const y of e.plugins)_.push(y.observer(y.callback,n,y.options));return q(()=>{Et.forEach(y=>y.reset()),r?.disconnect(),s(),i(),o(),c(),a(),u(),l(),d(),f(),p(),h(),m(),_.forEach(y=>y())})}function In(e){return typeof window[e]<"u"}function wn(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class rs{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 c=i.get(n);return c||(c=this.generateIdFn(),i.set(n,c),o.set(c,n)),c}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 Rm{constructor(){this.crossOriginIframeMirror=new rs(Ds),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class km{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new rs(Ds),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new rs(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=Us(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 P.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:P.IncrementalSnapshot,data:{source:M.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case P.Meta:case P.Load:case P.DomContentLoaded:return!1;case P.Plugin:return n;case P.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case P.IncrementalSnapshot:switch(n.data.source){case M.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)}
19),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 M.Drag:case M.TouchMove:case M.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case M.ViewportResize:return!1;case M.MediaInteraction:case M.MouseInteraction:case M.Scroll:case M.CanvasMutation:case M.Input:return this.replaceIds(n.data,t,["id"]),n;case M.StyleSheetRule:case M.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case M.Font:return n;case M.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case M.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!==ie.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Cm{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Am{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(!jt(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Wa({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push($a({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),ur(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(za({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Us(t),r=cm(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Fs(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&Ua(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 Yi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rn=0;Rn<Yi.length;Rn++)Mm[Yi.charCodeAt(Rn)]=Rn;class Ki{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class xm{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new rm,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,(c,a)=>({rule:ba(c),index:a}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Om{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,om(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let se,Kn;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(e){console.debug("Unable to override Array.from",e)}const Oe=Mh();function Le(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
19-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:T,maskInputFn:N,maskTextFn:O,maxCanvasSize:U=null,packFn:R,sampling:g={},dataURLOptions:I={},mousemoveWait:X,recordDOM:v=!0,recordCanvas:w=!1,recordCrossOriginIframes:H=!1,recordAfter:F=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:te=!1,inlineImages:V=!1,plugins:Y,keepIframeSrcFn:S=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:A,onMutation:B,getCanvasManager:Q}=e;fm(A);const J=H?window.parent===window:!0;let pe=!1;if(!J)try{window.parent.document&&(pe=!1)}catch{pe=!0}if(J&&!t)throw new Error("emit function is required");if(!J&&!pe)return()=>{};X!==void 0&&g.mousemove===void 0&&(g.mousemove=X),Oe.reset();const ue=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}:_!==void 0?_:{},ye=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};nm();let he,Ae=0;const Fe=j=>{for(const xe of Y||[])xe.eventProcessor&&(j=xe.eventProcessor(j));return R&&!pe&&(j=R(j)),j};se=(j,xe)=>{const z=j;if(z.timestamp=Gn(),Et[0]?.isFrozen()&&z.type!==P.FullSnapshot&&!(z.type===P.IncrementalSnapshot&&z.data.source===M.Mutation)&&Et.forEach(de=>de.unfreeze()),J)t?.(Fe(z),xe);else if(pe){const de={type:"rrweb",event:Fe(z),origin:window.location.origin,isCheckout:xe};window.parent.postMessage(de,"*")}if(z.type===P.FullSnapshot)he=z,Ae=0;else if(z.type===P.IncrementalSnapshot){if(z.data.source===M.Mutation&&z.data.isAttachIframe)return;Ae++;const de=r&&Ae>=r,G=n&&he&&z.timestamp-he.timestamp>n;(de||G)&&hr(!0)}};const Me=j=>{se({type:P.IncrementalSnapshot,data:{source:M.Mutation,...j}})},qe=j=>se({type:P.IncrementalSnapshot,data:{source:M.Scroll,...j}}),Gs=j=>se({type:P.IncrementalSnapshot,data:{source:M.CanvasMutation,...j}}),gn=j=>se({type:P.IncrementalSnapshot,data:{source:M.AdoptedStyleSheet,...j}}),Be=new xm({mutationCb:Me,adoptedStyleSheetCb:gn}),Ue=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Rm:new km({mirror:Oe,mutationCb:Me,stylesheetManager:Be,recordCrossOriginIframes:H,wrappedEmit:se});for(const j of Y||[])j.getMirror&&j.getMirror({nodeMirror:Oe,crossOriginIframeMirror:Ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ue.crossOriginIframeStyleMirror});const Pt=new Om,Dt=Nm(Q,{mirror:Oe,win:window,mutationCb:j=>se({type:P.IncrementalSnapshot,data:{source:M.CanvasMutation,...j}}),recordCanvas:w,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:U,sampling:g.canvas,dataURLOptions:I,errorHandler:A}),_n=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Cm:new Am({mutationCb:Me,scrollCb:qe,bypassOptions:{onMutation:B,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:ue,dataURLOptions:I,maskAttributeFn:T,maskTextFn:O,maskInputFn:N,recordCanvas:w,inlineImages:V,sampling:g,slimDOMOptions:ye,iframeManager:Ue,stylesheetManager:Be,canvasManager:Dt,keepIframeSrcFn:S,processedNodeManager:Pt,ignoreCSSAttributes:W},mirror:Oe}),hr=(j=!1)=>{if(!v)return;se({type:P.Meta,data:{href:window.location.href,width:La(),height:Oa()}},j),Be.reset(),_n.init(),Et.forEach(z=>z.lock());const xe=em(document,{mirror:Oe,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:ue,maskAttributeFn:T,maskInputFn:N,maskTextFn:O,slimDOM:ye,dataURLOptions:I,recordCanvas:w,inlineImages:V,onSerialize:z=>{Da(z,Oe)&&Ue.addIframe(z),Fa(z,Oe)&&Be.trackLinkElement(z),ts(z)&&_n.addShadowRoot(z.shadowRoot,document)},onIframeLoad:(z,de)=>{Ue.attachIframe(z,de),z.contentWindow&&Dt.addWindow(z.contentWindow),_n.observeAttachShadow(z)},onStylesheetLoad:(z,de)=>{Be.attachLinkElement(z,de)},onBlockedImageLoad:(z,de,{width:G,height:Ft})=>{Me({adds:[],removes:[],texts:[],attributes:[{id:de.id,attributes:{style:{width:`${G}px`,height:`${Ft}px`}}}]})},keepIframeSrcFn:S,ignoreCSSAttributes:W});if(!xe)return console.warn("Failed to snapshot the document");se({type:P.FullSnapshot,data:{node:xe,initialOffset:xa(window)}}),Et.forEach(z=>z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Be.adoptStyleSheets(document.adoptedStyleSheets,Oe.getId(document))};Kn=hr;try{const j=[],xe=de=>q(wm)({onMutation:B,mutationCb:Me,mousemoveCb:(G,Ft)=>se({type:P.IncrementalSnapshot,data:{source:Ft,positions:G}}),mouseInteractionCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.MouseInteraction,...G}}),scrollCb:qe,viewportResizeCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.ViewportResize,...G}}),inputCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.Input,...G}}),mediaInteractionCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.MediaInteraction,...G}}),styleSheetRuleCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.StyleSheetRule,...G}}),styleDeclarationCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.StyleDeclaration,...G}}),canvasMutationCb:Gs,fontCb:G=>se({type:P.IncrementalSnapshot,data:{source:M.Font,...G}}),selectionCb:G=>{se({type:P.IncrementalSnapshot,data:{source:M.Selection,...G}})},customElementCb:G=>{se({type:P.IncrementalSnapshot,data:{source:M.CustomElement,...G}})},blockClass:s,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:ue,inlineStylesheet:h,sampling:g,recordDOM:v,recordCanvas:w,inlineImages:V,userTriggeredOnInput:L,collectFonts:te,doc:de,maskAttributeFn:T,maskInputFn:N,maskTextFn:O,keepIframeSrcFn:S,blockSelector:i,unblockSelector:o,slimDOMOptions:ye,dataURLOptions:I,mirror:Oe,iframeManager:Ue,stylesheetManager:Be,shadowDomManager:_n,processedNodeManager:Pt,canvasManager:Dt,ignoreCSSAttributes:W,plugins:Y?.filter(G=>G.observer)?.map(G=>({observer:G.observer,options:G.options,callback:Ft=>se({type:P.Plugin,data:{plugin:G.name,payload:Ft}})}))||[]},{});Ue.addLoadListener(de=>{try{j.push(xe(de.contentDocument))}catch(G){console.warn(G)}});const z=()=>{hr(),j.push(xe(document))};return document.readyState==="interactive"||document.readyState==="complete"?z():(j.push(_e("DOMContentLoaded",()=>{se({type:P.DomContentLoaded,data:{}}),F==="DOMContentLoaded"&&z()})),j.push(_e("load",()=>{se({type:P.Load,data:{}}),F==="load"&&z()}
19,window))),()=>{j.forEach(de=>de()),Pt.destroy(),Kn=void 0,pm()}}catch(j){console.warn(j)}}function Lm(e){if(!Kn)throw new Error("please take full snapshot after start recording");Kn(e)}Le.mirror=Oe;Le.takeFullSnapshot=Lm;function Nm(e,t){try{return e?e(t):new Ki}catch{return console.warn("Unable to initialize CanvasManager"),new Ki}}var Xi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Xi||(Xi={}));const Pm=3,Dm=5;function Hs(e){return e>9999999999?e:e*1e3}function Ar(e){return e>9999999999?e/1e3:e}function mn(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:P.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ro(t,10,1e3)}}),t.category==="console")))}const Fm="button,a";function qa(e){return e.closest(Fm)||e}function Va(e){const t=ja(e);return!t||!(t instanceof Element)?t:qa(t)}function ja(e){return Bm(e)?e.target:e}function Bm(e){return typeof e=="object"&&!!e&&"target"in e}let je;function Um(e){return je||(je=[],Hm()),je.push(e),()=>{const t=je?je.indexOf(e):-1;t>-1&&je.splice(t,1)}}function Hm(){Ee(ee,"open",function(e){return function(...t){if(je)try{je.forEach(n=>n())}catch{}return e.apply(ee,t)}})}const Wm=new Set([M.Mutation,M.StyleSheetRule,M.StyleDeclaration,M.AdoptedStyleSheet,M.CanvasMutation,M.Selection,M.MediaInteraction]);function $m(e,t,n){e.handleClick(t,n)}class zm{constructor(t,n,r=mn){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=Um(()=>{this._lastMutation=Ji()});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(Vm(n,this._ignoreSelector)||!jm(t))return;const r={timestamp:Ar(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=Ar(t)}registerScroll(t=Date.now()){this._lastScroll=Ar(t)}registerClick(t){const n=qa(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Ji();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:c}=t;if(i){const a=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=a<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.slowClickDetected",data:{...c.data,url:ee.location.href,route:n.getCurrentRoute(),timeAfterClickMs:a,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,l);return}if(o>1){const a={type:"default",message:c.message,timestamp:c.timestamp,category:"ui.multiClick",data:{...c.data,url:ee.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,a)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=pn(()=>this._checkClicks(),1e3)}}const qm=["A","BUTTON","INPUT"];function Vm(e,t){return!!(!qm.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 jm(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Ji(){return Date.now()/1e3}function Gm(e,t){try{if(!Ym(t))return;const{source:n}=t.data;if(Wm.has(n)&&e.registerMutation(t.timestamp),n===M.Scroll&&e.registerScroll(t.timestamp),Km(t)){const{type:r,id:s}=t.data,i=Le.mirror.getNode(s);i instanceof HTMLElement&&r===me.Click&&e.registerClick(i)}}catch{}}function Ym(e){return e.type===Pm}function Km(e){return e.data.source===M.MouseInteraction}function De(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var lr=(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))(lr||{});const Xm=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Jm(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(Xm.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const Qm=e=>t=>{if(!e.isEnabled())return;const n=Zm(t);if(!n)return;
19const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&$m(e.clickDetector,n,Va(t.event)),mn(e,n)};function Ga(e,t){const n=Le.mirror.getId(e),r=n&&Le.mirror.getNode(n),s=r&&Le.mirror.getMeta(r),i=s&&tg(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===lr.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:Jm(i.attributes)}}:{}}}function Zm(e){const{target:t,message:n}=eg(e);return De({category:`ui.${e.name}`,...Ga(t,n)})}function eg(e){const t=e.name==="click";let n,r=null;try{r=t?Va(e.event):ja(e.event),n=le(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function tg(e){return e.type===lr.Element}function ng(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=rg(t);n&&mn(e,n)}function rg(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||sg(o)||!i)return null;const c=t||r||s,a=i.length===1;if(!c&&a)return null;const u=le(o,{maxStringLength:200})||"<unknown>",l=Ga(o,u);return De({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function sg(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const ig={resource:lg,paint:cg,navigation:ug};function Mr(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function og(e){return e.map(ag).filter(Boolean)}function ag(e){const t=ig[e.entryType];return t?t(e):null}function At(e){return((fe()||ee.performance.timeOrigin)+e)/1e3}function cg(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=At(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function ug(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:At(p),end:At(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:f}}}function lg(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:c,responseStatus:a,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:At(i),end:At(s),name:r,data:{size:u,statusCode:a,decodedBodySize:o,encodedBodySize:c}}}function dg(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Ws(e,"largest-contentful-paint",n)}function fg(e){return e.sources!==void 0}function pg(e){const t=[],n=[];for(const r of e.entries)if(fg(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=Le.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Ws(e,"cumulative-layout-shift",n,t)}function hg(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Ws(e,"interaction-to-next-paint",n)}function Ws(e,t,n,r){const s=e.value,i=e.rating,o=At(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(c=>Le.mirror.getId(c)):void 0,attributions:r}}}function mg(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(Rt(s,n))}),r.push(nr(Mr(dg,e)),tr(Mr(pg,e)),As(Mr(hg,e))),()=>{r.forEach(s=>s())}}const k=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gg='
vendor: 10,329 bytes, line 19
19var 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});
19';function _g(){const e=new Blob([gg]);return URL.createObjectURL(e)}const Qi=["log","warn","error"],Pn="[Replay] ";function xr(e,t="info"){Qe({category:"console",data:{logger:"replay"},level:t,message:`${Pn}${e}`},{level:t})}function yg(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return k?(Qi.forEach(r=>{n[r]=(...s)=>{b[r](Pn,...s),t&&xr(s.join(""),jo(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),b.error(Pn,r),e?hs(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&xr(r,"error")},n.infoTick=(...r)=>{b.log(Pn,...r),t&&setTimeout(()=>xr(r[0]),0)}):Qi.forEach(r=>{n[r]=()=>{}}),n}const C=yg();class $s extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Ns}.`)}}class Ya{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>Ns)throw new $s;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(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:Hs(t)}}class Sg{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():(k&&C.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{k&&C.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){k&&C.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:c})=>{const a=c;if(a.method===t&&a.id===r){if(this._worker.removeEventListener("message",o),!a.success){k&&C.error("Error in compression worker: ",a.response),i(new Error("Error in compression worker"));return}s(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class Eg{constructor(t){this._worker=new Sg(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=Hs(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Ns?Promise.reject(new $s):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{k&&C.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 vg{constructor(t){this._fallback=new Ya,this._compression=new Eg(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()}
19ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){k&&C.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){k&&C.exception(i,"Failed to add events when switching buffers.")}}}function bg({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=Tg(t);if(n)return n}return k&&C.log("Using simple buffer"),new Ya}function Tg(e){try{const t=e||Ig();if(!t)return;k&&C.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new vg(n)}catch(t){k&&C.exception(t,"Failed to create compression worker")}}function Ig(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?_g():""}function zs(){try{return"sessionStorage"in ee&&!!ee.sessionStorage}catch{return!1}}function wg(e){Rg(),e.session=void 0}function Rg(){if(zs())try{ee.sessionStorage.removeItem(Os)}catch{}}function Ka(e){return e===void 0?!1:Math.random()<e}function dr(e){if(zs())try{ee.sessionStorage.setItem(Os,JSON.stringify(e))}catch{}}function Xa(e){const t=Date.now(),n=e.id||Wt(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,c=e.previousSessionId,a=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:c,dirty:a}}function kg(e,t){return Ka(e)?"session":t?"buffer":!1}function Zi({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=kg(e,t),i=Xa({sampled:s,previousSessionId:r});return n&&dr(i),i}function Cg(){if(!zs())return null;try{const e=ee.sessionStorage.getItem(Os);if(!e)return null;const t=JSON.parse(e);return k&&C.infoTick("Loading existing session"),Xa(t)}catch{return null}}function ss(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Ja(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return ss(e.started,t,r)||ss(e.lastActivity,n,r)}function Qa(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Ja(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Or({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&Cg();return s?Qa(s,{sessionIdleExpire:e,maxReplayDuration:t})?(k&&C.infoTick("Session in sessionStorage is expired, creating new one..."),Zi(r,{previousSessionId:s.id})):s:(k&&C.infoTick("Creating new session"),Zi(r,{previousSessionId:n}))}function Ag(e){return e.type===P.Custom}function qs(e,t,n){return ec(e,t)?(Za(e,t,n),!0):!1}function Mg(e,t,n){return ec(e,t)?Za(e,t,n):Promise.resolve(null)}async function Za(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=xg(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof $s,c=o?"eventBufferOverflow":"eventBufferError",a=K();if(a){const u=o?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(u,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:c})}}function ec(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Hs(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(k&&C.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function xg(e,t){try{if(typeof t=="function"&&Ag(e))return t(e)}catch(n){return k&&C.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Vs(e){return!e.type}function is(e){return e.type==="transaction"}function Og(e){return e.type==="replay_event"}function eo(e){return e.type==="feedback"}function Lg(e){return(t,n)=>{if(!e.isEnabled()||!Vs(t)&&!is(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(is(t)){Ng(e,t);return}Pg(e,t)}}}function Ng(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Pg(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?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||pn(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function Dg(e){return t=>{!e.isEnabled()||!Vs(t)||Fg(e,t)}}function Fg(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=De({category:"replay.hydrate-error",data:{url:Ot()}});mn(e,r)}}function Bg(e){const t=K();t&&t.on("beforeAddBreadcrumb",n=>Ug(e,n))}function Ug(e,t){if(!e.isEnabled()||!tc(t))return;const n=Hg(t);n&&mn(e,n)}function Hg(e){return!tc(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Wg(e):De(e)}function Wg(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return De(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>Tn?(n=!0,`${s.slice(0,Tn)}…`):s;if(typeof s=="object")try{const i=Ro(s,7);return JSON.stringify(i).length>Tn?(n=!0,`${JSON.stringify(i,null,2).slice(0,Tn)}…`):i}catch{}return s});return De({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function tc(e){return!!e.category}function $g(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function nc(){const e=re().getPropagationContext().dsc;e&&delete e.replay_id;const t=be();if(t){const n=Qn(t);delete n.replay_id}}function zg(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:P.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 qg(e,t){return e.recordingMode!=="buffer"||t.message===Ls||!t.exception||t.type?!1:Ka(e.getOptions().errorSampleRate)}function Vg(e){return Object.assign((t,n)=>
19{if(!e.isEnabled()||e.isPaused())return t;if(Og(t))return delete t.breadcrumbs,t;if(!Vs(t)&&!is(t)&&!eo(t))return t;if(!e.checkAndHandleExpiredSession())return nc(),t;if(eo(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),zg(e,t),t;if($g(t,n)&&!e.getOptions()._experiments.captureExceptions)return k&&C.log("Ignoring error from rrweb internals",t),null;const s=qg(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&dr(o)}return t},{id:"Replay"})}function fr(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const c=e.throttledAddEvent({type:P.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof c=="string"?Promise.resolve(null):c})}function jg(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 Gg(e){return t=>{if(!e.isEnabled())return;const n=jg(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(fr(e,[n]),!1)))}}function Yg(e,t){return k&&e.getOptions()._experiments.traceInternals?!1:Il(t,K())}function rc(e,t){e.isEnabled()&&t!==null&&(Yg(e,t.name)||e.addUpdate(()=>(fr(e,[t]),!0)))}function pr(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=ga(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function sc(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Xn(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 ic(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:c,response:a}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:c,response:a}}}function nn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Xe(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}=Kg(n);return r.body=s,i?.length&&(r._meta={warnings:i}),r}function os(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 Kg(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Ni,n=Xg(e);if(t){const r=e.slice(0,Ni);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 Xg(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Jn(e,t){const n=Jg(e);return ze(n,t)}function Jg(e,t=ee.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ee.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 Qg(e,t,n){try{const r=await e_(e,t,n),s=ic("resource.fetch",r);rc(n.replay,s)}catch(r){k&&C.exception(r,"Failed to capture fetch breadcrumb")}}function Zg(e,t){const{input:n,response:r}=t,s=n?ya(n):void 0,i=pr(s),o=r?sc(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 e_(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:c,status_code:a=0,request_body_size:u,response_body_size:l}=e.data,d=Jn(o,n.networkDetailAllowUrls)&&!Jn(o,n.networkDetailDenyUrls),f=d?t_(n,t.input,u):nn(u),p=await n_(d,n,t.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:a,request:f,response:p}}function t_({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?i_(n,t):{};if(!e)return Xe(s,r,void 0);const i=ya(n),[o,c]=_a(i,C),a=Xe(s,r,o);return c?Xn(a,c):a}async function n_(e,{networkCaptureBodies:t,networkResponseHeaders:n}
19,r,s){if(!e&&s!==void 0)return nn(s);const i=r?oc(r.headers,n):{};if(!r||!t&&s!==void 0)return Xe(i,s,void 0);const[o,c]=await s_(r),a=r_(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return c?Xn(a,c):a}function r_(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e?.length&&n===void 0?pr(e):n;return r?t?Xe(s,i,e):Xe(s,i,void 0):nn(i)}catch(i){return k&&C.exception(i,"Failed to serialize response body"),Xe(s,n,void 0)}}async function s_(e){const t=o_(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await a_(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(k&&C.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(k&&C.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function oc(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function i_(e,t){return e.length===1&&typeof e[0]!="string"?to(e[0],t):e.length===2?to(e[1],t):{}}function to(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?oc(n,t):Array.isArray(n)?{}:os(n,t):{}}function o_(e){try{return e.clone()}catch(t){k&&C.exception(t,"Failed to clone response body")}}function a_(e){return new Promise((t,n)=>{const r=pn(()=>n(new Error("Timeout while trying to read response body")),500);c_(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function c_(e){return await e.text()}async function u_(e,t,n){try{const r=d_(e,t,n),s=ic("resource.xhr",r);rc(n.replay,s)}catch(r){k&&C.exception(r,"Failed to capture xhr breadcrumb")}}function l_(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=pr(r),i=n.getResponseHeader("content-length")?sc(n.getResponseHeader("content-length")):h_(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function d_(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:c}=t,{url:a,method:u,status_code:l=0,request_body_size:d,response_body_size:f}=e.data;if(!a)return null;if(!c||!Jn(a,n.networkDetailAllowUrls)||Jn(a,n.networkDetailDenyUrls)){const R=nn(d),g=nn(f);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:R,response:g}}const p=c[at],h=p?os(p.request_headers,n.networkRequestHeaders):{},m=os(Sa(c),n.networkResponseHeaders),[_,y]=n.networkCaptureBodies?_a(o,C):[void 0],[T,N]=n.networkCaptureBodies?f_(c):[void 0],O=Xe(h,d,_),U=Xe(m,f,T);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:y?Xn(O,y):O,response:N?Xn(U,N):U}}function f_(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return p_(e.response,e.responseType)}catch(n){t.push(n)}return k&&C.warn("Failed to get xhr response body",...t),[void 0]}function p_(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 k&&C.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return k&&C.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function h_(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return pr(n)}catch{return}}function m_(e){const t=K();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),c={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(a,u)=>g_(c,a,u))}catch{}}function g_(e,t,n){if(t.data)try{__(t)&&S_(n)&&(l_(t,n),u_(t,n,e)),y_(t)&&E_(n)&&(Zg(t,n),Qg(t,n,e))}catch(r){k&&C.exception(r,"Error when enriching network breadcrumb")}}function __(e){return e.category==="xhr"}function y_(e){return e.category==="fetch"}function S_(e){return e?.xhr}function E_(e){return e?.response}function v_(e){const t=K();pa(Qm(e)),or(Gg(e)),Bg(e),m_(e);const n=Vg(e);iu(n),t&&(t.on("beforeSendEvent",Dg(e)),t.on("afterSendEvent",Lg(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 b_(e){try{return Promise.all(fr(e,[T_(ee.performance.memory)]))}catch{return[]}}function T_(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 I_(e,t,n){return Ml(e,t,{...n,setTimeoutImpl:pn})}const kn=ae.navigator;function w_(){return/iPhone|iPad|iPod/i.test(kn?.userAgent??"")||/Macintosh/i.test(kn?.userAgent??"")&&kn?.maxTouchPoints&&kn?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function R_(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){k&&C.warn("Received replay event after session expired.");return}const s=r||!t;
19t=!0,k_(n),e.clickDetector&&Gm(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!qs(e,n,s))return!0;if(!s)return!1;const i=e.session;if(A_(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(k&&C.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&dr(i))}return i?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function k_(e){const t=e.data;if(!(e.type!==P.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==M.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=Le.mirror.getNode(n.id),s=r&&Le.mirror.getMeta(r);if(s?.type===lr.Element)for(const[i,o]of Object.entries(n.attributes))o===null?delete s.attributes[i]:s.attributes[i]=o}}function C_(e){const t=e.getOptions();return{type:P.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 A_(e,t){!t||e.session?.segmentId!==0||qs(e,C_(e),!1)}function M_(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function x_(e,t,n,r){return sn(au(e,cu(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function O_({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 20`;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 L_({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 yo(e.getOptions(),r,i,t,e,Mt());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const c=e.getSdkMetadata(),{name:a,version:u,settings:l}=c?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},o}async function N_({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=O_({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:a,traceIds:u,initialTimestamp:l}=r,d=K(),f=re(),p=d?.getTransport(),h=d?.getDsn();if(!d||!p||!h||!i.sampled)return Promise.resolve({});const m={type:uh,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:a,trace_ids:u,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},_=await L_({scope:f,client:d,replayId:t,event:m});if(!_)return d.recordDroppedEvent("event_processor","replay"),k&&C.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;const y=x_(_,o,h,d.getOptions().tunnel);let T;try{T=await p.send(y)}catch(O){const U=new Error(Ls);try{U.cause=O}catch{}throw U}const N=Fo({},T);if(Do(N,"replay"))throw new js(N);if(typeof T.statusCode=="number"&&(T.statusCode<200||T.statusCode>=300))throw new ac(T.statusCode);return T}class ac extends Error{constructor(t){super(`Transport returned status code ${t}`)}}
20class js extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class no extends Error{constructor(){super("Session is too long, not sending replay")}}async function cc(e,t={count:0,interval:mh}){const{recordingData:n,onError:r}=e;if(n.length)try{return await N_(e),!0}catch(s){if(s instanceof ac||s instanceof js)throw s;if(ou("Replays",{_retryCount:t.count}),r&&r(s),t.count>=gh){const i=new Error(`${Ls} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{pn(async()=>{try{await cc(e,t),i(!0)}catch(c){o(c)}},t.interval)})}}const uc="__THROTTLED",P_="__SKIPPED";function D_(e,t,n){const r=new Map,s=c=>{const a=c-n;r.forEach((u,l)=>{l<a&&r.delete(l)})},i=()=>[...r.values()].reduce((c,a)=>c+a,0);let o=!1;return(...c)=>{const a=Math.floor(Date.now()/1e3);if(s(a),i()>=t){const l=o;return o=!0,l?P_:uc}o=!1;const u=r.get(a)||0;return r.set(a,u+1),e(...c)}}class F_{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:lh,sessionIdleExpire:dh},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=I_(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=D_((o,c)=>Mg(this,o,c),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(_h,r),timeout:r,scrollTimeout:yh,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new zm(this,i)),k){const o=t._experiments;C.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{ee.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=De({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=De({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{ng(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){k&&C.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){k&&C.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",k&&C.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){k&&C.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){k&&C.log("Buffering is in progress, call `flush()` to save the replay");return}k&&C.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Or({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){k&&C.log("Buffering is in progress, call `flush()` to save the replay");return}k&&C.infoTick("Starting replay in buffer mode");const t=Or({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=Le({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:hh}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:R_(this),...w_(),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)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n??"manual";K()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{k&&C.log(`Stopping Replay triggered by ${r}`),nc(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,wg(this)}catch(s){this.handleException(s)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),k&&C.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),k&&C.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();k&&C.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){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(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
20checkAndHandleExpiredSession(){if(this._lastActivity&&ss(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${ee.location.pathname}${ee.location.hash}${ee.location.search}`,n=`${ee.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===uc){const s=De({category:"replay.throttled"});this.addUpdate(()=>!qs(this,{type:Dm,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||be(),n=t&&dt(t),s=(n&&oe(n).data||{})[$e];if(!(!n||!s||!["route","custom"].includes(s)))return oe(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=bg({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&K()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Or({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 Qa(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{ee.document.addEventListener("visibilitychange",this._handleVisibilityChange),ee.addEventListener("blur",this._handleWindowBlur),ee.addEventListener("focus",this._handleWindowFocus),ee.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(v_(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=mg(this)}_removeListeners(){try{ee.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ee.removeEventListener("blur",this._handleWindowBlur),ee.removeEventListener("focus",this._handleWindowFocus),ee.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||Ja(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()){k&&C.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:P.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=og(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(fr(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();
20r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_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){k&&C.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await b_(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new no;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await cc({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:"sendError"});const r=K();if(r){let s;n instanceof js?s="ratelimit_backoff":n instanceof no?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){k&&C.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){k&&C.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const c=this.eventBuffer;c&&this.session.segmentId===0&&!c.hasCheckout&&k&&C.log("Flushing initial segment without checkout.");const a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&dr(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(c=>{const a=M_(c.target),u=n.join(",");return a?.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 c=De({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(c)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function Ht(e,t){return[...e,...t].join(",")}function B_({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=Ht(e,[".sentry-mask","[data-sentry-mask]"]),c=Ht(t,[]);return{maskTextSelector:o,unmaskTextSelector:c,blockSelector:Ht(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:Ht(r,[]),ignoreSelector:Ht(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function U_({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 ro='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',H_=["content-length","content-type","accept"],W_=Symbol.for("sentry__originalRequestBody");let so=!1,io=!1;function $_(){if(typeof Request>"u"||io)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[W_]=r.body),s};t.prototype=e.prototype,ae.Request=t,io=!0}catch{}}const z_=(e=>new q_(e));class q_{constructor({flushMinDelay:t=fh,flushMaxDelay:n=ph,minReplayDuration:r=Sh,maxReplayDuration:s=Pi,stickySession:i=!0,useCompression:o=!0,workerUrl:c,_experiments:a={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:T=!0,networkRequestHeaders:N=[],networkResponseHeaders:O=[],mask:U=[],maskAttributes:R=["title","placeholder","aria-label"],unmask:g=[],block:I=[],unblock:X=[],ignore:v=[],maskFn:w,beforeAddRecordingEvent:H,beforeErrorSampling:F,onError:L,attachRawBodyFromRequest:te=!1}={}){this.name="Replay";const V=B_({mask:U,unmask:g,block:I,unblock:X,ignore:v});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:w,maskInputFn:w,maskAttributeFn:(Y,S,W)=>U_({maskAttributes:R,maskAllText:u,privacyOptions:V,key:Y,value:S,el:W}),...V,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Y=>{try{Y.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!a.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Eh),maxReplayDuration:Math.min(s,Pi),stickySession:i,useCompression:o,workerUrl:c,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:T,networkRequestHeaders:oo(N),networkResponseHeaders:oo(O),beforeAddRecordingEvent:H,beforeErrorSampling:F,onError:L,attachRawBodyFromRequest:te,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ro}`:ro,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&zr())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return so}set _isInitialized(t){so=t}afterAllSetup(t){!zr()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&$_(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
20startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=V_(this._initialOptions,t);this._replay=new F_({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function V_(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Pr(n.replaysSessionSampleRate),i=Pr(n.replaysOnErrorSampleRate);return s==null&&i==null&&xt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function oo(e){return[...H_,...e.map(t=>t.toLowerCase())]}function j_(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function lc(e){try{return new URL(e,D.location.origin).href}catch{return}}function G_(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function dc(e){try{return new Headers(e)}catch{return}}const ao=new WeakMap,Lr=new Map,fc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Y_(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:c,onRequestSpanStart:a,onRequestSpanEnd:u}={...fc,...t},l=typeof i=="function"?i:h=>!0,d=h=>X_(h,c),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(m=>{if(m.op==="http.client"){const _=Lr.get(m.span_id);_&&(m.timestamp=_/1e3,Lr.delete(m.span_id))}}),h)),s&&hd(h=>{if(h.response){const m=ao.get(h.response);m&&h.endTimestamp&&Lr.set(m,h.endTimestamp)}}),Xo(h=>{const m=sd(h,l,d,f,{propagateTraceparent:p,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&ao.set(h.response,h.fetchData.__span),m){const _=lc(h.fetchData.url),y=_?ut(_).host:void 0;m.setAttributes({"http.url":_?Ye(_):void 0,"server.address":y}),o&&co(m,e),a?.(m,{headers:h.headers})}})),r&&ma(h=>{const m=J_(h,l,d,f,p,u);m&&(o&&co(m,e),a?.(m,{headers:dc(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}const K_=300;function co(e,t){const{url:n}=oe(e).data;if(!n||typeof n!="string")return;let r=()=>{setTimeout(s)};if(Br(t)){const i=e.end.bind(e);e.end=o=>{const c=o??ve();let a=!1;const u=()=>{a||(a=!0,setTimeout(s),i(c),clearTimeout(l))};r=u;const l=setTimeout(u,K_)}}const s=Rt("resource",({entries:i})=>{i.forEach(o=>{G_(o)&&o.name.endsWith(n)&&(e.setAttributes(da(o)),r())})})}function X_(e,t){const n=Ot();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?ze(r.toString(),t)||i&&ze(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?ze(e,t):r}}function J_(e,t,n,r,s,i){const o=e.xhr,c=o?.[at];if(!o||o.__sentry_own_request__||!c)return;const{url:a,method:u}=c,l=Ge()&&t(a);if(e.endTimestamp){const y=o.__sentry_xhr_span_id__;if(!y)return;const T=r[y];T&&(l&&c.status_code!==void 0&&(vo(T,c.status_code),T.end(),i?.(T,{headers:dc(Sa(o)),error:e.error})),delete r[y]);return}const d=lc(a),f=ut(d||a),p=Ye(Tl(a)),h=K(),m=!!be(),_=l&&m?et({name:`${u} ${p}`,attributes:{url:Ye(a),type:"xhr","http.method":u,"http.url":d?Ye(d):void 0,"server.address":f?.host,[ce]:"auto.http.browser",[lt]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Dn;return l&&!m&&h?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=_.spanContext().spanId,r[o.__sentry_xhr_span_id__]=_,n(a)&&Q_(o,Ge()&&m?_:void 0,s),h&&h.emit("beforeOutgoingRequestSpan",_,e),_}function Q_(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=qo({span:t,propagateTraceparent:n});r&&Z_(e,r,s,i)}function Z_(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const i=s?.baggage;(!i||!j_(i))&&e.setRequestHeader("baggage",n)}}catch{}}function ey(){D.document?D.document.addEventListener("visibilitychange",()=>
20{const e=be();if(!e)return;const t=dt(e);if(D.document.hidden&&t){const n="cancelled",{op:r,status:s}=oe(t);we&&b.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:Yt,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):we&&b.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ty=3600,pc="sentry_previous_trace",ny="sentry.previous_trace";function ry(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?oy():void 0;e.on("spanStart",o=>{if(dt(o)!==o)return;const c=re().getPropagationContext();s=sy(s,o,c),r&&iy(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const c=re(),a=c.getPropagationContext();if(i&&a.parentSpanId){i=!1;return}c.setPropagationContext({...a,dsc:{...a.dsc,sample_rate:String(s.sampleRate),sampled:String(as(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=as(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[uu]:s.sampleRate}})}function sy(e,t,n){const r=oe(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[du])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=ty&&(we&&b.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[lu]:"previous_trace"}}),t.setAttribute(ny,`${o.traceId}-${o.spanId}-${as(o)?1:0}`)),i)}function iy(e){try{D.sessionStorage.setItem(pc,JSON.stringify(e))}catch(t){we&&b.warn("Could not store previous trace in sessionStorage",t)}}function oy(){try{const e=D.sessionStorage?.getItem(pc);return JSON.parse(e)}catch{return}}function as(e){return e.traceFlags===1}const ay="BrowserTracing",cy=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function uy(){const e=D.navigator;return e?.userAgent?cy.test(e.userAgent):!1}const ly={...Mn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...fc},dy=((e={})=>{"enableElementTiming"in e&&xt(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=D.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:i,_experiments:{enableInteractions:o,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:a},beforeStartSpan:u,idleTimeout:l,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:h,traceXHR:m,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:y,enableHTTPTimings:T,ignoreResourceSpans:N,ignorePerformanceApiSpans:O,instrumentPageLoad:U,instrumentNavigation:R,detectRedirects:g,linkPreviousTrace:I,consistentTraceSampling:X,enableReportPageLoaded:v,onRequestSpanStart:w,onRequestSpanEnd:H}={...ly,...e},F=uy();let L,te,V;function Y(S,W,A=!0){const B=W.op==="pageload",Q=W.name,J=u?u(W):W,pe=J.attributes||{};if(Q!==J.name&&(pe[$e]="custom",J.attributes=pe),!A){const he=Zn();et({...J,startTime:he}).end(he);return}t.name=J.name,t.source=pe[$e];const ue=Mo(J,{idleTimeout:l,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:B,beforeSpanEnd:he=>{L?.();const Ae=Br(S);Rf(he,{recordClsOnPageloadSpan:!Ae&&!c,recordLcpOnPageloadSpan:!Ae&&!a,ignoreResourceSpans:N,ignorePerformanceApiSpans:O,spanStreamingEnabled:Ae}),fo(S,void 0);const Fe=re(),Me=Fe.getPropagationContext();Fe.setPropagationContext({...Me,traceId:ue.spanContext().traceId,sampled:pu(ue),dsc:Qn(he)}),B&&(V=void 0)},trimIdleSpanEndTimestamp:!v});B&&v&&(V=ue),fo(S,ue);function ye(){n&&["interactive","complete"].includes(n.readyState)&&S.emit("idleSpanEnableAutoFinish",ue)}B&&!v&&n&&(n.addEventListener("readystatechange",()=>{ye()}),ye())}return{name:ay,setup(S){if(F){we&&b.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}Uu();const W=Br(S);if(L=Sf({recordClsStandaloneSpans:W?void 0:c||!1,recordLcpStandaloneSpans:W?void 0:a||!1,client:S}),W?(zf(S),Vf(S),r&&Gf()):r&&Bf(),i&&ae.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?vf():s&&Ef(),o&&bf(),g&&n){const B=()=>{te=ve()};addEventListener("click",B,{capture:!0}),addEventListener("keydown",B,{capture:!0,passive:!0})}function A(){const B=rn(S);B&&!oe(B).timestamp&&(we&&b.log(`[Tracing] Finishing current active span with op: ${oe(B).op}`),B.setAttribute(Kt,"cancelled"),B.end())}S.on("startNavigationSpan",(B,Q)=>{if(K()!==S)return;if(Q?.isRedirect){we&&b.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),Y(S,{op:"navigation.redirect",...B},!1);return}te=void 0,A(),Mt().setPropagationContext({traceId:ii(),sampleRand:Math.random(),propagationSpanId:Ge()?void 0:_r()});const J=re();J.setPropagationContext({traceId:ii(),sampleRand:Math.random(),propagationSpanId:Ge()?void 0:_r()}),J.setSDKProcessingMetadata({normalizedRequest:void 0}),Y(S,{op:"navigation",...B,parentSpan:null,forceTransaction:!0})}),S.on("startPageLoadSpan",(B,Q={})=>
20{if(K()!==S)return;A();const J=Q.sentryTrace||uo("sentry-trace")||lo("sentry-trace"),pe=Q.baggage||uo("baggage")||lo("baggage"),ue=fu(J,pe),ye=re();ye.setPropagationContext(ue),Ge()||(ye.getPropagationContext().propagationSpanId=_r()),ye.setSDKProcessingMetadata({normalizedRequest:Ts()}),Y(S,{op:"pageload",...B})}),S.on("endPageloadSpan",()=>{v&&V&&(V.setAttribute(Kt,"reportPageLoaded"),V.end())})},afterAllSetup(S){if(F)return;let W=Ot();if(I!=="off"&&ry(S,{linkPreviousTrace:I,consistentTraceSampling:X}),D.location){if(U){const A=fe();hc(S,{name:D.location.pathname,startTime:A?A/1e3:void 0,attributes:{[$e]:"url",[ce]:"auto.pageload.browser"}})}R&&or(({to:A,from:B})=>{if(B===void 0&&W?.indexOf(A)!==-1){W=void 0;return}W=void 0;const Q=vs(A),J=rn(S),pe=J&&g&&py(J,te);mc(S,{name:Q?.pathname||D.location.pathname,attributes:{[$e]:"url",[ce]:"auto.navigation.browser"}},{url:A,isRedirect:pe})})}p&&ey(),o&&fy(S,l,d,f,t),r&&$f(),Y_(S,{traceFetch:h,traceXHR:m,trackFetchStreamPerformance:_,tracePropagationTargets:S.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:T,onRequestSpanStart:w,onRequestSpanEnd:H})}}});function hc(e,t,n){e.emit("startPageLoadSpan",t,n),re().setTransactionName(t.name);const r=rn(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function mc(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=re();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...Ts(),url:r}}),rn(e)}function uo(e){return D.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function lo(e){return D.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function fy(e,t,n,r,s){const i=D.document;let o;const c=()=>{const a="ui.action.click",u=rn(e);if(u){const l=oe(u).op;if(["navigation","pageload"].includes(l)){we&&b.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(Kt,"interactionInterrupted"),o.end(),o=void 0),!s.name){we&&b.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=Mo({name:s.name,op:a,attributes:{[$e]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",c,{capture:!0})}const gc="_sentry_idleSpan";function rn(e){return e[gc]}function fo(e,t){Tt(e,gc,t)}const po=1.5;function py(e,t){const n=oe(e),r=Zn(),s=n.start_timestamp;return!(r-s>po||t&&r-t<=po)}function hy(e){const t={...e};return bs(t,"svelte"),ch(t)}function my(e){return class extends gy{constructor(t){super({component:e,...t})}}}class gy{#t;#e;constructor(t){var n=new Map,r=(i,o)=>{var c=Su(o,!1,!1);return n.set(i,c),c};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return Te(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===gu?!0:(Te(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,c){return Cn(n.get(o)??r(o,c),c),Reflect.set(i,o,c)}});this.#e=(t.hydrate?Mu:xu)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_u(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||yu(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Ou(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}function _y(e={}){const t={...dy({...e,instrumentNavigation:!1,instrumentPageLoad:!1})};return{...t,afterAllSetup:n=>{t.afterAllSetup(n),e.instrumentPageLoad!==!1&&yy(n),e.instrumentNavigation!==!1&&Sy(n)}}}function yy(e){const t=D.location?.pathname,n=hc(e,{name:t,op:"pageload",attributes:{[ce]:"auto.pageload.sveltekit",[$e]:"url"}});n&&hu.subscribe(r=>{if(!r)return;const s=r.route?.id;s&&(n.updateName(s),n.setAttribute($e,"route"),re().setTransactionName(s))})}function Sy(e){let t;mu.subscribe(n=>{if(!n){t&&(t.end(),t=void 0);return}const r=n.from,s=n.to,i=r?.url.pathname||D.location?.pathname,o=s?.url.pathname;if(i===o)return;const c=r?.route.id,a=s?.route.id;t&&t.end();const u={"sentry.sveltekit.navigation.type":n.type,"sentry.sveltekit.navigation.from":c||void 0,"sentry.sveltekit.navigation.to":a||void 0};mc(e,{name:a||o||"unknown",op:"navigation",attributes:{[ce]:"auto.navigation.sveltekit",[$e]:a?"route":"url",...u}}
20),t=et({op:"ui.sveltekit.routing",name:"SvelteKit Route Change",attributes:{[ce]:"auto.ui.sveltekit",...u},onlyIfParent:!0})})}function Ey(e){const t={defaultIntegrations:vy(),...e};bs(t,"sveltekit",["sveltekit","svelte"]);const n=by(),r=hy(t);return n&&Ty(n),r}function vy(e){return typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__?[...Jr(),_y()]:Jr()}function by(){const e=D,t=e.fetch;if(e._sentryFetchProxy&&t)return e.fetch=e._sentryFetchProxy,t}function Ty(e){const t=D;t._sentryFetchProxy=t.fetch,t.fetch=e}function Iy({error:e}){xt(()=>{console.error(e)})}function wy(e){const t=Iy;return n=>(Ry(n)||hs(n.error,{mechanism:{type:"auto.function.sveltekit.handle_error",handled:!1}}),t(n))}function Ry(e){const{status:t}=e;return t?t>=400&&t<500:!1}Ey({dsn:yc.errorTracking.sentryDsn,tracesSampleRate:1,enableLogs:!0,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,integrations:[z_()],sendDefaultPii:!0});const ky=wy(),Cy=(e=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)),qy={uuid:Cy};var Ay=ko('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),My=ko("<!> <!>",1);function xy(e,t){Eu(t,!0);let n=Ut(t,"components",23,()=>[]),r=Ut(t,"data_0",3,null),s=Ut(t,"data_1",3,null),i=Ut(t,"data_2",3,null),o=Ut(t,"data_3",3,null);vu(()=>t.stores.page.set(t.page)),bu(()=>{t.stores,t.page,t.constructors,n(),t.form,r(),s(),i(),o(),t.stores.page.notify()});let c=yr(!1),a=yr(!1),u=yr(null);Nu(()=>{const y=t.stores.page.subscribe(()=>{Te(c)&&(Cn(a,!0),Tu().then(()=>{Cn(u,document.title||"untitled page",!0)}))});return Cn(c,!0),y});const l=rt(()=>t.constructors[3]);var d=My(),f=Pe(d);{var p=y=>{const T=rt(()=>t.constructors[0]);var N=He(),O=Pe(N);st(O,()=>Te(T),(U,R)=>{it(R(U,{get data(){return r()},get form(){return t.form},get params(){return t.page.params},children:(g,I)=>{var X=He(),v=Pe(X);{var w=F=>{const L=rt(()=>t.constructors[1]);var te=He(),V=Pe(te);st(V,()=>Te(L),(Y,S)=>{it(S(Y,{get data(){return s()},get form(){return t.form},get params(){return t.page.params},children:(W,A)=>{var B=He(),Q=Pe(B);{var J=ue=>{const ye=rt(()=>t.constructors[2]);var he=He(),Ae=Pe(he);st(Ae,()=>Te(ye),(Fe,Me)=>{it(Me(Fe,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(qe,Gs)=>{var gn=He(),Be=Pe(gn);st(Be,()=>Te(l),(Ue,Pt)=>{it(Pt(Ue,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),Dt=>n()[3]=Dt,()=>n()?.[3])}),Re(qe,gn)},$$slots:{default:!0}}),qe=>n()[2]=qe,()=>n()?.[2])}),Re(ue,he)},pe=ue=>{const ye=rt(()=>t.constructors[2]);var he=He(),Ae=Pe(he);st(Ae,()=>Te(ye),(Fe,Me)=>{it(Me(Fe,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),qe=>n()[2]=qe,()=>n()?.[2])}),Re(ue,he)};Bt(Q,ue=>{t.constructors[3]?ue(J):ue(pe,-1)})}Re(W,B)},$$slots:{default:!0}}),W=>n()[1]=W,()=>n()?.[1])}),Re(F,te)},H=F=>{const L=rt(()=>t.constructors[1]);var te=He(),V=Pe(te);st(V,()=>Te(L),(Y,S)=>{it(S(Y,{get data(){return s()},get form(){return t.form},get params(){return t.page.params}}),W=>n()[1]=W,()=>n()?.[1])}),Re(F,te)};Bt(v,F=>{t.constructors[2]?F(w):F(H,-1)})}Re(g,X)},$$slots:{default:!0}}),g=>n()[0]=g,()=>n()?.[0])}),Re(y,N)},h=y=>{const T=rt(()=>t.constructors[0]);var N=He(),O=Pe(N);st(O,()=>Te(T),(U,R)=>{it(R(U,{get data(){return r()},get form(){return t.form},get params(){return t.page.params}}),g=>n()[0]=g,()=>n()?.[0])}),Re(y,N)};Bt(f,y=>{t.constructors[1]?y(p):y(h,-1)})}var m=Iu(f,2);{var _=y=>{var T=Ay(),N=Ru(T);{var O=U=>{var R=Cu();Au(()=>Lu(R,Te(u))),Re(U,R)};Bt(N,U=>{Te(a)&&U(O)})}ku(T),Re(y,T)};Bt(m,y=>{Te(c)&&y(_)})}Re(e,d),wu()}const Vy=my(xy),jy=[()=>E(()=>import("../nodes/0.CY2ZuP-3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86]),import.meta.url),()=>E(()=>import("../nodes/1.BvuPHvVF.js"),__vite__mapDeps([87,1,3,4,43,37,2,14,15,12,16,5,6,7,17,13]),import.meta.url),()=>E(()=>import("../nodes/2.BsYSRgGx.js"),__vite__mapDeps([88,1,3,5,6,84]),import.meta.url),()=>E(()=>import("../nodes/3.CbVVSm3l.js"),__vite__mapDeps([89,1,3,4,5,6,7,9,13,8,12,22,20,21,28,27,17,15,16,90,31,26,23,29,30,2,32,64,56,91,74,14,92,93,68,35,94,43,37,95,18,19,25,33,34,96,45,97,47,98,67,99,100]),import.meta.url),()=>E(()=>import("../nodes/4.C1KDGXE4.js"),__vite__mapDeps([101,1,3,5,6,7,12,4,43,37,2,8,9,13,90,31,26,22,27,20,21,23,28,29,30,32,15,64,56,102,35,10,42,44,45,46,47,48,103]),import.meta.url),()=>E(()=>import("../nodes/5.Bsy81c5T.js"),__vite__mapDeps([104,1,3,5,6,84]),import.meta.url),()=>E(()=>import("../nodes/6.CDKazU2N.js"),__vite__mapDeps([105,1,3,4,7,6,43,37,2,14,15,12,16,5,17,13,87,61]),import.meta.url),()=>E(()=>import("../nodes/7.Dr_uzUMM.js"),__vite__mapDeps([106,1,3,5,6,84]),import.meta.url),()=>E(()=>import("../nodes/8.jE4c2p7M.js"),__vite__mapDeps([107,1,3,5,6,84]),import.meta.url),()=>E(()=>import("../nodes/9.DKadlMzw.js"),__vite__mapDeps([108,1,3,5,6]),import.meta.url),()=>E(()=>import("../nodes/10.DWi_cp92.js"),__vite__mapDeps([109,1,3,7,6,4,12,15,110,2,5,9,17,13,102,21,35,8,10,14,16,91,74,99,20,103,42,43,37,44,45,46,47,48,72,111,112,113,95,11,40,114,115,116,24,117,18,19,22,23,38,118,119,120,50,121,122,83,84,85,123]),import.meta.url),()=>E(()=>import("../nodes/11.qcfDF79i.js"),__vite__mapDeps([124,1,3,4,111,6,7,8,112,12,17,13,15,9,125,5,126,127,114,35,14,16,128,71]),import.meta.url),()=>E(()=>import("../nodes/12.wsOPYaU9.js"),__vite__mapDeps([129,1,3,4,7,6,8,9,11,12,94,14,15,16,5,17,13,130,131,132,133,27,20,21,92,22,28,26,23,29,30,41,35,37,2,43,36,40,134,71,135,136,137,138,139,140,76]),import.meta.url),()=>E(()=>import("../nodes/13.B5j1nCvj.js"),__vite__mapDeps([141,1,3,13,4,7,6,8,9,11,12,17,142,54,14,15,16,5,143,80,20,21,144,78,22,27,72,79,53,145,146,55,35,147,130,131,132,148,28,58,36,37,2,149,135,125,126,150,127,41,38,94,70,151,32,30,23,59,152,71,153,154,137,68,134]),import.meta.url),()=>E(()=>import("../nodes/14.xmYEIIO3.js"),__vite__mapDeps([155,1,3,9,6,142,4,7,8,11,12,54,13,14,15,16,5,17,143,80,20,21,144,78,22,27,72,79,53,145,146,55,35,147,130,131,132,148,28,58,36,37,2,149,135,94,153,46]),import.meta.url),()=>E(()=>import("../nodes/15.9w9NgUaz.js"),__vite__mapDeps([156,1,2,3,4,7,6,8,9,12,14,15,16,5,17,13,125,126,157,127,37,158,35,159,160,43,134]),import.meta.url),()=>E(()=>import("../nodes/16.DbuHG8bP.js"),__vite__mapDeps([161,1,3,4,7,6,9,11,12,14,15,16,5,17,13,125,126,150,157,127,130,131,132,143,54,80,20,21,36,37,2,133,27,92,22,28,26,23,29,30,71,153,35,8,77,159,135,158,46]),import.meta.url),()=>E(()=>import("../nodes/17.Bu3EXrS4.js"),__vite__mapDeps([162,1,3,4,7,6,9,163,8,11,12,54,17,13,36,37,2,14,15,16,5,143,80,20,21,125,130,133,27,92,22,28,26,23,29,30,145,146,72,79,53,55,35,147,68,134,38,164,95,113,58,63,31,32,64,33,165,77,154,131,132,153,135,71]),import.meta.url),()=>E(()=>import("../nodes/18.XEAoIJca.js"),__vite__mapDeps([166,1,3,4,111,6,9,14,15,12,16,5,7,17,13,125,126,112,153,35,8,135]),import.meta.url),()=>E(()=>import("../nodes/19.CXQxzuWo.js"),__vite__mapDeps([167,1,3,163,4,7,6,8,9,11,12,54,17,13,36,37,2,14,15,16,5,143,80,20,21,125,130,133,27,92,22,28,26,23,29,30,145,146,72,79,53,55,35,147,68,134,38,164,95,113,58,63,31,32,64,33,165,77,154,153,71]),import.meta.url),()=>E(()=>import("../nodes/20.6lDI9Pn4.js"),__vite__mapDeps([168,1,3,4,111,6,7,8,9,37,2,125,5,12,17,13,15,126,127,52,31,26,22,27,20,21,23,28,29,30,32,53,54,55,35,56,57,58,59,33,60,112,46,75]),import.meta.url),()=>E(()=>import("../nodes/21.CEEVQVbw.js"),__vite__mapDeps([169,1,3,13,4,7,6,8,9,11,12,94,14,15,16,5,17,125,126,150,157,127,130,131,132,133,27,20,21,92,22,28,26,23,29,30,170,41,35,37,2,70,36,71,
20135,67,140]),import.meta.url),()=>E(()=>import("../nodes/22.DPW4n6gu.js"),__vite__mapDeps([171,1,3,4,7,6,8,9,12,14,15,16,5,17,13,125,126,150,157,127,130,131,132,52,31,26,22,27,20,21,23,28,29,30,2,32,53,54,55,35,56,57,58,59,33,60,41,37,43,153,135,98]),import.meta.url),()=>E(()=>import("../nodes/23.B9ykIOpE.js"),__vite__mapDeps([172,1,3,4,7,6,8,9,11,12,54,14,15,16,5,17,13,125,130,131,132,173,93,92,20,21,22,28,27,26,23,29,30,68,35,144,52,31,2,32,53,55,56,57,58,59,33,60,41,174,77,36,37,80,39,40,71,153,135,98,140]),import.meta.url),()=>E(()=>import("../nodes/24.zKuzxNND.js"),__vite__mapDeps([175,1,72,3]),import.meta.url),()=>E(()=>import("../nodes/25.DyWNCUAv.js"),__vite__mapDeps([176,1,3,12,4,14,15,16,5,6,7,17,13,84,35,8]),import.meta.url),()=>E(()=>import("../nodes/26.B8qhSeVg.js"),__vite__mapDeps([177,1,3,13,4,7,6,8,9,11,12,94,14,15,16,5,17,130,131,132,133,27,20,21,92,22,28,26,23,29,30,41,35,37,2,70,36,134,71,135,47,139,140]),import.meta.url),()=>E(()=>import("../nodes/27.0IBnC_W0.js"),__vite__mapDeps([178,1,3,4,7,6,9,179,11,12,17,13,14,15,16,5,143,54,80,20,21,144,78,22,27,72,79,53,130,131,132,36,37,2,29,71,31,26,23,28,30,32,35,8,137,180,147,25,33,181,182,63,64,100,183,146,184,55,38,90,56,139,99,153,114,121,185,10,50,96,58,135,154,159,149,68,186,125,126,150,127,41]),import.meta.url),()=>E(()=>import("../nodes/28.BEcd50-8.js"),__vite__mapDeps([187,1,3,9,6,179,4,7,11,12,17,13,14,15,16,5,143,54,80,20,21,144,78,22,27,72,79,53,130,131,132,36,37,2,29,71,31,26,23,28,30,32,35,8,137,180,147,25,33,181,182,63,64,100,183,146,184,55,38,90,56,139,99,153,114,121,185,10,50,96,58,135,154,159,149,68,186,125,126,150,127,46]),import.meta.url),()=>E(()=>import("../nodes/29.DIvzov2W.js"),__vite__mapDeps([188,1,3,13,4,7,6,8,9,11,12,37,2,70,14,15,16,5,17,130,131,132,133,27,20,21,92,22,28,26,23,29,30,41,35,36,134,71,135,189,139,140]),import.meta.url),()=>E(()=>import("../nodes/30.Dfo0j7t7.js"),__vite__mapDeps([190,1,3,4,7,6,9,11,12,13,36,37,2,14,15,16,5,17,125,126,150,127,130,131,132,133,27,20,21,92,22,28,26,23,29,30,80,143,54,145,146,72,79,53,55,35,8,147,99,164,95,113,58,63,31,32,64,33,153,140,135,71,149]),import.meta.url),()=>E(()=>import("../nodes/31.Dc-gaijM.js"),__vite__mapDeps([191,1,3,4,7,6,9,11,12,13,36,37,2,14,15,16,5,17,125,126,150,127,130,131,132,80,20,21,143,54,145,146,22,27,72,79,53,55,35,8,147,99,164,30,26,23,28,29,95,113,58,63,31,32,64,33,153,149,135,71]),import.meta.url),()=>E(()=>import("../nodes/32.DaQpixR7.js"),__vite__mapDeps([192,1,3,4,7,6,8,9,12,14,15,16,5,17,13,125,126,157,127,130,131,132,41,35,37,2,43,117,18,19,20,21,22,23,38,134,135,97,139]),import.meta.url),()=>E(()=>import("../nodes/33.CZW1PCoj.js"),__vite__mapDeps([193,1,3,4,7,6,9,11,12,17,36,37,2,14,15,16,5,13,125,126,150,127,130,131,132,133,27,20,21,92,22,28,26,23,29,30,52,8,31,32,53,54,55,35,56,57,58,59,33,60,99,80,143,144,145,146,72,79,147,41,38,117,18,19,153,97,154,194,149,140,71]),import.meta.url),()=>E(()=>import("../nodes/34.CdGvSxsi.js"),__vite__mapDeps([195,1,3,4,7,6,9,11,12,36,37,2,14,15,16,5,17,13,125,126,150,127,130,131,132,52,8,31,26,22,27,20,21,23,28,29,30,32,53,54,55,35,56,57,58,59,33,60,99,80,143,144,153,149,135,71]),import.meta.url),()=>E(()=>import("../nodes/35.TpHMXJq3.js"),__vite__mapDeps([196,1,3,4,111,6,7,8,112,12,17,13,15,9,125,5,126,157,127,197,20,21,114,35,198,147]),import.meta.url),()=>E(()=>import("../nodes/36.os6iSC_Y.js"),__vite__mapDeps([199,1,3,4,7,6,8,9,12,14,15,16,5,17,13,125,126,157,127,130,131,132,18,19,20,21,22,23,52,31,26,27,28,29,30,2,32,53,54,55,35,56,57,58,59,33,60,41,200,37,43,184,134,135,45,189,139,97,113,95]),import.meta.url),()=>E(()=>import("../nodes/37.DgfnIFpV.js"),__vite__mapDeps([201,1,3,4,111,6,7,8,9,11,12,17,13,36,37,2,43,14,15,16,5,125,126,150,127,130,131,132,133,27,20,21,92,22,28,26,23,29,30,80,143,54,145,146,72,79,53,55,35,147,99,100,183,41,151,32,59,152,112,184,77,134,71,135,76,136,68,202,97,203,117,18,19,38,45,189,204,205,206,121,185,207,200,208,114,52,31,56,57,58,33,60,164,95,113,63,64,144,153,140,165,149,137,154,194]),import.meta.url),()=>E(()=>import("../nodes/38.CHaJt5Wr.js"),__vite__mapDeps([209,1,3,4,7,6,8,9,11,12,13,36,37,2,14,15,16,5,17,125,126,150,127,130,131,132,52,31,26,22,27,20,21,23,28,29,30,32,53,54,55,35,56,57,58,59,33,60,99,80,143,145,146,72,79,147,164,95,113,63,64,144,153,165,149,135,71]),import.meta.url),()=>E(()=>import("../nodes/39.B5COiGS2.js"),__vite__mapDeps([210,1,3,13,4,7,6,8,9,11,12,94,14,15,16,5,17,125,126,127,130,131,132,133,27,20,21,92,22,28,26,23,29,30,170,206,18,19,41,35,143,54,37,2,70,36,38,117,184,71,135,139,140,69]),import.meta.url),()=>E(()=>import("../nodes/40.D8Vv6eFt.js"),__vite__mapDeps([211,1,3,4,111,6,8,9,12,112,17,13,15,125,5,126,127,2,212,114,35]),import.meta.url),()=>E(()=>import("../nodes/41.DsUr8i-w.js"),__vite__mapDeps([213,1,72,3,4,7,6,8,12,15,113,13,35,5,95,110,2,9,17,102,21,10,214,154,45,198,14,16,120,50,121,122,83,84,43,37,85]),import.meta.url),()=>E(()=>import("../nodes/42.0OYDf4UM.js"),__vite__mapDeps([215,1,3,4,7,6,11,12,36,37,2,14,15,16,5,17,13,80,9,20,21,128,144,54,130,131,132,174,77,35,8,122,83,84,43,85,135,216,71]),import.meta.url),()=>E(()=>import("../nodes/43.Da4wliTN.js"),__vite__mapDeps([217,1,72,3,122,7,6,8,83,84,12,4,13,43,37,2,85,82,35,5,160,218,219]),import.meta.url),()=>E(()=>import("../nodes/44.BDGfnRSJ.js"),__vite__mapDeps([220,1,2,3,4,111,6,7,9,12,13,15,17,212,128,5,8,100,20,21,27,29,22,183,41,16,35,99,117,18,19,23,38,221,203,48,112,151,32,30,59,152,39,40,37,120,10,50,121,122,83,84,43,85]),import.meta.url),()=>E(()=>import("../nodes/45.e9NXgfEe.js"),__vite__mapDeps([222,1,72,3,4,7,6,9,11,12,143,54,17,13,15,80,5,20,21,223,14,16,174,77,35,8,130,132,36,37,2,219,135,224,116,122,83,84,43,85]),import.meta.url),()=>E(()=>import("../nodes/46.DdlWC_3-.js"),__vite__mapDeps([225,1,3,4,111,6,7,9,12,8,10,13,112,17,15,226,2,14,16,5,151,22,32,20,21,30,23,59,152,227,35,39,40,41,76,137,189,228,229,135,37,138,114,70,230,71,181,207,50,51,57,58,208,18,19,206,38,43,117,128,231,130,131,132,91,74,113,95,62,63,31,26,27,28,29,64,33,46,232]),import.meta.url),()=>E(()=>import("../nodes/47.E2PCiJ__.js"),__vite__mapDeps([233,1,2,3,4,7,6,84,12,227,13,35,5,8,39,40,41,16,15,17,9,76,137,
20189,14,151,22,32,20,21,30,23,59,152,234,148,27,28,58,130,132,83,180,46]),import.meta.url),()=>E(()=>import("../nodes/48.7rxu6Rq2.js"),__vite__mapDeps([235,1,2,3,4,111,6,7,8,84,11,12,17,128,5,13,15,234,14,16,143,54,38,36,37,112,118,68,35,98,81,71,154,137,182]),import.meta.url),()=>E(()=>import("../nodes/49.CF1cF8Ns.js"),__vite__mapDeps([236,1,3,84,4,7,6,8,9,11,12,54,13,14,15,16,5,17,174,77,35,151,22,32,20,21,30,23,59,152,130,132,36,37,2,117,18,19,38,135,224,72,116]),import.meta.url),()=>E(()=>import("../nodes/50.CS395FLj.js"),__vite__mapDeps([237,1,72,3,224,12,4,116,2,7,6,9,84,11,54,17,14,15,16,5,13,143,80,20,21,174,77,35,8,223,238,130,132,36,37,81,239,219,135,218,122,83,43,85]),import.meta.url),()=>E(()=>import("../chunks/DFbJJkDC.js").then(e=>e._),__vite__mapDeps([37,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/52.Ddze78ST.js"),__vite__mapDeps([240,1,72,3,4,7,6,8,12,79,110,2,5,9,17,13,15,102,21,35,10,120,50,121,122,83,84,43,37,85]),import.meta.url),()=>E(()=>import("../nodes/53.B4VQHz2y.js"),__vite__mapDeps([241,1,3,4,111,6,7,8,12,112,17,13,15,207,35,5,214,114,120,10,50,121,122,83,84,43,37,2,85]),import.meta.url),()=>E(()=>import("../nodes/54.B_3xGcsw.js"),__vite__mapDeps([242,1,3,4,7,6,83,12,15,44,13,35,5,8,214,122,84,43,37,2,85,243]),import.meta.url),()=>E(()=>import("../nodes/55.C3NI2LMM.js"),__vite__mapDeps([244,1,3,7,6,10,4,50,51,115,8,12,13,116,24,14,15,16,5,17,117,9,35,18,19,20,21,22,23,38,118,37,2,114,119,49,72,111,226,151,32,30,59,152,227,39,40,41,76,137,189,228,112,148,27,28,58,219,120,121,81,122,83,84,43,85]),import.meta.url),()=>E(()=>import("../chunks/DFbJJkDC.js").then(e=>e.j),__vite__mapDeps([37,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/57.hPcuEzB3.js"),__vite__mapDeps([245,1,72,3,84,4,7,6,9,11,12,14,15,16,5,17,13,174,77,35,8,145,146,22,20,21,27,79,53,54,55,147,80,130,132,36,37,2,246,73,93,92,28,26,23,29,30,247,151,32,59,152,248,249,118,135,224,116]),import.meta.url),()=>E(()=>import("../nodes/58.D0TNVgh3.js"),__vite__mapDeps([250,1,3,84,224,72,12,4,116,7,6,9,11,17,14,15,16,5,13,143,54,80,20,21,174,77,35,8,18,19,22,23,38,130,132,36,37,2,118,98,135,55]),import.meta.url),()=>E(()=>import("../nodes/59.D4IYlGHb.js"),__vite__mapDeps([251,1,2,3,4,84,111,6,7,8,9,11,12,54,13,14,15,16,5,17,174,77,35,151,22,32,20,21,30,23,59,152,130,131,132,36,37,117,18,19,38,118,62,63,31,26,27,28,29,64,33,52,53,55,56,57,58,60,135,46,224,72,116,71]),import.meta.url),()=>E(()=>import("../nodes/60.COU7oXnR.js"),__vite__mapDeps([252,1,3,111,6,7,8,84,11,43,37,2,4,12,10,13,50,68,35,5,207,112,17,15]),import.meta.url),()=>E(()=>import("../nodes/61.Ca8nxN3D.js"),__vite__mapDeps([253,1,2,3,4,111,6,84,231,13,14,15,12,16,5,7,17,135,35,8,208,9,18,19,20,21,22,23,206,38,207,43,37,117,114,112]),import.meta.url),()=>E(()=>import("../nodes/62.B58ya4Y3.js"),__vite__mapDeps([254,1,2,3,4,111,6,7,8,84,9,18,13,15,12,19,5,20,21,22,23,63,31,26,27,28,29,30,32,64,33,14,16,17,38,197,173,93,92,68,35,246,73,146,247,91,74,40,151,59,152,76,41,117,66,48,228,227,39,137,189,208,206,207,43,37,114,229,135,138,70,230,71,181,10,11,36,50,202,140,128,112,231,118]),import.meta.url),()=>E(()=>import("../nodes/63.Igg3VmEY.js"),__vite__mapDeps([255,1,72,3,248,122,7,6,8,83,84,12,4,13,43,37,2,85]),import.meta.url),()=>E(()=>import("../nodes/64.DYnut9Ov.js"),__vite__mapDeps([256,1,3,4,7,6,9,84,11,12,54,17,18,13,15,19,5,20,21,22,23,41,16,35,8,14,80,128,99,36,37,2,78,27,72,79,53,71,143,174,77,61,38,63,31,26,28,29,30,32,64,33,46]),import.meta.url),()=>E(()=>import("../nodes/65.CFclEYPN.js"),__vite__mapDeps([257,1,3,224,72,12,4,116,2,7,6,9,84,11,54,17,13,14,15,16,5,143,80,20,21,174,77,35,8,223,238,130,132,36,37,81,239,118,219,135,218,122,83,43,85]),import.meta.url),()=>E(()=>import("../nodes/66.CLguX-EG.js"),__vite__mapDeps([258,37,2,3,4,259,1,224,72,12,116,7,6,9,11,14,15,16,5,17,13,143,54,80,20,21,174,77,35,8,238,130,132,36,135,218,122,83,84,43,85]),import.meta.url),()=>E(()=>import("../nodes/67.C0valOLP.js"),__vite__mapDeps([260,1,2,3,4,111,6,7,8,9,100,13,15,12,5,20,21,27,29,22,183,204,205,17,16,14,143,54,206,117,35,18,19,23,38,121,185,207,200,37,43,184,261,52,31,26,28,30,32,53,55,56,57,58,59,33,60,99,221,128,41,203,48,113,95,112,231,135,262,122,83,84,85]),import.meta.url),()=>E(()=>import("../nodes/68.6sWts-a2.js"),__vite__mapDeps([263,1,3,4,111,6,7,8,9,12,128,5,17,13,15,117,35,18,19,20,21,22,23,38,97,114,205,16,14,143,54,100,27,29,183,200,37,2,43,207,112,264,203,99,206,52,31,26,28,30,32,53,55,56,57,58,59,33,60,184,63,64,41,48,120,10,50,121,122,83,84,85]),import.meta.url),()=>E(()=>import("../nodes/69.MrgO7hdA.js"),__vite__mapDeps([265,1,3,111,6,7,100,9,13,4,15,12,5,20,21,27,29,22,183,204,8,205,17,16,14,143,54,206,117,35,18,19,23,38,121,185,207,200,37,2,43,184,264,128,203,99,114,52,31,26,28,30,32,53,55,56,57,58,59,33,60,63,64,41,48,112,262,135,120,10,50,122,83,84,85]),import.meta.url),()=>E(()=>import("../nodes/70.DONSZXvo.js"),__vite__mapDeps([266,1,72,3,249,122,7,6,8,83,84,12,4,13,43,37,2,85]),import.meta.url),()=>E(()=>import("../nodes/71.BMCHbqSR.js"),__vite__mapDeps([267,1,3,4,111,6,12,54,7,8,9,100,13,15,5,20,21,27,29,22,207,35,206,17,65,95,97,189,165,112,14,16,200,37,2,43,120,10,50,121,122,83,84,85,184,135,113]),import.meta.url),()=>E(()=>import("../nodes/72.TC25f7QT.js"),__vite__mapDeps([268,1,3,7,6,4,9,12,13,14,15,16,5,17,18,19,20,21,22,23,63,31,26,27,28,29,30,2,32,64,33,38,37,41,35,8,230,71,111,207,112,117,151,59,152,114,100,183,204,205,143,54,206,121,185,200,43,184,262,135,261,52,53,55,56,57,58,60,99,221,128,203,48,113,95,65,120,10,50,122,83,84,85]),import.meta.url),()=>E(()=>import("../nodes/73.Ckuxg1pr.js"),__vite__mapDeps([269,1,3,84,4,7,6,8,9,11,12,54,13,36,37,2,223,14,15,16,5,17,143,80,20,21,174,77,35,130,132,38,135,216,19,22,23]),import.meta.url),()=>E(()=>import("../nodes/74.Bnu-v-nM.js"),__vite__mapDeps([270,1,3,7,6,14,15,12,4,16,5,17,13,128,76,35,8,271]),import.meta.url),()=>E(()=>import("../nodes/75.DpYVGoiQ.js"),__vite__mapDeps([272,1,3,7,6,128,5,12,4,17,13,15,76,35,8,271]),import.meta.url)],Gy=[0,2,3],Yy={"/":[-11],"/(app)/about":[41,[4]],"/(admin)/admins":[-12,[2,3]],"/(admin)/admins/activities":[-13,[2,3]],"/(admin)/admins/activities/new":[-15,[2,3]],"/(admin)/admins/activities/[activityId]":[-14,[2,3]],"/(admin)/admins/campaigns":[-16,[2,3]],"/(admin)/admins/campaigns/new":[19,[2,3]],"/(admin)/admins/campaigns/[campaignId=uuid]":[-17,[2,3]],"/(admin)/admins/campaigns/[campaignId=uuid]/edit":[-18,[2,3]],"/(admin)/admins/campaigns/[campaignId=uuid]/stats":[-19,[2,3]],"/(admin)/admins/conversion":[-21,[2,3]],"/(admin)/admins/feedbacks":[-22,[2,3]],"/(admin)/admins/fixtures":[-23,[2,3]],"/(admin)/admins/fixtures/[fixtureId]":[-24,[2,3]],"/(admin)/admins/marketing":[24,[2,3]],"/(admin)/admins/marketing/email-templates":[25,[2,3]],"/(admin)/admins/news":[-27,[2,3]],"/(admin)/admins/news/new":[-29,[2,3]],"/(admin)/admins/news/[newsId=uuid]":[-28,[2,3]],"/(admin)/admins/seasons":[-30,[2,3]],"/(admin)/admins/seasons/new":[31,[2,3]],"/(admin)/admins/seasons/[seasonId=uuid]":[-31,[2,3]],"/(admin)/admins/teams":[-33,[2,3]],"/(admin)/admins/teams/new":[34,[2,3]],"/(admin)/admins/teams/[teamId=uuid]":[-34,[2,3]],"/(admin)/admins/tournament-performance":[-36,[2,3]],"/(admin)/admins/tournaments":[-37,[2,3]],"/(admin)/admins/tournaments/new":[-39,[2,3]],"/(admin)/admins/tournaments/[tournamentId=uuid]":[-38,[2,3]],"/(admin)/admins/users":[-40,[2,3]],"/(admin)/admins/var-overview":[-41,[2,3]],"/(app)/contact-us":[42,[4]],"/(app)/cookie-policy":[43,[4]],"/email-verified":[-75],"/(app)/fixtures/[id]":[-45,[4]],"/(app)/forgot-password":[45,[4]],"/(app)/game-zone":[-47,[4,5],[,6]],"/(app)/game-zone/select-team":[-50,[4,5],[,6]],"/(app)/game-zone/[id]":[-48,[4,5],[,6]],"/(app)/game-zone/[id]/submit":[-49,[4,5],[,6]],"/(app)/login":[50,[4]],"/(app)/logout":[51,[4]],"/(app)/media":[52,[4]],"/(app)/news":[-54,[4]],"/(app)/news/[id]":[-55,[4]],"/(app)/nurdlederby":[-56,[4]],"/(app)/onboarding":[-57,[4]],"/(app)/onboarding/consent":[-58,[4]],"/(app)/onboarding/profile":[-59,[4]],"/(app)/onboarding/team":[-60,[4]],"/(app)/photo-gallery":[-61,[4]],"/(app)/player-leaderboard":[-62,[4]],"/(app)/portal":[-63,[4]],"/(app)/privacy-policy":[63,[4]],"/(app)/profile-settings":[-65,[4,7]],"/(app)/register":[-66,[4]],"/(app)/reset-password":[66,[4]],"/(app)/tables":[-68,[4,8]
20],"/(app)/teams":[-69,[4]],"/(app)/teams/[teamId]":[-70,[4]],"/(app)/terms-of-use":[70,[4]],"/(app)/tournaments":[-72,[4,9]],"/(app)/tournaments/[tournamentId=uuid]":[-73,[4,9]],"/(app)/tournaments/[tournament_id]/join":[-74,[4,9]],"/unsubscribed":[-76]},_c={handleError:ky||(({error:e})=>{console.error(e)}),init:void 0,reroute:(()=>{}),transport:{}},Oy=Object.fromEntries(Object.entries(_c.transport).map(([e,t])=>[e,t.decode])),Ky=Object.fromEntries(Object.entries(_c.transport).map(([e,t])=>[e,t.encode])),Xy=!1,Jy=(e,t)=>Oy[e](t),Qy=()=>E(()=>import("../chunks/QfmlybyS.js"),[],import.meta.url).then(e=>e.default);export{Jy as decode,Oy as decoders,Yy as dictionary,Ky as encoders,Qy as get_error_template,Xy as hash,_c as hooks,qy as matchers,jy as nodes,Vy as root,Gy as server_loads}; 21//# sourceMappingURL=app.Bxu2NW7f.js.map
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.