@bookolosystem/engine 4.4.24 → 4.4.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{00e3266/AsideFeatures.C6VE9nEO.js → 2f3b73f/AsideFeatures.BEbYUFtN.js} +1 -1
- package/assets/{f38dd3c/AsideOrderSummary.DYy5C7Pb.js → 2f3b73f/AsideOrderSummary.cuH5LpTG.js} +1 -1
- package/assets/{00e3266/AsideSummary.DvToduoF.js → 2f3b73f/AsideSummary.BMez41fG.js} +1 -1
- package/assets/{f38dd3c/AuthInfo.EdQVe48N.js → 2f3b73f/AuthInfo.5GBlPv-1.js} +1 -1
- package/assets/{00e3266/AuthRegistrationForm.D5mkWjoA.js → 2f3b73f/AuthRegistrationForm.D3cYmiQD.js} +1 -1
- package/assets/{00e3266/Button.DnQyv0mK.js → 2f3b73f/Button.DPwfdGVl.js} +1 -1
- package/assets/2f3b73f/ButtonBordered.CF6JgKso.js +1 -0
- package/assets/2f3b73f/ButtonBorderedThin.DZd44KVx.js +1 -0
- package/assets/2f3b73f/ButtonGhosted.CaXSN-6k.js +1 -0
- package/assets/2f3b73f/ButtonMuted.BxeBI9T9.js +1 -0
- package/assets/{f38dd3c/CalendarFlexible.Csiu3eOj.js → 2f3b73f/CalendarFlexible.CFp7mSDy.js} +1 -1
- package/assets/{00e3266/Check.DaMtha0g.js → 2f3b73f/Check.BG9ag0r9.js} +1 -1
- package/assets/{00e3266/CheckinApp.dd13VODl.js → 2f3b73f/CheckinApp.BUXuY8zp.js} +1 -1
- package/assets/{00e3266/Circle.BWp59Qza.js → 2f3b73f/Circle.BxutekHR.js} +1 -1
- package/assets/{00e3266/Control.D336kTLi.js → 2f3b73f/Control.BgVhBWNg.js} +1 -1
- package/assets/2f3b73f/ControlTelCountryCode.B8Z-STxu.js +1 -0
- package/assets/{00e3266/DatePicker.BhORj9YU.js → 2f3b73f/DatePicker.D4LSFFPx.js} +1 -1
- package/assets/{00e3266/Details.Cm7xGuHs.js → 2f3b73f/Details.DioO86Lh.js} +1 -1
- package/assets/{00e3266/DialogContent.D2T5xMOe.js → 2f3b73f/DialogContent.CA97bpsV.js} +1 -1
- package/assets/{00e3266/Drawer.C2o9tS2u.js → 2f3b73f/Drawer.B_j8oklh.js} +1 -1
- package/assets/{00e3266/Field.Co_5DtOu.js → 2f3b73f/Field.BGRtDQxW.js} +1 -1
- package/assets/{00e3266/Footer.Cp2gDugI.js → 2f3b73f/Footer.CRFaxuRW.js} +1 -1
- package/assets/{00e3266/FooterLogo.BcDxwtdo.js → 2f3b73f/FooterLogo.DCbGs_Qd.js} +1 -1
- package/assets/{00e3266/Header.zAKW6bIX.js → 2f3b73f/Header.Bf8TCNTJ.js} +1 -1
- package/assets/{00e3266/HeaderLanguagePopover.TMirFcQT.js → 2f3b73f/HeaderLanguagePopover.DcsugSYT.js} +1 -1
- package/assets/{00e3266/Image.KuROU048.js → 2f3b73f/Image.BGQdhHoo.js} +1 -1
- package/assets/{00e3266/InputMask.Dva1gDLs.js → 2f3b73f/InputMask.BONqwUGl.js} +1 -1
- package/assets/2f3b73f/Main.BMwBWlT4.js +1 -0
- package/assets/{f38dd3c/OrderAccommodation.BNBVOIdn.js → 2f3b73f/OrderAccommodation.C8l58Arl.js} +1 -1
- package/assets/{00e3266/OrderConfirmedStatus.dQ4LqEcs.js → 2f3b73f/OrderConfirmedStatus.DQ5hJk8c.js} +1 -1
- package/assets/{f38dd3c/OrderHeader.de-l2X4V.js → 2f3b73f/OrderHeader.Bx3rgsbR.js} +1 -1
- package/assets/2f3b73f/PackageDetailDialogContent.AjOYOIGD.js +1 -0
- package/assets/{00e3266/Popover.BwXl04Uf.js → 2f3b73f/Popover.CzYbCFL0.js} +1 -1
- package/assets/{00e3266/ReservationEditInfo.C1n2zyK8.js → 2f3b73f/ReservationEditInfo.A6BVDsNM.js} +1 -1
- package/assets/{00e3266/RoomDetailDialog.DthYEHgJ.js → 2f3b73f/RoomDetailDialog.JTYRXxcE.js} +1 -1
- package/assets/2f3b73f/RoomDetailDialogContent.BuYs9_cL.js +1 -0
- package/assets/{f38dd3c/RoomSelect.D-hvUjZ1.js → 2f3b73f/RoomSelect.CQWiHUQg.js} +1 -1
- package/assets/{00e3266/TextContent.g5vVDs_v.js → 2f3b73f/TextContent.Bsn2Pprz.js} +1 -1
- package/assets/{00e3266/TooltipCursor.Dcm3wnrB.js → 2f3b73f/TooltipCursor.BzuDAU4D.js} +1 -1
- package/assets/{f38dd3c/WellnessDetailDialog.C8aJ8CZf.js → 2f3b73f/WellnessDetailDialog.B1qjEpW3.js} +1 -1
- package/assets/{00e3266/_...path_.CQg5WfKD.js → 2f3b73f/_...path_.CVokfbpj.js} +1 -1
- package/assets/{00e3266/_code_.BfW-Dkx0.js → 2f3b73f/_code_.DY-yOBjN.js} +1 -1
- package/assets/{00e3266/_id_.BH8Wr-Nu.js → 2f3b73f/_id_.CHHgd2V4.js} +1 -1
- package/assets/{00e3266/_id_.rtyLrfoJ.js → 2f3b73f/_id_.KyzPSV7H.js} +1 -1
- package/assets/{00e3266/_uuid_.6w7pF4v7.js → 2f3b73f/_uuid_.Cf0-eZly.js} +1 -1
- package/assets/{00e3266/_uuid_.7b0bL-VX.js → 2f3b73f/_uuid_.Cn9uH4tX.js} +1 -1
- package/assets/{f38dd3c/_uuid_.DOOfeDdS.js → 2f3b73f/_uuid_.Cnwd1dYX.js} +1 -1
- package/assets/{00e3266/_uuid_.DdIWCNJS.js → 2f3b73f/_uuid_.D96QM5Eq.js} +1 -1
- package/assets/{00e3266/_uuid_.CuPKnAQZ.js → 2f3b73f/_uuid_.DLpyaTJx.js} +1 -1
- package/assets/{f38dd3c/_uuid_.CsoFMUaI.js → 2f3b73f/_uuid_.L_yB71w5.js} +1 -1
- package/assets/{00e3266/_uuid_.DVwXZVTK.js → 2f3b73f/_uuid_.qmRsh7dN.js} +1 -1
- package/assets/2f3b73f/accommodation-terms.DWV7tmzW.js +1 -0
- package/assets/{00e3266/account.BpxZvlpA.js → 2f3b73f/account.DTIKhRWK.js} +1 -1
- package/assets/{00e3266/account.BZXHLJXy.js → 2f3b73f/account.KMMr2J43.js} +1 -1
- package/assets/2f3b73f/app.ce.CIUH_XgN.js +2 -0
- package/assets/{00e3266/calendar.BAHVgdLq.js → 2f3b73f/calendar.CoFOPCMM.js} +1 -1
- package/assets/{00e3266/calendar.BUV3_pQg.js → 2f3b73f/calendar.zu6fTnZL.js} +1 -1
- package/assets/{00e3266/calendarFlexibleDialog.Bc1YktWz.js → 2f3b73f/calendarFlexibleDialog.DkLbIYt3.js} +1 -1
- package/assets/{00e3266/chain.Gw2BlBNH.js → 2f3b73f/chain.NIByenZl.js} +1 -1
- package/assets/2f3b73f/client.YSYe-gnP.js +1 -0
- package/assets/2f3b73f/config.D0GomxvB.js +1 -0
- package/assets/2f3b73f/countries.COKPodWG.js +1 -0
- package/assets/{00e3266/dateFormatter.QpUrtaOo.js → 2f3b73f/dateFormatter.COguAfcn.js} +1 -1
- package/assets/{00e3266/details.B92O52-P.js → 2f3b73f/details.DwC0WoPu.js} +1 -1
- package/assets/{00e3266/dist.G8LozSlg.js → 2f3b73f/dist.Cwtd7WWt.js} +1 -1
- package/assets/{00e3266/edit.jQe52vjo.js → 2f3b73f/edit.DoByE1rS.js} +1 -1
- package/assets/{00e3266/fancybox.BubtpkYp.js → 2f3b73f/fancybox.u85NAYGZ.js} +1 -1
- package/assets/2f3b73f/faq.CHZ9K8sF.js +1 -0
- package/assets/2f3b73f/formatPrice.B9KBqHGy.js +1 -0
- package/assets/{00e3266/hotel.CqAxaOHt.js → 2f3b73f/hotel.Bp4tOqfg.js} +1 -1
- package/assets/{00e3266/localeRules.Sv0kYdkO.js → 2f3b73f/localeRules.CFM61cuX.js} +1 -1
- package/assets/{f38dd3c/location.Bgn2FeKg.js → 2f3b73f/location.C7qYBGxn.js} +2 -2
- package/assets/{f38dd3c/login.Bn6jIqFe.js → 2f3b73f/login.CaHSZYhu.js} +1 -1
- package/assets/{00e3266/marketing-terms.DZEXN-02.js → 2f3b73f/marketing-terms.C0tpjRn5.js} +1 -1
- package/assets/{00e3266/nav.BkmDrarK.js → 2f3b73f/nav.DXrAYmmA.js} +1 -1
- package/assets/{00e3266/order.0nfhA5vv.js → 2f3b73f/order.HlVVnC1X.js} +1 -1
- package/assets/{00e3266/orders.BciqD40x.js → 2f3b73f/orders.DHjWNKqW.js} +1 -1
- package/assets/{f38dd3c/packages.nLGp-7A_.js → 2f3b73f/packages.BcMpDJpx.js} +1 -1
- package/assets/{00e3266/packages.Dlzmojgr.js → 2f3b73f/packages.TZkgSe-j.js} +1 -1
- package/assets/{00e3266/pages.Cp0V2fyO.js → 2f3b73f/pages.ClokS3FF.js} +1 -1
- package/assets/2f3b73f/pages.h8vAqQ33.js +1 -0
- package/assets/{00e3266/params.CJ8cLbub.js → 2f3b73f/params.C7yshxa3.js} +1 -1
- package/assets/{00e3266/playground.Bg2QSv__.js → 2f3b73f/playground.BEUFORX9.js} +1 -1
- package/assets/{00e3266/points.BL-nH_E0.js → 2f3b73f/points.C3VqskUW.js} +1 -1
- package/assets/2f3b73f/privacy-policy.CBfrfVTJ.js +1 -0
- package/assets/{00e3266/ratings.BhAcTYb4.js → 2f3b73f/ratings.CtFhNHw9.js} +1 -1
- package/assets/{00e3266/register.Cx9nPCuC.js → 2f3b73f/register.2pXseSFz.js} +1 -1
- package/assets/{f38dd3c/request.D5a2vDmA.js → 2f3b73f/request.3A9c7UXd.js} +1 -1
- package/assets/{00e3266/reservation.uE_vOrt3.js → 2f3b73f/reservation.B1s70yq6.js} +1 -1
- package/assets/{00e3266/reservation.DyoJoxSn.js → 2f3b73f/reservation.BS-OyJbA.js} +1 -1
- package/assets/{00e3266/rewards.Bnmw99N-.js → 2f3b73f/rewards.DJX9sTRn.js} +1 -1
- package/assets/{f38dd3c/rooms.DQs4tJOR.js → 2f3b73f/rooms.Dws55-nk.js} +1 -1
- package/assets/{00e3266/rooms.BKrrLv9T.js → 2f3b73f/rooms.M6c7NPaN.js} +1 -1
- package/assets/2f3b73f/routeParams.C-ZfuCbt.js +1 -0
- package/assets/2f3b73f/sentry.gFOESSeO.js +8 -0
- package/assets/{00e3266/statusDialog.BxwKxmoL.js → 2f3b73f/statusDialog.9eyhKcvk.js} +1 -1
- package/assets/{f38dd3c/summary.RZy3IA4d.js → 2f3b73f/summary.d5SCQqHs.js} +1 -1
- package/assets/2f3b73f/terms.cEaqP9lQ.js +1 -0
- package/assets/{00e3266/toaster.BTVgn2pl.js → 2f3b73f/toaster.mjZbKjSu.js} +1 -1
- package/assets/2f3b73f/trade-terms.BjB0bmb7.js +1 -0
- package/assets/{00e3266/validateFields.CIR4q30T.js → 2f3b73f/validateFields.B_jgYMcg.js} +1 -1
- package/assets/{f38dd3c/vendor.B05959Kg.js → 2f3b73f/vendor.BGPsxGKn.js} +5 -5
- package/assets/2f3b73f/vouchers-terms.t-40GkyK.js +1 -0
- package/assets/{f38dd3c/vouchers.C-swk9mu.js → 2f3b73f/vouchers._ckO1h0e.js} +1 -1
- package/assets/{00e3266/vue-router.C1UMcwPe.js → 2f3b73f/vue-router.hjePctRa.js} +1 -1
- package/assets/2f3b73f/wellness-terms.D5Q6efc5.js +1 -0
- package/assets/{f38dd3c/wellness.BlitXIzZ.js → 2f3b73f/wellness.BMnHPVbM.js} +1 -1
- package/assets/{f38dd3c/AsideFeatures.WA8sD2us.js → dac38ef/AsideFeatures.oUmYBNIG.js} +1 -1
- package/assets/{00e3266/AsideOrderSummary.CFUPhRZa.js → dac38ef/AsideOrderSummary.COD1hGO5.js} +1 -1
- package/assets/{f38dd3c/AsideSummary.CG1x4Qid.js → dac38ef/AsideSummary.iyBaqtAq.js} +1 -1
- package/assets/{00e3266/AuthInfo.DZeIr3_Y.js → dac38ef/AuthInfo.E0CjUI-d.js} +1 -1
- package/assets/{f38dd3c/AuthRegistrationForm.BCqigFXO.js → dac38ef/AuthRegistrationForm.BvMT3Scu.js} +1 -1
- package/assets/{f38dd3c/Button.B7O9SjUc.js → dac38ef/Button.BzzmXhRq.js} +1 -1
- package/assets/dac38ef/ButtonBordered.CahzNN1m.js +1 -0
- package/assets/dac38ef/ButtonBorderedThin.BC3mQtcw.js +1 -0
- package/assets/dac38ef/ButtonGhosted.BKrzAmqb.js +1 -0
- package/assets/dac38ef/ButtonMuted.CgcggQGc.js +1 -0
- package/assets/{00e3266/CalendarFlexible.DZFgphYD.js → dac38ef/CalendarFlexible.2W8yM1m0.js} +1 -1
- package/assets/{f38dd3c/Check.CpHrMvcd.js → dac38ef/Check.BrS56LTv.js} +1 -1
- package/assets/{f38dd3c/CheckinApp.BkQ8pX-T.js → dac38ef/CheckinApp.DvPP9slD.js} +1 -1
- package/assets/{f38dd3c/Circle.DLvL-CUy.js → dac38ef/Circle.BN2CH2qc.js} +1 -1
- package/assets/{f38dd3c/Control.BSL504pv.js → dac38ef/Control.DjwSz72r.js} +1 -1
- package/assets/{00e3266/ControlTelCountryCode.C7mxWSFH.js → dac38ef/ControlTelCountryCode.DUO6xcfR.js} +1 -1
- package/assets/{f38dd3c/DatePicker.BQl5bQ6i.js → dac38ef/DatePicker.Ck4c2ZVO.js} +1 -1
- package/assets/{f38dd3c/Details.D87nhbdw.js → dac38ef/Details.CA-DtggN.js} +1 -1
- package/assets/{f38dd3c/DialogContent.BMGIjpQQ.js → dac38ef/DialogContent.CXkt8kHd.js} +1 -1
- package/assets/{f38dd3c/Drawer.DVond6lb.js → dac38ef/Drawer.DdsUGe_X.js} +1 -1
- package/assets/{f38dd3c/Field.Bk5XaplP.js → dac38ef/Field.CFQW758y.js} +1 -1
- package/assets/{f38dd3c/Footer.DM-fkkPR.js → dac38ef/Footer.D-rWsroY.js} +1 -1
- package/assets/{f38dd3c/FooterLogo.DV2SwuQC.js → dac38ef/FooterLogo.BXV7puUU.js} +1 -1
- package/assets/{f38dd3c/Header.BBbV1Jcf.js → dac38ef/Header.CahR-1Np.js} +1 -1
- package/assets/{f38dd3c/HeaderLanguagePopover.BOFhuFm4.js → dac38ef/HeaderLanguagePopover.BmnV_67M.js} +1 -1
- package/assets/{f38dd3c/Image.BO4HeHRD.js → dac38ef/Image.Bfj6fvYF.js} +1 -1
- package/assets/{f38dd3c/InputMask.C47XH33x.js → dac38ef/InputMask.DYnkZEz1.js} +1 -1
- package/assets/dac38ef/Main.CMwaf4zt.js +1 -0
- package/assets/{00e3266/OrderAccommodation.DT2FyKkW.js → dac38ef/OrderAccommodation.gR71ZEKn.js} +1 -1
- package/assets/{f38dd3c/OrderConfirmedStatus.c5cHnC4t.js → dac38ef/OrderConfirmedStatus.DJ4EfvGU.js} +1 -1
- package/assets/{00e3266/OrderHeader.Bb7XEhAT.js → dac38ef/OrderHeader.BwYCRwKN.js} +1 -1
- package/assets/dac38ef/PackageDetailDialogContent.C21sH32k.js +1 -0
- package/assets/{f38dd3c/Popover.Cio4dz-4.js → dac38ef/Popover.SzwJUCAP.js} +1 -1
- package/assets/{f38dd3c/ReservationEditInfo.DdIbZqk3.js → dac38ef/ReservationEditInfo.CNARQJwy.js} +1 -1
- package/assets/{f38dd3c/RoomDetailDialog.B7K9jAfB.js → dac38ef/RoomDetailDialog.Cy6psadw.js} +1 -1
- package/assets/dac38ef/RoomDetailDialogContent.BdL966jz.js +1 -0
- package/assets/{00e3266/RoomSelect.DbkIZxv6.js → dac38ef/RoomSelect.DA9iYbRn.js} +1 -1
- package/assets/{f38dd3c/TextContent.C-_3oOJz.js → dac38ef/TextContent.gtCH3tin.js} +1 -1
- package/assets/{f38dd3c/TooltipCursor.CoNl6Ngn.js → dac38ef/TooltipCursor.DpzIijnV.js} +1 -1
- package/assets/{00e3266/WellnessDetailDialog.BERAyQR4.js → dac38ef/WellnessDetailDialog.n2knNxiB.js} +1 -1
- package/assets/{f38dd3c/_...path_.D2_nFR34.js → dac38ef/_...path_.BK4YEWBM.js} +1 -1
- package/assets/{f38dd3c/_code_.CFh9Z89Y.js → dac38ef/_code_.CDQSn3mu.js} +1 -1
- package/assets/{f38dd3c/_id_.Bg3RpMaa.js → dac38ef/_id_.C0pSAgRt.js} +1 -1
- package/assets/{f38dd3c/_id_.CHNatxbU.js → dac38ef/_id_.Cn3gK2MC.js} +1 -1
- package/assets/{f38dd3c/_uuid_.B8IyjPpk.js → dac38ef/_uuid_.BLEzHAlX.js} +1 -1
- package/assets/{f38dd3c/_uuid_.DtY4DZ1P.js → dac38ef/_uuid_.BVUy24sJ.js} +1 -1
- package/assets/{00e3266/_uuid_.Ng4R9XmN.js → dac38ef/_uuid_.BzkUpJCj.js} +1 -1
- package/assets/{f38dd3c/_uuid_.Chj_S9-x.js → dac38ef/_uuid_.C11xcWRd.js} +1 -1
- package/assets/{f38dd3c/_uuid_.-VmmtZwR.js → dac38ef/_uuid_.Cqzp4C1u.js} +1 -1
- package/assets/{00e3266/_uuid_.B8KvnkcP.js → dac38ef/_uuid_.IqC423GP.js} +1 -1
- package/assets/{f38dd3c/_uuid_.BKYyEH49.js → dac38ef/_uuid_.uIPCNSdo.js} +1 -1
- package/assets/dac38ef/accommodation-terms.Cf91zN6k.js +1 -0
- package/assets/{f38dd3c/account.BuN95x4D.js → dac38ef/account.Cbm7FwiG.js} +1 -1
- package/assets/{f38dd3c/account.DaWx16aj.js → dac38ef/account.CuREz3lg.js} +1 -1
- package/assets/dac38ef/app.ce.Cq-JLNPZ.js +2 -0
- package/assets/{f38dd3c/calendar.DDSudtdu.js → dac38ef/calendar.BoB-JmTn.js} +1 -1
- package/assets/{f38dd3c/calendar.RelwBuMK.js → dac38ef/calendar.HoRwdsPB.js} +1 -1
- package/assets/{f38dd3c/calendarFlexibleDialog.Cc7XGzQX.js → dac38ef/calendarFlexibleDialog.CNMpf6w_.js} +1 -1
- package/assets/{f38dd3c/chain.BM08NNli.js → dac38ef/chain.LOn6Wpcc.js} +1 -1
- package/assets/dac38ef/client.Byy8PRDq.js +1 -0
- package/assets/dac38ef/config.kkU4Av2s.js +1 -0
- package/assets/dac38ef/countries.DWU6UyI3.js +1 -0
- package/assets/{f38dd3c/dateFormatter.BfRrebw5.js → dac38ef/dateFormatter.DEea350o.js} +1 -1
- package/assets/{f38dd3c/details.DfX7VMnR.js → dac38ef/details.Dwew3riE.js} +1 -1
- package/assets/{f38dd3c/dist._o0IydpU.js → dac38ef/dist.v7Cwo1Al.js} +1 -1
- package/assets/{f38dd3c/edit.CVRLHWXP.js → dac38ef/edit.w2LbpwwM.js} +1 -1
- package/assets/{f38dd3c/fancybox.D0ygPbMl.js → dac38ef/fancybox.k-X_4x-1.js} +1 -1
- package/assets/dac38ef/faq.BBegUYS8.js +1 -0
- package/assets/dac38ef/formatPrice.CaVVfMFN.js +1 -0
- package/assets/{f38dd3c/hotel.CDoQmV7W.js → dac38ef/hotel.B5Wzuo8C.js} +1 -1
- package/assets/{f38dd3c/localeRules.CTQiljAA.js → dac38ef/localeRules.gef14wii.js} +1 -1
- package/assets/{00e3266/location.PM2TkQPR.js → dac38ef/location.DmCd5Q2v.js} +2 -2
- package/assets/{00e3266/login.DWj66EvY.js → dac38ef/login.DIu6KD0s.js} +1 -1
- package/assets/{f38dd3c/marketing-terms.B-X6r6pE.js → dac38ef/marketing-terms.jk1Y1bce.js} +1 -1
- package/assets/{f38dd3c/nav.Cjt3ooUT.js → dac38ef/nav.DB4yEvwb.js} +1 -1
- package/assets/{f38dd3c/order.ByWoGr3D.js → dac38ef/order.3mUnS34Z.js} +1 -1
- package/assets/{f38dd3c/orders.SAyKLeq-.js → dac38ef/orders.CGYTkZuK.js} +1 -1
- package/assets/{f38dd3c/packages.Dy6FatLf.js → dac38ef/packages.BsjQfOai.js} +1 -1
- package/assets/{00e3266/packages.Bbemj4gI.js → dac38ef/packages.Dk078mph.js} +1 -1
- package/assets/dac38ef/pages.CGzs_Mgz.js +1 -0
- package/assets/{f38dd3c/pages.DJMQcViC.js → dac38ef/pages.DlVMfbdi.js} +1 -1
- package/assets/{f38dd3c/params.BMC4ybL3.js → dac38ef/params.BaXhjxAu.js} +1 -1
- package/assets/{f38dd3c/playground.4ONrtQeP.js → dac38ef/playground.F_bvqDzt.js} +1 -1
- package/assets/{f38dd3c/points.B8-2FJ3U.js → dac38ef/points.lysvOLYQ.js} +1 -1
- package/assets/dac38ef/privacy-policy.Bq0RZdC7.js +1 -0
- package/assets/{f38dd3c/ratings.CnLHb7pq.js → dac38ef/ratings.C1hDkmuG.js} +1 -1
- package/assets/{f38dd3c/register.Bp1d5J8G.js → dac38ef/register.CCfINqwd.js} +1 -1
- package/assets/{00e3266/request.GeDLW-g-.js → dac38ef/request.BUgyvDmK.js} +1 -1
- package/assets/{f38dd3c/reservation.Ba228kue.js → dac38ef/reservation.BVKNuzNV.js} +1 -1
- package/assets/{f38dd3c/reservation.BYI2Kr8w.js → dac38ef/reservation.C3gQ4cUt.js} +1 -1
- package/assets/{f38dd3c/rewards.DEHSgrdR.js → dac38ef/rewards.D0hlbVZ4.js} +1 -1
- package/assets/{00e3266/rooms.CcWORcnv.js → dac38ef/rooms.Cl0Lsd2Q.js} +1 -1
- package/assets/{f38dd3c/rooms.BlxtjjHQ.js → dac38ef/rooms.Dv2vxAZb.js} +1 -1
- package/assets/dac38ef/routeParams.BJW21Sn4.js +1 -0
- package/assets/dac38ef/sentry.DQbqS1lP.js +8 -0
- package/assets/{f38dd3c/statusDialog.Ar1JXohv.js → dac38ef/statusDialog.DWv-jyb6.js} +1 -1
- package/assets/{00e3266/summary.BxkWtUXD.js → dac38ef/summary.BTeblmXr.js} +1 -1
- package/assets/dac38ef/terms.CZhR-WHG.js +1 -0
- package/assets/{f38dd3c/toaster.Ldl16_Qr.js → dac38ef/toaster.BTBXdC0X.js} +1 -1
- package/assets/dac38ef/trade-terms.D1yjBCD3.js +1 -0
- package/assets/{f38dd3c/validateFields.Dl36_eUe.js → dac38ef/validateFields.BwFEIKL2.js} +1 -1
- package/assets/{00e3266/vendor.DyN8wUYE.js → dac38ef/vendor.DG_1PLBJ.js} +5 -5
- package/assets/dac38ef/vouchers-terms.Ne5oT4I4.js +1 -0
- package/assets/{00e3266/vouchers.DWJJ4V4r.js → dac38ef/vouchers.h1MNK-BQ.js} +1 -1
- package/assets/{f38dd3c/vue-router.JZBfxmEu.js → dac38ef/vue-router.BvX8pcGF.js} +1 -1
- package/assets/dac38ef/wellness-terms.B3ytxtSK.js +1 -0
- package/assets/{00e3266/wellness.CPwkuAFy.js → dac38ef/wellness.CRxmrr3-.js} +1 -1
- package/assets/versions.json +1 -1
- package/index.min.js +2 -2
- package/package.json +1 -1
- package/assets/00e3266/ButtonBordered.Dwp-4WIm.js +0 -1
- package/assets/00e3266/ButtonBorderedThin.DoANKnjj.js +0 -1
- package/assets/00e3266/ButtonGhosted.BRKq9kC0.js +0 -1
- package/assets/00e3266/ButtonMuted.Da9t6CtI.js +0 -1
- package/assets/00e3266/Main.BjlRegrL.js +0 -1
- package/assets/00e3266/PackageDetailDialogContent.DJkbuxKd.js +0 -1
- package/assets/00e3266/RoomDetailDialogContent.BzgEtYLj.js +0 -1
- package/assets/00e3266/accommodation-terms.D7d3lrgF.js +0 -1
- package/assets/00e3266/app.ce.BICvUcol.js +0 -2
- package/assets/00e3266/client.BTU0j2bl.js +0 -1
- package/assets/00e3266/config.BWrpyAuy.js +0 -1
- package/assets/00e3266/countries.D4GbBVNR.js +0 -1
- package/assets/00e3266/faq.jKUglas9.js +0 -1
- package/assets/00e3266/formatPrice.D8yefFJf.js +0 -1
- package/assets/00e3266/pages.4PX7y3QS.js +0 -1
- package/assets/00e3266/privacy-policy.B9aCgacE.js +0 -1
- package/assets/00e3266/routeParams.CghakYqH.js +0 -1
- package/assets/00e3266/sentry.CiBxt4M5.js +0 -11
- package/assets/00e3266/terms.CI0dKa4e.js +0 -1
- package/assets/00e3266/trade-terms.Beg7gLen.js +0 -1
- package/assets/00e3266/vouchers-terms.CMlYyiMZ.js +0 -1
- package/assets/00e3266/wellness-terms.CPVdx7tS.js +0 -1
- package/assets/f38dd3c/ButtonBordered.CU6bRJjh.js +0 -1
- package/assets/f38dd3c/ButtonBorderedThin.B-bVEjvv.js +0 -1
- package/assets/f38dd3c/ButtonGhosted.wjQvK3VN.js +0 -1
- package/assets/f38dd3c/ButtonMuted.C89eUKtB.js +0 -1
- package/assets/f38dd3c/ControlTelCountryCode.BbAsr5pX.js +0 -1
- package/assets/f38dd3c/Main.DCK4LILu.js +0 -1
- package/assets/f38dd3c/PackageDetailDialogContent.Bd2HI33X.js +0 -1
- package/assets/f38dd3c/RoomDetailDialogContent.Bps7zeth.js +0 -1
- package/assets/f38dd3c/accommodation-terms.CRtPpO78.js +0 -1
- package/assets/f38dd3c/app.ce.Dn4eh9gs.js +0 -2
- package/assets/f38dd3c/client.Do8P3Q1y.js +0 -1
- package/assets/f38dd3c/config.BwVfTZTB.js +0 -1
- package/assets/f38dd3c/countries.CpNwWSEl.js +0 -1
- package/assets/f38dd3c/faq.qkIRwybh.js +0 -1
- package/assets/f38dd3c/formatPrice.SXnrraGg.js +0 -1
- package/assets/f38dd3c/pages.D2aHYSGs.js +0 -1
- package/assets/f38dd3c/privacy-policy.pBBraI3Y.js +0 -1
- package/assets/f38dd3c/routeParams.DKopvxtq.js +0 -1
- package/assets/f38dd3c/sentry.CUPUgCb7.js +0 -11
- package/assets/f38dd3c/terms.DOGNP3P_.js +0 -1
- package/assets/f38dd3c/trade-terms.C62BOBV2.js +0 -1
- package/assets/f38dd3c/vouchers-terms.DwtXX_EA.js +0 -1
- package/assets/f38dd3c/wellness-terms.Gn7rvn01.js +0 -1
- /package/assets/{00e3266/_plugin-vue_export-helper.jceuCuUo.js → 2f3b73f/_plugin-vue_export-helper.VW66L60x.js} +0 -0
- /package/assets/{00e3266/basePath.B_IUbNP4.js → 2f3b73f/basePath.CBqcTekK.js} +0 -0
- /package/assets/{00e3266/breakpoints.BGxRVe72.js → 2f3b73f/breakpoints.D3l1jzS3.js} +0 -0
- /package/assets/{00e3266/closeDetails.C6E4aw52.js → 2f3b73f/closeDetails.fEVrBGH4.js} +0 -0
- /package/assets/{00e3266/dist.C2NGVO8W.js → 2f3b73f/dist.CxQb4Viz.js} +0 -0
- /package/assets/{00e3266/dist.Cbv580Oi.js → 2f3b73f/dist.DSNbboiV.js} +0 -0
- /package/assets/{00e3266 → 2f3b73f}/erv.CerNAezh.svg +0 -0
- /package/assets/{00e3266/esm.CLpSy5Z5.js → 2f3b73f/esm.BtpETSD7.js} +0 -0
- /package/assets/{00e3266/experimental.tkbWXLnj.js → 2f3b73f/experimental.B5jYcLfi.js} +0 -0
- /package/assets/{00e3266/getPaymentUrl.CF2Ku0iz.js → 2f3b73f/getPaymentUrl.BRvZy22y.js} +0 -0
- /package/assets/{00e3266/index.es.Di6K7mHT.js → 2f3b73f/index.es.Caai9APn.js} +0 -0
- /package/assets/{00e3266/patterns.CAAQE6ax.js → 2f3b73f/patterns.D8pyIU47.js} +0 -0
- /package/assets/{00e3266/plainText.UnKOuGmd.js → 2f3b73f/plainText.D2JUCxdf.js} +0 -0
- /package/assets/{00e3266/preload.DbLIx_T7.js → 2f3b73f/preload.DPAjQypG.js} +0 -0
- /package/assets/{00e3266/rolldown-runtime.DuZ7zIjg.js → 2f3b73f/rolldown-runtime.Dgpunknn.js} +0 -0
- /package/assets/{00e3266/signature_pad.CwlFmRco.js → 2f3b73f/signature_pad.CK0P6U_S.js} +0 -0
- /package/assets/{00e3266/staleTimes.C18hCpwN.js → 2f3b73f/staleTimes.Cpr-x60H.js} +0 -0
- /package/assets/{00e3266/togglePassword.BMe9M359.js → 2f3b73f/togglePassword.DWAlYfa5.js} +0 -0
- /package/assets/{f38dd3c/_plugin-vue_export-helper.B9snQITJ.js → dac38ef/_plugin-vue_export-helper.BUzyK_6n.js} +0 -0
- /package/assets/{f38dd3c/basePath.KhDO2UFa.js → dac38ef/basePath.BpDpYsIO.js} +0 -0
- /package/assets/{f38dd3c/breakpoints.kiAvQX21.js → dac38ef/breakpoints.Dd9DEnpb.js} +0 -0
- /package/assets/{f38dd3c/closeDetails.Dsp1ZLRE.js → dac38ef/closeDetails.BjL5-fMI.js} +0 -0
- /package/assets/{f38dd3c/dist.CTHVOWyT.js → dac38ef/dist.DeTE0iD0.js} +0 -0
- /package/assets/{f38dd3c/dist.BXWlpm-J.js → dac38ef/dist.Dqyv4JfZ.js} +0 -0
- /package/assets/{f38dd3c → dac38ef}/erv.CerNAezh.svg +0 -0
- /package/assets/{f38dd3c/esm.CvzPFWk-.js → dac38ef/esm.BSaywqV2.js} +0 -0
- /package/assets/{f38dd3c/experimental.-RRVJji6.js → dac38ef/experimental.BACwDUzK.js} +0 -0
- /package/assets/{f38dd3c/getPaymentUrl.C04QAbZs.js → dac38ef/getPaymentUrl.DY-EB4IP.js} +0 -0
- /package/assets/{f38dd3c/index.es.BgoABTrv.js → dac38ef/index.es.CsEqY5e-.js} +0 -0
- /package/assets/{f38dd3c/patterns.B3doNK2Z.js → dac38ef/patterns.uXV2tP41.js} +0 -0
- /package/assets/{f38dd3c/plainText.ohlOYzin.js → dac38ef/plainText.BPemnaOK.js} +0 -0
- /package/assets/{f38dd3c/preload.OzY9_NyT.js → dac38ef/preload.DvmpK3rO.js} +0 -0
- /package/assets/{f38dd3c/rolldown-runtime.BG4qcd_I.js → dac38ef/rolldown-runtime.Z70zWKqs.js} +0 -0
- /package/assets/{f38dd3c/signature_pad.Bnop98wV.js → dac38ef/signature_pad.BOnNtEAF.js} +0 -0
- /package/assets/{f38dd3c/staleTimes.BfL5_pds.js → dac38ef/staleTimes.DZb7u4MB.js} +0 -0
- /package/assets/{f38dd3c/togglePassword.BSmoZtRQ.js → dac38ef/togglePassword.Cfnq345b.js} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{$t as e,Jt as t,Kt as n,Qt as r,Xt as i,Yt as a,Zt as o,en as s,nn as c,qt as l,tn as u}from"./vendor.DyN8wUYE.js";var d=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,f=globalThis,p=`10.43.0`;function m(){return h(f),f}function h(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.43.0`,t[p]=t[`10.43.0`]||{}}function g(e,t,n=f){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[p]=r[`10.43.0`]||{};return i[e]||(i[e]=t())}var _=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],v=`Sentry Logger `,y={};function b(e){if(!(`console`in f))return e();let t=f.console,n={},r=Object.keys(y);r.forEach(e=>{let r=y[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function x(){E().enabled=!0}function S(){E().enabled=!1}function C(){return E().enabled}function w(...e){T(`log`,...e)}function ee(...e){T(`warn`,...e)}function te(...e){T(`error`,...e)}function T(e,...t){d&&C()&&b(()=>{f.console[e](`${v}[${e}]:`,...t)})}function E(){return d?g(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var D={enable:x,disable:S,isEnabled:C,log:w,warn:ee,error:te},ne=50,re=/\(error: (.*)\)/,ie=/captureMessage|captureException/;function ae(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
2
|
-
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=re.test(n)?n.replace(re,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ne+r)break}}return oe(i.slice(r))}}function O(e){return Array.isArray(e)?ae(...e):e}function oe(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(se(t).function||``)&&t.pop(),t.reverse(),ie.test(se(t).function||``)&&(t.pop(),ie.test(se(t).function||``)&&t.pop()),t.slice(0,ne).map(e=>({...e,filename:e.filename||se(t).filename,function:e.function||`?`}))}function se(e){return e[e.length-1]||{}}var ce=`<anonymous>`;function le(e){try{return!e||typeof e!=`function`?ce:e.name||ce}catch{return ce}}function ue(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function de(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var fe={},pe={};function me(e,t){fe[e]=fe[e]||[],fe[e].push(t)}function he(e,t){if(!pe[e]){pe[e]=!0;try{t()}catch(t){d&&D.error(`Error while instrumenting ${e}`,t)}}}function ge(e,t){let n=e&&fe[e];if(n)for(let r of n)try{r(t)}catch(t){d&&D.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${le(r)}\nError:`,t)}}var _e=null;function ve(e){let t=`error`;me(t,e),he(t,ye)}function ye(){_e=f.onerror,f.onerror=function(e,t,n,r,i){return ge(`error`,{column:r,error:i,line:n,msg:e,url:t}),_e?_e.apply(this,arguments):!1},f.onerror.__SENTRY_INSTRUMENTED__=!0}var be=null;function xe(e){let t=`unhandledrejection`;me(t,e),he(t,Se)}function Se(){be=f.onunhandledrejection,f.onunhandledrejection=function(e){return ge(`unhandledrejection`,e),be?be.apply(this,arguments):!0},f.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Ce=Object.prototype.toString;function we(e){switch(Ce.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Re(e,Error)}}function Te(e,t){return Ce.call(e)===`[object ${t}]`}function Ee(e){return Te(e,`ErrorEvent`)}function De(e){return Te(e,`DOMError`)}function Oe(e){return Te(e,`DOMException`)}function ke(e){return Te(e,`String`)}function Ae(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function je(e){return e===null||Ae(e)||typeof e!=`object`&&typeof e!=`function`}function Me(e){return Te(e,`Object`)}function Ne(e){return typeof Event<`u`&&Re(e,Event)}function Pe(e){return typeof Element<`u`&&Re(e,Element)}function Fe(e){return Te(e,`RegExp`)}function Ie(e){return!!(e?.then&&typeof e.then==`function`)}function Le(e){return Me(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Re(e,t){try{return e instanceof t}catch{return!1}}function ze(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Be(e){return typeof Request<`u`&&Re(e,Request)}var Ve=f,He=80;function Ue(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||He;for(;n&&i++<5&&(o=We(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function We(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Ve.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&ke(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Ge(){try{return Ve.document.location.href}catch{return``}}function Ke(e){if(!Ve.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function qe(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Ye(i,r);try{e[t]=i}catch{d&&D.log(`Failed to replace method "${t}" in object`,e)}}function Je(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{d&&D.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ye(e,t){try{e.prototype=t.prototype=t.prototype||{},Je(e,`__sentry_original__`,t)}catch{}}function Xe(e){return e.__sentry_original__}function Ze(e){if(we(e))return{message:e.message,name:e.name,stack:e.stack,...$e(e)};if(Ne(e)){let t={type:e.type,target:Qe(e.target),currentTarget:Qe(e.currentTarget),...$e(e)};return typeof CustomEvent<`u`&&Re(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Qe(e){try{return Pe(e)?Ue(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function $e(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function et(e){let t=Object.keys(Ze(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var tt;function nt(e){if(tt!==void 0)return tt?tt(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=f;return t in n&&typeof n[t]==`function`?(tt=n[t],tt(e)):(tt=null,e())}function rt(){return nt(()=>Math.random())}function it(){return nt(()=>Date.now())}function at(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ot(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{ze(r)?n.push(de(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function st(e,t,n=!1){return ke(e)?Fe(t)?t.test(e):ke(t)?n?e===t:e.includes(t):!1:!1}function ct(e,t=[],n=!1){return t.some(t=>st(e,t,n))}function lt(){let e=f;return e.crypto||e.msCrypto}var ut;function dt(){return rt()*16}function ft(e=lt()){try{if(e?.randomUUID)return nt(()=>e.randomUUID()).replace(/-/g,``)}catch{}return ut||=`10000000100040008000100000000000`,ut.replace(/[018]/g,e=>(e^(dt()&15)>>e/4).toString(16))}function pt(e){return e.exception?.values?.[0]}function mt(e){let{message:t,event_id:n}=e;if(t)return t;let r=pt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function ht(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function gt(e,t){let n=pt(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function _t(e){if(vt(e))return!0;try{Je(e,`__sentry_captured__`,!0)}catch{}return!1}function vt(e){try{return e.__sentry_captured__}catch{}}var yt=1e3;function bt(){return it()/yt}function xt(){let{performance:e}=f;if(!e?.now||!e.timeOrigin)return bt;let t=e.timeOrigin;return()=>(t+nt(()=>e.now()))/yt}var St;function k(){return(St??=xt())()}var Ct=null;function wt(){let{performance:e}=f;if(!e?.now)return;let t=3e5,n=nt(()=>e.now()),r=it(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Tt(){return Ct===null&&(Ct=wt()),Ct}function Et(e){let t=k(),n={sid:ft(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>kt(n)};return e&&Dt(n,e),n}function Dt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||k(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ft()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ot(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),Dt(e,n)}function kt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function At(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=At(r[e],t[e],n-1));return r}function jt(){return ft()}function Mt(){return ft().substring(16)}var Nt=`_sentrySpan`;function Pt(e,t){t?Je(e,Nt,t):delete e[Nt]}function Ft(e){return e[Nt]}var It=100,Lt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:jt(),sampleRand:rt()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Pt(t,Ft(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Dt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Me(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Pt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:jt(),sampleRand:rt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:It;if(n<=0)return this;let r={timestamp:bt(),...e,message:e.message?at(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Ft(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=At(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ft();if(!this._client)return d&&D.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||ft();if(!this._client)return d&&D.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||ft();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(d&&D.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Rt(){return g(`defaultCurrentScope`,()=>new Lt)}function zt(){return g(`defaultIsolationScope`,()=>new Lt)}var Bt=class{constructor(e,t){let n;n=e||new Lt;let r;r=t||new Lt,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Ie(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Vt(){let e=h(m());return e.stack=e.stack||new Bt(Rt(),zt())}function Ht(e){return Vt().withScope(e)}function Ut(e,t){let n=Vt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Wt(e){return Vt().withScope(()=>e(Vt().getIsolationScope()))}function Gt(){return{withIsolationScope:Wt,withScope:Ht,withSetScope:Ut,withSetIsolationScope:(e,t)=>Wt(t),getCurrentScope:()=>Vt().getScope(),getIsolationScope:()=>Vt().getIsolationScope()}}function Kt(e){let t=h(e);return t.acs?t.acs:Gt()}function A(){return Kt(m()).getCurrentScope()}function qt(){return Kt(m()).getIsolationScope()}function Jt(){return g(`globalScope`,()=>new Lt)}function Yt(...e){let t=Kt(m());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function j(){return A().getClient()}function Xt(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||Mt()};return n&&(i.parent_span_id=n),i}var Zt=`sentry.source`,Qt=`sentry.sample_rate`,$t=`sentry.previous_trace_sample_rate`,en=`sentry.op`,tn=`sentry.origin`,nn=`sentry.idle_span_finish_reason`,rn=`sentry.measurement_unit`,an=`sentry.measurement_value`,on=`sentry.custom_span_name`,sn=`sentry.profile_id`,cn=`sentry.exclusive_time`,ln=`sentry.link.type`,un=`gen_ai.conversation.id`;function dn(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function fn(e,t){e.setAttribute(`http.response.status_code`,t);let n=dn(t);n.message!==`unknown_error`&&e.setStatus(n)}var pn=`_sentryScope`,mn=`_sentryIsolationScope`;function hn(e){try{let t=f.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function gn(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function _n(e,t,n){e&&(Je(e,mn,hn(n)),Je(e,pn,t))}function vn(e){let t=e;return{scope:t[pn],isolationScope:gn(t[mn])}}var yn=`sentry-`,bn=/^sentry-/;function xn(e){let t=Cn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(bn)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Sn(e){if(e)return Tn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${yn}${t}`]=n),e),{}))}function Cn(e){if(!(!e||!ke(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=wn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):wn(e)}function wn(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function Tn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(d&&D.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}var En=/^o(\d+)\./,Dn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function On(e){return e===`http`||e===`https`}function kn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function An(e){let t=Dn.exec(e);if(!t){b(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return jn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function jn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Mn(e){if(!d)return!0;let{port:t,projectId:n,protocol:r}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(D.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?On(r)?t&&isNaN(parseInt(t,10))?(D.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(D.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(D.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Nn(e){return e.match(En)?.[1]}function Pn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Nn(n)),r}function Fn(e){let t=typeof e==`string`?An(e):jn(e);if(!(!t||!Mn(t)))return t}function In(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Ln=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function Rn(e){if(!e)return;let t=e.match(Ln);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function zn(e,t){let n=Rn(e),r=xn(t);if(!n?.traceId)return{traceId:jt(),sampleRand:rt()};let i=Hn(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function Bn(e=jt(),t=Mt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function Vn(e=jt(),t=Mt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function Hn(e,t){let n=In(t?.sample_rand);if(n!==void 0)return n;let r=In(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?rt()*r:r+rt()*(1-r):rt()}var Un=!1;function Wn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=M(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Gn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:M(e).parent_span_id,a=vn(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||Mt():t,trace_id:n}}function Kn(e){let{traceId:t,spanId:n}=e.spanContext();return Bn(t,n,$n(e))}function qn(e){let{traceId:t,spanId:n}=e.spanContext();return Vn(t,n,$n(e))}function Jn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Yn(e){return typeof e==`number`?Xn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Xn(e.getTime()):k()}function Xn(e){return e>9999999999?e/1e3:e}function M(e){if(Qn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Zn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Yn(i),timestamp:Yn(o)||void 0,status:er(s),op:r[en],origin:r[tn],links:Jn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Zn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Qn(e){return typeof e.getSpanJSON==`function`}function $n(e){let{traceFlags:t}=e.spanContext();return t===1}function er(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var tr=`_sentryChildSpans`,nr=`_sentryRootSpan`;function rr(e,t){Je(t,nr,e[nr]||e),e[tr]?e[tr].add(t):Je(e,tr,new Set([t]))}function ir(e,t){e[tr]&&e[tr].delete(t)}function ar(e){let t=new Set;function n(e){if(!t.has(e)&&$n(e)){t.add(e);let r=e[tr]?Array.from(e[tr]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function or(e){return e[nr]||e}function sr(){let e=Kt(m());return e.getActiveSpan?e.getActiveSpan():Ft(A())}function cr(){Un||=(b(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}var lr=!1;function ur(){if(lr)return;function e(){let e=sr(),t=e&&or(e);if(t){let e=`internal_error`;d&&D.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}e.tag=`sentry_tracingErrorCallback`,lr=!0,ve(e),xe(e)}function dr(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||j()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function fr(e){D.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function pr(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(hr(n)){if(st(e.description,n))return d&&fr(e),!0;continue}if(!n.name&&!n.op)continue;let t=n.name?st(e.description,n.name):!0,r=n.op?e.op&&st(e.op,n.op):!0;if(t&&r)return d&&fr(e),!0}return!1}function mr(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function hr(e){return typeof e==`string`||e instanceof RegExp}var gr=`production`,_r=`_frozenDsc`;function vr(e,t){Je(e,_r,t)}function yr(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Pn(t)};return t.emit(`createDsc`,i),i}function br(e,t){let n=t.getPropagationContext();return n.dsc||yr(n.traceId,e)}function xr(e){let t=j();if(!t)return{};let n=or(e),r=M(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[_r];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&xn(l);if(u)return s(u);let d=yr(e.spanContext().traceId,t),f=i[Zt],p=r.description;return f!==`url`&&p&&(d.transaction=p),dr()&&(d.sampled=String($n(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??vn(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var Sr=class{constructor(e={}){this._traceId=e.traceId||jt(),this._spanId=e.spanId||Mt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function Cr(e,t=100,n=1/0){try{return Tr(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function wr(e,t=3,n=100*1024){let r=Cr(e,t);return kr(r)>n?wr(e,t-1,n):r}function Tr(e,t,n=1/0,r=1/0,i=Ar()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Er(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Tr(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Ze(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Tr(e,t,c-1,r,i),d++}return o(t),u}function Er(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(ze(t))return de(t);if(Le(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${le(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Dr(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Dr(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Or(e){return~-encodeURI(e).split(/%..|./).length}function kr(e){return Or(JSON.stringify(e))}function Ar(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function jr(e,t=[]){return[e,t]}function Mr(e,t){let[n,r]=e;return[n,[...r,t]]}function Nr(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Pr(e,t){return Nr(e,(e,n)=>t.includes(n))}function Fr(e){let t=h(f);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Ir(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[Fr(r),e]:r.push(typeof e==`string`?Fr(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Cr(n))}i(e)}}return typeof r==`string`?r:Lr(r)}function Lr(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Rr(e){return[{type:`span`},e]}function zr(e){let t=typeof e.data==`string`?Fr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Br={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,raw_security:`security`,log:`log_item`,metric:`metric`,trace_metric:`metric`};function Vr(e){return Br[e]}function Hr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ur(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:kn(r)},...i&&{trace:i}}}function Wr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Gr(e,t,n,r){let i=Hr(n);return jr({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:kn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Kr(e,t,n,r){let i=Hr(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Wr(e,n?.sdk);let o=Ur(e,i,r,t);return delete e.sdkProcessingMetadata,jr(o,[[{type:a},e]])}function qr(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=xr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:kn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!pr(M(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=M(e);return s(t)||(cr(),t)}:M,f=[];for(let e of l){let t=d(e);t&&f.push(Rr(t))}return jr(o,f)}function Jr(e){if(!d)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=M(e),{spanId:i}=e.spanContext(),a=$n(e),o=or(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=M(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}D.log(`${c}
|
|
3
|
-
${l.join(`
|
|
4
|
-
`)}`)}function Yr(e){if(!d)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=M(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${or(e)===e?`root `:``}span "${t}" with ID ${r}`;D.log(i)}function Xr(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[rn],i=n[an];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var Zr=1e3,Qr=class{constructor(e={}){this._traceId=e.traceId||jt(),this._spanId=e.spanId||Mt(),this._startTime=e.startTimestamp||k(),this._links=e.links,this._attributes={},this.setAttributes({[tn]:`manual`,[en]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=Yn(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Zt,`custom`),this}end(e){this._endTime||(this._endTime=Yn(e),Yr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[en],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:er(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tn],profile_id:this._attributes[sn],exclusive_time:this._attributes[cn],measurements:Xr(this._events),is_segment:this._isStandaloneSpan&&or(this)===this||void 0,segment_id:this._isStandaloneSpan?or(this).spanContext().spanId:void 0,links:Jn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){d&&D.log(`[Tracing] Adding an event to span:`,e);let r=$r(t)?t:n||k(),i=$r(t)?{}:t||{},a={name:e,time:Yn(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=j();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===or(this)))return;if(this._isStandaloneSpan){this._sampled?ni(qr([this],e)):(d&&D.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}let t=this._convertSpanToTransaction();t&&(vn(this).scope||A()).captureEvent(t)}_convertSpanToTransaction(){if(!ei(M(this)))return;this._name||=(d&&D.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=vn(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=ar(this).filter(e=>e!==this&&!ti(e)).map(e=>M(e)).filter(ei),i=this._attributes[Zt];delete this._attributes[on],r.forEach(e=>{delete e.data[on]});let a={contexts:{trace:Wn(this)},spans:r.length>Zr?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Zr):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:xr(this)},request:n,...i&&{transaction_info:{source:i}}},o=Xr(this._events);return o&&Object.keys(o).length&&(d&&D.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(o,void 0,2)),a.measurements=o),a}};function $r(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function ei(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ti(e){return e instanceof Qr&&e.isStandaloneSpan()}function ni(e){let t=j();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function ri(e,t,n){if(!dr(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=In(i);if(a===void 0)return d&&D.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return d&&D.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||d&&D.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var ii=`__SENTRY_SUPPRESS_TRACING__`;function ai(e){let t=li();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=ci(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Yt(e.scope,t):i===void 0?e=>e():e=>oi(i,e))(()=>{let t=A(),a=fi(t,i);return e.onlyIfParent&&!a?new Sr:si({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function oi(e,t){let n=li();return n.withActiveSpan?n.withActiveSpan(e,t):Yt(n=>(Pt(n,e||void 0),t(n)))}function si({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!dr()){let r=new Sr;return(n||!e)&&vr(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...xr(r)}),r}let i=qt(),a;if(e&&!n)a=di(e,r,t),rr(e,a);else if(e){let n=xr(e),{traceId:i,spanId:o}=e.spanContext(),s=$n(e);a=ui({traceId:i,parentSpanId:o,...t},r,s),vr(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=ui({traceId:e,parentSpanId:o,...t},r,s),n&&vr(a,n)}return Jr(a),_n(a,r,i),a}function ci(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Yn(e.startTime),delete n.startTime,n}return t}function li(){return Kt(m())}function ui(e,t,n){let r=j(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[u,f,p]=t.getScopeData().sdkProcessingMetadata[ii]?[!1]:ri(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:In(l.dsc?.sample_rate)},l.sampleRand),m=new Qr({...e,attributes:{[Zt]:`custom`,[Qt]:f!==void 0&&p?f:void 0,...c},sampled:u});return!u&&r&&(d&&D.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,`transaction`)),r&&r.emit(`spanStart`,m),m}function di(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[ii]?!1:$n(e),o=a?new Qr({...n,parentSpanId:r,traceId:i,sampled:a}):new Sr({traceId:i});rr(e,o);let s=j();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function fi(e,t){if(t)return t;if(t===null)return;let n=Ft(e);if(!n)return;let r=j();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?or(n):n}var pi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},mi=`heartbeatFailed`,hi=`idleTimeout`,gi=`finalTimeout`,_i=`externalFinish`;function vi(e,t={}){let n=new Map,r=!1,i,a=_i,o=!t.disableAutoFinish,s=[],{idleTimeout:c=pi.idleTimeout,finalTimeout:l=pi.finalTimeout,childSpanTimeout:u=pi.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=j();if(!m||!dr()){let e=new Sr;return vr(e,{sample_rate:`0`,sampled:`false`,...xr(e)}),e}let h=A(),g=sr(),_=yi(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),t instanceof Sr)return;let[r,...i]=n,a=Yn(r||k()),o=ar(_).filter(e=>e!==_),s=M(_);if(!o.length||!p)return C(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,u=o?.reduce((e,t)=>{let n=M(t);return!n.timestamp||c&&pr(n,c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+l/1e3:1/0,Math.max(d||-1/0,Math.min(a,u||1/0)));return C(h),Reflect.apply(e,t,[h,...i])}});function v(){i&&=(clearTimeout(i),void 0)}function y(e){v(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=hi,_.end(e))},c)}function b(e){i=setTimeout(()=>{!r&&o&&(a=mi,_.end(e))},u)}function x(e){v(),n.set(e,!0),b(k()+u/1e3)}function S(e){n.has(e)&&n.delete(e),n.size===0&&y(k()+c/1e3)}function C(e){r=!0,n.clear(),s.forEach(e=>e()),Pt(h,g);let t=M(_),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(nn,a);let o=t.status;(!o||o===`unknown`)&&_.setStatus({code:1}),D.log(`[Tracing] Idle span "${t.op}" finished`);let u=ar(_).filter(e=>e!==_),f=0;u.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),d&&D.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=M(t),i=r<=e,a=(l+c)/1e3,o=n-r<=a;if(d){let e=JSON.stringify(t,void 0,2);i?o||D.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):D.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(ir(_,t),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return s.push(m.on(`spanStart`,e=>{r||e===_||M(e).timestamp||e instanceof Qr&&e.isStandaloneSpan()||ar(_).includes(e)&&x(e.spanContext().spanId)})),s.push(m.on(`spanEnd`,e=>{r||S(e.spanContext().spanId)})),s.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(o=!0,y(),n.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(_.setStatus({code:2,message:`deadline_exceeded`}),a=gi,_.end())},l),_}function yi(e){let t=ai(e);return Pt(A(),t),d&&D.log(`[Tracing] Started span is an idle span`),t}var bi=0,xi=1,Si=2;function Ci(e){return new Ti(t=>{t(e)})}function wi(e){return new Ti((t,n)=>{n(e)})}var Ti=class e{constructor(e){this._state=bi,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===bi)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===xi&&e[1](this._value),this._state===Si&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===bi){if(Ie(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(xi,e)},r=e=>{t(Si,e)};try{e(n,r)}catch(e){r(e)}}};function Ei(e,t,n,r=0){try{let i=Di(t,n,e,r);return Ie(i)?i:Ci(i)}catch(e){return wi(e)}}function Di(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return d&&a===null&&D.log(`Event processor "${i.id||`?`}" dropped event`),Ie(a)?a.then(e=>Di(e,t,n,r+1)):Di(a,t,n,r+1)}var Oi,ki,Ai,ji;function Mi(e){let t=f._sentryDebugIds,n=f._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(ji&&r.length===ki&&i.length===Ai)return ji;ki=r.length,Ai=i.length,ji={},Oi||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=Oi?.[r];if(i&&ji&&t)ji[i[0]]=t,Oi&&(Oi[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&ji&&Oi){ji[i]=t,Oi[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),ji}function Ni(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Li(e,t),r&&Bi(e,r),Vi(e,n),Ri(e,i),zi(e,a)}function Pi(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;Fi(e,`extra`,n),Fi(e,`tags`,r),Fi(e,`attributes`,i),Fi(e,`user`,a),Fi(e,`contexts`,o),e.sdkProcessingMetadata=At(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Fi(e,t,n){e[t]=At(e[t],n,1)}function Ii(e,t){let n=Jt().getScopeData();return e&&Pi(n,e.getScopeData()),t&&Pi(n,t.getScopeData()),n}function Li(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Ri(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function zi(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Bi(e,t){e.contexts={trace:Gn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:xr(t),...e.sdkProcessingMetadata};let n=M(or(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Vi(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Hi(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ft(),timestamp:t.timestamp||bt()},l=n.integrations||e.integrations.map(e=>e.name);Ui(c,e),Ki(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Wi(c,e.stackParser);let u=Ji(r,n.captureContext);n.mechanism&>(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Ii(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Ni(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Ci(c):Ei(m,c,n)).then(e=>(e&&Gi(e),typeof o==`number`&&o>0?qi(e,o,s):e))}function Ui(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=at(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=at(e.value,a)})}function Wi(e,t){let n=Mi(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Gi(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function Ki(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function qi(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Cr(e.data,t,n)}}))},...e.user&&{user:Cr(e.user,t,n)},...e.contexts&&{contexts:Cr(e.contexts,t,n)},...e.extra&&{extra:Cr(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Cr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Cr(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Cr(e.contexts.flags,3,n)),r}function Ji(e,t){if(!t)return e;let n=e?e.clone():new Lt;return n.update(t),n}function Yi(e){if(e)return Xi(e)||Qi(e)?{captureContext:e}:e}function Xi(e){return e instanceof Lt||typeof e==`function`}var Zi=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Qi(e){return Object.keys(e).some(e=>Zi.includes(e))}function $i(e,t){return A().captureException(e,Yi(t))}function ea(e,t){return A().captureEvent(e,t)}function ta(e,t){qt().setTag(e,t)}function na(){let e=j();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function ra(e){let t=qt(),{user:n}=Ii(t,A()),{userAgent:r}=f.navigator||{},i=Et({user:n,...r&&{userAgent:r},...e}),a=t.getSession();return a?.status===`ok`&&Dt(a,{status:`exited`}),ia(),t.setSession(i),i}function ia(){let e=qt(),t=A().getSession()||e.getSession();t&&Ot(t),aa(),e.setSession()}function aa(){let e=qt(),t=j(),n=e.getSession();n&&t&&t.captureSession(n)}function oa(e=!1){if(e){ia();return}aa()}var sa=`7`;function ca(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function la(e){return`${ca(e)}${e.projectId}/envelope/`}function ua(e,t){let n={sentry_version:sa};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function da(e,t,n){return t||`${la(e)}?${ua(e,n)}`}var fa=[];function pa(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function ma(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return pa(r)}function ha(e,t){let n={};return t.forEach(t=>{t&&_a(e,t,n)}),n}function ga(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function _a(e,t,n){if(n[t.name]){d&&D.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!fa.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),fa.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}d&&D.log(`Integration installed: ${t.name}`)}function va(e){return e}function ya(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function ba(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=kn(r)),jr(i,[ya(e)])}function xa(e,t){let n=t??Sa(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ba(n,r._metadata,r.tunnel,e.getDsn());Ca().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Sa(e){return Ca().get(e)}function Ca(){return g(`clientToLogBufferMap`,()=>new WeakMap)}function wa(e){return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{items:e}]}function Ta(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=kn(r)),jr(i,[wa(e)])}function Ea(e,t){let n=t??Da(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ta(n,r._metadata,r.tunnel,e.getDsn());Oa().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Da(e){return Oa().get(e)}function Oa(){return g(`clientToMetricBufferMap`,()=>new WeakMap)}function ka(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Aa=Symbol.for(`SentryBufferFullError`);function ja(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return wi(Aa);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Ci(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>ka(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ma=60*1e3;function Na(e,t=it()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ma:r-t}function Pa(e,t){return e[t]||e.all||0}function Fa(e,t,n=it()){return Pa(e,t)>n}function Ia(e,{statusCode:t,headers:n},r=it()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Na(o,r):t===429&&(i.all=r+60*1e3);return i}function La(e,t,n=ja(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Nr(i,(t,n)=>{let i=Vr(n);Fa(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=jr(i[0],a),s=t=>{if(Pr(o,[`client_report`])){d&&D.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}Nr(o,(n,r)=>{e.recordDroppedEvent(t,Vr(r))})};return n.add(()=>t({body:Ir(o)}).then(e=>e.statusCode===413?(d&&D.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),s(`send_error`),e):(d&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&D.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Ia(r,e),e),e=>{throw s(`network_error`),d&&D.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Aa)return d&&D.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Ra(e,t,n){let r=[{type:`client_report`},{timestamp:n||bt(),discarded_events:e}];return jr(t?{dsn:t}:{},[r])}function za(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Ba(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[sn],exclusive_time:o?.[cn],measurements:e.measurements,is_segment:!0}}function Va(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Ha=`Not capturing exception because it's already been captured.`,Ua=`Discarded session because of missing or non-string release`,Wa=Symbol.for(`SentryInternalError`),Ga=Symbol.for(`SentryDoNotSendEventError`),Ka=5e3;function qa(e){return{message:e,[Wa]:!0}}function Ja(e){return{message:e,[Ga]:!0}}function Ya(e){return!!e&&typeof e==`object`&&Wa in e}function Xa(e){return!!e&&typeof e==`object`&&Ga in e}function Za(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=ka(setTimeout(()=>{i(e)},Ka)))}),e.on(`flush`,()=>{i(e)})}var Qa=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ja(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=Fn(e.dsn):d&&D.warn(`No DSN provided, client will not send events.`),this._dsn){let t=da(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Za(this,`afterCaptureLog`,`flushLogs`,ao,xa),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Za(this,`afterCaptureMetric`,`flushMetrics`,io,Ea)}captureException(e,t,n){let r=ft();if(_t(e))return d&&D.log(Ha),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:ft(),...n},a=Ae(e)?e:String(e),o=je(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=ft();if(t?.originalException&&_t(t.originalException))return d&&D.log(Ha),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=$a(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),Dt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit(`flush`);let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){xa(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];_a(this,e,this._integrations),t||ga(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Kr(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=Mr(n,zr(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=gr}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){d&&D.warn(Ua);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){d&&D.warn(Ua);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Gr(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;d&&D.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return d&&D.error(`Error while sending envelope:`,e),{}}return d&&D.error(`Transport disabled`),{}}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=ha(this,e),ga(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Dt(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Hi(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Xt(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:br(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=A(),r=qt()){return d&&no(e)&&D.log(`Captured error event \`${za(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{d&&(Xa(e)?D.log(e.message):Ya(e)?D.warn(e.message):D.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ro(e),s=no(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:In(a);if(s&&typeof l==`number`&&rt()>l)return this.recordDroppedEvent(`sample_rate`,`error`),wi(Ja(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=$a(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Ja("An event processor returned `null`, will not send event.");return t.data&&t.data.__sentry__===!0?e:eo(to(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Ja(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Xa(e)||Ya(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),qa(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Aa&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){d&&D.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){d&&D.log(`No outcomes to send`);return}if(!this._dsn){d&&D.log(`No dsn provided, will not send outcomes`);return}d&&D.log(`Sending outcomes:`,e);let t=Ra(e,this._options.tunnel&&kn(this._dsn));this.sendEnvelope(t)}};function $a(e){return e===`replay_event`?`replay`:e||`error`}function eo(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Ie(e))return e.then(e=>{if(!Me(e)&&e!==null)throw qa(n);return e},e=>{throw qa(`${t} rejected with ${e}`)});if(!Me(e)&&e!==null)throw qa(n);return e}function to(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,c=n;if(no(c)&&i)return i(c,r);if(ro(c)){if(o||s){let t=Ba(c);if(s?.length&&pr(t,s))return null;if(o){let e=o(t);e?c=At(n,Va(e)):cr()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(s?.length&&pr(e,s)){mr(n,e);continue}if(o){let n=o(e);n?t.push(n):(cr(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function no(e){return e.type===void 0}function ro(e){return e.type===`transaction`}function io(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+oo(e.attributes)}function ao(e){let t=0;return e.message&&(t+=e.message.length*2),t+oo(e.attributes)}function oo(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*so(e[0]):je(e)?t+=so(e):t+=100}),t}function so(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function co(e){return we(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function lo(e){return co(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function uo(e,t){t.debug===!0&&(d?D.enable():b(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),A().update(t.initialScope);let n=new e(t);return fo(n),n.init(),n}function fo(e){A().setClient(e)}var po=`thismessage:/`;function mo(e){return`isRelative`in e}function ho(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?po:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function go(e){if(mo(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function _o(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function vo(e){return e.split(/[?#]/,1)[0]}function yo(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function bo(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function xo(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:p})),i.version=p)}function So(e={}){let t=e.client||j();if(!na()||!t)return{};let n=Kt(m());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||A(),i=e.span||sr(),a=i?Kn(i):Co(r),o=Sn(i?xr(i):br(t,r));if(!Ln.test(a))return D.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let s={"sentry-trace":a,baggage:o};return e.propagateTraceparent&&(s.traceparent=i?qn(i):wo(r)),s}function Co(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Bn(t,r,n)}function wo(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Vn(t,r,n)}var To=100;function Eo(e,t){let n=j(),r=qt();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=To}=n.getOptions();if(a<=0)return;let o={timestamp:bt(),...e},s=i?b(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var Do,Oo=`FunctionToString`,ko=new WeakMap,Ao=va((()=>({name:Oo,setupOnce(){Do=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Xe(this),n=ko.has(j())&&t!==void 0?t:this;return Do.apply(n,e)}}catch{}},setup(e){ko.set(e,!0)}}))),jo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,`vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)`,`Can't find variable: _AutofillCallbackHandler`,/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Mo=`EventFilters`,No=va((e={})=>{let t;return{name:Mo,setup(n){t=Fo(e,n.getOptions())},processEvent(n,r,i){return t||=Fo(e,i.getOptions()),Io(n,t)?null:n}}}),Po=va(((e={})=>({...No(e),name:`InboundFilters`})));function Fo(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:jo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Io(e,t){if(e.type){if(e.type===`transaction`&&Ro(e,t.ignoreTransactions))return d&&D.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${mt(e)}`),!0}else{if(Lo(e,t.ignoreErrors))return d&&D.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${mt(e)}`),!0;if(Uo(e))return d&&D.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${mt(e)}`),!0;if(zo(e,t.denyUrls))return d&&D.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${mt(e)}.\nUrl: ${Ho(e)}`),!0;if(!Bo(e,t.allowUrls))return d&&D.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${mt(e)}.\nUrl: ${Ho(e)}`),!0}return!1}function Lo(e,t){return t?.length?za(e).some(e=>ct(e,t)):!1}function Ro(e,t){if(!t?.length)return!1;let n=e.transaction;return n?ct(n,t):!1}function zo(e,t){if(!t?.length)return!1;let n=Ho(e);return n?ct(n,t):!1}function Bo(e,t){if(!t?.length)return!0;let n=Ho(e);return n?ct(n,t):!0}function Vo(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Ho(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Vo(t):null}catch{return d&&D.error(`Cannot extract url for event ${mt(e)}`),null}}function Uo(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Wo(e,t,n,r,i,a){if(!i.exception?.values||!a||!Re(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Go(e,t,r,a.originalException,n,i.exception.values,o,0))}function Go(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Re(r[i],Error)){qo(o,s,r);let a=e(t,r[i]),l=c.length;Jo(a,i,l,s),c=Go(e,t,n,r[i],i,[a,...c],a,l)}return Ko(r)&&r.errors.forEach((a,l)=>{if(Re(a,Error)){qo(o,s,r);let u=e(t,a),d=c.length;Jo(u,`errors[${l}]`,d,s),c=Go(e,t,n,a,i,[u,...c],u,d)}}),c}function Ko(e){return Array.isArray(e.errors)}function qo(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ko(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Jo(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Yo(e){let t=`console`;me(t,e),he(t,Xo)}function Xo(){`console`in f&&_.forEach(function(e){e in f.console&&qe(f.console,e,function(t){return y[e]=t,function(...t){ge(`console`,{args:t,level:e}),y[e]?.apply(f.console,t)}})})}function Zo(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Qo=`Dedupe`,$o=va((()=>{let e;return{name:Qo,processEvent(t){if(t.type)return t;try{if(es(t,e))return d&&D.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function es(e,t){return t?!!(ts(e,t)||ns(e,t)):!1}function ts(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!is(e,t)||!rs(e,t))}function ns(e,t){let n=as(t),r=as(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!is(e,t)||!rs(e,t))}function rs(e,t){let n=ue(e),r=ue(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function is(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function as(e){return e.exception?.values?.[0]}var os=`ConversationId`,ss=va((()=>({name:os,setup(e){e.on(`spanStart`,e=>{let t=A().getScopeData(),n=qt().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute(un,r)})}})));function cs(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=dr()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(ds(n,e),ls(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=!!sr(),d=s&&u?ai(ms(o,a,c)):new Sr;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=us(t,n,dr()&&u?d:void 0,l);r&&(e.args[1]=n,n.headers=r)}let f=j();if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit(`beforeOutgoingRequestSpan`,d,t)}return d}function ls(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function us(e,t,n,r){let i=So({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(Be(e)?e.headers:void 0);if(c)if(ps(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?fs(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(Array.isArray(c)){let e=[...c];c.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!c.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&fs(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>fs(e)):fs(n));o&&!l&&i.push(o);let u={...c,"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0};return r&&s&&!t&&(u.traceparent=s),u}else return{...i}}function ds(e,t){if(t.response){fn(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function fs(e){return e.split(`,`).some(e=>e.trim().startsWith(yn))}function ps(e){return typeof Headers<`u`&&Re(e,Headers)}function ms(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${yo(e)}`,attributes:hs(e,void 0,t,n)};let r=ho(e);return{name:`${t} ${r?go(r):e}`,attributes:hs(e,r,t,n)}}function hs(e,t,n,r){let i={url:yo(e),type:`fetch`,"http.method":n,[tn]:r,[en]:`http.client`};return t&&(mo(t)||(i[`http.url`]=yo(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function gs(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var _s=f;function vs(){if(!(`fetch`in _s))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ys(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bs(){if(typeof EdgeRuntime==`string`)return!0;if(!vs())return!1;if(ys(_s.fetch))return!0;let e=!1,t=_s.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ys(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){d&&D.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function xs(e,t){let n=`fetch`;me(n,e),he(n,()=>Cs(void 0,t))}function Ss(e){let t=`fetch-body-resolved`;me(t,e),he(t,()=>Cs(Ts))}function Cs(e,t=!1){t&&!bs()||qe(f,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Os(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:k()*1e3,virtualError:r,headers:ks(n)};return e||ge(`fetch`,{...o}),t.apply(f,n).then(async t=>(e?e(t):ge(`fetch`,{...o,endTimestamp:k()*1e3,response:t}),t),e=>{ge(`fetch`,{...o,endTimestamp:k()*1e3,error:e}),we(e)&&e.stack===void 0&&(e.stack=r.stack,Je(e,`framesToPop`,1));let t=j()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Je(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function ws(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ts(e){let t;try{t=e.clone()}catch{return}ws(t,()=>{ge(`fetch-body-resolved`,{endTimestamp:k()*1e3,response:e})})}function Es(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Ds(e){return typeof e==`string`?e:e?Es(e,`url`)?e.url:e.toString?e.toString():``:``}function Os(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Ds(t),method:Es(n,`method`)?String(n.method).toUpperCase():Be(t)&&Es(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Ds(t),method:Es(t,`method`)?String(t.method).toUpperCase():`GET`}}function ks(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Be(t))return new Headers(t.headers)}catch{}}function As(){return`npm`}var N=f,js=0;function Ms(){return js>0}function Ns(){js++,setTimeout(()=>{js--})}function Ps(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Xe(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Ps(e,t));return e.apply(this,r)}catch(e){throw Ns(),Yt(r=>{r.addEventProcessor(e=>(t.mechanism&&(ht(e,void 0,void 0),gt(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),$i(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}Ye(r,e),Je(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,`name`,{get(){return e.name}})}catch{}return r}function Fs(){let e=Ge(),{referrer:t}=N.document||{},{userAgent:n}=N.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Is(e,t){let n=zs(e,t),r={type:Ws(t),value:Gs(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ls(e,t,n,r){let i=j()?.getOptions().normalizeDepth,a=Qs(t),o={__serialized__:wr(t,i)};if(a)return{exception:{values:[Is(e,a)]},extra:o};let s={exception:{values:[{type:Ne(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Xs(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=zs(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Rs(e,t){return{exception:{values:[Is(e,t)]}}}function zs(e,t){let n=t.stacktrace||t.stack||``,r=Vs(t),i=Hs(t);try{return e(n,r,i)}catch{}return[]}var Bs=/Minified React error #\d+;/i;function Vs(e){return e&&Bs.test(e.message)?1:0}function Hs(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Us(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ws(e){let t=e?.name;return!t&&Us(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Gs(e){let t=e?.message;return Us(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?lo(t.error):lo(e):`No error message`}function Ks(e,t,n,r){let i=Js(e,t,n?.syntheticException||void 0,r);return gt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Ci(i)}function qs(e,t,n=`info`,r,i){let a=Ys(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Ci(a)}function Js(e,t,n,r,i){let a;if(Ee(t)&&t.error)return Rs(e,t.error);if(De(t)||Oe(t)){let i=t;if(`stack`in t)a=Rs(e,t);else{let t=i.name||(De(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Ys(e,o,n,r),ht(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return we(t)?Rs(e,t):Me(t)||Ne(t)?(a=Ls(e,t,n,i),gt(a,{synthetic:!0}),a):(a=Ys(e,t,n,r),ht(a,`${t}`,void 0),gt(a,{synthetic:!0}),a)}function Ys(e,t,n,r){let i={};if(r&&n){let r=zs(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),gt(i,{synthetic:!0})}if(Ae(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Xs(e,{isUnhandledRejection:t}){let n=et(e),r=t?`promise rejection`:`exception`;return Ee(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ne(e)?`Event \`${Zs(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Zs(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Qs(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var $s=class extends Qa{constructor(e){let t=ec(e);xo(t,`browser`,[`browser`],N.SENTRY_SDK_SOURCE||As()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;N.document&&(r||i||s)&&N.document.addEventListener(`visibilitychange`,()=>{N.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&xa(this),s&&Ea(this))}),n&&this.on(`beforeSendSession`,bo)}eventFromException(e,t){return Ks(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return qs(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function ec(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:N.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var P=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,F=globalThis,tc=`10.43.0`;function nc(){return rc(F),F}function rc(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.43.0`,t[tc]=t[`10.43.0`]||{}}function ic(e,t,n=F){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[tc]=r[`10.43.0`]||{};return i[e]||(i[e]=t())}var ac=`Sentry Logger `,oc={};function sc(e){if(!(`console`in F))return e();let t=F.console,n={},r=Object.keys(oc);r.forEach(e=>{let r=oc[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function cc(){hc().enabled=!0}function lc(){hc().enabled=!1}function uc(){return hc().enabled}function dc(...e){mc(`log`,...e)}function fc(...e){mc(`warn`,...e)}function pc(...e){mc(`error`,...e)}function mc(e,...t){P&&uc()&&sc(()=>{F.console[e](`${ac}[${e}]:`,...t)})}function hc(){return P?ic(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var I={enable:cc,disable:lc,isEnabled:uc,log:dc,warn:fc,error:pc},gc=`<anonymous>`;function _c(e){try{return!e||typeof e!=`function`?gc:e.name||gc}catch{return gc}}var vc={},yc={};function bc(e,t){vc[e]=vc[e]||[],vc[e].push(t)}function xc(e,t){if(!yc[e]){yc[e]=!0;try{t()}catch(t){P&&I.error(`Error while instrumenting ${e}`,t)}}}function Sc(e,t){let n=e&&vc[e];if(n)for(let r of n)try{r(t)}catch(t){P&&I.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_c(r)}\nError:`,t)}}var Cc=Object.prototype.toString;function wc(e,t){return Cc.call(e)===`[object ${t}]`}function Tc(e){return wc(e,`String`)}function Ec(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Dc(e){return e===null||Ec(e)||typeof e!=`object`&&typeof e!=`function`}function Oc(e){return wc(e,`Object`)}function kc(e){return wc(e,`RegExp`)}function Ac(e){return!!(e?.then&&typeof e.then==`function`)}var jc=F,Mc=80;function Nc(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Mc;for(;n&&i++<5&&(o=Pc(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Pc(e,t){let n=e,r=[];if(!n?.tagName)return``;if(jc.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&Tc(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Fc(e){if(!jc.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ic(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Rc(i,r);try{e[t]=i}catch{P&&I.log(`Failed to replace method "${t}" in object`,e)}}function Lc(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{P&&I.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Rc(e,t){try{e.prototype=t.prototype=t.prototype||{},Lc(e,`__sentry_original__`,t)}catch{}}var zc;function Bc(e){if(zc!==void 0)return zc?zc(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=F;return t in n&&typeof n[t]==`function`?(zc=n[t],zc(e)):(zc=null,e())}function Vc(){return Bc(()=>Math.random())}function Hc(){return Bc(()=>Date.now())}function Uc(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Wc(e,t,n=!1){return Tc(e)?kc(t)?t.test(e):Tc(t)?n?e===t:e.includes(t):!1:!1}function Gc(e,t=[],n=!1){return t.some(t=>Wc(e,t,n))}function Kc(){let e=F;return e.crypto||e.msCrypto}var qc;function Jc(){return Vc()*16}function Yc(e=Kc()){try{if(e?.randomUUID)return Bc(()=>e.randomUUID()).replace(/-/g,``)}catch{}return qc||=`10000000100040008000100000000000`,qc.replace(/[018]/g,e=>(e^(Jc()&15)>>e/4).toString(16))}var Xc=1e3;function Zc(){return Hc()/Xc}function Qc(){let{performance:e}=F;if(!e?.now||!e.timeOrigin)return Zc;let t=e.timeOrigin;return()=>(t+Bc(()=>e.now()))/Xc}var $c;function el(){return($c??=Qc())()}var tl=null;function nl(){let{performance:e}=F;if(!e?.now)return;let t=3e5,n=Bc(()=>e.now()),r=Hc(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function rl(){return tl===null&&(tl=nl()),tl}function il(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||el(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Yc()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function al(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=al(r[e],t[e],n-1));return r}function ol(){return Yc()}function sl(){return Yc().substring(16)}var cl=`_sentrySpan`;function ll(e,t){t?Lc(e,cl,t):delete e[cl]}function ul(e){return e[cl]}var dl=100,fl=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ol(),sampleRand:Vc()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ll(t,ul(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&il(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():Oc(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ll(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ol(),sampleRand:Vc()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:dl;if(n<=0)return this;let r={timestamp:Zc(),...e,message:e.message?Uc(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ul(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=al(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Yc();if(!this._client)return P&&I.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Yc();if(!this._client)return P&&I.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Yc();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(P&&I.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function pl(){return ic(`defaultCurrentScope`,()=>new fl)}function ml(){return ic(`defaultIsolationScope`,()=>new fl)}var hl=class{constructor(e,t){let n;n=e||new fl;let r;r=t||new fl,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Ac(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function gl(){let e=rc(nc());return e.stack=e.stack||new hl(pl(),ml())}function _l(e){return gl().withScope(e)}function vl(e,t){let n=gl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function yl(e){return gl().withScope(()=>e(gl().getIsolationScope()))}function bl(){return{withIsolationScope:yl,withScope:_l,withSetScope:vl,withSetIsolationScope:(e,t)=>yl(t),getCurrentScope:()=>gl().getScope(),getIsolationScope:()=>gl().getIsolationScope()}}function xl(e){let t=rc(e);return t.acs?t.acs:bl()}function Sl(){return xl(nc()).getCurrentScope()}function Cl(){return xl(nc()).getIsolationScope()}function wl(...e){let t=xl(nc());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Tl(){return Sl().getClient()}var El=`sentry.source`,Dl=`sentry.sample_rate`,Ol=`sentry.op`,L=`sentry.origin`,kl=`sentry.measurement_unit`,Al=`sentry.measurement_value`,jl=`sentry.custom_span_name`,Ml=`sentry.profile_id`,Nl=`sentry.exclusive_time`,Pl=`_sentryScope`,Fl=`_sentryIsolationScope`;function Il(e){try{let t=F.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Ll(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function Rl(e,t,n){e&&(Lc(e,Fl,Il(n)),Lc(e,Pl,t))}function zl(e){let t=e;return{scope:t[Pl],isolationScope:Ll(t[Fl])}}var Bl=/^sentry-/;function Vl(e){let t=Hl(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Bl)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Hl(e){if(!(!e||!Tc(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Ul(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Ul(e)}function Ul(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Wl=/^o(\d+)\./;function Gl(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Kl(e){return e.match(Wl)?.[1]}function ql(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Kl(n)),r}function Jl(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var Yl=!1;function Xl(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=R(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function Zl(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Ql(e){return typeof e==`number`?$l(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?$l(e.getTime()):el()}function $l(e){return e>9999999999?e/1e3:e}function R(e){if(tu(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(eu(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Ql(i),timestamp:Ql(o)||void 0,status:ru(s),op:r[Ol],origin:r[L],links:Zl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function eu(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function tu(e){return typeof e.getSpanJSON==`function`}function nu(e){let{traceFlags:t}=e.spanContext();return t===1}function ru(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var iu=`_sentryChildSpans`,au=`_sentryRootSpan`;function ou(e,t){Lc(t,au,e[au]||e),e[iu]?e[iu].add(t):Lc(e,iu,new Set([t]))}function su(e){let t=new Set;function n(e){if(!t.has(e)&&nu(e)){t.add(e);let r=e[iu]?Array.from(e[iu]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function cu(e){return e[au]||e}function lu(){let e=xl(nc());return e.getActiveSpan?e.getActiveSpan():ul(Sl())}function uu(){Yl||=(sc(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function du(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||Tl()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function fu(e){I.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function pu(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(mu(n)){if(Wc(e.description,n))return P&&fu(e),!0;continue}if(!n.name&&!n.op)continue;let t=n.name?Wc(e.description,n.name):!0,r=n.op?e.op&&Wc(e.op,n.op):!0;if(t&&r)return P&&fu(e),!0}return!1}function mu(e){return typeof e==`string`||e instanceof RegExp}var hu=`_frozenDsc`;function gu(e,t){Lc(e,hu,t)}function _u(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:ql(t)};return t.emit(`createDsc`,i),i}function vu(e){let t=Tl();if(!t)return{};let n=cu(e),r=R(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[hu];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Vl(l);if(u)return s(u);let d=_u(e.spanContext().traceId,t),f=i[El],p=r.description;return f!==`url`&&p&&(d.transaction=p),du()&&(d.sampled=String(nu(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??zl(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var yu=class{constructor(e={}){this._traceId=e.traceId||ol(),this._spanId=e.spanId||sl()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function bu(e,t=[]){return[e,t]}function xu(e){return[{type:`span`},e]}function Su(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=vu(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Gl(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!pu(R(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=R(e);return s(t)||(uu(),t)}:R,f=[];for(let e of l){let t=d(e);t&&f.push(xu(t))}return bu(o,f)}function Cu(e){if(!P)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=R(e),{spanId:i}=e.spanContext(),a=nu(e),o=cu(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=R(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}I.log(`${c}
|
|
5
|
-
${l.join(`
|
|
6
|
-
`)}`)}function wu(e){if(!P)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=R(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${cu(e)===e?`root `:``}span "${t}" with ID ${r}`;I.log(i)}function Tu(e,t,n,r=lu()){let i=r&&cu(r);i&&(P&&I.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Al]:t,[kl]:n}))}function Eu(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[kl],i=n[Al];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var Du=1e3,Ou=class{constructor(e={}){this._traceId=e.traceId||ol(),this._spanId=e.spanId||sl(),this._startTime=e.startTimestamp||el(),this._links=e.links,this._attributes={},this.setAttributes({[L]:`manual`,[Ol]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=Ql(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(El,`custom`),this}end(e){this._endTime||(this._endTime=Ql(e),wu(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Ol],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ru(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[L],profile_id:this._attributes[Ml],exclusive_time:this._attributes[Nl],measurements:Eu(this._events),is_segment:this._isStandaloneSpan&&cu(this)===this||void 0,segment_id:this._isStandaloneSpan?cu(this).spanContext().spanId:void 0,links:Zl(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){P&&I.log(`[Tracing] Adding an event to span:`,e);let r=ku(t)?t:n||el(),i=ku(t)?{}:t||{},a={name:e,time:Ql(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Tl();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===cu(this)))return;if(this._isStandaloneSpan){this._sampled?Mu(Su([this],e)):(P&&I.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}let t=this._convertSpanToTransaction();t&&(zl(this).scope||Sl()).captureEvent(t)}_convertSpanToTransaction(){if(!Au(R(this)))return;this._name||=(P&&I.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=zl(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=su(this).filter(e=>e!==this&&!ju(e)).map(e=>R(e)).filter(Au),i=this._attributes[El];delete this._attributes[jl],r.forEach(e=>{delete e.data[jl]});let a={contexts:{trace:Xl(this)},spans:r.length>Du?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Du):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:vu(this)},request:n,...i&&{transaction_info:{source:i}}},o=Eu(this._events);return o&&Object.keys(o).length&&(P&&I.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(o,void 0,2)),a.measurements=o),a}};function ku(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Au(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ju(e){return e instanceof Ou&&e.isStandaloneSpan()}function Mu(e){let t=Tl();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Nu(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return Pu(i,t,n,r)}function Pu(e,t,n,r){return Ac(e)?e.then(e=>(n(),r(e),e),e=>{throw t(e),n(),e}):(n(),r(e),e)}function Fu(e,t,n){if(!du(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=Jl(i);if(a===void 0)return P&&I.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return P&&I.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||P&&I.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Iu=`__SENTRY_SUPPRESS_TRACING__`;function Lu(e,t){let n=Hu();if(n.startSpan)return n.startSpan(e,t);let r=Vu(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return wl(s,()=>Ku(a)(()=>{let n=Sl(),o=Gu(n,a),s=e.onlyIfParent&&!o?new yu:Bu({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return ll(n,s),Nu(()=>t(s),()=>{let{status:e}=R(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function Ru(e){let t=Hu();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Vu(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>wl(e.scope,t):i===void 0?e=>e():e=>zu(i,e))(()=>{let t=Sl(),a=Gu(t,i);return e.onlyIfParent&&!a?new yu:Bu({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function zu(e,t){let n=Hu();return n.withActiveSpan?n.withActiveSpan(e,t):wl(n=>(ll(n,e||void 0),t(n)))}function Bu({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!du()){let r=new yu;return(n||!e)&&gu(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...vu(r)}),r}let i=Cl(),a;if(e&&!n)a=Wu(e,r,t),ou(e,a);else if(e){let n=vu(e),{traceId:i,spanId:o}=e.spanContext(),s=nu(e);a=Uu({traceId:i,parentSpanId:o,...t},r,s),gu(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Uu({traceId:e,parentSpanId:o,...t},r,s),n&&gu(a,n)}return Cu(a),Rl(a,r,i),a}function Vu(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=Ql(e.startTime),delete n.startTime,n}return t}function Hu(){return xl(nc())}function Uu(e,t,n){let r=Tl(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[u,d,f]=t.getScopeData().sdkProcessingMetadata[Iu]?[!1]:Fu(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:Jl(l.dsc?.sample_rate)},l.sampleRand),p=new Ou({...e,attributes:{[El]:`custom`,[Dl]:d!==void 0&&f?d:void 0,...c},sampled:u});return!u&&r&&(P&&I.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,`transaction`)),r&&r.emit(`spanStart`,p),p}function Wu(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[Iu]?!1:nu(e),o=a?new Ou({...n,parentSpanId:r,traceId:i,sampled:a}):new yu({traceId:i});ou(e,o);let s=Tl();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function Gu(e,t){if(t)return t;if(t===null)return;let n=ul(e);if(!n)return;let r=Tl();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?cu(n):n}function Ku(e){return e===void 0?e=>e():t=>zu(e,t)}function qu(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var Ju=F;function Yu(){return`history`in Ju&&!!Ju.history}function Xu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Zu(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Qu(){return!Zu()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function $u(){return typeof window<`u`&&(!Qu()||ed())}function ed(){return F.process?.type===`renderer`}var td=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,z=F,nd=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,rd=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=nd(t.value,n),e(t)))}},id=(e=!0)=>{let t=z.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},ad=()=>id()?.activationStart??0;function od(e,t,n){z.document&&z.addEventListener(e,t,n)}function sd(e,t,n){z.document&&z.removeEventListener(e,t,n)}var cd=-1,ld=new Set,ud=()=>z.document?.visibilityState===`hidden`&&!z.document?.prerendering?0:1/0,dd=e=>{if(pd(e)&&cd>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of ld)e();isFinite(cd)||(cd=e.type===`visibilitychange`?e.timeStamp:0,sd(`prerenderingchange`,dd,!0))}},fd=()=>{if(z.document&&cd<0){let e=ad();cd=(z.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??ud(),od(`visibilitychange`,dd,!0),od(`pagehide`,dd,!0),od(`prerenderingchange`,dd,!0)}return{get firstHiddenTime(){return cd},onHidden(e){ld.add(e)}}};function pd(e){return e.type===`pagehide`||z.document?.visibilityState===`hidden`}var md=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,hd=(e,t=-1)=>{let n=id(),r=`navigate`;return n&&(z.document?.prerendering||ad()>0?r=`prerender`:z.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:md(),navigationType:r}},gd=new WeakMap;function _d(e,t){try{return gd.get(e)||gd.set(e,new t),gd.get(e)}catch{return new t}}var vd=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},yd=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},bd=e=>{let t=!1;return()=>{t||=(e(),!0)}},xd=e=>{z.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Sd=[1800,3e3],Cd=(e,t={})=>{xd(()=>{let n=fd(),r=hd(`FCP`),i,a=yd(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-ad(),0),r.entries.push(t),i(!0)))});a&&(i=rd(e,r,Sd,t.reportAllChanges))})},wd=[.1,.25],Td=(e,t={})=>{Cd(bd(()=>{let n=hd(`CLS`,0),r,i=fd(),a=_d(t,vd),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=yd(`layout-shift`,o);s&&(r=rd(e,n,wd,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),z?.setTimeout?.(r))}))},Ed=0,Dd=1/0,Od=0,kd=e=>{e.forEach(e=>{e.interactionId&&(Dd=Math.min(Dd,e.interactionId),Od=Math.max(Od,e.interactionId),Ed=Od?(Od-Dd)/7+1:0)})},Ad,jd=()=>Ad?Ed:performance.interactionCount||0,Md=()=>{`interactionCount`in performance||Ad||(Ad=yd(`event`,kd,{type:`event`,buffered:!0,durationThreshold:0}))},Nd=10,Pd=0,Fd=()=>jd()-Pd,Id=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Pd=jd(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(Fd()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Nd||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>Nd){let e=this._longestInteractionList.splice(Nd);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},Ld=e=>{let t=z.requestIdleCallback||z.setTimeout;z.document?.visibilityState===`hidden`?e():(e=bd(e),od(`visibilitychange`,e,{once:!0,capture:!0}),od(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),sd(`visibilitychange`,e,{capture:!0}),sd(`pagehide`,e,{capture:!0})}))},Rd=[200,500],zd=40,Bd=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=fd();xd(()=>{Md();let r=hd(`INP`),i,a=_d(t,Id),o=e=>{Ld(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=yd(`event`,o,{durationThreshold:t.durationThreshold??zd});i=rd(e,r,Rd,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},Vd=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},Hd=[2500,4e3],Ud=(e,t={})=>{xd(()=>{let n=fd(),r=hd(`LCP`),i,a=_d(t,Vd),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-ad(),0),r.entries=[t],i())},s=yd(`largest-contentful-paint`,o);if(s){i=rd(e,r,Hd,t.reportAllChanges);let n=bd(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(Ld(n),sd(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])od(e,a,{capture:!0})}})},Wd=[800,1800],Gd=e=>{z.document?.prerendering?xd(()=>Gd(e)):z.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>Gd(e),!0)},Kd=(e,t={})=>{let n=hd(`TTFB`),r=rd(e,n,Wd,t.reportAllChanges);Gd(()=>{let e=id();e&&(n.value=Math.max(e.responseStart-ad(),0),n.entries=[e],r(!0))})},qd={},Jd={},Yd,Xd,Zd,Qd;function $d(e,t=!1){return uf(`cls`,e,of,Yd,t)}function ef(e,t=!1){return uf(`lcp`,e,sf,Xd,t)}function tf(e){return uf(`ttfb`,e,cf,Zd)}function nf(e){return uf(`inp`,e,lf,Qd)}function rf(e,t){return ff(e,t),Jd[e]||(df(e),Jd[e]=!0),pf(e,t)}function af(e,t){let n=qd[e];if(n?.length)for(let r of n)try{r(t)}catch(t){td&&I.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${_c(r)}\nError:`,t)}}function of(){return Td(e=>{af(`cls`,{metric:e}),Yd=e},{reportAllChanges:!0})}function sf(){return Ud(e=>{af(`lcp`,{metric:e}),Xd=e},{reportAllChanges:!0})}function cf(){return Kd(e=>{af(`ttfb`,{metric:e}),Zd=e})}function lf(){return Bd(e=>{af(`inp`,{metric:e}),Qd=e})}function uf(e,t,n,r,i=!1){ff(e,t);let a;return Jd[e]||(a=n(),Jd[e]=!0),r&&t({metric:r}),pf(e,t,i?a:void 0)}function df(e){let t={};e===`event`&&(t.durationThreshold=0),yd(e,t=>{af(e,{entries:t})},t)}function ff(e,t){qd[e]=qd[e]||[],qd[e].push(t)}function pf(e,t,n){return()=>{n&&n();let r=qd[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function mf(e){return`duration`in e}var hf=e=>{let t=t=>{(t.type===`pagehide`||z.document?.visibilityState===`hidden`)&&e(t)};od(`visibilitychange`,t,{capture:!0,once:!0}),od(`pagehide`,t,{capture:!0,once:!0})};function gf(e){return typeof e==`number`&&isFinite(e)}function _f(e,t,n,{...r}){let i=R(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),zu(e,()=>{let e=Ru({startTime:t,...r});return e&&e.end(n),e})}function vf(e){let t=Tl();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=Sl(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Ru({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":z.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function yf(){return z.addEventListener&&z.performance}function B(e){return e/1e3}function bf(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function xf(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Sf(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}hf(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e.spanContext().spanId,o()})}function Cf(e){let t=0,n;if(!xf(`layout-shift`))return;let r=$d(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Sf(e,(e,i)=>{wf(t,n,i,e),r()})}function wf(e,t,n,r){td&&I.log(`Sending CLS span (${e})`);let i=t?B((rl()||0)+t.startTime):el(),a=Sl().getScopeData().transactionName,o=t?Nc(t.sources[0]?.node):`Layout shift`,s={[L]:`auto.http.browser.cls`,[Ol]:`ui.webvital.cls`,[Nl]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=Nc(e.node)});let c=vf({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[kl]:``,[Al]:e}),c.end(i))}function Tf(e){let t=0,n;if(!xf(`largest-contentful-paint`))return;let r=ef(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Sf(e,(e,i)=>{Ef(t,n,i,e),r()})}function Ef(e,t,n,r){td&&I.log(`Sending LCP span (${e})`);let i=B((rl()||0)+(t?.startTime||0)),a=Sl().getScopeData().transactionName,o=t?Nc(t.element):`Largest contentful paint`,s={[L]:`auto.http.browser.lcp`,[Ol]:`ui.webvital.lcp`,[Nl]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=Nc(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=vf({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[kl]:`millisecond`,[Al]:e}),c.end(i))}function Df(e){return e&&((rl()||performance.timeOrigin)+e)/1e3}function Of(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=bf(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return rl()||yf()?.timeOrigin?kf({...t,"http.request.redirect_start":Df(e.redirectStart),"http.request.redirect_end":Df(e.redirectEnd),"http.request.worker_start":Df(e.workerStart),"http.request.fetch_start":Df(e.fetchStart),"http.request.domain_lookup_start":Df(e.domainLookupStart),"http.request.domain_lookup_end":Df(e.domainLookupEnd),"http.request.connect_start":Df(e.connectStart),"http.request.secure_connection_start":Df(e.secureConnectionStart),"http.request.connection_end":Df(e.connectEnd),"http.request.request_start":Df(e.requestStart),"http.request.response_start":Df(e.responseStart),"http.request.response_end":Df(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function kf(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var Af=2147483647,jf=0,Mf={},V,Nf;function Pf({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=yf();if(r&&rl()){r.mark&&z.performance.mark(`sentry-tracing-init`);let i=t?Tf(n):zf(),a=Bf(),o=e?Cf(n):Rf();return()=>{i?.(),a(),o?.()}}return()=>void 0}function Ff(){rf(`longtask`,({entries:e})=>{let t=lu();if(!t)return;let{op:n,start_timestamp:r}=R(t);for(let i of e){let e=B(rl()+i.startTime),a=B(i.duration);n===`navigation`&&r&&e<r||_f(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[L]:`auto.ui.browser.metrics`}})}})}function If(){new PerformanceObserver(e=>{let t=lu();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=B(rl()+n.startTime),{start_timestamp:r,op:i}=R(t);if(i===`navigation`&&r&&e<r)continue;let a=B(n.duration),o={[L]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),_f(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function Lf(){rf(`event`,({entries:e})=>{let t=lu();if(t){for(let n of e)if(n.name===`click`){let e=B(rl()+n.startTime),r=B(n.duration),i={name:Nc(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[L]:`auto.ui.browser.metrics`}},a=Fc(n.target);a&&(i.attributes[`ui.component_name`]=a),_f(t,e,e+r,i)}}})}function Rf(){return $d(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Mf.cls={value:e.value,unit:``},Nf=t)},!0)}function zf(){return ef(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(Mf.lcp={value:e.value,unit:`millisecond`},V=t)},!0)}function Bf(){return tf(({metric:e})=>{e.entries[e.entries.length-1]&&(Mf.ttfb={value:e.value,unit:`millisecond`})})}function Vf(e,t){let n=yf(),r=rl();if(!n?.getEntries||!r)return;let i=B(r),a=n.getEntries(),{op:o,start_timestamp:s}=R(e);a.slice(jf).forEach(n=>{let r=B(n.startTime),a=B(Math.max(0,n.duration));if(!(o===`navigation`&&s&&i+r<s))switch(n.entryType){case`navigation`:Gf(e,n,i);break;case`mark`:case`paint`:case`measure`:{Uf(e,n,r,a,i,t.ignorePerformanceApiSpans);let o=fd(),s=n.startTime<o.firstHiddenTime;n.name===`first-paint`&&s&&(Mf.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&s&&(Mf.fcp={value:n.startTime,unit:`millisecond`});break}case`resource`:Yf(e,n,n.name,r,a,i,t.ignoreResourceSpans);break}}),jf=Math.max(a.length-1,0),Xf(e),o===`pageload`&&($f(Mf),t.recordClsOnPageloadSpan||delete Mf.cls,t.recordLcpOnPageloadSpan||delete Mf.lcp,Object.entries(Mf).forEach(([e,t])=>{Tu(e,t.value,t.unit)}),e.setAttribute(`performance.timeOrigin`,i),e.setAttribute(`performance.activationStart`,ad()),Zf(e,t)),V=void 0,Nf=void 0,Mf={}}function Hf(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function Uf(e,t,n,r,i,a){if(Hf(t)||[`mark`,`measure`].includes(t.entryType)&&Gc(t.name,a))return;let o=id(!1),s=B(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[L]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),Wf(d,t),c<=u&&_f(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function Wf(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Dc(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Dc(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function Gf(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{Kf(e,t,r,n)}),Kf(e,t,`secureConnection`,n,`TLS/SSL`),Kf(e,t,`fetch`,n,`cache`),Kf(e,t,`domainLookup`,n,`DNS`),Jf(e,t,n)}function Kf(e,t,n,r,i=n){let a=t[qf(n)],o=t[`${n}Start`];!o||!a||_f(e,r+B(o),r+B(a),{op:`browser.${i}`,name:t.name,attributes:{[L]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function qf(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function Jf(e,t,n){let r=n+B(t.requestStart),i=n+B(t.responseEnd),a=n+B(t.responseStart);t.responseEnd&&(_f(e,r,i,{op:`browser.request`,name:t.name,attributes:{[L]:`auto.ui.browser.metrics`}}),_f(e,a,i,{op:`browser.response`,name:t.name,attributes:{[L]:`auto.ui.browser.metrics`}}))}function Yf(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[L]:`auto.resource.browser.metrics`},l=qu(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(z.location.origin),Qf(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Of(t)},d=a+r;_f(e,d,d+i,{name:n.replace(z.location.origin,``),op:s,attributes:u})}function Xf(e){let t=z.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute(`effectiveConnectionType`,n.effectiveType),n.type&&e.setAttribute(`connectionType`,n.type),gf(n.rtt)&&(Mf[`connection.rtt`]={value:n.rtt,unit:`millisecond`})),gf(t.deviceMemory)&&e.setAttribute(`deviceMemory`,`${t.deviceMemory} GB`),gf(t.hardwareConcurrency)&&e.setAttribute(`hardwareConcurrency`,String(t.hardwareConcurrency))}function Zf(e,t){V&&t.recordLcpOnPageloadSpan&&(V.element&&e.setAttribute(`lcp.element`,Nc(V.element)),V.id&&e.setAttribute(`lcp.id`,V.id),V.url&&e.setAttribute(`lcp.url`,V.url.trim().slice(0,200)),V.loadTime!=null&&e.setAttribute(`lcp.loadTime`,V.loadTime),V.renderTime!=null&&e.setAttribute(`lcp.renderTime`,V.renderTime),e.setAttribute(`lcp.size`,V.size)),Nf?.sources&&t.recordClsOnPageloadSpan&&Nf.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Nc(t.node)))}function Qf(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<Af||typeof i==`string`)&&(t[r]=i)})}function $f(e){let t=id(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}function ep(){return yf()&&rl()?rf(`element`,tp):()=>void 0}var tp=({entries:e})=>{let t=lu(),n=t?cu(t):void 0,r=n?R(n).description:Sl().getScopeData().transactionName;e.forEach(e=>{let t=e;if(!t.identifier)return;let n=t.name,i=t.renderTime,a=t.loadTime,[o,s]=a?[B(a),`load-time`]:i?[B(i),`render-time`]:[el(),`entry-emission`],c=n===`image-paint`?B(Math.max(0,(i??0)-(a??0))):0,l={[L]:`auto.ui.browser.elementtiming`,[Ol]:`ui.elementtiming`,[El]:`component`,"sentry.span_start_time_source":s,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||`unknown`,"element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};Lu({name:`element[${t.identifier}]`,attributes:l,startTime:o,onlyIfParent:!0},e=>{e.end(o+c)})})},np=1e3,rp,ip,ap;function op(e){bc(`dom`,e),xc(`dom`,sp)}function sp(){if(!z.document)return;let e=Sc.bind(null,`dom`),t=up(e,!0);z.document.addEventListener(`click`,t,!1),z.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=z[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ic(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=up(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ic(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function cp(e){if(e.type!==ip)return!1;try{if(!e.target||e.target._sentryId!==ap)return!1}catch{}return!0}function lp(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function up(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=dp(n);if(lp(n.type,r))return;Lc(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Lc(r,`_sentryId`,Yc());let i=n.type===`keypress`?`input`:n.type;cp(n)||(e({event:n,name:i,global:t}),ip=n.type,ap=r?r._sentryId:void 0),clearTimeout(rp),rp=z.setTimeout(()=>{ap=void 0,ip=void 0},np)}}function dp(e){try{return e.target}catch{return null}}var fp;function pp(e){let t=`history`;bc(t,e),xc(t,mp)}function mp(){if(z.addEventListener(`popstate`,()=>{let e=z.location.href,t=fp;fp=e,t!==e&&Sc(`history`,{from:t,to:e})}),!Yu())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=fp,i=hp(String(n));if(fp=i,r===i)return e.apply(this,t);Sc(`history`,{from:r,to:i})}return e.apply(this,t)}}Ic(z.history,`pushState`,e),Ic(z.history,`replaceState`,e)}function hp(e){try{return new URL(e,z.location.origin).toString()}catch{return e}}var gp={};function _p(e){let t=gp[e];if(t)return t;let n=z[e];if(Xu(n))return gp[e]=n.bind(z);let r=z.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){td&&I.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(gp[e]=n.bind(z))}function vp(e){gp[e]=void 0}function yp(...e){return _p(`setTimeout`)(...e)}var bp=`__sentry_xhr_v3__`;function xp(e){bc(`xhr`,e),xc(`xhr`,Sp)}function Sp(){if(!z.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=el()*1e3,a=Tc(n[0])?n[0].toUpperCase():void 0,o=Cp(n[1]);if(!a||!o)return e.apply(t,n);t[bp]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[bp];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Sc(`xhr`,{endTimestamp:el()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[bp];return a&&Tc(r)&&Tc(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[bp];return r?(n[0]!==void 0&&(r.body=n[0]),Sc(`xhr`,{startTimestamp:el()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Cp(e){if(Tc(e))return e;try{return e.toString()}catch{}}var wp=Symbol.for(`sentry__originalRequestBody`);function Tp(e){return new URLSearchParams(e).toString()}function Ep(e,t=I){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Tp(e)];if(!e)return[void 0]}catch(n){return td&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return td&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Dp(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][wp];return t===void 0?void 0:t}}function Op(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return td&&I.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
|
|
7
|
-
`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}var kp=[],Ap=new Map,jp=new Map,Mp=60;function Np(){if(yf()&&rl()){let e=Fp();return()=>{e()}}return()=>void 0}var Pp={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 Fp(){return nf(Ip)}var Ip=({metric:e})=>{if(e.value==null)return;let t=B(e.value);if(t>Mp)return;let n=e.entries.find(t=>t.duration===e.value&&Pp[t.name]);if(!n)return;let{interactionId:r}=n,i=Pp[n.name],a=B(rl()+n.startTime),o=lu(),s=o?cu(o):void 0,c=r==null?void 0:Ap.get(r),l=c?.span||s,u=l?R(l).description:Sl().getScopeData().transactionName,d=vf({name:c?.elementName||Nc(n.target),transaction:u,attributes:{[L]:`auto.http.browser.inp`,[Ol]:`ui.interaction.${i}`,[Nl]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[kl]:`millisecond`,[Al]:e.value}),d.end(a+t))};function Lp(){let e=Object.keys(Pp);$u()&&e.forEach(e=>{z.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=Nc(t),r=Math.round(e.timeStamp);if(jp.set(r,n),jp.size>50){let e=jp.keys().next().value;e!==void 0&&jp.delete(e)}}function n(e){let t=Math.round(e.startTime),n=jp.get(t);if(!n)for(let e=-5;e<=5;e++){let r=jp.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=lu(),r=t&&cu(t);e.forEach(e=>{if(!mf(e))return;let t=e.interactionId;if(t==null||Ap.has(t))return;let i=e.target?Nc(e.target):n(e);if(kp.length>10){let e=kp.shift();Ap.delete(e)}kp.push(t),Ap.set(t,{span:r,elementName:i})})};rf(`event`,r),rf(`first-input`,r)}var Rp=40;function zp(e,t=_p(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw vp(`fetch`),e}finally{n-=a,r--}}return La(e,i,ja(e.bufferSize||Rp))}var Bp=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Vp=30,Hp=50;function Up(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Wp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Gp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Kp=/\((\S*)(?::(\d+))(?::(\d+))\)/,qp=/at (.+?) ?\(data:(.+?),/,Jp=[Vp,e=>{let t=e.match(qp);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Wp.exec(e);if(n){let[,e,t,r]=n;return Up(e,`?`,+t,+r)}let r=Gp.exec(e);if(r){if(r[2]&&r[2].indexOf(`eval`)===0){let e=Kp.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Qp(r[1]||`?`,r[2]);return Up(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Yp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Xp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zp=ae(Jp,[Hp,e=>{let t=Yp.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Xp.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Qp(n,e),Up(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Qp=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},$p=1024,em=`Breadcrumbs`,tm=va(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:em,setup(e){t.console&&Yo(im(e)),t.dom&&op(rm(e,t.dom)),t.xhr&&xp(am(e)),t.fetch&&xs(om(e)),t.history&&pp(sm(e)),t.sentry&&e.on(`beforeSendEvent`,nm(e))}}}));function nm(e){return function(t){j()===e&&Eo({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:mt(t)},{event:t})}}function rm(e,t){return function(n){if(j()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>$p&&(Bp&&D.warn(`\`dom.maxStringLength\` cannot exceed ${$p}, but a value of ${o} was configured. Sentry will use ${$p} instead.`),o=$p),typeof a==`string`&&(a=[a]);try{let e=n.event,t=cm(e)?e.target:e;r=Ue(t,{keyAttrs:a,maxStringLength:o}),i=Ke(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Eo(s,{event:n.event,name:n.name,global:n.global})}}function im(e){return function(t){if(j()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Zo(t.level),message:ot(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${ot(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;Eo(n,{input:t.args,level:t.level})}}function am(e){return function(t){if(j()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[bp];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:gs(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Eo(d,u)}}function om(e){return function(t){if(j()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:`fetch`,data:i,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,o,a),Eo(o,a)}else{let i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:gs(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Eo(s,o)}}}function sm(e){return function(t){if(j()!==e)return;let n=t.from,r=t.to,i=_o(N.location.href),a=n?_o(n):void 0,o=_o(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Eo({category:`navigation`,data:{from:n,to:r}})}}function cm(e){return!!e&&!!e.target}var lm=`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`.split(`.`),um=`BrowserApiErrors`,dm=va(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:um,setupOnce(){t.setTimeout&&qe(N,`setTimeout`,fm),t.setInterval&&qe(N,`setInterval`,fm),t.requestAnimationFrame&&qe(N,`requestAnimationFrame`,pm),t.XMLHttpRequest&&`XMLHttpRequest`in N&&qe(XMLHttpRequest.prototype,`send`,mm);let e=t.eventTarget;e&&(Array.isArray(e)?e:lm).forEach(e=>hm(e,t))}}}));function fm(e){return function(...t){let n=t[0];return t[0]=Ps(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${le(e)}`}}),e.apply(this,t)}}function pm(e){return function(t){return e.apply(this,[Ps(t,{mechanism:{data:{handler:le(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function mm(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&qe(n,e,function(t){let n={mechanism:{data:{handler:le(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Xe(t);return r&&(n.mechanism.data.handler=le(r)),Ps(t,n)})}),e.apply(this,t)}}function hm(e,t){let n=N[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(qe(n,`addEventListener`,function(n){return function(r,i,a){try{gm(i)&&(i.handleEvent=Ps(i.handleEvent,{mechanism:{data:{handler:le(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&_m(this,r,i),n.apply(this,[r,Ps(i,{mechanism:{data:{handler:le(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),qe(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function gm(e){return typeof e.handleEvent==`function`}function _m(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var vm=va((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(N.document===void 0){Bp&&D.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ra({ignoreDuration:!0}),oa();let e=qt(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(oa(),n=t)}),t===`route`&&pp(({from:e,to:t})=>{e!==t&&(ra({ignoreDuration:!0}),oa())})}}}),ym=`CultureContext`,bm=va((()=>({name:ym,preprocessEvent(e){let t=xm();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}})));function xm(){try{let e=N.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Sm=`GlobalHandlers`,Cm=va(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Sm,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(wm(e),km(`onerror`)),t.onunhandledrejection&&(Tm(e),km(`onunhandledrejection`))}}}));function wm(e){ve(t=>{let{stackParser:n,attachStacktrace:r}=Am();if(j()!==e||Ms())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Om(Js(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,ea(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Tm(e){xe(t=>{let{stackParser:n,attachStacktrace:r}=Am();if(j()!==e||Ms())return;let i=Em(t),a=je(i)?Dm(i):Js(n,i,void 0,r,!0);a.level=`error`,ea(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Em(e){if(je(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Dm(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Om(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=r,u=n,d=jm(t)??Ge();return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function km(e){Bp&&D.log(`Global Handler attached: ${e}`)}function Am(){return j()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function jm(e){if(!(!ke(e)||e.length===0))return e.startsWith(`data:`)?`<${yo(e,!1)}>`:e}var Mm=va(()=>({name:`HttpContext`,preprocessEvent(e){if(!N.navigator&&!N.location&&!N.document)return;let t=Fs(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),Nm=`cause`,Pm=5,Fm=`LinkedErrors`,Im=va(((e={})=>{let t=e.limit||Pm,n=e.key||Nm;return{name:Fm,preprocessEvent(e,r,i){Wo(Is,i.getOptions().stackParser,n,t,e,r)}}}));function Lm(){return Rm()?(Bp&&b(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Rm(){if(N.window===void 0)return!1;let e=N;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Ge();return!(N===N.top&&[`chrome-extension`,`moz-extension`,`ms-browser-extension`,`safari-web-extension`].some(e=>t.startsWith(`${e}://`)))}function zm(e){return[Po(),Ao(),ss(),dm(),tm(),Cm(),Im(),$o(),Mm(),bm(),vm()]}function Bm(e={}){let t=!e.skipBrowserExtensionCheck&&Lm(),n=e.defaultIntegrations==null?zm():e.defaultIntegrations;return uo($s,{...e,enabled:t?!1:e.enabled,stackParser:O(e.stackParser||Zp),integrations:ma({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||zp})}var Vm=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,H=globalThis,Hm=`10.43.0`;function Um(){return Wm(H),H}function Wm(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.43.0`,t[Hm]=t[`10.43.0`]||{}}function Gm(e,t,n=H){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[Hm]=r[`10.43.0`]||{};return i[e]||(i[e]=t())}var Km=`Sentry Logger `,qm={};function Jm(e){if(!(`console`in H))return e();let t=H.console,n={},r=Object.keys(qm);r.forEach(e=>{let r=qm[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function Ym(){nh().enabled=!0}function Xm(){nh().enabled=!1}function Zm(){return nh().enabled}function Qm(...e){th(`log`,...e)}function $m(...e){th(`warn`,...e)}function eh(...e){th(`error`,...e)}function th(e,...t){Vm&&Zm()&&Jm(()=>{H.console[e](`${Km}[${e}]:`,...t)})}function nh(){return Vm?Gm(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var rh={enable:Ym,disable:Xm,isEnabled:Zm,log:Qm,warn:$m,error:eh},ih=`<anonymous>`;function ah(e){try{return!e||typeof e!=`function`?ih:e.name||ih}catch{return ih}}function oh(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var sh=Object.prototype.toString;function ch(e){switch(sh.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return _h(e,Error)}}function lh(e,t){return sh.call(e)===`[object ${t}]`}function uh(e){return lh(e,`String`)}function dh(e){return lh(e,`Object`)}function fh(e){return typeof Event<`u`&&_h(e,Event)}function ph(e){return typeof Element<`u`&&_h(e,Element)}function mh(e){return lh(e,`RegExp`)}function hh(e){return!!(e?.then&&typeof e.then==`function`)}function gh(e){return dh(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function _h(e,t){try{return e instanceof t}catch{return!1}}function vh(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}var yh=H,bh=80;function xh(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||bh;for(;n&&i++<5&&(o=Sh(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Sh(e,t){let n=e,r=[];if(!n?.tagName)return``;if(yh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&uh(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Ch(){try{return yh.document.location.href}catch{return``}}function wh(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let i=n(r);typeof i==`function`&&Eh(i,r);try{e[t]=i}catch{Vm&&rh.log(`Failed to replace method "${t}" in object`,e)}}function Th(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Vm&&rh.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Eh(e,t){try{e.prototype=t.prototype=t.prototype||{},Th(e,`__sentry_original__`,t)}catch{}}function Dh(e){if(ch(e))return{message:e.message,name:e.name,stack:e.stack,...kh(e)};if(fh(e)){let t={type:e.type,target:Oh(e.target),currentTarget:Oh(e.currentTarget),...kh(e)};return typeof CustomEvent<`u`&&_h(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Oh(e){try{return ph(e)?xh(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function kh(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}var Ah;function jh(e){if(Ah!==void 0)return Ah?Ah(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=H;return t in n&&typeof n[t]==`function`?(Ah=n[t],Ah(e)):(Ah=null,e())}function Mh(){return jh(()=>Math.random())}function Nh(){return jh(()=>Date.now())}function Ph(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Fh(e,t,n=!1){return uh(e)?mh(t)?t.test(e):uh(t)?n?e===t:e.includes(t):!1:!1}function Ih(e,t=[],n=!1){return t.some(t=>Fh(e,t,n))}function Lh(){let e=H;return e.crypto||e.msCrypto}var Rh;function zh(){return Mh()*16}function Bh(e=Lh()){try{if(e?.randomUUID)return jh(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Rh||=`10000000100040008000100000000000`,Rh.replace(/[018]/g,e=>(e^(zh()&15)>>e/4).toString(16))}function Vh(e){return e.exception?.values?.[0]}function Hh(e,t){let n=Vh(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}var Uh=1e3;function Wh(){return Nh()/Uh}function Gh(){let{performance:e}=H;if(!e?.now||!e.timeOrigin)return Wh;let t=e.timeOrigin;return()=>(t+jh(()=>e.now()))/Uh}var Kh;function qh(){return(Kh??=Gh())()}var Jh=null;function Yh(){let{performance:e}=H;if(!e?.now)return;let t=3e5,n=jh(()=>e.now()),r=Nh(),i=e.timeOrigin;if(typeof i==`number`&&Math.abs(i+n-r)<t)return i;let a=e.timing?.navigationStart;return typeof a==`number`&&Math.abs(a+n-r)<t?a:r-n}function Xh(){return Jh===null&&(Jh=Yh()),Jh}function Zh(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||qh(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Bh()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Qh(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Qh(r[e],t[e],n-1));return r}function $h(){return Bh()}function eg(){return Bh().substring(16)}var tg=`_sentrySpan`;function ng(e,t){t?Th(e,tg,t):delete e[tg]}function rg(e){return e[tg]}var ig=100,ag=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:$h(),sampleRand:Mh()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,ng(t,rg(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Zh(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():dh(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,ng(this,void 0),this._attachments=[],this.setPropagationContext({traceId:$h(),sampleRand:Mh()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:ig;if(n<=0)return this;let r={timestamp:Wh(),...e,message:e.message?Ph(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:rg(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Qh(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||Bh();if(!this._client)return Vm&&rh.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||Bh();if(!this._client)return Vm&&rh.warn(`No client configured on scope - will not capture message!`),r;let i=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=e.event_id||t?.event_id||Bh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Vm&&rh.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function og(){return Gm(`defaultCurrentScope`,()=>new ag)}function sg(){return Gm(`defaultIsolationScope`,()=>new ag)}var cg=class{constructor(e,t){let n;n=e||new ag;let r;r=t||new ag,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return hh(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function lg(){let e=Wm(Um());return e.stack=e.stack||new cg(og(),sg())}function ug(e){return lg().withScope(e)}function dg(e,t){let n=lg();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function fg(e){return lg().withScope(()=>e(lg().getIsolationScope()))}function pg(){return{withIsolationScope:fg,withScope:ug,withSetScope:dg,withSetIsolationScope:(e,t)=>fg(t),getCurrentScope:()=>lg().getScope(),getIsolationScope:()=>lg().getIsolationScope()}}function mg(e){let t=Wm(e);return t.acs?t.acs:pg()}function hg(){return mg(Um()).getCurrentScope()}function gg(){return mg(Um()).getIsolationScope()}function _g(){return Gm(`globalScope`,()=>new ag)}function vg(){return hg().getClient()}var yg=`sentry.source`,bg=`sentry.op`,xg=`sentry.origin`,Sg=`_sentryScope`,Cg=`_sentryIsolationScope`;function wg(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function Tg(e){let t=e;return{scope:t[Sg],isolationScope:wg(t[Cg])}}var Eg=/^sentry-/;function Dg(e){let t=Og(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Eg)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Og(e){if(!(!e||!uh(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=kg(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):kg(e)}function kg(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var Ag=/^o(\d+)\./;function jg(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Mg(e){return e.match(Ag)?.[1]}function Ng(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Mg(n)),r}function Pg(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}function Fg(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:zg(e).parent_span_id,a=Tg(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||eg():t,trace_id:n}}function Ig(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function Lg(e){return typeof e==`number`?Rg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Rg(e.getTime()):qh()}function Rg(e){return e>9999999999?e/1e3:e}function zg(e){if(Vg(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Bg(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Lg(i),timestamp:Lg(o)||void 0,status:Ug(s),op:r[bg],origin:r[xg],links:Ig(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Bg(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Vg(e){return typeof e.getSpanJSON==`function`}function Hg(e){let{traceFlags:t}=e.spanContext();return t===1}function Ug(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var Wg=`_sentryRootSpan`;function Gg(e){return e[Wg]||e}function Kg(){let e=mg(Um());return e.getActiveSpan?e.getActiveSpan():rg(hg())}function qg(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||vg()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var Jg=`_frozenDsc`;function Yg(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Ng(t)};return t.emit(`createDsc`,i),i}function Xg(e){let t=vg();if(!t)return{};let n=Gg(e),r=zg(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Jg];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Dg(l);if(u)return s(u);let d=Yg(e.spanContext().traceId,t),f=i[yg],p=r.description;return f!==`url`&&p&&(d.transaction=p),qg()&&(d.sampled=String(Hg(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??Tg(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}function Zg(e,t=100,n=1/0){try{return Qg(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Qg(e,t,n=1/0,r=1/0,i=t_()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=$g(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Qg(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Dh(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Qg(e,t,c-1,r,i),d++}return o(t),u}function $g(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(vh(t))return oh(t);if(gh(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${ah(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=e_(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function e_(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function t_(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function n_(e,t=[]){return[e,t]}function r_(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function i_(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:jg(r)},...i&&{trace:i}}}var a_=0,o_=1,s_=2;function c_(e){return new u_(t=>{t(e)})}function l_(e){return new u_((t,n)=>{n(e)})}var u_=class e{constructor(e){this._state=a_,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===a_)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===o_&&e[1](this._value),this._state===s_&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===a_){if(hh(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(o_,e)},r=e=>{t(s_,e)};try{e(n,r)}catch(e){r(e)}}};function d_(e,t,n,r=0){try{let i=f_(t,n,e,r);return hh(i)?i:c_(i)}catch(e){return l_(e)}}function f_(e,t,n,r){let i=n[r];if(!e||!i)return e;let a=i({...e},t);return Vm&&a===null&&rh.log(`Event processor "${i.id||`?`}" dropped event`),hh(a)?a.then(e=>f_(e,t,n,r+1)):f_(a,t,n,r+1)}var p_,m_,h_,g_;function __(e){let t=H._sentryDebugIds,n=H._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(g_&&r.length===m_&&i.length===h_)return g_;m_=r.length,h_=i.length,g_={},p_||={};let a=(t,n)=>{for(let r of t){let t=n[r],i=p_?.[r];if(i&&g_&&t)g_[i[0]]=t,p_&&(p_[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&g_&&p_){g_[i]=t,p_[r]=[i,t];break}}}}};return t&&a(r,t),n&&a(i,n),g_}function v_(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;S_(e,t),r&&T_(e,r),E_(e,n),C_(e,i),w_(e,a)}function y_(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;b_(e,`extra`,n),b_(e,`tags`,r),b_(e,`attributes`,i),b_(e,`user`,a),b_(e,`contexts`,o),e.sdkProcessingMetadata=Qh(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function b_(e,t,n){e[t]=Qh(e[t],n,1)}function x_(e,t){let n=_g().getScopeData();return e&&y_(n,e.getScopeData()),t&&y_(n,t.getScopeData()),n}function S_(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function C_(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function w_(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function T_(e,t){e.contexts={trace:Fg(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Xg(t),...e.sdkProcessingMetadata};let n=zg(Gg(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function E_(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function D_(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Bh(),timestamp:t.timestamp||Wh()},l=n.integrations||e.integrations.map(e=>e.name);O_(c,e),j_(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&k_(c,e.stackParser);let u=N_(r,n.captureContext);n.mechanism&&Hh(c,n.mechanism);let d=i?i.getEventProcessors():[],f=x_(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),v_(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?c_(c):d_(m,c,n)).then(e=>(e&&A_(e),typeof o==`number`&&o>0?M_(e,o,s):e))}function O_(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ph(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ph(e.value,a)})}function k_(e,t){let n=__(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function A_(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function j_(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function M_(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Zg(e.data,t,n)}}))},...e.user&&{user:Zg(e.user,t,n)},...e.contexts&&{contexts:Zg(e.contexts,t,n)},...e.extra&&{extra:Zg(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Zg(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Zg(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Zg(e.contexts.flags,3,n)),r}function N_(e,t){if(!t)return e;let n=e?e.clone():new ag;return n.update(t),n}function P_(e){if(e)return F_(e)||L_(e)?{captureContext:e}:e}function F_(e){return e instanceof ag||typeof e==`function`}var I_=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function L_(e){return Object.keys(e).some(e=>I_.includes(e))}function R_(e,t){return hg().captureException(e,P_(t))}function z_(e,t){gg().setContext(e,t)}function B_(e){gg().addEventProcessor(e)}var V_=60*1e3;function H_(e,t=Nh()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?V_:r-t}function U_(e,t){return e[t]||e.all||0}function W_(e,t,n=Nh()){return U_(e,t)>n}function G_(e,{statusCode:t,headers:n},r=Nh()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+H_(o,r):t===429&&(i.all=r+60*1e3);return i}var K_=`thismessage:/`;function q_(e){return`isRelative`in e}function J_(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?K_:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function Y_(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return Z_(e,n)||X_(e,r)}function X_(e,t){return t?Q_(e)===Q_(t):!1}function Z_(e,t){let n=J_(e);return!n||q_(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Q_(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function $_(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var ev=100;function tv(e,t){let n=vg(),r=gg();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=ev}=n.getOptions();if(a<=0)return;let o={timestamp:Wh(),...e},s=i?Jm(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}function nv(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}function rv(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function iv(){return!rv()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function av(){return typeof window<`u`&&(!iv()||ov())}function ov(){return H.process?.type===`renderer`}var U=H,sv=`sentryReplaySession`,cv=`replay_event`,lv=`Unable to send Replay`,uv=3e5,dv=9e5,fv=5e3,pv=5500,mv=6e4,hv=5e3,gv=3,_v=15e4,vv=5e3,yv=3e3,bv=300,xv=2e7,Sv=4999,Cv=5e4,wv=36e5,Tv=Object.defineProperty,Ev=(e,t,n)=>t in e?Tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dv=(e,t,n)=>Ev(e,typeof t==`symbol`?t:t+``,n),W=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(W||{});function Ov(e){return e.nodeType===e.ELEMENT_NODE}function kv(e){return e?.host?.shadowRoot===e}function Av(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function jv(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function Mv(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function Nv(e){try{let t=e.rules||e.cssRules;return t?jv(Array.from(t,Fv).join(``)):null}catch{return null}}function Pv(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function Fv(e){let t;if(Lv(e))try{t=Nv(e.styleSheet)||Mv(e)}catch{}else if(Rv(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=Pv(e)),n&&(t=Iv(t)),n||r)return t}return t||e.cssText}function Iv(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Lv(e){return`styleSheet`in e}function Rv(e){return`selectorText`in e}var zv=class{constructor(){Dv(this,`idNodeMap`,new Map),Dv(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Bv(){return new zv}function Vv({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function Hv({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function Uv(e){return e.toLowerCase()}function Wv(e){return e.toUpperCase()}var Gv=`__rrweb_original__`;function Kv(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=Gv in i?i[Gv]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function qv(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Uv(t):null}function Jv(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Yv(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var Xv={};function Zv(e){let t=Xv[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return Xv[e]=r.bind(window)}function Qv(...e){return Zv(`setTimeout`)(...e)}function $v(...e){return Zv(`clearTimeout`)(...e)}function ey(e){try{return e.contentDocument}catch{}}var ty=1,ny=RegExp(`[^a-z0-9-_:]`),ry=-2;function iy(){return ty++}function ay(e){if(e instanceof HTMLFormElement)return`form`;let t=Uv(e.tagName);return ny.test(t)?`div`:t}function oy(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var sy,cy,ly=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,uy=/^(?:[a-z+]+:)?\/\//i,dy=/^www\..*/i,fy=/^(data:)([^,]*),(.*)/i;function py(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function my(e,t){return(e||``).replace(ly,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(uy.test(s)||dy.test(s)||fy.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${oy(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var hy=/^[^ \t\n\r\u000c]+/,gy=/^[, \t\n\r\u000c]+/;function _y(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(gy),!(n>=t.length);){let a=r(hy);if(a.slice(-1)===`,`)a=yy(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=yy(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}var vy=new WeakMap;function yy(e,t){return!t||t.trim()===``?t:xy(e,t)}function by(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function xy(e,t){let n=vy.get(e);if(n||(n=e.createElement(`a`),vy.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function Sy(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&!(t===`use`&&r[0]===`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return yy(e,r);if(n===`srcset`)return _y(e,r);if(n===`style`){let t=my(r,xy(e));return o&&o.size>0&&(t=py(t,o)),t}else if(t===`object`&&n===`data`)return yy(e,r);return typeof a==`function`?a(n,r,i):r}function Cy(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function wy(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function Ty(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Ey(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ey(e.parentNode,t,n,r+1)}function Dy(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(Ty(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Oy(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=Ey(o,Dy(r,i)),c<0)return!0;s=Ey(o,Dy(t,n),c>=0?c:1/0)}else{if(s=Ey(o,Dy(t,n)),s<0)return!1;c=Ey(o,Dy(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function ky(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=Qv(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{$v(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return Qv(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function Ay(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=Qv(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{$v(a),r=!0,t()})}function jy(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=My(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:W.Document,childNodes:[]}:{type:W.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:W.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Py(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return Ny(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:W.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:W.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function My(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Ny(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`?!0:void 0,m=d===`SCRIPT`?!0:void 0,h=d===`TEXTAREA`?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=Nv(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=my(f,xy(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=Oy(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=Hv({isMasked:Oy(e,r,a,i,o,Vv({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:W.Text,textContent:f||``,isStyle:p,rootId:u}}function Py(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=wy(e,r,i,a),S=ay(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!Cy(S,r.name,r.value)&&(C[r.name]=Sy(n,S,Uv(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=Nv(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=my(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=Nv(e.sheet);t&&(C._cssText=my(t,xy(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=qv(t),r=Jv(t,Wv(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=Oy(t,g,v,_,y,Vv({type:n,tagName:Wv(S),maskInputOptions:s}));C.value=Hv({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)Kv(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){sy||(sy=n.createElement(`canvas`),cy=sy.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{sy.width=t.naturalWidth,sy.height=t.naturalHeight,cy.drawImage(t,0,0),C.rr_dataURL=sy.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}else console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!ey(e)&&(C.rr_src=C.src),delete C.src);let ee;try{customElements.get(S)&&(ee=!0)}catch{}return{type:W.Element,tagName:S,attributes:C,childNodes:[],isSVG:by(e)||void 0,needBlock:x,rootId:h,isCustom:ee}}function G(e){return e==null?``:e.toLowerCase()}function Fy(e,t){return!!(t.comment&&e.type===W.Comment||e.type===W.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Yv(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(G(e.attributes.name).match(/^msapplication-tile(image|color)$/)||G(e.attributes.name)===`application-name`||G(e.attributes.rel)===`icon`||G(e.attributes.rel)===`apple-touch-icon`||G(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&G(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(G(e.attributes.property).match(/^(og|twitter|fb):/)||G(e.attributes.name).match(/^(og|twitter):/)||G(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(G(e.attributes.name)===`robots`||G(e.attributes.name)===`googlebot`||G(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(G(e.attributes.name)===`author`||G(e.attributes.name)===`generator`||G(e.attributes.name)===`framework`||G(e.attributes.name)===`publisher`||G(e.attributes.name)===`progid`||G(e.attributes.property).match(/^article:/)||G(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(G(e.attributes.name)===`google-site-verification`||G(e.attributes.name)===`yandex-verification`||G(e.attributes.name)===`csrf-token`||G(e.attributes.name)===`p:domain_verify`||G(e.attributes.name)===`verify-v1`||G(e.attributes.name)===`verification`||G(e.attributes.name)===`shopify-checkout-api-token`))))}function Iy(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:ee,onStylesheetLoad:te,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:D=!1,ignoreCSSAttributes:ne}=t,{preserveWhiteSpace:re=!0}=t,ie=jy(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:E,newlyAddedElement:D,ignoreCSSAttributes:ne});if(!ie)return console.warn(e,`not serialized`),null;let ae;ae=r.hasNode(e)?r.getId(e):Fy(ie,v)||!re&&ie.type===W.Text&&!ie.isStyle&&!ie.textContent.replace(/^\s+|\s+$/gm,``).length?ry:iy();let O=Object.assign(ie,{id:ae});if(r.add(e,O),ae===ry)return null;S&&S(e);let oe=!f;if(O.type===W.Element){oe&&=!O.needBlock;let t=e.shadowRoot;t&&Av(t)&&(O.isShadowHost=!0)}if((O.type===W.Document||O.type===W.Element)&&oe){v.headWhitespace&&O.type===W.Element&&O.tagName===`head`&&(re=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:ee,onStylesheetLoad:te,stylesheetLoadTimeout:T,keepIframeSrcFn:E,ignoreCSSAttributes:ne},D=e.childNodes?Array.from(e.childNodes):[];for(let e of D){let n=Iy(e,t);n&&O.childNodes.push(n)}if(Ov(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=Iy(n,t);r&&(Av(e.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}if(e.parentNode&&kv(e.parentNode)&&Av(e.parentNode)&&(O.isShadow=!0),O.type===W.Element&&O.tagName===`iframe`&&!O.needBlock&&ky(e,()=>{let t=ey(e);if(t&&C){let n=Iy(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:te,stylesheetLoadTimeout:T,keepIframeSrcFn:E,ignoreCSSAttributes:ne});n&&C(e,n)}},w),O.type===W.Element&&O.tagName===`img`&&!e.complete&&O.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&ee)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&ee(t,O,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return O.type===W.Element&&O.tagName===`link`&&typeof O.attributes.rel==`string`&&(O.attributes.rel===`stylesheet`||O.attributes.rel===`preload`&&typeof O.attributes.href==`string`&&Yv(O.attributes.href)===`css`)&&Ay(e,()=>{if(te){let t=Iy(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:re,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:te,stylesheetLoadTimeout:T,keepIframeSrcFn:E,ignoreCSSAttributes:ne});t&&te(e,t)}},T),O.type===W.Element&&delete O.needBlock,O}function Ly(e,t){let{mirror:n=new zv,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:E=new Set([])}=t||{};return Iy(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:E})}function K(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Ry=`Please stop import mirror directly. Instead of that,\r
|
|
8
|
-
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
9
|
-
or you can use record.mirror to access the mirror instance during recording.`,zy={map:{},getId(){return console.error(Ry),-1},getNode(){return console.error(Ry),null},removeNodeFromMap(){console.error(Ry)},has(){return console.error(Ry),!1},reset(){console.error(Ry)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(zy=new Proxy(zy,{get(e,t,n){return t===`map`&&console.error(Ry),Reflect.get(e,t,n)}}));function By(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(fb(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=db(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Vy(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){db(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>Vy(e,t,a||{},!0)}function Hy(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var Uy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Uy=()=>new Date().getTime());function Wy(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Gy(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ky(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qy(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Jy(e,t,n,r,i){if(!e)return!1;let a=qy(e);if(!a)return!1;let o=Dy(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=Ey(a,o),c=-1;return s<0?!1:(r&&(c=Ey(a,Dy(null,r))),s>-1&&c<0?!0:s<c)}function Yy(e,t){return t.getId(e)!==-1}function Xy(e,t){return t.getId(e)===ry}function Zy(e,t){if(kv(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Zy(e.parentNode,t):!0:!0}function Qy(e){return!!e.changedTouches}function $y(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function eb(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function tb(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function nb(e){return!!e?.shadowRoot}var rb=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function ib(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ab(e){let t=e,n;for(;n=ib(t);)t=n;return t}function ob(e){let t=e.ownerDocument;if(!t)return!1;let n=ab(e);return t.contains(n)}function sb(e){let t=e.ownerDocument;return t?t.contains(e)||ob(e):!1}var cb={};function lb(e){let t=cb[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return cb[e]=r.bind(window)}function ub(...e){return lb(`requestAnimationFrame`)(...e)}function db(...e){return lb(`setTimeout`)(...e)}function fb(...e){return lb(`clearTimeout`)(...e)}var q=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(q||{}),J=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(J||{}),Y=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(Y||{}),pb=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(pb||{}),mb=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(mb||{});function hb(e){try{return e.contentDocument}catch{}}function gb(e){try{return e.contentWindow}catch{}}function _b(e){return`__ln`in e}var vb=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&_b(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&_b(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},yb=(e,t)=>`${e}@${t}`,bb=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new vb,r=e=>{let t=e,n=ry;for(;n===ry;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!sb(i))return;let a=kv(i.parentNode)?this.mirror.getId(ib(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=Iy(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{eb(e,this.mirror)&&!Jy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),tb(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),nb(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Jy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)Sb(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!wb(this.droppedSet,e)&&!Sb(this.removes,e,this.mirror)||wb(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}else{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};!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=e=>{if(!Xy(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!Jy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,qy(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=qv(t),i=t.tagName;r=Jv(t,i,n);let a=Vv({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=Hv({isMasked:Oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(Jy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r))if(!hb(t))n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!Cy(t.tagName,n)&&(i.attributes[n]=Sy(this.doc,Uv(t.tagName),Uv(n),r,t,this.maskAttributeFn),n===`style`)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||a!==n.style.getPropertyPriority(e)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(Jy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=kv(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Jy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Xy(t,this.mirror)||!Yy(t,this.mirror)||(this.addedSet.has(t)?(xb(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||Zy(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[yb(n,r)]?xb(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:kv(e.target)&&Av(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Xy(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[yb(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Jy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),nb(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function xb(e,t){e.delete(t),t.childNodes?.forEach(t=>xb(e,t))}function Sb(e,t,n){return e.length===0?!1:Cb(e,t,n)}function Cb(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function wb(e,t){return e.size===0?!1:Tb(e,t)}function Tb(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Tb(e,n):!1}var Eb;function Db(e){Eb=e}function Ob(){Eb=void 0}var X=e=>Eb?(...t)=>{try{return e(...t)}catch(e){if(Eb&&Eb(e)===!0)return()=>{};throw e}}:e,kb=[];function Ab(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function jb(e,t){let n=new bb;kb.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(X(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Mb({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=By(X(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=X(By(X(e=>{let t=Ab(e),{clientX:n,clientY:i}=Qy(e)?e.changedTouches[0]:e;s||=Uy(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Uy()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?J.Drag:e instanceof MouseEvent?J.MouseMove:J.TouchMove)}),i,{trailing:!1})),u=[K(`mousemove`,l,n),K(`touchmove`,l,n),K(`drag`,l,n)];return X(()=>{u.forEach(e=>e())})}function Nb({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=Ab(o);if(Jy(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=pb.Mouse;break;case`touch`:c=pb.Touch;break;case`pen`:c=pb.Pen;break}c===pb.Touch?Y[t]===Y.MouseDown?u=`TouchStart`:Y[t]===Y.MouseUp&&(u=`TouchEnd`):pb.Pen}else Qy(o)&&(c=pb.Touch);c===null?Y[t]===Y.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===pb.Touch||u.startsWith(`Mouse`)&&c===pb.Mouse)&&(c=null));let d=Qy(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;X(e)({type:Y[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(Y).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=Uv(e),r=u(e);if(window.PointerEvent)switch(Y[e]){case Y.MouseDown:case Y.MouseUp:n=n.replace(`mouse`,`pointer`);break;case Y.TouchStart:case Y.TouchEnd:return}c.push(K(n,r,t))}),X(()=>{c.forEach(e=>e())})}function Pb({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return K(`scroll`,X(By(X(o=>{let s=Ab(o);if(!s||Jy(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=Wy(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function Fb({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return K(`resize`,X(By(X(()=>{let t=Gy(),i=Ky();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Ib=[`INPUT`,`TEXTAREA`,`SELECT`],Lb=new WeakMap;function Rb({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=Ab(e),u=e.isTrusted,g=n&&Wv(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Ib.indexOf(g)<0||Jy(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=qv(n),b=Jv(v,g,y),x=!1,S=Vv({maskInputOptions:c,tagName:g,type:y}),C=Oy(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=Hv({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=Hv({isMasked:C,element:e,value:Jv(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=Lb.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Lb.set(t,r);let i=n.getId(t);X(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>K(e,X(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>Vy(e[0],e[1],{set(){X(g)({target:this,isTrusted:!1})}},!1,y))),X(()=>{v.forEach(e=>e())})}function zb(e){let t=[];function n(e,t){if(Yb(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||Yb(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||Yb(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||Yb(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function Bb(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Vb({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Bb(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Bb(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Bb(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Bb(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};Xb(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(Xb(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),Xb(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),Xb(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:X((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Bb(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...zb(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:X((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Bb(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...zb(i),o]}]}),r.apply(i,a)})})}),X(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function Hb({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,`adoptedStyleSheets`,{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),X(()=>{Object.defineProperty(n,`adoptedStyleSheets`,{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Ub({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:X((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Bb(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:zb(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:X((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Bb(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:zb(a.parentRule)}),i.apply(a,s)})}),X(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Wb({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=X(o=>By(X(a=>{let s=Ab(a);if(!s||Jy(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[K(`play`,s(mb.Play),o),K(`pause`,s(mb.Pause),o),K(`seeked`,s(mb.Seeked),o),K(`volumechange`,s(mb.VolumeChange),o),K(`ratechange`,s(mb.RateChange),o)];return X(()=>{c.forEach(e=>e())})}function Gb({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=Hy(t.fonts,`add`,function(t){return function(n){return db(X(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),X(()=>{r.forEach(e=>e())})}function Kb(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=X(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);Jy(o,r,i,a,!0)||Jy(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),K(`selectionchange`,c)}function qb({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:Hy(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function Jb(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=jb(e,e.doc));let i=Mb(e),a=Nb(e),o=Pb(e),s=Fb(e,{win:n}),c=Rb(e),l=Wb(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=Vb(e,{win:n}),d=Hb(e,e.doc),f=Ub(e,{win:n}),e.collectFonts&&(p=Gb(e)));let m=Kb(e),h=qb(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return X(()=>{kb.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function Yb(e){return window[e]!==void 0}function Xb(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var Zb=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},Qb=class{constructor(){this.crossOriginIframeMirror=new Zb(iy),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},$b=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Zb(iy),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Zb(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=hb(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case q.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:q.IncrementalSnapshot,data:{source:J.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case q.Meta:case q.Load:case q.DomContentLoaded:return!1;case q.Plugin:return t;case q.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case q.IncrementalSnapshot:switch(t.data.source){case J.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case J.Drag:case J.TouchMove:case J.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case J.ViewportResize:return!1;case J.MediaInteraction:case J.MouseInteraction:case J.Scroll:case J.CanvasMutation:case J.Input:return this.replaceIds(t.data,e,[`id`]),t;case J.StyleSheetRule:case J.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case J.Font:return t;case J.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case J.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)!Array.isArray(t[i])&&typeof t[i]!=`number`||(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==W.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},ex=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},tx=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Av(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=jb({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Pb({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),db(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Hb({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=hb(e),n=gb(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(Hy(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&sb(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},nx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,rx=typeof Uint8Array>`u`?[]:new Uint8Array(256),ix=0;ix<nx.length;ix++)rx[nx.charCodeAt(ix)]=ix;var ax=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},ox=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new rb,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:Fv(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},sx=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,ub(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},Z,cx;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var lx=Bv();function ux(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:ee,recordDOM:te=!0,recordCanvas:T=!1,recordCrossOriginIframes:E=!1,recordAfter:D=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:ne=!1,collectFonts:re=!1,inlineImages:ie=!1,plugins:ae,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:se,onMutation:ce,getCanvasManager:le}=e;Db(se);let ue=E?window.parent===window:!0,de=!1;if(!ue)try{window.parent.document&&(de=!1)}catch{de=!0}if(ue&&!t)throw Error(`emit function is required`);if(!ue&&!de)return()=>{};ee!==void 0&&C.mousemove===void 0&&(C.mousemove=ee),lx.reset();let fe=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,pe=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};$y();let me,he=0,ge=e=>{for(let t of ae||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!de&&(e=S(e)),e};Z=(e,i)=>{let a=e;if(a.timestamp=Uy(),kb[0]?.isFrozen()&&a.type!==q.FullSnapshot&&!(a.type===q.IncrementalSnapshot&&a.data.source===J.Mutation)&&kb.forEach(e=>e.unfreeze()),ue)t?.(ge(a),i);else if(de){let e={type:`rrweb`,event:ge(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===q.FullSnapshot)me=a,he=0;else if(a.type===q.IncrementalSnapshot){if(a.data.source===J.Mutation&&a.data.isAttachIframe)return;he++;let e=r&&he>=r,t=n&&me&&a.timestamp-me.timestamp>n;(e||t)&&Te(!0)}};let _e=e=>{Z({type:q.IncrementalSnapshot,data:{source:J.Mutation,...e}})},ve=e=>Z({type:q.IncrementalSnapshot,data:{source:J.Scroll,...e}}),ye=e=>Z({type:q.IncrementalSnapshot,data:{source:J.CanvasMutation,...e}}),be=new ox({mutationCb:_e,adoptedStyleSheetCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.AdoptedStyleSheet,...e}})}),xe=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new Qb:new $b({mirror:lx,mutationCb:_e,stylesheetManager:be,recordCrossOriginIframes:E,wrappedEmit:Z});for(let e of ae||[])e.getMirror&&e.getMirror({nodeMirror:lx,crossOriginIframeMirror:xe.crossOriginIframeMirror,crossOriginIframeStyleMirror:xe.crossOriginIframeStyleMirror});let Se=new sx,Ce=fx(le,{mirror:lx,win:window,mutationCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.CanvasMutation,...e}}),recordCanvas:T,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:se}),we=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ex:new tx({mutationCb:_e,scrollCb:ve,bypassOptions:{onMutation:ce,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:fe,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:T,inlineImages:ie,sampling:C,slimDOMOptions:pe,iframeManager:xe,stylesheetManager:be,canvasManager:Ce,keepIframeSrcFn:O,processedNodeManager:Se,ignoreCSSAttributes:oe},mirror:lx}),Te=(e=!1)=>{if(!te)return;Z({type:q.Meta,data:{href:window.location.href,width:Ky(),height:Gy()}},e),be.reset(),we.init(),kb.forEach(e=>e.lock());let t=Ly(document,{mirror:lx,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:fe,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:pe,dataURLOptions:w,recordCanvas:T,inlineImages:ie,onSerialize:e=>{eb(e,lx)&&xe.addIframe(e),tb(e,lx)&&be.trackLinkElement(e),nb(e)&&we.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{xe.attachIframe(e,t),e.contentWindow&&Ce.addWindow(e.contentWindow),we.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{be.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{_e({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:O,ignoreCSSAttributes:oe});if(!t)return console.warn(`Failed to snapshot the document`);Z({type:q.FullSnapshot,data:{node:t,initialOffset:Wy(window)}}),kb.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,lx.getId(document))};cx=Te;try{let e=[],t=e=>X(Jb)({onMutation:ce,mutationCb:_e,mousemoveCb:(e,t)=>Z({type:q.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.MouseInteraction,...e}}),scrollCb:ve,viewportResizeCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.ViewportResize,...e}}),inputCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.Input,...e}}),mediaInteractionCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.MediaInteraction,...e}}),styleSheetRuleCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.StyleSheetRule,...e}}),styleDeclarationCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.StyleDeclaration,...e}}),canvasMutationCb:ye,fontCb:e=>Z({type:q.IncrementalSnapshot,data:{source:J.Font,...e}}),selectionCb:e=>{Z({type:q.IncrementalSnapshot,data:{source:J.Selection,...e}})},customElementCb:e=>{Z({type:q.IncrementalSnapshot,data:{source:J.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:fe,inlineStylesheet:m,sampling:C,recordDOM:te,recordCanvas:T,inlineImages:ie,userTriggeredOnInput:ne,collectFonts:re,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:O,blockSelector:a,unblockSelector:o,slimDOMOptions:pe,dataURLOptions:w,mirror:lx,iframeManager:xe,stylesheetManager:be,shadowDomManager:we,processedNodeManager:Se,canvasManager:Ce,ignoreCSSAttributes:oe,plugins:ae?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Z({type:q.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});xe.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Te(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(K(`DOMContentLoaded`,()=>{Z({type:q.DomContentLoaded,data:{}}),D===`DOMContentLoaded`&&n()})),e.push(K(`load`,()=>{Z({type:q.Load,data:{}}),D===`load`&&n()},window))),()=>{e.forEach(e=>e()),Se.destroy(),cx=void 0,Ob()}}catch(e){console.warn(e)}}function dx(e){if(!cx)throw Error(`please take full snapshot after start recording`);cx(e)}ux.mirror=lx,ux.takeFullSnapshot=dx;function fx(e,t){try{return e?e(t):new ax}catch{return console.warn(`Unable to initialize CanvasManager`),new ax}}var px;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(px||={});var mx=3,hx=5;function gx(e){return e>9999999999?e:e*1e3}function _x(e){return e>9999999999?e/1e3:e}function vx(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:q.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Zg(t,10,1e3)}}),t.category===`console`)))}var yx=`button,a`;function bx(e){return e.closest(yx)||e}function xx(e){let t=Sx(e);return!t||!(t instanceof Element)?t:bx(t)}function Sx(e){return Cx(e)?e.target:e}function Cx(e){return typeof e==`object`&&!!e&&`target`in e}var wx;function Tx(e){return wx||(wx=[],Ex()),wx.push(e),()=>{let t=wx?wx.indexOf(e):-1;t>-1&&wx.splice(t,1)}}function Ex(){wh(U,`open`,function(e){return function(...t){if(wx)try{wx.forEach(e=>e())}catch{}return e.apply(U,t)}})}var Dx=new Set([J.Mutation,J.StyleSheetRule,J.StyleDeclaration,J.AdoptedStyleSheet,J.CanvasMutation,J.Selection,J.MediaInteraction]);function Ox(e,t,n){e.handleClick(t,n)}var kx=class{constructor(e,t,n=vx){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=Tx(()=>{this._lastMutation=Nx()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(jx(t,this._ignoreSelector)||!Mx(e))return;let n={timestamp:_x(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=_x(e)}registerScroll(e=Date.now()){this._lastScroll=_x(e)}registerClick(e){let t=bx(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=Nx();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:U.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:U.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=yp(()=>this._checkClicks(),1e3)}},Ax=[`A`,`BUTTON`,`INPUT`];function jx(e,t){return!!(!Ax.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}function Mx(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Nx(){return Date.now()/1e3}function Px(e,t){try{if(!Fx(t))return;let{source:n}=t.data;if(Dx.has(n)&&e.registerMutation(t.timestamp),n===J.Scroll&&e.registerScroll(t.timestamp),Ix(t)){let{type:n,id:r}=t.data,i=ux.mirror.getNode(r);i instanceof HTMLElement&&n===Y.Click&&e.registerClick(i)}}catch{}}function Fx(e){return e.type===mx}function Ix(e){return e.data.source===J.MouseInteraction}function Lx(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var Rx=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(Rx||{}),zx=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function Bx(e){let t={};for(let n in!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]),e)if(zx.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var Vx=e=>t=>{if(!e.isEnabled())return;let n=Ux(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Ox(e.clickDetector,n,xx(t.event)),vx(e,n)};function Hx(e,t){let n=ux.mirror.getId(e),r=n&&ux.mirror.getNode(n),i=r&&ux.mirror.getMeta(r),a=i&&Gx(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===Rx.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:Bx(a.attributes)}}:{}}}function Ux(e){let{target:t,message:n}=Wx(e);return Lx({category:`ui.${e.name}`,...Hx(t,n)})}function Wx(e){let t=e.name===`click`,n,r=null;try{r=t?xx(e.event):Sx(e.event),n=xh(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function Gx(e){return e.type===Rx.Element}function Kx(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=qx(t);n&&vx(e,n)}function qx(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||Jx(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=xh(o,{maxStringLength:200})||`<unknown>`;return Lx({category:`ui.keyDown`,message:l,data:{...Hx(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function Jx(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var Yx={resource:nS,paint:eS,navigation:tS};function Xx(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function Zx(e){return e.map(Qx).filter(Boolean)}function Qx(e){let t=Yx[e.entryType];return t?t(e):null}function $x(e){return((Xh()||U.performance.timeOrigin)+e)/1e3}function eS(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=$x(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function tS(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:$x(p),end:$x(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function nS(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:$x(a),end:$x(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function rS(e){let t=e.entries[e.entries.length-1];return sS(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function iS(e){return e.sources!==void 0}function aS(e){let t=[],n=[];for(let r of e.entries)if(iS(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=ux.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return sS(e,`cumulative-layout-shift`,n,t)}function oS(e){let t=e.entries[e.entries.length-1];return sS(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function sS(e,t,n,r){let i=e.value,a=e.rating,o=$x(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>ux.mirror.getId(e)):void 0,attributions:r}}}function cS(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(rf(e,n))}),r.push(ef(Xx(rS,e)),$d(Xx(aS,e)),nf(Xx(oS,e))),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,lS=`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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function uS(){let e=new Blob([lS]);return URL.createObjectURL(e)}var dS=[`log`,`warn`,`error`],fS=`[Replay] `;function pS(e,t=`info`){tv({category:`console`,data:{logger:`replay`},level:t,message:`${fS}${e}`},{level:t})}function mS(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Q?(dS.forEach(e=>{n[e]=(...n)=>{rh[e](fS,...n),t&&pS(n.join(``),nv(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),rh.error(fS,r),e?R_(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&pS(r,`error`)},n.infoTick=(...e)=>{rh.log(fS,...e),t&&setTimeout(()=>pS(e[0]),0)}):dS.forEach(e=>{n[e]=()=>void 0}),n}var $=mS(),hS=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${xv}.`)}},gS=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>xv)throw new hS;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?gx(e):null}},_S=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(Q&&$.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{Q&&$.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:`Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load.`}`))},{once:!0})}),this._ensureReadyPromise}destroy(){Q&&$.log(`Destroying compression worker`),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{let o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener(`message`,a),!o.success){Q&&$.error(`Error in compression worker: `,o.response),i(Error(`Error in compression worker`));return}r(o.response)}};this._worker.addEventListener(`message`,a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},vS=class{constructor(e){this._worker=new _S(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=gx(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>xv?Promise.reject(new hS):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{Q&&$.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},yS=class{constructor(e){this._fallback=new gS,this._compression=new vS(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){Q&&$.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Q&&$.exception(e,`Failed to add events when switching buffers.`)}}};function bS({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=xS(t);if(e)return e}return Q&&$.log(`Using simple buffer`),new gS}function xS(e){try{let t=e||SS();return t?(Q&&$.log(`Using compression worker${e?` from ${e}`:``}`),new yS(new Worker(t))):void 0}catch(e){Q&&$.exception(e,`Failed to create compression worker`)}}function SS(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?uS():``}function CS(){try{return`sessionStorage`in U&&!!U.sessionStorage}catch{return!1}}function wS(e){TS(),e.session=void 0}function TS(){if(CS())try{U.sessionStorage.removeItem(sv)}catch{}}function ES(e){return e===void 0?!1:Math.random()<e}function DS(e){if(CS())try{U.sessionStorage.setItem(sv,JSON.stringify(e))}catch{}}function OS(e){let t=Date.now();return{id:e.id||Bh(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function kS(e,t){return ES(e)?`session`:t?`buffer`:!1}function AS({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=OS({sampled:kS(e,t),previousSessionId:r});return n&&DS(i),i}function jS(){if(!CS())return null;try{let e=U.sessionStorage.getItem(sv);if(!e)return null;let t=JSON.parse(e);return Q&&$.infoTick(`Loading existing session`),OS(t)}catch{return null}}function MS(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function NS(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return MS(e.started,t,r)||MS(e.lastActivity,n,r)}function PS(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!NS(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function FS({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&jS();return i?PS(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Q&&$.infoTick(`Session in sessionStorage is expired, creating new one...`),AS(r,{previousSessionId:i.id})):i:(Q&&$.infoTick(`Creating new session`),AS(r,{previousSessionId:n}))}function IS(e){return e.type===q.Custom}function LS(e,t,n){return BS(e,t)?(zS(e,t,n),!0):!1}function RS(e,t,n){return BS(e,t)?zS(e,t,n):Promise.resolve(null)}async function zS(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=VS(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){let n=t&&t instanceof hS,a=n?`addEventSizeExceeded`:`addEvent`,o=vg();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}function BS(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=gx(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Q&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function VS(e,t){try{if(typeof t==`function`&&IS(e))return t(e)}catch(e){return Q&&$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function HS(e){return!e.type}function US(e){return e.type===`transaction`}function WS(e){return e.type===`replay_event`}function GS(e){return e.type===`feedback`}function KS(e){return(t,n)=>{if(!e.isEnabled()||!HS(t)&&!US(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(US(t)){qS(e,t);return}JS(e,t)}}}function qS(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function JS(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||yp(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function YS(e){return t=>{!e.isEnabled()||!HS(t)||XS(e,t)}}function XS(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&vx(e,Lx({category:`replay.hydrate-error`,data:{url:Ch()}}))}function ZS(e){let t=vg();t&&t.on(`beforeAddBreadcrumb`,t=>QS(e,t))}function QS(e,t){if(!e.isEnabled()||!tC(t))return;let n=$S(t);n&&vx(e,n)}function $S(e){return!tC(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?eC(e):Lx(e)}function eC(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return Lx(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>vv?(n=!0,`${e.slice(0,vv)}…`):e;if(typeof e==`object`)try{let t=Zg(e,7);return JSON.stringify(t).length>vv?(n=!0,`${JSON.stringify(t,null,2).slice(0,vv)}…`):t}catch{}return e});return Lx({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function tC(e){return!!e.category}function nC(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function rC(){let e=hg().getPropagationContext().dsc;e&&delete e.replay_id;let t=Kg();if(t){let e=Xg(t);delete e.replay_id}}function iC(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:q.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1):!0)}function aC(e,t){return e.recordingMode!==`buffer`||t.message===lv||!t.exception||t.type?!1:ES(e.getOptions().errorSampleRate)}function oC(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(WS(t))return delete t.breadcrumbs,t;if(!HS(t)&&!US(t)&&!GS(t))return t;if(!e.checkAndHandleExpiredSession())return rC(),t;if(GS(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),iC(e,t),t;if(nC(t,n)&&!e.getOptions()._experiments.captureExceptions)return Q&&$.log(`Ignoring error from rrweb internals`,t),null;let r=aC(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&DS(t)}return t},{id:`Replay`})}function sC(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:q.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function cC(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function lC(e){return t=>{if(!e.isEnabled())return;let n=cC(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(sC(e,[n]),!1)))}}function uC(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:Y_(t,vg())}function dC(e,t){e.isEnabled()&&t!==null&&(uC(e,t.name)||e.addUpdate(()=>(sC(e,[t]),!0)))}function fC(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Tp(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function pC(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function mC(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function hC(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function gC(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function _C(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=yC(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function vC(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function yC(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>_v,n=bC(e);if(t){let t=e.slice(0,_v);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}…`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function bC(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function xC(e,t){return Ih(SC(e),t)}function SC(e,t=U.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(U.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function CC(e,t,n){try{let r=hC(`resource.fetch`,await TC(e,t,n));dC(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture fetch breadcrumb`)}}function wC(e,t){let{input:n,response:r}=t,i=fC(n?Dp(n):void 0),a=r?pC(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function TC(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=xC(o,n.networkDetailAllowUrls)&&!xC(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?EC(n,t.input,l):gC(l),response:await DC(d,n,t.response,u)}}function EC({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?jC(n,t):{};if(!e)return _C(i,r,void 0);let[a,o]=Ep(Dp(n),$),s=_C(i,r,a);return o?mC(s,o):s}async function DC(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return gC(i);let a=r?AC(r.headers,n):{};if(!r||!t&&i!==void 0)return _C(a,i,void 0);let[o,s]=await kC(r),c=OC(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?mC(c,s):c}function OC(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?fC(e):n;return r?t?_C(i,a,e):_C(i,a,void 0):gC(a)}catch(e){return Q&&$.exception(e,`Failed to serialize response body`),_C(i,n,void 0)}}async function kC(e){let t=NC(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await PC(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(Q&&$.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(Q&&$.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function AC(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function jC(e,t){return e.length===1&&typeof e[0]!=`string`?MC(e[0],t):e.length===2?MC(e[1],t):{}}function MC(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?AC(n,t):Array.isArray(n)?{}:vC(n,t):{}}function NC(e){try{return e.clone()}catch(e){Q&&$.exception(e,`Failed to clone response body`)}}function PC(e){return new Promise((t,n)=>{let r=yp(()=>n(Error(`Timeout while trying to read response body`)),500);FC(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function FC(e){return await e.text()}async function IC(e,t,n){try{let r=hC(`resource.xhr`,RC(e,t,n));dC(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture xhr breadcrumb`)}}function LC(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=fC(r),a=n.getResponseHeader(`content-length`)?pC(n.getResponseHeader(`content-length`)):VC(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function RC(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!xC(c,n.networkDetailAllowUrls)||xC(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:gC(d),response:gC(f)};let p=s[bp],m=p?vC(p.request_headers,n.networkRequestHeaders):{},h=vC(Op(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Ep(o,$):[void 0],[v,y]=n.networkCaptureBodies?zC(s):[void 0],b=_C(m,d,g),x=_C(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?mC(b,_):b,response:y?mC(x,y):x}}function zC(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return BC(e.response,e.responseType)}catch(e){t.push(e)}return Q&&$.warn(`Failed to get xhr response body`,...t),[void 0]}function BC(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&e&&typeof e==`object`)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Q&&$.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&$.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function VC(e,t){try{return fC(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e)}catch{return}}function HC(e){let t=vg();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>UC(s,e,t))}catch{}}function UC(e,t,n){if(t.data)try{WC(t)&&KC(n)&&(LC(t,n),IC(t,n,e)),GC(t)&&qC(n)&&(wC(t,n),CC(t,n,e))}catch(e){Q&&$.exception(e,`Error when enriching network breadcrumb`)}}function WC(e){return e.category===`xhr`}function GC(e){return e.category===`fetch`}function KC(e){return e?.xhr}function qC(e){return e?.response}function JC(e){let t=vg();op(Vx(e)),pp(lC(e)),ZS(e),HC(e),B_(oC(e)),t&&(t.on(`beforeSendEvent`,YS(e)),t.on(`afterSendEvent`,KS(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function YC(e){try{return Promise.all(sC(e,[XC(U.performance.memory)]))}catch{return[]}}function XC(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function ZC(e,t,n){return $_(e,t,{...n,setTimeoutImpl:yp})}var QC=H.navigator;function $C(){return/iPhone|iPad|iPod/i.test(QC?.userAgent??``)||/Macintosh/i.test(QC?.userAgent??``)&&QC?.maxTouchPoints&&QC?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function ew(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Q&&$.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,e.clickDetector&&Px(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!LS(e,n,i))return!0;if(!i)return!1;let t=e.session;if(nw(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(Q&&$.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&DS(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}}function tw(e){let t=e.getOptions();return{type:q.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function nw(e,t){!t||!e.session||e.session.segmentId!==0||LS(e,tw(e),!1)}function rw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function iw(e,t,n,r){return n_(i_(e,r_(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function aw({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
|
|
10
|
-
`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function ow({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await D_(e.getOptions(),r,i,t,e,gg());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function sw({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=aw({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=vg(),f=hg(),p=d?.getTransport(),m=d?.getDsn();if(!d||!p||!m||!a.sampled)return Promise.resolve({});let h=await ow({scope:f,client:d,replayId:t,event:{type:cv,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!h)return d.recordDroppedEvent(`event_processor`,`replay`),Q&&$.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete h.sdkProcessingMetadata;let g=iw(h,o,m,d.getOptions().tunnel),_;try{_=await p.send(g)}catch(e){let t=Error(lv);try{t.cause=e}catch{}throw t}let v=G_({},_);if(W_(v,`replay`))throw new lw(v);if(typeof _.statusCode==`number`&&(_.statusCode<200||_.statusCode>=300))throw new cw(_.statusCode);return _}var cw=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},lw=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},uw=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function dw(e,t={count:0,interval:hv}){let{recordingData:n,onError:r}=e;if(n.length)try{return await sw(e),!0}catch(n){if(n instanceof cw||n instanceof lw)throw n;if(z_(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=gv){let e=Error(`${lv} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{yp(async()=>{try{await dw(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var fw=`__THROTTLED`,pw=`__SKIPPED`;function mw(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?pw:fw}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var hw=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:uv,sessionIdleExpire:dv},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=ZC(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mw((e,t)=>RS(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(yv,n),timeout:n,scrollTimeout:bv,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new kx(this,i)),Q){let t=e._experiments;$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{U.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=Lx({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=Lx({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Kx(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Q&&$.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){Q&&$.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,Q&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){Q&&$.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in session mode`),this._updateUserActivity(),this.session=FS({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1}),this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in buffer mode`),this.session=FS({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0}),this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=ux({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:mv}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:ew(this),...$C(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode=`buffer`;try{Q&&$.log(`Stopping Replay${t?` triggered by ${t}`:``}`),rC(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,wS(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Q&&$.log(`Pausing replay`))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Q&&$.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();Q&&$.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();this.recordingMode===`buffer`||!this._isEnabled||t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&MS(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${U.location.pathname}${U.location.hash}${U.location.search}`,t=`${U.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===fw){let e=Lx({category:`replay.throttled`});this.addUpdate(()=>!LS(this,{type:hx,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||Kg(),t=e&&Gg(e),n=(t&&zg(t).data||{})[yg];if(!(!t||!n||![`route`,`custom`].includes(n)))return zg(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=bS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0;this.session=FS({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t})}_checkSession(){if(!this.session)return!1;let e=this.session;return PS(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`refresh session`}),this.initializeSampling(e.id))}_addListeners(){try{U.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),U.addEventListener(`blur`,this._handleWindowBlur),U.addEventListener(`focus`,this._handleWindowFocus),U.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(JC(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=cS(this)}_removeListeners(){try{U.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),U.removeEventListener(`blur`,this._handleWindowBlur),U.removeEventListener(`focus`,this._handleWindowFocus),U.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(NS(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){Q&&$.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:q.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=Zx(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(sC(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Q&&$.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await YC(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new uw;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await dw({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendReplay`});let t=vg();if(t){let n;n=e instanceof lw?`ratelimit_backoff`:e instanceof uw?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Q&&$.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){Q&&$.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Q&&$.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&DS(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=rw(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=Lx({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return a?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}};function gw(e,t){return[...e,...t].join(`,`)}function _w({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:gw(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:gw(t,[]),blockSelector:gw(n,[`.sentry-block`,`[data-sentry-block]`,...[`base`,`iframe[srcdoc]:not([src])`]]),unblockSelector:gw(r,[]),ignoreSelector:gw(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function vw({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``)?a.replace(/[\S]/g,`*`):a}var yw=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,bw=[`content-length`,`content-type`,`accept`],xw=Symbol.for(`sentry__originalRequestBody`),Sw=!1,Cw=!1;function ww(){if(typeof Request>`u`||Cw)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[xw]=n.body),r};t.prototype=e.prototype,H.Request=t,Cw=!0}catch{}}var Tw=(e=>new Ew(e)),Ew=class{constructor({flushMinDelay:e=fv,flushMaxDelay:t=pv,minReplayDuration:n=Sv,maxReplayDuration:r=wv,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:ee=[],maskFn:te,beforeAddRecordingEvent:T,beforeErrorSampling:E,onError:D,attachRawBodyFromRequest:ne=!1}={}){this.name=`Replay`;let re=_w({mask:b,unmask:S,block:C,unblock:w,ignore:ee});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:te,maskInputFn:te,maskAttributeFn:(e,t,n)=>vw({maskAttributes:x,maskAllText:c,privacyOptions:re,key:e,value:t,el:n}),...re,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,Cv),maxReplayDuration:Math.min(r,wv),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:Ow(v),networkResponseHeaders:Ow(y),beforeAddRecordingEvent:T,beforeErrorSampling:E,onError:D,attachRawBodyFromRequest:ne,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${yw}`:yw,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&av())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return Sw}set _isInitialized(e){Sw=e}afterAllSetup(e){!av()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&ww(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode===`session`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){this._replay=new hw({options:Dw(this._initialOptions,e),recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function Dw(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Pg(n.replaysSessionSampleRate),a=Pg(n.replaysOnErrorSampleRate);return i==null&&a==null&&Jm(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function Ow(e){return[...bw,...e.map(e=>e.toLowerCase())]}function kw(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function Aw(e){try{return new URL(e,N.location.origin).href}catch{return}}function jw(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Mw(e){try{return new Headers(e)}catch{return}}var Nw=new WeakMap,Pw=new Map,Fw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Iw(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...Fw,...t},u=typeof a==`function`?a:e=>!0,d=e=>Rw(e,s),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=Pw.get(e.span_id);t&&(e.timestamp=t/1e3,Pw.delete(e.span_id))}}),e)),i&&Ss(e=>{if(e.response){let t=Nw.get(e.response);t&&e.endTimestamp&&Pw.set(t,e.endTimestamp)}}),xs(e=>{let t=cs(e,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(e.response&&e.fetchData.__span&&Nw.set(e.response,e.fetchData.__span),t){let n=Aw(e.fetchData.url),r=n?_o(n).host:void 0;t.setAttributes({"http.url":n?yo(n):void 0,"server.address":r}),o&&Lw(t),c?.(t,{headers:e.headers})}})),r&&xp(e=>{let t=zw(e,u,d,f,p,l);t&&(o&&Lw(t),c?.(t,{headers:Mw(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Lw(e){let{url:t}=M(e).data;if(!t||typeof t!=`string`)return;let n=rf(`resource`,({entries:r})=>{r.forEach(r=>{jw(r)&&r.name.endsWith(t)&&(e.setAttributes(Of(r)),setTimeout(n))})})}function Rw(e,t){let n=Ge();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?ct(r.toString(),t)||a&&ct(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?ct(e,t):n}}function zw(e,t,n,r,i,a){let o=e.xhr,s=o?.[bp];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=dr()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(fn(n,s.status_code),n.end(),a?.(n,{headers:Mw(Op(o)),error:e.error})),delete r[t]);return}let d=Aw(c),f=_o(d||c),p=yo(vo(c)),m=!!sr(),h=u&&m?ai({name:`${l} ${p}`,attributes:{url:yo(c),type:`xhr`,"http.method":l,"http.url":d?yo(d):void 0,"server.address":f?.host,[tn]:`auto.http.browser`,[en]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Sr;o.__sentry_xhr_span_id__=h.spanContext().spanId,r[o.__sentry_xhr_span_id__]=h,n(c)&&Bw(o,dr()&&m?h:void 0,i);let g=j();return g&&g.emit(`beforeOutgoingRequestSpan`,h,e),h}function Bw(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=So({span:t,propagateTraceparent:n});r&&Vw(e,r,i,a)}function Vw(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!kw(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function Hw(){N.document?N.document.addEventListener(`visibilitychange`,()=>{let e=sr();if(!e)return;let t=or(e);if(N.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=M(t);Bp&&D.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):Bp&&D.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var Uw=`sentry_previous_trace`,Ww=`sentry.previous_trace`;function Gw(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?Jw():void 0;e.on(`spanStart`,e=>{if(or(e)!==e)return;let t=A().getPropagationContext();i=Kw(i,e,t),r&&qw(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=A(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(Yw(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=Yw(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[$t]:i.sampleRate}})}function Kw(e,t,n){let r=M(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(Bp&&D.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[ln]:`previous_trace`}}),t.setAttribute(Ww,`${o.traceId}-${o.spanId}-${Yw(o)?1:0}`)),a)}function qw(e){try{N.sessionStorage.setItem(Uw,JSON.stringify(e))}catch(e){Bp&&D.warn(`Could not store previous trace in sessionStorage`,e)}}function Jw(){try{let e=N.sessionStorage?.getItem(Uw);return JSON.parse(e)}catch{return}}function Yw(e){return e.traceFlags===1}var Xw=`BrowserTracing`,Zw={...pi,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Fw},Qw=((e={})=>{let t={name:void 0,source:void 0},n=N.document,{enableInp:r,enableElementTiming:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:u,idleTimeout:d,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:y,enableHTTPTimings:b,ignoreResourceSpans:x,ignorePerformanceApiSpans:S,instrumentPageLoad:C,instrumentNavigation:w,detectRedirects:ee,linkPreviousTrace:te,consistentTraceSampling:T,enableReportPageLoaded:E,onRequestSpanStart:ne,onRequestSpanEnd:re}={...Zw,...e},ie,ae,O;function oe(e,r,i=!0){let a=r.op===`pageload`,o=r.name,s=u?u(r):r,f=s.attributes||{};if(o!==s.name&&(f[Zt]=`custom`,s.attributes=f),!i){let e=bt();ai({...s,startTime:e}).end(e);return}t.name=s.name,t.source=f[Zt];let h=vi(s,{idleTimeout:d,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:a,beforeSpanEnd:t=>{ie?.(),Vf(t,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:x,ignorePerformanceApiSpans:S}),oT(e,void 0);let n=A(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:$n(h),dsc:xr(t)}),a&&(O=void 0)},trimIdleSpanEndTimestamp:!E});a&&E&&(O=h),oT(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&!E&&n&&(n.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:Xw,setup(e){if(ur(),ie=Pf({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:l||!1,client:e}),r&&Np(),i&&ep(),o&&f.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(`long-animation-frame`)?If():a&&Ff(),s&&Lf(),ee&&n){let e=()=>{ae=k()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=aT(e);t&&!M(t).timestamp&&(Bp&&D.log(`[Tracing] Finishing current active span with op: ${M(t).op}`),t.setAttribute(nn,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(j()!==e)return;if(r?.isRedirect){Bp&&D.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),oe(e,{op:`navigation.redirect`,...n},!1);return}ae=void 0,t(),qt().setPropagationContext({traceId:jt(),sampleRand:Math.random(),propagationSpanId:dr()?void 0:Mt()});let i=A();i.setPropagationContext({traceId:jt(),sampleRand:Math.random(),propagationSpanId:dr()?void 0:Mt()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),oe(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(n,r={})=>{if(j()!==e)return;t();let i=zn(r.sentryTrace||tT(`sentry-trace`)||nT(`sentry-trace`),r.baggage||tT(`baggage`)||nT(`baggage`)),a=A();a.setPropagationContext(i),dr()||(a.getPropagationContext().propagationSpanId=Mt()),a.setSDKProcessingMetadata({normalizedRequest:Fs()}),oe(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{E&&O&&(O.setAttribute(nn,`reportPageLoaded`),O.end())})},afterAllSetup(e){let n=Ge();if(te!==`off`&&Gw(e,{linkPreviousTrace:te,consistentTraceSampling:T}),N.location){if(C){let t=Tt();$w(e,{name:N.location.pathname,startTime:t?t/1e3:void 0,attributes:{[Zt]:`url`,[tn]:`auto.pageload.browser`}})}w&&pp(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=ho(t),a=aT(e),o=a&&ee&&cT(a,ae);eT(e,{name:i?.pathname||N.location.pathname,attributes:{[Zt]:`url`,[tn]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}h&&Hw(),s&&rT(e,d,p,m,t),r&&Lp(),Iw(e,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b,onRequestSpanStart:ne,onRequestSpanEnd:re})}}});function $w(e,t,n){e.emit(`startPageLoadSpan`,t,n),A().setTransactionName(t.name);let r=aT(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function eT(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=A();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Fs(),url:r}}),aT(e)}function tT(e){return(N.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function nT(e){return(N.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function rT(e,t,n,r,i){let a=N.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=aT(e);if(s){let e=M(s).op;if([`navigation`,`pageload`].includes(e)){Bp&&D.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(nn,`interactionInterrupted`),o.end(),void 0),!i.name){Bp&&D.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=vi({name:i.name,op:a,attributes:{[Zt]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var iT=`_sentry_idleSpan`;function aT(e){return e[iT]}function oT(e,t){Je(e,iT,t)}var sT=1.5;function cT(e,t){let n=M(e),r=bt();return!(r-n.start_timestamp>sT||t&&r-t<=sT)}var lT=`sentry.source`,uT=`sentry.op`,dT=`sentry.origin`;function fT(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function pT(e){return typeof e==`number`?mT(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?mT(e.getTime()):o()}function mT(e){return e>9999999999?e/1e3:e}function hT(e){if(_T(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(gT(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:pT(i),timestamp:pT(o)||void 0,status:vT(s),op:r[uT],origin:r[dT],links:fT(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function gT(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function _T(e){return typeof e.getSpanJSON==`function`}function vT(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var yT=`_sentryRootSpan`;function bT(e){return e[yT]||e}function xT(){let e=t(s());return e.getActiveSpan?e.getActiveSpan():i(l())}function ST(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||n()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function CT(e){if(e)return wT(e)||ET(e)?{captureContext:e}:e}function wT(e){return e instanceof a||typeof e==`function`}var TT=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function ET(e){return Object.keys(e).some(e=>TT.includes(e))}function DT(e,t){return l().captureException(e,CT(t))}function OT(e){return e}function kT(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:u})),i.version=u)}var AT=[`activate`,`mount`],jT=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,MT=/(?:^|[-_])(\w)/g,NT=e=>e.replace(MT,e=>e.toUpperCase()).replace(/[-_]/g,``),PT=`<Root>`,FT=`<Anonymous>`,IT=(e,t)=>e.repeat(t),LT=(e,t)=>{if(!e)return FT;if(e.$root===e)return PT;if(!e.$options)return FT;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${NT(r)}>`:FT)+(i&&t!==!1?` at ${i}`:``)},RT=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`\n\nfound in\n\n${t.map((e,t)=>`${(t===0?`---> `:IT(` `,5+t*2))+(Array.isArray(e)?`${LT(e[0])}... (${e[1]} recursive calls)`:LT(e))}`).join(`
|
|
11
|
-
`)}`}return`\n\n(found in ${LT(e)})`},zT=(e,t)=>{let{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{let o={componentName:LT(i,!1),lifecycleHook:a,trace:i?RT(i):``};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{DT(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:`auto.function.vue.error_handler`}})}),typeof n==`function`&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},BT=`ui.vue`,VT={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function HT(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function UT(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var WT=(t={})=>{let n=(t.hooks||[]).concat(AT).filter((e,t,n)=>n.indexOf(e)===t),r={},i=t.timeout||2e3;for(let a of n){let n=VT[a];if(!n){jT&&e.warn(`Unknown hook: ${a}`);continue}for(let e of n)r[e]=function(){let r=this.$root===this;r&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||ai({name:`Application Render`,op:`${BT}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}),HT(this,o(),i));let s=LT(this,!1);if(!(r||(Array.isArray(t.trackComponents)?UT(t.trackComponents,s):t.trackComponents))){HT(this,o(),i);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};let c=e===n[0],l=this.$root?.$_sentryRootComponentSpan||sr();if(c){if(l){let e=this.$_sentryComponentSpans[a];e&&e.end(),this.$_sentryComponentSpans[a]=ai({name:`Vue ${s}`,op:`${BT}.${a}`,attributes:{[tn]:`auto.ui.vue`},onlyIfParent:!0})}}else{let e=this.$_sentryComponentSpans[a];if(!e)return;e.end(),HT(this,o(),i)}}}return r},GT={Vue:c.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:AT,timeout:2e3,trackComponents:!1}},KT=`Vue`,qT=OT((e={})=>({name:KT,setup(t){let n={...GT,...t.getOptions(),...e};if(!n.Vue&&!n.app){r(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>JT(e,n)):n.Vue&&JT(n.Vue,n)}})),JT=(e,t)=>{jT&&e._instance?.isMounted===!0&&r(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&zT(e,t),ST(t)&&e.mixin(WT(t.tracingOptions))};function YT(e={}){let t={defaultIntegrations:[...zm(e),qT()],...e};return kT(t,`vue`),Bm(t)}function XT(e,t,n){let r=!1,i=`mode`in e;e.onError(e=>$i(e,{mechanism:{handled:!1}})),e.beforeEach((e,a,...o)=>{let s=r?void 0:ZT(),c={};for(let t of Object.keys(e.params))c[`url.path.parameter.${t}`]=e.params[t],c[`params.${t}`]=e.params[t];for(let t of Object.keys(e.query)){let n=e.query[t];n&&(c[`query.${t}`]=n)}let u=e.path,d=`url`;if(e.name&&t.routeLabel!==`path`)u=e.name.toString(),d=`custom`;else if(e.matched.length>0){let t=e.matched.length-1;u=e.matched[t].path,d=`route`}if(l().setTransactionName(u),t.instrumentPageLoad&&s&&(hT(s).data[`sentry.source`]!==`custom`&&(s.updateName(u),s.setAttribute(lT,d)),s.setAttributes({...c,[dT]:`auto.pageload.vue`}),r=!0),t.instrumentNavigation&&!s&&n({name:u,op:`navigation`,attributes:{...c,[dT]:`auto.navigation.vue`,[lT]:d}}),i){let e=o[0];typeof e==`function`&&e()}})}function ZT(){let e=xT(),t=e&&bT(e);if(t)return hT(t).op===`pageload`?t:void 0}function QT(e={}){if(!e.router)return Qw(e);let t=Qw({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a=`name`}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),XT(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},t=>{eT(e,t)})}}}export{ta as i,YT as n,Tw as r,QT as t};
|