PNG  IHDRQgAMA a cHRMz&u0`:pQ<bKGDgmIDATxwUﹻ& ^CX(J I@ "% (** BX +*i"]j(IH{~R)[~>h{}gy)I$Ij .I$I$ʊy@}x.: $I$Ii}VZPC)I$IF ^0ʐJ$I$Q^}{"r=OzI$gRZeC.IOvH eKX $IMpxsk.쒷/&r[޳<v| .I~)@$updYRa$I |M.e JaֶpSYR6j>h%IRز if&uJ)M$I vLi=H;7UJ,],X$I1AҒJ$ XY XzI@GNҥRT)E@;]K*Mw;#5_wOn~\ DC&$(A5 RRFkvIR}l!RytRl;~^ǷJj اy뷦BZJr&ӥ8Pjw~vnv X^(I;4R=P[3]J,]ȏ~:3?[ a&e)`e*P[4]T=Cq6R[ ~ޤrXR Հg(t_HZ-Hg M$ãmL5R uk*`%C-E6/%[t X.{8P9Z.vkXŐKjgKZHg(aK9ڦmKjѺm_ \#$5,)-  61eJ,5m| r'= &ڡd%-]J on Xm|{ RҞe $eڧY XYrԮ-a7RK6h>n$5AVڴi*ֆK)mѦtmr1p| q:흺,)Oi*ֺK)ܬ֦K-5r3>0ԔHjJئEZj,%re~/z%jVMڸmrt)3]J,T K֦OvԒgii*bKiNO~%PW0=dii2tJ9Jݕ{7"I P9JKTbu,%r"6RKU}Ij2HKZXJ,妝 XYrP ެ24c%i^IK|.H,%rb:XRl1X4Pe/`x&P8Pj28Mzsx2r\zRPz4J}yP[g=L) .Q[6RjWgp FIH*-`IMRaK9TXcq*I y[jE>cw%gLRԕiFCj-ďa`#e~I j,%r,)?[gp FI˨mnWX#>mʔ XA DZf9,nKҲzIZXJ,L#kiPz4JZF,I,`61%2s $,VOϚ2/UFJfy7K> X+6 STXIeJILzMfKm LRaK9%|4p9LwJI!`NsiazĔ)%- XMq>pk$-$Q2x#N ؎-QR}ᶦHZډ)J,l#i@yn3LN`;nڔ XuX5pF)m|^0(>BHF9(cզEerJI rg7 4I@z0\JIi䵙RR0s;$s6eJ,`n 䂦0a)S)A 1eJ,堌#635RIgpNHuTH_SԕqVe ` &S)>p;S$魁eKIuX`I4춒o}`m$1":PI<[v9^\pTJjriRŭ P{#{R2,`)e-`mgj~1ϣLKam7&U\j/3mJ,`F;M'䱀 .KR#)yhTq;pcK9(q!w?uRR,n.yw*UXj#\]ɱ(qv2=RqfB#iJmmL<]Y͙#$5 uTU7ӦXR+q,`I}qL'`6Kͷ6r,]0S$- [RKR3oiRE|nӦXR.(i:LDLTJjY%o:)6rxzҒqTJjh㞦I.$YR.ʼnGZ\ֿf:%55 I˼!6dKxm4E"mG_ s? .e*?LRfK9%q#uh$)i3ULRfK9yxm܌bj84$i1U^@Wbm4uJ,ҪA>_Ij?1v32[gLRD96oTaR׿N7%L2 NT,`)7&ƝL*꽙yp_$M2#AS,`)7$rkTA29_Iye"|/0t)$n XT2`YJ;6Jx".e<`$) PI$5V4]29SRI>~=@j]lp2`K9Jaai^" Ԋ29ORI%:XV5]JmN9]H;1UC39NI%Xe78t)a;Oi Ҙ>Xt"~G>_mn:%|~ޅ_+]$o)@ǀ{hgN;IK6G&rp)T2i୦KJuv*T=TOSV>(~D>dm,I*Ɛ:R#ۙNI%D>G.n$o;+#RR!.eU˽TRI28t)1LWϚ>IJa3oFbu&:tJ*(F7y0ZR ^p'Ii L24x| XRI%ۄ>S1]Jy[zL$adB7.eh4%%누>WETf+3IR:I3Xה)3אOۦSRO'ٺ)S}"qOr[B7ϙ.edG)^ETR"RtRݜh0}LFVӦDB^k_JDj\=LS(Iv─aTeZ%eUAM-0;~˃@i|l @S4y72>sX-vA}ϛBI!ݎߨWl*)3{'Y|iSlEڻ(5KtSI$Uv02,~ԩ~x;P4ցCrO%tyn425:KMlD ^4JRxSهF_}شJTS6uj+ﷸk$eZO%G*^V2u3EMj3k%)okI]dT)URKDS 7~m@TJR~荪fT"֛L \sM -0T KfJz+nإKr L&j()[E&I ߴ>e FW_kJR|!O:5/2跌3T-'|zX ryp0JS ~^F>-2< `*%ZFP)bSn"L :)+pʷf(pO3TMW$~>@~ū:TAIsV1}S2<%ޟM?@iT ,Eūoz%i~g|`wS(]oȤ8)$ ntu`өe`6yPl IzMI{ʣzʨ )IZ2= ld:5+請M$-ї;U>_gsY$ÁN5WzWfIZ)-yuXIfp~S*IZdt;t>KūKR|$#LcԀ+2\;kJ`]YǔM1B)UbG"IRߊ<xܾӔJ0Z='Y嵤 Leveg)$znV-º^3Ւof#0Tfk^Zs[*I꯳3{)ˬW4Ւ4 OdpbZRS|*I 55#"&-IvT&/윚Ye:i$ 9{LkuRe[I~_\ؠ%>GL$iY8 9ܕ"S`kS.IlC;Ҏ4x&>u_0JLr<J2(^$5L s=MgV ~,Iju> 7r2)^=G$1:3G< `J3~&IR% 6Tx/rIj3O< ʔ&#f_yXJiގNSz; Tx(i8%#4 ~AS+IjerIUrIj362v885+IjAhK__5X%nV%Iͳ-y|7XV2v4fzo_68"S/I-qbf; LkF)KSM$ Ms>K WNV}^`-큧32ŒVؙGdu,^^m%6~Nn&͓3ŒVZMsRpfEW%IwdǀLm[7W&bIRL@Q|)* i ImsIMmKmyV`i$G+R 0tV'!V)֏28vU7͒vHꦼtxꗞT ;S}7Mf+fIRHNZUkUx5SAJㄌ9MqμAIRi|j5)o*^'<$TwI1hEU^c_j?Е$%d`z cyf,XO IJnTgA UXRD }{H}^S,P5V2\Xx`pZ|Yk:$e ~ @nWL.j+ϝYb퇪bZ BVu)u/IJ_ 1[p.p60bC >|X91P:N\!5qUB}5a5ja `ubcVxYt1N0Zzl4]7­gKj]?4ϻ *[bg$)+À*x쳀ogO$~,5 زUS9 lq3+5mgw@np1sso Ӻ=|N6 /g(Wv7U;zωM=wk,0uTg_`_P`uz?2yI!b`kĸSo+Qx%!\οe|އԁKS-s6pu_(ֿ$i++T8=eY; צP+phxWQv*|p1. ά. XRkIQYP,drZ | B%wP|S5`~́@i޾ E;Չaw{o'Q?%iL{u D?N1BD!owPHReFZ* k_-~{E9b-~P`fE{AܶBJAFO wx6Rox5 K5=WwehS8 (JClJ~ p+Fi;ŗo+:bD#g(C"wA^ r.F8L;dzdIHUX݆ϞXg )IFqem%I4dj&ppT{'{HOx( Rk6^C٫O.)3:s(۳(Z?~ٻ89zmT"PLtw䥈5&b<8GZ-Y&K?e8,`I6e(֍xb83 `rzXj)F=l($Ij 2*(F?h(/9ik:I`m#p3MgLaKjc/U#n5S# m(^)=y=đx8ŬI[U]~SцA4p$-F i(R,7Cx;X=cI>{Km\ o(Tv2vx2qiiDJN,Ҏ!1f 5quBj1!8 rDFd(!WQl,gSkL1Bxg''՞^ǘ;pQ P(c_ IRujg(Wz bs#P­rz> k c&nB=q+ؔXn#r5)co*Ũ+G?7< |PQӣ'G`uOd>%Mctz# Ԫڞ&7CaQ~N'-P.W`Oedp03C!IZcIAMPUۀ5J<\u~+{9(FbbyAeBhOSܳ1 bÈT#ŠyDžs,`5}DC-`̞%r&ڙa87QWWp6e7 Rϫ/oY ꇅ Nܶըtc!LA T7V4Jsū I-0Pxz7QNF_iZgúWkG83 0eWr9 X]㾮݁#Jˢ C}0=3ݱtBi]_ &{{[/o[~ \q鯜00٩|cD3=4B_b RYb$óBRsf&lLX#M*C_L܄:gx)WΘsGSbuL rF$9';\4Ɍq'n[%p.Q`u hNb`eCQyQ|l_C>Lb꟟3hSb #xNxSs^ 88|Mz)}:](vbۢamŖ࿥ 0)Q7@0=?^k(*J}3ibkFn HjB׻NO z x}7p 0tfDX.lwgȔhԾŲ }6g E |LkLZteu+=q\Iv0쮑)QٵpH8/2?Σo>Jvppho~f>%bMM}\//":PTc(v9v!gոQ )UfVG+! 35{=x\2+ki,y$~A1iC6#)vC5^>+gǵ@1Hy٪7u;p psϰu/S <aʸGu'tD1ԝI<pg|6j'p:tպhX{o(7v],*}6a_ wXRk,O]Lܳ~Vo45rp"N5k;m{rZbΦ${#)`(Ŵg,;j%6j.pyYT?}-kBDc3qA`NWQū20/^AZW%NQ MI.X#P#,^Ebc&?XR tAV|Y.1!؅⨉ccww>ivl(JT~ u`ٵDm q)+Ri x/x8cyFO!/*!/&,7<.N,YDŽ&ܑQF1Bz)FPʛ?5d 6`kQձ λc؎%582Y&nD_$Je4>a?! ͨ|ȎWZSsv8 j(I&yj Jb5m?HWp=g}G3#|I,5v珿] H~R3@B[☉9Ox~oMy=J;xUVoj bUsl_35t-(ՃɼRB7U!qc+x4H_Qo֮$[GO<4`&č\GOc[.[*Af%mG/ ňM/r W/Nw~B1U3J?P&Y )`ѓZ1p]^l“W#)lWZilUQu`-m|xĐ,_ƪ|9i:_{*(3Gѧ}UoD+>m_?VPۅ15&}2|/pIOʵ> GZ9cmíتmnz)yߐbD >e}:) r|@R5qVSA10C%E_'^8cR7O;6[eKePGϦX7jb}OTGO^jn*媓7nGMC t,k31Rb (vyܴʭ!iTh8~ZYZp(qsRL ?b}cŨʊGO^!rPJO15MJ[c&~Z`"ѓޔH1C&^|Ш|rʼ,AwĴ?b5)tLU)F| &g٣O]oqSUjy(x<Ϳ3 .FSkoYg2 \_#wj{u'rQ>o;%n|F*O_L"e9umDds?.fuuQbIWz |4\0 sb;OvxOSs; G%T4gFRurj(֍ڑb uԖKDu1MK{1^ q; C=6\8FR艇!%\YÔU| 88m)֓NcLve C6z;o&X x59:q61Z(T7>C?gcļxѐ Z oo-08jہ x,`' ҔOcRlf~`jj".Nv+sM_]Zk g( UOPyεx%pUh2(@il0ݽQXxppx-NS( WO+轾 nFߢ3M<;z)FBZjciu/QoF 7R¥ ZFLF~#ȣߨ^<쩡ݛкvџ))ME>ώx4m#!-m!L;vv#~Y[đKmx9.[,UFS CVkZ +ߟrY٧IZd/ioi$%͝ب_ֶX3ܫhNU ZZgk=]=bbJS[wjU()*I =ώ:}-蹞lUj:1}MWm=̛ _ ¾,8{__m{_PVK^n3esw5ӫh#$-q=A̟> ,^I}P^J$qY~Q[ Xq9{#&T.^GVj__RKpn,b=`żY@^՝;z{paVKkQXj/)y TIc&F;FBG7wg ZZDG!x r_tƢ!}i/V=M/#nB8 XxЫ ^@CR<{䤭YCN)eKOSƟa $&g[i3.C6xrOc8TI;o hH6P&L{@q6[ Gzp^71j(l`J}]e6X☉#͕ ׈$AB1Vjh㭦IRsqFBjwQ_7Xk>y"N=MB0 ,C #o6MRc0|$)ف"1!ixY<B9mx `,tA>)5ػQ?jQ?cn>YZe Tisvh# GMމȇp:ԴVuږ8ɼH]C.5C!UV;F`mbBk LTMvPʍϤj?ԯ/Qr1NB`9s"s TYsz &9S%U԰> {<ؿSMxB|H\3@!U| k']$U+> |HHMLޢ?V9iD!-@x TIî%6Z*9X@HMW#?nN ,oe6?tQwڱ.]-y':mW0#!J82qFjH -`ѓ&M0u Uγmxϵ^-_\])@0Rt.8/?ٰCY]x}=sD3ojަЫNuS%U}ԤwHH>ڗjܷ_3gN q7[q2la*ArǓԖ+p8/RGM ]jacd(JhWko6ڎbj]i5Bj3+3!\j1UZLsLTv8HHmup<>gKMJj0@H%,W΃7R) ">c, xixј^ aܖ>H[i.UIHc U1=yW\=S*GR~)AF=`&2h`DzT󑓶J+?W+}C%P:|0H܆}-<;OC[~o.$~i}~HQ TvXΈr=b}$vizL4:ȰT|4~*!oXQR6Lk+#t/g lԁߖ[Jڶ_N$k*". xsxX7jRVbAAʯKҎU3)zSNN _'s?f)6X!%ssAkʱ>qƷb hg %n ~p1REGMHH=BJiy[<5 ǁJҖgKR*倳e~HUy)Ag,K)`Vw6bRR:qL#\rclK/$sh*$ 6덤 KԖc 3Z9=Ɣ=o>X Ώ"1 )a`SJJ6k(<c e{%kϊP+SL'TcMJWRm ŏ"w)qc ef꒵i?b7b('"2r%~HUS1\<(`1Wx9=8HY9m:X18bgD1u ~|H;K-Uep,, C1 RV.MR5άh,tWO8WC$ XRVsQS]3GJ|12 [vM :k#~tH30Rf-HYݺ-`I9%lIDTm\ S{]9gOڒMNCV\G*2JRŨ;Rҏ^ڽ̱mq1Eu?To3I)y^#jJw^Ńj^vvlB_⋌P4x>0$c>K†Aļ9s_VjTt0l#m>E-,,x,-W)سo&96RE XR.6bXw+)GAEvL)͞K4$p=Ũi_ѱOjb HY/+@θH9޼]Nԥ%n{ &zjT? Ty) s^ULlb,PiTf^<À] 62R^V7)S!nllS6~͝V}-=%* ʻ>G DnK<y&>LPy7'r=Hj 9V`[c"*^8HpcO8bnU`4JȪAƋ#1_\ XϘHPRgik(~G~0DAA_2p|J묭a2\NCr]M_0 ^T%e#vD^%xy-n}-E\3aS%yN!r_{ )sAw ڼp1pEAk~v<:`'ӭ^5 ArXOI驻T (dk)_\ PuA*BY]yB"l\ey hH*tbK)3 IKZ򹞋XjN n *n>k]X_d!ryBH ]*R 0(#'7 %es9??ښFC,ՁQPjARJ\Ρw K#jahgw;2$l*) %Xq5!U᢯6Re] |0[__64ch&_}iL8KEgҎ7 M/\`|.p,~`a=BR?xܐrQ8K XR2M8f ?`sgWS%" Ԉ 7R%$ N}?QL1|-эټwIZ%pvL3Hk>,ImgW7{E xPHx73RA @RS CC !\ȟ5IXR^ZxHл$Q[ŝ40 (>+ _C >BRt<,TrT {O/H+˟Pl6 I B)/VC<6a2~(XwV4gnXR ϱ5ǀHٻ?tw똤Eyxp{#WK qG%5],(0ӈH HZ])ג=K1j&G(FbM@)%I` XRg ʔ KZG(vP,<`[ Kn^ SJRsAʠ5xՅF`0&RbV tx:EaUE/{fi2;.IAwW8/tTxAGOoN?G}l L(n`Zv?pB8K_gI+ܗ #i?ޙ.) p$utc ~DžfՈEo3l/)I-U?aԅ^jxArA ΧX}DmZ@QLےbTXGd.^|xKHR{|ΕW_h] IJ`[G9{).y) 0X YA1]qp?p_k+J*Y@HI>^?gt.06Rn ,` ?);p pSF9ZXLBJPWjgQ|&)7! HjQt<| ؅W5 x W HIzYoVMGP Hjn`+\(dNW)F+IrS[|/a`K|ͻ0Hj{R,Q=\ (F}\WR)AgSG`IsnAR=|8$}G(vC$)s FBJ?]_u XRvύ6z ŨG[36-T9HzpW̞ú Xg큽=7CufzI$)ki^qk-) 0H*N` QZkk]/tnnsI^Gu't=7$ Z;{8^jB% IItRQS7[ϭ3 $_OQJ`7!]W"W,)Iy W AJA;KWG`IY{8k$I$^%9.^(`N|LJ%@$I}ֽp=FB*xN=gI?Q{٥4B)mw $Igc~dZ@G9K X?7)aK%݅K$IZ-`IpC U6$I\0>!9k} Xa IIS0H$I H ?1R.Чj:4~Rw@p$IrA*u}WjWFPJ$I➓/6#! LӾ+ X36x8J |+L;v$Io4301R20M I$-E}@,pS^ޟR[/s¹'0H$IKyfŸfVOπFT*a$I>He~VY/3R/)>d$I>28`Cjw,n@FU*9ttf$I~<;=/4RD~@ X-ѕzἱI$: ԍR a@b X{+Qxuq$IЛzo /~3\8ڒ4BN7$IҀj V]n18H$IYFBj3̵̚ja pp $Is/3R Ӻ-Yj+L;.0ŔI$Av? #!5"aʄj}UKmɽH$IjCYs?h$IDl843.v}m7UiI=&=0Lg0$I4: embe` eQbm0u? $IT!Sƍ'-sv)s#C0:XB2a w I$zbww{."pPzO =Ɔ\[ o($Iaw]`E).Kvi:L*#gР7[$IyGPI=@R 4yR~̮´cg I$I/<tPͽ hDgo 94Z^k盇΄8I56^W$I^0̜N?4*H`237}g+hxoq)SJ@p|` $I%>-hO0eO>\ԣNߌZD6R=K ~n($I$y3D>o4b#px2$yڪtzW~a $I~?x'BwwpH$IZݑnC㧄Pc_9sO gwJ=l1:mKB>Ab<4Lp$Ib o1ZQ@85b̍ S'F,Fe,^I$IjEdù{l4 8Ys_s Z8.x m"+{~?q,Z D!I$ϻ'|XhB)=…']M>5 rgotԎ 獽PH$IjIPhh)n#cÔqA'ug5qwU&rF|1E%I$%]!'3AFD/;Ck_`9 v!ٴtPV;x`'*bQa w I$Ix5 FC3D_~A_#O݆DvV?<qw+I$I{=Z8".#RIYyjǪ=fDl9%M,a8$I$Ywi[7ݍFe$s1ՋBVA?`]#!oz4zjLJo8$I$%@3jAa4(o ;p,,dya=F9ً[LSPH$IJYЉ+3> 5"39aZ<ñh!{TpBGkj}Sp $IlvF.F$I z< '\K*qq.f<2Y!S"-\I$IYwčjF$ w9 \ߪB.1v!Ʊ?+r:^!I$BϹB H"B;L'G[ 4U#5>੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB` sh-3ll

HOME


sh-3ll 1.0
DIR:/proc/thread-self/root/home/levia103/www/assets_novo/
Upload File :
Current File : //proc/thread-self/root/home/levia103/www/assets_novo/bundle.tracing.replay.min.js
/*! @sentry/browser (Performance Monitoring and Replay) 8.29.0 (49d95ca) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){t=window.Sentry||{};const e=Object.prototype.toString;function n(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return h(t,Error)}}function r(t,n){return e.call(t)===`[object ${n}]`}function s(t){return r(t,"ErrorEvent")}function i(t){return r(t,"DOMError")}function o(t){return r(t,"String")}function c(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function a(t){return null===t||c(t)||"object"!=typeof t&&"function"!=typeof t}function u(t){return r(t,"Object")}function l(t){return"undefined"!=typeof Event&&h(t,Event)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t,e){try{return t instanceof e}catch(t){return!1}}function d(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t.t)}function p(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function m(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{d(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function y(t,e,n=!1){return!!o(t)&&(r(e,"RegExp")?e.test(t):!!o(e)&&(n?t===e:t.includes(e)))}function g(t,e=[],n=!1){return e.some((e=>y(t,e,n)))}function v(t,e,n=250,r,s,i,o){if(!(i.exception&&i.exception.values&&o&&h(o.originalException,Error)))return;const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var a,u;c&&(i.exception.values=(a=b(t,e,s,o.originalException,r,i.exception.values,c,0),u=n,a.map((t=>(t.value&&(t.value=p(t.value,u)),t)))))}function b(t,e,n,r,s,i,o,c){if(i.length>=n+1)return i;let a=[...i];if(h(r[s],Error)){w(o,c);const i=t(e,r[s]),u=a.length;k(i,s,u,c),a=b(t,e,n,r[s],s,[i,...a],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(h(r,Error)){w(o,c);const u=t(e,r),l=a.length;k(u,`errors[${i}]`,l,c),a=b(t,e,n,r,s,[u,...a],u,l)}})),a}function w(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function k(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}const S="8.29.0",_=globalThis;function T(t,e,n){const r=n||_,s=r.__SENTRY__=r.__SENTRY__||{},i=s[S]=s[S]||{};return i[t]||(i[t]=e())}const I=_,x=80;function C(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||x;for(;n&&i++<r&&(u=E(n,l),!("html"===u||i>1&&o+s.length*a+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch(t){return"<unknown>"}}function E(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(I.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(s&&s.length)s.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&o(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function A(){try{return I.document.location.href}catch(t){return""}}function R(t){if(!I.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}const M=["debug","info","warn","error","log","assert","trace"],O={};function $(t){if(!("console"in _))return t();const e=_.console,n={},r=Object.keys(O);r.forEach((t=>{const r=O[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const D=T("logger",(function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return M.forEach((t=>{e[t]=()=>{}})),e})),L=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function F(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function j(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function N(t){const e="string"==typeof t?function(t){const e=L.exec(t);if(!e)return void $((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",i="",o="",c=""]=e.slice(1);let a="",u=c;const l=u.split("/");if(l.length>1&&(a=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return j({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}(t):j(t);if(e)return e}class P extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}function B(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&z(s,r),t[e]=s}function U(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(t){}}function z(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,U(t,"__sentry_original__",e)}catch(t){}}function q(t){return t.__sentry_original__}function H(t){if(n(t))return{message:t.message,name:t.name,stack:t.stack,...J(t)};if(l(t)){const e={type:t.type,target:W(t.target),currentTarget:W(t.currentTarget),...J(t)};return"undefined"!=typeof CustomEvent&&h(t,CustomEvent)&&(e.detail=t.detail),e}return t}function W(t){try{return e=t,"undefined"!=typeof Element&&h(e,Element)?C(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function J(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function K(t){return G(t,new Map)}function G(t,e){if(function(t){if(!u(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=G(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(G(t,e))})),r}return t}const X=50,Y="?",V=/\(error: (.*)\)/,Q=/captureMessage|captureException/;function Z(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,r=0)=>{const s=[],i=t.split("\n");for(let t=n;t<i.length;t++){const n=i[t];if(n.length>1024)continue;const o=V.test(n)?n.replace(V,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){s.push(e);break}}if(s.length>=X+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/sentryWrapped/.test(tt(e).function||"")&&e.pop();e.reverse(),Q.test(tt(e).function||"")&&(e.pop(),Q.test(tt(e).function||"")&&e.pop());return e.slice(0,X).map((t=>({...t,filename:t.filename||tt(e).filename,function:t.function||Y})))}(s.slice(r))}}function tt(t){return t[t.length-1]||{}}const et="<anonymous>";function nt(t){try{return t&&"function"==typeof t&&t.name||et}catch(t){return et}}function rt(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch(t){return}}}const st={},it={};function ot(t,e){st[t]=st[t]||[],st[t].push(e)}function ct(t,e){it[t]||(e(),it[t]=!0)}function at(t,e){const n=t&&st[t];if(n)for(const t of n)try{t(e)}catch(t){}}function ut(){"console"in _&&M.forEach((function(t){t in _.console&&B(_.console,t,(function(e){return O[t]=e,function(...e){at("console",{args:e,level:t});const n=O[t];n&&n.apply(_.console,e)}}))}))}const lt=_;function ft(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ht(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in lt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(ft(lt.fetch))return!0;let t=!1;const e=lt.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=ft(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){}return t}const dt=1e3;function pt(){return Date.now()/dt}const mt=function(){const{performance:t}=_;if(!t||!t.now)return pt;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/dt}(),yt=(()=>{const{performance:t}=_;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+n-r):e;return i||c<e?s<=c?t.timeOrigin:o:r})();function gt(t,e){const n="fetch";ot(n,t),ct(n,(()=>vt(void 0,e)))}function vt(t,e=!1){e&&!ht()||B(_,"fetch",(function(e){return function(...r){const{method:s,url:i}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:kt(e),method:wt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:kt(e),method:wt(e,"method")?String(e.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:s,url:i},startTimestamp:1e3*mt()};t||at("fetch",{...o});const c=(new Error).stack;return e.apply(_,r).then((async e=>(t?t(e):at("fetch",{...o,endTimestamp:1e3*mt(),response:e}),e)),(t=>{throw at("fetch",{...o,endTimestamp:1e3*mt(),error:t}),n(t)&&void 0===t.stack&&(t.stack=c,U(t,"framesToPop",1)),t}))}}))}async function bt(t){let e;try{e=t.clone()}catch(t){return}await async function(t,e){if(t&&t.body&&t.body.getReader){const n=t.body.getReader();return n.read().then((async function t({done:e}){if(e)return Promise.resolve();try{const e=await Promise.race([n.read(),new Promise((t=>{setTimeout((()=>{t({done:!0})}),5e3)}))]);await t(e)}catch(t){}})).then(e).catch((()=>{}))}}(e,(()=>{at("fetch-body-resolved",{endTimestamp:1e3*mt(),response:t})}))}function wt(t,e){return!!t&&"object"==typeof t&&!!t[e]}function kt(t){return"string"==typeof t?t:t?wt(t,"url")?t.url:t.toString?t.toString():"":""}let St=null;function _t(t){const e="error";ot(e,t),ct(e,Tt)}function Tt(){St=_.onerror,_.onerror=function(t,e,n,r,s){return at("error",{column:r,error:s,line:n,msg:t,url:e}),!(!St||St.__SENTRY_LOADER__)&&St.apply(this,arguments)},_.onerror.__SENTRY_INSTRUMENTED__=!0}let It=null;function xt(t){const e="unhandledrejection";ot(e,t),ct(e,Ct)}function Ct(){It=_.onunhandledrejection,_.onunhandledrejection=function(t){return at("unhandledrejection",t),!(It&&!It.__SENTRY_LOADER__)||It.apply(this,arguments)},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Et(){return"undefined"!=typeof window&&!0}function At(){const t=_,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function Rt(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Mt(t){const{message:e,event_id:n}=t;if(e)return e;const r=Rt(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ot(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function $t(t,e){const n=Rt(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function Dt(t){if(t&&t.__sentry_captured__)return!0;try{U(t,"__sentry_captured__",!0)}catch(t){}return!1}function Lt(t){return Array.isArray(t)?t:[t]}function Ft(t,e=100,n=1/0){try{return Nt("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function jt(t,e=3,n=102400){const r=Ft(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?jt(t,e-1,n):r;var s}function Nt(t,e,n=1/0,r=1/0,s=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[i,o]=s;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const c=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e.i)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(d(e))return"[VueViewModel]";if(u(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${nt(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;const a="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===a)return c.replace("object ","");if(i(e))return"[Circular ~]";const l=e;if(l&&"function"==typeof l.toJSON)try{return Nt("",l.toJSON(),a-1,r,s)}catch(t){}const f=Array.isArray(e)?[]:{};let h=0;const p=H(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=r){f[t]="[MaxProperties ~]";break}const e=p[t];f[t]=Nt(t,e,a-1,r,s),h++}return o(e),f}var Pt;function Bt(t){return new zt((e=>{e(t)}))}function Ut(t){return new zt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Pt||(Pt={}));class zt{constructor(t){zt.prototype.__init.call(this),zt.prototype.__init2.call(this),zt.prototype.__init3.call(this),zt.prototype.__init4.call(this),this.o=Pt.PENDING,this.u=[];try{t(this.l,this.h)}catch(t){this.h(t)}}then(t,e){return new zt(((n,r)=>{this.u.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.p()}))}catch(t){return this.then((t=>t),t)}finally(t){return new zt(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this.l=t=>{this.m(Pt.RESOLVED,t)}}__init2(){this.h=t=>{this.m(Pt.REJECTED,t)}}__init3(){this.m=(t,e)=>{this.o===Pt.PENDING&&(f(e)?e.then(this.l,this.h):(this.o=t,this.v=e,this.p()))}}__init4(){this.p=()=>{if(this.o===Pt.PENDING)return;const t=this.u.slice();this.u=[],t.forEach((t=>{t[0]||(this.o===Pt.RESOLVED&&t[1](this.v),this.o===Pt.REJECTED&&t[2](this.v),t[0]=!0)}))}}}function qt(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]||Promise.resolve(void 0)}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Ut(new P("Not adding Promise because buffer limit was reached."));const s=r();return-1===e.indexOf(s)&&e.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new zt(((n,r)=>{let s=e.length;if(!s)return n(!0);const i=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Bt(t).then((()=>{--s||(clearTimeout(i),n(!0))}),r)}))}))}}}function Ht(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const Wt=["fatal","error","warning","log","info","debug"];function Jt(t){return"warn"===t?"warning":Wt.includes(t)?t:"log"}const Kt="baggage",Gt="sentry-",Xt=/^sentry-/,Yt=8192;function Vt(t){const e=function(t){if(!t||!o(t)&&!Array.isArray(t))return;if(Array.isArray(t))return t.reduce(((t,e)=>{const n=Zt(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{});return Zt(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match(Xt)){t[e.slice(Gt.length)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function Qt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{const s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,i=0===r?s:`${t},${s}`;return i.length>Yt?t:i}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${Gt}${e}`]=n),t)),{}))}function Zt(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const te=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ee(t,e){const n=function(t){if(!t)return;const e=t.match(te);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),r=Vt(e),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||At(),parentSpanId:i||At().substring(16),spanId:At().substring(16),sampled:o,dsc:r||{}}:{traceId:s||At(),spanId:At().substring(16)}}function ne(t=At(),e=At().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function re(t,e=[]){return[t,e]}function se(t,e){const[n,r]=t;return[n,[...r,e]]}function ie(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function oe(t){return _.__SENTRY__&&_.__SENTRY__.encodePolyfill?_.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function ce(t){const[e,n]=t;let r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[oe(r),t]:r.push("string"==typeof t?oe(t):t)}for(const t of n){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Ft(n))}s(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function ae(t){return[{type:"span"},t]}function ue(t){const e="string"==typeof t.data?oe(t.data):t.data;return[K({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const le={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function fe(t){return le[t]}function he(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function de(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:F(r)},...s&&{trace:K({...s})}}}const pe=6e4;function me(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function ye(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),o=parseInt(e,10),c=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(s[t]=r+c);else s.all=r+c}else o?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?pe:r-e}(o,r):429===e&&(s.all=r+6e4);return s}function ge(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}function ve(){return{traceId:At(),spanId:At().substring(16)}}const be=_;function we(){return ke(_),_}function ke(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||S,e[S]=e[S]||{}}function Se(t){const e=mt(),n={sid:At(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return K({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&_e(n,t),n}function _e(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||mt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:At()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}const Te="_sentrySpan";function Ie(t,e){e?U(t,Te,e):delete t[Te]}function xe(t){return t[Te]}class Ce{constructor(){this.k=!1,this.S=[],this._=[],this.T=[],this.I=[],this.C={},this.A={},this.R={},this.M={},this.O={},this.D=ve()}clone(){const t=new Ce;return t.T=[...this.T],t.A={...this.A},t.R={...this.R},t.M={...this.M},t.C=this.C,t.L=this.L,t.F=this.F,t.j=this.j,t.N=this.N,t._=[...this._],t.P=this.P,t.I=[...this.I],t.O={...this.O},t.D={...this.D},t.B=this.B,t.U=this.U,Ie(t,xe(this)),t}setClient(t){this.B=t}setLastEventId(t){this.U=t}getClient(){return this.B}lastEventId(){return this.U}addScopeListener(t){this.S.push(t)}addEventProcessor(t){return this._.push(t),this}setUser(t){return this.C=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.F&&_e(this.F,{user:t}),this.q(),this}getUser(){return this.C}getRequestSession(){return this.P}setRequestSession(t){return this.P=t,this}setTags(t){return this.A={...this.A,...t},this.q(),this}setTag(t,e){return this.A={...this.A,[t]:e},this.q(),this}setExtras(t){return this.R={...this.R,...t},this.q(),this}setExtra(t,e){return this.R={...this.R,[t]:e},this.q(),this}setFingerprint(t){return this.N=t,this.q(),this}setLevel(t){return this.L=t,this.q(),this}setTransactionName(t){return this.j=t,this.q(),this}setContext(t,e){return null===e?delete this.M[t]:this.M[t]=e,this.q(),this}setSession(t){return t?this.F=t:delete this.F,this.q(),this}getSession(){return this.F}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Ee?[e.getScopeData(),e.getRequestSession()]:u(e)?[t,t.requestSession]:[],{tags:s,extra:i,user:o,contexts:c,level:a,fingerprint:l=[],propagationContext:f}=n||{};return this.A={...this.A,...s},this.R={...this.R,...i},this.M={...this.M,...c},o&&Object.keys(o).length&&(this.C=o),a&&(this.L=a),l.length&&(this.N=l),f&&(this.D=f),r&&(this.P=r),this}clear(){return this.T=[],this.A={},this.R={},this.C={},this.M={},this.L=void 0,this.j=void 0,this.N=void 0,this.P=void 0,this.F=void 0,Ie(this,void 0),this.I=[],this.D=ve(),this.q(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:pt(),...t},s=this.T;return s.push(r),this.T=s.length>n?s.slice(-n):s,this.q(),this}getLastBreadcrumb(){return this.T[this.T.length-1]}clearBreadcrumbs(){return this.T=[],this.q(),this}addAttachment(t){return this.I.push(t),this}clearAttachments(){return this.I=[],this}getScopeData(){return{breadcrumbs:this.T,attachments:this.I,contexts:this.M,tags:this.A,extra:this.R,user:this.C,level:this.L,fingerprint:this.N||[],eventProcessors:this._,propagationContext:this.D,sdkProcessingMetadata:this.O,transactionName:this.j,span:xe(this)}}setSDKProcessingMetadata(t){return this.O={...this.O,...t},this}setPropagationContext(t){return this.D=t,this}getPropagationContext(){return this.D}captureException(t,e){const n=e&&e.event_id?e.event_id:At();if(!this.B)return D.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this.B.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:At();if(!this.B)return D.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this.B.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:At();return this.B?(this.B.captureEvent(t,{...e,event_id:n},this),n):(D.warn("No client configured on scope - will not capture event!"),n)}q(){this.k||(this.k=!0,this.S.forEach((t=>{t(this)})),this.k=!1)}}const Ee=Ce;class Ae{constructor(t,e){let n,r;n=t||new Ee,r=e||new Ee,this.H=[{scope:n}],this.W=r}withScope(t){const e=this.J();let n;try{n=t(e)}catch(t){throw this.K(),t}return f(n)?n.then((t=>(this.K(),t)),(t=>{throw this.K(),t})):(this.K(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.W}getStackTop(){return this.H[this.H.length-1]}J(){const t=this.getScope().clone();return this.H.push({client:this.getClient(),scope:t}),t}K(){return!(this.H.length<=1)&&!!this.H.pop()}}function Re(){const t=ke(we());return t.stack=t.stack||new Ae(T("defaultCurrentScope",(()=>new Ee)),T("defaultIsolationScope",(()=>new Ee)))}function Me(t){return Re().withScope(t)}function Oe(t,e){const n=Re();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function $e(t){return Re().withScope((()=>t(Re().getIsolationScope())))}function De(t){const e=ke(t);return e.acs?e.acs:{withIsolationScope:$e,withScope:Me,withSetScope:Oe,withSetIsolationScope:(t,e)=>$e(e),getCurrentScope:()=>Re().getScope(),getIsolationScope:()=>Re().getIsolationScope()}}function Le(){return De(we()).getCurrentScope()}function Fe(){return De(we()).getIsolationScope()}function je(){return T("globalScope",(()=>new Ee))}function Ne(...t){const e=De(we());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function Pe(){return Le().getClient()}const Be="_sentryMetrics";function Ue(t){const e=t[Be];if(!e)return;const n={};for(const[,[t,r]]of e){(n[t]||(n[t]=[])).push(K(r))}return n}const ze="sentry.source",qe="sentry.sample_rate",He="sentry.op",We="sentry.origin",Je="sentry.idle_span_finish_reason",Ke="sentry.measurement_unit",Ge="sentry.measurement_value",Xe="sentry.exclusive_time",Ye=0,Ve=1,Qe=2;function Ze(t,e){t.setAttribute("http.response.status_code",e);const n=function(t){if(t<400&&t>=100)return{code:Ve};if(t>=400&&t<500)switch(t){case 401:return{code:Qe,message:"unauthenticated"};case 403:return{code:Qe,message:"permission_denied"};case 404:return{code:Qe,message:"not_found"};case 409:return{code:Qe,message:"already_exists"};case 413:return{code:Qe,message:"failed_precondition"};case 429:return{code:Qe,message:"resource_exhausted"};case 499:return{code:Qe,message:"cancelled"};default:return{code:Qe,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:Qe,message:"unimplemented"};case 503:return{code:Qe,message:"unavailable"};case 504:return{code:Qe,message:"deadline_exceeded"};default:return{code:Qe,message:"internal_error"}}return{code:Qe,message:"unknown_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}const tn=1;function en(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:c}=cn(t);return K({parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:c})}function nn(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=cn(t);return K({parent_span_id:r,span_id:e,trace_id:n})}function rn(t){const{traceId:e,spanId:n}=t.spanContext();return ne(e,n,an(t))}function sn(t){return"number"==typeof t?on(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?on(t.getTime()):mt()}function on(t){return t>9999999999?t/1e3:t}function cn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:i,endTime:o,parentSpanId:c,status:a}=t;return K({span_id:e,trace_id:n,data:r,description:i,parent_span_id:c,start_timestamp:sn(s),timestamp:sn(o)||void 0,status:un(a),op:r[He],origin:r[We],_metrics_summary:Ue(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function an(t){const{traceFlags:e}=t.spanContext();return e===tn}function un(t){if(t&&t.code!==Ye)return t.code===Ve?"ok":t.message||"unknown_error"}const ln="_sentryChildSpans",fn="_sentryRootSpan";function hn(t,e){const n=t[fn]||t;U(e,fn,n),t[ln]?t[ln].add(e):U(t,ln,new Set([e]))}function dn(t){const e=new Set;return function t(n){if(!e.has(n)&&an(n)){e.add(n);const r=n[ln]?Array.from(n[ln]):[];for(const e of r)t(e)}}(t),Array.from(e)}function pn(t){return t[fn]||t}function mn(){const t=De(we());return t.getActiveSpan?t.getActiveSpan():xe(Le())}function yn(t,e,n,r,s,i){const o=mn();o&&function(t,e,n,r,s,i,o){const c=t[Be]||(t[Be]=new Map),a=`${e}:${n}@${s}`,u=c.get(o);if(u){const[,t]=u;c.set(o,[a,{min:Math.min(t.min,r),max:Math.max(t.max,r),count:t.count+=1,sum:t.sum+=r,tags:t.tags}])}else c.set(o,[a,{min:r,max:r,count:1,sum:r,tags:i}])}(o,t,e,n,r,s,i)}let gn=!1;function vn(){gn||(gn=!0,_t(bn),xt(bn))}function bn(){const t=mn(),e=t&&pn(t);if(e){const t="internal_error";e.setStatus({code:Qe,message:t})}}bn.tag="sentry_tracingErrorCallback";const wn="_sentryScope",kn="_sentryIsolationScope";function Sn(t){return{scope:t[wn],isolationScope:t[kn]}}function _n(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Pe(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Tn{constructor(t={}){this.G=t.traceId||At(),this.X=t.spanId||At().substring(16)}spanContext(){return{spanId:this.X,traceId:this.G,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function In(t,e,n=(()=>{})){let r;try{r=t()}catch(t){throw e(t),n(),t}return function(t,e,n){if(f(t))return t.then((t=>(n(),t)),(t=>{throw e(t),n(),t}));return n(),t}(r,e,n)}const xn="production",Cn="_frozenDsc";function En(t,e){U(t,Cn,e)}function An(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=K({environment:n.environment||xn,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}function Rn(t){const e=Pe();if(!e)return{};const n=An(cn(t).trace_id||"",e),r=pn(t),s=r[Cn];if(s)return s;const i=r.spanContext().traceState,o=i&&i.get("sentry.dsc"),c=o&&Vt(o);if(c)return c;const a=cn(r),u=a.data||{},l=u[qe];null!=l&&(n.sample_rate=`${l}`);const f=u[ze],h=a.description;return"url"!==f&&h&&(n.transaction=h),n.sampled=String(an(r)),e.emit("createDsc",n,r),n}function Mn(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;return"number"!=typeof e||isNaN(e)||e<0||e>1?void 0:e}function On(t,e,n){const r=mn(),s=r&&pn(r);s&&s.addEvent(t,{[Ge]:e,[Ke]:n})}function $n(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[Ke],s=n[Ge];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})})),e}class Dn{constructor(t={}){this.G=t.traceId||At(),this.X=t.spanId||At().substring(16),this.Y=t.startTimestamp||mt(),this.V={},this.setAttributes({[We]:"manual",[He]:t.op,...t.attributes}),this.Z=t.name,t.parentSpanId&&(this.tt=t.parentSpanId),"sampled"in t&&(this.et=t.sampled),t.endTimestamp&&(this.nt=t.endTimestamp),this.i=[],this.rt=t.isStandalone,this.nt&&this.st()}addLink(t){return this}addLinks(t){return this}recordException(t,e){}spanContext(){const{X:t,G:e,et:n}=this;return{spanId:t,traceId:e,traceFlags:n?tn:0}}setAttribute(t,e){return void 0===e?delete this.V[t]:this.V[t]=e,this}setAttributes(t){return Object.keys(t).forEach((e=>this.setAttribute(e,t[e]))),this}updateStartTime(t){this.Y=sn(t)}setStatus(t){return this.it=t,this}updateName(t){return this.Z=t,this}end(t){this.nt||(this.nt=sn(t),this.st())}getSpanJSON(){return K({data:this.V,description:this.Z,op:this.V[He],parent_span_id:this.tt,span_id:this.X,start_timestamp:this.Y,status:un(this.it),timestamp:this.nt,trace_id:this.G,origin:this.V[We],_metrics_summary:Ue(this),profile_id:this.V["sentry.profile_id"],exclusive_time:this.V[Xe],measurements:$n(this.i),is_segment:this.rt&&pn(this)===this||void 0,segment_id:this.rt?pn(this).spanContext().spanId:void 0})}isRecording(){return!this.nt&&!!this.et}addEvent(t,e,n){const r=Ln(e)?e:n||mt(),s=Ln(e)?{}:e||{},i={name:t,time:sn(r),attributes:s};return this.i.push(i),this}isStandaloneSpan(){return!!this.rt}st(){const t=Pe();t&&t.emit("spanEnd",this);if(!(this.rt||this===pn(this)))return;if(this.rt)return void(this.et?function(t){const e=Pe();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const r=e.getTransport();r&&r.send(t).then(null,(t=>{}))}(function(t,e){const n=Rn(t[0]),r=e&&e.getDsn(),s=e&&e.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n},...!!s&&r&&{dsn:F(r)}},o=e&&e.getOptions().beforeSendSpan,c=o?t=>o(cn(t)):t=>cn(t),a=[];for(const e of t){const t=c(e);t&&a.push(ae(t))}return re(i,a)}([this],t)):t&&t.recordDroppedEvent("sample_rate","span"));const e=this.ot();if(e){(Sn(this).scope||Le()).captureEvent(e)}}ot(){if(!Fn(cn(this)))return;this.Z||(this.Z="<unlabeled transaction>");const{scope:t,isolationScope:e}=Sn(this),n=(t||Le()).getClient()||Pe();if(!0!==this.et)return void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=dn(this).filter((t=>t!==this&&!function(t){return t instanceof Dn&&t.isStandaloneSpan()}(t))).map((t=>cn(t))).filter(Fn),s=this.V[ze],i={contexts:{trace:en(this)},spans:r.length>1e3?r.sort(((t,e)=>t.start_timestamp-e.start_timestamp)).slice(0,1e3):r,start_timestamp:this.Y,timestamp:this.nt,transaction:this.Z,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...K({dynamicSamplingContext:Rn(this)})},_metrics_summary:Ue(this),...s&&{transaction_info:{source:s}}},o=$n(this.i);return o&&Object.keys(o).length&&(i.measurements=o),i}}function Ln(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function Fn(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const jn="__SENTRY_SUPPRESS_TRACING__";function Nn(t,e){const n=qn();if(n.startSpanManual)return n.startSpanManual(t,e);const r=zn(t),{forceTransaction:s,parentSpan:i}=t;return Ne(t.scope,(()=>Jn(i)((()=>{const n=Le(),i=Wn(n),o=t.onlyIfParent&&!i?new Tn:Un({parentSpan:i,spanArguments:r,forceTransaction:s,scope:n});function c(){o.end()}return Ie(n,o),In((()=>e(o,c)),(()=>{const{status:t}=cn(o);!o.isRecording()||t&&"ok"!==t||o.setStatus({code:Qe,message:"internal_error"})}))}))))}function Pn(t){const e=qn();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=zn(t),{forceTransaction:r,parentSpan:s}=t;return(t.scope?e=>Ne(t.scope,e):void 0!==s?t=>Bn(s,t):t=>t())((()=>{const e=Le(),s=Wn(e);return t.onlyIfParent&&!s?new Tn:Un({parentSpan:s,spanArguments:n,forceTransaction:r,scope:e})}))}function Bn(t,e){const n=qn();return n.withActiveSpan?n.withActiveSpan(t,e):Ne((n=>(Ie(n,t||void 0),e(n))))}function Un({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!_n())return new Tn;const s=Fe();let i;if(t&&!n)i=function(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),i=!e.getScopeData().sdkProcessingMetadata[jn]&&an(t),o=i?new Dn({...n,parentSpanId:r,traceId:s,sampled:i}):new Tn({traceId:s});hn(t,o);const c=Pe();c&&(c.emit("spanStart",o),n.endTimestamp&&c.emit("spanEnd",o));return o}(t,r,e),hn(t,i);else if(t){const n=Rn(t),{traceId:s,spanId:o}=t.spanContext(),c=an(t);i=Hn({traceId:s,parentSpanId:o,...e},r,c),En(i,n)}else{const{traceId:t,dsc:n,parentSpanId:o,sampled:c}={...s.getPropagationContext(),...r.getPropagationContext()};i=Hn({traceId:t,parentSpanId:o,...e},r,c),n&&En(i,n)}return function(t,e,n){t&&(U(t,kn,n),U(t,wn,e))}(i,r,s),i}function zn(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=sn(t.startTime),delete n.startTime,n}return e}function qn(){return De(we())}function Hn(t,e,n){const r=Pe(),s=r&&r.getOptions()||{},{name:i="",attributes:o}=t,[c,a]=e.getScopeData().sdkProcessingMetadata[jn]?[!1]:function(t,e){if(!_n(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const r=Mn(n);return void 0===r?[!1]:r&&Math.random()<r?[!0,r]:[!1,r]}(s,{name:i,parentSampled:n,attributes:o,transactionContext:{name:i,parentSampled:n}}),u=new Dn({...t,attributes:{[ze]:"custom",...t.attributes},sampled:c});return void 0!==a&&u.setAttribute(qe,a),r&&r.emit("spanStart",u),u}function Wn(t){const e=xe(t);if(!e)return;const n=Pe();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?pn(e):e}function Jn(t){return void 0!==t?e=>Bn(t,e):t=>t()}const Kn={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Gn="heartbeatFailed",Xn="idleTimeout",Yn="finalTimeout",Vn="externalFinish";function Qn(t,e={}){const n=new Map;let r,s=!1,i=Vn,o=!e.disableAutoFinish;const c=[],{idleTimeout:a=Kn.idleTimeout,finalTimeout:u=Kn.finalTimeout,childSpanTimeout:l=Kn.childSpanTimeout,beforeSpanEnd:f}=e,h=Pe();if(!h||!_n())return new Tn;const d=Le(),p=mn(),m=function(t){const e=Pn(t);return Ie(Le(),e),e}(t);function y(){r&&(clearTimeout(r),r=void 0)}function g(t){y(),r=setTimeout((()=>{!s&&0===n.size&&o&&(i=Xn,m.end(t))}),a)}function v(t){r=setTimeout((()=>{!s&&o&&(i=Gn,m.end(t))}),l)}function b(t){s=!0,n.clear(),c.forEach((t=>t())),Ie(d,p);const e=cn(m),{start_timestamp:r}=e;if(!r)return;(e.data||{})[Je]||m.setAttribute(Je,i),D.log(`[Tracing] Idle span "${e.op}" finished`);const o=dn(m).filter((t=>t!==m));let l=0;o.forEach((e=>{e.isRecording()&&(e.setStatus({code:Qe,message:"cancelled"}),e.end(t));const n=cn(e),{timestamp:r=0,start_timestamp:s=0}=n;r-s<=(u+a)/1e3&&s<=t||(!function(t,e){t[ln]&&t[ln].delete(e)}(m,e),l++)})),l>0&&m.setAttribute("sentry.idle_span_discarded_spans",l)}return m.end=new Proxy(m.end,{apply(t,e,n){f&&f(m);const[r,...s]=n,i=sn(r||mt()),o=dn(m).filter((t=>t!==m));if(!o.length)return b(i),Reflect.apply(t,e,[i,...s]);const c=o.map((t=>cn(t).timestamp)).filter((t=>!!t)),a=c.length?Math.max(...c):void 0,l=cn(m).start_timestamp,h=Math.min(l?l+u/1e3:1/0,Math.max(l||-1/0,Math.min(i,a||1/0)));return b(h),Reflect.apply(t,e,[h,...s])}}),c.push(h.on("spanStart",(t=>{if(s||t===m||cn(t).timestamp)return;var e;dn(m).includes(t)&&(e=t.spanContext().spanId,y(),n.set(e,!0),v(mt()+l/1e3))}))),c.push(h.on("spanEnd",(t=>{var e;s||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&g(mt()+a/1e3))}))),c.push(h.on("idleSpanEnableAutoFinish",(t=>{t===m&&(o=!0,g(),n.size&&v())}))),e.disableAutoFinish||g(),setTimeout((()=>{s||(m.setStatus({code:Qe,message:"deadline_exceeded"}),i=Yn,m.end())}),u),m}function Zn(t,e,n,r=0){return new zt(((s,i)=>{const o=t[r];if(null===e||"function"!=typeof o)s(e);else{const c=o({...e},n);f(c)?c.then((e=>Zn(t,e,n,r+1).then(s))).then(null,i):Zn(t,c,n,r+1).then(s).then(null,i)}}))}function tr(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=e,a=K(n);a&&Object.keys(a).length&&(t.extra={...a,...t.extra});const u=K(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=K(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=K(i);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts});o&&(t.level=o);c&&"transaction"!==t.type&&(t.transaction=c)}(t,e),r&&function(t,e){t.contexts={trace:nn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Rn(e),...t.sdkProcessingMetadata};const n=pn(e),r=cn(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Lt(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}function er(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:c,breadcrumbs:a,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:h,transactionName:d,span:p}=e;nr(t,"extra",n),nr(t,"tags",r),nr(t,"user",s),nr(t,"contexts",i),nr(t,"sdkProcessingMetadata",c),o&&(t.level=o),d&&(t.transactionName=d),p&&(t.span=p),a.length&&(t.breadcrumbs=[...t.breadcrumbs,...a]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...h}}function nr(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function rr(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||At(),timestamp:e.timestamp||pt()},u=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:xn);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==s&&(t.dist=s);t.message&&(t.message=p(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=p(o.value,i));const c=t.request;c&&c.url&&(c.url=p(c.url,i))}(a,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(a,u),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const n=_._sentryDebugIds;if(!n)return;let r;const s=sr.get(e);s?r=s:(r=new Map,sr.set(e,r));const i=Object.entries(n).reduce(((t,[n,s])=>{let i;const o=r.get(n);o?i=o:(i=e(n),r.set(n,i));for(let e=i.length-1;e>=0;e--){const n=i[e];if(n.filename){t[n.filename]=s;break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}(a,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new Ee;return n.update(e),n}(r,n.captureContext);n.mechanism&&$t(a,n.mechanism);const f=s?s.getEventProcessors():[],h=je().getScopeData();if(i){er(h,i.getScopeData())}if(l){er(h,l.getScopeData())}const d=[...n.attachments||[],...h.attachments];d.length&&(n.attachments=d),tr(a,h);return Zn([...f,...h.eventProcessors],a,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}(t),"number"==typeof o&&o>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Ft(t.data,e,n)}})))},...t.user&&{user:Ft(t.user,e,n)},...t.contexts&&{contexts:Ft(t.contexts,e,n)},...t.extra&&{extra:Ft(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Ft(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:Ft(t.data,e,n)}}))));return r}(t,o,c):t)))}const sr=new WeakMap;function ir(t){if(t)return function(t){return t instanceof Ee||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>or.includes(t)))}(t)?{captureContext:t}:t}const or=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function captureException(t,e){return Le().captureException(t,ir(e))}function cr(t,e){return Le().captureEvent(t,e)}function ar(t,e){Fe().setContext(t,e)}function ur(t){Fe().setExtras(t)}function lr(t,e){Fe().setExtra(t,e)}function fr(t){Fe().setTags(t)}function hr(t,e){Fe().setTag(t,e)}function dr(t){Fe().setUser(t)}function pr(){return Fe().lastEventId()}function mr(t){Fe().addEventProcessor(t)}function yr(t){const e=Pe(),n=Fe(),r=Le(),{release:s,environment:i=xn}=e&&e.getOptions()||{},{userAgent:o}=_.navigator||{},c=Se({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...t}),a=n.getSession();return a&&"ok"===a.status&&_e(a,{status:"exited"}),gr(),n.setSession(c),r.setSession(c),c}function gr(){const t=Fe(),e=Le(),n=e.getSession()||t.getSession();n&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),_e(t,n)}(n),vr(),t.setSession(),e.setSession()}function vr(){const t=Fe(),e=Le(),n=Pe(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function br(t=!1){t?gr():vr()}const wr="7";function kr(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Sr(t,e){return n={sentry_key:t.publicKey,sentry_version:wr,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function _r(t,e,n){return e||`${function(t){return`${kr(t)}${t.projectId}/envelope/`}(t)}?${Sr(t,n)}`}const Tr=[];function Ir(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?Lt(n(e)):e;const s=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r),i=s.findIndex((t=>"Debug"===t.name));if(i>-1){const[t]=s.splice(i,1);s.push(t)}return s}function xr(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Cr(t,e,n){if(!n[e.name]){if(n[e.name]=e,-1===Tr.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),Tr.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}}}class Er{constructor(t){if(this.ct=t,this._integrations={},this.ut=0,this.lt={},this.ft={},this._=[],t.dsn&&(this.ht=N(t.dsn)),this.ht){const e=_r(this.ht,t.tunnel,t._metadata?t._metadata.sdk:void 0);this.dt=t.transport({tunnel:this.ct.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=At();if(Dt(t))return r;const s={event_id:r,...e};return this.yt(this.eventFromException(t,s).then((t=>this.gt(t,s,n)))),s.event_id}captureMessage(t,e,n,r){const s={event_id:At(),...n},i=c(t)?t:String(t),o=a(t)?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this.yt(o.then((t=>this.gt(t,s,r)))),s.event_id}captureEvent(t,e,n){const r=At();if(e&&e.originalException&&Dt(e.originalException))return r;const s={event_id:r,...e},i=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this.yt(this.gt(t,s,i||n)),s.event_id}captureSession(t){"string"!=typeof t.release||(this.sendSession(t),_e(t,{init:!1}))}getDsn(){return this.ht}getOptions(){return this.ct}getSdkMetadata(){return this.ct._metadata}getTransport(){return this.dt}flush(t){const e=this.dt;return e?(this.emit("flush"),this.vt(t).then((n=>e.flush(t).then((t=>n&&t))))):Bt(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._}addEventProcessor(t){this._.push(t)}init(){(this.bt()||this.ct.integrations.some((({name:t})=>t.startsWith("Spotlight"))))&&this.wt()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];Cr(this,t,this._integrations),e||xr(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const s=he(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const o=de(t,s,r,e);return delete t.sdkProcessingMetadata,re(o,[[{type:i},t]])}(t,this.ht,this.ct._metadata,this.ct.tunnel);for(const t of e.attachments||[])n=se(n,ue(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const s=he(n);return re({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:F(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this.ht,this.ct._metadata,this.ct.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this.ct.sendClientReports){const r="number"==typeof n?n:1,s=`${t}:${e}`;this.lt[s]=(this.lt[s]||0)+r}}on(t,e){const n=this.ft[t]=this.ft[t]||[];return n.push(e),()=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)}}emit(t,...e){const n=this.ft[t];n&&n.forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this.bt()&&this.dt?this.dt.send(t).then(null,(t=>t)):Bt({})}wt(){const{integrations:t}=this.ct;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&Cr(t,e,n)})),n}(this,t),xr(this,t)}kt(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const i="ok"===t.status;(i&&0===t.errors||i&&n)&&(_e(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}vt(t){return new zt((e=>{let n=0;const r=setInterval((()=>{0==this.ut?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}bt(){return!1!==this.getOptions().enabled&&void 0!==this.dt}St(t,e,n,r=Fe()){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),rr(s,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:n,spanId:r,parentSpanId:s,dsc:i}=e;t.contexts={trace:K({trace_id:n,span_id:r,parent_span_id:s}),...t.contexts};const o=i||An(n,this);t.sdkProcessingMetadata={dynamicSamplingContext:o,...t.sdkProcessingMetadata}}return t}))}gt(t,e={},n){return this._t(t,e,n).then((t=>t.event_id),(t=>{}))}_t(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,i=Rr(t),o=Ar(t),c=t.type||"error",a=`before send for type \`${c}\``,l=void 0===s?void 0:Mn(s);if(o&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",t),Ut(new P(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const h="replay_event"===c?"replay":c,d=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this.St(t,e,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",h,t),new P("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o}=e;if(Ar(n)&&s)return s(n,r);if(Rr(n)){if(n.spans&&o){const e=[];for(const r of n.spans){const n=o(r);n?e.push(n):t.recordDroppedEvent("before_send","span")}n.spans=e}if(i){if(n.spans){const t=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:t}}return i(n,r)}}return n}(this,r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(f(t))return t.then((t=>{if(!u(t)&&null!==t)throw new P(n);return t}),(t=>{throw new P(`${e} rejected with ${t}`)}));if(!u(t)&&null!==t)throw new P(n);return t}(s,a)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",h,t),i){const e=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",e)}throw new P(`${a} returned \`null\`, will not send event.`,"log")}const s=n&&n.getSession();if(!i&&s&&this.kt(s,r),i){const t=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);t>0&&this.recordDroppedEvent("before_send","span",t)}const o=r.transaction_info;if(i&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof P)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new P(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}yt(t){this.ut++,t.then((t=>(this.ut--,t)),(t=>(this.ut--,t)))}Tt(){const t=this.lt;return this.lt={},Object.entries(t).map((([t,e])=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e}}))}It(){const t=this.Tt();if(0===t.length)return;if(!this.ht)return;const e=(n=t,re((r=this.ct.tunnel&&F(this.ht))?{dsn:r}:{},[[{type:"client_report"},{timestamp:s||pt(),discarded_events:n}]]));var n,r,s;this.sendEnvelope(e)}}function Ar(t){return void 0===t.type}function Rr(t){return"transaction"===t.type}function Mr(t){Le().setClient(t)}const Or=64;function $r(t,e,n=qt(t.bufferSize||Or)){let r={};return{send:function(s){const i=[];if(ie(s,((e,n)=>{const s=fe(n);if(me(r,s)){const r=Dr(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else i.push(e)})),0===i.length)return Bt({});const o=re(s[0],i),c=e=>{ie(o,((n,r)=>{const s=Dr(n,r);t.recordDroppedEvent(e,fe(r),s)}))};return n.add((()=>e({body:ce(o)}).then((t=>(r=ye(r,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof P)return c("queue_overflow"),Bt({});throw t}))},flush:t=>n.drain(t)}}function Dr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Lr(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){if(!e)return!1;return Fr(t)===Fr(e)}(t,r)}function Fr(t){return"/"===t[t.length-1]?t.slice(0,-1):t}const jr=100;function Nr(t,e){const n=Pe(),r=Fe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=jr}=n.getOptions();if(i<=0)return;const o={timestamp:pt(),...t},c=s?$((()=>s(o,e))):o;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,i))}let Pr;const Br=new WeakMap,Ur=()=>({name:"FunctionToString",setupOnce(){Pr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=q(this),n=Br.has(Pe())&&void 0!==e?e:this;return Pr.apply(n,t)}}catch(t){}},setup(t){Br.set(t,!0)}}),zr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],qr=(t={})=>({name:"InboundFilters",processEvent(e,n,r){const s=r.getOptions(),i=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:zr],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,s);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(t){}n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`));return e}(t).some((t=>g(t,e)))}(t,e.ignoreErrors))return!0;if(function(t){if(t.type)return!1;if(!t.exception||!t.exception.values||0===t.exception.values.length)return!1;return!t.message&&!t.exception.values.some((t=>t.stacktrace||t.type&&"Error"!==t.type||t.value))}(t))return!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&g(n,e)}(t,e.ignoreTransactions))return!0;if(function(t,e){if(!e||!e.length)return!1;const n=Hr(t);return!!n&&g(n,e)}(t,e.denyUrls))return!0;if(!function(t,e){if(!e||!e.length)return!0;const n=Hr(t);return!n||g(n,e)}(t,e.allowUrls))return!0;return!1}(e,i)?null:e}});function Hr(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(t){return null}}const Wr=()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Kr(t,e))return!1;if(!Jr(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Gr(e),r=Gr(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Kr(t,e))return!1;if(!Jr(t,e))return!1;return!0}(t,e))return!0;return!1}(e,t))return null}catch(t){}return t=e}}};function Jr(t,e){let n=rt(t),r=rt(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function Kr(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Gr(t){return t.exception&&t.exception.values&&t.exception.values[0]}const Xr="d";function Yr(t,e){const n=T("globalMetricsAggregators",(()=>new WeakMap)),r=n.get(t);if(r)return r;const s=new e(t);return t.on("flush",(()=>s.flush())),t.on("close",(()=>s.close())),n.set(t,s),s}function Vr(t,e,n,r,s={}){const i=s.client||Pe();if(!i)return;const o=mn(),c=o?pn(o):void 0,a=c&&cn(c).description,{unit:u,tags:l,timestamp:f}=s,{release:h,environment:d}=i.getOptions(),p={};h&&(p.release=h),d&&(p.environment=d),a&&(p.transaction=a);Yr(i,t).add(e,n,r,u,{...p,...l},f)}function Qr(t,e,n,r){Vr(t,Xr,e,ts(n),r)}const Zr={increment:function(t,e,n=1,r){Vr(t,"c",e,ts(n),r)},distribution:Qr,set:function(t,e,n,r){Vr(t,"s",e,n,r)},gauge:function(t,e,n,r){Vr(t,"g",e,ts(n),r)},timing:function(t,e,n,r="second",s){if("function"==typeof n){const r=mt();return Nn({op:"metrics.timing",name:e,startTime:r,onlyIfParent:!0},(i=>In((()=>n()),(()=>{}),(()=>{const n=mt();Qr(t,e,n-r,{...s,unit:"second"}),i.end(n)}))))}Qr(t,e,n,{...s,unit:r})},getMetricsAggregatorForClient:Yr};function ts(t){return"string"==typeof t?parseInt(t):t}function es(t){return t.replace(/[^\w\-./]+/gi,"")}const ns=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function rs(t){return[...t].reduce(((t,e)=>t+function(t){for(const[e,n]of ns)if(t===e)return n;return t}(e)),"")}function ss(t,e){D.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=function(t,e,n,r){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version});r&&e&&(s.dsn=F(e));const i=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return re(s,[i])}(e,t.getDsn(),t.getSdkMetadata(),t.getOptions().tunnel);t.sendEnvelope(n)}const is={c:class{constructor(t){this.v=t}get weight(){return 1}add(t){this.v+=t}toString(){return`${this.v}`}},g:class{constructor(t){this.xt=t,this.Ct=t,this.Et=t,this.At=t,this.Rt=1}get weight(){return 5}add(t){this.xt=t,t<this.Ct&&(this.Ct=t),t>this.Et&&(this.Et=t),this.At+=t,this.Rt++}toString(){return`${this.xt}:${this.Ct}:${this.Et}:${this.At}:${this.Rt}`}},[Xr]:class{constructor(t){this.v=[t]}get weight(){return this.v.length}add(t){this.v.push(t)}toString(){return this.v.join(":")}},s:class{constructor(t){this.first=t,this.v=new Set([t])}get weight(){return this.v.size}add(t){this.v.add(t)}toString(){return Array.from(this.v).map((t=>"string"==typeof t?function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e>>>0}(t):t)).join(":")}}};class os{constructor(t){this.B=t,this.Mt=new Map,this.Ot=setInterval((()=>this.flush()),5e3)}add(t,e,n,r="none",s={},i=mt()){const o=Math.floor(i),c=e.replace(/[^\w\-.]+/gi,"_");const a=function(t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[es(n)]=rs(String(t[n])));return e}(s),u=function(t){return t.replace(/[^\w]+/gi,"_")}(r),l=function(t,e,n,r){return`${t}${e}${n}${Object.entries(K(r)).sort(((t,e)=>t[0].localeCompare(e[0])))}`}(t,c,u,a);let f=this.Mt.get(l);const h=f&&"s"===t?f.metric.weight:0;f?(f.metric.add(n),f.timestamp<o&&(f.timestamp=o)):(f={metric:new is[t](n),timestamp:o,metricType:t,name:c,unit:u,tags:a},this.Mt.set(l,f));yn(t,c,"string"==typeof n?f.metric.weight-h:n,u,s,l)}flush(){if(0===this.Mt.size)return;const t=Array.from(this.Mt.values());ss(this.B,t),this.Mt.clear()}close(){clearInterval(this.Ot),this.flush()}}function cs(t,e,n,r,s="auto.http.browser"){if(!t.fetchData)return;const i=_n()&&e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(!function(t,e){if(e.response){Ze(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:Qe,message:"internal_error"});t.end()}(n,t),delete r[e]))}const o=Le(),c=Pe(),{method:a,url:u}=t.fetchData,l=function(t){try{return new URL(t).href}catch(t){return}}(u),f=l?Ht(l).host:void 0,d=!!mn(),p=i&&d?Pn({name:`${a} ${u}`,attributes:{url:u,type:"fetch","http.method":a,"http.url":l,"server.address":f,[We]:s,[He]:"http.client"}}):new Tn;if(t.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(t.fetchData.url)&&c){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,s){const i=Fe(),{traceId:o,spanId:c,sampled:a,dsc:u}={...i.getPropagationContext(),...n.getPropagationContext()},l=s?rn(s):ne(o,c,a),f=Qt(u||(s?Rn(s):An(o,e))),d=r.headers||("undefined"!=typeof Request&&h(t,Request)?t.headers:void 0);if(d){if("undefined"!=typeof Headers&&h(d,Headers)){const t=new Headers(d);return t.append("sentry-trace",l),f&&t.append(Kt,f),t}if(Array.isArray(d)){const t=[...d,["sentry-trace",l]];return f&&t.push([Kt,f]),t}{const t="baggage"in d?d.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),f&&e.push(f),{...d,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":l,baggage:f}}(e,c,o,n,_n()&&d?p:void 0)}return p}const as=function(){return{bindClient(t){Le().setClient(t)},withScope:Ne,getClient:()=>Pe(),getScope:Le,getIsolationScope:Fe,captureException:(t,e)=>Le().captureException(t,e),captureMessage:(t,e,n)=>Le().captureMessage(t,e,n),captureEvent:cr,addBreadcrumb:Nr,setUser:dr,setTags:fr,setTag:hr,setExtra:lr,setExtras:ur,setContext:ar,getIntegration(t){const e=Pe();return e&&e.getIntegrationByName(t.id)||null},startSession:yr,endSession:gr,captureSession(t){if(t)return gr();!function(){const t=Le(),e=Pe(),n=t.getSession();e&&n&&e.captureSession(n)}()}}};const us=_;let ls=0;function fs(){return ls>0}function hs(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(q(t))return t}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map((t=>hs(t,e)));return t.apply(this,s)}catch(t){throw ls++,setTimeout((()=>{ls--})),Ne((n=>{n.addEventProcessor((t=>(e.mechanism&&(Ot(t,void 0,void 0),$t(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),captureException(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}z(sentryWrapped,t),U(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function ds(t,e){const n=ys(t,e),r={type:e&&e.name,value:vs(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ps(t,e,n,r){const s=Pe(),i=s&&s.getOptions().normalizeDepth,o=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}return}(e),c={__serialized__:jt(e,i)};if(o)return{exception:{values:[ds(t,o)]},extra:c};const a={exception:{values:[{type:l(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:_s(e,{isUnhandledRejection:r})}]},extra:c};if(n){const e=ys(t,n);e.length&&(a.exception.values[0].stacktrace={frames:e})}return a}function ms(t,e){return{exception:{values:[ds(t,e)]}}}function ys(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t&&gs.test(t.message))return 1;return 0}(e),s=function(t){if("number"==typeof t.framesToPop)return t.framesToPop;return 0}(e);try{return t(n,r,s)}catch(t){}return[]}const gs=/Minified React error #\d+;/i;function vs(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function bs(t,e,n,r){const s=ks(t,e,n&&n.syntheticException||void 0,r);return $t(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Bt(s)}function ws(t,e,n="info",r,s){const i=Ss(t,e,r&&r.syntheticException||void 0,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),Bt(i)}function ks(t,e,o,c,a){let f;if(s(e)&&e.error){return ms(t,e.error)}if(i(e)||r(e,"DOMException")){const n=e;if("stack"in e)f=ms(t,e);else{const e=n.name||(i(n)?"DOMError":"DOMException"),r=n.message?`${e}: ${n.message}`:e;f=Ss(t,r,o,c),Ot(f,r)}return"code"in n&&(f.tags={...f.tags,"DOMException.code":`${n.code}`}),f}if(n(e))return ms(t,e);if(u(e)||l(e)){return f=ps(t,e,o,a),$t(f,{synthetic:!0}),f}return f=Ss(t,e,o,c),Ot(f,`${e}`,void 0),$t(f,{synthetic:!0}),f}function Ss(t,e,n,r){const s={};if(r&&n){const r=ys(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(c(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function _s(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(H(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return p(r,e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:p(r,e)}return""}(t),r=e?"promise rejection":"exception";if(s(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(l(t)){return`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function Ts(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:F(r)}},i=function(t){return[{type:"user_report"},t]}(t);return re(s,[i])}class Is extends Er{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:S}))),version:S}),t._metadata=s}(e,"browser",["browser"],us.SENTRY_SDK_SOURCE||"cdn"),super(e),e.sendClientReports&&us.document&&us.document.addEventListener("visibilitychange",(()=>{"hidden"===us.document.visibilityState&&this.It()}))}eventFromException(t,e){return bs(this.ct.stackParser,t,e,this.ct.attachStacktrace)}eventFromMessage(t,e="info",n){return ws(this.ct.stackParser,t,e,n,this.ct.attachStacktrace)}captureUserFeedback(t){if(!this.bt())return;const e=Ts(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}St(t,e,n){return t.platform=t.platform||"javascript",super.St(t,e,n)}}const xs=(t,e,n,r)=>{let s,i;return o=>{e.value>=0&&(o||r)&&(i=e.value-(s||0),(i||void 0===s)&&(s=e.value,e.delta=i,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},Cs=_,Es=()=>Cs.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],As=()=>{const t=Es();return t&&t.activationStart||0},Rs=(t,e)=>{const n=Es();let r="navigate";n&&(Cs.document&&Cs.document.prerendering||As()>0?r="prerender":Cs.document&&Cs.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Ms=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},Os=t=>{const e=e=>{("pagehide"===e.type||Cs.document&&"hidden"===Cs.document.visibilityState)&&t(e)};Cs.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},$s=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};let Ds=-1;const Ls=t=>{"hidden"===Cs.document.visibilityState&&Ds>-1&&(Ds="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("visibilitychange",Ls,!0),removeEventListener("prerenderingchange",Ls,!0))},Fs=()=>(Cs.document&&Ds<0&&(Ds="hidden"!==Cs.document.visibilityState||Cs.document.prerendering?1/0:0,addEventListener("visibilitychange",Ls,!0),addEventListener("prerenderingchange",Ls,!0)),{get firstHiddenTime(){return Ds}}),js=t=>{Cs.document&&Cs.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},Ns=[1800,3e3],Ps=[.1,.25],Bs=(t,e={})=>{((t,e={})=>{js((()=>{const n=Fs(),r=Rs("FCP");let s;const i=Ms("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-As(),0),r.entries.push(t),s(!0)))}))}));i&&(s=xs(t,r,Ns,e.reportAllChanges))}))})($s((()=>{const n=Rs("CLS",0);let r,s=0,i=[];const o=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=i[0],n=i[i.length-1];s&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,i.push(t)):(s=t.value,i=[t])}})),s>n.value&&(n.value=s,n.entries=i,r())},c=Ms("layout-shift",o);c&&(r=xs(t,n,Ps,e.reportAllChanges),Os((()=>{o(c.takeRecords()),r(!0)})),setTimeout(r,0))})))},Us=[100,300],zs=(t,e={})=>{js((()=>{const n=Fs(),r=Rs("FID");let s;const i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),s(!0))},o=t=>{t.forEach(i)},c=Ms("first-input",o);s=xs(t,r,Us,e.reportAllChanges),c&&Os($s((()=>{o(c.takeRecords()),c.disconnect()})))}))};let qs=0,Hs=1/0,Ws=0;const Js=t=>{t.forEach((t=>{t.interactionId&&(Hs=Math.min(Hs,t.interactionId),Ws=Math.max(Ws,t.interactionId),qs=Ws?(Ws-Hs)/7+1:0)}))};let Ks;const Gs=()=>{"interactionCount"in performance||Ks||(Ks=Ms("event",Js,{type:"event",buffered:!0,durationThreshold:0}))},Xs=[200,500],Ys=()=>(Ks?qs:performance.interactionCount||0)-0,Vs=[],Qs={},Zs=t=>{const e=Vs[Vs.length-1],n=Qs[t.interactionId];if(n||Vs.length<10||e&&t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Qs[e.id]=e,Vs.push(e)}Vs.sort(((t,e)=>e.latency-t.latency)),Vs.splice(10).forEach((t=>{delete Qs[t.id]}))}},ti=(t,e={})=>{js((()=>{Gs();const n=Rs("INP");let r;const s=t=>{t.forEach((t=>{if(t.interactionId&&Zs(t),"first-input"===t.entryType){!Vs.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&Zs(t)}}));const e=(()=>{const t=Math.min(Vs.length-1,Math.floor(Ys()/50));return Vs[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},i=Ms("event",s,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=xs(t,n,Xs,e.reportAllChanges),i&&("PerformanceEventTiming"in Cs&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),Os((()=>{s(i.takeRecords()),n.value<0&&Ys()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},ei=[2500,4e3],ni={},ri=(t,e={})=>{js((()=>{const n=Fs(),r=Rs("LCP");let s;const i=t=>{const e=t[t.length-1];e&&e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-As(),0),r.entries=[e],s())},o=Ms("largest-contentful-paint",i);if(o){s=xs(t,r,ei,e.reportAllChanges);const n=$s((()=>{ni[r.id]||(i(o.takeRecords()),o.disconnect(),ni[r.id]=!0,s(!0))}));["keydown","click"].forEach((t=>{Cs.document&&addEventListener(t,(()=>setTimeout(n,0)),!0)})),Os(n)}}))},si=[800,1800],ii=t=>{Cs.document&&Cs.document.prerendering?js((()=>ii(t))):Cs.document&&"complete"!==Cs.document.readyState?addEventListener("load",(()=>ii(t)),!0):setTimeout(t,0)},oi=(t,e={})=>{const n=Rs("TTFB"),r=xs(t,n,si,e.reportAllChanges);ii((()=>{const t=Es();if(t){const e=t.responseStart;if(e<=0||e>performance.now())return;n.value=Math.max(e-As(),0),n.entries=[t],r(!0)}}))},ci={},ai={};let ui,li,fi,hi,di;function pi(t,e=!1){return Ii("cls",t,wi,ui,e)}function mi(t,e=!1){return Ii("lcp",t,Si,fi,e)}function yi(t){return Ii("fid",t,ki,li)}function gi(t){return Ii("inp",t,Ti,di)}function vi(t,e){return xi(t,e),ai[t]||(!function(t){const e={};"event"===t&&(e.durationThreshold=0);Ms(t,(e=>{bi(t,{entries:e})}),e)}(t),ai[t]=!0),Ci(t,e)}function bi(t,e){const n=ci[t];if(n&&n.length)for(const t of n)try{t(e)}catch(t){}}function wi(){return Bs((t=>{bi("cls",{metric:t}),ui=t}),{reportAllChanges:!0})}function ki(){return zs((t=>{bi("fid",{metric:t}),li=t}))}function Si(){return ri((t=>{bi("lcp",{metric:t}),fi=t}),{reportAllChanges:!0})}function _i(){return oi((t=>{bi("ttfb",{metric:t}),hi=t}))}function Ti(){return ti((t=>{bi("inp",{metric:t}),di=t}))}function Ii(t,e,n,r,s=!1){let i;return xi(t,e),ai[t]||(i=n(),ai[t]=!0),r&&e({metric:r}),Ci(t,e,s?i:void 0)}function xi(t,e){ci[t]=ci[t]||[],ci[t].push(e)}function Ci(t,e,n){return()=>{n&&n();const r=ci[t];if(!r)return;const s=r.indexOf(e);-1!==s&&r.splice(s,1)}}function Ei(t){return"number"==typeof t&&isFinite(t)}function Ai(t,e,n,{...r}){const s=cn(t).start_timestamp;return s&&s>e&&"function"==typeof t.updateStartTime&&t.updateStartTime(e),Bn(t,(()=>{const t=Pn({startTime:e,...r});return t&&t.end(n),t}))}function Ri(t){const e=Pe();if(!e)return;const{name:n,transaction:r,attributes:s,startTime:i}=t,{release:o,environment:c}=e.getOptions(),a=e.getIntegrationByName("Replay"),u=a&&a.getReplayId(),l=Le(),f=l.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;let d;try{d=l.getScopeData().contexts.profile.profile_id}catch(t){}return Pn({name:n,attributes:{release:o,environment:c,user:h||void 0,profile_id:d||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":Cs.navigator&&Cs.navigator.userAgent,...s},startTime:i,experimental:{standalone:!0}})}function Mi(){return Cs&&Cs.addEventListener&&Cs.performance}function Oi(t){return t/1e3}function $i(){let t,e,n=0;if(!function(){try{return ge([PerformanceObserver,"access",t=>t.supportedEntryTypes,"optionalAccess",t=>t.includes,"call",t=>t("layout-shift")])}catch(t){return!1}}())return;let r=!1;function s(){r||(r=!0,e&&function(t,e,n){const r=Oi(yt)+(ge([e,"optionalAccess",t=>t.startTime])||0),s=Oi(ge([e,"optionalAccess",t=>t.duration])||0),i=Le().getScopeData().transactionName,o=e?C(ge([e,"access",t=>t.sources,"access",t=>t[0],"optionalAccess",t=>t.node])):"Layout shift",c=K({[We]:"auto.http.browser.cls",[He]:"ui.webvital.cls",[Xe]:ge([e,"optionalAccess",t=>t.duration])||0,"sentry.pageload.span_id":n}),a=Ri({name:o,transaction:i,attributes:c,startTime:r});ge([a,"optionalAccess",t=>t.addEvent,"call",e=>e("cls",{[Ke]:"",[Ge]:t})]),ge([a,"optionalAccess",t=>t.end,"call",t=>t(r+s)])}(n,t,e),i())}const i=pi((({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)}),!0);Os((()=>{s()})),setTimeout((()=>{const t=ge([Pe(),"optionalAccess",t=>t.on,"call",e=>e("startNavigationSpan",(()=>{s(),t&&t()}))]),n=mn(),r=n&&pn(n),i=r&&cn(r);i&&"pageload"===i.op&&(e=r.spanContext().spanId)}),0)}const Di=2147483647;let Li,Fi,ji=0,Ni={};function Pi({recordClsStandaloneSpans:t}){const e=Mi();if(e&&yt){e.mark&&Cs.performance.mark("sentry-tracing-init");const n=yi((({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=Oi(yt),r=Oi(e.startTime);Ni.fid={value:t.value,unit:"millisecond"},Ni["mark.fid"]={value:n+r,unit:"second"}})),r=mi((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Ni.lcp={value:t.value,unit:"millisecond"},Li=e)}),!0),s=Ii("ttfb",(({metric:t})=>{t.entries[t.entries.length-1]&&(Ni.ttfb={value:t.value,unit:"millisecond"})}),_i,hi),i=t?$i():pi((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Ni.cls={value:t.value,unit:""},Fi=e)}),!0);return()=>{n(),r(),s(),i&&i()}}return()=>{}}function Bi(t,e){const n=Mi();if(!n||!Cs.performance.getEntries||!yt)return;const r=Oi(yt),s=n.getEntries(),{op:i,start_timestamp:o}=cn(t);if(s.slice(ji).forEach((e=>{const n=Oi(e.startTime),s=Oi(Math.max(0,e.duration));if(!("navigation"===i&&o&&r+n<o))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Ui(t,e,r,n)})),Ui(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Ui(t,e,"fetch",n,"cache","domainLookupStart"),Ui(t,e,"domainLookup",n,"DNS"),function(t,e,n){const r=n+Oi(e.requestStart),s=n+Oi(e.responseEnd),i=n+Oi(e.responseStart);e.responseEnd&&(Ai(t,r,s,{op:"browser",name:"request",attributes:{[We]:"auto.ui.browser.metrics"}}),Ai(t,i,s,{op:"browser",name:"response",attributes:{[We]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,r);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,s){const i=Es(),o=Oi(i?i.requestStart:0),c=s+Math.max(n,o),a=s+n,u=a+r,l={[We]:"auto.resource.browser.metrics"};c!==a&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c);Ai(t,c,u,{name:e.name,op:e.entryType,attributes:l})}(t,e,n,s,r);const i=Fs(),o=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&o&&(Ni.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&o&&(Ni.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,s,i){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const o=Ht(n),c={[We]:"auto.resource.browser.metrics"};zi(c,e,"transferSize","http.response_transfer_size"),zi(c,e,"encodedBodySize","http.response_content_length"),zi(c,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(c["resource.render_blocking_status"]=e.renderBlockingStatus);o.protocol&&(c["url.scheme"]=o.protocol.split(":").pop());o.host&&(c["server.address"]=o.host);c["url.same_origin"]=n.includes(Cs.location.origin);const a=i+r,u=a+s;Ai(t,a,u,{name:n.replace(Cs.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:c})}(t,e,e.name,n,s,r)}})),ji=Math.max(s.length-1,0),function(t){const e=Cs.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Ei(n.rtt)&&(Ni["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Ei(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`);Ei(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===i){!function(t){const e=Es();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(Ni);const n=Ni["mark.fid"];n&&Ni.fid&&(Ai(t,n.value,n.value+Oi(Ni.fid.value),{name:"first input delay",op:"ui.action",attributes:{[We]:"auto.ui.browser.metrics"}}),delete Ni["mark.fid"]),"fcp"in Ni&&e.recordClsOnPageloadSpan||delete Ni.cls,Object.entries(Ni).forEach((([t,e])=>{On(t,e.value,e.unit)})),t.setAttribute("performance.timeOrigin",r),function(t){Li&&(Li.element&&t.setAttribute("lcp.element",C(Li.element)),Li.id&&t.setAttribute("lcp.id",Li.id),Li.url&&t.setAttribute("lcp.url",Li.url.trim().slice(0,200)),t.setAttribute("lcp.size",Li.size));Fi&&Fi.sources&&Fi.sources.forEach(((e,n)=>t.setAttribute(`cls.source.${n+1}`,C(e.node))))}(t)}Li=void 0,Fi=void 0,Ni={}}function Ui(t,e,n,r,s,i){const o=i?e[i]:e[`${n}End`],c=e[`${n}Start`];c&&o&&Ai(t,r+Oi(c),r+Oi(o),{op:"browser",name:s||n,attributes:{[We]:"auto.ui.browser.metrics"}})}function zi(t,e,n,r){const s=e[n];null!=s&&s<Di&&(t[r]=s)}const qi=1e3;let Hi,Wi,Ji,Ki;function Gi(t){ot("dom",t),ct("dom",Xi)}function Xi(){if(!Cs.document)return;const t=at.bind(null,"dom"),e=Yi(t,!0);Cs.document.addEventListener("click",e,!1),Cs.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Cs[e]&&Cs[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=Yi(t);o.handler=r,e.call(this,n,r,s)}o.refCount++}catch(t){}return e.call(this,n,r,s)}})),B(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function Yi(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;U(n,"_sentryCaptured",!0),r&&!r._sentryId&&U(r,"_sentryId",At());const s="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==Wi)return!1;try{if(!t.target||t.target._sentryId!==Ji)return!1}catch(t){}return!0}(n)){t({event:n,name:s,global:e}),Wi=n.type,Ji=r?r._sentryId:void 0}clearTimeout(Hi),Hi=Cs.setTimeout((()=>{Ji=void 0,Wi=void 0}),qi)}}function Vi(t){const e="history";ot(e,t),ct(e,Qi)}function Qi(){if(!function(){const t=be.chrome,e=t&&t.app&&t.app.runtime,n="history"in be&&!!be.history.pushState&&!!be.history.replaceState;return!e&&n}())return;const t=Cs.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ki,e=String(n);Ki=e;at("history",{from:t,to:e})}return t.apply(this,e)}}Cs.onpopstate=function(...e){const n=Cs.location.href,r=Ki;Ki=n;if(at("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},B(Cs.history,"pushState",e),B(Cs.history,"replaceState",e)}const Zi={};function to(t){const e=Zi[t];if(e)return e;let n=Cs[t];if(ft(n))return Zi[t]=n.bind(Cs);const r=Cs.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(n=s[t]),r.head.removeChild(e)}catch(t){}return n?Zi[t]=n.bind(Cs):n}function eo(t){Zi[t]=void 0}function no(...t){return to("setTimeout")(...t)}const ro="__sentry_xhr_v3__";function so(t){ot("xhr",t),ct("xhr",io)}function io(){if(!Cs.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(t,e,n){const r=1e3*mt(),s=o(n[0])?n[0].toUpperCase():void 0,i=function(t){if(o(t))return t;try{return t.toString()}catch(t){}return}(n[1]);if(!s||!i)return t.apply(e,n);e[ro]={method:s,url:i,request_headers:{}},"POST"===s&&i.match(/sentry_key/)&&(e.__sentry_own_request__=!0);const c=()=>{const t=e[ro];if(t&&4===e.readyState){try{t.status_code=e.status}catch(t){}at("xhr",{endTimestamp:1e3*mt(),startTimestamp:r,xhr:e})}};return"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?e.onreadystatechange=new Proxy(e.onreadystatechange,{apply:(t,e,n)=>(c(),t.apply(e,n))}):e.addEventListener("readystatechange",c),e.setRequestHeader=new Proxy(e.setRequestHeader,{apply(t,e,n){const[r,s]=n,i=e[ro];return i&&o(r)&&o(s)&&(i.request_headers[r.toLowerCase()]=s),t.apply(e,n)}}),t.apply(e,n)}}),t.send=new Proxy(t.send,{apply(t,e,n){const r=e[ro];if(!r)return t.apply(e,n);void 0!==n[0]&&(r.body=n[0]);return at("xhr",{startTimestamp:1e3*mt(),xhr:e}),t.apply(e,n)}})}const oo=[],co=new Map;function ao(){if(Mi()&&yt){const t=gi((({metric:t})=>{if(null==t.value)return;const e=t.entries.find((e=>e.duration===t.value&&uo[e.name]));if(!e)return;const{interactionId:n}=e,r=uo[e.name],s=Oi(yt+e.startTime),i=Oi(t.value),o=mn(),c=o?pn(o):void 0,a=(null!=n?co.get(n):void 0)||c,u=a?cn(a).description:Le().getScopeData().transactionName,l=Ri({name:C(e.target),transaction:u,attributes:K({[We]:"auto.http.browser.inp",[He]:`ui.interaction.${r}`,[Xe]:e.duration}),startTime:s});ge([l,"optionalAccess",t=>t.addEvent,"call",e=>e("inp",{[Ke]:"millisecond",[Ge]:t.value})]),ge([l,"optionalAccess",t=>t.end,"call",t=>t(s+i)])}));return()=>{t()}}return()=>{}}const uo={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 lo(t,e=to("fetch")){let n=0,r=0;return $r(t,(function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return eo("fetch"),Ut("No fetch implementation available");try{return e(t.url,o).then((t=>(n-=i,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return eo("fetch"),n-=i,r--,Ut(t)}}))}function fo(t,e,n,r){const s={filename:t,function:"<anonymous>"===e?Y:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const ho=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,po=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,mo=/\((\S*)(?::(\d+))(?::(\d+))\)/,yo=[30,t=>{const e=ho.exec(t);if(e){const[,t,n,r]=e;return fo(t,Y,+n,+r)}const n=po.exec(t);if(n){if(n[2]&&0===n[2].indexOf("eval")){const t=mo.exec(n[2]);t&&(n[2]=t[1],n[3]=t[2],n[4]=t[3])}const[t,e]=Eo(n[1]||Y,n[2]);return fo(e,t,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],go=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bo=[50,t=>{const e=go.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=vo.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Y;return[n,t]=Eo(n,t),fo(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],wo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ko=[40,t=>{const e=wo.exec(t);return e?fo(e[2],e[1]||Y,+e[3],e[4]?+e[4]:void 0):void 0}],So=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,_o=[10,t=>{const e=So.exec(t);return e?fo(e[2],e[3]||Y,+e[1]):void 0}],To=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Io=[20,t=>{const e=To.exec(t);return e?fo(e[5],e[3]||e[4]||Y,+e[1],+e[2]):void 0}],xo=[yo,bo],Co=Z(...xo),Eo=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Y,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Ao=1024,Ro=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){e.console&&function(t){const e="console";ot(e,t),ct(e,ut)}(function(t){return function(e){if(Pe()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:Jt(e.level),message:m(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${m(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Nr(n,{input:e.args,level:e.level})}}(t)),e.dom&&Gi(function(t,e){return function(n){if(Pe()!==t)return;let r,s,i="object"==typeof e?e.serializeAttribute:void 0,o="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>Ao&&(o=Ao),"string"==typeof i&&(i=[i]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=C(e,{keyAttrs:i,maxStringLength:o}),s=R(e)}catch(t){r="<unknown>"}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};s&&(c.data={"ui.component_name":s}),Nr(c,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&so(function(t){return function(e){if(Pe()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[ro];if(!n||!r||!s)return;const{method:i,url:o,status_code:c,body:a}=s;Nr({category:"xhr",data:{method:i,url:o,status_code:c},type:"http"},{xhr:e.xhr,input:a,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&gt(function(t){return function(e){if(Pe()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){Nr({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r})}else{const t=e.response;Nr({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&Vi(function(t){return function(e){if(Pe()!==t)return;let n=e.from,r=e.to;const s=Ht(us.location.href);let i=n?Ht(n):void 0;const o=Ht(r);i&&i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),Nr({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){Pe()===t&&Nr({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Mt(e)},{event:e})}}(t))}}};const Mo=["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"],Oo=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&B(us,"setTimeout",$o),e.setInterval&&B(us,"setInterval",$o),e.requestAnimationFrame&&B(us,"requestAnimationFrame",Do),e.XMLHttpRequest&&"XMLHttpRequest"in us&&B(XMLHttpRequest.prototype,"send",Lo);const t=e.eventTarget;if(t){(Array.isArray(t)?t:Mo).forEach(Fo)}}}};function $o(t){return function(...e){const n=e[0];return e[0]=hs(n,{mechanism:{data:{function:nt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Do(t){return function(e){return t.apply(this,[hs(e,{mechanism:{data:{function:"requestAnimationFrame",handler:nt(t)},handled:!1,type:"instrument"}})])}}function Lo(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&B(n,t,(function(e){const n={mechanism:{data:{function:t,handler:nt(e)},handled:!1,type:"instrument"}},r=q(e);return r&&(n.mechanism.data.handler=nt(r)),hs(e,n)}))})),t.apply(this,e)}}function Fo(t){const e=us,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(B(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=hs(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:nt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,hs(r,{mechanism:{data:{function:"addEventListener",handler:nt(r),target:t},handled:!1,type:"instrument"}}),s])}})),B(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,s,r)}})))}const jo=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&function(t){_t((e=>{const{stackParser:n,attachStacktrace:r}=No();if(Pe()!==t||fs())return;const{msg:s,url:i,line:c,column:a,error:u}=e,l=function(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],c=i[0]=i[0]||{},a=c.stacktrace=c.stacktrace||{},u=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,h=o(e)&&e.length>0?e:A();0===u.length&&u.push({colno:l,filename:h,function:Y,in_app:!0,lineno:f});return t}(ks(n,u||s,void 0,r,!1),i,c,a);l.level="error",cr(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(t),e.onunhandledrejection&&function(t){xt((e=>{const{stackParser:n,attachStacktrace:r}=No();if(Pe()!==t||fs())return;const s=function(t){if(a(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),i=a(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:ks(n,s,void 0,r,!0);i.level="error",cr(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t)}}};function No(){const t=Pe();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Po=()=>({name:"HttpContext",preprocessEvent(t){if(!us.navigator&&!us.location&&!us.document)return;const e=t.request&&t.request.url||us.location&&us.location.href,{referrer:n}=us.document||{},{userAgent:r}=us.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}}),Bo=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){const i=s.getOptions();v(ds,i.stackParser,i.maxValueLength,n,e,t,r)}}};function Uo(t){return[qr(),Ur(),Oo(),Ro(),jo(),Bo(),Wr(),Po()]}const zo={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"},qo=us;const Ho={increment:function(t,e=1,n){Zr.increment(os,t,e,n)},distribution:function(t,e,n){Zr.distribution(os,t,e,n)},set:function(t,e,n){Zr.set(os,t,e,n)},gauge:function(t,e,n){Zr.gauge(os,t,e,n)},timing:function(t,e,n="second",r){return Zr.timing(os,t,e,n,r)}};const Wo=new WeakMap,Jo=new Map,Ko={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function Go(t,e){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:o}={traceFetch:Ko.traceFetch,traceXHR:Ko.traceXHR,...e},c="function"==typeof s?s:t=>!0,a=t=>function(t,e){const n=us.location&&us.location.href;if(n){let r,s;try{r=new URL(t,n),s=new URL(n).origin}catch(t){return!1}const i=r.origin===s;return e?g(r.toString(),e)||i&&g(r.pathname,e):i}{const n=!!t.match(/^\/(?!\/)/);return e?g(t,e):n}}(t,o),u={};n&&(t.addEventProcessor((t=>("transaction"===t.type&&t.spans&&t.spans.forEach((t=>{if("http.client"===t.op){const e=Jo.get(t.span_id);e&&(t.timestamp=e/1e3,Jo.delete(t.span_id))}})),t))),function(t){const e="fetch-body-resolved";ot(e,t),ct(e,(()=>vt(bt)))}((t=>{if(t.response){const e=Wo.get(t.response);e&&t.endTimestamp&&Jo.set(e,t.endTimestamp)}})),gt((t=>{const e=cs(t,c,a,u);if(t.response&&t.fetchData.__span&&Wo.set(t.response,t.fetchData.__span),e){const n=Vo(t.fetchData.url),r=n?Ht(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}i&&e&&Xo(e)}))),r&&so((t=>{const e=function(t,e,n,r){const s=t.xhr,i=s&&s[ro];if(!s||s.__sentry_own_request__||!i)return;const o=_n()&&e(i.url);if(t.endTimestamp&&o){const t=s.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==i.status_code&&(Ze(e,i.status_code),e.end(),delete r[t]))}const c=Vo(i.url),a=c?Ht(c).host:void 0,u=!!mn(),l=o&&u?Pn({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":c,url:i.url,"server.address":a,[We]:"auto.http.browser",[He]:"http.client"}}):new Tn;s.__sentry_xhr_span_id__=l.spanContext().spanId,r[s.__sentry_xhr_span_id__]=l;const f=Pe();s.setRequestHeader&&n(i.url)&&f&&function(t,e,n){const r=Le(),s=Fe(),{traceId:i,spanId:o,sampled:c,dsc:a}={...s.getPropagationContext(),...r.getPropagationContext()},u=n&&_n()?rn(n):ne(i,o,c),l=Qt(a||(n?Rn(n):An(i,e)));!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(Kt,n)}catch(t){}}(t,u,l)}(s,f,_n()&&u?l:void 0);return l}(t,c,a,u);i&&e&&Xo(e)}))}function Xo(t){const{url:e}=cn(t).data||{};if(!e||"string"!=typeof e)return;const n=vi("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const s of t){if("/"===s){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=s}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!yt)return r;return[...r,["http.request.redirect_start",Yo(t.redirectStart)],["http.request.fetch_start",Yo(t.fetchStart)],["http.request.domain_lookup_start",Yo(t.domainLookupStart)],["http.request.domain_lookup_end",Yo(t.domainLookupEnd)],["http.request.connect_start",Yo(t.connectStart)],["http.request.secure_connection_start",Yo(t.secureConnectionStart)],["http.request.connection_end",Yo(t.connectEnd)],["http.request.request_start",Yo(t.requestStart)],["http.request.response_start",Yo(t.responseStart)],["http.request.response_end",Yo(t.responseEnd)]]})(r).forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function Yo(t=0){return((yt||performance.timeOrigin)+t)/1e3}function Vo(t){try{return new URL(t,us.location.origin).href}catch(t){return}}const Qo={...Kn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ko};function Zo(t,e,n){t.emit("startPageLoadSpan",e,n),Le().setTransactionName(e.name);const r=mn();return"pageload"===(r&&cn(r).op)?r:void 0}function tc(t,e){Fe().setPropagationContext(ve()),Le().setPropagationContext(ve()),t.emit("startNavigationSpan",e),Le().setTransactionName(e.name);const n=mn();return"navigation"===(n&&cn(n).op)?n:void 0}function ec(t){const e=(n=`meta[name=${t}]`,I.document&&I.document.querySelector?I.document.querySelector(n):null);var n;return e?e.getAttribute("content"):void 0}const nc=()=>{},rc=["attachTo","createForm","createWidget","remove"],sc=Object.assign((t=>($((()=>{console.warn("You are using feedbackIntegration() even though this bundle does not include feedback.")})),{name:"Feedback",...rc.reduce(((t,e)=>(t[e]=nc,t)),{})})),{_isShim:!0}),ic=_,oc="sentryReplaySession",cc="replay_event",ac="Unable to send Replay",uc=15e4,lc=5e3,fc=2e7,hc=36e5;function dc(t,e){return null!=t?t:e()}function pc(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}var mc;function yc(t){const e=pc([t,"optionalAccess",t=>t.host]);return Boolean(pc([e,"optionalAccess",t=>t.shadowRoot])===t)}function gc(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function vc(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,bc).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e):null}catch(t){return null}var e}function bc(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=vc(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(t){}else if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":"))return function(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}(t.cssText);return e||t.cssText}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(mc||(mc={}));class wc{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return dc(pc([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]),(()=>-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 e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function kc({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function Sc({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function _c(t){return t.toLowerCase()}function Tc(t){return t.toUpperCase()}const Ic="__rrweb_original__";function xc(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?_c(e):null}function Cc(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function Ec(t,e){let n;try{n=new URL(t,dc(e,(()=>window.location.href)))}catch(t){return null}return dc(pc([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",t=>t[1]]),(()=>null))}const Ac={};function Rc(t){const e=Ac[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(r=s[t]),n.head.removeChild(e)}catch(t){}return Ac[t]=r.bind(window)}function Mc(...t){return Rc("setTimeout")(...t)}function Oc(...t){return Rc("clearTimeout")(...t)}let $c=1;const Dc=new RegExp("[^a-z0-9-_:]"),Lc=-2;function Fc(){return $c++}let jc,Nc;const Pc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Bc=/^(?:[a-z+]+:)?\/\//i,Uc=/^www\..*/i,zc=/^(data:)([^,]*),(.*)/i;function qc(t,e){return(t||"").replace(Pc,((t,n,r,s,i,o)=>{const c=r||i||o,a=n||s||"";if(!c)return t;if(Bc.test(c)||Uc.test(c))return`url(${a}${c}${a})`;if(zc.test(c))return`url(${a}${c}${a})`;if("/"===c[0])return`url(${a}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+c}${a})`;const u=e.split("/"),l=c.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${a}${u.join("/")}${a})`}))}const Hc=/^[^ \t\n\r\u000c]+/,Wc=/^[, \t\n\r\u000c]+/;function Jc(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Kc(t){return Boolean("svg"===t.tagName||t.ownerSVGElement)}function Gc(){const t=document.createElement("a");return t.href="",t.href}function Xc(t,e,n,r,s,i){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Jc(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const s=t.exec(e.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(Wc),!(n>=e.length);){let i=r(Hc);if(","===i.slice(-1))i=Jc(t,i.substring(0,i.length-1)),s.push(i);else{let r="";i=Jc(t,i);let o=!1;for(;;){const t=e.charAt(n);if(""===t){s.push((i+r).trim());break}if(o)")"===t&&(o=!1);else{if(","===t){n+=1,s.push((i+r).trim());break}"("===t&&(o=!0)}r+=t,n+=1}}}return s.join(", ")}(t,r):"style"===n?qc(r,Gc()):"object"===e&&"data"===n?Jc(t,r):"function"==typeof i?i(n,r,s):r:Jc(t,r):r}function Yc(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Vc(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Vc(t.parentNode,e,n,r+1):-1}function Qc(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(t){return!1}}}function Zc(t,e,n,r,s,i){try{const o=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){const t=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let c=-1,a=-1;if(i){if(a=Vc(o,Qc(r,s)),a<0)return!0;c=Vc(o,Qc(e,n),a>=0?a:1/0)}else{if(c=Vc(o,Qc(e,n)),c<0)return!1;a=Vc(o,Qc(r,s),c>=0?c:1/0)}return c>=0?!(a>=0)||c<=a:!(a>=0)&&!!i}catch(t){}return!!i}function ta(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskAttributeFn:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:d,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:k=!1}=e,S=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:mc.Document,childNodes:[],compatMode:t.compatMode}:{type:mc.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:mc.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:c={},maskAttributeFn:a,maskInputFn:u,dataURLOptions:l={},inlineImages:f,recordCanvas:h,keepIframeSrcFn:d,newlyAddedElement:p=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:w}=e,k=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(t){}return!1}(t,r,s,i),S=function(t){if(t instanceof HTMLFormElement)return"form";const e=_c(t.tagName);return Dc.test(e)?"div":e}(t);let _={};const T=t.attributes.length;for(let e=0;e<T;e++){const r=t.attributes[e];r.name&&!Yc(S,r.name)&&(_[r.name]=Xc(n,S,_c(r.name),r.value,t,a))}if("link"===S&&o){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=vc(e)),r&&(delete _.rel,delete _.href,_._cssText=qc(r,e.href))}if("style"===S&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=vc(t.sheet);e&&(_._cssText=qc(e,Gc()))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const e=t,n=xc(e),r=Cc(e,Tc(S),n),s=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Zc(e,g,b,v,w,kc({type:n,tagName:Tc(S),maskInputOptions:c}));_.value=Sc({isMasked:t,element:e,value:r,maskInputFn:u})}s&&(_.checked=s)}"option"===S&&(t.selected&&!c.select?_.selected=!0:delete _.selected);if("canvas"===S&&h)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const s=e.getImageData,i=Ic in s?s[Ic]:s;if(new Uint32Array(i.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(_.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(l.type,l.quality)&&(_.rr_dataURL=e)}if("img"===S&&f){jc||(jc=n.createElement("canvas"),Nc=jc.getContext("2d"));const e=t,r=e.crossOrigin;e.crossOrigin="anonymous";const s=()=>{e.removeEventListener("load",s);try{jc.width=e.naturalWidth,jc.height=e.naturalHeight,Nc.drawImage(e,0,0),_.rr_dataURL=jc.toDataURL(l.type,l.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}r?_.crossOrigin=r:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}"audio"!==S&&"video"!==S||(_.rr_mediaState=t.paused?"paused":"played",_.rr_mediaCurrentTime=t.currentTime);p||(t.scrollLeft&&(_.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(_.rr_scrollTop=t.scrollTop));if(k){const{width:e,height:n}=t.getBoundingClientRect();_={class:_.class,rr_width:`${e}px`,rr_height:`${n}px`}}"iframe"!==S||d(_.src)||(k||t.contentDocument||(_.rr_src=_.src),delete _.src);let I;try{customElements.get(S)&&(I=!0)}catch(t){}return{type:mc.Element,tagName:S,attributes:_,childNodes:[],isSVG:Kc(t)||void 0,needBlock:k,rootId:m,isCustom:I}}(t,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:d,maskAttributeFn:a,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:k,rootId:S,maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:c,maskInputOptions:a,maskInputFn:u,rootId:l}=e,f=t.parentNode&&t.parentNode.tagName;let h=t.textContent;const d="STYLE"===f||void 0,p="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(d&&h){try{t.nextSibling||t.previousSibling||pc([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(h=vc(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}h=qc(h,Gc())}p&&(h="SCRIPT_PLACEHOLDER");const y=Zc(t,r,i,s,o,n);d||p||m||!h||!y||(h=c?c(h,t.parentElement):h.replace(/[\S]/g,"*"));m&&h&&(a.textarea||y)&&(h=u?u(h,t.parentNode):h.replace(/[\S]/g,"*"));if("OPTION"===f&&h){h=Sc({isMasked:Zc(t,r,i,s,o,kc({type:null,tagName:f,maskInputOptions:a})),element:t,value:h,maskInputFn:u})}return{type:mc.Text,textContent:h||"",isStyle:d,rootId:l}}(t,{maskAllText:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:S});case t.CDATA_SECTION_NODE:return{type:mc.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:mc.Comment,textContent:t.textContent||"",rootId:S};default:return!1}}function ea(t){return null==t?"":t.toLowerCase()}function na(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:h=!1,inlineStylesheet:d=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:w=!1,recordCanvas:k=!1,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:T=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:E=!1}=e;let{preserveWhiteSpace:A=!0}=e;const R=ta(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:d,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:w,recordCanvas:k,keepIframeSrcFn:C,newlyAddedElement:E});if(!R)return console.warn(t,"not serialized"),null;let M;M=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===mc.Comment)return!0;if(t.type===mc.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===Ec(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(ea(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ea(t.attributes.name)||"icon"===ea(t.attributes.rel)||"apple-touch-icon"===ea(t.attributes.rel)||"shortcut icon"===ea(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&ea(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(ea(t.attributes.property).match(/^(og|twitter|fb):/)||ea(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===ea(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===ea(t.attributes.name)||"googlebot"===ea(t.attributes.name)||"bingbot"===ea(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===ea(t.attributes.name)||"generator"===ea(t.attributes.name)||"framework"===ea(t.attributes.name)||"publisher"===ea(t.attributes.name)||"progid"===ea(t.attributes.name)||ea(t.attributes.property).match(/^article:/)||ea(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===ea(t.attributes.name)||"yandex-verification"===ea(t.attributes.name)||"csrf-token"===ea(t.attributes.name)||"p:domain_verify"===ea(t.attributes.name)||"verify-v1"===ea(t.attributes.name)||"verification"===ea(t.attributes.name)||"shopify-checkout-api-token"===ea(t.attributes.name)))return!0}}return!1}(R,v)&&(A||R.type!==mc.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?Fc():Lc;const O=Object.assign(R,{id:M});if(r.add(t,O),M===Lc)return null;S&&S(t);let $=!h;if(O.type===mc.Element){$=$&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&gc(e)&&(O.isShadowHost=!0)}if((O.type===mc.Document||O.type===mc.Element)&&$){v.headWhitespace&&O.type===mc.Element&&"head"===O.tagName&&(A=!1);const e={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:c,unblockSelector:o,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:h,inlineStylesheet:d,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:k,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:C};for(const n of Array.from(t.childNodes)){const t=na(n,e);t&&O.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=na(n,e);r&&(gc(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&yc(t.parentNode)&&gc(t.parentNode)&&(O.isShadow=!0),O.type===mc.Element&&"iframe"===O.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let s,i=!1;try{s=r.document.readyState}catch(t){return}if("complete"!==s){const r=Mc((()=>{i||(e(),i=!0)}),n);return void t.addEventListener("load",(()=>{Oc(r),i=!0,e()}))}const o="about:blank";if(r.location.href!==o||t.src===o||""===t.src)return Mc(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=t.contentDocument;if(e&&_){const n=na(e,{doc:e,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:k,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:C});n&&_(t,n)}}),T),O.type===mc.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===Ec(O.attributes.href))&&function(t,e,n){let r,s=!1;try{r=t.sheet}catch(t){return}if(r)return;const i=Mc((()=>{s||(e(),s=!0)}),n);t.addEventListener("load",(()=>{Oc(i),s=!0,e()}))}(t,(()=>{if(I){const e=na(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:c,maskTextClass:a,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:k,preserveWhiteSpace:A,onSerialize:S,onIframeLoad:_,iframeLoadTimeout:T,onStylesheetLoad:I,stylesheetLoadTimeout:x,keepIframeSrcFn:C});e&&I(t,e)}}),x),O}function ra(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}function sa(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const ia="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let oa={map:{},getId:()=>(console.error(ia),-1),getNode:()=>(console.error(ia),null),removeNodeFromMap(){console.error(ia)},has:()=>(console.error(ia),!1),reset(){console.error(ia)}};function ca(t,e,n={}){let r=null,s=0;return function(...i){const o=Date.now();s||!1!==n.leading||(s=o);const c=e-(o-s),a=this;c<=0||c>e?(r&&(!function(...t){Ca("clearTimeout")(...t)}(r),r=null),s=o,t.apply(a,i)):r||!1===n.trailing||(r=Ea((()=>{s=!1===n.leading?0:Date.now(),r=null,t.apply(a,i)}),c))}}function aa(t,e,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(t){Ea((()=>{n.set.call(this,t)}),0),i&&i.set&&i.set.call(this,t)}}),()=>aa(t,e,i||{},!0)}function ua(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(t){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(oa=new Proxy(oa,{get:(t,e,n)=>("map"===e&&console.error(ia),Reflect.get(t,e,n))}));let la=Date.now;function fa(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:ra([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||ra([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||ra([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:ra([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||ra([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||ra([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function ha(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function da(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function pa(t){if(!t)return null;return t.nodeType===t.ELEMENT_NODE?t:t.parentElement}function ma(t,e,n,r,s){if(!t)return!1;const i=pa(t);if(!i)return!1;const o=Qc(e,n);if(!s){const t=r&&i.matches(r);return o(i)&&!t}const c=Vc(i,o);let a=-1;return!(c<0)&&(r&&(a=Vc(i,Qc(null,r))),c>-1&&a<0||c<a)}function ya(t,e){return e.getId(t)===Lc}function ga(t,e){if(yc(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||ga(t.parentNode,e))}function va(t){return Boolean(t.changedTouches)}function ba(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function wa(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function ka(t){return Boolean(ra([t,"optionalAccess",t=>t.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(la=()=>(new Date).getTime());class Sa{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return e=this.styleIDMap.get(t),n=()=>-1,null!=e?e:n();var e,n}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}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 _a(t){let e=null;return ra([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Ta(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;for(;e=_a(n);)n=e;return n}(t);return e.contains(n)}function Ia(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||Ta(t))}const xa={};function Ca(t){const e=xa[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(r=s[t]),n.head.removeChild(e)}catch(t){}return xa[t]=r.bind(window)}function Ea(...t){return Ca("setTimeout")(...t)}var Aa=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Aa||{}),Ra=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Ra||{}),Ma=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(Ma||{}),Oa=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Oa||{});function $a(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}function Da(t){return"__ln"in t}class La{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 e=this.head;for(let n=0;n<t;n++)e=$a([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Da(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Da(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Fa=(t,e)=>`${t}@${e}`;class ja{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=[],e=new Set,n=new La,r=t=>{let e=t,n=Lc;for(;n===Lc;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{if(!s.parentNode||!Ia(s))return;const i=yc(s.parentNode)?this.mirror.getId(_a(s)):this.mirror.getId(s.parentNode),o=r(s);if(-1===i||-1===o)return n.addNode(s);const c=na(s,{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:t=>{ba(t,this.mirror)&&!ma(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),wa(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),ka(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{ma(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});c&&(t.push({parentId:i,nextId:o,node:c}),e.add(c.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Pa(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||s(t);for(const t of this.addedSet)Ua(this.droppedSet,t)||Pa(this.removes,t,this.mirror)?Ua(this.movedSet,t)?s(t):this.droppedSet.add(t):s(t);let i=null;for(;n.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==e&&-1!==n&&(t=i)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}i=t.previous,n.removeNode(t.value),s(t.value)}const o={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t.$t);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(o.texts.length||o.attributes.length||o.removes.length||o.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(o))},this.processMutation=t=>{if(!ya(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;ma(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Zc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,pa(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=xc(e),s=e.tagName;r=Cc(e,s,n);const i=kc({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=Sc({isMasked:Zc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:e,value:r,maskInputFn:this.maskInputFn})}if(ma(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let s=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(e.contentDocument)return;n="rr_src"}if(s||(s={node:t.target,attributes:{},styleDiff:{},$t:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Yc(e.tagName,n)&&(s.attributes[n]=Xc(this.doc,_c(e.tagName),_c(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||i!==n.style.getPropertyPriority(t)?s.styleDiff[t]=""===i?r:[r,i]:s.$t[t]=[r,i]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(s.styleDiff[t]=!1)}break}case"childList":if(ma(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=yc(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ma(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ya(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Na(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||ga(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Fa(n,r)]?Na(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!yc(t.target)||!gc(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(ya(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[Fa(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ma(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),ka(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}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 Na(t,e){t.delete(e),e.childNodes.forEach((e=>Na(t,e)))}function Pa(t,e,n){return 0!==t.length&&Ba(t,e,n)}function Ba(t,e,n){const{parentNode:r}=e;if(!r)return!1;const s=n.getId(r);return!!t.some((t=>t.id===s))||Ba(t,r,n)}function Ua(t,e){return 0!==t.size&&za(t,e)}function za(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||za(t,n))}let qa;function Ha(t){qa=t}function Wa(){qa=void 0}const Ja=t=>{if(!qa)return t;return(...e)=>{try{return t(...e)}catch(t){if(qa&&!0===qa(t))return()=>{};throw t}}};function Ka(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}const Ga=[];function Xa(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function Ya(t,e){const n=new ja;Ga.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const s=Ka([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r(Ja((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Va({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const c=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,a=[];let u=null;return Object.keys(Ma).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==c[t])).forEach((o=>{let c=_c(o);const l=(e=>o=>{const c=Xa(o);if(ma(c,r,s,i,!0))return;let a=null,l=e;if("pointerType"in o){switch(o.pointerType){case"mouse":a=Oa.Mouse;break;case"touch":a=Oa.Touch;break;case"pen":a=Oa.Pen}a===Oa.Touch&&(Ma[e]===Ma.MouseDown?l="TouchStart":Ma[e]===Ma.MouseUp&&(l="TouchEnd"))}else va(o)&&(a=Oa.Touch);null!==a?(u=a,(l.startsWith("Touch")&&a===Oa.Touch||l.startsWith("Mouse")&&a===Oa.Mouse)&&(a=null)):Ma[e]===Ma.Click&&(a=u,u=null);const f=va(o)?o.changedTouches[0]:o;if(!f)return;const h=n.getId(c),{clientX:d,clientY:p}=f;Ja(t)({type:Ma[l],id:h,x:d,y:p,...null!==a&&{pointerType:a}})})(o);if(window.PointerEvent)switch(Ma[o]){case Ma.MouseDown:case Ma.MouseUp:c=c.replace("mouse","pointer");break;case Ma.TouchStart:case Ma.TouchEnd:return}a.push(sa(c,l,e))})),Ja((()=>{a.forEach((t=>t()))}))}function Qa({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){return sa("scroll",Ja(ca(Ja((o=>{const c=Xa(o);if(!c||ma(c,r,s,i,!0))return;const a=n.getId(c);if(c===e&&e.defaultView){const n=fa(e.defaultView);t({id:a,x:n.left,y:n.top})}else t({id:a,x:c.scrollLeft,y:c.scrollTop})})),o.scroll||100)),e)}const Za=["INPUT","TEXTAREA","SELECT"],tu=new WeakMap;function eu({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:c,maskInputOptions:a,maskInputFn:u,sampling:l,userTriggeredOnInput:f,maskTextClass:h,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m}){function y(t){let n=Xa(t);const l=t.isTrusted,y=n&&Tc(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||Za.indexOf(y)<0||ma(n,r,s,i,!0))return;const v=n;if(v.classList.contains(o)||c&&v.matches(c))return;const b=xc(n);let w=Cc(v,y,b),k=!1;const S=kc({maskInputOptions:a,tagName:y,type:b}),_=Zc(n,h,p,d,m,S);"radio"!==b&&"checkbox"!==b||(k=n.checked),w=Sc({isMasked:_,element:n,value:w,maskInputFn:u}),g(n,f?{text:w,isChecked:k,userTriggered:l}:{text:w,isChecked:k});const T=n.name;"radio"===b&&T&&k&&e.querySelectorAll(`input[type="radio"][name="${T}"]`).forEach((t=>{if(t!==n){const e=Sc({isMasked:_,element:t,value:Cc(t,y,b),maskInputFn:u});g(t,f?{text:e,isChecked:!k,userTriggered:!1}:{text:e,isChecked:!k})}}))}function g(e,r){const s=tu.get(e);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){tu.set(e,r);const s=n.getId(e);Ja(t)({...r,id:s})}}const v=("last"===l.input?["change"]:["input","change"]).map((t=>sa(t,Ja(y),e))),b=e.defaultView;if(!b)return()=>{v.forEach((t=>t()))};const w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),k=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(...k.map((t=>aa(t[0],t[1],{set(){Ja(y)({target:this,isTrusted:!1})}},!1,b)))),Ja((()=>{v.forEach((t=>t()))}))}function nu(t){return function(t,e){if(ou("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||ou("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||ou("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||ou("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function ru(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function su({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const s="#document"===n.nodeName?Ka([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):Ka([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),i=Ka([s,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(Ka([s,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Ka([i,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=Ka([i,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(t){}return n}}),Ja((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function iu(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=Ya(t,t.doc));const s=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const s="number"==typeof e.mousemove?e.mousemove:50,i="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o,c=[];const a=ca(Ja((e=>{const n=Date.now()-o;t(c.map((t=>(t.timeOffset-=n,t))),e),c=[],o=null})),i),u=Ja(ca(Ja((t=>{const e=Xa(t),{clientX:n,clientY:s}=va(t)?t.changedTouches[0]:t;o||(o=la()),c.push({x:n,y:s,id:r.getId(e),timeOffset:la()-o}),a("undefined"!=typeof DragEvent&&t instanceof DragEvent?Ra.Drag:t instanceof MouseEvent?Ra.MouseMove:Ra.TouchMove)})),s,{trailing:!1})),l=[sa("mousemove",u,n),sa("touchmove",u,n),sa("drag",u,n)];return Ja((()=>{l.forEach((t=>t()))}))}(t),i=Va(t),o=Qa(t),c=function({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return sa("resize",Ja(ca(Ja((()=>{const e=ha(),s=da();n===e&&r===s||(t({width:Number(s),height:Number(e)}),n=e,r=s)})),200)),e)}(t,{win:n}),a=eu(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const c=Ja((o=>ca(Ja((i=>{const c=Xa(i);if(!c||ma(c,e,n,r,!0))return;const{currentTime:a,volume:u,muted:l,playbackRate:f}=c;t({type:o,id:s.getId(c),currentTime:a,volume:u,muted:l,playbackRate:f})})),i.media||500))),a=[sa("play",c(0),o),sa("pause",c(1),o),sa("seeked",c(2),o),sa("volumechange",c(3),o),sa("ratechange",c(4),o)];return Ja((()=>{a.forEach((t=>t()))}))}(t);let l=()=>{},f=()=>{},h=()=>{},d=()=>{};t.recordDOM&&(l=function({styleSheetRuleCb:t,mirror:e,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:Ja(((r,s,i)=>{const[o,c]=i,{id:a,styleId:u}=ru(s,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,adds:[{rule:o,index:c}]}),r.apply(s,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let o,c;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ja(((r,s,i)=>{const[o]=i,{id:c,styleId:a}=ru(s,e,n.styleMirror);return(c&&-1!==c||a&&-1!==a)&&t({id:c,styleId:a,removes:[{index:o}]}),r.apply(s,i)}))}),r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Ja(((r,s,i)=>{const[o]=i,{id:c,styleId:a}=ru(s,e,n.styleMirror);return(c&&-1!==c||a&&-1!==a)&&t({id:c,styleId:a,replace:o}),r.apply(s,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(c=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Ja(((r,s,i)=>{const[o]=i,{id:c,styleId:a}=ru(s,e,n.styleMirror);return(c&&-1!==c||a&&-1!==a)&&t({id:c,styleId:a,replaceSync:o}),r.apply(s,i)}))}));const a={};cu("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(cu("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),cu("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),cu("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(a).forEach((([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Ja(((r,s,i)=>{const[o,c]=i,{id:a,styleId:u}=ru(s.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,adds:[{rule:o,index:[...nu(s),c||0]}]}),r.apply(s,i)}))}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Ja(((r,s,i)=>{const[o]=i,{id:c,styleId:a}=ru(s.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||a&&-1!==a)&&t({id:c,styleId:a,removes:[{index:[...nu(s),o]}]}),r.apply(s,i)}))})})),Ja((()=>{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((([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule}))}))}(t,{win:n}),f=su(t,t.doc),h=function({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ja(((s,o,c)=>{const[a,u,l]=c;if(n.has(a))return i.apply(o,[a,u,l]);const{id:f,styleId:h}=ru(Ka([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(f&&-1!==f||h&&-1!==h)&&t({id:f,styleId:h,set:{property:a,value:u,priority:l},index:nu(o.parentRule)}),s.apply(o,c)}))});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Ja(((s,i,c)=>{const[a]=c;if(n.has(a))return o.apply(i,[a]);const{id:u,styleId:l}=ru(Ka([i,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:a},index:nu(i.parentRule)}),s.apply(i,c)}))}),Ja((()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o}))}(t,{win:n}),t.collectFonts&&(d=function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,n){const r=new i(t,e,n);return s.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const o=ua(e.fonts,"add",(function(e){return function(n){return Ea(Ja((()=>{const e=s.get(n);e&&(t(e),s.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(o),Ja((()=>{r.forEach((t=>t()))}))}(t)));const p=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=t;let c=!0;const a=Ja((()=>{const t=e.getSelection();if(!t||c&&Ka([t,"optionalAccess",t=>t.isCollapsed]))return;c=t.isCollapsed||!1;const a=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const o=t.getRangeAt(e),{startContainer:c,startOffset:u,endContainer:l,endOffset:f}=o;ma(c,r,s,i,!0)||ma(l,r,s,i,!0)||a.push({start:n.getId(c),startOffset:u,end:n.getId(l),endOffset:f})}o({ranges:a})}));return a(),sa("selectionchange",a)}(t),m=function({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?ua(n.customElements,"define",(function(t){return function(n,r,s){try{e({define:{name:n}})}catch(t){}return t.apply(this,[n,r,s])}})):()=>{}}(t),y=[];for(const e of t.plugins)y.push(e.observer(e.callback,n,e.options));return Ja((()=>{Ga.forEach((t=>t.reset())),Ka([r,"optionalAccess",t=>t.disconnect,"call",t=>t()]),s(),i(),o(),c(),a(),u(),l(),f(),h(),d(),p(),m(),y.forEach((t=>t()))}))}function ou(t){return void 0!==window[t]}function cu(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class au{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const s=n||this.getIdToRemoteIdMap(t),i=r||this.getRemoteIdToIdMap(t);let o=s.get(e);return o||(o=this.generateIdFn(),s.set(e,o),i.set(o,e)),o}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;const s=r.get(e);return s||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function uu(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}class lu{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new au(Fc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new au(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,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),uu([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case Aa.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:Aa.IncrementalSnapshot,data:{source:Ra.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Aa.Meta:case Aa.Load:case Aa.DomContentLoaded:return!1;case Aa.Plugin:return e;case Aa.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case Aa.IncrementalSnapshot:switch(e.data.source){case Ra.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Ra.Drag:case Ra.TouchMove:case Ra.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Ra.ViewportResize:return!1;case Ra.MediaInteraction:case Ra.MouseInteraction:case Ra.Scroll:case Ra.CanvasMutation:case Ra.Input:return this.replaceIds(e.data,t,["id"]),e;case Ra.StyleSheetRule:case Ra.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Ra.Font:return e;case Ra.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case Ra.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),uu([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const s of r)(Array.isArray(e[s])||"number"==typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(n,e[s]):e[s]=t.getId(n,e[s]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===mc.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class fu{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,e){if(!gc(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=Ya({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Qa({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Ea((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(su({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(ua(t.prototype,"attachShadow",(function(t){return function(r){const s=t.call(this,r);return this.shadowRoot&&Ia(this)&&n.addShadowRoot(this.shadowRoot,e),s}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class hu{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class du{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Sa,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:bc(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class pu{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...t){Ca("requestAnimationFrame")(...t)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let mu,yu;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=ge([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const gu=new wc;function vu(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:c="rr-ignore",ignoreSelector:a=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:f=null,maskTextSelector:h=null,unmaskTextSelector:d=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,maxCanvasSize:k=null,packFn:S,sampling:_={},dataURLOptions:T={},mousemoveWait:I,recordDOM:x=!0,recordCanvas:C=!1,recordCrossOriginIframes:E=!1,recordAfter:A=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:M=!1,inlineImages:O=!1,plugins:$,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:L=new Set([]),errorHandler:F,onMutation:j,getCanvasManager:N}=t;Ha(F);const P=!E||window.parent===window;let B=!1;if(!P)try{window.parent.document&&(B=!1)}catch(t){B=!0}if(P&&!e)throw new Error("emit function is required");void 0!==I&&void 0===_.mousemove&&(_.mousemove=I),gu.reset();const U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},z=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let q;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let H=0;const W=t=>{for(const e of $||[])e.eventProcessor&&(t=e.eventProcessor(t));return S&&!B&&(t=S(t)),t};mu=(t,s)=>{const i=t;if(i.timestamp=la(),!ge([Ga,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])||i.type===Aa.FullSnapshot||i.type===Aa.IncrementalSnapshot&&i.data.source===Ra.Mutation||Ga.forEach((t=>t.unfreeze())),P)ge([e,"optionalCall",t=>t(W(i),s)]);else if(B){const t={type:"rrweb",event:W(i),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(i.type===Aa.FullSnapshot)q=i,H=0;else if(i.type===Aa.IncrementalSnapshot){if(i.data.source===Ra.Mutation&&i.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&q&&i.timestamp-q.timestamp>n;(t||e)&&tt(!0)}};const J=t=>{mu({type:Aa.IncrementalSnapshot,data:{source:Ra.Mutation,...t}})},K=t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.Scroll,...t}}),G=t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.CanvasMutation,...t}}),X=new du({mutationCb:J,adoptedStyleSheetCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.AdoptedStyleSheet,...t}})}),Y=new lu({mirror:gu,mutationCb:J,stylesheetManager:X,recordCrossOriginIframes:E,wrappedEmit:mu});for(const t of $||[])t.getMirror&&t.getMirror({nodeMirror:gu,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const V=new pu,Q=function(t,e){try{return t?t(e):new hu}catch(t){return console.warn("Unable to initialize CanvasManager"),new hu}}(N,{mirror:gu,win:window,mutationCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.CanvasMutation,...t}}),recordCanvas:C,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:k,sampling:_.canvas,dataURLOptions:T,errorHandler:F}),Z=new fu({mutationCb:J,scrollCb:K,bypassOptions:{onMutation:j,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:U,dataURLOptions:T,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,recordCanvas:C,inlineImages:O,sampling:_,slimDOMOptions:z,iframeManager:Y,stylesheetManager:X,canvasManager:Q,keepIframeSrcFn:D,processedNodeManager:V},mirror:gu}),tt=(t=!1)=>{if(!x)return;mu({type:Aa.Meta,data:{href:window.location.href,width:da(),height:ha()}},t),X.reset(),Z.init(),Ga.forEach((t=>t.lock()));const e=function(t,e){const{mirror:n=new wc,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:f=!0,inlineImages:h=!1,recordCanvas:d=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:_,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:x=(()=>!1)}=e||{};return na(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:c,unmaskTextClass:a,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:h,recordCanvas:d,preserveWhiteSpace:w,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:_,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:gu,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:d,inlineStylesheet:p,maskAllInputs:U,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,slimDOM:z,dataURLOptions:T,recordCanvas:C,inlineImages:O,onSerialize:t=>{ba(t,gu)&&Y.addIframe(t),wa(t,gu)&&X.trackLinkElement(t),ka(t)&&Z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{Y.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),Z.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{X.attachLinkElement(t,e)},keepIframeSrcFn:D});if(!e)return console.warn("Failed to snapshot the document");mu({type:Aa.FullSnapshot,data:{node:e,initialOffset:fa(window)}}),Ga.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,gu.getId(document))};yu=tt;try{const t=[],e=t=>Ja(iu)({onMutation:j,mutationCb:J,mousemoveCb:(t,e)=>mu({type:Aa.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.MouseInteraction,...t}}),scrollCb:K,viewportResizeCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.ViewportResize,...t}}),inputCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.Input,...t}}),mediaInteractionCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.MediaInteraction,...t}}),styleSheetRuleCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.StyleSheetRule,...t}}),styleDeclarationCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.StyleDeclaration,...t}}),canvasMutationCb:G,fontCb:t=>mu({type:Aa.IncrementalSnapshot,data:{source:Ra.Font,...t}}),selectionCb:t=>{mu({type:Aa.IncrementalSnapshot,data:{source:Ra.Selection,...t}})},customElementCb:t=>{mu({type:Aa.IncrementalSnapshot,data:{source:Ra.CustomElement,...t}})},blockClass:s,ignoreClass:c,ignoreSelector:a,maskAllText:u,maskTextClass:l,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:d,maskInputOptions:U,inlineStylesheet:p,sampling:_,recordDOM:x,recordCanvas:C,inlineImages:O,userTriggeredOnInput:R,collectFonts:M,doc:t,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,keepIframeSrcFn:D,blockSelector:i,unblockSelector:o,slimDOMOptions:z,dataURLOptions:T,mirror:gu,iframeManager:Y,stylesheetManager:X,shadowDomManager:Z,processedNodeManager:V,canvasManager:Q,ignoreCSSAttributes:L,plugins:ge([$,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>mu({type:Aa.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});Y.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(sa("DOMContentLoaded",(()=>{mu({type:Aa.DomContentLoaded,data:{}}),"DOMContentLoaded"===A&&n()}))),t.push(sa("load",(()=>{mu({type:Aa.Load,data:{}}),"load"===A&&n()}),window))),()=>{t.forEach((t=>t())),V.destroy(),yu=void 0,Wa()}}catch(t){console.warn(t)}}vu.mirror=gu,vu.takeFullSnapshot=function(t){if(!yu)throw new Error("please take full snapshot after start recording");yu(t)};const bu=3;function wu(t){return t>9999999999?t:1e3*t}function ku(t){return t>9999999999?t/1e3:t}function Su(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:Aa.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:Ft(e,10,1e3)}}),"console"===e.category))))}const _u="button,a";function Tu(t){return t.closest(_u)||t}function Iu(t){const e=xu(t);return e&&e instanceof Element?Tu(e):e}function xu(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}let Cu;function Eu(t){return Cu||(Cu=[],B(ic,"open",(function(t){return function(...e){if(Cu)try{Cu.forEach((t=>t()))}catch(t){}return t.apply(ic,e)}}))),Cu.push(t),()=>{const e=Cu?Cu.indexOf(t):-1;e>-1&&Cu.splice(e,1)}}const Au=new Set([Ra.Mutation,Ra.StyleSheetRule,Ra.StyleDeclaration,Ra.AdoptedStyleSheet,Ra.CanvasMutation,Ra.Selection,Ra.MediaInteraction]);class Ru{constructor(t,e,n=Su){this.Dt=0,this.Lt=0,this.Ft=[],this.jt=e.timeout/1e3,this.Nt=e.threshold/1e3,this.Pt=e.scrollTimeout/1e3,this._replay=t,this.Bt=e.ignoreSelector,this.Ut=n}addListeners(){const t=Eu((()=>{this.Dt=Ou()}));this.zt=()=>{t(),this.Ft=[],this.Dt=0,this.Lt=0}}removeListeners(){this.zt&&this.zt(),this.qt&&clearTimeout(this.qt)}handleClick(t,e){if(function(t,e){if(!Mu.includes(t.tagName))return!0;if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e&&t.matches(e))return!0;return!1}(e,this.Bt)||!function(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:ku(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this.Ft.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this.Ft.push(n),1===this.Ft.length&&this.Ht())}registerMutation(t=Date.now()){this.Dt=ku(t)}registerScroll(t=Date.now()){this.Lt=ku(t)}registerClick(t){const e=Tu(t);this.Wt(e)}Wt(t){this.Jt(t).forEach((t=>{t.clickCount++}))}Jt(t){return this.Ft.filter((e=>e.node===t))}Kt(){const t=[],e=Ou();this.Ft.forEach((n=>{!n.mutationAfter&&this.Dt&&(n.mutationAfter=n.timestamp<=this.Dt?this.Dt-n.timestamp:void 0),!n.scrollAfter&&this.Lt&&(n.scrollAfter=n.timestamp<=this.Lt?this.Lt-n.timestamp:void 0),n.timestamp+this.jt<=e&&t.push(n)}));for(const e of t){const t=this.Ft.indexOf(e);t>-1&&(this.Gt(e),this.Ft.splice(t,1))}this.Ft.length&&this.Ht()}Gt(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this.Pt,r=t.mutationAfter&&t.mutationAfter<=this.Nt,s=!n&&!r,{clickCount:i,clickBreadcrumb:o}=t;if(s){const n=1e3*Math.min(t.mutationAfter||this.jt,this.jt),r=n<1e3*this.jt?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:ic.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this.Ut(e,s)}else if(i>1){const t={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:ic.location.href,route:e.getCurrentRoute(),clickCount:i,metric:!0}};this.Ut(e,t)}}Ht(){this.qt&&clearTimeout(this.qt),this.qt=no((()=>this.Kt()),1e3)}}const Mu=["A","BUTTON","INPUT"];function Ou(){return Date.now()/1e3}function $u(t,e){try{if(!function(t){return t.type===bu}(e))return;const{source:n}=e.data;if(Au.has(n)&&t.registerMutation(e.timestamp),n===Ra.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===Ra.MouseInteraction}(e)){const{type:n,id:r}=e.data,s=vu.mirror.getNode(r);s instanceof HTMLElement&&n===Ma.Click&&t.registerClick(s)}}catch(t){}}function Du(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Lu;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Lu||(Lu={}));const Fu=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ju(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Fu.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const Nu=t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?Iu(t.event):xu(t.event),n=C(r,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:r,message:n}}(t);return Du({category:`ui.${t.name}`,...Pu(e,n)})}(e);if(!n)return;const r="click"===e.name,s=r?e.event:void 0;var i,o,c;!(r&&t.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(i=t.clickDetector,o=n,c=Iu(e.event),i.handleClick(o,c)),Su(t,n)};function Pu(t,e){const n=vu.mirror.getId(t),r=n&&vu.mirror.getNode(n),s=r&&vu.mirror.getMeta(r),i=s&&function(t){return t.type===Lu.Element}(s)?s:null;return{message:e,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((t=>t.type===Lu.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:ju(i.attributes)}}:{}}}function Bu(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=t;if(!o||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(o)||!i)return null;const c=e||r||s,a=1===i.length;if(!c&&a)return null;const u=C(o,{maxStringLength:200})||"<unknown>",l=Pu(o,u);return Du({category:"ui.keyDown",message:u,data:{...l.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}(e);n&&Su(t,n)}const Uu={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:c,responseStatus:a,transferSize:u}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${e}.${n}`,start:Hu(i),end:Hu(s),name:r,data:{size:u,statusCode:a,decodedBodySize:o,encodedBodySize:c}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:s}=t,i=Hu(s);return{type:n,name:r,start:i,end:i+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,domInteractive:u,loadEventStart:l,loadEventEnd:f,redirectCount:h,startTime:d,transferSize:p,type:m}=t;if(0===s)return null;return{type:`${e}.${m}`,start:Hu(d),end:Hu(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:c,domContentLoadedEventEnd:a,loadEventStart:l,loadEventEnd:f,domComplete:i,redirectCount:h}}}};function zu(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function qu(t){const e=Uu[t.entryType];return e?e(t):null}function Hu(t){return((yt||ic.performance.timeOrigin)+t)/1e3}function Wu(t){const e=t.entries[t.entries.length-1];return Yu(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function Ju(t){return void 0!==t.sources}function Ku(t){const e=[],n=[];for(const r of t.entries)if(Ju(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=vu.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return Yu(t,"cumulative-layout-shift",n,e)}function Gu(t){const e=t.entries[t.entries.length-1];return Yu(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function Xu(t){const e=t.entries[t.entries.length-1];return Yu(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function Yu(t,e,n,r){const s=t.value,i=t.rating,o=Hu(s);return{type:"web-vital",name:e,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map((t=>vu.mirror.getId(t))):void 0,attributions:r}}}const Vu='var 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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(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,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(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},A=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},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=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:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}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 a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),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=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+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(C,U,0),R=C;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[a[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=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(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;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];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}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[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=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[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-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});';class Qu extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Zu{constructor(){this.events=[],this.Xt=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this.Xt+=e,this.Xt>fc)throw new Qu;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this.Xt=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?wu(t):null}}class tl{constructor(t){this.Yt=t,this.Vt=0}ensureReady(){return this.Qt||(this.Qt=new Promise(((t,e)=>{this.Yt.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this.Yt.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this.Qt}destroy(){this.Yt.terminate()}postMessage(t,e){const n=this.Zt();return new Promise(((r,s)=>{const i=({data:e})=>{const o=e;o.method===t&&o.id===n&&(this.Yt.removeEventListener("message",i),o.success?r(o.response):s(new Error("Error in compression worker")))};this.Yt.addEventListener("message",i),this.Yt.postMessage({id:n,method:t,arg:e})}))}Zt(){return this.Vt++}}class el{constructor(t){this.Yt=new tl(t),this.te=null,this.Xt=0,this.hasCheckout=!1}get hasEvents(){return!!this.te}get type(){return"worker"}ensureReady(){return this.Yt.ensureReady()}destroy(){this.Yt.destroy()}addEvent(t){const e=wu(t.timestamp);(!this.te||e<this.te)&&(this.te=e);const n=JSON.stringify(t);return this.Xt+=n.length,this.Xt>fc?Promise.reject(new Qu):this.ee(n)}finish(){return this.ne()}clear(){this.te=null,this.Xt=0,this.hasCheckout=!1,this.Yt.postMessage("clear").then(null,(t=>{}))}getEarliestTimestamp(){return this.te}ee(t){return this.Yt.postMessage("addEvent",t)}async ne(){const t=await this.Yt.postMessage("finish");return this.te=null,this.Xt=0,t}}class nl{constructor(t){this.re=new Zu,this.se=new el(t),this.ie=this.re,this.oe=this.ce()}get type(){return this.ie.type}get hasEvents(){return this.ie.hasEvents}get hasCheckout(){return this.ie.hasCheckout}set hasCheckout(t){this.ie.hasCheckout=t}destroy(){this.re.destroy(),this.se.destroy()}clear(){return this.ie.clear()}getEarliestTimestamp(){return this.ie.getEarliestTimestamp()}addEvent(t){return this.ie.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this.ie.finish()}ensureWorkerIsLoaded(){return this.oe}async ce(){try{await this.se.ensureReady()}catch(t){return}await this.ae()}async ae(){const{events:t,hasCheckout:e}=this.re,n=[];for(const e of t)n.push(this.se.addEvent(e));this.se.hasCheckout=e,this.ie=this.se;try{await Promise.all(n)}catch(t){}}}function rl({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=function(t){try{const e=t||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const t=new Blob([Vu]);return URL.createObjectURL(t)}();return""}();if(!e)return;const n=new Worker(e);return new nl(n)}catch(t){}}(e);if(t)return t}return new Zu}function sl(){try{return"sessionStorage"in ic&&!!ic.sessionStorage}catch(t){return!1}}function il(t){!function(){if(!sl())return;try{ic.sessionStorage.removeItem(oc)}catch(t){}}(),t.session=void 0}function ol(t){return void 0!==t&&Math.random()<t}function cl(t){const e=Date.now();return{id:t.id||At(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function al(t){if(sl())try{ic.sessionStorage.setItem(oc,JSON.stringify(t))}catch(t){}}function ul({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=function(t,e){return ol(t)?"session":!!e&&"buffer"}(t,e),i=cl({sampled:s,previousSessionId:r});return n&&al(i),i}function ll(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function fl(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return ll(t.started,e,r)||ll(t.lastActivity,n,r)}function hl(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!!fl(t,{sessionIdleExpire:e,maxReplayDuration:n})&&("buffer"!==t.sampled||0!==t.segmentId)}function dl({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const s=r.stickySession&&function(){if(!sl())return null;try{const t=ic.sessionStorage.getItem(oc);return t?cl(JSON.parse(t)):null}catch(t){return null}}();return s?hl(s,{sessionIdleExpire:t,maxReplayDuration:e})?ul(r,{previousSessionId:s.id}):s:ul(r,{previousSessionId:n})}function pl(t,e,n){return!!yl(t,e)&&(ml(t,e,n),!0)}async function ml(t,e,n){if(!t.eventBuffer)return null;try{n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=function(t,e){try{if("function"==typeof e&&function(t){return t.type===Aa.Custom}(t))return e(t)}catch(t){return null}return t}(e,t.getOptions().beforeAddRecordingEvent);if(!r)return;return await t.eventBuffer.addEvent(r)}catch(e){const n=e&&e instanceof Qu?"addEventSizeExceeded":"addEvent";t.handleException(e),await t.stop({reason:n});const r=Pe();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function yl(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=wu(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)}function gl(t){return!t.type}function vl(t){return"transaction"===t.type}function bl(t){return"feedback"===t.type}function wl(t){return(e,n)=>{if(!t.isEnabled()||!gl(e)&&!vl(e))return;const r=n&&n.statusCode;!r||r<200||r>=300||(vl(e)?function(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,e):function(t,e){const n=t.getContext();e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id);if("buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();if("function"==typeof r&&!r(e))return;no((()=>{t.sendBufferedReplayOrFlush()}))}(t,e))}}function kl(t){return e=>{t.isEnabled()&&gl(e)&&function(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].value;if("string"!=typeof n)return;if(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)){Su(t,Du({category:"replay.hydrate-error",data:{url:A()}}))}}(t,e)}}function Sl(t){const e=Pe();e&&e.on("beforeAddBreadcrumb",(e=>function(t,e){if(!t.isEnabled()||!_l(e))return;const n=function(t){if(!_l(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Du(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>lc?(n=!0,`${t.slice(0,lc)}…`):t;if("object"==typeof t)try{const e=Ft(t,7);return JSON.stringify(e).length>lc?(n=!0,`${JSON.stringify(e,null,2).slice(0,lc)}…`):e}catch(t){}return t}));return Du({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return Du(t)}(e);n&&Su(t,n)}(t,e)))}function _l(t){return!!t.category}function Tl(t){return Object.assign(((e,n)=>{if(!t.isEnabled())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!gl(e)&&!vl(e)&&!bl(e))return e;if(!t.checkAndHandleExpiredSession())return e;if(bl(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:Aa.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length||!e.originalException||!e.originalException.__rrweb__)}(e,n)&&!t.getOptions()._experiments.captureExceptions)return null;const r=function(t,e){return"buffer"===t.recordingMode&&e.message!==ac&&!(!e.exception||e.type)&&ol(t.getOptions().errorSampleRate)}(t,e);return(r||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e}),{id:"Replay"})}function Il(t,e){return e.map((({type:e,start:n,end:r,name:s,data:i})=>{const o=t.throttledAddEvent({type:Aa.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:s,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof o?Promise.resolve(null):o}))}function xl(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(Il(t,[n]),!1))))}}function Cl(t,e){t.isEnabled()&&(null!==e&&(Lr(e.name,Pe())||t.addUpdate((()=>(Il(t,[e]),!0)))))}function El(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Fl(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function Al(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Rl(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Fl(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ml(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function Ol(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:c,response:a}=e;return{type:t,start:n/1e3,end:r/1e3,name:s,data:K({method:i,statusCode:o,request:c,response:a})}}function $l(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Dl(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:i}=function(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>uc,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,uc);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch(t){}return{body:t}}(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function Ll(t,e){return Object.entries(t).reduce(((n,[r,s])=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=s),n}),{})}function Fl(t){return new URLSearchParams(t).toString()}function jl(t,e){const n=function(t,e=ic.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(ic.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;if(!t.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(t);return g(n,e)}async function Nl(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=e,{url:o,method:c,status_code:a=0,request_body_size:u,response_body_size:l}=t.data,f=jl(o,n.networkDetailAllowUrls)&&!jl(o,n.networkDetailDenyUrls),h=f?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?function(t,e){if(1===t.length&&"string"!=typeof t[0])return Ul(t[0],e);if(2===t.length)return Ul(t[1],e);return{}}(n,e):{};if(!t)return Dl(s,r,void 0);const i=Pl(n),[o,c]=Rl(i),a=Dl(s,r,o);if(c)return Ml(a,c);return a}(n,e.input,u):$l(u),d=await async function(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,s){if(!t&&void 0!==s)return $l(s);const i=r?Bl(r.headers,n):{};if(!r||!e&&void 0!==s)return Dl(i,s,void 0);const[o,c]=await async function(t){const e=function(t){try{return t.clone()}catch(t){}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await function(t){return new Promise(((e,n)=>{const r=no((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(t){return await t.text()})(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}(e);return[t]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}}(r),a=function(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:s}){try{const i=t&&t.length&&void 0===n?El(t):n;return r?Dl(s,i,e?t:void 0):$l(i)}catch(t){return Dl(s,n,void 0)}}(o,{networkCaptureBodies:e,responseBodySize:s,captureDetails:t,headers:i});if(c)return Ml(a,c);return a}(f,n,e.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:a,request:h,response:d}}(t,e,n),s=Ol("resource.fetch",r);Cl(n.replay,s)}catch(t){}}function Pl(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function Bl(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function Ul(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Bl(n,e):Array.isArray(n)?{}:Ll(n,e):{}}async function zl(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:c}=e,{url:a,method:u,status_code:l=0,request_body_size:f,response_body_size:h}=t.data;if(!a)return null;if(!c||!jl(a,n.networkDetailAllowUrls)||jl(a,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:$l(f),response:$l(h)}}const d=c[ro],p=d?Ll(d.request_headers,n.networkRequestHeaders):{},m=Ll(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{})}(c),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?Rl(o):[void 0],[v,b]=n.networkCaptureBodies?function(t){try{return[t.responseText]}catch(t){}try{return function(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(t){}return[void 0]}(c):[void 0],w=Dl(p,f,y),k=Dl(m,h,v);return{startTimestamp:s,endTimestamp:i,url:a,method:u,statusCode:l,request:g?Ml(w,g):w,response:b?Ml(k,b):k}}(t,e,n),s=Ol("resource.xhr",r);Cl(n.replay,s)}catch(t){}}function ql(t,e){const{xhr:n,input:r}=e;if(!n)return;const s=El(r),i=n.getResponseHeader("content-length")?Al(n.getResponseHeader("content-length")):function(t,e){try{return El("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch(t){return}}(n.response,n.responseType);void 0!==s&&(t.data.request_body_size=s),void 0!==i&&(t.data.response_body_size=i)}function Hl(t){const e=Pe();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=t.getOptions(),c={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};e&&e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(ql(e,n),zl(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(!function(t,e){const{input:n,response:r}=e,s=El(n?Pl(n):void 0),i=r?Al(r.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==i&&(t.data.response_body_size=i)}(e,n),Nl(e,n,t))}catch(t){}}(c,t,e)))}catch(t){}}function Wl(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Jl(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return;const s=r||!e;e=!0,t.clickDetector&&$u(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&s&&t.setInitialState(),!pl(t,n,s))return!0;if(!s)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return;pl(t,function(t){const e=t.getOptions();return{type:Aa.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,s),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&al(t.session))}return"session"===t.recordingMode&&t.flush(),!0}))}}async function Kl({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:c,errorIds:a,traceIds:u,initialTimestamp:l}=r,f=Pe(),h=Le(),d=f&&f.getTransport(),p=f&&f.getDsn();if(!(f&&d&&p&&i.sampled))return Bt({});const m={type:cc,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:a,trace_ids:u,urls:c,replay_id:e,segment_id:n,replay_type:i.sampled},y=await async function({client:t,scope:e,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,s);const i=await rr(t.getOptions(),r,s,e,t,Fe());if(!i)return null;i.platform=i.platform||"javascript";const o=t.getSdkMetadata(),{name:c,version:a}=o&&o.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:a||"0.0.0"},i}({scope:h,client:f,replayId:e,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),Bt({});delete y.sdkProcessingMetadata;const g=function(t,e,n,r){return re(de(t,he(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(y,o,p,f.getOptions().tunnel);let v;try{v=await d.send(g)}catch(t){const e=new Error(ac);try{e.cause=t}catch(t){}throw e}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Gl(v.statusCode);const b=ye({},v);if(me(b,"replay"))throw new Xl(b);return v}class Gl extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Xl extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Yl(t,e={count:0,interval:5e3}){const{recordingData:n,options:r}=t;if(n.length)try{return await Kl(t),!0}catch(n){if(n instanceof Gl||n instanceof Xl)throw n;if(ar("Replays",{ue:e.count}),e.count>=3){const t=new Error(`${ac} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{no((async()=>{try{await Yl(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const Vl="__THROTTLED";function Ql(t,e,n){const r=new Map;let s=!1;return(...i)=>{const o=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(o),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=s;return s=!0,t?"__SKIPPED":Vl}s=!1;const c=r.get(o)||0;return r.set(o,c+1),t(...i)}}class Zl{constructor({options:t,recordingOptions:e}){Zl.prototype.__init.call(this),Zl.prototype.__init2.call(this),Zl.prototype.__init3.call(this),Zl.prototype.__init4.call(this),Zl.prototype.__init5.call(this),Zl.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this.le=Date.now(),this.bt=!1,this.fe=!1,this.he=!1,this.de=!1,this.pe={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this.me=e,this.ct=t,this.ye=function(t,e,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,e):0;function c(){return a(),r=t(),r}function a(){void 0!==s&&clearTimeout(s),void 0!==i&&clearTimeout(i),s=i=void 0}function u(){return s&&clearTimeout(s),s=no(c,e),o&&void 0===i&&(i=no(c,o)),r}return u.cancel=a,u.flush=function(){return void 0!==s||void 0!==i?c():r},u}((()=>this.ge()),this.ct.flushMinDelay,{maxWait:this.ct.flushMaxDelay}),this.ve=Ql(((t,e)=>function(t,e,n){return yl(t,e)?ml(t,e,n):Promise.resolve(null)}(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;s&&(this.clickDetector=new Ru(this,s))}getContext(){return this.pe}isEnabled(){return this.bt}isPaused(){return this.fe}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this.ct}handleException(t){}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this.ct,r=e<=0&&n<=0;this.he=r,r||(this.be(t),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.we()))}start(){if(this.bt&&"session"===this.recordingMode)return;if(this.bt&&"buffer"===this.recordingMode)return;this.ke();const t=dl({maxReplayDuration:this.ct.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this.ct.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.we()}startBuffering(){if(this.bt)return;const t=dl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this.ct.maxReplayDuration},{stickySession:this.ct.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this.we()}startRecording(){try{const t=this._canvas;this.Se=vu({...this.me,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Jl(this),onMutation:this._e,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this.Se&&(this.Se(),this.Se=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this.bt){this.bt=!1;try{this.Te(),this.stopRecording(),this.ye.cancel(),t&&await this.ge({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,il(this)}catch(t){this.handleException(t)}}}pause(){this.fe||(this.fe=!0,this.stopRecording())}resume(){this.fe&&this.Ie()&&(this.fe=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.ke(e),this.xe(e),this.Ce()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this.ye()}triggerUserActivity(){if(this.ke(),this.Se)this.checkAndHandleExpiredSession(),this.xe();else{if(!this.Ie())return;this.resume()}}updateUserActivity(){this.ke(),this.xe()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this.ye()}flushImmediate(){return this.ye(),this.ye.flush()}cancelFlush(){this.ye.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this.le&&ll(this.le,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this.Ie();this.pause()}setInitialState(){const t=`${ic.location.pathname}${ic.location.hash}${ic.location.search}`,e=`${ic.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this.Ee(),this.pe.initialUrl=e,this.pe.initialTimestamp=Date.now(),this.pe.urls.push(e)}throttledAddEvent(t,e){const n=this.ve(t,e);if(n===Vl){const t=Du({category:"replay.throttled"});this.addUpdate((()=>!pl(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||mn(),e=t&&pn(t),n=(e&&cn(e).data||{})[ze];if(e&&n&&["route","custom"].includes(n))return cn(e).description}we(){this.setInitialState(),this.xe(),this.eventBuffer=rl({useCompression:this.ct.useCompression,workerUrl:this.ct.workerUrl}),this.Te(),this.Ae(),this.bt=!0,this.fe=!1,this.startRecording()}be(t){const e=this.ct.errorSampleRate>0,n=dl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this.ct.maxReplayDuration,previousSessionId:t},{stickySession:this.ct.stickySession,sessionSampleRate:this.ct.sessionSampleRate,allowBuffering:e});this.session=n}Ie(){if(!this.session)return!1;const t=this.session;return!hl(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this.ct.maxReplayDuration})||(this.Re(t),!1)}async Re(t){this.bt&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}Ae(){try{ic.document.addEventListener("visibilitychange",this.Me),ic.addEventListener("blur",this.Oe),ic.addEventListener("focus",this.$e),ic.addEventListener("keydown",this.De),this.clickDetector&&this.clickDetector.addListeners(),this.de||(!function(t){const e=Pe();Gi(Nu(t)),Vi(xl(t)),Sl(t),Hl(t),mr(Tl(t)),e&&(e.on("beforeSendEvent",kl(t)),e.on("afterSendEvent",wl(t)),e.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),e.on("spanStart",(e=>{t.lastActiveSpan=e})),e.on("spanEnd",(e=>{t.lastActiveSpan=e})),e.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}(this),this.de=!0)}catch(t){this.handleException(t)}this.Le=function(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(vi(t,n))})),r.push(mi(zu(Wu,t)),pi(zu(Ku,t)),yi(zu(Gu,t)),gi(zu(Xu,t))),()=>{r.forEach((t=>t()))}}(this)}Te(){try{ic.document.removeEventListener("visibilitychange",this.Me),ic.removeEventListener("blur",this.Oe),ic.removeEventListener("focus",this.$e),ic.removeEventListener("keydown",this.De),this.clickDetector&&this.clickDetector.removeListeners(),this.Le&&this.Le()}catch(t){this.handleException(t)}}__init(){this.Me=()=>{"visible"===ic.document.visibilityState?this.Fe():this.je()}}__init2(){this.Oe=()=>{const t=Du({category:"ui.blur"});this.je(t)}}__init3(){this.$e=()=>{const t=Du({category:"ui.focus"});this.Fe(t)}}__init4(){this.De=t=>{Bu(this,t)}}je(t){if(!this.session)return;fl(this.session,{maxReplayDuration:this.ct.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this.Ne(t),this.conditionalFlush())}Fe(t){if(!this.session)return;this.checkAndHandleExpiredSession()&&t&&this.Ne(t)}ke(t=Date.now()){this.le=t}xe(t=Date.now()){this.session&&(this.session.lastActivity=t,this.Ce())}Ne(t){this.addUpdate((()=>{this.throttledAddEvent({type:Aa.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}Pe(){const t=(e=this.performanceEntries,e.map(qu).filter(Boolean)).concat(this.replayPerformanceEntries);var e;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Il(this,t))}Ee(){this.pe.errorIds.clear(),this.pe.traceIds.clear(),this.pe.urls=[]}Be(){const{session:t,eventBuffer:e}=this;if(!t||!e||this.he)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this.pe.initialTimestamp&&(this.pe.initialTimestamp=n)}Ue(){const t={initialTimestamp:this.pe.initialTimestamp,initialUrl:this.pe.initialUrl,errorIds:Array.from(this.pe.errorIds),traceIds:Array.from(this.pe.traceIds),urls:this.pe.urls};return this.Ee(),t}async ze(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t&&(await this.Pe(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(Il(t,[Wl(ic.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&t===this.getSessionId())))try{this.Be();const e=Date.now();if(e-this.pe.initialTimestamp>this.ct.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this.Ue(),r=this.session.segmentId++;this.Ce();const s=await this.eventBuffer.finish();await Yl({replayId:t,recordingData:s,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:e})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=Pe();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this.ge=async({force:t=!1}={})=>{if(!this.bt&&!t)return;if(!this.checkAndHandleExpiredSession())return;if(!this.session)return;const e=this.session.started,n=Date.now()-e;this.ye.cancel();const r=n<this.ct.minReplayDuration,s=n>this.ct.maxReplayDuration+5e3;if(r||s)r&&this.ye();else{if(!this.qe)return this.qe=this.ze(),await this.qe,void(this.qe=void 0);try{await this.qe}catch(t){}finally{this.ye()}}}}Ce(){this.session&&this.ct.stickySession&&al(this.session)}__init6(){this._e=t=>{const e=t.length,n=this.ct.mutationLimit,r=n&&e>n;if(e>this.ct.mutationBreadcrumbLimit||r){const t=Du({category:"replay.mutations",data:{count:e,limit:r}});this.Ne(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function tf(t,e){return[...t,...e].join(",")}const ef='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',nf=["content-length","content-type","accept"];let rf=!1;class sf{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:i=!0,workerUrl:o,_experiments:c={},maskAllText:a=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:d=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:k=["title","placeholder"],unmask:S=[],block:_=[],unblock:T=[],ignore:I=[],maskFn:x,beforeAddRecordingEvent:C,beforeErrorSampling:E}={}){this.name=sf.id;const A=function({mask:t,unmask:e,block:n,unblock:r,ignore:s}){return{maskTextSelector:tf(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:tf(e,[]),blockSelector:tf(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:tf(r,[]),ignoreSelector:tf(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:S,block:_,unblock:T,ignore:I});if(this.me={maskAllInputs:u,maskAllText:a,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(t,e,n)=>function({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return r?s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?i:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:k,maskAllText:a,privacyOptions:A,key:t,value:e,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}}},this.He={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,hc),stickySession:s,useCompression:i,workerUrl:o,blockAllMedia:l,maskAllInputs:u,maskAllText:a,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:d,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:of(v),networkResponseHeaders:of(b),beforeAddRecordingEvent:C,beforeErrorSampling:E,_experiments:c},this.He.blockAllMedia&&(this.me.blockSelector=this.me.blockSelector?`${this.me.blockSelector},${ef}`:ef),this.We&&Et())throw new Error("Multiple Sentry Session Replay instances are not supported");this.We=!0}get We(){return rf}set We(t){rf=t}afterAllSetup(t){Et()&&!this._replay&&(this.Je(t),this.Ke(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}Ke(t){this._replay&&(this.Ge(t),this._replay.initializeSampling())}Je(t){const e=function(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...K(t)},s=Mn(n.replaysSessionSampleRate),i=Mn(n.replaysOnErrorSampleRate);null==s&&null==i&&$((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=s&&(r.sessionSampleRate=s);null!=i&&(r.errorSampleRate=i);return r}(this.He,t);this._replay=new Zl({options:e,recordingOptions:this.me})}Ge(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(t){}}}function of(t){return[...nf,...t.map((t=>t.toLowerCase()))]}return sf.__initStatic(),vn(),t.BrowserClient=Is,t.SDK_VERSION=S,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=He,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=We,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=qe,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=ze,t.Scope=Ee,t.WINDOW=us,t.addBreadcrumb=Nr,t.addEventProcessor=mr,t.addIntegration=function(t){const e=Pe();e&&e.addIntegration(t)},t.breadcrumbsIntegration=Ro,t.browserApiErrorsIntegration=Oo,t.browserTracingIntegration=(t={})=>{vn();const{enableInp:e,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:i},beforeStartSpan:o,idleTimeout:c,finalTimeout:a,childSpanTimeout:u,markBackgroundSpan:l,traceFetch:f,traceXHR:h,shouldCreateSpanForRequest:d,enableHTTPTimings:p,instrumentPageLoad:m,instrumentNavigation:y}={...Qo,...t},g=Pi({recordClsStandaloneSpans:i||!1});e&&ao(),r&&_.PerformanceObserver&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((t=>{if(mn())for(const e of t.getEntries()){if(!e.scripts[0])continue;const t=Oi(yt+e.startTime),n=Oi(e.duration),r={[We]:"auto.ui.browser.metrics"},s=e.scripts[0],{invoker:i,invokerType:o,sourceURL:c,sourceFunctionName:a,sourceCharPosition:u}=s;r["browser.script.invoker"]=i,r["browser.script.invoker_type"]=o,c&&(r["code.filepath"]=c),a&&(r["code.function"]=a),-1!==u&&(r["browser.script.source_char_position"]=u);const l=Pn({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:t,attributes:r});l&&l.end(t+n)}})).observe({type:"long-animation-frame",buffered:!0}):n&&vi("longtask",(({entries:t})=>{if(mn())for(const e of t){const t=Oi(yt+e.startTime),n=Oi(e.duration),r=Pn({name:"Main UI thread blocked",op:"ui.long-task",startTime:t,attributes:{[We]:"auto.ui.browser.metrics"}});r&&r.end(t+n)}})),s&&vi("event",(({entries:t})=>{if(mn())for(const e of t)if("click"===e.name){const t=Oi(yt+e.startTime),n=Oi(e.duration),r={name:C(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[We]:"auto.ui.browser.metrics"}},s=R(e.target);s&&(r.attributes["ui.component_name"]=s);const i=Pn(r);i&&i.end(t+n)}}));const v={name:void 0,source:void 0};function b(t,e){const n="pageload"===e.op,r=o?o(e):e,s=r.attributes||{};e.name!==r.name&&(s[ze]="custom",r.attributes=s),v.name=r.name,v.source=s[ze];const l=Qn(r,{idleTimeout:c,finalTimeout:a,childSpanTimeout:u,disableAutoFinish:n,beforeSpanEnd:t=>{g(),Bi(t,{recordClsOnPageloadSpan:!i})}});function f(){["interactive","complete"].includes(us.document.readyState)&&t.emit("idleSpanEnableAutoFinish",l)}return n&&us.document&&(us.document.addEventListener("readystatechange",(()=>{f()})),f()),l}return{name:"BrowserTracing",afterAllSetup(t){let n,r=us.location&&us.location.href;t.on("startNavigationSpan",(e=>{Pe()===t&&(n&&!cn(n).timestamp&&n.end(),n=b(t,{op:"navigation",...e}))})),t.on("startPageLoadSpan",((e,r={})=>{if(Pe()!==t)return;n&&!cn(n).timestamp&&n.end();const s=ee(r.sentryTrace||ec("sentry-trace"),r.baggage||ec("baggage"));Le().setPropagationContext(s),n=b(t,{op:"pageload",...e})})),t.on("spanEnd",(t=>{const e=cn(t).op;if(t!==pn(t)||"navigation"!==e&&"pageload"!==e)return;const n=Le(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:an(t),dsc:r.dsc||Rn(t)})})),us.location&&(m&&Zo(t,{name:us.location.pathname,startTime:yt?yt/1e3:void 0,attributes:{[ze]:"url",[We]:"auto.pageload.browser"}}),y&&Vi((({to:e,from:n})=>{void 0===n&&r&&-1!==r.indexOf(e)?r=void 0:n!==e&&(r=void 0,tc(t,{name:us.location.pathname,attributes:{[ze]:"url",[We]:"auto.navigation.browser"}}))}))),l&&us&&us.document&&us.document.addEventListener("visibilitychange",(()=>{const t=mn();if(!t)return;const e=pn(t);if(us.document.hidden&&e){const t="cancelled",{op:n,status:r}=cn(e);r||e.setStatus({code:Qe,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})),s&&function(t,e,n,r){let s;const i=()=>{const i="ui.action.click",o=mn(),c=o&&pn(o);if(c){const t=cn(c).op;if(["navigation","pageload"].includes(t))return}s&&(s.setAttribute(Je,"interactionInterrupted"),s.end(),s=void 0),r.name&&(s=Qn({name:r.name,op:i,attributes:{[ze]:r.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n}))};us.document&&addEventListener("click",i,{once:!1,capture:!0})}(c,a,u,v),e&&function(t){const e=({entries:t})=>{const e=mn(),n=e&&pn(e);t.forEach((t=>{if(!function(t){return"duration"in t}(t)||!n)return;const e=t.interactionId;if(null!=e&&!co.has(e)){if(oo.length>10){const t=oo.shift();co.delete(t)}oo.push(e),co.set(e,n)}}))};vi("event",e),vi("first-input",e)}(),Go(t,{traceFetch:f,traceXHR:h,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}}},t.captureEvent=cr,t.captureException=captureException,t.captureMessage=function(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return Le().captureMessage(t,n,r)},t.captureSession=br,t.captureUserFeedback=function(t){const e=Pe();e&&e.captureUserFeedback(t)},t.chromeStackLineParser=yo,t.close=async function(t){const e=Pe();return e?e.close(t):Promise.resolve(!1)},t.continueTrace=({sentryTrace:t,baggage:e},n)=>Ne((r=>{const s=ee(t,e);return r.setPropagationContext(s),n()})),t.createTransport=$r,t.createUserFeedbackEnvelope=Ts,t.dedupeIntegration=Wr,t.defaultStackLineParsers=xo,t.defaultStackParser=Co,t.endSession=gr,t.eventFromException=bs,t.eventFromMessage=ws,t.exceptionFromError=ds,t.feedbackAsyncIntegration=sc,t.feedbackIntegration=sc,t.flush=async function(t){const e=Pe();return e?e.flush(t):Promise.resolve(!1)},t.forceLoad=function(){},t.functionToStringIntegration=Ur,t.geckoStackLineParser=bo,t.getActiveSpan=mn,t.getClient=Pe,t.getCurrentHub=as,t.getCurrentScope=Le,t.getDefaultIntegrations=Uo,t.getGlobalScope=je,t.getIsolationScope=Fe,t.getRootSpan=pn,t.getSpanDescendants=dn,t.globalHandlersIntegration=jo,t.httpContextIntegration=Po,t.inboundFiltersIntegration=qr,t.init=function(t={}){const e=function(t={}){const e={defaultIntegrations:Uo(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:us.SENTRY_RELEASE&&us.SENTRY_RELEASE.id?us.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==t.defaultIntegrations&&delete t.defaultIntegrations,{...e,...t}}(t);if(function(){const t=void 0!==us.window&&us;if(!t)return!1;const e=t[t.chrome?"chrome":"browser"],n=e&&e.runtime&&e.runtime.id,r=us.location&&us.location.href||"",s=!!n&&us===us.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((t=>r.startsWith(`${t}//`))),i=void 0!==t.nw;return!!n&&!s&&!i}())return void $((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));const n={...e,stackParser:(r=e.stackParser||Co,Array.isArray(r)?Z(...r):r),integrations:Ir(e),transport:e.transport||lo};var r;const s=function(t,e){!0===e.debug&&$((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Le().update(e.initialScope);const n=new t(e);return Mr(n),n.init(),n}(Is,n);return e.autoSessionTracking&&function(){if(void 0===us.document)return;yr({ignoreDuration:!0}),br(),Vi((({from:t,to:e})=>{void 0!==t&&t!==e&&(yr({ignoreDuration:!0}),br())}))}(),s},t.isInitialized=function(){return!!Pe()},t.lastEventId=pr,t.lazyLoadIntegration=async function(t,e){const n=zo[t],r=qo.Sentry=qo.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${t}`);const s=r[t];if("function"==typeof s&&!("_isShim"in s))return s;const i=function(t){const e=Pe(),n=e&&e.getOptions(),r=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${S}/${t}.min.js`,r).toString()}(n),o=us.document.createElement("script");o.src=i,o.crossOrigin="anonymous",o.referrerPolicy="origin",e&&o.setAttribute("nonce",e);const c=new Promise(((t,e)=>{o.addEventListener("load",(()=>t())),o.addEventListener("error",e)}));us.document.body.appendChild(o);try{await c}catch(e){throw new Error(`Error when loading integration: ${t}`)}const a=r[t];if("function"!=typeof a)throw new Error(`Could not load integration: ${t}`);return a},t.linkedErrorsIntegration=Bo,t.makeFetchTransport=lo,t.metrics=Ho,t.onLoad=function(t){t()},t.opera10StackLineParser=_o,t.opera11StackLineParser=Io,t.parameterize=function(t,...e){const n=new String(String.raw(t,...e));return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n},t.replayIntegration=t=>new sf(t),t.setContext=ar,t.setCurrentClient=Mr,t.setExtra=lr,t.setExtras=ur,t.setMeasurement=On,t.setTag=hr,t.setTags=fr,t.setUser=dr,t.showReportDialog=function(t={}){if(!us.document)return;const e=Le(),n=e.getClient(),r=n&&n.getDsn();if(!r)return;if(e&&(t.user={...e.getUser(),...t.user}),!t.eventId){const e=pr();e&&(t.eventId=e)}const s=us.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,e){const n=N(t);if(!n)return"";const r=`${kr(n)}embed/error-page/`;let s=`dsn=${F(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(s+=`&name=${encodeURIComponent(t.name)}`),t.email&&(s+=`&email=${encodeURIComponent(t.email)}`)}else s+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${s}`}(r,t),t.onLoad&&(s.onload=t.onLoad);const{onClose:i}=t;if(i){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{i()}finally{us.removeEventListener("message",t)}};us.addEventListener("message",t)}const o=us.document.head||us.document.body;o&&o.appendChild(s)},t.spanToBaggageHeader=function(t){return Qt(Rn(t))},t.spanToJSON=cn,t.spanToTraceHeader=rn,t.startBrowserTracingNavigationSpan=tc,t.startBrowserTracingPageLoadSpan=Zo,t.startInactiveSpan=Pn,t.startNewTrace=function(t){return Ne((e=>(e.setPropagationContext(ve()),Bn(null,t))))},t.startSession=yr,t.startSpan=function(t,e){const n=qn();if(n.startSpan)return n.startSpan(t,e);const r=zn(t),{forceTransaction:s,parentSpan:i}=t;return Ne(t.scope,(()=>Jn(i)((()=>{const n=Le(),i=Wn(n),o=t.onlyIfParent&&!i?new Tn:Un({parentSpan:i,spanArguments:r,forceTransaction:s,scope:n});return Ie(n,o),In((()=>e(o)),(()=>{const{status:t}=cn(o);!o.isRecording()||t&&"ok"!==t||o.setStatus({code:Qe,message:"internal_error"})}),(()=>o.end()))}))))},t.startSpanManual=Nn,t.winjsStackLineParser=ko,t.withActiveSpan=Bn,t.withIsolationScope=function(...t){const e=De(we());if(2===t.length){const[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])},t.withScope=Ne,t}({});
//# sourceMappingURL=bundle.tracing.replay.min.js.map