@devmotion/cli 0.6.3 → 0.7.0
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/dist/index.js +4 -5
- package/mcp/mcp-stdio.mjs +377 -156
- package/package.json +1 -1
- package/studio/client/_app/immutable/assets/0.Lv_sH-a4.css +1 -0
- package/studio/client/_app/immutable/assets/0.Lv_sH-a4.css.br +0 -0
- package/studio/client/_app/immutable/assets/0.Lv_sH-a4.css.gz +0 -0
- package/studio/client/_app/immutable/assets/editor.BN5lBQZg.css +1 -0
- package/studio/client/_app/immutable/assets/editor.BN5lBQZg.css.br +0 -0
- package/studio/client/_app/immutable/assets/editor.BN5lBQZg.css.gz +0 -0
- package/studio/client/_app/immutable/chunks/0jm3sjlg.js +1 -0
- package/studio/client/_app/immutable/chunks/0jm3sjlg.js.br +2 -0
- package/studio/client/_app/immutable/chunks/0jm3sjlg.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/5L1qzVZj.js +1 -0
- package/studio/client/_app/immutable/chunks/5L1qzVZj.js.br +0 -0
- package/studio/client/_app/immutable/chunks/5L1qzVZj.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/8kx1slbN.js +1 -0
- package/studio/client/_app/immutable/chunks/8kx1slbN.js.br +0 -0
- package/studio/client/_app/immutable/chunks/8kx1slbN.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/8vtb60R1.js +1 -0
- package/studio/client/_app/immutable/chunks/8vtb60R1.js.br +0 -0
- package/studio/client/_app/immutable/chunks/8vtb60R1.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/B1Kon8VR.js +1 -0
- package/studio/client/_app/immutable/chunks/B1Kon8VR.js.br +0 -0
- package/studio/client/_app/immutable/chunks/B1Kon8VR.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/B4dMvZH-.js +1 -0
- package/studio/client/_app/immutable/chunks/B4dMvZH-.js.br +0 -0
- package/studio/client/_app/immutable/chunks/B4dMvZH-.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/B7fQzRev.js +1 -0
- package/studio/client/_app/immutable/chunks/B7fQzRev.js.br +0 -0
- package/studio/client/_app/immutable/chunks/B7fQzRev.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BAYadMNA.js +1 -0
- package/studio/client/_app/immutable/chunks/BAYadMNA.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BAYadMNA.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BMGFIROs.js +1 -0
- package/studio/client/_app/immutable/chunks/BMGFIROs.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BMGFIROs.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BYo4Jpme.js +16 -0
- package/studio/client/_app/immutable/chunks/BYo4Jpme.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BYo4Jpme.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BeTUgF4S.js +1 -0
- package/studio/client/_app/immutable/chunks/BeTUgF4S.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BeTUgF4S.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BidNKR6p.js +5 -0
- package/studio/client/_app/immutable/chunks/BidNKR6p.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BidNKR6p.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BujAtXXM.js +1 -0
- package/studio/client/_app/immutable/chunks/BujAtXXM.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BujAtXXM.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BvpaRDa_.js +1 -0
- package/studio/client/_app/immutable/chunks/BvpaRDa_.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BvpaRDa_.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C4dDhPtf.js +1 -0
- package/studio/client/_app/immutable/chunks/C4dDhPtf.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C4dDhPtf.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C9qsOfWE.js +1 -0
- package/studio/client/_app/immutable/chunks/C9qsOfWE.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C9qsOfWE.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CNNzQrlb.js +1 -0
- package/studio/client/_app/immutable/chunks/CNNzQrlb.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CNNzQrlb.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CP2t8wzc.js +1 -0
- package/studio/client/_app/immutable/chunks/CP2t8wzc.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CP2t8wzc.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Ccg49IMO.js +96 -0
- package/studio/client/_app/immutable/chunks/Ccg49IMO.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Ccg49IMO.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CidmzZr_.js +99 -0
- package/studio/client/_app/immutable/chunks/CidmzZr_.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CidmzZr_.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CmzRa5tW.js +1 -0
- package/studio/client/_app/immutable/chunks/CmzRa5tW.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CmzRa5tW.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Cu3vhtIm.js +1 -0
- package/studio/client/_app/immutable/chunks/Cu3vhtIm.js.br +3 -0
- package/studio/client/_app/immutable/chunks/Cu3vhtIm.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/D1jFvxj0.js +1 -0
- package/studio/client/_app/immutable/chunks/D1jFvxj0.js.br +0 -0
- package/studio/client/_app/immutable/chunks/D1jFvxj0.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DGsO816A.js +1 -0
- package/studio/client/_app/immutable/chunks/DGsO816A.js.br +1 -0
- package/studio/client/_app/immutable/chunks/DGsO816A.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DKZDxza2.js +1 -0
- package/studio/client/_app/immutable/chunks/DKZDxza2.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DKZDxza2.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DWycBSvS.js +1 -0
- package/studio/client/_app/immutable/chunks/DWycBSvS.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DWycBSvS.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DaYfM_aT.js +512 -0
- package/studio/client/_app/immutable/chunks/DaYfM_aT.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DaYfM_aT.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Dgdpq5VR.js +1 -0
- package/studio/client/_app/immutable/chunks/Dgdpq5VR.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Dgdpq5VR.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DlBik49G.js +1 -0
- package/studio/client/_app/immutable/chunks/DlBik49G.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DlBik49G.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DnZvuu1V.js +1 -0
- package/studio/client/_app/immutable/chunks/DnZvuu1V.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DnZvuu1V.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Dru5mrF1.js +1 -0
- package/studio/client/_app/immutable/chunks/Dru5mrF1.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Dru5mrF1.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DtOmmgoM.js +4 -0
- package/studio/client/_app/immutable/chunks/DtOmmgoM.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DtOmmgoM.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DvcCXeL2.js +1 -0
- package/studio/client/_app/immutable/chunks/DvcCXeL2.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DvcCXeL2.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DvvYiUNt.js +4 -0
- package/studio/client/_app/immutable/chunks/DvvYiUNt.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DvvYiUNt.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DzAxJut6.js +1 -0
- package/studio/client/_app/immutable/chunks/DzAxJut6.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DzAxJut6.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/FKE3oSoF.js +2 -0
- package/studio/client/_app/immutable/chunks/FKE3oSoF.js.br +0 -0
- package/studio/client/_app/immutable/chunks/FKE3oSoF.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/GL0yz1Mp.js +1 -0
- package/studio/client/_app/immutable/chunks/GL0yz1Mp.js.br +0 -0
- package/studio/client/_app/immutable/chunks/GL0yz1Mp.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/IIGX7hY5.js +1 -0
- package/studio/client/_app/immutable/chunks/IIGX7hY5.js.br +0 -0
- package/studio/client/_app/immutable/chunks/IIGX7hY5.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/KMhWafV2.js +1 -0
- package/studio/client/_app/immutable/chunks/KMhWafV2.js.br +0 -0
- package/studio/client/_app/immutable/chunks/KMhWafV2.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/R0PS9H7p.js +1 -0
- package/studio/client/_app/immutable/chunks/R0PS9H7p.js.br +0 -0
- package/studio/client/_app/immutable/chunks/R0PS9H7p.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/YwFQw-CS.js +730 -0
- package/studio/client/_app/immutable/chunks/YwFQw-CS.js.br +0 -0
- package/studio/client/_app/immutable/chunks/YwFQw-CS.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/_y8Y_bWZ.js +2 -0
- package/studio/client/_app/immutable/chunks/_y8Y_bWZ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/_y8Y_bWZ.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/a4b4Uis3.js +1 -0
- package/studio/client/_app/immutable/chunks/a4b4Uis3.js.br +0 -0
- package/studio/client/_app/immutable/chunks/a4b4Uis3.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/bGtUFIGQ.js +1 -0
- package/studio/client/_app/immutable/chunks/bGtUFIGQ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/bGtUFIGQ.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/nTtOQUuo.js +1 -0
- package/studio/client/_app/immutable/chunks/nTtOQUuo.js.br +0 -0
- package/studio/client/_app/immutable/chunks/nTtOQUuo.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/pT1u3Hqy.js +1 -0
- package/studio/client/_app/immutable/chunks/pT1u3Hqy.js.br +0 -0
- package/studio/client/_app/immutable/chunks/pT1u3Hqy.js.gz +0 -0
- package/studio/client/_app/immutable/entry/app.BlMsBed_.js +2 -0
- package/studio/client/_app/immutable/entry/app.BlMsBed_.js.br +0 -0
- package/studio/client/_app/immutable/entry/app.BlMsBed_.js.gz +0 -0
- package/studio/client/_app/immutable/entry/start.Br1JKkZD.js +1 -0
- package/studio/client/_app/immutable/entry/start.Br1JKkZD.js.br +0 -0
- package/studio/client/_app/immutable/entry/start.Br1JKkZD.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/0.CH4rtrFP.js +2 -0
- package/studio/client/_app/immutable/nodes/0.CH4rtrFP.js.br +0 -0
- package/studio/client/_app/immutable/nodes/0.CH4rtrFP.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/1.BA5TTBGM.js +1 -0
- package/studio/client/_app/immutable/nodes/1.BA5TTBGM.js.br +0 -0
- package/studio/client/_app/immutable/nodes/1.BA5TTBGM.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/10.DjmeS5CE.js +1 -0
- package/studio/client/_app/immutable/nodes/10.DjmeS5CE.js.br +0 -0
- package/studio/client/_app/immutable/nodes/10.DjmeS5CE.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/11.B5lOMsv4.js +1 -0
- package/studio/client/_app/immutable/nodes/11.B5lOMsv4.js.br +0 -0
- package/studio/client/_app/immutable/nodes/11.B5lOMsv4.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/12.Bdh67hUI.js +2 -0
- package/studio/client/_app/immutable/nodes/12.Bdh67hUI.js.br +0 -0
- package/studio/client/_app/immutable/nodes/12.Bdh67hUI.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/13.DeCCmCaZ.js +1 -0
- package/studio/client/_app/immutable/nodes/13.DeCCmCaZ.js.br +0 -0
- package/studio/client/_app/immutable/nodes/13.DeCCmCaZ.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/14.BK_MYNTB.js +1 -0
- package/studio/client/_app/immutable/nodes/14.BK_MYNTB.js.br +0 -0
- package/studio/client/_app/immutable/nodes/14.BK_MYNTB.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/15.DTOUruaa.js +1 -0
- package/studio/client/_app/immutable/nodes/15.DTOUruaa.js.br +0 -0
- package/studio/client/_app/immutable/nodes/15.DTOUruaa.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/16.4YmSrppF.js +8 -0
- package/studio/client/_app/immutable/nodes/16.4YmSrppF.js.br +0 -0
- package/studio/client/_app/immutable/nodes/16.4YmSrppF.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/17.DUeNi0aB.js +1 -0
- package/studio/client/_app/immutable/nodes/17.DUeNi0aB.js.br +0 -0
- package/studio/client/_app/immutable/nodes/17.DUeNi0aB.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/18.DilqYUUv.js +1 -0
- package/studio/client/_app/immutable/nodes/18.DilqYUUv.js.br +0 -0
- package/studio/client/_app/immutable/nodes/18.DilqYUUv.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/19.QEH9WR1D.js +1 -0
- package/studio/client/_app/immutable/nodes/19.QEH9WR1D.js.br +0 -0
- package/studio/client/_app/immutable/nodes/19.QEH9WR1D.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/20.DIa-6Wtj.js +45 -0
- package/studio/client/_app/immutable/nodes/20.DIa-6Wtj.js.br +0 -0
- package/studio/client/_app/immutable/nodes/20.DIa-6Wtj.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/21.C7plrZc8.js +16 -0
- package/studio/client/_app/immutable/nodes/21.C7plrZc8.js.br +0 -0
- package/studio/client/_app/immutable/nodes/21.C7plrZc8.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/28.BwKSpFi_.js +8 -0
- package/studio/client/_app/immutable/nodes/28.BwKSpFi_.js.br +0 -0
- package/studio/client/_app/immutable/nodes/28.BwKSpFi_.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/3._qhjdqhg.js +1 -0
- package/studio/client/_app/immutable/nodes/3._qhjdqhg.js.br +0 -0
- package/studio/client/_app/immutable/nodes/3._qhjdqhg.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/30.DA7Me2YV.js +26 -0
- package/studio/client/_app/immutable/nodes/30.DA7Me2YV.js.br +0 -0
- package/studio/client/_app/immutable/nodes/30.DA7Me2YV.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/38.DwvBsnGj.js +1 -0
- package/studio/client/_app/immutable/nodes/38.DwvBsnGj.js.br +0 -0
- package/studio/client/_app/immutable/nodes/38.DwvBsnGj.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/39.DrGfz0RO.js +88 -0
- package/studio/client/_app/immutable/nodes/39.DrGfz0RO.js.br +0 -0
- package/studio/client/_app/immutable/nodes/39.DrGfz0RO.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/4.R0oJOWD_.js +1 -0
- package/studio/client/_app/immutable/nodes/4.R0oJOWD_.js.br +0 -0
- package/studio/client/_app/immutable/nodes/4.R0oJOWD_.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/41.Dmbm2Egz.js +1 -0
- package/studio/client/_app/immutable/nodes/41.Dmbm2Egz.js.br +0 -0
- package/studio/client/_app/immutable/nodes/41.Dmbm2Egz.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/42.D205SuZX.js +1 -0
- package/studio/client/_app/immutable/nodes/42.D205SuZX.js.br +0 -0
- package/studio/client/_app/immutable/nodes/42.D205SuZX.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/43.Bg1auisF.js +1 -0
- package/studio/client/_app/immutable/nodes/43.Bg1auisF.js.br +0 -0
- package/studio/client/_app/immutable/nodes/43.Bg1auisF.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/44.CPLxW4El.js +1 -0
- package/studio/client/_app/immutable/nodes/44.CPLxW4El.js.br +0 -0
- package/studio/client/_app/immutable/nodes/44.CPLxW4El.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/45.DSssrLbd.js +2 -0
- package/studio/client/_app/immutable/nodes/45.DSssrLbd.js.br +0 -0
- package/studio/client/_app/immutable/nodes/45.DSssrLbd.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/46.CmYGMWb4.js +1 -0
- package/studio/client/_app/immutable/nodes/46.CmYGMWb4.js.br +0 -0
- package/studio/client/_app/immutable/nodes/46.CmYGMWb4.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/47.DJ6V3A94.js +1 -0
- package/studio/client/_app/immutable/nodes/47.DJ6V3A94.js.br +0 -0
- package/studio/client/_app/immutable/nodes/47.DJ6V3A94.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/48.BOPN4KRW.js +1 -0
- package/studio/client/_app/immutable/nodes/48.BOPN4KRW.js.br +0 -0
- package/studio/client/_app/immutable/nodes/48.BOPN4KRW.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/49.7I6h2rM6.js +7 -0
- package/studio/client/_app/immutable/nodes/49.7I6h2rM6.js.br +0 -0
- package/studio/client/_app/immutable/nodes/49.7I6h2rM6.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/5.R0oJOWD_.js +1 -0
- package/studio/client/_app/immutable/nodes/5.R0oJOWD_.js.br +0 -0
- package/studio/client/_app/immutable/nodes/5.R0oJOWD_.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/7.VcgX8ZgJ.js +1 -0
- package/studio/client/_app/immutable/nodes/7.VcgX8ZgJ.js.br +0 -0
- package/studio/client/_app/immutable/nodes/7.VcgX8ZgJ.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/8.ZwVfexZ0.js +1 -0
- package/studio/client/_app/immutable/nodes/8.ZwVfexZ0.js.br +0 -0
- package/studio/client/_app/immutable/nodes/8.ZwVfexZ0.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/9.DPwqLu6G.js +1 -0
- package/studio/client/_app/immutable/nodes/9.DPwqLu6G.js.br +0 -0
- package/studio/client/_app/immutable/nodes/9.DPwqLu6G.js.gz +0 -0
- package/studio/client/_app/version.json +1 -1
- package/studio/client/_app/version.json.br +0 -0
- package/studio/client/_app/version.json.gz +0 -0
- package/studio/prerendered/docs/api/errors.html +38 -38
- package/studio/prerendered/docs/api/errors.html.br +0 -0
- package/studio/prerendered/docs/api/errors.html.gz +0 -0
- package/studio/prerendered/docs/api/projects.html +38 -38
- package/studio/prerendered/docs/api/projects.html.br +0 -0
- package/studio/prerendered/docs/api/projects.html.gz +0 -0
- package/studio/prerendered/docs/api/renders.html +38 -38
- package/studio/prerendered/docs/api/renders.html.br +0 -0
- package/studio/prerendered/docs/api/renders.html.gz +0 -0
- package/studio/prerendered/docs/api/templates.html +38 -38
- package/studio/prerendered/docs/api/templates.html.br +0 -0
- package/studio/prerendered/docs/api/templates.html.gz +0 -0
- package/studio/prerendered/docs/api/webhooks.html +38 -38
- package/studio/prerendered/docs/api/webhooks.html.br +0 -0
- package/studio/prerendered/docs/api/webhooks.html.gz +0 -0
- package/studio/prerendered/docs/api.html +38 -38
- package/studio/prerendered/docs/api.html.br +0 -0
- package/studio/prerendered/docs/api.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/autogen.html +40 -40
- package/studio/prerendered/docs/mcp/integrations/autogen.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/autogen.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/crewai.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/crewai.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/crewai.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/dify.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/dify.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/dify.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/flowise.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/flowise.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/flowise.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/langchain.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/langchain.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/langchain.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/llamaindex.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/llamaindex.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/llamaindex.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/make.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/make.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/make.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations/n8n.html +38 -38
- package/studio/prerendered/docs/mcp/integrations/n8n.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations/n8n.html.gz +0 -0
- package/studio/prerendered/docs/mcp/integrations.html +38 -38
- package/studio/prerendered/docs/mcp/integrations.html.br +0 -0
- package/studio/prerendered/docs/mcp/integrations.html.gz +0 -0
- package/studio/prerendered/docs/mcp/plans.html +40 -40
- package/studio/prerendered/docs/mcp/plans.html.br +0 -0
- package/studio/prerendered/docs/mcp/plans.html.gz +0 -0
- package/studio/prerendered/docs/mcp/reference.html +48 -47
- package/studio/prerendered/docs/mcp/reference.html.br +0 -0
- package/studio/prerendered/docs/mcp/reference.html.gz +0 -0
- package/studio/prerendered/docs/mcp/setup.html +38 -38
- package/studio/prerendered/docs/mcp/setup.html.br +0 -0
- package/studio/prerendered/docs/mcp/setup.html.gz +0 -0
- package/studio/prerendered/docs/mcp.html +40 -40
- package/studio/prerendered/docs/mcp.html.br +0 -0
- package/studio/prerendered/docs/mcp.html.gz +0 -0
- package/studio/prerendered/docs.html +37 -37
- package/studio/prerendered/docs.html.br +0 -0
- package/studio/prerendered/docs.html.gz +0 -0
- package/studio/prerendered/dub/arabic.html +36 -36
- package/studio/prerendered/dub/arabic.html.br +0 -0
- package/studio/prerendered/dub/arabic.html.gz +0 -0
- package/studio/prerendered/dub/chinese-simplified.html +36 -36
- package/studio/prerendered/dub/chinese-simplified.html.br +0 -0
- package/studio/prerendered/dub/chinese-simplified.html.gz +0 -0
- package/studio/prerendered/dub/dutch.html +36 -36
- package/studio/prerendered/dub/dutch.html.br +0 -0
- package/studio/prerendered/dub/dutch.html.gz +0 -0
- package/studio/prerendered/dub/french.html +36 -36
- package/studio/prerendered/dub/french.html.br +0 -0
- package/studio/prerendered/dub/french.html.gz +0 -0
- package/studio/prerendered/dub/german.html +36 -36
- package/studio/prerendered/dub/german.html.br +0 -0
- package/studio/prerendered/dub/german.html.gz +0 -0
- package/studio/prerendered/dub/hindi.html +36 -36
- package/studio/prerendered/dub/hindi.html.br +0 -0
- package/studio/prerendered/dub/hindi.html.gz +0 -0
- package/studio/prerendered/dub/italian.html +36 -36
- package/studio/prerendered/dub/italian.html.br +0 -0
- package/studio/prerendered/dub/italian.html.gz +0 -0
- package/studio/prerendered/dub/japanese.html +36 -36
- package/studio/prerendered/dub/japanese.html.br +0 -0
- package/studio/prerendered/dub/japanese.html.gz +0 -0
- package/studio/prerendered/dub/korean.html +36 -36
- package/studio/prerendered/dub/korean.html.br +0 -0
- package/studio/prerendered/dub/korean.html.gz +0 -0
- package/studio/prerendered/dub/polish.html +36 -36
- package/studio/prerendered/dub/polish.html.br +0 -0
- package/studio/prerendered/dub/polish.html.gz +0 -0
- package/studio/prerendered/dub/portuguese.html +36 -36
- package/studio/prerendered/dub/portuguese.html.br +0 -0
- package/studio/prerendered/dub/portuguese.html.gz +0 -0
- package/studio/prerendered/dub/spanish.html +36 -36
- package/studio/prerendered/dub/spanish.html.br +0 -0
- package/studio/prerendered/dub/spanish.html.gz +0 -0
- package/studio/prerendered/sitemap.xml +90 -90
- package/studio/prerendered/sitemap.xml.br +0 -0
- package/studio/prerendered/sitemap.xml.gz +0 -0
- package/studio/prerendered/tools/add-captions/instagram.html +36 -36
- package/studio/prerendered/tools/add-captions/instagram.html.br +0 -0
- package/studio/prerendered/tools/add-captions/instagram.html.gz +0 -0
- package/studio/prerendered/tools/add-captions/linkedin.html +36 -36
- package/studio/prerendered/tools/add-captions/linkedin.html.br +0 -0
- package/studio/prerendered/tools/add-captions/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/add-captions/tiktok.html +36 -36
- package/studio/prerendered/tools/add-captions/tiktok.html.br +0 -0
- package/studio/prerendered/tools/add-captions/tiktok.html.gz +0 -0
- package/studio/prerendered/tools/add-captions/twitter-x.html +36 -36
- package/studio/prerendered/tools/add-captions/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/add-captions/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/add-captions/youtube.html +36 -36
- package/studio/prerendered/tools/add-captions/youtube.html.br +0 -0
- package/studio/prerendered/tools/add-captions/youtube.html.gz +0 -0
- package/studio/prerendered/tools/add-captions.html +40 -40
- package/studio/prerendered/tools/add-captions.html.br +0 -0
- package/studio/prerendered/tools/add-captions.html.gz +0 -0
- package/studio/prerendered/tools/auto-cut/linkedin.html +36 -36
- package/studio/prerendered/tools/auto-cut/linkedin.html.br +0 -0
- package/studio/prerendered/tools/auto-cut/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/auto-cut/podcast.html +36 -36
- package/studio/prerendered/tools/auto-cut/podcast.html.br +0 -0
- package/studio/prerendered/tools/auto-cut/podcast.html.gz +0 -0
- package/studio/prerendered/tools/auto-cut/tiktok.html +36 -36
- package/studio/prerendered/tools/auto-cut/tiktok.html.br +0 -0
- package/studio/prerendered/tools/auto-cut/tiktok.html.gz +0 -0
- package/studio/prerendered/tools/auto-cut/youtube.html +36 -36
- package/studio/prerendered/tools/auto-cut/youtube.html.br +0 -0
- package/studio/prerendered/tools/auto-cut/youtube.html.gz +0 -0
- package/studio/prerendered/tools/auto-cut.html +40 -40
- package/studio/prerendered/tools/auto-cut.html.br +0 -0
- package/studio/prerendered/tools/auto-cut.html.gz +0 -0
- package/studio/prerendered/tools/generate-video/instagram.html +36 -36
- package/studio/prerendered/tools/generate-video/instagram.html.br +0 -0
- package/studio/prerendered/tools/generate-video/instagram.html.gz +0 -0
- package/studio/prerendered/tools/generate-video/tiktok.html +36 -36
- package/studio/prerendered/tools/generate-video/tiktok.html.br +0 -0
- package/studio/prerendered/tools/generate-video/tiktok.html.gz +0 -0
- package/studio/prerendered/tools/generate-video/twitter-x.html +36 -36
- package/studio/prerendered/tools/generate-video/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/generate-video/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/generate-video/youtube.html +36 -36
- package/studio/prerendered/tools/generate-video/youtube.html.br +0 -0
- package/studio/prerendered/tools/generate-video/youtube.html.gz +0 -0
- package/studio/prerendered/tools/generate-video.html +40 -40
- package/studio/prerendered/tools/generate-video.html.br +0 -0
- package/studio/prerendered/tools/generate-video.html.gz +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/linkedin.html +36 -36
- package/studio/prerendered/tools/laptop-3d-intro/linkedin.html.br +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/saas.html +36 -36
- package/studio/prerendered/tools/laptop-3d-intro/saas.html.br +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/saas.html.gz +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html +36 -36
- package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/youtube.html +36 -36
- package/studio/prerendered/tools/laptop-3d-intro/youtube.html.br +0 -0
- package/studio/prerendered/tools/laptop-3d-intro/youtube.html.gz +0 -0
- package/studio/prerendered/tools/laptop-3d-intro.html +40 -40
- package/studio/prerendered/tools/laptop-3d-intro.html.br +0 -0
- package/studio/prerendered/tools/laptop-3d-intro.html.gz +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/linkedin.html +36 -36
- package/studio/prerendered/tools/screen-webcam-demo/linkedin.html.br +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/saas.html +36 -36
- package/studio/prerendered/tools/screen-webcam-demo/saas.html.br +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/saas.html.gz +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html +36 -36
- package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/youtube.html +36 -36
- package/studio/prerendered/tools/screen-webcam-demo/youtube.html.br +0 -0
- package/studio/prerendered/tools/screen-webcam-demo/youtube.html.gz +0 -0
- package/studio/prerendered/tools/screen-webcam-demo.html +40 -40
- package/studio/prerendered/tools/screen-webcam-demo.html.br +0 -0
- package/studio/prerendered/tools/screen-webcam-demo.html.gz +0 -0
- package/studio/prerendered/tools/screenshot-to-social/facebook.html +36 -36
- package/studio/prerendered/tools/screenshot-to-social/facebook.html.br +0 -0
- package/studio/prerendered/tools/screenshot-to-social/facebook.html.gz +0 -0
- package/studio/prerendered/tools/screenshot-to-social/instagram.html +36 -36
- package/studio/prerendered/tools/screenshot-to-social/instagram.html.br +0 -0
- package/studio/prerendered/tools/screenshot-to-social/instagram.html.gz +0 -0
- package/studio/prerendered/tools/screenshot-to-social/linkedin.html +36 -36
- package/studio/prerendered/tools/screenshot-to-social/linkedin.html.br +0 -0
- package/studio/prerendered/tools/screenshot-to-social/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/screenshot-to-social/twitter-x.html +36 -36
- package/studio/prerendered/tools/screenshot-to-social/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/screenshot-to-social/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/screenshot-to-social.html +40 -40
- package/studio/prerendered/tools/screenshot-to-social.html.br +0 -0
- package/studio/prerendered/tools/screenshot-to-social.html.gz +0 -0
- package/studio/prerendered/tools/translate-video/instagram.html +36 -36
- package/studio/prerendered/tools/translate-video/instagram.html.br +0 -0
- package/studio/prerendered/tools/translate-video/instagram.html.gz +0 -0
- package/studio/prerendered/tools/translate-video/linkedin.html +36 -36
- package/studio/prerendered/tools/translate-video/linkedin.html.br +0 -0
- package/studio/prerendered/tools/translate-video/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/translate-video/tiktok.html +36 -36
- package/studio/prerendered/tools/translate-video/tiktok.html.br +0 -0
- package/studio/prerendered/tools/translate-video/tiktok.html.gz +0 -0
- package/studio/prerendered/tools/translate-video/youtube.html +36 -36
- package/studio/prerendered/tools/translate-video/youtube.html.br +0 -0
- package/studio/prerendered/tools/translate-video/youtube.html.gz +0 -0
- package/studio/prerendered/tools/translate-video.html +40 -40
- package/studio/prerendered/tools/translate-video.html.br +0 -0
- package/studio/prerendered/tools/translate-video.html.gz +0 -0
- package/studio/prerendered/tools/video-beautifier.html +40 -40
- package/studio/prerendered/tools/video-beautifier.html.br +0 -0
- package/studio/prerendered/tools/video-beautifier.html.gz +0 -0
- package/studio/prerendered/tools/video-to-browser/linkedin.html +36 -36
- package/studio/prerendered/tools/video-to-browser/linkedin.html.br +0 -0
- package/studio/prerendered/tools/video-to-browser/linkedin.html.gz +0 -0
- package/studio/prerendered/tools/video-to-browser/saas.html +36 -36
- package/studio/prerendered/tools/video-to-browser/saas.html.br +0 -0
- package/studio/prerendered/tools/video-to-browser/saas.html.gz +0 -0
- package/studio/prerendered/tools/video-to-browser/twitter-x.html +36 -36
- package/studio/prerendered/tools/video-to-browser/twitter-x.html.br +0 -0
- package/studio/prerendered/tools/video-to-browser/twitter-x.html.gz +0 -0
- package/studio/prerendered/tools/video-to-browser/youtube.html +36 -36
- package/studio/prerendered/tools/video-to-browser/youtube.html.br +0 -0
- package/studio/prerendered/tools/video-to-browser/youtube.html.gz +0 -0
- package/studio/prerendered/tools/video-to-browser.html +40 -40
- package/studio/prerendered/tools/video-to-browser.html.br +0 -0
- package/studio/prerendered/tools/video-to-browser.html.gz +0 -0
- package/studio/prerendered/tools/video-to-phone.html +40 -40
- package/studio/prerendered/tools/video-to-phone.html.br +0 -0
- package/studio/prerendered/tools/video-to-phone.html.gz +0 -0
- package/studio/prerendered/vs/canva.html +36 -36
- package/studio/prerendered/vs/canva.html.br +0 -0
- package/studio/prerendered/vs/canva.html.gz +0 -0
- package/studio/prerendered/vs/captions-ai.html +36 -36
- package/studio/prerendered/vs/captions-ai.html.br +0 -0
- package/studio/prerendered/vs/captions-ai.html.gz +0 -0
- package/studio/prerendered/vs/clipchamp.html +36 -36
- package/studio/prerendered/vs/clipchamp.html.br +0 -0
- package/studio/prerendered/vs/clipchamp.html.gz +0 -0
- package/studio/prerendered/vs/descript.html +36 -36
- package/studio/prerendered/vs/descript.html.br +0 -0
- package/studio/prerendered/vs/descript.html.gz +0 -0
- package/studio/prerendered/vs/kapwing.html +36 -36
- package/studio/prerendered/vs/kapwing.html.br +0 -0
- package/studio/prerendered/vs/kapwing.html.gz +0 -0
- package/studio/prerendered/vs/runway.html +36 -36
- package/studio/prerendered/vs/runway.html.br +0 -0
- package/studio/prerendered/vs/runway.html.gz +0 -0
- package/studio/prerendered/vs/submagic.html +36 -36
- package/studio/prerendered/vs/submagic.html.br +0 -0
- package/studio/prerendered/vs/submagic.html.gz +0 -0
- package/studio/prerendered/vs/veed.html +36 -36
- package/studio/prerendered/vs/veed.html.br +0 -0
- package/studio/prerendered/vs/veed.html.gz +0 -0
- package/studio/server/chunks/0-DrCbOn_U.js +32 -0
- package/studio/server/chunks/0-DrCbOn_U.js.map +1 -0
- package/studio/server/chunks/1-BHuYqaGp.js +9 -0
- package/studio/server/chunks/1-BHuYqaGp.js.map +1 -0
- package/studio/server/chunks/11-DcT9eofp.js +9 -0
- package/studio/server/chunks/11-DcT9eofp.js.map +1 -0
- package/studio/server/chunks/12-Br9qZR1c.js +9 -0
- package/studio/server/chunks/12-Br9qZR1c.js.map +1 -0
- package/studio/server/chunks/13-CXLQr4dU.js +59 -0
- package/studio/server/chunks/13-CXLQr4dU.js.map +1 -0
- package/studio/server/chunks/14-BcReNzGU.js +60 -0
- package/studio/server/chunks/14-BcReNzGU.js.map +1 -0
- package/studio/server/chunks/15-BR8pxyN_.js +9 -0
- package/studio/server/chunks/15-BR8pxyN_.js.map +1 -0
- package/studio/server/chunks/16-B-CvhSUs.js +72 -0
- package/studio/server/chunks/16-B-CvhSUs.js.map +1 -0
- package/studio/server/chunks/17-BLykPSq7.js +9 -0
- package/studio/server/chunks/17-BLykPSq7.js.map +1 -0
- package/studio/server/chunks/18-C7DjU0t5.js +9 -0
- package/studio/server/chunks/18-C7DjU0t5.js.map +1 -0
- package/studio/server/chunks/19-Cq0Qyivk.js +9 -0
- package/studio/server/chunks/19-Cq0Qyivk.js.map +1 -0
- package/studio/server/chunks/20-CRk87lvq.js +139 -0
- package/studio/server/chunks/20-CRk87lvq.js.map +1 -0
- package/studio/server/chunks/3-ChhTSXfT.js +9 -0
- package/studio/server/chunks/3-ChhTSXfT.js.map +1 -0
- package/studio/server/chunks/4-B9vyTnuL.js +9 -0
- package/studio/server/chunks/4-B9vyTnuL.js.map +1 -0
- package/studio/server/chunks/42-DOBpFqDR.js +56 -0
- package/studio/server/chunks/42-DOBpFqDR.js.map +1 -0
- package/studio/server/chunks/43-DRw-2-GS.js +9 -0
- package/studio/server/chunks/43-DRw-2-GS.js.map +1 -0
- package/studio/server/chunks/44-DLxClkX_.js +9 -0
- package/studio/server/chunks/44-DLxClkX_.js.map +1 -0
- package/studio/server/chunks/45-wVQw8tBx.js +115 -0
- package/studio/server/chunks/45-wVQw8tBx.js.map +1 -0
- package/studio/server/chunks/49-CSfj1Xtu.js +14 -0
- package/studio/server/chunks/49-CSfj1Xtu.js.map +1 -0
- package/studio/server/chunks/5-8UA2oVVT.js +9 -0
- package/studio/server/chunks/5-8UA2oVVT.js.map +1 -0
- package/studio/server/chunks/7-judL9OYr.js +215 -0
- package/studio/server/chunks/7-judL9OYr.js.map +1 -0
- package/studio/server/chunks/_error.svelte-C3N4FEB2.js +98 -0
- package/studio/server/chunks/_error.svelte-C3N4FEB2.js.map +1 -0
- package/studio/server/chunks/_error.svelte-C7sYQCnM.js +98 -0
- package/studio/server/chunks/_error.svelte-C7sYQCnM.js.map +1 -0
- package/studio/server/chunks/_layout.svelte-B7vWmRFJ.js +64 -0
- package/studio/server/chunks/_layout.svelte-B7vWmRFJ.js.map +1 -0
- package/studio/server/chunks/_layout.svelte-BIVwEY2g.js +1054 -0
- package/studio/server/chunks/_layout.svelte-BIVwEY2g.js.map +1 -0
- package/studio/server/chunks/_layout.svelte-CDrHT5wt.js +400 -0
- package/studio/server/chunks/_layout.svelte-CDrHT5wt.js.map +1 -0
- package/studio/server/chunks/_layout.svelte-DAYtUucm.js +64 -0
- package/studio/server/chunks/_layout.svelte-DAYtUucm.js.map +1 -0
- package/studio/server/chunks/_page.svelte-B1cMW63M.js +79 -0
- package/studio/server/chunks/_page.svelte-B1cMW63M.js.map +1 -0
- package/studio/server/chunks/_page.svelte-BL2j2QYJ.js +192 -0
- package/studio/server/chunks/_page.svelte-BL2j2QYJ.js.map +1 -0
- package/studio/server/chunks/_page.svelte-BiTflcHr.js +111 -0
- package/studio/server/chunks/_page.svelte-BiTflcHr.js.map +1 -0
- package/studio/server/chunks/_page.svelte-BwEzxkCN.js +418 -0
- package/studio/server/chunks/_page.svelte-BwEzxkCN.js.map +1 -0
- package/studio/server/chunks/_page.svelte-ByzdoeDB.js +11350 -0
- package/studio/server/chunks/_page.svelte-ByzdoeDB.js.map +1 -0
- package/studio/server/chunks/_page.svelte-CSU5TGt6.js +1732 -0
- package/studio/server/chunks/_page.svelte-CSU5TGt6.js.map +1 -0
- package/studio/server/chunks/_page.svelte-Ch08b7on.js +256 -0
- package/studio/server/chunks/_page.svelte-Ch08b7on.js.map +1 -0
- package/studio/server/chunks/_page.svelte-CyAzKzS1.js +506 -0
- package/studio/server/chunks/_page.svelte-CyAzKzS1.js.map +1 -0
- package/studio/server/chunks/_page.svelte-D3NFENjP.js +113 -0
- package/studio/server/chunks/_page.svelte-D3NFENjP.js.map +1 -0
- package/studio/server/chunks/_page.svelte-DoI4FMeA.js +319 -0
- package/studio/server/chunks/_page.svelte-DoI4FMeA.js.map +1 -0
- package/studio/server/chunks/_page.svelte-az4tVjJ_.js +1021 -0
- package/studio/server/chunks/_page.svelte-az4tVjJ_.js.map +1 -0
- package/studio/server/chunks/_page.svelte-czU-SjNZ.js +160 -0
- package/studio/server/chunks/_page.svelte-czU-SjNZ.js.map +1 -0
- package/studio/server/chunks/_server.ts-BMJ-08P_.js +34 -0
- package/studio/server/chunks/_server.ts-BMJ-08P_.js.map +1 -0
- package/studio/server/chunks/_server.ts-BsgeMvN0.js +722 -0
- package/studio/server/chunks/_server.ts-BsgeMvN0.js.map +1 -0
- package/studio/server/chunks/_server.ts-ByVY8xND.js +41 -0
- package/studio/server/chunks/_server.ts-ByVY8xND.js.map +1 -0
- package/studio/server/chunks/_server.ts-CA1HxfdZ.js +58 -0
- package/studio/server/chunks/_server.ts-CA1HxfdZ.js.map +1 -0
- package/studio/server/chunks/_server.ts-CBlNBm5s.js +70 -0
- package/studio/server/chunks/_server.ts-CBlNBm5s.js.map +1 -0
- package/studio/server/chunks/_server.ts-CGi39j79.js +232 -0
- package/studio/server/chunks/_server.ts-CGi39j79.js.map +1 -0
- package/studio/server/chunks/_server.ts-CLHP8Zrh.js +109 -0
- package/studio/server/chunks/_server.ts-CLHP8Zrh.js.map +1 -0
- package/studio/server/chunks/_server.ts-CNJZSPm5.js +60 -0
- package/studio/server/chunks/_server.ts-CNJZSPm5.js.map +1 -0
- package/studio/server/chunks/_server.ts-Cd1TmSSo.js +303 -0
- package/studio/server/chunks/_server.ts-Cd1TmSSo.js.map +1 -0
- package/studio/server/chunks/_server.ts-CkVDrj32.js +79 -0
- package/studio/server/chunks/_server.ts-CkVDrj32.js.map +1 -0
- package/studio/server/chunks/_server.ts-Ckj93zLL.js +49 -0
- package/studio/server/chunks/_server.ts-Ckj93zLL.js.map +1 -0
- package/studio/server/chunks/_server.ts-CriU7HwI.js +22 -0
- package/studio/server/chunks/_server.ts-CriU7HwI.js.map +1 -0
- package/studio/server/chunks/_server.ts-D1inEYb_.js +87 -0
- package/studio/server/chunks/_server.ts-D1inEYb_.js.map +1 -0
- package/studio/server/chunks/_server.ts-DA3zdbWI.js +48 -0
- package/studio/server/chunks/_server.ts-DA3zdbWI.js.map +1 -0
- package/studio/server/chunks/_server.ts-D_YUIRqi.js +87 -0
- package/studio/server/chunks/_server.ts-D_YUIRqi.js.map +1 -0
- package/studio/server/chunks/_server.ts-D_fEYx6c.js +158 -0
- package/studio/server/chunks/_server.ts-D_fEYx6c.js.map +1 -0
- package/studio/server/chunks/_server.ts-Da8qrASe.js +118 -0
- package/studio/server/chunks/_server.ts-Da8qrASe.js.map +1 -0
- package/studio/server/chunks/_server.ts-Dcr0g4Vq.js +52 -0
- package/studio/server/chunks/_server.ts-Dcr0g4Vq.js.map +1 -0
- package/studio/server/chunks/_server.ts-DnGq-qro.js +68 -0
- package/studio/server/chunks/_server.ts-DnGq-qro.js.map +1 -0
- package/studio/server/chunks/_server.ts-Do6qk473.js +56 -0
- package/studio/server/chunks/_server.ts-Do6qk473.js.map +1 -0
- package/studio/server/chunks/_server.ts-DsTz4hAe.js +96 -0
- package/studio/server/chunks/_server.ts-DsTz4hAe.js.map +1 -0
- package/studio/server/chunks/_server.ts-DxwlzaT7.js +122 -0
- package/studio/server/chunks/_server.ts-DxwlzaT7.js.map +1 -0
- package/studio/server/chunks/_server.ts-KHs6y_Wc.js +760 -0
- package/studio/server/chunks/_server.ts-KHs6y_Wc.js.map +1 -0
- package/studio/server/chunks/_server.ts-_eJk5Eiu.js +91 -0
- package/studio/server/chunks/_server.ts-_eJk5Eiu.js.map +1 -0
- package/studio/server/chunks/adapter-XtQVoo_l.js +91 -0
- package/studio/server/chunks/adapter-XtQVoo_l.js.map +1 -0
- package/studio/server/chunks/admin.remote-C-MAmmW-.js +105 -0
- package/studio/server/chunks/admin.remote-C-MAmmW-.js.map +1 -0
- package/studio/server/chunks/ai-access-Cm_VC4xc.js +299 -0
- package/studio/server/chunks/ai-access-Cm_VC4xc.js.map +1 -0
- package/studio/server/chunks/ai.remote-waQUpsLn.js +37 -0
- package/studio/server/chunks/ai.remote-waQUpsLn.js.map +1 -0
- package/studio/server/chunks/alert-dialog-description-B4VfiJRT.js +578 -0
- package/studio/server/chunks/alert-dialog-description-B4VfiJRT.js.map +1 -0
- package/studio/server/chunks/animation-sOd5R1cE.js +2912 -0
- package/studio/server/chunks/animation-sOd5R1cE.js.map +1 -0
- package/studio/server/chunks/api-Do--xZ9M.js +434 -0
- package/studio/server/chunks/api-Do--xZ9M.js.map +1 -0
- package/studio/server/chunks/api-keys-CcmgUWTH.js +117 -0
- package/studio/server/chunks/api-keys-CcmgUWTH.js.map +1 -0
- package/studio/server/chunks/api-keys.remote-JFKHDaD1.js +88 -0
- package/studio/server/chunks/api-keys.remote-JFKHDaD1.js.map +1 -0
- package/studio/server/chunks/app-header-Ck_YeZr5.js +96 -0
- package/studio/server/chunks/app-header-Ck_YeZr5.js.map +1 -0
- package/studio/server/chunks/assets.remote-CX2FvnlZ.js +113 -0
- package/studio/server/chunks/assets.remote-CX2FvnlZ.js.map +1 -0
- package/studio/server/chunks/attribute-protocol-DQ-1julf.js +151 -0
- package/studio/server/chunks/attribute-protocol-DQ-1julf.js.map +1 -0
- package/studio/server/chunks/auth-mx1dhuCn.js +22472 -0
- package/studio/server/chunks/auth-mx1dhuCn.js.map +1 -0
- package/studio/server/chunks/auth.remote-CN4se14K.js +351 -0
- package/studio/server/chunks/auth.remote-CN4se14K.js.map +1 -0
- package/studio/server/chunks/base-qepI6vHK.js +210 -0
- package/studio/server/chunks/base-qepI6vHK.js.map +1 -0
- package/studio/server/chunks/bun-sqlite-dialect-C8OaCWSL-BNevlRD6.js +197 -0
- package/studio/server/chunks/bun-sqlite-dialect-C8OaCWSL-BNevlRD6.js.map +1 -0
- package/studio/server/chunks/captions.remote-Pp1JQnfB.js +184 -0
- package/studio/server/chunks/captions.remote-Pp1JQnfB.js.map +1 -0
- package/studio/server/chunks/client2-DNrSxzuu.js +66 -0
- package/studio/server/chunks/client2-DNrSxzuu.js.map +1 -0
- package/studio/server/chunks/d1-sqlite-dialect-sYHNqBte-D67tOo2R.js +160 -0
- package/studio/server/chunks/d1-sqlite-dialect-sYHNqBte-D67tOo2R.js.map +1 -0
- package/studio/server/chunks/design-knowledge-D2NUeAAo.js +334 -0
- package/studio/server/chunks/design-knowledge-D2NUeAAo.js.map +1 -0
- package/studio/server/chunks/desktop-bootstrap-IVK9LbDz.js +67 -0
- package/studio/server/chunks/desktop-bootstrap-IVK9LbDz.js.map +1 -0
- package/studio/server/chunks/dubbing.remote-CZkC5M_a.js +153 -0
- package/studio/server/chunks/dubbing.remote-CZkC5M_a.js.map +1 -0
- package/studio/server/chunks/editor.svelte-Dd-2ZfWO.js +21027 -0
- package/studio/server/chunks/editor.svelte-Dd-2ZfWO.js.map +1 -0
- package/studio/server/chunks/env-AoZ3P0fg.js +92 -0
- package/studio/server/chunks/env-AoZ3P0fg.js.map +1 -0
- package/studio/server/chunks/extract-audio.remote-BKBT80-g.js +95 -0
- package/studio/server/chunks/extract-audio.remote-BKBT80-g.js.map +1 -0
- package/studio/server/chunks/feedback.remote-DveIB_5_.js +49 -0
- package/studio/server/chunks/feedback.remote-DveIB_5_.js.map +1 -0
- package/studio/server/chunks/find-stock-image-DDfrK_rA.js +709 -0
- package/studio/server/chunks/find-stock-image-DDfrK_rA.js.map +1 -0
- package/studio/server/chunks/fs-project-BxA38YDy.js +134 -0
- package/studio/server/chunks/fs-project-BxA38YDy.js.map +1 -0
- package/studio/server/chunks/hooks.server-DcXHGCUQ.js +309 -0
- package/studio/server/chunks/hooks.server-DcXHGCUQ.js.map +1 -0
- package/studio/server/chunks/html-parser-t3Ydy25K.js +8516 -0
- package/studio/server/chunks/html-parser-t3Ydy25K.js.map +1 -0
- package/studio/server/chunks/html-writer-D8dOWi0D.js +242 -0
- package/studio/server/chunks/html-writer-D8dOWi0D.js.map +1 -0
- package/studio/server/chunks/image-generation.remote-GIIJ69ro.js +140 -0
- package/studio/server/chunks/image-generation.remote-GIIJ69ro.js.map +1 -0
- package/studio/server/chunks/index-Bz4Ugmn7.js +4578 -0
- package/studio/server/chunks/index-Bz4Ugmn7.js.map +1 -0
- package/studio/server/chunks/index12-CP2lVQd1.js +265 -0
- package/studio/server/chunks/index12-CP2lVQd1.js.map +1 -0
- package/studio/server/chunks/index2-BvzNGjoj.js +23 -0
- package/studio/server/chunks/index2-BvzNGjoj.js.map +1 -0
- package/studio/server/chunks/index3-B3arCRqx.js +8 -0
- package/studio/server/chunks/index3-B3arCRqx.js.map +1 -0
- package/studio/server/chunks/index4-ByfR32IV.js +48 -0
- package/studio/server/chunks/index4-ByfR32IV.js.map +1 -0
- package/studio/server/chunks/index6-BwFC1GDh.js +239 -0
- package/studio/server/chunks/index6-BwFC1GDh.js.map +1 -0
- package/studio/server/chunks/index8-Dt6GB1aJ.js +44 -0
- package/studio/server/chunks/index8-Dt6GB1aJ.js.map +1 -0
- package/studio/server/chunks/layout-template-DRFNZLVI.js +1371 -0
- package/studio/server/chunks/layout-template-DRFNZLVI.js.map +1 -0
- package/studio/server/chunks/lummi-Cu3Js7rz.js +189 -0
- package/studio/server/chunks/lummi-Cu3Js7rz.js.map +1 -0
- package/studio/server/chunks/lummi.remote-BMN4XopC.js +44 -0
- package/studio/server/chunks/lummi.remote-BMN4XopC.js.map +1 -0
- package/studio/server/chunks/media-analysis-Ch1fmDUt.js +229 -0
- package/studio/server/chunks/media-analysis-Ch1fmDUt.js.map +1 -0
- package/studio/server/chunks/media-analysis.remote-yI6aCZ78.js +63 -0
- package/studio/server/chunks/media-analysis.remote-yI6aCZ78.js.map +1 -0
- package/studio/server/chunks/media-v9Bq2kuR.js +157 -0
- package/studio/server/chunks/media-v9Bq2kuR.js.map +1 -0
- package/studio/server/chunks/middleware-D0o6fOUG.js +72 -0
- package/studio/server/chunks/middleware-D0o6fOUG.js.map +1 -0
- package/studio/server/chunks/mutations-CkUdOAoa.js +551 -0
- package/studio/server/chunks/mutations-CkUdOAoa.js.map +1 -0
- package/studio/server/chunks/node-sqlite-dialect-Di8ZYXD0.js +197 -0
- package/studio/server/chunks/node-sqlite-dialect-Di8ZYXD0.js.map +1 -0
- package/studio/server/chunks/onboarding-email-BvuCl7dz.js +311 -0
- package/studio/server/chunks/onboarding-email-BvuCl7dz.js.map +1 -0
- package/studio/server/chunks/optional-services-BGRY7tmz.js +45 -0
- package/studio/server/chunks/optional-services-BGRY7tmz.js.map +1 -0
- package/studio/server/chunks/pagination-Q7FOr3rO.js +159 -0
- package/studio/server/chunks/pagination-Q7FOr3rO.js.map +1 -0
- package/studio/server/chunks/posthog-kZp2zKvY.js +11 -0
- package/studio/server/chunks/posthog-kZp2zKvY.js.map +1 -0
- package/studio/server/chunks/presets-CU-ej2J9.js +369 -0
- package/studio/server/chunks/presets-CU-ej2J9.js.map +1 -0
- package/studio/server/chunks/project-layer-yZ50OnjM.js +28 -0
- package/studio/server/chunks/project-layer-yZ50OnjM.js.map +1 -0
- package/studio/server/chunks/projects.remote-ipNnrM1d.js +297 -0
- package/studio/server/chunks/projects.remote-ipNnrM1d.js.map +1 -0
- package/studio/server/chunks/queue-init-C_8i6pyv.js +38 -0
- package/studio/server/chunks/queue-init-C_8i6pyv.js.map +1 -0
- package/studio/server/chunks/registry-z2-pQ1Jw.js +18 -0
- package/studio/server/chunks/registry-z2-pQ1Jw.js.map +1 -0
- package/studio/server/chunks/registry2-BhwPna1F.js +4851 -0
- package/studio/server/chunks/registry2-BhwPna1F.js.map +1 -0
- package/studio/server/chunks/remote-148gj0t-CLfgEUwr.js +15 -0
- package/studio/server/chunks/remote-148gj0t-CLfgEUwr.js.map +1 -0
- package/studio/server/chunks/remote-1afl6ud-BYqN02Le.js +18 -0
- package/studio/server/chunks/remote-1afl6ud-BYqN02Le.js.map +1 -0
- package/studio/server/chunks/remote-1cihryv-BxHbFmSt.js +34 -0
- package/studio/server/chunks/remote-1cihryv-BxHbFmSt.js.map +1 -0
- package/studio/server/chunks/remote-1ez0sx-DKZ6ubnB.js +34 -0
- package/studio/server/chunks/remote-1ez0sx-DKZ6ubnB.js.map +1 -0
- package/studio/server/chunks/remote-1mi3j6d-4ClkS6sd.js +21 -0
- package/studio/server/chunks/remote-1mi3j6d-4ClkS6sd.js.map +1 -0
- package/studio/server/chunks/remote-1rjk8jv-CF94t93Y.js +22 -0
- package/studio/server/chunks/remote-1rjk8jv-CF94t93Y.js.map +1 -0
- package/studio/server/chunks/remote-1web5fy-Bw0AJHlD.js +35 -0
- package/studio/server/chunks/remote-1web5fy-Bw0AJHlD.js.map +1 -0
- package/studio/server/chunks/remote-5mu9ty-DKqUPY8s.js +31 -0
- package/studio/server/chunks/remote-5mu9ty-DKqUPY8s.js.map +1 -0
- package/studio/server/chunks/remote-aelvq6-C3B2AyF6.js +26 -0
- package/studio/server/chunks/remote-aelvq6-C3B2AyF6.js.map +1 -0
- package/studio/server/chunks/remote-em2k3w-Z00J8-Q9.js +25 -0
- package/studio/server/chunks/remote-em2k3w-Z00J8-Q9.js.map +1 -0
- package/studio/server/chunks/remote-gezfls-CbSTOGmI.js +21 -0
- package/studio/server/chunks/remote-gezfls-CbSTOGmI.js.map +1 -0
- package/studio/server/chunks/remote-lv3p1w-BcKTNydX.js +15 -0
- package/studio/server/chunks/remote-lv3p1w-BcKTNydX.js.map +1 -0
- package/studio/server/chunks/remote-ssr7vi-rhkV3R21.js +33 -0
- package/studio/server/chunks/remote-ssr7vi-rhkV3R21.js.map +1 -0
- package/studio/server/chunks/remote-sy19x7-BZ5ceu8t.js +29 -0
- package/studio/server/chunks/remote-sy19x7-BZ5ceu8t.js.map +1 -0
- package/studio/server/chunks/remote-tisyb0-ChggPTNB.js +31 -0
- package/studio/server/chunks/remote-tisyb0-ChggPTNB.js.map +1 -0
- package/studio/server/chunks/remote-xj8myv-DruftVtE.js +31 -0
- package/studio/server/chunks/remote-xj8myv-DruftVtE.js.map +1 -0
- package/studio/server/chunks/remote-z7lvth-D_9BqgW_.js +23 -0
- package/studio/server/chunks/remote-z7lvth-D_9BqgW_.js.map +1 -0
- package/studio/server/chunks/remote-zjib3m-DnAqo6l6.js +24 -0
- package/studio/server/chunks/remote-zjib3m-DnAqo6l6.js.map +1 -0
- package/studio/server/chunks/render-api-DtG3ftN1.js +240 -0
- package/studio/server/chunks/render-api-DtG3ftN1.js.map +1 -0
- package/studio/server/chunks/scrub-xyz.svelte_svelte_type_style_lang-D5bzSlf5.js +4752 -0
- package/studio/server/chunks/scrub-xyz.svelte_svelte_type_style_lang-D5bzSlf5.js.map +1 -0
- package/studio/server/chunks/stock-image.remote-Cn_Dh7Ok.js +87 -0
- package/studio/server/chunks/stock-image.remote-Cn_Dh7Ok.js.map +1 -0
- package/studio/server/chunks/subscription-BC4gCTG6.js +138 -0
- package/studio/server/chunks/subscription-BC4gCTG6.js.map +1 -0
- package/studio/server/chunks/subscription-limits-kr9leRdz.js +114 -0
- package/studio/server/chunks/subscription-limits-kr9leRdz.js.map +1 -0
- package/studio/server/chunks/template-usage.remote-DL-DKmuu.js +53 -0
- package/studio/server/chunks/template-usage.remote-DL-DKmuu.js.map +1 -0
- package/studio/server/chunks/thumbnail-queue-D4GYcvrD.js +148 -0
- package/studio/server/chunks/thumbnail-queue-D4GYcvrD.js.map +1 -0
- package/studio/server/chunks/tooltip-provider-Y8-pmG0D.js +30 -0
- package/studio/server/chunks/tooltip-provider-Y8-pmG0D.js.map +1 -0
- package/studio/server/chunks/tooltip.svelte-CMQZQZ-r.js +658 -0
- package/studio/server/chunks/tooltip.svelte-CMQZQZ-r.js.map +1 -0
- package/studio/server/chunks/tts-voices-B9J2ZzGy.js +32 -0
- package/studio/server/chunks/tts-voices-B9J2ZzGy.js.map +1 -0
- package/studio/server/chunks/tts.remote-BERCmX-n.js +194 -0
- package/studio/server/chunks/tts.remote-BERCmX-n.js.map +1 -0
- package/studio/server/chunks/ui.svelte-DSRn4LdL.js +88 -0
- package/studio/server/chunks/ui.svelte-DSRn4LdL.js.map +1 -0
- package/studio/server/chunks/upload-service-Boi3a_IC.js +220 -0
- package/studio/server/chunks/upload-service-Boi3a_IC.js.map +1 -0
- package/studio/server/chunks/upload.remote-Bhhj6ZvH.js +131 -0
- package/studio/server/chunks/upload.remote-Bhhj6ZvH.js.map +1 -0
- package/studio/server/chunks/video-generation.remote-DkDf_BYp.js +197 -0
- package/studio/server/chunks/video-generation.remote-DkDf_BYp.js.map +1 -0
- package/studio/server/chunks/video-renderer-DJUVOoRL.js +412 -0
- package/studio/server/chunks/video-renderer-DJUVOoRL.js.map +1 -0
- package/studio/server/chunks/watermark-u8k4sZA3.js +164 -0
- package/studio/server/chunks/watermark-u8k4sZA3.js.map +1 -0
- package/studio/server/index.js +1 -1
- package/studio/server/manifest.js +64 -62
- package/studio/server/manifest.js.map +1 -1
- package/studio/client/_app/immutable/assets/0.BKuIH3jk.css +0 -1
- package/studio/client/_app/immutable/assets/0.BKuIH3jk.css.br +0 -0
- package/studio/client/_app/immutable/assets/0.BKuIH3jk.css.gz +0 -0
- package/studio/client/_app/immutable/assets/editor._QrWwLKb.css +0 -1
- package/studio/client/_app/immutable/assets/editor._QrWwLKb.css.br +0 -2
- package/studio/client/_app/immutable/assets/editor._QrWwLKb.css.gz +0 -0
- package/studio/client/_app/immutable/chunks/-w8AgfGk.js +0 -1
- package/studio/client/_app/immutable/chunks/-w8AgfGk.js.br +0 -0
- package/studio/client/_app/immutable/chunks/-w8AgfGk.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/0LXoSuAq.js +0 -1
- package/studio/client/_app/immutable/chunks/0LXoSuAq.js.br +0 -0
- package/studio/client/_app/immutable/chunks/0LXoSuAq.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/0hf0C23S.js +0 -1
- package/studio/client/_app/immutable/chunks/0hf0C23S.js.br +0 -0
- package/studio/client/_app/immutable/chunks/0hf0C23S.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/52GXB-Lx.js +0 -1
- package/studio/client/_app/immutable/chunks/52GXB-Lx.js.br +0 -0
- package/studio/client/_app/immutable/chunks/52GXB-Lx.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/B6hmyilk.js +0 -1
- package/studio/client/_app/immutable/chunks/B6hmyilk.js.br +0 -0
- package/studio/client/_app/immutable/chunks/B6hmyilk.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BAhypDJI.js +0 -1
- package/studio/client/_app/immutable/chunks/BAhypDJI.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BAhypDJI.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BSBe_oem.js +0 -16
- package/studio/client/_app/immutable/chunks/BSBe_oem.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BSBe_oem.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BSPxtRj6.js +0 -1
- package/studio/client/_app/immutable/chunks/BSPxtRj6.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BSPxtRj6.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BTkRM4Uk.js +0 -1
- package/studio/client/_app/immutable/chunks/BTkRM4Uk.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BTkRM4Uk.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BY7NfAld.js +0 -4
- package/studio/client/_app/immutable/chunks/BY7NfAld.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BY7NfAld.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BcFepoRa.js +0 -730
- package/studio/client/_app/immutable/chunks/BcFepoRa.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BcFepoRa.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/BvzaEl32.js +0 -1
- package/studio/client/_app/immutable/chunks/BvzaEl32.js.br +0 -0
- package/studio/client/_app/immutable/chunks/BvzaEl32.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Bxcr6TQy.js +0 -99
- package/studio/client/_app/immutable/chunks/Bxcr6TQy.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Bxcr6TQy.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C0K_KauH.js +0 -1
- package/studio/client/_app/immutable/chunks/C0K_KauH.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C0K_KauH.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C3zSaQMD.js +0 -1
- package/studio/client/_app/immutable/chunks/C3zSaQMD.js.br +0 -2
- package/studio/client/_app/immutable/chunks/C3zSaQMD.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C6BSxyDb.js +0 -1
- package/studio/client/_app/immutable/chunks/C6BSxyDb.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C6BSxyDb.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C8FzHBqQ.js +0 -1
- package/studio/client/_app/immutable/chunks/C8FzHBqQ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C8FzHBqQ.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CC8c0epL.js +0 -4
- package/studio/client/_app/immutable/chunks/CC8c0epL.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CC8c0epL.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CQdOmqus.js +0 -1
- package/studio/client/_app/immutable/chunks/CQdOmqus.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CQdOmqus.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C_JEyoc9.js +0 -1
- package/studio/client/_app/immutable/chunks/C_JEyoc9.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C_JEyoc9.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/C_glBBzR.js +0 -2
- package/studio/client/_app/immutable/chunks/C_glBBzR.js.br +0 -0
- package/studio/client/_app/immutable/chunks/C_glBBzR.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CazEfIaP.js +0 -1
- package/studio/client/_app/immutable/chunks/CazEfIaP.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CazEfIaP.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CiDOuEjR.js +0 -1
- package/studio/client/_app/immutable/chunks/CiDOuEjR.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CiDOuEjR.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Cnoy1Nsk.js +0 -1
- package/studio/client/_app/immutable/chunks/Cnoy1Nsk.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Cnoy1Nsk.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/CrHjC-CS.js +0 -1
- package/studio/client/_app/immutable/chunks/CrHjC-CS.js.br +0 -0
- package/studio/client/_app/immutable/chunks/CrHjC-CS.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/D-G_aVDe.js +0 -1
- package/studio/client/_app/immutable/chunks/D-G_aVDe.js.br +0 -0
- package/studio/client/_app/immutable/chunks/D-G_aVDe.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DK-xvsKr.js +0 -1
- package/studio/client/_app/immutable/chunks/DK-xvsKr.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DK-xvsKr.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DKwvwQkU.js +0 -1
- package/studio/client/_app/immutable/chunks/DKwvwQkU.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DKwvwQkU.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DRDQO7lT.js +0 -1
- package/studio/client/_app/immutable/chunks/DRDQO7lT.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DRDQO7lT.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DTcslyJn.js +0 -1
- package/studio/client/_app/immutable/chunks/DTcslyJn.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DTcslyJn.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DbaIpQMW.js +0 -512
- package/studio/client/_app/immutable/chunks/DbaIpQMW.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DbaIpQMW.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Dhskw98X.js +0 -1
- package/studio/client/_app/immutable/chunks/Dhskw98X.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Dhskw98X.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Dl3gtmRH.js +0 -1
- package/studio/client/_app/immutable/chunks/Dl3gtmRH.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Dl3gtmRH.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Du09UsT_.js +0 -1
- package/studio/client/_app/immutable/chunks/Du09UsT_.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Du09UsT_.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/Duawn2EX.js +0 -1
- package/studio/client/_app/immutable/chunks/Duawn2EX.js.br +0 -0
- package/studio/client/_app/immutable/chunks/Duawn2EX.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DxbwWMuJ.js +0 -1
- package/studio/client/_app/immutable/chunks/DxbwWMuJ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DxbwWMuJ.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/DzMyNXK1.js +0 -5
- package/studio/client/_app/immutable/chunks/DzMyNXK1.js.br +0 -0
- package/studio/client/_app/immutable/chunks/DzMyNXK1.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/K82XSOze.js +0 -1
- package/studio/client/_app/immutable/chunks/K82XSOze.js.br +0 -0
- package/studio/client/_app/immutable/chunks/K82XSOze.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/LegOngm6.js +0 -92
- package/studio/client/_app/immutable/chunks/LegOngm6.js.br +0 -0
- package/studio/client/_app/immutable/chunks/LegOngm6.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/QUVFwVNg.js +0 -1
- package/studio/client/_app/immutable/chunks/QUVFwVNg.js.br +0 -0
- package/studio/client/_app/immutable/chunks/QUVFwVNg.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/UzmbP4fJ.js +0 -1
- package/studio/client/_app/immutable/chunks/UzmbP4fJ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/UzmbP4fJ.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/WVZkyfqK.js +0 -1
- package/studio/client/_app/immutable/chunks/WVZkyfqK.js.br +0 -0
- package/studio/client/_app/immutable/chunks/WVZkyfqK.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/lmiZGmp5.js +0 -1
- package/studio/client/_app/immutable/chunks/lmiZGmp5.js.br +0 -0
- package/studio/client/_app/immutable/chunks/lmiZGmp5.js.gz +0 -0
- package/studio/client/_app/immutable/chunks/t2OI8QCJ.js +0 -2
- package/studio/client/_app/immutable/chunks/t2OI8QCJ.js.br +0 -0
- package/studio/client/_app/immutable/chunks/t2OI8QCJ.js.gz +0 -0
- package/studio/client/_app/immutable/entry/app.ZJxo7olm.js +0 -2
- package/studio/client/_app/immutable/entry/app.ZJxo7olm.js.br +0 -0
- package/studio/client/_app/immutable/entry/app.ZJxo7olm.js.gz +0 -0
- package/studio/client/_app/immutable/entry/start.8QDn_ECL.js +0 -1
- package/studio/client/_app/immutable/entry/start.8QDn_ECL.js.br +0 -0
- package/studio/client/_app/immutable/entry/start.8QDn_ECL.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/0.adNFkwFE.js +0 -2
- package/studio/client/_app/immutable/nodes/0.adNFkwFE.js.br +0 -0
- package/studio/client/_app/immutable/nodes/0.adNFkwFE.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/1.BWNv6Cb_.js +0 -1
- package/studio/client/_app/immutable/nodes/1.BWNv6Cb_.js.br +0 -0
- package/studio/client/_app/immutable/nodes/1.BWNv6Cb_.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/10.CczwW3Jo.js +0 -1
- package/studio/client/_app/immutable/nodes/10.CczwW3Jo.js.br +0 -0
- package/studio/client/_app/immutable/nodes/10.CczwW3Jo.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/11.DLp4Fbp3.js +0 -1
- package/studio/client/_app/immutable/nodes/11.DLp4Fbp3.js.br +0 -0
- package/studio/client/_app/immutable/nodes/11.DLp4Fbp3.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/12.4rh6TzEf.js +0 -2
- package/studio/client/_app/immutable/nodes/12.4rh6TzEf.js.br +0 -0
- package/studio/client/_app/immutable/nodes/12.4rh6TzEf.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/13.Dz4al1DL.js +0 -1
- package/studio/client/_app/immutable/nodes/13.Dz4al1DL.js.br +0 -0
- package/studio/client/_app/immutable/nodes/13.Dz4al1DL.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/14.Bl81Dygj.js +0 -1
- package/studio/client/_app/immutable/nodes/14.Bl81Dygj.js.br +0 -0
- package/studio/client/_app/immutable/nodes/14.Bl81Dygj.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/15.gG909oU9.js +0 -1
- package/studio/client/_app/immutable/nodes/15.gG909oU9.js.br +0 -0
- package/studio/client/_app/immutable/nodes/15.gG909oU9.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/16.7V_UKKuG.js +0 -8
- package/studio/client/_app/immutable/nodes/16.7V_UKKuG.js.br +0 -0
- package/studio/client/_app/immutable/nodes/16.7V_UKKuG.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/17.Cz647w46.js +0 -1
- package/studio/client/_app/immutable/nodes/17.Cz647w46.js.br +0 -0
- package/studio/client/_app/immutable/nodes/17.Cz647w46.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/18.BCZi6A5-.js +0 -1
- package/studio/client/_app/immutable/nodes/18.BCZi6A5-.js.br +0 -0
- package/studio/client/_app/immutable/nodes/18.BCZi6A5-.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/19.DoglPV3k.js +0 -1
- package/studio/client/_app/immutable/nodes/19.DoglPV3k.js.br +0 -0
- package/studio/client/_app/immutable/nodes/19.DoglPV3k.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/20.DGbcSpHq.js +0 -45
- package/studio/client/_app/immutable/nodes/20.DGbcSpHq.js.br +0 -0
- package/studio/client/_app/immutable/nodes/20.DGbcSpHq.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/21.CdVcKzDq.js +0 -16
- package/studio/client/_app/immutable/nodes/21.CdVcKzDq.js.br +0 -0
- package/studio/client/_app/immutable/nodes/21.CdVcKzDq.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/28.lF0IrCqU.js +0 -8
- package/studio/client/_app/immutable/nodes/28.lF0IrCqU.js.br +0 -0
- package/studio/client/_app/immutable/nodes/28.lF0IrCqU.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/3.C1mJzj4n.js +0 -1
- package/studio/client/_app/immutable/nodes/3.C1mJzj4n.js.br +0 -0
- package/studio/client/_app/immutable/nodes/3.C1mJzj4n.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/30.BvTn5fYt.js +0 -26
- package/studio/client/_app/immutable/nodes/30.BvTn5fYt.js.br +0 -0
- package/studio/client/_app/immutable/nodes/30.BvTn5fYt.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/38.CX0Z5dJm.js +0 -1
- package/studio/client/_app/immutable/nodes/38.CX0Z5dJm.js.br +0 -0
- package/studio/client/_app/immutable/nodes/38.CX0Z5dJm.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/39.CRxr2YQ6.js +0 -87
- package/studio/client/_app/immutable/nodes/39.CRxr2YQ6.js.br +0 -0
- package/studio/client/_app/immutable/nodes/39.CRxr2YQ6.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/4.YfreNTfv.js +0 -1
- package/studio/client/_app/immutable/nodes/4.YfreNTfv.js.br +0 -1
- package/studio/client/_app/immutable/nodes/4.YfreNTfv.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/41.JtyATqrM.js +0 -1
- package/studio/client/_app/immutable/nodes/41.JtyATqrM.js.br +0 -0
- package/studio/client/_app/immutable/nodes/41.JtyATqrM.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/42.XO5VZAmI.js +0 -1
- package/studio/client/_app/immutable/nodes/42.XO5VZAmI.js.br +0 -0
- package/studio/client/_app/immutable/nodes/42.XO5VZAmI.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/43.CWpVKGhz.js +0 -1
- package/studio/client/_app/immutable/nodes/43.CWpVKGhz.js.br +0 -0
- package/studio/client/_app/immutable/nodes/43.CWpVKGhz.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/44.DX64rKI7.js +0 -1
- package/studio/client/_app/immutable/nodes/44.DX64rKI7.js.br +0 -0
- package/studio/client/_app/immutable/nodes/44.DX64rKI7.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/45.mLQWUOa5.js +0 -2
- package/studio/client/_app/immutable/nodes/45.mLQWUOa5.js.br +0 -0
- package/studio/client/_app/immutable/nodes/45.mLQWUOa5.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/46.KA353oiQ.js +0 -1
- package/studio/client/_app/immutable/nodes/46.KA353oiQ.js.br +0 -0
- package/studio/client/_app/immutable/nodes/46.KA353oiQ.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/47.D3mABDjY.js +0 -1
- package/studio/client/_app/immutable/nodes/47.D3mABDjY.js.br +0 -0
- package/studio/client/_app/immutable/nodes/47.D3mABDjY.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/48.BwjQpQnt.js +0 -1
- package/studio/client/_app/immutable/nodes/48.BwjQpQnt.js.br +0 -0
- package/studio/client/_app/immutable/nodes/48.BwjQpQnt.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/49.EaoBcCzE.js +0 -7
- package/studio/client/_app/immutable/nodes/49.EaoBcCzE.js.br +0 -0
- package/studio/client/_app/immutable/nodes/49.EaoBcCzE.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/5.YfreNTfv.js +0 -1
- package/studio/client/_app/immutable/nodes/5.YfreNTfv.js.br +0 -1
- package/studio/client/_app/immutable/nodes/5.YfreNTfv.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/7.pzlwJNWY.js +0 -1
- package/studio/client/_app/immutable/nodes/7.pzlwJNWY.js.br +0 -0
- package/studio/client/_app/immutable/nodes/7.pzlwJNWY.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/8.COxVG2uL.js +0 -1
- package/studio/client/_app/immutable/nodes/8.COxVG2uL.js.br +0 -0
- package/studio/client/_app/immutable/nodes/8.COxVG2uL.js.gz +0 -0
- package/studio/client/_app/immutable/nodes/9.DEUtbL1G.js +0 -1
- package/studio/client/_app/immutable/nodes/9.DEUtbL1G.js.br +0 -0
- package/studio/client/_app/immutable/nodes/9.DEUtbL1G.js.gz +0 -0
- package/studio/server/chunks/0-oFoj6xob.js +0 -32
- package/studio/server/chunks/0-oFoj6xob.js.map +0 -1
- package/studio/server/chunks/1-BZOYuQnd.js +0 -9
- package/studio/server/chunks/1-BZOYuQnd.js.map +0 -1
- package/studio/server/chunks/11-BDyz7OWy.js +0 -9
- package/studio/server/chunks/11-BDyz7OWy.js.map +0 -1
- package/studio/server/chunks/12-DCVWOw1E.js +0 -9
- package/studio/server/chunks/12-DCVWOw1E.js.map +0 -1
- package/studio/server/chunks/13-D5eVPcWI.js +0 -59
- package/studio/server/chunks/13-D5eVPcWI.js.map +0 -1
- package/studio/server/chunks/14-DLN4rZiK.js +0 -60
- package/studio/server/chunks/14-DLN4rZiK.js.map +0 -1
- package/studio/server/chunks/15-D3vqObtU.js +0 -9
- package/studio/server/chunks/15-D3vqObtU.js.map +0 -1
- package/studio/server/chunks/16-B80xfxth.js +0 -72
- package/studio/server/chunks/16-B80xfxth.js.map +0 -1
- package/studio/server/chunks/17-BHuReO4a.js +0 -9
- package/studio/server/chunks/17-BHuReO4a.js.map +0 -1
- package/studio/server/chunks/18-wt-l6gKd.js +0 -9
- package/studio/server/chunks/18-wt-l6gKd.js.map +0 -1
- package/studio/server/chunks/19-CM1TK59H.js +0 -9
- package/studio/server/chunks/19-CM1TK59H.js.map +0 -1
- package/studio/server/chunks/20-l1HA1gZm.js +0 -138
- package/studio/server/chunks/20-l1HA1gZm.js.map +0 -1
- package/studio/server/chunks/3-CzCasqaG.js +0 -9
- package/studio/server/chunks/3-CzCasqaG.js.map +0 -1
- package/studio/server/chunks/4-CI_t25RD.js +0 -9
- package/studio/server/chunks/4-CI_t25RD.js.map +0 -1
- package/studio/server/chunks/42-P_ROr-Kz.js +0 -56
- package/studio/server/chunks/42-P_ROr-Kz.js.map +0 -1
- package/studio/server/chunks/43-DjsPMRbC.js +0 -9
- package/studio/server/chunks/43-DjsPMRbC.js.map +0 -1
- package/studio/server/chunks/44-Bja0V2qT.js +0 -9
- package/studio/server/chunks/44-Bja0V2qT.js.map +0 -1
- package/studio/server/chunks/45-ClLo6O3h.js +0 -114
- package/studio/server/chunks/45-ClLo6O3h.js.map +0 -1
- package/studio/server/chunks/49-1-oQCIAS.js +0 -14
- package/studio/server/chunks/49-1-oQCIAS.js.map +0 -1
- package/studio/server/chunks/5-rt2C_t_3.js +0 -9
- package/studio/server/chunks/5-rt2C_t_3.js.map +0 -1
- package/studio/server/chunks/7-bEHSOvc4.js +0 -215
- package/studio/server/chunks/7-bEHSOvc4.js.map +0 -1
- package/studio/server/chunks/_error.svelte-DVRBaDbx.js +0 -98
- package/studio/server/chunks/_error.svelte-DVRBaDbx.js.map +0 -1
- package/studio/server/chunks/_error.svelte-Dt8wv2eu.js +0 -98
- package/studio/server/chunks/_error.svelte-Dt8wv2eu.js.map +0 -1
- package/studio/server/chunks/_layout.svelte-55nnwb0N.js +0 -400
- package/studio/server/chunks/_layout.svelte-55nnwb0N.js.map +0 -1
- package/studio/server/chunks/_layout.svelte-BL7PMde9.js +0 -64
- package/studio/server/chunks/_layout.svelte-BL7PMde9.js.map +0 -1
- package/studio/server/chunks/_layout.svelte-BtEadWQB.js +0 -64
- package/studio/server/chunks/_layout.svelte-BtEadWQB.js.map +0 -1
- package/studio/server/chunks/_layout.svelte-CfDTUogU.js +0 -1054
- package/studio/server/chunks/_layout.svelte-CfDTUogU.js.map +0 -1
- package/studio/server/chunks/_page.svelte-B-1o9Tva.js +0 -506
- package/studio/server/chunks/_page.svelte-B-1o9Tva.js.map +0 -1
- package/studio/server/chunks/_page.svelte-B93-TmZo.js +0 -160
- package/studio/server/chunks/_page.svelte-B93-TmZo.js.map +0 -1
- package/studio/server/chunks/_page.svelte-BqwbRDzJ.js +0 -1731
- package/studio/server/chunks/_page.svelte-BqwbRDzJ.js.map +0 -1
- package/studio/server/chunks/_page.svelte-CWrqBxDM.js +0 -1021
- package/studio/server/chunks/_page.svelte-CWrqBxDM.js.map +0 -1
- package/studio/server/chunks/_page.svelte-Cg5sXfnK.js +0 -111
- package/studio/server/chunks/_page.svelte-Cg5sXfnK.js.map +0 -1
- package/studio/server/chunks/_page.svelte-CvEkB4SR.js +0 -319
- package/studio/server/chunks/_page.svelte-CvEkB4SR.js.map +0 -1
- package/studio/server/chunks/_page.svelte-D5uSaQ_6.js +0 -256
- package/studio/server/chunks/_page.svelte-D5uSaQ_6.js.map +0 -1
- package/studio/server/chunks/_page.svelte-D6XGPiAL.js +0 -79
- package/studio/server/chunks/_page.svelte-D6XGPiAL.js.map +0 -1
- package/studio/server/chunks/_page.svelte-DAyju3rn.js +0 -113
- package/studio/server/chunks/_page.svelte-DAyju3rn.js.map +0 -1
- package/studio/server/chunks/_page.svelte-Dxd9_9zA.js +0 -418
- package/studio/server/chunks/_page.svelte-Dxd9_9zA.js.map +0 -1
- package/studio/server/chunks/_page.svelte-GHdQM1UB.js +0 -191
- package/studio/server/chunks/_page.svelte-GHdQM1UB.js.map +0 -1
- package/studio/server/chunks/_page.svelte-axu5NW2S.js +0 -11053
- package/studio/server/chunks/_page.svelte-axu5NW2S.js.map +0 -1
- package/studio/server/chunks/_server.ts-5MqnJlEk.js +0 -87
- package/studio/server/chunks/_server.ts-5MqnJlEk.js.map +0 -1
- package/studio/server/chunks/_server.ts-6KoXdftM.js +0 -70
- package/studio/server/chunks/_server.ts-6KoXdftM.js.map +0 -1
- package/studio/server/chunks/_server.ts-BPbGZeLb.js +0 -718
- package/studio/server/chunks/_server.ts-BPbGZeLb.js.map +0 -1
- package/studio/server/chunks/_server.ts-BQiH-pDg.js +0 -79
- package/studio/server/chunks/_server.ts-BQiH-pDg.js.map +0 -1
- package/studio/server/chunks/_server.ts-BYd-I1tc.js +0 -41
- package/studio/server/chunks/_server.ts-BYd-I1tc.js.map +0 -1
- package/studio/server/chunks/_server.ts-BryF-BNZ.js +0 -96
- package/studio/server/chunks/_server.ts-BryF-BNZ.js.map +0 -1
- package/studio/server/chunks/_server.ts-C5J0RS2-.js +0 -117
- package/studio/server/chunks/_server.ts-C5J0RS2-.js.map +0 -1
- package/studio/server/chunks/_server.ts-CTCmDBMr.js +0 -49
- package/studio/server/chunks/_server.ts-CTCmDBMr.js.map +0 -1
- package/studio/server/chunks/_server.ts-CXM9soU9.js +0 -34
- package/studio/server/chunks/_server.ts-CXM9soU9.js.map +0 -1
- package/studio/server/chunks/_server.ts-CbZYXLYW.js +0 -56
- package/studio/server/chunks/_server.ts-CbZYXLYW.js.map +0 -1
- package/studio/server/chunks/_server.ts-CtiogpOk.js +0 -302
- package/studio/server/chunks/_server.ts-CtiogpOk.js.map +0 -1
- package/studio/server/chunks/_server.ts-D75v2LAN.js +0 -52
- package/studio/server/chunks/_server.ts-D75v2LAN.js.map +0 -1
- package/studio/server/chunks/_server.ts-DANOf9Kg.js +0 -158
- package/studio/server/chunks/_server.ts-DANOf9Kg.js.map +0 -1
- package/studio/server/chunks/_server.ts-DF0SCYmL.js +0 -48
- package/studio/server/chunks/_server.ts-DF0SCYmL.js.map +0 -1
- package/studio/server/chunks/_server.ts-DrkT4gOl.js +0 -121
- package/studio/server/chunks/_server.ts-DrkT4gOl.js.map +0 -1
- package/studio/server/chunks/_server.ts-DscCNgaG.js +0 -87
- package/studio/server/chunks/_server.ts-DscCNgaG.js.map +0 -1
- package/studio/server/chunks/_server.ts-Duz2jodQ.js +0 -22
- package/studio/server/chunks/_server.ts-Duz2jodQ.js.map +0 -1
- package/studio/server/chunks/_server.ts-K-RN8Vah.js +0 -684
- package/studio/server/chunks/_server.ts-K-RN8Vah.js.map +0 -1
- package/studio/server/chunks/_server.ts-OkHzpWAg.js +0 -68
- package/studio/server/chunks/_server.ts-OkHzpWAg.js.map +0 -1
- package/studio/server/chunks/_server.ts-T7wyJ0On.js +0 -58
- package/studio/server/chunks/_server.ts-T7wyJ0On.js.map +0 -1
- package/studio/server/chunks/_server.ts-XWBoVSBG.js +0 -232
- package/studio/server/chunks/_server.ts-XWBoVSBG.js.map +0 -1
- package/studio/server/chunks/_server.ts-liWNn8pd.js +0 -91
- package/studio/server/chunks/_server.ts-liWNn8pd.js.map +0 -1
- package/studio/server/chunks/_server.ts-wjU8lnxc.js +0 -108
- package/studio/server/chunks/_server.ts-wjU8lnxc.js.map +0 -1
- package/studio/server/chunks/_server.ts-xBWWvyW7.js +0 -60
- package/studio/server/chunks/_server.ts-xBWWvyW7.js.map +0 -1
- package/studio/server/chunks/adapter-B-i_4tnk.js +0 -91
- package/studio/server/chunks/adapter-B-i_4tnk.js.map +0 -1
- package/studio/server/chunks/admin.remote-5orFS4k1.js +0 -105
- package/studio/server/chunks/admin.remote-5orFS4k1.js.map +0 -1
- package/studio/server/chunks/ai-access-C-qFWKe-.js +0 -282
- package/studio/server/chunks/ai-access-C-qFWKe-.js.map +0 -1
- package/studio/server/chunks/ai.remote-Da4JRO59.js +0 -37
- package/studio/server/chunks/ai.remote-Da4JRO59.js.map +0 -1
- package/studio/server/chunks/alert-dialog-description-DOMGfPke.js +0 -578
- package/studio/server/chunks/alert-dialog-description-DOMGfPke.js.map +0 -1
- package/studio/server/chunks/animation-DPwINa4I.js +0 -2892
- package/studio/server/chunks/animation-DPwINa4I.js.map +0 -1
- package/studio/server/chunks/api-DkajkFtS.js +0 -434
- package/studio/server/chunks/api-DkajkFtS.js.map +0 -1
- package/studio/server/chunks/api-keys-D9bbxRhK.js +0 -117
- package/studio/server/chunks/api-keys-D9bbxRhK.js.map +0 -1
- package/studio/server/chunks/api-keys.remote-CN4CRiIA.js +0 -88
- package/studio/server/chunks/api-keys.remote-CN4CRiIA.js.map +0 -1
- package/studio/server/chunks/app-header-BfPEtjyC.js +0 -96
- package/studio/server/chunks/app-header-BfPEtjyC.js.map +0 -1
- package/studio/server/chunks/assets.remote-B8_mtYX6.js +0 -113
- package/studio/server/chunks/assets.remote-B8_mtYX6.js.map +0 -1
- package/studio/server/chunks/attribute-protocol-C_pjkekX.js +0 -151
- package/studio/server/chunks/attribute-protocol-C_pjkekX.js.map +0 -1
- package/studio/server/chunks/auth-CiWMo-Qu.js +0 -22472
- package/studio/server/chunks/auth-CiWMo-Qu.js.map +0 -1
- package/studio/server/chunks/auth.remote-C6edHyaa.js +0 -351
- package/studio/server/chunks/auth.remote-C6edHyaa.js.map +0 -1
- package/studio/server/chunks/base-Bq5n_4Fz.js +0 -210
- package/studio/server/chunks/base-Bq5n_4Fz.js.map +0 -1
- package/studio/server/chunks/bun-sqlite-dialect-C8OaCWSL-CsGahR4n.js +0 -197
- package/studio/server/chunks/bun-sqlite-dialect-C8OaCWSL-CsGahR4n.js.map +0 -1
- package/studio/server/chunks/captions.remote-BtVr9SZd.js +0 -184
- package/studio/server/chunks/captions.remote-BtVr9SZd.js.map +0 -1
- package/studio/server/chunks/client2-D2vZ7-eF.js +0 -66
- package/studio/server/chunks/client2-D2vZ7-eF.js.map +0 -1
- package/studio/server/chunks/d1-sqlite-dialect-sYHNqBte-ClSngqDL.js +0 -160
- package/studio/server/chunks/d1-sqlite-dialect-sYHNqBte-ClSngqDL.js.map +0 -1
- package/studio/server/chunks/desktop-bootstrap-C46aoZ6Z.js +0 -67
- package/studio/server/chunks/desktop-bootstrap-C46aoZ6Z.js.map +0 -1
- package/studio/server/chunks/dubbing.remote-DHGIYU_A.js +0 -153
- package/studio/server/chunks/dubbing.remote-DHGIYU_A.js.map +0 -1
- package/studio/server/chunks/editor.svelte-CiJvwHAm.js +0 -21024
- package/studio/server/chunks/editor.svelte-CiJvwHAm.js.map +0 -1
- package/studio/server/chunks/env-CsH9rG40.js +0 -91
- package/studio/server/chunks/env-CsH9rG40.js.map +0 -1
- package/studio/server/chunks/extract-audio.remote-D4Autpid.js +0 -95
- package/studio/server/chunks/extract-audio.remote-D4Autpid.js.map +0 -1
- package/studio/server/chunks/feedback.remote-CfdjHpdW.js +0 -49
- package/studio/server/chunks/feedback.remote-CfdjHpdW.js.map +0 -1
- package/studio/server/chunks/fs-project-BLLGFRv1.js +0 -134
- package/studio/server/chunks/fs-project-BLLGFRv1.js.map +0 -1
- package/studio/server/chunks/generate-speech-BERLu-Vk.js +0 -536
- package/studio/server/chunks/generate-speech-BERLu-Vk.js.map +0 -1
- package/studio/server/chunks/hooks.server-MEVEsSA9.js +0 -309
- package/studio/server/chunks/hooks.server-MEVEsSA9.js.map +0 -1
- package/studio/server/chunks/html-parser-LopZIqoS.js +0 -8516
- package/studio/server/chunks/html-parser-LopZIqoS.js.map +0 -1
- package/studio/server/chunks/html-writer-Ea_4f8hT.js +0 -242
- package/studio/server/chunks/html-writer-Ea_4f8hT.js.map +0 -1
- package/studio/server/chunks/index-CBGGzszt.js +0 -4578
- package/studio/server/chunks/index-CBGGzszt.js.map +0 -1
- package/studio/server/chunks/index12-C5zKPozR.js +0 -265
- package/studio/server/chunks/index12-C5zKPozR.js.map +0 -1
- package/studio/server/chunks/index2-e2qJOUJ5.js +0 -23
- package/studio/server/chunks/index2-e2qJOUJ5.js.map +0 -1
- package/studio/server/chunks/index3-akRvPp-y.js +0 -8
- package/studio/server/chunks/index3-akRvPp-y.js.map +0 -1
- package/studio/server/chunks/index4-CowumPcw.js +0 -48
- package/studio/server/chunks/index4-CowumPcw.js.map +0 -1
- package/studio/server/chunks/index6-92MPHdlt.js +0 -239
- package/studio/server/chunks/index6-92MPHdlt.js.map +0 -1
- package/studio/server/chunks/index8-zuJK-jFa.js +0 -44
- package/studio/server/chunks/index8-zuJK-jFa.js.map +0 -1
- package/studio/server/chunks/layout-template-BoNv9dF2.js +0 -1371
- package/studio/server/chunks/layout-template-BoNv9dF2.js.map +0 -1
- package/studio/server/chunks/lummi.remote-Bx8Vg0et.js +0 -215
- package/studio/server/chunks/lummi.remote-Bx8Vg0et.js.map +0 -1
- package/studio/server/chunks/media-ARIn6Aw1.js +0 -157
- package/studio/server/chunks/media-ARIn6Aw1.js.map +0 -1
- package/studio/server/chunks/media-analysis-GisyEkHY.js +0 -171
- package/studio/server/chunks/media-analysis-GisyEkHY.js.map +0 -1
- package/studio/server/chunks/media-analysis.remote-BzGY_HjI.js +0 -63
- package/studio/server/chunks/media-analysis.remote-BzGY_HjI.js.map +0 -1
- package/studio/server/chunks/middleware-CazuI_Wf.js +0 -72
- package/studio/server/chunks/middleware-CazuI_Wf.js.map +0 -1
- package/studio/server/chunks/mutation-schemas-DOtU1skD.js +0 -137
- package/studio/server/chunks/mutation-schemas-DOtU1skD.js.map +0 -1
- package/studio/server/chunks/mutations-6JWuU3s9.js +0 -503
- package/studio/server/chunks/mutations-6JWuU3s9.js.map +0 -1
- package/studio/server/chunks/node-sqlite-dialect-Q2OvDp9q.js +0 -197
- package/studio/server/chunks/node-sqlite-dialect-Q2OvDp9q.js.map +0 -1
- package/studio/server/chunks/onboarding-email-CHXOtnYq.js +0 -311
- package/studio/server/chunks/onboarding-email-CHXOtnYq.js.map +0 -1
- package/studio/server/chunks/optional-services-rI0rdA4P.js +0 -45
- package/studio/server/chunks/optional-services-rI0rdA4P.js.map +0 -1
- package/studio/server/chunks/pagination-JOJpLeOm.js +0 -159
- package/studio/server/chunks/pagination-JOJpLeOm.js.map +0 -1
- package/studio/server/chunks/posthog-DXw1m97H.js +0 -11
- package/studio/server/chunks/posthog-DXw1m97H.js.map +0 -1
- package/studio/server/chunks/presets-BKeKVq-L.js +0 -369
- package/studio/server/chunks/presets-BKeKVq-L.js.map +0 -1
- package/studio/server/chunks/project-layer-Bbz6zgRN.js +0 -28
- package/studio/server/chunks/project-layer-Bbz6zgRN.js.map +0 -1
- package/studio/server/chunks/projects.remote-Bzca0wLB.js +0 -297
- package/studio/server/chunks/projects.remote-Bzca0wLB.js.map +0 -1
- package/studio/server/chunks/queue-init-DUao6hhx.js +0 -38
- package/studio/server/chunks/queue-init-DUao6hhx.js.map +0 -1
- package/studio/server/chunks/registry-Cq-PY3D3.js +0 -16
- package/studio/server/chunks/registry-Cq-PY3D3.js.map +0 -1
- package/studio/server/chunks/registry2-BSIleFMP.js +0 -4851
- package/studio/server/chunks/registry2-BSIleFMP.js.map +0 -1
- package/studio/server/chunks/remote-148gj0t-CBE9iOwY.js +0 -14
- package/studio/server/chunks/remote-148gj0t-CBE9iOwY.js.map +0 -1
- package/studio/server/chunks/remote-1afl6ud-yFS1W6RH.js +0 -18
- package/studio/server/chunks/remote-1afl6ud-yFS1W6RH.js.map +0 -1
- package/studio/server/chunks/remote-1mi3j6d-COSwmla7.js +0 -21
- package/studio/server/chunks/remote-1mi3j6d-COSwmla7.js.map +0 -1
- package/studio/server/chunks/remote-1rjk8jv-C-ZOeAZr.js +0 -22
- package/studio/server/chunks/remote-1rjk8jv-C-ZOeAZr.js.map +0 -1
- package/studio/server/chunks/remote-1web5fy-Crw8BQuf.js +0 -30
- package/studio/server/chunks/remote-1web5fy-Crw8BQuf.js.map +0 -1
- package/studio/server/chunks/remote-5mu9ty-CiUcViXD.js +0 -31
- package/studio/server/chunks/remote-5mu9ty-CiUcViXD.js.map +0 -1
- package/studio/server/chunks/remote-aelvq6-BHLpqBRM.js +0 -26
- package/studio/server/chunks/remote-aelvq6-BHLpqBRM.js.map +0 -1
- package/studio/server/chunks/remote-em2k3w-BXLmObYN.js +0 -25
- package/studio/server/chunks/remote-em2k3w-BXLmObYN.js.map +0 -1
- package/studio/server/chunks/remote-gezfls-Cmzz6fWa.js +0 -21
- package/studio/server/chunks/remote-gezfls-Cmzz6fWa.js.map +0 -1
- package/studio/server/chunks/remote-lv3p1w-fkE1PB7N.js +0 -15
- package/studio/server/chunks/remote-lv3p1w-fkE1PB7N.js.map +0 -1
- package/studio/server/chunks/remote-ssr7vi-Cbv95MBE.js +0 -33
- package/studio/server/chunks/remote-ssr7vi-Cbv95MBE.js.map +0 -1
- package/studio/server/chunks/remote-sy19x7-BA_A5ekM.js +0 -29
- package/studio/server/chunks/remote-sy19x7-BA_A5ekM.js.map +0 -1
- package/studio/server/chunks/remote-tisyb0-CCv0922s.js +0 -31
- package/studio/server/chunks/remote-tisyb0-CCv0922s.js.map +0 -1
- package/studio/server/chunks/remote-xj8myv-CNAPSYMd.js +0 -31
- package/studio/server/chunks/remote-xj8myv-CNAPSYMd.js.map +0 -1
- package/studio/server/chunks/remote-z7lvth-Dddp33_7.js +0 -23
- package/studio/server/chunks/remote-z7lvth-Dddp33_7.js.map +0 -1
- package/studio/server/chunks/remote-zjib3m-CgmI2LZY.js +0 -24
- package/studio/server/chunks/remote-zjib3m-CgmI2LZY.js.map +0 -1
- package/studio/server/chunks/render-api-su0kZhxA.js +0 -240
- package/studio/server/chunks/render-api-su0kZhxA.js.map +0 -1
- package/studio/server/chunks/scrub-xyz.svelte_svelte_type_style_lang-DU6E-ve4.js +0 -4752
- package/studio/server/chunks/scrub-xyz.svelte_svelte_type_style_lang-DU6E-ve4.js.map +0 -1
- package/studio/server/chunks/subscription-CjEjoIFS.js +0 -138
- package/studio/server/chunks/subscription-CjEjoIFS.js.map +0 -1
- package/studio/server/chunks/subscription-limits-B7Q2pts9.js +0 -114
- package/studio/server/chunks/subscription-limits-B7Q2pts9.js.map +0 -1
- package/studio/server/chunks/template-usage.remote-DOFxtTHM.js +0 -53
- package/studio/server/chunks/template-usage.remote-DOFxtTHM.js.map +0 -1
- package/studio/server/chunks/thumbnail-queue-BrPRb6F7.js +0 -148
- package/studio/server/chunks/thumbnail-queue-BrPRb6F7.js.map +0 -1
- package/studio/server/chunks/tooltip-provider-BFZoIP02.js +0 -30
- package/studio/server/chunks/tooltip-provider-BFZoIP02.js.map +0 -1
- package/studio/server/chunks/tooltip.svelte-Bjv4TH3V.js +0 -658
- package/studio/server/chunks/tooltip.svelte-Bjv4TH3V.js.map +0 -1
- package/studio/server/chunks/tts.remote-yMAINgCv.js +0 -187
- package/studio/server/chunks/tts.remote-yMAINgCv.js.map +0 -1
- package/studio/server/chunks/ui.svelte-CpA5kqfc.js +0 -88
- package/studio/server/chunks/ui.svelte-CpA5kqfc.js.map +0 -1
- package/studio/server/chunks/upload-service-CC8E9Slo.js +0 -212
- package/studio/server/chunks/upload-service-CC8E9Slo.js.map +0 -1
- package/studio/server/chunks/upload.remote-RYslr_Ul.js +0 -131
- package/studio/server/chunks/upload.remote-RYslr_Ul.js.map +0 -1
- package/studio/server/chunks/video-generation.remote-CrPX-27G.js +0 -197
- package/studio/server/chunks/video-generation.remote-CrPX-27G.js.map +0 -1
- package/studio/server/chunks/video-renderer-CSVxoynk.js +0 -412
- package/studio/server/chunks/video-renderer-CSVxoynk.js.map +0 -1
- package/studio/server/chunks/watermark-R6qX4KkH.js +0 -164
- package/studio/server/chunks/watermark-R6qX4KkH.js.map +0 -1
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import{p as Em,n as vm}from"./Dgdpq5VR.js";import{o as Tm,b as wm,c as Im}from"./B-oba5Tq.js";const T=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,F=globalThis,qt="10.45.0";function Nt(){return Br(F),F}function Br(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||qt,t[qt]=t[qt]||{}}function ir(e,t,n=F){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[qt]=r[qt]||{};return i[e]||(i[e]=t())}const Ma=["debug","info","warn","error","log","assert","trace"],km="Sentry Logger ",Ki={};function Ot(e){if(!("console"in F))return e();const t=F.console,n={},r=Object.keys(Ki);r.forEach(i=>{const s=Ki[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Cm(){Oa().enabled=!0}function Rm(){Oa().enabled=!1}function Rd(){return Oa().enabled}function Am(...e){Na("log",...e)}function xm(...e){Na("warn",...e)}function Mm(...e){Na("error",...e)}function Na(e,...t){T&&Rd()&&Ot(()=>{F.console[e](`${km}[${e}]:`,...t)})}function Oa(){return T?ir("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const g={enable:Cm,disable:Rm,isEnabled:Rd,log:Am,warn:xm,error:Mm},Ad=50,ft="?",Yc=/\(error: (.*)\)/,Kc=/captureMessage|captureException/;function xd(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(`
|
|
2
|
+
`);for(let a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const u=Yc.test(c)?c.replace(Yc,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){s.push(l);break}}if(s.length>=Ad+i)break}}return Om(s.slice(i))}}function Nm(e){return Array.isArray(e)?xd(...e):e}function Om(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(pi(t).function||"")&&t.pop(),t.reverse(),Kc.test(pi(t).function||"")&&(t.pop(),Kc.test(pi(t).function||"")&&t.pop()),t.slice(0,Ad).map(n=>({...n,filename:n.filename||pi(t).filename,function:n.function||ft}))}function pi(e){return e[e.length-1]||{}}const po="<anonymous>";function It(e){try{return!e||typeof e!="function"?po:e.name||po}catch{return po}}function Go(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Md(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function Lm(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}const Mi={},Xc={};function Xt(e,t){Mi[e]=Mi[e]||[],Mi[e].push(t)}function Qt(e,t){if(!Xc[e]){Xc[e]=!0;try{t()}catch(n){T&&g.error(`Error while instrumenting ${e}`,n)}}}function Qe(e,t){const n=e&&Mi[e];if(n)for(const r of n)try{r(t)}catch(i){T&&g.error(`Error while triggering instrumentation handler.
|
|
3
|
+
Type: ${e}
|
|
4
|
+
Name: ${It(r)}
|
|
5
|
+
Error:`,i)}}let ho=null;function Nd(e){const t="error";Xt(t,e),Qt(t,Pm)}function Pm(){ho=F.onerror,F.onerror=function(e,t,n,r,i){return Qe("error",{column:r,error:i,line:n,msg:e,url:t}),ho?ho.apply(this,arguments):!1},F.onerror.__SENTRY_INSTRUMENTED__=!0}let mo=null;function Od(e){const t="unhandledrejection";Xt(t,e),Qt(t,Dm)}function Dm(){mo=F.onunhandledrejection,F.onunhandledrejection=function(e){return Qe("unhandledrejection",e),mo?mo.apply(this,arguments):!0},F.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ld=Object.prototype.toString;function bt(e){switch(Ld.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ct(e,Error)}}function sr(e,t){return Ld.call(e)===`[object ${t}]`}function Pd(e){return sr(e,"ErrorEvent")}function Qc(e){return sr(e,"DOMError")}function Fm(e){return sr(e,"DOMException")}function st(e){return sr(e,"String")}function Os(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function kt(e){return e===null||Os(e)||typeof e!="object"&&typeof e!="function"}function Be(e){return sr(e,"Object")}function Ls(e){return typeof Event<"u"&&Ct(e,Event)}function $m(e){return typeof Element<"u"&&Ct(e,Element)}function Um(e){return sr(e,"RegExp")}function Tn(e){return!!(e?.then&&typeof e.then=="function")}function Bm(e){return Be(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ct(e,t){try{return e instanceof t}catch{return!1}}function Dd(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function La(e){return typeof Request<"u"&&Ct(e,Request)}const Pa=F,Hm=80;function We(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Hm;for(;n&&s++<r&&(u=Wm(n,d),!(u==="html"||s>1&&o+i.length*c+u.length>=l));)i.push(u),o+=u.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Wm(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Pa.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const s=n.className;if(s&&st(s)){const o=s.split(/\s+/);for(const a of o)r.push(`.${a}`)}}for(const s of["aria-label","type","name","title","alt"]){const o=n.getAttribute(s);o&&r.push(`[${s}="${o}"]`)}return r.join("")}function wn(){try{return Pa.document.location.href}catch{return""}}function Fd(e){if(!Pa.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){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 Ae(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&$d(i,r);try{e[t]=i}catch{T&&g.log(`Failed to replace method "${t}" in object`,e)}}function Me(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{T&&g.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function $d(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Me(e,"__sentry_original__",t)}catch{}}function Da(e){return e.__sentry_original__}function Ud(e){if(bt(e))return{message:e.message,name:e.name,stack:e.stack,...eu(e)};if(Ls(e)){const t={type:e.type,target:Zc(e.target),currentTarget:Zc(e.currentTarget),...eu(e)};return typeof CustomEvent<"u"&&Ct(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Zc(e){try{return $m(e)?We(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function eu(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function jm(e){const t=Object.keys(Ud(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function qm(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case kt(e):t=new e.constructor(e);break;default:t=e;break}return t}let Rn;function Hr(e){if(Rn!==void 0)return Rn?Rn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=F;return t in n&&typeof n[t]=="function"?(Rn=n[t],Rn(e)):(Rn=null,e())}function Et(){return Hr(()=>Math.random())}function Wr(){return Hr(()=>Date.now())}function xr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function go(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n}function Xi(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{Dd(i)?n.push(Md(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Ni(e,t,n=!1){return st(e)?Um(t)?t.test(e):st(t)?n?e===t:e.includes(t):!1:!1}function ot(e,t=[],n=!1){return t.some(r=>Ni(e,r,n))}function zm(){const e=F;return e.crypto||e.msCrypto}let _o;function Gm(){return Et()*16}function we(e=zm()){try{if(e?.randomUUID)return Hr(()=>e.randomUUID()).replace(/-/g,"")}catch{}return _o||(_o="10000000100040008000"+1e11),_o.replace(/[018]/g,t=>(t^(Gm()&15)>>t/4).toString(16))}function Bd(e){return e.exception?.values?.[0]}function sn(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bd(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Vo(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Rt(e,t){const n=Bd(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i?.data,...t.data};n.mechanism.data=s}}function Vm(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(o=>go(o,0));const s=Math.min(r-1,i);t.context_line=go(e[s],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(o=>go(o,0))}function tu(e){if(Jm(e))return!0;try{Me(e,"__sentry_captured__",!0)}catch{}return!1}function Jm(e){try{return e.__sentry_captured__}catch{}}const Hd=1e3;function In(){return Wr()/Hd}function Ym(){const{performance:e}=F;if(!e?.now||!e.timeOrigin)return In;const t=e.timeOrigin;return()=>(t+Hr(()=>e.now()))/Hd}let nu;function ge(){return(nu??(nu=Ym()))()}let yo=null;function Km(){const{performance:e}=F;if(!e?.now)return;const t=3e5,n=Hr(()=>e.now()),r=Wr(),i=e.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<t)return i;const s=e.timing?.navigationStart;return typeof s=="number"&&Math.abs(s+n-r)<t?s:r-n}function Ne(){return yo===null&&(yo=Km()),yo}function Xm(e){const t=ge(),n={sid:we(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Zm(n)};return e&&zn(n,e),n}function zn(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||ge(),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:we()),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{const n=e.timestamp-e.started;e.duration=n>=0?n: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 Qm(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),zn(e,n)}function Zm(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 jr(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=jr(r[i],t[i],n-1));return r}function pt(){return we()}function vt(){return we().substring(16)}const Jo="_sentrySpan";function ht(e,t){t?Me(e,Jo,t):delete e[Jo]}function Gn(e){return e[Jo]}const eg=100;class mt{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:pt(),sampleRand:Et()}}clone(){const t=new mt;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,ht(t,Gn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&zn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof mt?n.getScopeData():Be(n)?t:void 0,{tags:i,attributes:s,extra:o,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l,conversationId:p}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),p&&(this._conversationId=p),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,ht(this,void 0),this._attachments=[],this.setPropagationContext({traceId:pt(),sampleRand:Et()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:eg;if(r<=0)return this;const i={timestamp:In(),...t,message:t.message?xr(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(t){return this._attachments.push(t),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:Gn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=jr(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||we();if(!this._client)return T&&g.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||we();if(!this._client)return T&&g.warn("No client configured on scope - will not capture message!"),i;const s=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=t.event_id||n?.event_id||we();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(T&&g.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function tg(){return ir("defaultCurrentScope",()=>new mt)}function ng(){return ir("defaultIsolationScope",()=>new mt)}class rg{constructor(t,n){let r;t?r=t:r=new mt;let i;n?i=n:i=new mt,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return Tn(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Vn(){const e=Nt(),t=Br(e);return t.stack=t.stack||new rg(tg(),ng())}function ig(e){return Vn().withScope(e)}function sg(e,t){const n=Vn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function ru(e){return Vn().withScope(()=>e(Vn().getIsolationScope()))}function og(){return{withIsolationScope:ru,withScope:ig,withSetScope:sg,withSetIsolationScope:(e,t)=>ru(t),getCurrentScope:()=>Vn().getScope(),getIsolationScope:()=>Vn().getIsolationScope()}}function Zt(e){const t=Br(e);return t.acs?t.acs:og()}function z(){const e=Nt();return Zt(e).getCurrentScope()}function Se(){const e=Nt();return Zt(e).getIsolationScope()}function wr(){return ir("globalScope",()=>new mt)}function ct(...e){const t=Nt(),n=Zt(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Yx(...e){const t=Nt(),n=Zt(t);if(e.length===2){const[r,i]=e;return r?n.withSetIsolationScope(r,i):n.withIsolationScope(i)}return n.withIsolationScope(e[0])}function C(){return z().getClient()}function Wd(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||vt()};return r&&(s.parent_span_id=r),s}const xe="sentry.source",Fa="sentry.sample_rate",jd="sentry.previous_trace_sample_rate",ke="sentry.op",X="sentry.origin",Mr="sentry.idle_span_finish_reason",qr="sentry.measurement_unit",zr="sentry.measurement_value",Yo="sentry.custom_span_name",$a="sentry.profile_id",or="sentry.exclusive_time",ag="http.request.method",cg="url.full",ug="sentry.link.type",lg="gen_ai.conversation.id",dg=0,Ps=1,ee=2;function fg(e){if(e<400&&e>=100)return{code:Ps};if(e>=400&&e<500)switch(e){case 401:return{code:ee,message:"unauthenticated"};case 403:return{code:ee,message:"permission_denied"};case 404:return{code:ee,message:"not_found"};case 409:return{code:ee,message:"already_exists"};case 413:return{code:ee,message:"failed_precondition"};case 429:return{code:ee,message:"resource_exhausted"};case 499:return{code:ee,message:"cancelled"};default:return{code:ee,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ee,message:"unimplemented"};case 503:return{code:ee,message:"unavailable"};case 504:return{code:ee,message:"deadline_exceeded"};default:return{code:ee,message:"internal_error"}}return{code:ee,message:"internal_error"}}function Qi(e,t){e.setAttribute("http.response.status_code",t);const n=fg(t);n.message!=="unknown_error"&&e.setStatus(n)}const qd="_sentryScope",zd="_sentryIsolationScope";function pg(e){try{const t=F.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function hg(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function mg(e,t,n){e&&(Me(e,zd,pg(n)),Me(e,qd,t))}function Zi(e){const t=e;return{scope:t[qd],isolationScope:hg(t[zd])}}const es="sentry-",gg=8192;function Ua(e){const t=_g(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.startsWith(es)){const o=i.slice(es.length);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function Gd(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${es}${r}`]=i),n),{});return yg(t)}function _g(e){if(!(!e||!st(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=iu(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):iu(e)}function iu(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function yg(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?s:`${t},${s}`;return o.length>gg?(T&&g.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Sg=/^o(\d+)\./,bg=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Eg(e){return e==="http"||e==="https"}function Lt(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function Vd(e){const t=bg.exec(e);if(!t){Ot(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return Jd({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Jd(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function vg(e){if(!T)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(g.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?Eg(r)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Tg(e){return e.match(Sg)?.[1]}function Yd(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=Tg(n)),r}function Kd(e){const t=typeof e=="string"?Vd(e):Jd(e);if(!(!t||!vg(t)))return t}function pn(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Xd=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wg(e){if(!e)return;const t=e.match(Xd);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 Qd(e,t){const n=wg(e),r=Ua(t);if(!n?.traceId)return{traceId:pt(),sampleRand:Et()};const i=Ig(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:o,parentSampled:a}=n;return{traceId:s,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:i}}function Zd(e=pt(),t=vt(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function ef(e=pt(),t=vt(),n){return`00-${e}-${t}-${n?"01":"00"}`}function Ig(e,t){const n=pn(t?.sample_rand);if(n!==void 0)return n;const r=pn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Et()*r:r+Et()*(1-r):Et()}function kg(e,t){const n=Yd(e);return t&&n&&t!==n?(g.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(g.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const tf=0,Ba=1;let su=!1;function Cg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a,links:c}=G(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a,links:c}}function nf(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:G(e).parent_span_id,s=Zi(e).scope,o=r?s?.getPropagationContext().propagationSpanId||vt():t;return{parent_span_id:i,span_id:o,trace_id:n}}function Rg(e){const{traceId:t,spanId:n}=e.spanContext(),r=en(e);return Zd(t,n,r)}function Ag(e){const{traceId:t,spanId:n}=e.spanContext(),r=en(e);return ef(t,n,r)}function rf(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===Ba,attributes:s,...i}))}function ln(e){return typeof e=="number"?ou(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ou(e.getTime()):ge()}function ou(e){return e>9999999999?e/1e3:e}function G(e){if(Mg(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(xg(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:c}=e,u="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:u,start_timestamp:ln(i),timestamp:ln(o)||void 0,status:sf(a),op:r[ke],origin:r[X],links:rf(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function xg(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Mg(e){return typeof e.getSpanJSON=="function"}function en(e){const{traceFlags:t}=e.spanContext();return t===Ba}function sf(e){if(!(!e||e.code===dg))return e.code===Ps?"ok":e.message||"internal_error"}const dn="_sentryChildSpans",Ko="_sentryRootSpan";function of(e,t){const n=e[Ko]||e;Me(t,Ko,n),e[dn]?e[dn].add(t):Me(e,dn,new Set([t]))}function Ng(e,t){e[dn]&&e[dn].delete(t)}function Oi(e){const t=new Set;function n(r){if(!t.has(r)&&en(r)){t.add(r);const i=r[dn]?Array.from(r[dn]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function ve(e){return e[Ko]||e}function Te(){const e=Nt(),t=Zt(e);return t.getActiveSpan?t.getActiveSpan():Gn(z())}function Xo(){su||(Ot(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),su=!0)}function Kx(e,t){e.updateName(t),e.setAttributes({[xe]:"custom",[Yo]:t})}let au=!1;function Og(){if(au)return;function e(){const t=Te(),n=t&&ve(t);if(n){const r="internal_error";T&&g.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ee,message:r})}}e.tag="sentry_tracingErrorCallback",au=!0,Nd(e),Od(e)}function Ze(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||C()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function cu(e){g.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ts(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(Pg(n)){if(Ni(e.description,n))return T&&cu(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Ni(e.description,n.name):!0,i=n.op?e.op&&Ni(e.op,n.op):!0;if(r&&i)return T&&cu(e),!0}return!1}function Lg(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function Pg(e){return typeof e=="string"||e instanceof RegExp}const Ds="production",af="_frozenDsc";function Li(e,t){Me(e,af,t)}function cf(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||Ds,release:n.release,public_key:r,trace_id:e,org_id:Yd(t)};return t.emit("createDsc",i),i}function Ha(e,t){const n=t.getPropagationContext();return n.dsc||cf(n.traceId,e)}function at(e){const t=C();if(!t)return{};const n=ve(e),r=G(n),i=r.data,s=n.spanContext().traceState,o=s?.get("sentry.sample_rate")??i[Fa]??i[jd];function a(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const c=n[af];if(c)return a(c);const u=s?.get("sentry.dsc"),d=u&&Ua(u);if(d)return a(d);const l=cf(e.spanContext().traceId,t),p=i[xe],f=r.description;return p!=="url"&&f&&(l.transaction=f),Ze()&&(l.sampled=String(en(n)),l.sample_rand=s?.get("sentry.sample_rand")??Zi(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function Xx(e){const t=at(e);return Gd(t)}class At{constructor(t={}){this._traceId=t.traceId||pt(),this._spanId=t.spanId||vt()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:tf}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Re(e,t=100,n=1/0){try{return Qo("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function uf(e,t=3,n=100*1024){const r=Re(e,t);return Ug(r)>n?uf(e,t-1,n):r}function Qo(e,t,n=1/0,r=1/0,i=Bg()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Dg(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const f=u.toJSON();return Qo("",f,c-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const p=Ud(t);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(l>=r){d[f]="[MaxProperties ~]";break}const h=p[f];d[f]=Qo(f,h,c-1,r,i),l++}return o(t),d}function Dg(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(Dd(t))return Md(t);if(Bm(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${It(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Fg(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Fg(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function $g(e){return~-encodeURI(e).split(/%..|./).length}function Ug(e){return $g(JSON.stringify(e))}function Bg(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function ut(e,t=[]){return[e,t]}function Hg(e,t){const[n,r]=e;return[n,[...r,t]]}function hn(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Zo(e,t){return hn(e,(n,r)=>t.includes(r))}function ns(e){const t=Br(F);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Wg(e){const t=Br(F);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function rs(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[ns(r),s]:r.push(typeof s=="string"?ns(s):s)}for(const s of n){const[o,a]=s;if(i(`
|
|
6
|
+
${JSON.stringify(o)}
|
|
7
|
+
`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Re(a))}i(c)}}return typeof r=="string"?r:jg(r)}function jg(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function qg(e){let t=typeof e=="string"?ns(e):e;function n(o){const a=t.subarray(0,o);return t=t.subarray(o+1),a}function r(){let o=t.indexOf(10);return o<0&&(o=t.length),JSON.parse(Wg(n(o)))}const i=r(),s=[];for(;t.length;){const o=r(),a=typeof o.length=="number"?o.length:void 0;s.push([o,a?n(a):r()])}return[i,s]}function zg(e){return[{type:"span"},e]}function Gg(e){const t=typeof e.data=="string"?ns(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const lf={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Vg(e){return e in lf}function uu(e){return Vg(e)?lf[e]:e}function Fs(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function df(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Lt(r)},...i&&{trace:i}}}function Jg(e,t){if(!t)return e;const 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 Yg(e,t,n,r){const i=Fs(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Lt(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ut(s,[o])}function Kg(e,t,n,r){const i=Fs(n),s=e.type&&e.type!=="replay_event"?e.type:"event";Jg(e,n?.sdk);const o=df(e,i,r,t);return delete e.sdkProcessingMetadata,ut(o,[[{type:s},e]])}function Xg(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=at(e[0]),i=t?.getDsn(),s=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Lt(i)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(f=>!ts(G(f),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);const l=a?f=>{const h=G(f),m=a(h);return m||(Xo(),h)}:G,p=[];for(const f of u){const h=l(f);h&&p.push(zg(h))}return ut(o,p)}function Qg(e){if(!T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=G(e),{spanId:i}=e.spanContext(),s=en(e),o=ve(e),a=o===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:l}=G(o);u.push(`root ID: ${o.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}g.log(`${c}
|
|
8
|
+
${u.join(`
|
|
9
|
+
`)}`)}function Zg(e){if(!T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=G(e),{spanId:r}=e.spanContext(),s=ve(e)===e,o=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;g.log(o)}function e_(e,t,n,r=Te()){const i=r&&ve(r);i&&(T&&g.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[zr]:t,[qr]:n}))}function lu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[qr],s=r[zr];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const du=1e3;class $s{constructor(t={}){this._traceId=t.traceId||pt(),this._spanId=t.spanId||vt(),this._startTime=t.startTimestamp||ge(),this._links=t.links,this._attributes={},this.setAttributes({[X]:"manual",[ke]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Ba:tf}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ln(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(xe,"custom"),this}end(t){this._endTime||(this._endTime=ln(t),Zg(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ke],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:sf(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[X],profile_id:this._attributes[$a],exclusive_time:this._attributes[or],measurements:lu(this._events),is_segment:this._isStandaloneSpan&&ve(this)===this||void 0,segment_id:this._isStandaloneSpan?ve(this).spanContext().spanId:void 0,links:rf(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){T&&g.log("[Tracing] Adding an event to span:",t);const i=fu(n)?n:r||ge(),s=fu(n)?{}:n||{},o={name:t,time:ln(i),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=C();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===ve(this)))return;if(this._isStandaloneSpan){this._sampled?n_(Xg([this],t)):(T&&g.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Zi(this).scope||z()).captureEvent(r)}_convertSpanToTransaction(){if(!pu(G(this)))return;this._name||(T&&g.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Zi(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const s=Oi(this).filter(d=>d!==this&&!t_(d)).map(d=>G(d)).filter(pu),o=this._attributes[xe];delete this._attributes[Yo],s.forEach(d=>{delete d.data[Yo]});const a={contexts:{trace:Cg(this)},spans:s.length>du?s.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,du):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:at(this)},request:r,...o&&{transaction_info:{source:o}}},c=lu(this._events);return c&&Object.keys(c).length&&(T&&g.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function fu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function pu(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function t_(e){return e instanceof $s&&e.isStandaloneSpan()}function n_(e){const t=C();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Gr(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(s){throw t(s),n(),s}return r_(i,t,n,r)}function r_(e,t,n,r){return Tn(e)?e.then(i=>(n(),r(i),i),i=>{throw t(i),n(),i}):(n(),r(e),e)}function i_(e,t,n){if(!Ze(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=pn(i);if(s===void 0)return T&&g.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(!s)return T&&g.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,s,r];const o=n<s;return o||T&&g.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,s,r]}const is="__SENTRY_SUPPRESS_TRACING__";function Pt(e,t){const n=Vr();if(n.startSpan)return n.startSpan(e,t);const r=ja(e),{forceTransaction:i,parentSpan:s,scope:o}=e,a=o?.clone();return ct(a,()=>ff(s)(()=>{const u=z(),d=qa(u,s),p=e.onlyIfParent&&!d?new At:Wa({parentSpan:d,spanArguments:r,forceTransaction:i,scope:u});return ht(u,p),Gr(()=>t(p),()=>{const{status:f}=G(p);p.isRecording()&&(!f||f==="ok")&&p.setStatus({code:ee,message:"internal_error"})},()=>{p.end()})}))}function Wt(e,t){const n=Vr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=ja(e),{forceTransaction:i,parentSpan:s,scope:o}=e,a=o?.clone();return ct(a,()=>ff(s)(()=>{const u=z(),d=qa(u,s),p=e.onlyIfParent&&!d?new At:Wa({parentSpan:d,spanArguments:r,forceTransaction:i,scope:u});return ht(u,p),Gr(()=>t(p,()=>p.end()),()=>{const{status:f}=G(p);p.isRecording()&&(!f||f==="ok")&&p.setStatus({code:ee,message:"internal_error"})})}))}function Dt(e){const t=Vr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=ja(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?o=>ct(e.scope,o):i!==void 0?o=>Us(i,o):o=>o())(()=>{const o=z(),a=qa(o,i);return e.onlyIfParent&&!a?new At:Wa({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}const Qx=(e,t)=>{const n=Nt(),r=Zt(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:i,baggage:s}=e,o=C(),a=Ua(s);return o&&!kg(o,a?.org_id)?o_(t):ct(c=>{const u=Qd(i,s);return c.setPropagationContext(u),ht(c,void 0),t()})};function Us(e,t){const n=Vr();return n.withActiveSpan?n.withActiveSpan(e,t):ct(r=>(ht(r,e||void 0),t(r)))}function s_(e){const t=Vr();return t.suppressTracing?t.suppressTracing(e):ct(n=>{n.setSDKProcessingMetadata({[is]:!0});const r=e();return n.setSDKProcessingMetadata({[is]:void 0}),r})}function o_(e){return ct(t=>(t.setPropagationContext({traceId:pt(),sampleRand:Et()}),T&&g.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Us(null,e)))}function Wa({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ze()){const o=new At;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...at(o)};Li(o,a)}return o}const i=Se();let s;if(e&&!n)s=a_(e,r,t),of(e,s);else if(e){const o=at(e),{traceId:a,spanId:c}=e.spanContext(),u=en(e);s=hu({traceId:a,parentSpanId:c,...t},r,u),Li(s,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};s=hu({traceId:o,parentSpanId:c,...t},r,u),a&&Li(s,a)}return Qg(s),mg(s,r,i),s}function ja(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=ln(e.startTime),delete r.startTime,r}return n}function Vr(){const e=Nt();return Zt(e)}function hu(e,t,n){const r=C(),i=r?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,u=t.getPropagationContext(),[d,l,p]=t.getScopeData().sdkProcessingMetadata[is]?[!1]:i_(i,{name:s,parentSampled:a,attributes:c,parentSampleRate:pn(u.dsc?.sample_rate)},u.sampleRand),f=new $s({...e,attributes:{[xe]:"custom",[Fa]:l!==void 0&&p?l:void 0,...c},sampled:d});return!d&&r&&(T&&g.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",f),f}function a_(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[is]?!1:en(e),o=s?new $s({...n,parentSpanId:r,traceId:i,sampled:s}):new At({traceId:i});of(e,o);const a=C();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function qa(e,t){if(t)return t;if(t===null)return;const n=Gn(e);if(!n)return;const r=C();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?ve(n):n}function ff(e){return e!==void 0?t=>Us(e,t):t=>t()}const Pi={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},c_="heartbeatFailed",u_="idleTimeout",l_="finalTimeout",d_="externalFinish";function pf(e,t={}){const n=new Map;let r=!1,i,s=d_,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=Pi.idleTimeout,finalTimeout:u=Pi.finalTimeout,childSpanTimeout:d=Pi.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:p=!0}=t,f=C();if(!f||!Ze()){const S=new At,k={sample_rate:"0",sampled:"false",...at(S)};return Li(S,k),S}const h=z(),m=Te(),_=f_(e);_.end=new Proxy(_.end,{apply(S,k,H){if(l&&l(_),k instanceof At)return;const[E,...R]=H,w=E||ge(),M=ln(w),P=Oi(_).filter(x=>x!==_),Q=G(_);if(!P.length||!p)return L(M),Reflect.apply(S,k,[M,...R]);const Z=f.getOptions().ignoreSpans,te=P?.reduce((x,$)=>{const re=G($);return!re.timestamp||Z&&ts(re,Z)?x:x?Math.max(x,re.timestamp):re.timestamp},void 0),A=Q.start_timestamp,D=Math.min(A?A+u/1e3:1/0,Math.max(A||-1/0,Math.min(M,te||1/0)));return L(D),Reflect.apply(S,k,[D,...R])}});function y(){i&&(clearTimeout(i),i=void 0)}function b(S){y(),i=setTimeout(()=>{!r&&n.size===0&&o&&(s=u_,_.end(S))},c)}function O(S){i=setTimeout(()=>{!r&&o&&(s=c_,_.end(S))},d)}function I(S){y(),n.set(S,!0);const k=ge();O(k+d/1e3)}function W(S){if(n.has(S)&&n.delete(S),n.size===0){const k=ge();b(k+c/1e3)}}function L(S){r=!0,n.clear(),a.forEach(P=>P()),ht(h,m);const k=G(_),{start_timestamp:H}=k;if(!H)return;k.data[Mr]||_.setAttribute(Mr,s);const R=k.status;(!R||R==="unknown")&&_.setStatus({code:Ps}),g.log(`[Tracing] Idle span "${k.op}" finished`);const w=Oi(_).filter(P=>P!==_);let M=0;w.forEach(P=>{P.isRecording()&&(P.setStatus({code:ee,message:"cancelled"}),P.end(S),T&&g.log("[Tracing] Cancelling span since span ended early",JSON.stringify(P,void 0,2)));const Q=G(P),{timestamp:Z=0,start_timestamp:te=0}=Q,A=te<=S,D=(u+c)/1e3,x=Z-te<=D;if(T){const $=JSON.stringify(P,void 0,2);A?x||g.log("[Tracing] Discarding span since it finished after idle span final timeout",$):g.log("[Tracing] Discarding span since it happened after idle span was finished",$)}(!x||!A)&&(Ng(_,P),M++)}),M>0&&_.setAttribute("sentry.idle_span_discarded_spans",M)}return a.push(f.on("spanStart",S=>{if(r||S===_||G(S).timestamp||S instanceof $s&&S.isStandaloneSpan())return;Oi(_).includes(S)&&I(S.spanContext().spanId)})),a.push(f.on("spanEnd",S=>{r||W(S.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",S=>{S===_&&(o=!0,b(),n.size&&O())})),t.disableAutoFinish||b(),setTimeout(()=>{r||(_.setStatus({code:ee,message:"deadline_exceeded"}),s=l_,_.end())},u),_}function f_(e){const t=Dt(e);return ht(z(),t),T&&g.log("[Tracing] Started span is an idle span"),t}const So=0,mu=1,gu=2;function Jr(e){return new Nr(t=>{t(e)})}function za(e){return new Nr((t,n)=>{n(e)})}class Nr{constructor(t){this._state=So,this._handlers=[],this._runExecutor(t)}then(t,n){return new Nr((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Nr((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===So)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===mu&&n[1](this._value),this._state===gu&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,o)=>{if(this._state===So){if(Tn(o)){o.then(r,i);return}this._state=s,this._value=o,this._executeHandlers()}},r=s=>{n(mu,s)},i=s=>{n(gu,s)};try{t(r,i)}catch(s){i(s)}}}function p_(e,t,n,r=0){try{const i=ea(t,n,e,r);return Tn(i)?i:Jr(i)}catch(i){return za(i)}}function ea(e,t,n,r){const i=n[r];if(!e||!i)return e;const s=i({...e},t);return T&&s===null&&g.log(`Event processor "${i.id||"?"}" dropped event`),Tn(s)?s.then(o=>ea(o,t,n,r+1)):ea(s,t,n,r+1)}let nn,_u,yu,$t;function hf(e){const t=F._sentryDebugIds,n=F._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if($t&&r.length===_u&&i.length===yu)return $t;_u=r.length,yu=i.length,$t={},nn||(nn={});const s=(o,a)=>{for(const c of o){const u=a[c],d=nn?.[c];if(d&&$t&&u)$t[d[0]]=u,nn&&(nn[c]=[d[0],u]);else if(u){const l=e(c);for(let p=l.length-1;p>=0;p--){const h=l[p]?.filename;if(h&&$t&&nn){$t[h]=u,nn[c]=[h,u];break}}}}};return t&&s(r,t),n&&s(i,n),$t}function h_(e,t){const n=hf(e);if(!n)return[];const r=[];for(const i of t){const s=Lm(i);s&&n[s]&&r.push({type:"sourcemap",code_file:i,debug_id:n[s]})}return r}function m_(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;g_(e,t),r&&S_(e,r),b_(e,n),__(e,i),y_(e,s)}function Su(e,t){const{extra:n,tags:r,attributes:i,user:s,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:f,transactionName:h,span:m}=t;hr(e,"extra",n),hr(e,"tags",r),hr(e,"attributes",i),hr(e,"user",s),hr(e,"contexts",o),e.sdkProcessingMetadata=jr(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function hr(e,t,n){e[t]=jr(e[t],n,1)}function Bs(e,t){const n=wr().getScopeData();return e&&Su(n,e.getScopeData()),t&&Su(n,t.getScopeData()),n}function g_(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function __(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function y_(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function S_(e,t){e.contexts={trace:nf(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:at(t),...e.sdkProcessingMetadata};const n=ve(t),r=G(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function b_(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 mf(e,t,n,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||we(),timestamp:t.timestamp||In()},u=n.integrations||e.integrations.map(y=>y.name);E_(c,e),w_(c,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&v_(c,e.stackParser);const d=k_(r,n.captureContext);n.mechanism&&Rt(c,n.mechanism);const l=i?i.getEventProcessors():[],p=Bs(s,d),f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),m_(c,p);const h=[...l,...p.eventProcessors];return(n.data&&n.data.__sentry__===!0?Jr(c):p_(h,c,n)).then(y=>(y&&T_(y),typeof o=="number"&&o>0?I_(y,o,a):y))}function E_(e,t){const{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||Ds,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const o=e.request;o?.url&&s&&(o.url=xr(o.url,s)),s&&e.exception?.values?.forEach(a=>{a.value&&(a.value=xr(a.value,s))})}function v_(e,t){const n=hf(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function T_(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function w_(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function I_(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Re(i.data,t,n)}}))},...e.user&&{user:Re(e.user,t,n)},...e.contexts&&{contexts:Re(e.contexts,t,n)},...e.extra&&{extra:Re(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Re(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Re(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Re(e.contexts.flags,3,n)),r}function k_(e,t){if(!t)return e;const n=e?e.clone():new mt;return n.update(t),n}function C_(e){if(e)return R_(e)?{captureContext:e}:x_(e)?{captureContext:e}:e}function R_(e){return e instanceof mt||typeof e=="function"}const A_=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function x_(e){return Object.keys(e).some(t=>A_.includes(t))}function pe(e,t){return z().captureException(e,C_(t))}function M_(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return z().captureMessage(e,n,r)}function Yr(e,t){return z().captureEvent(e,t)}function N_(e,t){Se().setContext(e,t)}function Zx(e){Se().setExtras(e)}function eM(e,t){Se().setExtra(e,t)}function tM(e){Se().setTags(e)}function nM(e,t){Se().setTag(e,t)}function rM(e){Se().setUser(e)}function iM(e){Se().setConversationId(e)}function O_(){return Se().lastEventId()}async function sM(e){const t=C();return t?t.flush(e):(T&&g.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function oM(e){const t=C();return t?t.close(e):(T&&g.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function aM(){return!!C()}function L_(){const e=C();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function P_(e){Se().addEventProcessor(e)}function bu(e){const t=Se(),{user:n}=Bs(t,z()),{userAgent:r}=F.navigator||{},i=Xm({user:n,...r&&{userAgent:r},...e}),s=t.getSession();return s?.status==="ok"&&zn(s,{status:"exited"}),gf(),t.setSession(i),i}function gf(){const e=Se(),n=z().getSession()||e.getSession();n&&Qm(n),_f(),e.setSession()}function _f(){const e=Se(),t=C(),n=e.getSession();n&&t&&t.captureSession(n)}function bo(e=!1){if(e){gf();return}_f()}const D_="7";function yf(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function F_(e){return`${yf(e)}${e.projectId}/envelope/`}function $_(e,t){const n={sentry_version:D_};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Sf(e,t,n){return t||`${F_(e)}?${$_(e,n)}`}function U_(e,t){const n=Kd(e);if(!n)return"";const r=`${yf(n)}embed/error-page/`;let i=`dsn=${Lt(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const o=t.user;if(!o)continue;o.name&&(i+=`&name=${encodeURIComponent(o.name)}`),o.email&&(i+=`&email=${encodeURIComponent(o.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const Eu=[];function B_(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function H_(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return B_(r)}function W_(e,t){const n={};return t.forEach(r=>{r&&bf(e,r,n)}),n}function vu(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function bf(e,t,n){if(n[t.name]){T&&g.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Eu.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Eu.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}T&&g.log(`Integration installed: ${t.name}`)}function Tu(e){const t=C();if(!t){T&&g.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function j_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function q_(e,t){const{value:n,unit:r}=j_(e)?e:{value:e,unit:void 0},i=z_(n),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!t||t==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...s}}function ss(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const s=q_(i,t);s&&(n[r]=s)}return n}function z_(e){const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}const G_="sentry.timestamp.sequence";let Eo=0,vo;function Ef(e){const t=Math.floor(e*1e3);vo!==void 0&&t!==vo&&(Eo=0);const n=Eo;return Eo++,vo=t,{key:G_,value:{value:n,type:"integer"}}}function vf(e,t){return t?ct(t,()=>{const n=Te(),r=n?nf(n):Wd(t);return[n?at(n):Ha(e,t),r]}):[void 0,void 0]}const V_={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function J_(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Y_(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Lt(r)),ut(i,[J_(e)])}const K_=100;function lt(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function X_(e,t){const n=Ga(),r=Tf(e);r===void 0?n.set(e,[t]):r.length>=K_?(as(e,r),n.set(e,[t])):n.set(e,[...r,t])}function os(e,t=z(),n=X_){const r=t?.getClient()??C();if(!r){T&&g.warn("No client available to capture log.");return}const{release:i,environment:s,enableLogs:o=!1,beforeSendLog:a}=r.getOptions();if(!o){T&&g.warn("logging option not enabled, log will not be captured.");return}const[,c]=vf(r,t),u={...e.attributes},{user:{id:d,email:l,username:p},attributes:f={}}=Bs(Se(),t);lt(u,"user.id",d,!1),lt(u,"user.email",l,!1),lt(u,"user.name",p,!1),lt(u,"sentry.release",i),lt(u,"sentry.environment",s);const{name:h,version:m}=r.getSdkMetadata()?.sdk??{};lt(u,"sentry.sdk.name",h),lt(u,"sentry.sdk.version",m);const _=r.getIntegrationByName("Replay"),y=_?.getReplayId(!0);lt(u,"sentry.replay_id",y),y&&_?.getRecordingMode()==="buffer"&<(u,"sentry._internal.replay_is_buffering",!0);const b=e.message;if(Os(b)){const{__sentry_template_string__:M,__sentry_template_values__:P=[]}=b;P?.length&&(u["sentry.message.template"]=M),P.forEach((Q,Z)=>{u[`sentry.message.parameter.${Z}`]=Q})}const O=Gn(t);lt(u,"sentry.trace.parent_span_id",O?.spanContext().spanId);const I={...e,attributes:u};r.emit("beforeCaptureLog",I);const W=a?Ot(()=>a(I)):I;if(!W){r.recordDroppedEvent("before_send","log_item",1),T&&g.warn("beforeSendLog returned null, log will not be captured.");return}const{level:L,message:S,attributes:k={},severityNumber:H}=W,E=ge(),R=Ef(E),w={timestamp:E,level:L,body:S,trace_id:c?.trace_id,severity_number:H??V_[L],attributes:{...ss(f),...ss(k,!0),[R.key]:R.value}};n(r,w),r.emit("afterCaptureLog",W)}function as(e,t){const n=t??Tf(e)??[];if(n.length===0)return;const r=e.getOptions(),i=Y_(n,r._metadata,r.tunnel,e.getDsn());Ga().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function Tf(e){return Ga().get(e)}function Ga(){return ir("clientToLogBufferMap",()=>new WeakMap)}function Q_(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Z_(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Lt(r)),ut(i,[Q_(e)])}const ey=1e3;function _t(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function ty(e,t){const n=Ja(),r=wf(e);r===void 0?n.set(e,[t]):r.length>=ey?(Va(e,r),n.set(e,[t])):n.set(e,[...r,t])}function ny(e,t,n){const{release:r,environment:i}=t.getOptions(),s={...e.attributes};_t(s,"user.id",n.id,!1),_t(s,"user.email",n.email,!1),_t(s,"user.name",n.username,!1),_t(s,"sentry.release",r),_t(s,"sentry.environment",i);const{name:o,version:a}=t.getSdkMetadata()?.sdk??{};_t(s,"sentry.sdk.name",o),_t(s,"sentry.sdk.version",a);const c=t.getIntegrationByName("Replay"),u=c?.getReplayId(!0);return _t(s,"sentry.replay_id",u),u&&c?.getRecordingMode()==="buffer"&&_t(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}function ry(e,t,n,r){const[,i]=vf(t,n),s=Gn(n),o=s?s.spanContext().traceId:i?.trace_id,a=s?s.spanContext().spanId:void 0,c=ge(),u=Ef(c);return{timestamp:c,trace_id:o??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...ss(r),...ss(e.attributes,"skip-undefined"),[u.key]:u.value}}}function iy(e,t){const n=t?.scope??z(),r=t?.captureSerializedMetric??ty,i=n?.getClient()??C();if(!i){T&&g.warn("No client available to capture metric.");return}const{_experiments:s,enableMetrics:o,beforeSendMetric:a}=i.getOptions();if(!(o??s?.enableMetrics??!0)){T&&g.warn("metrics option not enabled, metric will not be captured.");return}const{user:u,attributes:d}=Bs(Se(),n),l=ny(e,i,u);i.emit("processMetric",l);const p=a||s?.beforeSendMetric,f=p?p(l):l;if(!f){T&&g.log("`beforeSendMetric` returned `null`, will not send metric.");return}const h=ry(f,i,n,d);T&&g.log("[Metric]",h),r(i,h),i.emit("afterCaptureMetric",f)}function Va(e,t){const n=t??wf(e)??[];if(n.length===0)return;const r=e.getOptions(),i=Z_(n,r._metadata,r.tunnel,e.getDsn());Ja().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function wf(e){return Ja().get(e)}function Ja(){return ir("clientToMetricBufferMap",()=>new WeakMap)}function Ya(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const Ka=Symbol.for("SentryBufferFullError");function Xa(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function i(o){if(!n())return za(Ka);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function s(o){if(!t.size)return Jr(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(u=>Ya(setTimeout(()=>u(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:i,drain:s}}const sy=60*1e3;function If(e,t=Wr()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?sy:r-t}function oy(e,t){return e[t]||e.all||0}function kf(e,t,n=Wr()){return oy(e,t)>n}function Cf(e,{statusCode:t,headers:n},r=Wr()){const i={...e},s=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(s)for(const a of s.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)i.all=r+p;else for(const f of u.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[f]=r+p):i[f]=r+p}else o?i.all=r+If(o,r):t===429&&(i.all=r+60*1e3);return i}const Rf=64;function ay(e,t,n=Xa(e.bufferSize||Rf)){let r={};const i=o=>n.drain(o);function s(o){const a=[];if(hn(o,(l,p)=>{const f=uu(p);kf(r,f)?e.recordDroppedEvent("ratelimit_backoff",f):a.push(l)}),a.length===0)return Promise.resolve({});const c=ut(o[0],a),u=l=>{if(Zo(c,["client_report"])){T&&g.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}hn(c,(p,f)=>{e.recordDroppedEvent(l,uu(f))})},d=()=>t({body:rs(c)}).then(l=>l.statusCode===413?(T&&g.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(T&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&g.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Cf(r,l),l),l=>{throw u("network_error"),T&&g.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===Ka)return T&&g.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:s,flush:i}}function cy(e,t,n){const r=[{type:"client_report"},{timestamp:In(),discarded_events:e}];return ut(t?{dsn:t}:{},[r])}function Af(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function uy(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[$a],exclusive_time:o?.[or],measurements:e.measurements,is_segment:!0}}function ly(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&&{[$a]:e.profile_id},...e.exclusive_time&&{[or]:e.exclusive_time}}}},measurements:e.measurements}}const wu="Not capturing exception because it's already been captured.",Iu="Discarded session because of missing or non-string release",xf=Symbol.for("SentryInternalError"),Mf=Symbol.for("SentryDoNotSendEventError"),dy=5e3;function Di(e){return{message:e,[xf]:!0}}function To(e){return{message:e,[Mf]:!0}}function ku(e){return!!e&&typeof e=="object"&&xf in e}function Cu(e){return!!e&&typeof e=="object"&&Mf in e}function Ru(e,t,n,r,i){let s=0,o,a=!1;e.on(n,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,c=>{s+=r(c),s>=8e5?i(e):a||(a=!0,o=Ya(setTimeout(()=>{i(e)},dy)))}),e.on("flush",()=>{i(e)})}class fy{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Xa(t.transportOptions?.bufferSize??Rf),t.dsn?this._dsn=Kd(t.dsn):T&&g.warn("No DSN provided, client will not send events."),this._dsn){const r=Sf(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Ru(this,"afterCaptureLog","flushLogs",gy,as),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Ru(this,"afterCaptureMetric","flushMetrics",my,Va)}captureException(t,n,r){const i=we();if(tu(t))return T&&g.log(wu),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(t,s).then(o=>this._captureEvent(o,s,r)).then(o=>o),"error"),s.event_id}captureMessage(t,n,r,i){const s={event_id:we(),...r},o=Os(t)?t:String(t),a=kt(t),c=a?this.eventFromMessage(o,n,s):this.eventFromException(t,s);return this._process(()=>c.then(u=>this._captureEvent(u,s,i)),a?"unknown":"error"),s.event_id}captureEvent(t,n,r){const i=we();if(n?.originalException&&tu(n.originalException))return T&&g.log(wu),i;const s={event_id:i,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope,u=Au(t.type);return this._process(()=>this._captureEvent(t,s,a||r,c),u),s.event_id}captureSession(t){this.sendSession(t),zn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){as(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];bf(this,t,this._integrations),n||vu(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Kg(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Hg(r,Gg(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){const{release:n,environment:r=Ds}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){T&&g.warn(Iu);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){T&&g.warn(Iu);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=Yg(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;T&&g.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return T&&g.error("Error while sending envelope:",n),{}}return T&&g.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=W_(this,t),vu(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0,r=!1;for(const c of s)if(c.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(zn(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),mf(s,t,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...Wd(r)},...a.contexts};const c=Ha(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=z(),i=Se()){return T&&ta(t)&&g.log(`Captured error event \`${Af(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{T&&(Cu(s)?g.log(s.message):ku(s)?g.warn(s.message):g.warn(s))})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:o}=s,a=Nf(t),c=ta(t),d=`before send for type \`${t.type||"error"}\``,l=typeof o>"u"?void 0:pn(o);if(c&&typeof l=="number"&&Et()>l)return this.recordDroppedEvent("sample_rate","error"),za(To(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const p=Au(t.type);return this._prepareEvent(t,n,r,i).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",p),To("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return f;const m=hy(this,s,f,n);return py(m,d)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",p),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw To(`${d} returned \`null\`, will not send event.`)}const h=r.getSession()||i.getSession();if(c&&h&&this._updateSessionFromEvent(h,f),a){const _=f.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=f.spans?f.spans.length:0,b=_-y;b>0&&this.recordDroppedEvent("before_send","span",b)}const m=f.transaction_info;if(a&&m&&f.transaction!==t.transaction){const _="custom";f.transaction_info={...m,source:_}}return this.sendEvent(f,n),f}).then(null,f=>{throw Cu(f)||ku(f)?f:(this.captureException(f,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:f}),Di(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
10
|
+
Reason: ${f}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Ka&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){T&&g.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){T&&g.log("No outcomes to send");return}if(!this._dsn){T&&g.log("No dsn provided, will not send outcomes");return}T&&g.log("Sending outcomes:",t);const n=cy(t,this._options.tunnel&&Lt(this._dsn));this.sendEnvelope(n)}}function Au(e){return e==="replay_event"?"replay":e||"error"}function py(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Tn(e))return e.then(r=>{if(!Be(r)&&r!==null)throw Di(n);return r},r=>{throw Di(`${t} rejected with ${r}`)});if(!Be(e)&&e!==null)throw Di(n);return e}function hy(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(ta(c)&&i)return i(c,r);if(Nf(c)){if(o||a){const u=uy(c);if(a?.length&&ts(u,a))return null;if(o){const d=o(u);d?c=jr(n,ly(d)):Xo()}if(c.spans){const d=[],l=c.spans;for(const f of l){if(a?.length&&ts(f,a)){Lg(l,f);continue}if(o){const h=o(f);h?d.push(h):(Xo(),d.push(f))}else d.push(f)}const p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(s){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return s(c,r)}}return c}function ta(e){return e.type===void 0}function Nf(e){return e.type==="transaction"}function my(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Of(e.attributes)}function gy(e){let t=0;return e.message&&(t+=e.message.length*2),t+Of(e.attributes)}function Of(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*xu(n[0]):kt(n)?t+=xu(n):t+=100}),t}function xu(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function _y(e){return bt(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Mu(e){return _y(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function yy(e,t){t.debug===!0&&(T?g.enable():Ot(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),z().update(t.initialScope);const r=new e(t);return Sy(r),r.init(),r}function Sy(e){z().setClient(e)}const wo=100,Io=5e3,by=36e5;function Ey(e){function t(...n){T&&g.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let s=Io,o;function a(l,p,f){return Zo(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,p,f):!0}function c(l){o&&clearTimeout(o),o=Ya(setTimeout(async()=>{o=void 0;const p=await i.shift();p&&(t("Attempting to send previously queued event"),p[0].sent_at=new Date().toISOString(),d(p,!0).catch(f=>{t("Failed to retry sending",f)}))},l))}function u(){o||(c(s),s=Math.min(s*2,by))}async function d(l,p=!1){if(!p&&Zo(l,["replay_event","replay_recording"]))return await i.push(l),c(wo),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const f=await r.send(l);let h=wo;if(f){if(f.headers?.["retry-after"])h=If(f.headers["retry-after"]);else if(f.headers?.["x-sentry-rate-limits"])h=6e4;else if((f.statusCode||0)>=400)return f}return c(h),s=Io,f}catch(f){if(await a(l,f,s))return p?await i.unshift(l):await i.push(l),u(),t("Error sending. Event queued.",f),{};throw f}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(s=Io,c(wo)),r.flush(l))}}}const ko="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function Lf(e,t){let n;return hn(e,(r,i)=>(t.includes(i)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function vy(e,t){return n=>{const r=e(n);return{...r,send:async i=>{const s=Lf(i,["event","transaction","profile","replay_event"]);return s&&(s.release=t),r.send(i)}}}}function Ty(e,t){return ut(t?{...e[0],dsn:t}:e[0],e[1])}function cM(e,t){return n=>{const r=e(n),i=new Map,s=t||(u=>{const d=u.getEvent();return d?.extra?.[ko]&&Array.isArray(d.extra[ko])?d.extra[ko]:[]});function o(u,d){const l=d?`${u}:${d}`:u;let p=i.get(l);if(!p){const f=Vd(u);if(!f)return;const h=Sf(f,n.tunnel);p=d?vy(e,d)({...n,url:h}):e({...n,url:h}),i.set(l,p)}return[u,p]}async function a(u){function d(h){const m=h?.length?h:["event"];return Lf(u,m)}const l=s({envelope:u,getEvent:d}).map(h=>typeof h=="string"?o(h,void 0):o(h.dsn,h.release)).filter(h=>!!h),p=l.length?l:[["",r]];return(await Promise.all(p.map(([h,m])=>m.send(Ty(u,h)))))[0]}async function c(u){const d=[...i.values(),r];return(await Promise.all(d.map(p=>p.flush(u)))).every(p=>p)}return{send:a,flush:c}}}const wy="thismessage:/";function Qa(e){return"isRelative"in e}function Za(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?wy:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function Iy(e){if(Qa(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function fn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Pf(e){return e.split(/[?#]/,1)[0]}function zt(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&s!==-1){const a=e.slice(s+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${i?",base64":""}${o?`,${o}`:""}`}return e}function Df(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return Cy(e,n)||ky(e,r)}function ky(e,t){return t?Nu(e)===Nu(t):!1}function Cy(e,t){const n=Za(e);return!n||Qa(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Nu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Ry(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const Ay=Ry;function xy(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 ec(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:qt})),i.version=qt)}function Ff(e={}){const t=e.client||C();if(!L_()||!t)return{};const n=Nt(),r=Zt(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||z(),s=e.span||Te(),o=s?Rg(s):My(i),a=s?at(s):Ha(t,i),c=Gd(a);if(!Xd.test(o))return g.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(d.traceparent=s?Ag(s):Ny(i)),d}function My(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Zd(t,r,n)}function Ny(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ef(t,r,n)}function Oy(e,t,n){let r,i,s;const o=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function d(){return i!==void 0||s!==void 0?c():r}function l(){return i&&clearTimeout(i),i=a(c,t),o&&s===void 0&&(s=a(c,o)),r}return l.cancel=u,l.flush=d,l}const Ly=100;function xt(e,t){const n=C(),r=Se();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Ly}=n.getOptions();if(s<=0)return;const a={timestamp:In(),...e},c=i?Ot(()=>i(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,s))}let Ou;const Py="FunctionToString",Lu=new WeakMap,Dy=(()=>({name:Py,setupOnce(){Ou=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Da(this),n=Lu.has(C())&&t!==void 0?t:this;return Ou.apply(n,e)}}catch{}},setup(e){Lu.set(e,!0)}})),Fy=Dy,$y=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Uy="EventFilters",By=(e={})=>{let t;return{name:Uy,setup(n){const r=n.getOptions();t=Pu(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=Pu(e,s)}return Wy(n,t)?null:n}}},Hy=((e={})=>({...By(e),name:"InboundFilters"}));function Pu(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:$y],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Wy(e,t){if(e.type){if(e.type==="transaction"&&qy(e,t.ignoreTransactions))return T&&g.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
11
|
+
Event: ${sn(e)}`),!0}else{if(jy(e,t.ignoreErrors))return T&&g.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
12
|
+
Event: ${sn(e)}`),!0;if(Jy(e))return T&&g.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
13
|
+
Event: ${sn(e)}`),!0;if(zy(e,t.denyUrls))return T&&g.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
14
|
+
Event: ${sn(e)}.
|
|
15
|
+
Url: ${cs(e)}`),!0;if(!Gy(e,t.allowUrls))return T&&g.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
16
|
+
Event: ${sn(e)}.
|
|
17
|
+
Url: ${cs(e)}`),!0}return!1}function jy(e,t){return t?.length?Af(e).some(n=>ot(n,t)):!1}function qy(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ot(n,t):!1}function zy(e,t){if(!t?.length)return!1;const n=cs(e);return n?ot(n,t):!1}function Gy(e,t){if(!t?.length)return!0;const n=cs(e);return n?ot(n,t):!0}function Vy(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function cs(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Vy(n):null}catch{return T&&g.error(`Cannot extract url for event ${sn(e)}`),null}}function Jy(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Yy(e,t,n,r,i,s){if(!i.exception?.values||!s||!Ct(s.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=na(e,t,r,s.originalException,n,i.exception.values,o,0))}function na(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let c=[...s];if(Ct(r[i],Error)){Du(o,a,r);const u=e(t,r[i]),d=c.length;Fu(u,i,d,a),c=na(e,t,n,r[i],i,[u,...c],u,d)}return $f(r)&&r.errors.forEach((u,d)=>{if(Ct(u,Error)){Du(o,a,r);const l=e(t,u),p=c.length;Fu(l,`errors[${d}]`,p,a),c=na(e,t,n,u,i,[l,...c],l,p)}}),c}function $f(e){return Array.isArray(e.errors)}function Du(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...$f(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Fu(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Uf=new Map,$u=new Set;function Ky(e){if(F._sentryModuleMetadata)for(const t of Object.keys(F._sentryModuleMetadata)){const n=F._sentryModuleMetadata[t];if($u.has(t))continue;$u.add(t);const r=e(t);for(const i of r.reverse())if(i.filename){Uf.set(i.filename,n);break}}}function Xy(e,t){return Ky(e),Uf.get(t)}function Bf(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const i=Xy(e,r.filename);i&&(r.module_metadata=i)})})}function Hf(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const uM=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{hn(t,(n,r)=>{if(r==="event"){const i=Array.isArray(n)?n[1]:void 0;i&&(Hf(i),n[1]=i)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;Bf(n,t)})}});function tc(e){const t="console";Xt(t,e),Qt(t,Qy)}function Qy(){"console"in F&&Ma.forEach(function(e){e in F.console&&Ae(F.console,e,function(t){return Ki[e]=t,function(...n){Qe("console",{args:n,level:e}),Ki[e]?.apply(F.console,n)}})})}function us(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Zy="CaptureConsole",eS=((e={})=>{const t=e.levels||Ma,n=e.handled??!0;return{name:Zy,setup(r){"console"in F&&tc(({args:i,level:s})=>{C()!==r||!t.includes(s)||tS(i,s,n)})}}}),lM=eS;function tS(e,t,n){const r=us(t),i=new Error,s={level:us(t),extra:{arguments:e}};ct(o=>{if(o.addEventProcessor(u=>(u.logger="console",Rt(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){const u=`Assertion failed: ${Xi(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),o.captureMessage(u,r,{captureContext:s,syntheticException:i})}return}const a=e.find(u=>u instanceof Error);if(a){pe(a,s);return}const c=Xi(e," ");o.captureMessage(c,r,{captureContext:s,syntheticException:i})})}const nS="Dedupe",rS=(()=>{let e;return{name:nS,processEvent(t){if(t.type)return t;try{if(sS(t,e))return T&&g.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),iS=rS;function sS(e,t){return t?!!(oS(e,t)||aS(e,t)):!1}function oS(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!jf(e,t)||!Wf(e,t))}function aS(e,t){const n=Uu(t),r=Uu(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!jf(e,t)||!Wf(e,t))}function Wf(e,t){let n=Go(e),r=Go(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function jf(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 Uu(e){return e.exception?.values?.[0]}const cS="ExtraErrorData",uS=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:cS,processEvent(r,i,s){const{maxValueLength:o}=s.getOptions();return lS(r,i,t,n,o)}}}),dM=uS;function lS(e,t={},n,r,i){if(!t.originalException||!bt(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,o=qf(t.originalException,r,i);if(o){const a={...e.contexts},c=Re(o,n);return Be(c)&&(Me(c,"__sentry_skip_normalization__",!0),a[s]=c),{...e,contexts:a}}return e}function qf(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const s of Object.keys(e)){if(r.indexOf(s)!==-1)continue;const o=e[s];i[s]=bt(o)||typeof o=="string"?n?xr(`${o}`,n):`${o}`:o}if(t&&e.cause!==void 0)if(bt(e.cause)){const s=e.cause.name||e.cause.constructor.name;i.cause={[s]:qf(e.cause,!1,n)}}else i.cause=e.cause;if(typeof e.toJSON=="function"){const s=e.toJSON();for(const o of Object.keys(s)){const a=s[o];i[o]=bt(a)?a.toString():a}}return i}catch(r){T&&g.error("Unable to extract extra data from the Error object:",r)}return null}function dS(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i==="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const fS=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function pS(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=fS.exec(t);return n?n.slice(1):[]}function Bu(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n=i.charAt(0)==="/")}return t=dS(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function Hu(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function hS(e,t){e=Bu(e).slice(1),t=Bu(t).slice(1);const n=Hu(e.split("/")),r=Hu(t.split("/")),i=Math.min(n.length,r.length);let s=i;for(let a=0;a<i;a++)if(n[a]!==r[a]){s=a;break}let o=[];for(let a=s;a<n.length;a++)o.push("..");return o=o.concat(r.slice(s)),o.join("/")}function mS(e,t){return pS(e)[2]||""}const gS="RewriteFrames",fM=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in F&&!!F.window,i=e.iteratee||_S({isBrowser:r,root:t,prefix:n});function s(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:o(c.stacktrace)}}))}}}catch{return a}}function o(a){return{...a,frames:a?.frames?.map(c=>i(c))}}return{name:gS,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=s(c)),c}}};function _S({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){const o=r.filename;o.indexOf(t)===0&&(r.filename=o.replace(t,n))}}else if(i||s){const o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?hS(t,o):mS(o);r.filename=`${n}${a}`}return r}}const yS=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],SS=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],bS={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},zf=["select","insert","upsert","update","delete"];function Hs(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Ws(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function ES(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function vS(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let i;return n?.startsWith("fts")?i="textSearch":n?.startsWith("plfts")?i="textSearch[plain]":n?.startsWith("phfts")?i="textSearch[phrase]":n?.startsWith("wfts")?i="textSearch[websearch]":i=n&&bS[n]||"filter",`${i}(${e}, ${r.join(".")})`}function Wu(e,t=!1){return new Proxy(e,{apply(n,r,i){return Pt({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[X]:"auto.db.supabase",[ke]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},s=>Reflect.apply(n,r,i).then(o=>(o&&typeof o=="object"&&"error"in o&&o.error?(s.setStatus({code:ee}),pe(o.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):s.setStatus({code:Ps}),s.end(),o)).catch(o=>{throw s.setStatus({code:ee}),s.end(),pe(o,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),o}).then(...i))}})}function TS(e){const t=e.auth;if(!(!t||Ws(e.auth))){for(const n of yS){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=Wu(r))}for(const n of SS){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=Wu(r,!0))}Hs(e.auth)}}function wS(e){Ws(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const i=Reflect.apply(t,n,r),s=i.constructor;return kS(s),i}}),Hs(e.prototype.from))}function IS(e){Ws(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const i=zf,s=n,o=ES(s.method,s.headers);if(!i.includes(o)||!s?.url?.pathname||typeof s.url.pathname!="string")return Reflect.apply(t,n,r);const a=s.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];for(const[f,h]of s.url.searchParams.entries())u.push(vS(f,h));const d=Object.create(null);if(Be(s.body))for(const[f,h]of Object.entries(s.body))d[f]=h;const l=`${o==="select"?"":`${o}${d?"(...) ":""}`}${u.join(" ")} from(${c})`,p={"db.table":c,"db.schema":s.schema,"db.url":s.url.origin,"db.sdk":s.headers["X-Client-Info"],"db.system":"postgresql","db.operation":o,[X]:"auto.db.supabase",[ke]:"db"};return u.length&&(p["db.query"]=u),Object.keys(d).length&&(p["db.body"]=d),Pt({name:l,attributes:p},f=>Reflect.apply(t,n,[]).then(h=>{if(f&&(h&&typeof h=="object"&&"status"in h&&Qi(f,h.status||500),f.end()),h.error){const y=new Error(h.error.message);h.error.code&&(y.code=h.error.code),h.error.details&&(y.details=h.error.details);const b={};u.length&&(b.query=u),Object.keys(d).length&&(b.body=d),pe(y,O=>(O.addEventProcessor(I=>(Rt(I,{handled:!1,type:"auto.db.supabase.postgres"}),I)),O.setContext("supabase",b),O))}const m={type:"supabase",category:`db.${o}`,message:l},_={};return u.length&&(_.query=u),Object.keys(d).length&&(_.body=d),Object.keys(_).length&&(m.data=_),xt(m),h},h=>{throw f&&(Qi(f,500),f.end()),h}).then(...r))}}),Hs(e.prototype.then))}function kS(e){for(const t of zf)Ws(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,i){const s=Reflect.apply(n,r,i),o=s.constructor;return T&&g.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),IS(o),s}}),Hs(e.prototype[t]))}const CS=e=>{if(!e){T&&g.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;wS(t),TS(e)},RS="Supabase",AS=(e=>({setupOnce(){CS(e)},name:RS})),pM=e=>AS(e.supabaseClient),xS=10,MS="ZodErrors";function NS(e){return bt(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function OS(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function LS(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function PS(e){const t=new Set;for(const r of e.issues){const i=LS(r.path);i.length>0&&t.add(i)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const i=e.issues[0];i!==void 0&&"expected"in i&&typeof i.expected=="string"&&(r=i.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${xr(n.join(", "),100)}`}function DS(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!NS(r.originalException)||r.originalException.issues.length===0)return n;try{const s=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(OS);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:s})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:PS(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":s.slice(0,e)}}}catch(i){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:i instanceof Error?`${i.name}: ${i.message}
|
|
18
|
+
${i.stack}`:"unknown"}}}}}const FS=((e={})=>{const t=e.limit??xS;return{name:MS,processEvent(n,r){return DS(t,e.saveZodIssuesAsAttachment,n,r)}}}),hM=FS,mM=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{hn(n,(r,i)=>{if(i==="event"){const s=Array.isArray(r)?r[1]:void 0;s&&(Hf(s),r[1]=s)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;Bf(r,n)})},processEvent(t){const n=US(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](s=>!s.some(o=>e.filterKeys.includes(o)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function $S(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(HS))return!1;if(e.pre_context){const n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes(BS))return!0}return!1}function US(e,t){const n=Go(e);if(n)return n.filter((r,i)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!$S(r,i)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(i=>i.startsWith(ju)).map(i=>i.slice(ju.length)):[])}const ju="_sentryBundlerPluginAppKey:",BS="Attempt to invoke user-land function",HS="fn.apply(this, wrappedArguments)",WS=100,jS=10,hi="flag.evaluation.";function ar(e){const n=z().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function mn(e,t,n=WS){const r=z().getScopeData().contexts;r.flags||(r.flags={values:[]});const i=r.flags.values;qS(i,e,t,n)}function qS(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){T&&g.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const i=e.findIndex(s=>s.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function gn(e,t,n=jS){if(typeof t!="boolean")return;const r=Te();if(!r)return;const i=G(r).data;if(`${hi}${e}`in i){r.setAttribute(`${hi}${e}`,t);return}Object.keys(i).filter(o=>o.startsWith(hi)).length<n&&r.setAttribute(`${hi}${e}`,t)}const gM=()=>({name:"FeatureFlags",processEvent(e,t,n){return ar(e)},addFeatureFlag(e,t){mn(e,t),gn(e,t)}}),zS=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&Ae(t,"isOn",qu),typeof t.getFeatureValue=="function"&&Ae(t,"getFeatureValue",qu)},processEvent(t,n,r){return ar(t)}});function qu(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(mn(n,r),gn(n,r)),r}}const GS="ConversationId",VS=(()=>({name:GS,setup(e){e.on("spanStart",t=>{const n=z().getScopeData(),r=Se().getScopeData(),i=n.conversationId||r.conversationId;i&&t.setAttribute(lg,i)})}})),JS=VS;function YS(e,t,n,r,i){if(!e.fetchData)return;const{method:s,url:o}=e.fetchData,a=Ze()&&t(o);if(e.endTimestamp){const f=e.fetchData.__span;if(!f)return;const h=r[f];h&&(a&&(QS(h,e),KS(h,e,i)),delete r[f]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},d=!!Te(),l=a&&d?Dt(eb(o,s,c)):new At;if(e.fetchData.__span=l.spanContext().spanId,r[l.spanContext().spanId]=l,n(e.fetchData.url)){const f=e.args[0],h={...e.args[1]||{}},m=XS(f,h,Ze()&&d?l:void 0,u);m&&(e.args[1]=h,h.headers=m)}const p=C();if(p){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",l,f)}return l}function KS(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function XS(e,t,n,r){const i=Ff({span:n,propagateTraceparent:r}),s=i["sentry-trace"],o=i.baggage,a=i.traceparent;if(!s)return;const c=t.headers||(La(e)?e.headers:void 0);if(c)if(ZS(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",s),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),o){const d=u.get("baggage");d?mi(d)||u.set("baggage",`${d},${o}`):u.set("baggage",o)}return u}else if(Array.isArray(c)){const u=[...c];c.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",s]),r&&a&&!c.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);const d=c.find(l=>l[0]==="baggage"&&mi(l[1]));return o&&!d&&u.push(["baggage",o]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,p=l?Array.isArray(l)?[...l]:[l]:[],f=l&&(Array.isArray(l)?l.find(m=>mi(m)):mi(l));o&&!f&&p.push(o);const h={...c,"sentry-trace":u??s,baggage:p.length>0?p.join(","):void 0};return r&&a&&!d&&(h.traceparent=a),h}else return{...i}}function QS(e,t){if(t.response){Qi(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:ee,message:"internal_error"});e.end()}function mi(e){return e.split(",").some(t=>t.trim().startsWith(es))}function ZS(e){return typeof Headers<"u"&&Ct(e,Headers)}function eb(e,t,n){if(e.startsWith("data:")){const s=zt(e);return{name:`${t} ${s}`,attributes:zu(e,void 0,t,n)}}const r=Za(e),i=r?Iy(r):e;return{name:`${t} ${i}`,attributes:zu(e,r,t,n)}}function zu(e,t,n,r){const i={url:zt(e),type:"fetch","http.method":n,[X]:r,[ke]:"http.client"};return t&&(Qa(t)||(i["http.url"]=zt(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function tb(e,t={},n=z()){const{message:r,name:i,email:s,url:o,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:s,name:i,message:r,url:o,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||C();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function cr(e,t,n,r,i){os({level:e,message:t,attributes:n,severityNumber:i},r)}function nb(e,t,{scope:n}={}){cr("trace",e,t,n)}function rb(e,t,{scope:n}={}){cr("debug",e,t,n)}function ib(e,t,{scope:n}={}){cr("info",e,t,n)}function sb(e,t,{scope:n}={}){cr("warn",e,t,n)}function ob(e,t,{scope:n}={}){cr("error",e,t,n)}function ab(e,t,{scope:n}={}){cr("fatal",e,t,n)}const _M=Object.freeze(Object.defineProperty({__proto__:null,debug:rb,error:ob,fatal:ab,fmt:Ay,info:ib,trace:nb,warn:sb},Symbol.toStringTag,{value:"Module"}));function ls(e,t,n){return"util"in F&&typeof F.util.format=="function"?F.util.format(...e):cb(e,t,n)}function cb(e,t,n){return e.map(r=>kt(r)?String(r):JSON.stringify(Re(r,t,n))).join(" ")}function Gf(e){return/%[sdifocO]/.test(e)}function Vf(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((i,s)=>{n[`sentry.message.parameter.${s}`]=i}),n}const ub="ConsoleLogs",Gu={[X]:"auto.log.console"},lb=((e={})=>{const t=e.levels||Ma;return{name:ub,setup(n){const{enableLogs:r,normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=n.getOptions();if(!r){T&&g.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}tc(({args:o,level:a})=>{if(C()!==n||!t.includes(a))return;const c=o[0],u=o.slice(1);if(a==="assert"){if(!c){const f=u.length>0?`Assertion failed: ${ls(u,i,s)}`:"Assertion failed";os({level:"error",message:f,attributes:Gu})}return}const d=a==="log",l=o.length>1&&typeof o[0]=="string"&&!Gf(o[0]),p={...Gu,...l?Vf(c,u):{}};os({level:d?"info":a,message:ls(o,i,s),severityNumber:d?10:void 0,attributes:p})})}}}),yM=lb;function nc(e,t,n,r){iy({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function db(e,t=1,n){nc("counter",e,t,n)}function fb(e,t,n){nc("gauge",e,t,n)}function pb(e,t,n){nc("distribution",e,t,n)}const SM=Object.freeze(Object.defineProperty({__proto__:null,count:db,distribution:pb,gauge:fb},Symbol.toStringTag,{value:"Module"})),hb=["trace","debug","info","warn","error","fatal"];function bM(e={}){const t=new Set(e.levels??hb),n=e.client;return{log(r){const{type:i,level:s,message:o,args:a,tag:c,date:u,...d}=r,l=n||C();if(!l)return;const p=_b(i,s);if(!t.has(p))return;const{normalizeDepth:f=3,normalizeMaxBreadth:h=1e3}=l.getOptions(),m={};for(const[y,b]of Object.entries(d))m[y]=Re(b,f,h);m["sentry.origin"]="auto.log.consola",c&&(m["consola.tag"]=c),i&&(m["consola.type"]=i),s!=null&&typeof s=="number"&&(m["consola.level"]=s);const _=Sb(yb(a,f,h),f,h);_?.attributes&&Object.assign(m,_.attributes),os({level:p,message:_?.message||o||a&&ls(a,f,h)||"",attributes:m})}}}const mb={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},gb={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function _b(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=mb[e];if(n)return n}if(typeof t=="number"){const n=gb[t];if(n)return n}return"info"}function yb(e,t,n){if(!e?.length)return{message:""};const r=ls(e,t,n),i=e[0];if(Be(i)){const s=typeof e[1]=="string"?2:1,o=e.slice(s);return{message:r,attributes:i,messageParameters:o}}else{const s=e.slice(1),o=s.length>0&&typeof i=="string"&&!Gf(i);return{message:r,messageTemplate:o?i:void 0,messageParameters:o?s:void 0}}}function Sb(e,t,n){const{message:r,attributes:i,messageTemplate:s,messageParameters:o}=e,a={};if(s&&o){const c=Vf(s,o);for(const[u,d]of Object.entries(c))a[u]=u.startsWith("sentry.message.parameter.")?Re(d,t,n):d}else o&&o.length>0&&o.forEach((c,u)=>{a[`sentry.message.parameter.${u}`]=Re(c,t,n)});return{message:r,attributes:{...Re(i,t,n),...a}}}const bb="gen_ai.prompt",js="gen_ai.system",He="gen_ai.request.model",rc="gen_ai.request.stream",qs="gen_ai.request.temperature",ic="gen_ai.request.max_tokens",zs="gen_ai.request.frequency_penalty",sc="gen_ai.request.presence_penalty",Gs="gen_ai.request.top_p",Jf="gen_ai.request.top_k",Eb="gen_ai.request.encoding_format",vb="gen_ai.request.dimensions",tn="gen_ai.response.finish_reasons",Ft="gen_ai.response.model",kn="gen_ai.response.id",Tb="gen_ai.response.stop_reason",_n="gen_ai.usage.input_tokens",yn="gen_ai.usage.output_tokens",Sn="gen_ai.usage.total_tokens",Yt="gen_ai.operation.name",bn="sentry.sdk_meta.gen_ai.input.messages.original_length",ur="gen_ai.input.messages",Kr="gen_ai.system_instructions",et="gen_ai.response.text",Vs="gen_ai.request.available_tools",Js="gen_ai.response.streaming",gt="gen_ai.response.tool_calls",Yf="gen_ai.agent.name",wb="gen_ai.pipeline.name",oc="gen_ai.conversation.id",Ib="gen_ai.usage.cache_creation_input_tokens",kb="gen_ai.usage.cache_read_input_tokens",Cb="gen_ai.invoke_agent",Rb="gen_ai.embeddings.input",Ab="gen_ai.tool.name",xb="gen_ai.tool.input",Mb="gen_ai.tool.output",Kf="openai.response.id",Xf="openai.response.model",Qf="openai.response.timestamp",Nb="openai.usage.completion_tokens",Ob="openai.usage.prompt_tokens",br={CHAT:"chat",EMBEDDINGS:"embeddings"},Vu="anthropic.response.timestamp";function Wn(e){return!e||typeof e!="object"?!1:Pb(e)||ep(e)||Lb(e)||tp(e)||np(e)||Db(e)||Fb(e)||$b(e)||Ub(e)||Bb(e)||Hb(e)||Wb(e)}function Lb(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):Zf(e):!1}function Zf(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function Pb(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&Wn(e.source)}function ep(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function tp(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function np(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function Db(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function Fb(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function $b(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function Ub(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function Bb(e){return"b64_json"in e}function Hb(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function Wb(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const mr="[Blob substitute]",jb=["image_url","data","content","b64_json","result","uri","image"];function Ir(e){const t={...e};Wn(t.source)&&(t.source=Ir(t.source)),ep(e)&&(t.inlineData={...e.inlineData,data:mr}),Zf(e)&&(t.image_url={...e.image_url,url:mr}),tp(e)&&(t.input_audio={...e.input_audio,data:mr}),np(e)&&(t.file={...e.file,file_data:mr});for(const n of jb)typeof t[n]=="string"&&(t[n]=mr);return t}const rp=2e4,ds=e=>new TextEncoder().encode(e).length,ac=e=>ds(JSON.stringify(e));function Ys(e,t){if(ds(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){const s=Math.floor((n+r)/2),o=e.slice(0,s);ds(o)<=t?(i=o,n=s+1):r=s-1}return i}function qb(e){return typeof e=="string"?e:"text"in e?e.text:""}function Ju(e,t){return typeof e=="string"?t:{...e,text:t}}function zb(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function ip(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function sp(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function Gb(e,t){const n={...e,content:""},r=ac(n),i=t-r;if(i<=0)return[];const s=Ys(e.content,i);return[{...e,content:s}]}function Vb(e,t){const{parts:n}=e,r=n.map(a=>Ju(a,"")),i=ac({...e,parts:r});let s=t-i;if(s<=0)return[];const o=[];for(const a of n){const c=qb(a),u=ds(c);if(u<=s)o.push(a),s-=u;else if(o.length===0){const d=Ys(c,s);d&&o.push(Ju(a,d));break}else break}return o.length<=0?[]:[{...e,parts:o}]}function Jb(e,t){if(!e)return[];if(typeof e=="string"){const n=Ys(e,t);return n?[n]:[]}return typeof e!="object"?[]:zb(e)?Gb(e,t):ip(e)?[e]:sp(e)?Vb(e,t):[]}function ra(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(ip(n)?r={...n,content:ra(n.content)}:"content"in n&&Wn(n.content)&&(r={...n,content:Ir(n.content)}),sp(n)&&(r={...r??n,parts:ra(n.parts)}),Wn(r)?r=Ir(r):Wn(n)&&(r=Ir(n))),r??n})}function Yb(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],i=ra([r]),s=i[0];return ac(s)<=n?i:Jb(s,n)}function Ks(e){return Yb(e,rp)}function Kb(e){return Ys(e,rp)}function Xr(e){const t=!!C()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function Qr(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function fs(e){return`gen_ai.${Qr(e)}`}function op(e,t){return e?`${e}.${t}`:t}function cc(e,t,n,r,i){if(t!==void 0&&e.setAttributes({[_n]:t}),n!==void 0&&e.setAttributes({[yn]:n}),t!==void 0||n!==void 0||r!==void 0||i!==void 0){const s=(t??0)+(n??0)+(r??0)+(i??0);e.setAttributes({[Sn]:s})}}function ap(e){if(typeof e=="string")return Kb(e);if(Array.isArray(e)){const t=Ks(e);return JSON.stringify(t)}return JSON.stringify(e)}function Zr(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(o=>o&&typeof o=="object"&&"role"in o&&o.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const i=JSON.stringify([{type:"text",content:r}]),s=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:i,filteredMessages:s}}const Xb=["responses.create","chat.completions.create","embeddings.create","conversations.create"],Qb=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],Zb=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Qb];function uc(e){return e.includes("chat.completions")||e.includes("responses")?br.CHAT:e.includes("embeddings")?br.EMBEDDINGS:e.includes("conversations")?br.CHAT:e.split(".").pop()||"unknown"}function eE(e){return`gen_ai.${uc(e)}`}function tE(e){return Xb.includes(e)}function nE(e,t){return e?`${e}.${t}`:t}function rE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function iE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function sE(e){if(e===null||typeof e!="object"||!("object"in e))return!1;const t=e;return t.object==="list"&&typeof t.model=="string"&&t.model.toLowerCase().includes("embedding")}function oE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="conversation"}function aE(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function cE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function uE(e,t,n){if(lc(e,t.id,t.model,t.created),t.usage&&Xs(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const r=t.choices.map(i=>i.finish_reason).filter(i=>i!==null);if(r.length>0&&e.setAttributes({[tn]:JSON.stringify(r)}),n){const i=t.choices.map(s=>s.message?.tool_calls).filter(s=>Array.isArray(s)&&s.length>0).flat();i.length>0&&e.setAttributes({[gt]:JSON.stringify(i)})}}}function lE(e,t,n){if(lc(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[tn]:JSON.stringify([t.status])}),t.usage&&Xs(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){const r=t;if(Array.isArray(r.output)&&r.output.length>0){const i=r.output.filter(s=>typeof s=="object"&&s!==null&&s.type==="function_call");i.length>0&&e.setAttributes({[gt]:JSON.stringify(i)})}}}function dE(e,t){e.setAttributes({[Xf]:t.model,[Ft]:t.model}),t.usage&&Xs(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}function fE(e,t){const{id:n,created_at:r}=t;e.setAttributes({[Kf]:n,[kn]:n,[oc]:n}),r&&e.setAttributes({[Qf]:new Date(r*1e3).toISOString()})}function Xs(e,t,n,r){t!==void 0&&e.setAttributes({[Ob]:t,[_n]:t}),n!==void 0&&e.setAttributes({[Nb]:n,[yn]:n}),r!==void 0&&e.setAttributes({[Sn]:r})}function lc(e,t,n,r){e.setAttributes({[Kf]:t,[kn]:t}),e.setAttributes({[Xf]:n,[Ft]:n}),e.setAttributes({[Qf]:new Date(r*1e3).toISOString()})}function pE(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function hE(e){const t={[He]:e.model??"unknown"};"temperature"in e&&(t[qs]=e.temperature),"top_p"in e&&(t[Gs]=e.top_p),"frequency_penalty"in e&&(t[zs]=e.frequency_penalty),"presence_penalty"in e&&(t[sc]=e.presence_penalty),"stream"in e&&(t[rc]=e.stream),"encoding_format"in e&&(t[Eb]=e.encoding_format),"dimensions"in e&&(t[vb]=e.dimensions);const n=pE(e);return n&&(t[oc]=n),t}function mE(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const i=t.chatCompletionToolCalls[r];n.function.arguments&&i?.function&&(i.function.arguments+=n.function.arguments)}}}function gE(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&mE(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function _E(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:ee,message:"internal_error"}),pe(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const i=e;if(!Zb.includes(i.type)){t.eventTypes.push(i.type);return}if(n&&(i.type==="response.output_item.done"&&"item"in i&&t.responsesApiToolCalls.push(i.item),i.type==="response.output_text.delta"&&"delta"in i&&i.delta)){t.responseTexts.push(i.delta);return}if("response"in i){const{response:s}=i;t.responseId=s.id??t.responseId,t.responseModel=s.model??t.responseModel,t.responseTimestamp=s.created_at??t.responseTimestamp,s.usage&&(t.promptTokens=s.usage.input_tokens,t.completionTokens=s.usage.output_tokens,t.totalTokens=s.usage.total_tokens),s.status&&t.finishReasons.push(s.status),n&&s.output_text&&t.responseTexts.push(s.output_text)}}async function*yE(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const i of e)cE(i)?gE(i,r,n):aE(i)&&_E(i,r,n,t),yield i}finally{lc(t,r.responseId,r.responseModel,r.responseTimestamp),Xs(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[Js]:!0}),r.finishReasons.length&&t.setAttributes({[tn]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[et]:r.responseTexts.join("")});const s=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];s.length>0&&t.setAttributes({[gt]:JSON.stringify(s)}),t.end()}}function SE(e){const t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],i=[...t,...r];if(i.length!==0)try{return JSON.stringify(i)}catch(s){T&&g.error("Failed to serialize OpenAI tools:",s);return}}function bE(e,t){const n={[js]:"openai",[Yt]:uc(t),[X]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],i=SE(r);i&&(n[Vs]=i),Object.assign(n,hE(r))}else n[He]="unknown";return n}function EE(e,t,n){if(!t||typeof t!="object")return;const r=t;if(rE(r)){if(uE(e,r,n),n&&r.choices?.length){const i=r.choices.map(s=>s.message?.content||"");e.setAttributes({[et]:JSON.stringify(i)})}}else iE(r)?(lE(e,r,n),n&&r.output_text&&e.setAttributes({[et]:r.output_text})):sE(r)?dE(e,r):oE(r)&&fE(e,r)}function Yu(e,t,n){if(n===br.EMBEDDINGS&&"input"in t){const a=t.input;if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(Rb,typeof a=="string"?a:JSON.stringify(a));return}const r="input"in t?t.input:"messages"in t?t.messages:void 0;if(!r||Array.isArray(r)&&r.length===0)return;const{systemInstructions:i,filteredMessages:s}=Zr(r);i&&e.setAttribute(Kr,i);const o=ap(s);e.setAttribute(ur,o),Array.isArray(s)?e.setAttribute(bn,s.length):e.setAttribute(bn,1)}async function vE(e,t){const n=e.catch(s=>{throw pe(s,{mechanism:{handled:!1,type:"auto.ai.openai"}}),s}),r=await t,i=await n;return i&&typeof i=="object"&&"data"in i?{...i,data:r}:r}function Ku(e,t){return Tn(e)?new Proxy(e,{get(n,r){const s=r in Promise.prototype||r===Symbol.toStringTag?t:n,o=Reflect.get(s,r);return r==="withResponse"&&typeof o=="function"?function(){const c=o.call(n);return vE(c,t)}:typeof o=="function"?o.bind(s):o}}):t}function TE(e,t,n,r){return function(...s){const o=bE(s,t),a=o[He]||"unknown",c=uc(t),u=s[0],d=u&&typeof u=="object"&&u.stream===!0,l={name:`${c} ${a}`,op:eE(t),attributes:o};if(d){let h;const m=Wt(l,_=>(h=e.apply(n,s),r.recordInputs&&u&&Yu(_,u,c),(async()=>{try{const y=await h;return yE(y,_,r.recordOutputs??!1)}catch(y){throw _.setStatus({code:ee,message:"internal_error"}),pe(y,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),_.end(),y}})()));return Ku(h,m)}let p;const f=Pt(l,h=>(p=e.apply(n,s),r.recordInputs&&u&&Yu(h,u,c),p.then(m=>(EE(h,m,r.recordOutputs),m),m=>{throw pe(m,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),m})));return Ku(p,f)}}function cp(e,t="",n){return new Proxy(e,{get(r,i){const s=r[i],o=nE(t,String(i));return typeof s=="function"&&tE(o)?TE(s,o,r,n):typeof s=="function"?s.bind(r):s&&typeof s=="object"?cp(s,o,n):s}})}function EM(e,t){return cp(e,"",Xr(t))}const wE=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function IE(e){return wE.includes(e)}function kE(e,t){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:n,filteredMessages:r}=Zr(t);n&&e.setAttributes({[Kr]:n});const i=Array.isArray(r)?r.length:1;e.setAttributes({[ur]:ap(r),[bn]:i})}const CE={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function up(e){return e&&CE[e]||"internal_error"}function RE(e,t){t.error&&(e.setStatus({code:ee,message:up(t.error.type)}),pe(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function AE(e){const{system:t,messages:n,input:r}=e,i=typeof t=="string"?[{role:"system",content:e.system}]:[],s=Array.isArray(r)?r:r!=null?[r]:void 0,o=Array.isArray(n)?n:n!=null?[n]:[],a=s??o;return[...i,...a]}function xE(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:ee,message:up(e.error?.type)}),pe(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function ME(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function NE(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function OE(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function LE(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let i;try{i=r?JSON.parse(r):{}}catch{i={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:i}),delete t.activeToolBlocks[e.index]}function lp(e,t,n,r){!(e&&typeof e=="object")||xE(e,r)||(ME(e,t),NE(e,t),OE(e,t,n),LE(e,t))}function PE(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[kn]:e.responseId}),e.responseModel&&t.setAttributes({[Ft]:e.responseModel}),cc(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[Js]:!0}),e.finishReasons.length>0&&t.setAttributes({[tn]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[et]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[gt]:JSON.stringify(e.toolCalls)}),t.end())}async function*DE(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const i of e)lp(i,r,n,t),yield i}finally{r.responseId&&t.setAttributes({[kn]:r.responseId}),r.responseModel&&t.setAttributes({[Ft]:r.responseModel}),cc(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[Js]:!0}),r.finishReasons.length>0&&t.setAttributes({[tn]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[et]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[gt]:JSON.stringify(r.toolCalls)}),t.end()}}function FE(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",i=>{lp(i,r,n,t)}),e.on("message",()=>{PE(r,t,n)}),e.on("error",i=>{pe(i,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:ee,message:"internal_error"}),t.end())}),e}function $E(e,t){const n={[js]:"anthropic",[Yt]:Qr(t),[X]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0];r.tools&&Array.isArray(r.tools)&&(n[Vs]=JSON.stringify(r.tools)),n[He]=r.model??"unknown","temperature"in r&&(n[qs]=r.temperature),"top_p"in r&&(n[Gs]=r.top_p),"stream"in r&&(n[rc]=r.stream),"top_k"in r&&(n[Jf]=r.top_k),"frequency_penalty"in r&&(n[zs]=r.frequency_penalty),"max_tokens"in r&&(n[ic]=r.max_tokens)}else t==="models.retrieve"||t==="models.get"?n[He]=e[0]:n[He]="unknown";return n}function ia(e,t){const n=AE(t);kE(e,n),"prompt"in t&&e.setAttributes({[bb]:JSON.stringify(t.prompt)})}function UE(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[et]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[gt]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[et]:t.completion}),"input_tokens"in t&&e.setAttributes({[et]:JSON.stringify(t.input_tokens)})}function BE(e,t){"id"in t&&"model"in t&&(e.setAttributes({[kn]:t.id,[Ft]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[Vu]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[Vu]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&cc(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function HE(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){RE(e,t);return}n&&UE(e,t),BE(e,t)}}function Xu(e,t,n){throw pe(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:ee,message:"internal_error"}),t.end()),e}function WE(e,t,n,r,i,s,o,a,c,u,d){const l=i[He]??"unknown",p={name:`${s} ${l}`,op:fs(o),attributes:i};return u&&!d?Wt(p,async f=>{try{c.recordInputs&&a&&ia(f,a);const h=await e.apply(n,r);return DE(h,f,c.recordOutputs??!1)}catch(h){return Xu(h,f,o)}}):Wt(p,f=>{try{c.recordInputs&&a&&ia(f,a);const h=t.apply(n,r);return FE(h,f,c.recordOutputs??!1)}catch(h){return Xu(h,f,o)}})}function jE(e,t,n,r){return new Proxy(e,{apply(i,s,o){const a=$E(o,t),c=a[He]??"unknown",u=Qr(t),d=typeof o[0]=="object"?o[0]:void 0,l=!!d?.stream,p=t==="messages.stream";return l||p?WE(e,i,n,o,a,u,t,d,r,l,p):Pt({name:`${u} ${c}`,op:fs(t),attributes:a},f=>(r.recordInputs&&d&&ia(f,d),Gr(()=>i.apply(n,o),h=>{pe(h,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},h=>HE(f,h,r.recordOutputs))))}})}function dp(e,t="",n){return new Proxy(e,{get(r,i){const s=r[i],o=op(t,String(i));return typeof s=="function"&&IE(o)?jE(s,o,r,n):typeof s=="function"?s.bind(r):s&&typeof s=="object"?dp(s,o,n):s}})}function vM(e,t){return dp(e,"",Xr(t))}const Qu=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],qE="google_genai",fp="chats.create",zE="chat";function GE(e,t){const n=e?.promptFeedback;if(n?.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:ee,message:"internal_error"}),pe(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function VE(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function JE(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const i of r?.content?.parts??[])n&&i.text&&t.responseTexts.push(i.text),i.functionCall&&t.toolCalls.push({type:"function",id:i.functionCall.id,name:i.functionCall.name,arguments:i.functionCall.args})}}function YE(e,t,n,r){!e||GE(e,r)||(VE(e,t),JE(e,t,n))}async function*KE(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const i of e)YE(i,r,n,t),yield i}finally{const i={[Js]:!0};r.responseId&&(i[kn]=r.responseId),r.responseModel&&(i[Ft]=r.responseModel),r.promptTokens!==void 0&&(i[_n]=r.promptTokens),r.completionTokens!==void 0&&(i[yn]=r.completionTokens),r.totalTokens!==void 0&&(i[Sn]=r.totalTokens),r.finishReasons.length&&(i[tn]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(i[et]=r.responseTexts.join("")),n&&r.toolCalls.length&&(i[gt]=JSON.stringify(r.toolCalls)),t.setAttributes(i),t.end()}}function XE(e){if(Qu.includes(e))return!0;const t=e.split(".").pop();return Qu.includes(t)}function QE(e){return e.includes("Stream")}function Er(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Er(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function Zu(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function ZE(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[qs]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[Gs]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[Jf]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[ic]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[zs]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[sc]=e.presencePenalty),t}function ev(e,t,n){const r={[js]:qE,[Yt]:Qr(e),[X]:"auto.ai.google_genai"};if(t){if(r[He]=Zu(t,n),"config"in t&&typeof t.config=="object"&&t.config){const i=t.config;if(Object.assign(r,ZE(i)),"tools"in i&&Array.isArray(i.tools)){const s=i.tools.flatMap(o=>o.functionDeclarations);r[Vs]=JSON.stringify(s)}}}else r[He]=Zu({},n);return r}function el(e,t){const n=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...Er(t.config.systemInstruction,"system")),"history"in t&&n.push(...Er(t.history,"user")),"contents"in t&&n.push(...Er(t.contents,"user")),"message"in t&&n.push(...Er(t.message,"user")),Array.isArray(n)&&n.length){const{systemInstructions:r,filteredMessages:i}=Zr(n);r&&e.setAttribute(Kr,r);const s=Array.isArray(i)?i.length:0;e.setAttributes({[bn]:s,[ur]:JSON.stringify(Ks(i))})}}function tv(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(Ft,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[_n]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[yn]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[Sn]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(i=>i.content?.parts&&Array.isArray(i.content.parts)?i.content.parts.map(s=>typeof s.text=="string"?s.text:"").filter(s=>s.length>0).join(""):"").filter(i=>i.length>0);r.length>0&&e.setAttributes({[et]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[gt]:JSON.stringify(r)})}}}function tl(e,t,n,r){const i=t===fp;return new Proxy(e,{apply(s,o,a){const c=a[0],u=ev(t,c,n),d=u[He]??"unknown",l=Qr(t);return QE(t)?Wt({name:`${l} ${d}`,op:fs(t),attributes:u},async p=>{try{r.recordInputs&&c&&el(p,c);const f=await s.apply(n,a);return KE(f,p,!!r.recordOutputs)}catch(f){throw p.setStatus({code:ee,message:"internal_error"}),pe(f,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),p.end(),f}}):Pt({name:i?`${l} ${d} create`:`${l} ${d}`,op:fs(t),attributes:u},p=>(r.recordInputs&&c&&el(p,c),Gr(()=>s.apply(n,a),f=>{pe(f,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},f=>{i||tv(p,f,r.recordOutputs)})))}})}function sa(e,t="",n){return new Proxy(e,{get:(r,i,s)=>{const o=Reflect.get(r,i,s),a=op(t,String(i));if(typeof o=="function"&&XE(a)){if(a===fp){const c=tl(o,a,r,n);return function(...d){const l=c(...d);return l&&typeof l=="object"?sa(l,zE,n):l}}return tl(o,a,r,n)}return typeof o=="function"?o.bind(r):o&&typeof o=="object"?sa(o,a,n):o}})}function TM(e,t){return sa(e,"",Xr(t))}const vr="auto.ai.langchain",nv={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Xe=(e,t,n)=>{n!=null&&(e[t]=n)},ze=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function Tt(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function An(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&Wn(n)?Ir(n):n);return JSON.stringify(t)}catch{return String(e)}return Tt(e)}function gr(e){const t=e.toLowerCase();return nv[t]??t}function nl(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function rl(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function dc(e){return e.map(t=>{const n=t._getType;if(typeof n=="function"){const i=n.call(t);return{role:gr(i),content:An(t.content)}}if(t.lc===1&&t.kwargs){const i=t.id,s=Array.isArray(i)&&i.length>0?i[i.length-1]:"",o=typeof s=="string"?nl(s):"user";return{role:gr(o),content:An(t.kwargs?.content)}}if(t.type){const i=String(t.type).toLowerCase();return{role:gr(i),content:An(t.content)}}if(t.role)return{role:gr(String(t.role)),content:An(t.content)};const r=t.constructor?.name;return r&&r!=="Object"?{role:gr(nl(r)),content:An(t.content)}:{role:"user",content:An(t.content)}})}function rv(e,t,n){const r={},i="kwargs"in e?e.kwargs:void 0,s=t?.temperature??n?.ls_temperature??i?.temperature;ze(r,qs,s);const o=t?.max_tokens??n?.ls_max_tokens??i?.max_tokens;ze(r,ic,o);const a=t?.top_p??i?.top_p;ze(r,Gs,a);const c=t?.frequency_penalty;ze(r,zs,c);const u=t?.presence_penalty;return ze(r,sc,u),t&&"stream"in t&&Xe(r,rc,!!t.stream),r}function pp(e,t,n,r,i){return{[js]:Tt(e??"langchain"),[Yt]:"chat",[He]:Tt(t),[X]:vr,...rv(n,r,i)}}function iv(e,t,n,r,i){const s=i?.ls_provider,o=r?.model??i?.ls_model_name??"unknown",a=pp(s,o,e,r,i);if(n&&Array.isArray(t)&&t.length>0){Xe(a,bn,t.length);const c=t.map(u=>({role:"user",content:u}));Xe(a,ur,Tt(c))}return a}function sv(e,t,n,r,i){const s=i?.ls_provider??e.id?.[2],o=r?.model??i?.ls_model_name??"unknown",a=pp(s,o,e,r,i);if(n&&Array.isArray(t)&&t.length>0){const c=dc(t.flat()),{systemInstructions:u,filteredMessages:d}=Zr(c);u&&Xe(a,Kr,u);const l=Array.isArray(d)?d.length:0;Xe(a,bn,l);const p=Ks(d);Xe(a,ur,Tt(p))}return a}function ov(e,t){const n=[],r=e.flat();for(const i of r){const s=i.message?.content;if(Array.isArray(s))for(const o of s){const a=o;a.type==="tool_use"&&n.push(a)}}n.length>0&&Xe(t,gt,Tt(n))}function av(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)ze(t,_n,n.promptTokens),ze(t,yn,n.completionTokens),ze(t,Sn,n.totalTokens);else if(r){ze(t,_n,r.input_tokens),ze(t,yn,r.output_tokens);const i=Number(r.input_tokens),s=Number(r.output_tokens),o=(Number.isNaN(i)?0:i)+(Number.isNaN(s)?0:s);o>0&&ze(t,Sn,o),r.cache_creation_input_tokens!==void 0&&ze(t,Ib,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&ze(t,kb,r.cache_read_input_tokens)}}function cv(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const u=e.generations.flat().map(d=>d.generationInfo?.finish_reason?d.generationInfo.finish_reason:d.generation_info?.finish_reason?d.generation_info.finish_reason:null).filter(d=>typeof d=="string");if(u.length>0&&Xe(n,tn,Tt(u)),ov(e.generations,n),t){const d=e.generations.flat().map(l=>l.text??l.message?.content).filter(l=>typeof l=="string");d.length>0&&Xe(n,et,Tt(d))}}av(e.llmOutput,n);const r=e.llmOutput,s=e.generations?.[0]?.[0]?.message,o=r?.model_name??r?.model??s?.response_metadata?.model_name;o&&Xe(n,Ft,o);const a=r?.id??s?.id;a&&Xe(n,kn,a);const c=r?.stop_reason??s?.response_metadata?.finish_reason;return c&&Xe(n,Tb,Tt(c)),n}function wM(e={}){const{recordInputs:t,recordOutputs:n}=Xr(e),r=new Map,i=o=>{const a=r.get(o);a?.isRecording()&&(a.end(),r.delete(o))},s={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(o,a,c,u,d,l,p,f){const h=rl(l),m=iv(o,a,t,h,p),_=m[He],y=m[Yt];Wt({name:`${y} ${_}`,op:"gen_ai.chat",attributes:{...m,[ke]:"gen_ai.chat"}},b=>(r.set(c,b),b))},handleChatModelStart(o,a,c,u,d,l,p,f){const h=rl(l),m=sv(o,a,t,h,p),_=m[He],y=m[Yt];Wt({name:`${y} ${_}`,op:"gen_ai.chat",attributes:{...m,[ke]:"gen_ai.chat"}},b=>(r.set(c,b),b))},handleLLMEnd(o,a,c,u,d){const l=r.get(a);if(l?.isRecording()){const p=cv(o,n);p&&l.setAttributes(p),i(a)}},handleLLMError(o,a){const c=r.get(a);c?.isRecording()&&(c.setStatus({code:ee,message:"internal_error"}),i(a)),pe(o,{mechanism:{handled:!1,type:`${vr}.llm_error_handler`}})},handleChainStart(o,a,c,u,d,l,p,f){const h=f||o.name||"unknown_chain",m={[X]:"auto.ai.langchain","langchain.chain.name":h};t&&(m["langchain.chain.inputs"]=JSON.stringify(a)),Wt({name:`chain ${h}`,op:"gen_ai.invoke_agent",attributes:{...m,[ke]:"gen_ai.invoke_agent"}},_=>(r.set(c,_),_))},handleChainEnd(o,a){const c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({"langchain.chain.outputs":JSON.stringify(o)}),i(a))},handleChainError(o,a){const c=r.get(a);c?.isRecording()&&(c.setStatus({code:ee,message:"internal_error"}),i(a)),pe(o,{mechanism:{handled:!1,type:`${vr}.chain_error_handler`}})},handleToolStart(o,a,c,u){const d=o.name||"unknown_tool",l={[X]:vr,[Ab]:d};t&&(l[xb]=a),Wt({name:`execute_tool ${d}`,op:"gen_ai.execute_tool",attributes:{...l,[ke]:"gen_ai.execute_tool"}},p=>(r.set(c,p),p))},handleToolEnd(o,a){const c=r.get(a);c?.isRecording()&&(n&&c.setAttributes({[Mb]:JSON.stringify(o)}),i(a))},handleToolError(o,a){const c=r.get(a);c?.isRecording()&&(c.setStatus({code:ee,message:"internal_error"}),i(a)),pe(o,{mechanism:{handled:!1,type:`${vr}.tool_error_handler`}})},copy(){return s},toJSON(){return{lc:1,type:"not_implemented",id:s.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:s.lc_id}}};return s}const hp="auto.ai.langgraph";function uv(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function lv(e){const t=e;let n=0,r=0,i=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const s=t.usage_metadata;return typeof s.input_tokens=="number"&&(n=s.input_tokens),typeof s.output_tokens=="number"&&(r=s.output_tokens),typeof s.total_tokens=="number"&&(i=s.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:i}}if(t.response_metadata&&typeof t.response_metadata=="object"){const s=t.response_metadata;if(s.tokenUsage&&typeof s.tokenUsage=="object"){const o=s.tokenUsage;typeof o.promptTokens=="number"&&(n=o.promptTokens),typeof o.completionTokens=="number"&&(r=o.completionTokens),typeof o.totalTokens=="number"&&(i=o.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:i}}function dv(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(Ft,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(tn,[r.finish_reason])}}function fv(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}function pv(e,t,n){const i=n?.messages;if(!i||!Array.isArray(i))return;const s=t?.length??0,o=i.length>s?i.slice(s):[];if(o.length===0)return;const a=uv(o);a&&e.setAttribute(gt,JSON.stringify(a));const c=dc(o);e.setAttribute(et,JSON.stringify(c));let u=0,d=0,l=0;for(const p of o){const f=lv(p);u+=f.inputTokens,d+=f.outputTokens,l+=f.totalTokens,dv(e,p)}u>0&&e.setAttribute(_n,u),d>0&&e.setAttribute(yn,d),l>0&&e.setAttribute(Sn,l)}function hv(e,t){return new Proxy(e,{apply(n,r,i){return Pt({op:"gen_ai.create_agent",name:"create_agent",attributes:{[X]:hp,[ke]:"gen_ai.create_agent",[Yt]:"create_agent"}},s=>{try{const o=Reflect.apply(n,r,i),a=i.length>0?i[0]:{};a?.name&&typeof a.name=="string"&&(s.setAttribute(Yf,a.name),s.updateName(`create_agent ${a.name}`));const c=o.invoke;return c&&typeof c=="function"&&(o.invoke=mv(c.bind(o),o,a,t)),o}catch(o){throw s.setStatus({code:ee,message:"internal_error"}),pe(o,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),o}})}})}function mv(e,t,n,r){return new Proxy(e,{apply(i,s,o){return Pt({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[X]:hp,[ke]:Cb,[Yt]:"invoke_agent"}},async a=>{try{const c=n?.name;c&&typeof c=="string"&&(a.setAttribute(wb,c),a.setAttribute(Yf,c),a.updateName(`invoke_agent ${c}`));const l=(o.length>1?o[1]:void 0)?.configurable?.thread_id;l&&typeof l=="string"&&a.setAttribute(oc,l);const p=fv(t);p&&a.setAttribute(Vs,JSON.stringify(p));const f=r.recordInputs,h=r.recordOutputs,m=o.length>0?o[0]?.messages??[]:[];if(m&&f){const y=dc(m),{systemInstructions:b,filteredMessages:O}=Zr(y);b&&a.setAttribute(Kr,b);const I=Ks(O),W=Array.isArray(O)?O.length:0;a.setAttributes({[ur]:JSON.stringify(I),[bn]:W})}const _=await Reflect.apply(i,s,o);return h&&pv(a,m??null,_),_}catch(c){throw a.setStatus({code:ee,message:"internal_error"}),pe(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}})}})}function IM(e,t){return e.compile=hv(e.compile,Xr(t)),e}function mp(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Jn=F;function gv(){return"history"in Jn&&!!Jn.history}function _v(){if(!("fetch"in Jn))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function oa(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function gp(){if(typeof EdgeRuntime=="string")return!0;if(!_v())return!1;if(oa(Jn.fetch))return!0;let e=!1;const t=Jn.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=oa(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){T&&g.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function yv(){return"ReportingObserver"in Jn}function fc(e,t){const n="fetch";Xt(n,e),Qt(n,()=>_p(void 0,t))}function Sv(e){const t="fetch-body-resolved";Xt(t,e),Qt(t,()=>_p(Ev))}function _p(e,t=!1){t&&!gp()||Ae(F,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:o}=vv(r),a={args:r,fetchData:{method:s,url:o},startTimestamp:ge()*1e3,virtualError:i,headers:Tv(r)};return e||Qe("fetch",{...a}),n.apply(F,r).then(async c=>(e?e(c):Qe("fetch",{...a,endTimestamp:ge()*1e3,response:c}),c),c=>{Qe("fetch",{...a,endTimestamp:ge()*1e3,error:c}),bt(c)&&c.stack===void 0&&(c.stack=i.stack,Me(c,"framesToPop",1));const d=C()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${f})`:Me(c,"__sentry_fetch_url_host__",f)}catch{}throw c})}})}async function bv(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(o)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ev(e){let t;try{t=e.clone()}catch{return}bv(t,()=>{Qe("fetch-body-resolved",{endTimestamp:ge()*1e3,response:e})})}function Fi(e,t){return!!e&&typeof e=="object"&&!!e[t]}function il(e){return typeof e=="string"?e:e?Fi(e,"url")?e.url:e.toString?e.toString():"":""}function vv(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:il(n),method:Fi(r,"method")?String(r.method).toUpperCase():La(n)&&Fi(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:il(t),method:Fi(t,"method")?String(t.method).toUpperCase():"GET"}}function Tv(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(La(t))return new Headers(t.headers)}catch{}}function wv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Iv(){return"npm"}function kv(){return!wv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function ps(){return typeof window<"u"&&(!kv()||Cv())}function Cv(){return F.process?.type==="renderer"}const it=F,ae=it.document,Tr=it.navigator,yp="Report a Bug",Rv="Cancel",Av="Send Bug Report",xv="Confirm",Mv="Report a Bug",Nv="your.email@example.org",Ov="Email",Lv="What's the bug? What did you expect?",Pv="Description",Dv="Your Name",Fv="Name",$v="Thank you for your report!",Uv="(required)",Bv="Add a screenshot",Hv="Remove screenshot",Wv="Highlight",jv="Hide",qv="Remove",zv="widget",Gv="api",Vv=5e3,Jv=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=C();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&z().setTags(e.tags);const r=tb({source:Gv,url:wn(),...e},t);return new Promise((i,s)=>{const o=setTimeout(()=>s("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(o),a(),u?.statusCode&&u.statusCode>=200&&u.statusCode<300?i(r):u?.statusCode===403?s("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):s("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},$i=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Yv(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Tr.userAgent)||/Macintosh/i.test(Tr.userAgent)&&Tr.maxTouchPoints&&Tr.maxTouchPoints>1||!isSecureContext)}function gi(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Kv(e){const t=ae.createElement("style");return t.textContent=`
|
|
19
|
+
.widget__actor {
|
|
20
|
+
position: fixed;
|
|
21
|
+
z-index: var(--z-index);
|
|
22
|
+
margin: var(--page-margin);
|
|
23
|
+
inset: var(--actor-inset);
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
padding: 16px;
|
|
29
|
+
|
|
30
|
+
font-family: inherit;
|
|
31
|
+
font-size: var(--font-size);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
line-height: 1.14em;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
|
|
36
|
+
background: var(--actor-background, var(--background));
|
|
37
|
+
border-radius: var(--actor-border-radius, 1.7em/50%);
|
|
38
|
+
border: var(--actor-border, var(--border));
|
|
39
|
+
box-shadow: var(--actor-box-shadow, var(--box-shadow));
|
|
40
|
+
color: var(--actor-color, var(--foreground));
|
|
41
|
+
fill: var(--actor-color, var(--foreground));
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transition: transform 0.2s ease-in-out;
|
|
45
|
+
transform: translate(0, 0) scale(1);
|
|
46
|
+
}
|
|
47
|
+
.widget__actor[aria-hidden="true"] {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
transform: translate(0, 16px) scale(0.98);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.widget__actor:hover {
|
|
55
|
+
background: var(--actor-hover-background, var(--background));
|
|
56
|
+
filter: var(--interactive-filter);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.widget__actor svg {
|
|
60
|
+
width: 1.14em;
|
|
61
|
+
height: 1.14em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (max-width: 600px) {
|
|
65
|
+
.widget__actor span {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`,e&&t.setAttribute("nonce",e),t}function Ve(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const xn=20,Xv="http://www.w3.org/2000/svg";function Qv(){const e=a=>it.document.createElementNS(Xv,a),t=Ve(e("svg"),{width:`${xn}`,height:`${xn}`,viewBox:`0 0 ${xn} ${xn}`,fill:"var(--actor-color, var(--foreground))"}),n=Ve(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ve(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),s=Ve(e("clipPath"),{id:"clip0_57_80"}),o=Ve(e("rect"),{width:`${xn}`,height:`${xn}`,fill:"white"});return s.appendChild(o),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(o),t}function Zv({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const i=ae.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||yp,i.appendChild(Qv()),e){const o=ae.createElement("span");o.appendChild(ae.createTextNode(e)),i.appendChild(o)}const s=Kv(r);return{el:i,appendToDom(){n.appendChild(s),n.appendChild(i)},removeFromDom(){i.remove(),s.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const Sp="rgba(88, 74, 192, 1)",eT={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Sp,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},sl={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Sp,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function ol(e){return`
|
|
70
|
+
--foreground: ${e.foreground};
|
|
71
|
+
--background: ${e.background};
|
|
72
|
+
--accent-foreground: ${e.accentForeground};
|
|
73
|
+
--accent-background: ${e.accentBackground};
|
|
74
|
+
--success-color: ${e.successColor};
|
|
75
|
+
--error-color: ${e.errorColor};
|
|
76
|
+
--border: ${e.border};
|
|
77
|
+
--box-shadow: ${e.boxShadow};
|
|
78
|
+
--outline: ${e.outline};
|
|
79
|
+
--interactive-filter: ${e.interactiveFilter};
|
|
80
|
+
`}function al({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const i=ae.createElement("style");return i.textContent=`
|
|
81
|
+
:host {
|
|
82
|
+
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
|
|
83
|
+
--font-size: 14px;
|
|
84
|
+
--z-index: 100000;
|
|
85
|
+
|
|
86
|
+
--page-margin: 16px;
|
|
87
|
+
--inset: auto 0 0 auto;
|
|
88
|
+
--actor-inset: var(--inset);
|
|
89
|
+
|
|
90
|
+
font-family: var(--font-family);
|
|
91
|
+
font-size: var(--font-size);
|
|
92
|
+
|
|
93
|
+
${e!=="system"?`color-scheme: only ${e};`:""}
|
|
94
|
+
|
|
95
|
+
${ol(e==="dark"?{...sl,...t}:{...eT,...n})}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
${e==="system"?`
|
|
99
|
+
@media (prefers-color-scheme: dark) {
|
|
100
|
+
:host {
|
|
101
|
+
color-scheme: only dark;
|
|
102
|
+
|
|
103
|
+
${ol({...sl,...t})}
|
|
104
|
+
}
|
|
105
|
+
}`:""}
|
|
106
|
+
`,r&&i.setAttribute("nonce",r),i}const bp=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:i="sentry-feedback",autoInject:s=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:p={email:"email",name:"username"},tags:f,styleNonce:h,scriptNonce:m,colorScheme:_="system",themeLight:y={},themeDark:b={},addScreenshotButtonLabel:O=Bv,cancelButtonLabel:I=Rv,confirmButtonLabel:W=xv,emailLabel:L=Ov,emailPlaceholder:S=Nv,formTitle:k=Mv,isRequiredLabel:H=Uv,messageLabel:E=Pv,messagePlaceholder:R=Lv,nameLabel:w=Fv,namePlaceholder:M=Dv,removeScreenshotButtonLabel:P=Hv,submitButtonLabel:Q=Av,successMessageText:Z=$v,triggerLabel:te=yp,triggerAriaLabel:A="",highlightToolText:D=Wv,hideToolText:x=jv,removeHighlightText:$=qv,onFormOpen:re,onFormClose:oe,onSubmitSuccess:fe,onSubmitError:je,onFormSubmitted:Oe}={})=>{const $e={id:i,autoInject:s,showBranding:o,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:p,tags:f,styleNonce:h,scriptNonce:m,colorScheme:_,themeDark:b,themeLight:y,triggerLabel:te,triggerAriaLabel:A,cancelButtonLabel:I,submitButtonLabel:Q,confirmButtonLabel:W,formTitle:k,emailLabel:L,emailPlaceholder:S,messageLabel:E,messagePlaceholder:R,nameLabel:w,namePlaceholder:M,successMessageText:Z,isRequiredLabel:H,addScreenshotButtonLabel:O,removeScreenshotButtonLabel:P,highlightToolText:D,hideToolText:x,removeHighlightText:$,onFormClose:oe,onFormOpen:re,onSubmitError:je,onSubmitSuccess:fe,onFormSubmitted:Oe};let be=null,Je=null,qe=[];const fr=ie=>{if(!be){const he=ae.createElement("div");he.id=String(ie.id),ae.body.appendChild(he),be=he.attachShadow({mode:"open"}),Je=al(ie),be.appendChild(Je)}return be},di=async ie=>{const he=ie.enableScreenshot&&Yv();let Ye,Ie;try{Ye=(t?t():await e("feedbackModalIntegration",m))(),Tu(Ye)}catch{throw $i&&g.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Y=he?n?n():await e("feedbackScreenshotIntegration",m):void 0;Y&&(Ie=Y(),Tu(Ie))}catch{$i&&g.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const Le=Ye.createDialog({options:{...ie,onFormClose:()=>{Le?.close(),ie.onFormClose?.()},onFormSubmitted:()=>{Le?.close(),ie.onFormSubmitted?.()}},screenshotIntegration:Ie,sendFeedback:Jv,shadow:fr(ie)});return Le},fi=(ie,he={})=>{const Ye=gi($e,he),Ie=typeof ie=="string"?ae.querySelector(ie):typeof ie.addEventListener=="function"?ie:null;if(!Ie)throw $i&&g.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let Le=null;const Y=async()=>{Le||(Le=await di({...Ye,onFormSubmitted:()=>{Le?.removeFromDom(),Ye.onFormSubmitted?.()}})),Le.appendToDom(),Le.open()};Ie.addEventListener("click",Y);const Pe=()=>{qe=qe.filter(K=>K!==Pe),Le?.removeFromDom(),Le=null,Ie.removeEventListener("click",Y)};return qe.push(Pe),Pe},tt=(ie={})=>{const he=gi($e,ie),Ye=fr(he),Ie=Zv({triggerLabel:he.triggerLabel,triggerAriaLabel:he.triggerAriaLabel,shadow:Ye,styleNonce:h});return fi(Ie.el,{...he,onFormOpen(){Ie.hide()},onFormClose(){Ie.show()},onFormSubmitted(){Ie.show()}}),Ie};return{name:"Feedback",setupOnce(){!ps()||!$e.autoInject||(ae.readyState==="loading"?ae.addEventListener("DOMContentLoaded",()=>tt().appendToDom()):tt().appendToDom())},attachTo:fi,createWidget(ie={}){const he=tt(gi($e,ie));return he.appendToDom(),he},async createForm(ie={}){return di(gi($e,ie))},setTheme(ie){if($e.colorScheme=ie,be){const he=al($e);Je?be.replaceChild(he,Je):be.prepend(he),Je=he}},remove(){be&&(be.parentElement?.remove(),be=null,Je=null),qe.forEach(ie=>ie()),qe=[]}}});function kM(){return C()?.getIntegrationByName("Feedback")}var Qs,ue,Ep,on,cl,vp,aa,Or={},pc=[],tT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,hc=Array.isArray;function jt(e,t){for(var n in t)e[n]=t[n];return e}function Tp(e){var t=e.parentNode;t&&t.removeChild(e)}function J(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?Qs.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return Ui(e,o,r,i,null)}function Ui(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Ep,__i:-1,__u:0};return i==null&&ue.vnode!=null&&ue.vnode(s),s}function ei(e){return e.children}function Bi(e,t){this.props=e,this.context=t}function Yn(e,t){if(t==null)return e.__?Yn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Yn(e):null}function nT(e,t,n){var r,i=e.__v,s=i.__e,o=e.__P;if(o)return(r=jt({},i)).__v=i.__v+1,ue.vnode&&ue.vnode(r),mc(o,r,i,e.__n,o.ownerSVGElement!==void 0,32&i.__u?[s]:null,t,s??Yn(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&wp(r),r}function wp(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return wp(e)}}function ul(e){(!e.__d&&(e.__d=!0)&&on.push(e)&&!hs.__r++||cl!==ue.debounceRendering)&&((cl=ue.debounceRendering)||vp)(hs)}function hs(){var e,t,n,r=[],i=[];for(on.sort(aa);e=on.shift();)e.__d&&(n=on.length,t=nT(e,r,i)||t,n===0||on.length>n?(ca(r,t,i),i.length=r.length=0,t=void 0,on.sort(aa)):t&&ue.__c&&ue.__c(t,pc));t&&ca(r,t,i),hs.__r=0}function Ip(e,t,n,r,i,s,o,a,c,u,d){var l,p,f,h,m,_=r&&r.__k||pc,y=t.length;for(n.__d=c,rT(n,t,_),c=n.__d,l=0;l<y;l++)(f=n.__k[l])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?Or:_[f.__i]||Or,f.__i=l,mc(e,f,p,i,s,o,a,c,u,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&gc(p.ref,null,f),d.push(f.ref,f.__c||h,f)),m==null&&h!=null&&(m=h),65536&f.__u||p.__k===f.__k?c=kp(f,c,e):typeof f.type=="function"&&f.__d!==void 0?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function rT(e,t,n){var r,i,s,o,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(i=e.__k[r]=(i=t[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ui(null,i,null,null,i):hc(i)?Ui(ei,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ui(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,a=iT(i,n,o=r+l,d),i.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&l--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a===o+1?l++:a>o?d>c-o?l+=a-o:l--:l=a<o&&a==o-1?a-o:0,a!==r+l&&(i.__u|=65536))):(s=n[r])&&s.key==null&&s.__e&&(s.__e==e.__d&&(e.__d=Yn(s)),ua(s,s,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(s=n[r])!=null&&(131072&s.__u)==0&&(s.__e==e.__d&&(e.__d=Yn(s)),ua(s,s))}function kp(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=kp(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function iT(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,c=t[n];if(c===null||c&&i==c.key&&s===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;o>=0||a<t.length;){if(o>=0){if((c=t[o])&&(131072&c.__u)==0&&i==c.key&&s===c.type)return o;o--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&i==c.key&&s===c.type)return a;a++}}return-1}function ll(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tT.test(t)?n:n+"px"}function _i(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ll(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ll(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?fl:dl,s)):e.removeEventListener(t,s?fl:dl,s);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function dl(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(ue.event?ue.event(e):e)}}function fl(e){if(this.l)return this.l[e.type+!0](ue.event?ue.event(e):e)}function mc(e,t,n,r,i,s,o,a,c,u){var d,l,p,f,h,m,_,y,b,O,I,W,L,S,k,H=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=ue.__b)&&d(t);e:if(typeof H=="function")try{if(y=t.props,b=(d=H.contextType)&&r[d.__c],O=d?b?b.props.value:d.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in H&&H.prototype.render?t.__c=l=new H(y,O):(t.__c=l=new Bi(y,O),l.constructor=H,l.render=oT),b&&b.sub(l),l.props=y,l.state||(l.state={}),l.context=O,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),H.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=jt({},l.__s)),jt(l.__s,H.getDerivedStateFromProps(y,l.__s))),f=l.props,h=l.state,l.__v=t,p)H.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(H.getDerivedStateFromProps==null&&y!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,O),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,O)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(E){E&&(E.__=t)}),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[],l.__h.length&&o.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,O),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,h,m)})}if(l.context=O,l.props=y,l.__P=e,l.__e=!1,W=ue.__r,L=0,"prototype"in H&&H.prototype.render){for(l.state=l.__s,l.__d=!1,W&&W(t),d=l.render(l.props,l.state,l.context),S=0;S<l._sb.length;S++)l.__h.push(l._sb[S]);l._sb=[]}else do l.__d=!1,W&&W(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++L<25);l.state=l.__s,l.getChildContext!=null&&(r=jt(jt({},r),l.getChildContext())),p||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(f,h)),Ip(e,hc(k=d!=null&&d.type===ei&&d.key==null?d.props.children:d)?k:[k],t,n,r,i,s,o,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&o.push(l),_&&(l.__E=l.__=null)}catch(E){t.__v=null,c||s!=null?(t.__e=a,t.__u|=c?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),ue.__e(E,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=sT(n.__e,t,n,r,i,s,o,c,u);(d=ue.diffed)&&d(t)}function ca(e,t,n){for(var r=0;r<n.length;r++)gc(n[r],n[++r],n[++r]);ue.__c&&ue.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){ue.__e(s,i.__v)}})}function sT(e,t,n,r,i,s,o,a,c){var u,d,l,p,f,h,m,_=n.props,y=t.props,b=t.type;if(b==="svg"&&(i=!0),s!=null){for(u=0;u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!b&&(b?f.localName===b:f.nodeType===3)){e=f,s[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),s=null,a=!1}if(b===null)_===y||a&&e.data===y||(e.data=y);else{if(s=s&&Qs.call(e.childNodes),_=n.props||Or,!a&&s!=null)for(_={},u=0;u<e.attributes.length;u++)_[(f=e.attributes[u]).name]=f.value;for(u in _)f=_[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=f:u==="key"||u in y||_i(e,u,null,f,i));for(u in y)f=y[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?m=f:u==="key"||a&&typeof f!="function"||_[u]===f||_i(e,u,f,_[u],i);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Ip(e,hc(p)?p:[p],t,n,r,i&&b!=="foreignObject",s,o,s?s[0]:n.__k&&Yn(n,0),a,c),s!=null)for(u=s.length;u--;)s[u]!=null&&Tp(s[u]);a||(u="value",h!==void 0&&(h!==e[u]||b==="progress"&&!h||b==="option"&&h!==_[u])&&_i(e,u,h,_[u],!1),u="checked",m!==void 0&&m!==e[u]&&_i(e,u,m,_[u],!1))}return e}function gc(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){ue.__e(r,n)}}function ua(e,t,n){var r,i;if(ue.unmount&&ue.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||gc(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){ue.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ua(r[i],t,n||typeof e.type!="function");n||e.__e==null||Tp(e.__e),e.__=e.__e=e.__d=void 0}function oT(e,t,n){return this.constructor(e,n)}function aT(e,t,n){var r,i,s,o;ue.__&&ue.__(e,t),i=(r=!1)?null:t.__k,s=[],o=[],mc(t,e=t.__k=J(ei,null,[e]),i||Or,Or,t.ownerSVGElement!==void 0,i?null:t.firstChild?Qs.call(t.childNodes):null,s,i?i.__e:t.firstChild,r,o),e.__d=void 0,ca(s,e,o)}Qs=pc.slice,ue={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},Ep=0,Bi.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},n),this.props)),e&&jt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ul(this))},Bi.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ul(this))},Bi.prototype.render=ei,on=[],vp=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,aa=function(e,t){return e.__v.__b-t.__v.__b},hs.__r=0;var Mt,ce,Co,pl,Kn=0,Cp=[],Hi=[],me=ue,hl=me.__b,ml=me.__r,gl=me.diffed,_l=me.__c,yl=me.unmount,Sl=me.__;function Cn(e,t){me.__h&&me.__h(ce,e,Kn||t),Kn=0;var n=ce.__H||(ce.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Hi}),n.__[e]}function an(e){return Kn=1,Rp(xp,e)}function Rp(e,t,n){var r=Cn(Mt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xp(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=ce,!ce.u)){var i=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!s||s.call(this,a,c,u);var l=!1;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!s||s.call(this,a,c,u))};ce.u=!0;var s=ce.shouldComponentUpdate,o=ce.componentWillUpdate;ce.componentWillUpdate=function(a,c,u){if(this.__e){var d=s;s=void 0,i(a,c,u),s=d}o&&o.call(this,a,c,u)},ce.shouldComponentUpdate=i}return r.__N||r.__}function cT(e,t){var n=Cn(Mt++,3);!me.__s&&_c(n.__H,t)&&(n.__=e,n.i=t,ce.__H.__h.push(n))}function Ap(e,t){var n=Cn(Mt++,4);!me.__s&&_c(n.__H,t)&&(n.__=e,n.i=t,ce.__h.push(n))}function uT(e){return Kn=5,ti(function(){return{current:e}},[])}function lT(e,t,n){Kn=6,Ap(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ti(e,t){var n=Cn(Mt++,7);return _c(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function jn(e,t){return Kn=8,ti(function(){return e},t)}function dT(e){var t=ce.context[e.__c],n=Cn(Mt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ce)),t.props.value):e.__}function fT(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)}function pT(e){var t=Cn(Mt++,10),n=an();return t.__=e,ce.componentDidCatch||(ce.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function hT(){var e=Cn(Mt++,11);if(!e.__){for(var t=ce.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function mT(){for(var e;e=Cp.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wi),e.__H.__h.forEach(la),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}me.__b=function(e){ce=null,hl&&hl(e)},me.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Sl&&Sl(e,t)},me.__r=function(e){ml&&ml(e),Mt=0;var t=(ce=e.__c).__H;t&&(Co===ce?(t.__h=[],ce.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Hi,n.__N=n.i=void 0})):(t.__h.forEach(Wi),t.__h.forEach(la),t.__h=[],Mt=0)),Co=ce},me.diffed=function(e){gl&&gl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Cp.push(t)!==1&&pl===me.requestAnimationFrame||((pl=me.requestAnimationFrame)||gT)(mT)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Hi&&(n.__=n.__V),n.i=void 0,n.__V=Hi})),Co=ce=null},me.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Wi),n.__h=n.__h.filter(function(r){return!r.__||la(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(r,n.__v)}}),_l&&_l(e,t)},me.unmount=function(e){yl&&yl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wi(r)}catch(i){t=i}}),n.__H=void 0,t&&me.__e(t,n.__v))};var bl=typeof requestAnimationFrame=="function";function gT(e){var t,n=function(){clearTimeout(r),bl&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);bl&&(t=requestAnimationFrame(n))}function Wi(e){var t=ce,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ce=t}function la(e){var t=ce;e.__c=e.__(),ce=t}function _c(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function xp(e,t){return typeof t=="function"?t(e):t}const _T=Object.defineProperty({__proto__:null,useCallback:jn,useContext:dT,useDebugValue:fT,useEffect:cT,useErrorBoundary:pT,useId:hT,useImperativeHandle:lT,useLayoutEffect:Ap,useMemo:ti,useReducer:Rp,useRef:uT,useState:an},Symbol.toStringTag,{value:"Module"}),yT="http://www.w3.org/2000/svg";function ST(){const e=r=>ae.createElementNS(yT,r),t=Ve(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ve(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function bT({options:e}){const t=ti(()=>({__html:ST().outerHTML}),[]);return J("h2",{class:"dialog__header"},J("span",{class:"dialog__title"},e.formTitle),e.showBranding?J("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function ET(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Ro(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function vT({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:s,onSubmitError:o,showEmail:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:_,isNameRequired:y,messageLabel:b,messagePlaceholder:O,nameLabel:I,namePlaceholder:W,submitButtonLabel:L,isRequiredLabel:S}=e,[k,H]=an(!1),[E,R]=an(null),[w,M]=an(!1),P=u?.input,[Q,Z]=an(null),te=jn(x=>{Z(x),M(!1)},[]),A=jn(x=>{const $=ET(x,{emailLabel:h,isEmailRequired:_,isNameRequired:y,messageLabel:b,nameLabel:I});return $.length>0?R(`Please enter in the following required fields: ${$.join(", ")}`):R(null),$.length===0},[h,_,y,b,I]),D=jn(async x=>{H(!0);try{if(x.preventDefault(),!(x.target instanceof HTMLFormElement))return;const $=new FormData(x.target),re=await(u&&w?u.value():void 0),oe={name:Ro($,"name"),email:Ro($,"email"),message:Ro($,"message"),attachments:re?[re]:void 0};if(!A(oe))return;try{const fe=await i({name:oe.name,email:oe.email,message:oe.message,source:zv,tags:d},{attachments:oe.attachments});s(oe,fe)}catch(fe){$i&&g.error(fe),R(fe),o(fe)}}finally{H(!1)}},[u&&w,s,o]);return J("form",{class:"form",onSubmit:D},P&&w?J(P,{onError:te}):null,J("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:k},J("div",{class:"form__top"},E?J("div",{class:"form__error-container"},E):null,c?J("label",{for:"name",class:"form__label"},J(Ao,{label:I,isRequiredLabel:S,isRequired:y}),J("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:W,required:y,type:"text"})):J("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?J("label",{for:"email",class:"form__label"},J(Ao,{label:h,isRequiredLabel:S,isRequired:_}),J("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:_,type:"email"})):J("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),J("label",{for:"message",class:"form__label"},J(Ao,{label:b,isRequiredLabel:S,isRequired:!0}),J("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:O,required:!0,rows:5})),P?J("label",{for:"screenshot",class:"form__label"},J("button",{class:"btn btn--default",disabled:k,type:"button",onClick:()=>{Z(null),M(x=>!x)}},w?p:l),Q?J("div",{class:"form__error-container"},Q.message):null):null),J("div",{class:"btn-group"},J("button",{class:"btn btn--primary",disabled:k,type:"submit"},L),J("button",{class:"btn btn--default",disabled:k,type:"button",onClick:r},f))))}function Ao({label:e,isRequired:t,isRequiredLabel:n}){return J("span",{class:"form__label__text"},e,t&&J("span",{class:"form__label__text--required"},n))}const yi=16,El=17,TT="http://www.w3.org/2000/svg";function wT(){const e=c=>it.document.createElementNS(TT,c),t=Ve(e("svg"),{width:`${yi}`,height:`${El}`,viewBox:`0 0 ${yi} ${El}`,fill:"inherit"}),n=Ve(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ve(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=Ve(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const s=e("defs"),o=Ve(e("clipPath"),{id:"clip0_57_156"}),a=Ve(e("rect"),{width:`${yi}`,height:`${yi}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(a),t}function IT({open:e,onFormSubmitted:t,...n}){const r=n.options,i=ti(()=>({__html:wT().outerHTML}),[]),[s,o]=an(null),a=jn(()=>{s&&(clearTimeout(s),o(null)),t()},[s]),c=jn((u,d)=>{n.onSubmitSuccess(u,d),o(setTimeout(()=>{t(),o(null)},Vv))},[t]);return J(ei,null,s?J("div",{class:"success__position",onClick:a},J("div",{class:"success__content"},r.successMessageText,J("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):J("dialog",{class:"dialog",onClick:r.onFormClose,open:e},J("div",{class:"dialog__position"},J("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},J(bT,{options:r}),J(vT,{...n,onSubmitSuccess:c})))))}const kT=`
|
|
107
|
+
.dialog {
|
|
108
|
+
position: fixed;
|
|
109
|
+
z-index: var(--z-index);
|
|
110
|
+
margin: 0;
|
|
111
|
+
inset: 0;
|
|
112
|
+
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
padding: 0;
|
|
117
|
+
height: 100vh;
|
|
118
|
+
width: 100vw;
|
|
119
|
+
|
|
120
|
+
color: var(--dialog-color, var(--foreground));
|
|
121
|
+
fill: var(--dialog-color, var(--foreground));
|
|
122
|
+
line-height: 1.75em;
|
|
123
|
+
|
|
124
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
125
|
+
border: none;
|
|
126
|
+
inset: 0;
|
|
127
|
+
opacity: 1;
|
|
128
|
+
transition: opacity 0.2s ease-in-out;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.dialog__position {
|
|
132
|
+
position: fixed;
|
|
133
|
+
z-index: var(--z-index);
|
|
134
|
+
inset: var(--dialog-inset);
|
|
135
|
+
padding: var(--page-margin);
|
|
136
|
+
display: flex;
|
|
137
|
+
max-height: calc(100vh - (2 * var(--page-margin)));
|
|
138
|
+
}
|
|
139
|
+
@media (max-width: 600px) {
|
|
140
|
+
.dialog__position {
|
|
141
|
+
inset: var(--page-margin);
|
|
142
|
+
padding: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dialog__position:has(.editor) {
|
|
147
|
+
inset: var(--page-margin);
|
|
148
|
+
padding: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dialog:not([open]) {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
pointer-events: none;
|
|
154
|
+
visibility: hidden;
|
|
155
|
+
}
|
|
156
|
+
.dialog:not([open]) .dialog__content {
|
|
157
|
+
transform: translate(0, -16px) scale(0.98);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dialog__content {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 16px;
|
|
164
|
+
padding: var(--dialog-padding, 24px);
|
|
165
|
+
max-width: 100%;
|
|
166
|
+
width: 100%;
|
|
167
|
+
max-height: 100%;
|
|
168
|
+
overflow: auto;
|
|
169
|
+
|
|
170
|
+
background: var(--dialog-background, var(--background));
|
|
171
|
+
border-radius: var(--dialog-border-radius, 20px);
|
|
172
|
+
border: var(--dialog-border, var(--border));
|
|
173
|
+
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
|
|
174
|
+
transform: translate(0, 0) scale(1);
|
|
175
|
+
transition: transform 0.2s ease-in-out;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
`,CT=`
|
|
179
|
+
.dialog__header {
|
|
180
|
+
display: flex;
|
|
181
|
+
gap: 4px;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
font-weight: var(--dialog-header-weight, 600);
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
.dialog__title {
|
|
187
|
+
align-self: center;
|
|
188
|
+
width: var(--form-width, 272px);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (max-width: 600px) {
|
|
192
|
+
.dialog__title {
|
|
193
|
+
width: auto;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.dialog__position:has(.editor) .dialog__title {
|
|
198
|
+
width: auto;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
.brand-link {
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
}
|
|
205
|
+
.brand-link:focus-visible {
|
|
206
|
+
outline: var(--outline);
|
|
207
|
+
}
|
|
208
|
+
`,RT=`
|
|
209
|
+
.form {
|
|
210
|
+
display: flex;
|
|
211
|
+
overflow: auto;
|
|
212
|
+
flex-direction: row;
|
|
213
|
+
gap: 16px;
|
|
214
|
+
flex: 1 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.form fieldset {
|
|
218
|
+
border: none;
|
|
219
|
+
margin: 0;
|
|
220
|
+
padding: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.form__right {
|
|
224
|
+
flex: 0 0 auto;
|
|
225
|
+
display: flex;
|
|
226
|
+
overflow: auto;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
justify-content: space-between;
|
|
229
|
+
gap: 20px;
|
|
230
|
+
width: var(--form-width, 100%);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.dialog__position:has(.editor) .form__right {
|
|
234
|
+
width: var(--form-width, 272px);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.form__top {
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
gap: 8px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.form__error-container {
|
|
244
|
+
color: var(--error-color);
|
|
245
|
+
fill: var(--error-color);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.form__label {
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
gap: 4px;
|
|
252
|
+
margin: 0px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.form__label__text {
|
|
256
|
+
display: flex;
|
|
257
|
+
gap: 4px;
|
|
258
|
+
align-items: center;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.form__label__text--required {
|
|
262
|
+
font-size: 0.85em;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.form__input {
|
|
266
|
+
font-family: inherit;
|
|
267
|
+
line-height: inherit;
|
|
268
|
+
background: transparent;
|
|
269
|
+
box-sizing: border-box;
|
|
270
|
+
border: var(--input-border, var(--border));
|
|
271
|
+
border-radius: var(--input-border-radius, 6px);
|
|
272
|
+
color: var(--input-color, inherit);
|
|
273
|
+
fill: var(--input-color, inherit);
|
|
274
|
+
font-size: var(--input-font-size, inherit);
|
|
275
|
+
font-weight: var(--input-font-weight, 500);
|
|
276
|
+
padding: 6px 12px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.form__input::placeholder {
|
|
280
|
+
opacity: 0.65;
|
|
281
|
+
color: var(--input-placeholder-color, inherit);
|
|
282
|
+
filter: var(--interactive-filter);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.form__input:focus-visible {
|
|
286
|
+
outline: var(--input-focus-outline, var(--outline));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.form__input--textarea {
|
|
290
|
+
font-family: inherit;
|
|
291
|
+
resize: vertical;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.error {
|
|
295
|
+
color: var(--error-color);
|
|
296
|
+
fill: var(--error-color);
|
|
297
|
+
}
|
|
298
|
+
`,AT=`
|
|
299
|
+
.btn-group {
|
|
300
|
+
display: grid;
|
|
301
|
+
gap: 8px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.btn {
|
|
305
|
+
line-height: inherit;
|
|
306
|
+
border: var(--button-border, var(--border));
|
|
307
|
+
border-radius: var(--button-border-radius, 6px);
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
font-family: inherit;
|
|
310
|
+
font-size: var(--button-font-size, inherit);
|
|
311
|
+
font-weight: var(--button-font-weight, 600);
|
|
312
|
+
padding: var(--button-padding, 6px 16px);
|
|
313
|
+
}
|
|
314
|
+
.btn[disabled] {
|
|
315
|
+
opacity: 0.6;
|
|
316
|
+
pointer-events: none;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.btn--primary {
|
|
320
|
+
color: var(--button-primary-color, var(--accent-foreground));
|
|
321
|
+
fill: var(--button-primary-color, var(--accent-foreground));
|
|
322
|
+
background: var(--button-primary-background, var(--accent-background));
|
|
323
|
+
border: var(--button-primary-border, var(--border));
|
|
324
|
+
border-radius: var(--button-primary-border-radius, 6px);
|
|
325
|
+
font-weight: var(--button-primary-font-weight, 500);
|
|
326
|
+
}
|
|
327
|
+
.btn--primary:hover {
|
|
328
|
+
color: var(--button-primary-hover-color, var(--accent-foreground));
|
|
329
|
+
fill: var(--button-primary-hover-color, var(--accent-foreground));
|
|
330
|
+
background: var(--button-primary-hover-background, var(--accent-background));
|
|
331
|
+
filter: var(--interactive-filter);
|
|
332
|
+
}
|
|
333
|
+
.btn--primary:focus-visible {
|
|
334
|
+
background: var(--button-primary-hover-background, var(--accent-background));
|
|
335
|
+
filter: var(--interactive-filter);
|
|
336
|
+
outline: var(--button-primary-focus-outline, var(--outline));
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.btn--default {
|
|
340
|
+
color: var(--button-color, var(--foreground));
|
|
341
|
+
fill: var(--button-color, var(--foreground));
|
|
342
|
+
background: var(--button-background, var(--background));
|
|
343
|
+
border: var(--button-border, var(--border));
|
|
344
|
+
border-radius: var(--button-border-radius, 6px);
|
|
345
|
+
font-weight: var(--button-font-weight, 500);
|
|
346
|
+
}
|
|
347
|
+
.btn--default:hover {
|
|
348
|
+
color: var(--button-color, var(--foreground));
|
|
349
|
+
fill: var(--button-color, var(--foreground));
|
|
350
|
+
background: var(--button-hover-background, var(--background));
|
|
351
|
+
filter: var(--interactive-filter);
|
|
352
|
+
}
|
|
353
|
+
.btn--default:focus-visible {
|
|
354
|
+
background: var(--button-hover-background, var(--background));
|
|
355
|
+
filter: var(--interactive-filter);
|
|
356
|
+
outline: var(--button-focus-outline, var(--outline));
|
|
357
|
+
}
|
|
358
|
+
`,xT=`
|
|
359
|
+
.success__position {
|
|
360
|
+
position: fixed;
|
|
361
|
+
inset: var(--dialog-inset);
|
|
362
|
+
padding: var(--page-margin);
|
|
363
|
+
z-index: var(--z-index);
|
|
364
|
+
}
|
|
365
|
+
.success__content {
|
|
366
|
+
background: var(--success-background, var(--background));
|
|
367
|
+
border: var(--success-border, var(--border));
|
|
368
|
+
border-radius: var(--success-border-radius, 1.7em/50%);
|
|
369
|
+
box-shadow: var(--success-box-shadow, var(--box-shadow));
|
|
370
|
+
font-weight: var(--success-font-weight, 600);
|
|
371
|
+
color: var(--success-color);
|
|
372
|
+
fill: var(--success-color);
|
|
373
|
+
padding: 12px 24px;
|
|
374
|
+
line-height: 1.75em;
|
|
375
|
+
|
|
376
|
+
display: grid;
|
|
377
|
+
align-items: center;
|
|
378
|
+
grid-auto-flow: column;
|
|
379
|
+
gap: 6px;
|
|
380
|
+
cursor: default;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.success__icon {
|
|
384
|
+
display: flex;
|
|
385
|
+
}
|
|
386
|
+
`;function MT(e){const t=ae.createElement("style");return t.textContent=`
|
|
387
|
+
:host {
|
|
388
|
+
--dialog-inset: var(--inset);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
${kT}
|
|
392
|
+
${CT}
|
|
393
|
+
${RT}
|
|
394
|
+
${AT}
|
|
395
|
+
${xT}
|
|
396
|
+
`,e&&t.setAttribute("nonce",e),t}function NT(){const e=z().getUser(),t=Se().getUser(),n=wr().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const OT=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const i=r,s=e.useSentryUser,o=NT(),a=ae.createElement("div"),c=MT(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!i.contains(c)&&!i.contains(a)&&(i.appendChild(c),i.appendChild(a))},removeFromDom(){a.remove(),c.remove(),ae.body.style.overflow=u},open(){p(!0),e.onFormOpen?.(),C()?.emit("openFeedbackWidget"),u=ae.body.style.overflow,ae.body.style.overflow="hidden"},close(){p(!1),ae.body.style.overflow=u}},l=t?.createInput({h:J,hooks:_T,dialog:d,options:e}),p=f=>{aT(J(IT,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(s&&o?.[s.name]||""),defaultEmail:String(s&&o?.[s.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,m)=>{p(!1),e.onSubmitSuccess?.(h,m)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:f}),a)};return d}}));function LT({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function PT(e){const t=ae.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
|
|
397
|
+
.editor {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-grow: 1;
|
|
400
|
+
flex-direction: column;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.editor__image-container {
|
|
404
|
+
justify-items: center;
|
|
405
|
+
padding: 15px;
|
|
406
|
+
position: relative;
|
|
407
|
+
height: 100%;
|
|
408
|
+
border-radius: var(--menu-border-radius, 6px);
|
|
409
|
+
|
|
410
|
+
background-color: ${n};
|
|
411
|
+
background-image: repeating-linear-gradient(
|
|
412
|
+
-145deg,
|
|
413
|
+
transparent,
|
|
414
|
+
transparent 8px,
|
|
415
|
+
${n} 8px,
|
|
416
|
+
${n} 11px
|
|
417
|
+
),
|
|
418
|
+
repeating-linear-gradient(
|
|
419
|
+
-45deg,
|
|
420
|
+
transparent,
|
|
421
|
+
transparent 15px,
|
|
422
|
+
${r} 15px,
|
|
423
|
+
${r} 16px
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.editor__canvas-container {
|
|
428
|
+
width: 100%;
|
|
429
|
+
height: 100%;
|
|
430
|
+
position: relative;
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: center;
|
|
433
|
+
justify-content: center;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.editor__canvas-container > * {
|
|
437
|
+
object-fit: contain;
|
|
438
|
+
position: absolute;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.editor__tool-container {
|
|
442
|
+
padding-top: 8px;
|
|
443
|
+
display: flex;
|
|
444
|
+
justify-content: center;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.editor__tool-bar {
|
|
448
|
+
display: flex;
|
|
449
|
+
gap: 8px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.editor__tool {
|
|
453
|
+
display: flex;
|
|
454
|
+
padding: 8px 12px;
|
|
455
|
+
justify-content: center;
|
|
456
|
+
align-items: center;
|
|
457
|
+
border: var(--button-border, var(--border));
|
|
458
|
+
border-radius: var(--button-border-radius, 6px);
|
|
459
|
+
background: var(--button-background, var(--background));
|
|
460
|
+
color: var(--button-color, var(--foreground));
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.editor__tool--active {
|
|
464
|
+
background: var(--button-primary-background, var(--accent-background));
|
|
465
|
+
color: var(--button-primary-color, var(--accent-foreground));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.editor__rect {
|
|
469
|
+
position: absolute;
|
|
470
|
+
z-index: 2;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.editor__rect button {
|
|
474
|
+
opacity: 0;
|
|
475
|
+
position: absolute;
|
|
476
|
+
top: -12px;
|
|
477
|
+
right: -12px;
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
padding: 0;
|
|
480
|
+
z-index: 3;
|
|
481
|
+
border: none;
|
|
482
|
+
background: none;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.editor__rect:hover button {
|
|
486
|
+
opacity: 1;
|
|
487
|
+
}
|
|
488
|
+
`,e&&t.setAttribute("nonce",e),t}function DT({h:e}){return function({action:n,setAction:r,options:i}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},i.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},i.hideToolText)))}}function FT({hooks:e}){function t(){const[n,r]=e.useState(it.devicePixelRatio??1);return e.useEffect(()=>{const i=()=>{r(it.devicePixelRatio)},s=matchMedia(`(resolution: ${it.devicePixelRatio}dppx)`);return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:i,onAfterScreenshot:s,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const u=await Tr.mediaDevices.getDisplayMedia({video:{width:it.innerWidth*a,height:it.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=ae.createElement("video");await new Promise((l,p)=>{d.srcObject=u,d.onloadedmetadata=()=>{i(d,a),u.getTracks().forEach(f=>f.stop()),l()},d.play().catch(p)}),s()})().catch(o)},[])}}function $T(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function Ut(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function xo(e,t){Ut(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Mo(e,t,n){Ut(e,{alpha:!0},(r,i)=>{n.length&&(i.fillStyle="rgba(0, 0, 0, 0.25)",i.fillRect(0,0,r.width,r.height)),n.forEach(s=>{$T(s,i,t)})})}function UT({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){const s=FT({hooks:t}),o=DT({h:e}),a=LT({h:e}),c={__html:PT(i.styleNonce).innerText},u=r.el.style,d=({screenshot:l})=>{const[p,f]=t.useState("highlight"),[h,m]=t.useState([]),_=t.useRef(null),y=t.useRef(null),b=t.useRef(null),O=t.useRef(null),[I,W]=t.useState(1),L=t.useMemo(()=>{const w=ae.getElementById(i.id);if(!w)return"white";const M=getComputedStyle(w);return M.getPropertyValue("--button-primary-background")||M.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const w=()=>{const M=_.current;M&&(Ut(l.canvas,{alpha:!1},P=>{const Q=Math.min(M.clientWidth/P.width,M.clientHeight/P.height);W(Q)}),(M.clientHeight===0||M.clientWidth===0)&&setTimeout(w,0))};return w(),it.addEventListener("resize",w),()=>{it.removeEventListener("resize",w)}},[l]);const S=t.useCallback((w,M)=>{Ut(w,{alpha:!0},(P,Q)=>{Q.scale(M,M),P.width=l.canvas.width,P.height=l.canvas.height})},[l]);t.useEffect(()=>{S(y.current,l.dpi),xo(y.current,l.canvas)},[l]),t.useEffect(()=>{S(b.current,l.dpi),Ut(b.current,{alpha:!0},(w,M)=>{M.clearRect(0,0,w.width,w.height)}),Mo(b.current,L,h)},[h,L]),t.useEffect(()=>{S(n,l.dpi),xo(n,l.canvas),Ut(ae.createElement("canvas"),{alpha:!0},(w,M)=>{M.scale(l.dpi,l.dpi),w.width=l.canvas.width,w.height=l.canvas.height,Mo(w,L,h),xo(n,w)})},[h,l,L]);const k=w=>{if(!p||!O.current)return;const M=O.current.getBoundingClientRect(),P={type:p,x:w.offsetX/I,y:w.offsetY/I},Q=(A,D)=>{const x=(D.clientX-M.x)/I,$=(D.clientY-M.y)/I;return{type:A.type,x:Math.min(A.x,x),y:Math.min(A.y,$),w:Math.abs(x-A.x),h:Math.abs($-A.y)}},Z=A=>{Ut(b.current,{alpha:!0},(D,x)=>{x.clearRect(0,0,D.width,D.height)}),Mo(b.current,L,[...h,Q(P,A)])},te=A=>{const D=Q(P,A);D.w*I>=1&&D.h*I>=1&&m(x=>[...x,D]),ae.removeEventListener("mousemove",Z),ae.removeEventListener("mouseup",te)};ae.addEventListener("mousemove",Z),ae.addEventListener("mouseup",te)},H=t.useCallback(w=>M=>{M.preventDefault(),M.stopPropagation(),m(P=>{const Q=[...P];return Q.splice(w,1),Q})},[]),E={width:`${l.canvas.width*I}px`,height:`${l.canvas.height*I}px`},R=w=>{w.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:_},e("canvas",{ref:y,id:"background",style:E}),e("canvas",{ref:b,id:"foreground",style:E}),e("div",{ref:O,onMouseDown:k,style:E},h.map((w,M)=>e("div",{key:M,class:"editor__rect",style:{top:`${w.y*I}px`,left:`${w.x*I}px`,width:`${w.w*I}px`,height:`${w.h*I}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:H(M),onMouseDown:R,onMouseUp:R,type:"button"},e(a,null))))))),e(o,{options:i,action:p,setAction:f}))};return function({onError:p}){const[f,h]=t.useState();return s({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((m,_)=>{Ut(ae.createElement("canvas"),{alpha:!1},(y,b)=>{b.scale(_,_),y.width=m.videoWidth,y.height=m.videoHeight,b.drawImage(m,0,0,y.width,y.height),h({canvas:y,dpi:_})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(m=>{u.display="block",p(m)},[])}),f?e(d,{screenshot:f}):e("div",null)}}const BT=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const i=ae.createElement("canvas");return{input:UT({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{const s=await new Promise(o=>{i.toBlob(o,"image/png")});if(s)return{data:new Uint8Array(await s.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),N=F;let da=0;function Mp(){return da>0}function HT(){da++,setTimeout(()=>{da--})}function Xn(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(Da(e))return e}catch{return e}const r=function(...i){try{const s=i.map(o=>Xn(o,t));return e.apply(this,s)}catch(s){throw HT(),ct(o=>{o.addEventProcessor(a=>(t.mechanism&&(Vo(a,void 0),Rt(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),pe(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}$d(r,e),Me(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function yc(){const e=wn(),{referrer:t}=N.document||{},{userAgent:n}=N.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const WT={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},vl=N;async function jT(e,t){const n=WT[e],r=vl.Sentry=vl.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const i=r[e];if(typeof i=="function"&&!("_isShim"in i))return i;const s=qT(n),o=N.document.createElement("script");o.src=s,o.crossOrigin="anonymous",o.referrerPolicy="strict-origin",t&&o.setAttribute("nonce",t);const a=new Promise((l,p)=>{o.addEventListener("load",()=>l()),o.addEventListener("error",p)}),c=N.document.currentScript,u=N.document.body||N.document.head||c?.parentElement;if(u)u.appendChild(o);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function qT(e){const n=C()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${qt}/${e}.min.js`,n).toString()}const CM=bp({lazyLoadIntegration:jT}),RM=bp({getModalIntegration:()=>OT,getScreenshotIntegration:()=>BT});function Sc(e,t){const n=bc(e,t),r={type:YT(t),value:KT(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function zT(e,t,n,r){const s=C()?.getOptions().normalizeDepth,o=t0(t),a={__serialized__:uf(t,s)};if(o)return{exception:{values:[Sc(e,o)]},extra:a};const c={exception:{values:[{type:Ls(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ZT(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=bc(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function No(e,t){return{exception:{values:[Sc(e,t)]}}}function bc(e,t){const n=t.stacktrace||t.stack||"",r=VT(t),i=JT(t);try{return e(n,r,i)}catch{}return[]}const GT=/Minified React error #\d+;/i;function VT(e){return e&>.test(e.message)?1:0}function JT(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Np(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function YT(e){const t=e?.name;return!t&&Np(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function KT(e){const t=e?.message;return Np(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Mu(t.error):Mu(e):"No error message"}function XT(e,t,n,r){const i=n?.syntheticException||void 0,s=Zs(e,t,i,r);return Rt(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Jr(s)}function QT(e,t,n="info",r,i){const s=r?.syntheticException||void 0,o=fa(e,t,s,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),Jr(o)}function Zs(e,t,n,r,i){let s;if(Pd(t)&&t.error)return No(e,t.error);if(Qc(t)||Fm(t)){const o=t;if("stack"in t)s=No(e,t);else{const a=o.name||(Qc(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;s=fa(e,c,n,r),Vo(s,c)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return bt(t)?No(e,t):Be(t)||Ls(t)?(s=zT(e,t,n,i),Rt(s,{synthetic:!0}),s):(s=fa(e,t,n,r),Vo(s,`${t}`),Rt(s,{synthetic:!0}),s)}function fa(e,t,n,r){const i={};if(r&&n){const s=bc(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),Rt(i,{synthetic:!0})}if(Os(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function ZT(e,{isUnhandledRejection:t}){const n=jm(e),r=t?"promise rejection":"exception";return Pd(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ls(e)?`Event \`${e0(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function e0(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function t0(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class n0 extends fy{constructor(t){const n=r0(t),r=N.SENTRY_SDK_SOURCE||Iv();ec(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:o,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;N.document&&(s||o||u)&&N.document.addEventListener("visibilitychange",()=>{N.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),o&&as(this),u&&Va(this))}),i&&this.on("beforeSendSession",xy)}eventFromException(t,n){return XT(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return QT(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function r0(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:N.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const En=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,q=F,i0=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ni=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=i0(t.value,n),e(t)))}},ri=(e=!0)=>{const t=q.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},lr=()=>ri()?.activationStart??0;function Gt(e,t,n){q.document&&q.addEventListener(e,t,n)}function ms(e,t,n){q.document&&q.removeEventListener(e,t,n)}let qn=-1;const Op=new Set,s0=()=>q.document?.visibilityState==="hidden"&&!q.document?.prerendering?0:1/0,ji=e=>{if(o0(e)&&qn>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Op)t();isFinite(qn)||(qn=e.type==="visibilitychange"?e.timeStamp:0,ms("prerenderingchange",ji,!0))}},ii=()=>{if(q.document&&qn<0){const e=lr();qn=(q.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??s0(),Gt("visibilitychange",ji,!0),Gt("pagehide",ji,!0),Gt("prerenderingchange",ji,!0)}return{get firstHiddenTime(){return qn},onHidden(e){Op.add(e)}}};function o0(e){return e.type==="pagehide"||q.document?.visibilityState==="hidden"}const a0=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,si=(e,t=-1)=>{const n=ri();let r="navigate";return n&&(q.document?.prerendering||lr()>0?r="prerender":q.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:a0(),navigationType:r}},Oo=new WeakMap;function Ec(e,t){try{return Oo.get(e)||Oo.set(e,new t),Oo.get(e)}catch{return new t}}class gs{constructor(){gs.prototype.__init.call(this),gs.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const dr=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},vc=e=>{let t=!1;return()=>{t||(e(),t=!0)}},eo=e=>{q.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},c0=[1800,3e3],u0=(e,t={})=>{eo(()=>{const n=ii(),r=si("FCP");let i;const o=dr("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-lr(),0),r.entries.push(c),i(!0)))});o&&(i=ni(e,r,c0,t.reportAllChanges))})},l0=[.1,.25],d0=(e,t={})=>{u0(vc(()=>{const n=si("CLS",0);let r;const i=ii(),s=Ec(t,gs),o=c=>{for(const u of c)s._processEntry(u);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},a=dr("layout-shift",o);a&&(r=ni(e,n,l0,t.reportAllChanges),i.onHidden(()=>{o(a.takeRecords()),r(!0)}),q?.setTimeout?.(r))}))};let Lp=0,Lo=1/0,Si=0;const f0=e=>{e.forEach(t=>{t.interactionId&&(Lo=Math.min(Lo,t.interactionId),Si=Math.max(Si,t.interactionId),Lp=Si?(Si-Lo)/7+1:0)})};let pa;const Pp=()=>pa?Lp:performance.interactionCount||0,p0=()=>{"interactionCount"in performance||pa||(pa=dr("event",f0,{type:"event",buffered:!0,durationThreshold:0}))},Po=10;let Dp=0;const h0=()=>Pp()-Dp;class _s{constructor(){_s.prototype.__init.call(this),_s.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Dp=Pp(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(h0()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Po||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>Po){const i=this._longestInteractionList.splice(Po);for(const s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}}const Fp=e=>{const t=q.requestIdleCallback||q.setTimeout;q.document?.visibilityState==="hidden"?e():(e=vc(e),Gt("visibilitychange",e,{once:!0,capture:!0}),Gt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),ms("visibilitychange",e,{capture:!0}),ms("pagehide",e,{capture:!0})}))},m0=[200,500],g0=40,_0=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=ii();eo(()=>{p0();const r=si("INP");let i;const s=Ec(t,_s),o=c=>{Fp(()=>{for(const d of c)s._processEntry(d);const u=s._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},a=dr("event",o,{durationThreshold:t.durationThreshold??g0});i=ni(e,r,m0,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),i(!0)}))})};class y0{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const S0=[2500,4e3],b0=(e,t={})=>{eo(()=>{const n=ii(),r=si("LCP");let i;const s=Ec(t,y0),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)s._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-lr(),0),r.entries=[u],i())},a=dr("largest-contentful-paint",o);if(a){i=ni(e,r,S0,t.reportAllChanges);const c=vc(()=>{o(a.takeRecords()),a.disconnect(),i(!0)}),u=d=>{d.isTrusted&&(Fp(c),ms(d.type,u,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Gt(d,u,{capture:!0})}})},E0=[800,1800],ha=e=>{q.document?.prerendering?eo(()=>ha(e)):q.document?.readyState!=="complete"?addEventListener("load",()=>ha(e),!0):setTimeout(e)},v0=(e,t={})=>{const n=si("TTFB"),r=ni(e,n,E0,t.reportAllChanges);ha(()=>{const i=ri();i&&(n.value=Math.max(i.responseStart-lr(),0),n.entries=[i],r(!0))})},kr={},ys={};let $p,Up,Bp,Hp;function Tc(e,t=!1){return to("cls",e,w0,$p,t)}function wc(e,t=!1){return to("lcp",e,I0,Up,t)}function T0(e){return to("ttfb",e,k0,Bp)}function Wp(e){return to("inp",e,C0,Hp)}function vn(e,t){return jp(e,t),ys[e]||(R0(e),ys[e]=!0),qp(e,t)}function oi(e,t){const n=kr[e];if(n?.length)for(const r of n)try{r(t)}catch(i){En&&g.error(`Error while triggering instrumentation handler.
|
|
489
|
+
Type: ${e}
|
|
490
|
+
Name: ${It(r)}
|
|
491
|
+
Error:`,i)}}function w0(){return d0(e=>{oi("cls",{metric:e}),$p=e},{reportAllChanges:!0})}function I0(){return b0(e=>{oi("lcp",{metric:e}),Up=e},{reportAllChanges:!0})}function k0(){return v0(e=>{oi("ttfb",{metric:e}),Bp=e})}function C0(){return _0(e=>{oi("inp",{metric:e}),Hp=e})}function to(e,t,n,r,i=!1){jp(e,t);let s;return ys[e]||(s=n(),ys[e]=!0),r&&t({metric:r}),qp(e,t,i?s:void 0)}function R0(e){const t={};e==="event"&&(t.durationThreshold=0),dr(e,n=>{oi(e,{entries:n})},t)}function jp(e,t){kr[e]=kr[e]||[],kr[e].push(t)}function qp(e,t,n){return()=>{n&&n();const r=kr[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function A0(e){return"duration"in e}const x0=e=>{const t=n=>{(n.type==="pagehide"||q.document?.visibilityState==="hidden")&&e(n)};Gt("visibilitychange",t,{capture:!0,once:!0}),Gt("pagehide",t,{capture:!0,once:!0})};function Do(e){return typeof e=="number"&&isFinite(e)}function Kt(e,t,n,{...r}){const i=G(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Us(e,()=>{const s=Dt({startTime:t,...r});return s&&s.end(n),s})}function Ic(e){const t=C();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=z(),p=l.getUser(),f=p!==void 0?p.email||p.id||p.ip_address:void 0;let h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:a,user:f||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":q.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...i};return Dt({name:n,attributes:m,startTime:s,experimental:{standalone:!0}})}function ai(){return q.addEventListener&&q.performance}function ye(e){return e/1e3}function M0(e){let t="unknown",n="unknown",r="";for(const 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 zp(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Gp(e,t){let n,r=!1;function i(a){!r&&n&&t(a,n),r=!0}x0(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(i("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function N0(e){let t=0,n;if(!zp("layout-shift"))return;const r=Tc(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);Gp(e,(i,s)=>{O0(t,n,s,i),r()})}function O0(e,t,n,r){En&&g.log(`Sending CLS span (${e})`);const i=t?ye((Ne()||0)+t.startTime):ge(),s=z().getScopeData().transactionName,o=t?We(t.sources[0]?.node):"Layout shift",a={[X]:"auto.http.browser.cls",[ke]:"ui.webvital.cls",[or]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=We(u.node)});const c=Ic({name:o,transaction:s,attributes:a,startTime:i});c&&(c.addEvent("cls",{[qr]:"",[zr]:e}),c.end(i))}function L0(e){let t=0,n;if(!zp("largest-contentful-paint"))return;const r=wc(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);Gp(e,(i,s)=>{P0(t,n,s,i),r()})}function P0(e,t,n,r){En&&g.log(`Sending LCP span (${e})`);const i=ye((Ne()||0)+(t?.startTime||0)),s=z().getScopeData().transactionName,o=t?We(t.element):"Largest contentful paint",a={[X]:"auto.http.browser.lcp",[ke]:"ui.webvital.lcp",[or]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=We(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Ic({name:o,transaction:s,attributes:a,startTime:i});c&&(c.addEvent("lcp",{[qr]:"millisecond",[zr]:e}),c.end(i))}function Ke(e){return e&&((Ne()||performance.timeOrigin)+e)/1e3}function Vp(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=M0(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Ne()||ai()?.timeOrigin?D0({...t,"http.request.redirect_start":Ke(e.redirectStart),"http.request.redirect_end":Ke(e.redirectEnd),"http.request.worker_start":Ke(e.workerStart),"http.request.fetch_start":Ke(e.fetchStart),"http.request.domain_lookup_start":Ke(e.domainLookupStart),"http.request.domain_lookup_end":Ke(e.domainLookupEnd),"http.request.connect_start":Ke(e.connectStart),"http.request.secure_connection_start":Ke(e.secureConnectionStart),"http.request.connection_end":Ke(e.connectEnd),"http.request.request_start":Ke(e.requestStart),"http.request.response_start":Ke(e.responseStart),"http.request.response_end":Ke(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function D0(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const F0=2147483647;let Tl=0,rt={},Ue,Ss;function $0({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ai();if(r&&Ne()){r.mark&&q.performance.mark("sentry-tracing-init");const i=t?L0(n):j0(),s=q0(),o=e?N0(n):W0();return()=>{i?.(),s(),o?.()}}return()=>{}}function U0(){vn("longtask",({entries:e})=>{const t=Te();if(!t)return;const{op:n,start_timestamp:r}=G(t);for(const i of e){const s=ye(Ne()+i.startTime),o=ye(i.duration);n==="navigation"&&r&&s<r||Kt(t,s,s+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[X]:"auto.ui.browser.metrics"}})}})}function B0(){new PerformanceObserver(t=>{const n=Te();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=ye(Ne()+r.startTime),{start_timestamp:s,op:o}=G(n);if(o==="navigation"&&s&&i<s)continue;const a=ye(r.duration),c={[X]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:p,sourceFunctionName:f,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,p&&(c["code.filepath"]=p),f&&(c["code.function"]=f),h!==-1&&(c["browser.script.source_char_position"]=h),Kt(n,i,i+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function H0(){vn("event",({entries:e})=>{const t=Te();if(t){for(const n of e)if(n.name==="click"){const r=ye(Ne()+n.startTime),i=ye(n.duration),s={name:We(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[X]:"auto.ui.browser.metrics"}},o=Fd(n.target);o&&(s.attributes["ui.component_name"]=o),Kt(t,r,r+i,s)}}})}function W0(){return Tc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rt.cls={value:e.value,unit:""},Ss=t)},!0)}function j0(){return wc(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rt.lcp={value:e.value,unit:"millisecond"},Ue=t)},!0)}function q0(){return T0(({metric:e})=>{e.entries[e.entries.length-1]&&(rt.ttfb={value:e.value,unit:"millisecond"})})}function z0(e,t){const n=ai(),r=Ne();if(!n?.getEntries||!r)return;const i=ye(r),s=n.getEntries(),{op:o,start_timestamp:a}=G(e);s.slice(Tl).forEach(c=>{const u=ye(c.startTime),d=ye(Math.max(0,c.duration));if(!(o==="navigation"&&a&&i+u<a))switch(c.entryType){case"navigation":{Y0(e,c,i);break}case"mark":case"paint":case"measure":{V0(e,c,u,d,i,t.ignorePerformanceApiSpans);const l=ii(),p=c.startTime<l.firstHiddenTime;c.name==="first-paint"&&p&&(rt.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&p&&(rt.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{Q0(e,c,c.name,u,d,i,t.ignoreResourceSpans);break}}}),Tl=Math.max(s.length-1,0),Z0(e),o==="pageload"&&(nw(rt),t.recordClsOnPageloadSpan||delete rt.cls,t.recordLcpOnPageloadSpan||delete rt.lcp,Object.entries(rt).forEach(([c,u])=>{e_(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",lr()),ew(e,t)),Ue=void 0,Ss=void 0,rt={}}function G0(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function V0(e,t,n,r,i,s){if(G0(t)||["mark","measure"].includes(t.entryType)&&ot(t.name,s))return;const o=ri(!1),a=ye(o?o.requestStart:0),c=i+Math.max(n,a),u=i+n,d=u+r,l={[X]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),J0(l,t),c<=d&&Kt(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function J0(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&kt(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(kt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Y0(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{bi(e,t,r,n)}),bi(e,t,"secureConnection",n,"TLS/SSL"),bi(e,t,"fetch",n,"cache"),bi(e,t,"domainLookup",n,"DNS"),X0(e,t,n)}function bi(e,t,n,r,i=n){const s=K0(n),o=t[s],a=t[`${n}Start`];!a||!o||Kt(e,r+ye(a),r+ye(o),{op:`browser.${i}`,name:t.name,attributes:{[X]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function K0(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function X0(e,t,n){const r=n+ye(t.requestStart),i=n+ye(t.responseEnd),s=n+ye(t.responseStart);t.responseEnd&&(Kt(e,r,i,{op:"browser.request",name:t.name,attributes:{[X]:"auto.ui.browser.metrics"}}),Kt(e,s,i,{op:"browser.response",name:t.name,attributes:{[X]:"auto.ui.browser.metrics"}}))}function Q0(e,t,n,r,i,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(a))return;const c={[X]:"auto.resource.browser.metrics"},u=fn(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(q.location.origin),tw(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"]]);const d={...c,...Vp(t)},l=s+r,p=l+i;Kt(e,l,p,{name:n.replace(q.location.origin,""),op:a,attributes:d})}function Z0(e){const t=q.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Do(n.rtt)&&(rt["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Do(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Do(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function ew(e,t){Ue&&t.recordLcpOnPageloadSpan&&(Ue.element&&e.setAttribute("lcp.element",We(Ue.element)),Ue.id&&e.setAttribute("lcp.id",Ue.id),Ue.url&&e.setAttribute("lcp.url",Ue.url.trim().slice(0,200)),Ue.loadTime!=null&&e.setAttribute("lcp.loadTime",Ue.loadTime),Ue.renderTime!=null&&e.setAttribute("lcp.renderTime",Ue.renderTime),e.setAttribute("lcp.size",Ue.size)),Ss?.sources&&t.recordClsOnPageloadSpan&&Ss.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,We(n.node)))}function tw(e,t,n){n.forEach(([r,i])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<F0||typeof s=="string")&&(t[i]=s)})}function nw(e){const t=ri(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function rw(){return ai()&&Ne()?vn("element",iw):()=>{}}const iw=({entries:e})=>{const t=Te(),n=t?ve(t):void 0,r=n?G(n).description:z().getScopeData().transactionName;e.forEach(i=>{const s=i;if(!s.identifier)return;const o=s.name,a=s.renderTime,c=s.loadTime,[u,d]=c?[ye(c),"load-time"]:a?[ye(a),"render-time"]:[ge(),"entry-emission"],l=o==="image-paint"?ye(Math.max(0,(a??0)-(c??0))):0,p={[X]:"auto.ui.browser.elementtiming",[ke]:"ui.elementtiming",[xe]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":o};Pt({name:`element[${s.identifier}]`,attributes:p,startTime:u,onlyIfParent:!0},f=>{f.end(u+l)})})},sw=1e3;let wl,ma,ga;function Jp(e){Xt("dom",e),Qt("dom",ow)}function ow(){if(!q.document)return;const e=Qe.bind(null,"dom"),t=Il(e,!0);q.document.addEventListener("click",t,!1),q.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=q[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Ae(i,"addEventListener",function(s){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[o]=u[o]||{refCount:0};if(!d.handler){const l=Il(e);d.handler=l,s.call(this,o,l,c)}d.refCount++}catch{}return s.call(this,o,a,c)}}),Ae(i,"removeEventListener",function(s){return function(o,a,c){if(o==="click"||o=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[o];d&&(d.refCount--,d.refCount<=0&&(s.call(this,o,d.handler,c),d.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,a,c)}}))})}function aw(e){if(e.type!==ma)return!1;try{if(!e.target||e.target._sentryId!==ga)return!1}catch{}return!0}function cw(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function Il(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=uw(n);if(cw(n.type,r))return;Me(n,"_sentryCaptured",!0),r&&!r._sentryId&&Me(r,"_sentryId",we());const i=n.type==="keypress"?"input":n.type;aw(n)||(e({event:n,name:i,global:t}),ma=n.type,ga=r?r._sentryId:void 0),clearTimeout(wl),wl=q.setTimeout(()=>{ga=void 0,ma=void 0},sw)}}function uw(e){try{return e.target}catch{return null}}let Ei;function no(e){const t="history";Xt(t,e),Qt(t,lw)}function lw(){if(q.addEventListener("popstate",()=>{const t=q.location.href,n=Ei;if(Ei=t,n===t)return;Qe("history",{from:n,to:t})}),!gv())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Ei,s=dw(String(r));if(Ei=s,i===s)return t.apply(this,n);Qe("history",{from:i,to:s})}return t.apply(this,n)}}Ae(q.history,"pushState",e),Ae(q.history,"replaceState",e)}function dw(e){try{return new URL(e,q.location.origin).toString()}catch{return e}}const qi={};function kc(e){const t=qi[e];if(t)return t;let n=q[e];if(oa(n))return qi[e]=n.bind(q);const r=q.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){En&&g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(qi[e]=n.bind(q))}function fw(e){qi[e]=void 0}function ci(...e){return kc("setTimeout")(...e)}const St="__sentry_xhr_v3__";function Cc(e){Xt("xhr",e),Qt("xhr",pw)}function pw(){if(!q.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=ge()*1e3,o=st(r[0])?r[0].toUpperCase():void 0,a=hw(r[1]);if(!o||!a)return t.apply(n,r);n[St]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[St];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:ge()*1e3,startTimestamp:s,xhr:n,virtualError:i};Qe("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[p,f]=l,h=d[St];return h&&st(p)&&st(f)&&(h.request_headers[p.toLowerCase()]=f),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[St];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:ge()*1e3,xhr:n};return Qe("xhr",s),t.apply(n,r)}})}function hw(e){if(st(e))return e;try{return e.toString()}catch{}}const mw=Symbol.for("sentry__originalRequestBody");function Yp(e){return new URLSearchParams(e).toString()}function bs(e,t=g){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Yp(e)];if(!e)return[void 0]}catch(n){return En&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return En&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Rc(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][mw];return n!==void 0?n:void 0}}function Kp(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return En&&g.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
|
|
492
|
+
`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}const Fo=[],zi=new Map,Mn=new Map,gw=60;function _w(){if(ai()&&Ne()){const t=yw();return()=>{t()}}return()=>{}}const _a={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 yw(){return Wp(Sw)}const Sw=({metric:e})=>{if(e.value==null)return;const t=ye(e.value);if(t>gw)return;const n=e.entries.find(h=>h.duration===e.value&&_a[h.name]);if(!n)return;const{interactionId:r}=n,i=_a[n.name],s=ye(Ne()+n.startTime),o=Te(),a=o?ve(o):void 0,c=r!=null?zi.get(r):void 0,u=c?.span||a,d=u?G(u).description:z().getScopeData().transactionName,l=c?.elementName||We(n.target),p={[X]:"auto.http.browser.inp",[ke]:`ui.interaction.${i}`,[or]:n.duration},f=Ic({name:l,transaction:d,attributes:p,startTime:s});f&&(f.addEvent("inp",{[qr]:"millisecond",[zr]:e.value}),f.end(s+t))};function bw(){const e=Object.keys(_a);ps()&&e.forEach(i=>{q.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const s=i.target;if(!s)return;const o=We(s),a=Math.round(i.timeStamp);if(Mn.set(a,o),Mn.size>50){const c=Mn.keys().next().value;c!==void 0&&Mn.delete(c)}}function n(i){const s=Math.round(i.startTime);let o=Mn.get(s);if(!o)for(let a=-5;a<=5;a++){const c=Mn.get(s+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:i})=>{const s=Te(),o=s&&ve(s);i.forEach(a=>{if(!A0(a))return;const c=a.interactionId;if(c==null||zi.has(c))return;const u=a.target?We(a.target):n(a);if(Fo.length>10){const d=Fo.shift();zi.delete(d)}Fo.push(c),zi.set(c,{span:o,elementName:u})})};vn("event",r),vn("first-input",r)}const Ew=40;function Xp(e,t=kc("fetch")){let n=0,r=0;async function i(s){const o=s.body.length;n+=o,r++;const a={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw fw("fetch"),c}finally{n-=o,r--}}return ay(e,i,Xa(e.bufferSize||Ew))}const v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function vw(){const e=C();if(!e){v&&g.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){v&&g.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function Tw(){const e=C();if(!e){v&&g.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){v&&g.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const AM={startProfiler:vw,stopProfiler:Tw},ww=10,Iw=20,kw=30,Cw=40,Rw=50;function Qn(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?ft:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Aw=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mw=/\((\S*)(?::(\d+))(?::(\d+))\)/,Nw=/at (.+?) ?\(data:(.+?),/,Ow=e=>{const t=e.match(Nw);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Aw.exec(e);if(n){const[,i,s,o]=n;return Qn(i,ft,+s,+o)}const r=xw.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=Mw.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[s,o]=Qp(r[1]||ft,r[2]);return Qn(o,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Lw=[kw,Ow],Pw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Dw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Fw=e=>{const t=Pw.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=Dw.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||ft;return[i,r]=Qp(i,r),Qn(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},$w=[Rw,Fw],Uw=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Bw=e=>{const t=Uw.exec(e);return t?Qn(t[2],t[1]||ft,+t[3],t[4]?+t[4]:void 0):void 0},xM=[Cw,Bw],Hw=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ww=e=>{const t=Hw.exec(e);return t?Qn(t[2],t[3]||ft,+t[1]):void 0},MM=[ww,Ww],jw=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,qw=e=>{const t=jw.exec(e);return t?Qn(t[5],t[3]||t[4]||ft,+t[1],+t[2]):void 0},NM=[Iw,qw],zw=[Lw,$w],Gw=xd(...zw),Qp=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ft,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function OM(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Lt(r)}},s=Vw(e);return ut(i,[s])}function Vw(e){return[{type:"user_report"},e]}const vi=1024,Jw="Breadcrumbs",Yw=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Jw,setup(n){t.console&&tc(Zw(n)),t.dom&&Jp(Qw(n,t.dom)),t.xhr&&Cc(eI(n)),t.fetch&&fc(tI(n)),t.history&&no(nI(n)),t.sentry&&n.on("beforeSendEvent",Xw(n))}}}),Kw=Yw;function Xw(e){return function(n){C()===e&&xt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:sn(n)},{event:n})}}function Qw(e,t){return function(r){if(C()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>vi&&(v&&g.warn(`\`dom.maxStringLength\` cannot exceed ${vi}, but a value of ${a} was configured. Sentry will use ${vi} instead.`),a=vi),typeof o=="string"&&(o=[o]);try{const u=r.event,d=rI(u)?u.target:u;i=We(d,{keyAttrs:o,maxStringLength:a}),s=Fd(d)}catch{i="<unknown>"}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};s&&(c.data={"ui.component_name":s}),xt(c,{event:r.event,name:r.name,global:r.global})}}function Zw(e){return function(n){if(C()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:us(n.level),message:Xi(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Xi(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;xt(r,{input:n.args,level:n.level})}}function eI(e){return function(n){if(C()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[St];if(!r||!i||!s)return;const{method:o,url:a,status_code:c,body:u}=s,d={method:o,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},p={category:"xhr",data:d,type:"http",level:mp(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,l),xt(p,l)}}function tI(e){return function(n){if(C()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),xt(a,o)}else{const s=n.response,o={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const a={input:n.args,response:s,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:o,type:"http",level:mp(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),xt(c,a)}}}function nI(e){return function(n){if(C()!==e)return;let r=n.from,i=n.to;const s=fn(N.location.href);let o=r?fn(r):void 0;const a=fn(i);o?.path||(o=s),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),xt({category:"navigation",data:{from:r,to:i}})}}function rI(e){return!!e&&!!e.target}const iI=["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"],sI="BrowserApiErrors",oI=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:sI,setupOnce(){t.setTimeout&&Ae(N,"setTimeout",kl),t.setInterval&&Ae(N,"setInterval",kl),t.requestAnimationFrame&&Ae(N,"requestAnimationFrame",cI),t.XMLHttpRequest&&"XMLHttpRequest"in N&&Ae(XMLHttpRequest.prototype,"send",uI);const n=t.eventTarget;n&&(Array.isArray(n)?n:iI).forEach(i=>lI(i,t))}}}),aI=oI;function kl(e){return function(...t){const n=t[0];return t[0]=Xn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${It(e)}`}}),e.apply(this,t)}}function cI(e){return function(t){return e.apply(this,[Xn(t,{mechanism:{data:{handler:It(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function uI(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Ae(n,i,function(s){const o={mechanism:{data:{handler:It(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},a=Da(s);return a&&(o.mechanism.data.handler=It(a)),Xn(s,o)})}),e.apply(this,t)}}function lI(e,t){const r=N[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ae(r,"addEventListener",function(i){return function(s,o,a){try{dI(o)&&(o.handleEvent=Xn(o.handleEvent,{mechanism:{data:{handler:It(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&fI(this,s,o),i.apply(this,[s,Xn(o,{mechanism:{data:{handler:It(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Ae(r,"removeEventListener",function(i){return function(s,o,a){try{const c=o.__sentry_wrapped__;c&&i.call(this,s,c,a)}catch{}return i.call(this,s,o,a)}}))}function dI(e){return typeof e.handleEvent=="function"}function fI(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const pI=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof N.document>"u"){v&&g.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}bu({ignoreDuration:!0}),bo();const n=Se();let r=n.getUser();n.addScopeListener(i=>{const s=i.getUser();(r?.id!==s?.id||r?.ip_address!==s?.ip_address)&&(bo(),r=s)}),t==="route"&&no(({from:i,to:s})=>{i!==s&&(bu({ignoreDuration:!0}),bo())})}}},hI="CultureContext",mI=(()=>({name:hI,preprocessEvent(e){const t=_I();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}})),gI=mI;function _I(){try{const e=N.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const yI="GlobalHandlers",SI=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:yI,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(EI(n),Cl("onerror")),t.onunhandledrejection&&(vI(n),Cl("onunhandledrejection"))}}}),bI=SI;function EI(e){Nd(t=>{const{stackParser:n,attachStacktrace:r}=th();if(C()!==e||Mp())return;const{msg:i,url:s,line:o,column:a,error:c}=t,u=TI(Zs(n,c||i,void 0,r,!1),s,o,a);u.level="error",Yr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function vI(e){Od(t=>{const{stackParser:n,attachStacktrace:r}=th();if(C()!==e||Mp())return;const i=Zp(t),s=kt(i)?eh(i):Zs(n,i,void 0,r,!0);s.level="error",Yr(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Zp(e){if(kt(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 eh(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function TI(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=wI(t)??wn();return c.length===0&&c.push({colno:u,filename:l,function:ft,in_app:!0,lineno:d}),e}function Cl(e){v&&g.log(`Global Handler attached: ${e}`)}function th(){return C()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function wI(e){if(!(!st(e)||e.length===0))return e.startsWith("data:")?`<${zt(e,!1)}>`:e}const II=()=>({name:"HttpContext",preprocessEvent(e){if(!N.navigator&&!N.location&&!N.document)return;const t=yc(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),kI="cause",CI=5,RI="LinkedErrors",AI=((e={})=>{const t=e.limit||CI,n=e.key||kI;return{name:RI,preprocessEvent(r,i,s){const o=s.getOptions();Yy(Sc,o.stackParser,n,t,r,i)}}}),xI=AI,MI="SpotlightBrowser",NI=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:MI,setup:()=>{v&&g.log("Using Sidecar URL",t)},processEvent:n=>LI(n)?null:n,afterAllSetup:n=>{OI(n,t)}}});function OI(e,t){const n=kc("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){g.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:rs(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,g.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const LM=NI;function LI(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}function PI(){return DI()?(v&&Ot(()=>{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 DI(){if(typeof N.window>"u")return!1;const e=N;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=wn(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(N===N.top&&r.some(s=>n.startsWith(`${s}://`)))}function ya(e){return[Hy(),Fy(),JS(),aI(),Kw(),bI(),xI(),iS(),II(),gI(),pI()]}function FI(e={}){const t=!e.skipBrowserExtensionCheck&&PI();let n=e.defaultIntegrations==null?ya():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:Nm(e.stackParser||Gw),integrations:H_({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Xp};return yy(n0,r)}function PM(){}function DM(e){e()}function FM(e={}){const t=N.document,n=t?.head||t?.body;if(!n){v&&g.error("[showReportDialog] Global document not defined");return}const r=z(),s=C()?.getDsn();if(!s){v&&g.error("[showReportDialog] DSN not configured");return}const o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||O_()},a=N.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=U_(s,o);const{onLoad:c,onClose:u}=o;if(c&&(a.onload=c),u){const d=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{N.removeEventListener("message",d)}};N.addEventListener("message",d)}n.appendChild(a)}const $I=F,UI="ReportingObserver",Rl=new WeakMap,BI=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(Rl.has(C()))for(const i of r)ct(s=>{s.setExtra("url",i.url);const o=`ReportingObserver [${i.type}]`;let a="No details available";if(i.body){const c={};for(const u in i.body)c[u]=i.body[u];if(s.setExtra("body",c),i.type==="crash"){const u=i.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=i.body.message||a}M_(`${o}: ${a}`)})}return{name:UI,setupOnce(){if(!yv())return;new $I.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){Rl.set(r,!0)}}}),$M=BI,HI="HttpClient",WI=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:HI,setup(n){KI(n,t),XI(n,t)}}}),UM=WI;function jI(e,t,n,r,i){if(rh(e,n.status,n.url)){const s=QI(t,r);let o,a,c,u;sh()&&([o,c]=Al("Cookie",s),[a,u]=Al("Set-Cookie",n));const d=ih({url:s.url,method:s.method,status:n.status,requestHeaders:o,responseHeaders:a,requestCookies:c,responseCookies:u,error:i,type:"fetch"});Yr(d)}}function Al(e,t){const n=GI(t.headers);let r;try{const i=n[e]||n[e.toLowerCase()]||void 0;i&&(r=nh(i))}catch{}return[n,r]}function qI(e,t,n,r,i){if(rh(e,t.status,t.responseURL)){let s,o,a;if(sh()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(o=nh(u))}catch{}try{a=VI(t)}catch{}s=r}const c=ih({url:t.responseURL,method:n,status:t.status,requestHeaders:s,responseHeaders:a,responseCookies:o,error:i,type:"xhr"});Yr(c)}}function zI(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function nh(e){return e.split("; ").reduce((t,n)=>{const[r,i]=n.split("=");return r&&i&&(t[r]=i),t},{})}function GI(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function VI(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
493
|
+
`).reduce((n,r)=>{const[i,s]=r.split(": ");return i&&s&&(n[i]=s),n},{}):{}}function JI(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function YI(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function KI(e,t){gp()&&fc(n=>{if(C()!==e)return;const{response:r,args:i,error:s,virtualError:o}=n,[a,c]=i;r&&jI(t,a,r,c,s||o)},!1)}function XI(e,t){"XMLHttpRequest"in F&&Cc(n=>{if(C()!==e)return;const{error:r,virtualError:i}=n,s=n.xhr,o=s[St];if(!o)return;const{method:a,request_headers:c}=o;try{qI(t,s,a,c,r||i)}catch(u){v&&g.warn("Error while extracting response event form XHR response",u)}})}function rh(e,t,n){return YI(e.failedRequestStatusCodes,t)&&JI(e.failedRequestTargets,n)&&!Df(n,C())}function ih(e){const t=C(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,s={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:zI(e.responseHeaders)}}};return Rt(s,{type:`auto.http.client.${e.type}`,handled:!1}),s}function QI(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function sh(){const e=C();return e?!!e.getOptions().sendDefaultPii:!1}const $o=F,ZI=7,ek="ContextLines",tk=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:ZI;return{name:ek,processEvent(n){return nk(n,t)}}}),BM=tk;function nk(e,t){const n=$o.document,r=$o.location&&Pf($o.location.href);if(!n||!r)return e;const i=e.exception?.values;if(!i?.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const o=["<!DOCTYPE html>","<html>",...s.split(`
|
|
494
|
+
`),"</html>"];return i.forEach(a=>{const c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>rk(u,o,r,t)))}),e}function rk(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Vm(t,e,r),e}const ik="GraphQLClient",sk=(e=>({name:ik,setup(t){ok(t,e),ak(t,e)}}));function ok(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const s=G(n).data||{};if(!(s[ke]==="http.client"))return;const c=s[cg]||s["http.url"],u=s[ag]||s["http.method"];if(!st(c)||!st(u))return;const{endpoints:d}=t,l=ot(c,d),p=ah(r);if(l&&p){const f=ch(p);if(f){const h=oh(f);n.updateName(`${u} ${c} (${h})`),ro(f)&&n.setAttribute("graphql.document",f.query),io(f)&&(n.setAttribute("graphql.persisted_query.hash.sha256",f.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",f.extensions.persistedQuery.version))}}})}function ak(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:i,type:s,data:o}=n;if(s==="http"&&(i==="fetch"||i==="xhr")){const d=o?.url,{endpoints:l}=t,p=ot(d,l),f=ah(r);if(p&&o&&f){const h=ch(f);if(!o.graphql&&h){const m=oh(h);o["graphql.operation"]=m,ro(h)&&(o["graphql.document"]=h.query),io(h)&&(o["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function oh(e){if(io(e))return`persisted ${e.operationName}`;if(ro(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=ck(t);return r?`${i} ${r}`:`${i}`}return"unknown"}function ah(e){const t="xhr"in e;let n;if(t){const r=e.xhr[St];n=r&&bs(r.body)[0]}else{const r=Rc(e.input);n=bs(r)[0]}return n}function ck(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function Gi(e){return typeof e=="object"&&e!==null}function ro(e){return Gi(e)&&typeof e.query=="string"}function io(e){return Gi(e)&&typeof e.operationName=="string"&&Gi(e.extensions)&&Gi(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function ch(e){try{const t=JSON.parse(e);return ro(t)||io(t)?t:void 0}catch{return}}const HM=sk,de=F,Ac="sentryReplaySession",uk="replay_event",xc="Unable to send Replay",lk=3e5,dk=9e5,fk=5e3,pk=5500,hk=6e4,mk=5e3,gk=3,xl=15e4,Ti=5e3,_k=3e3,yk=300,Mc=2e7,Sk=4999,bk=5e4,Ml=36e5;var Ek=Object.defineProperty,vk=(e,t,n)=>t in e?Ek(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t,n)=>vk(e,typeof t!="symbol"?t+"":t,n),Ee=(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))(Ee||{});function Tk(e){return e.nodeType===e.ELEMENT_NODE}function Cr(e){return e?.host?.shadowRoot===e}function Rr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function wk(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 Ik(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Es(e){try{const t=e.rules||e.cssRules;return t?wk(Array.from(t,uh).join("")):null}catch{return null}}function kk(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],s=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function uh(e){let t;if(Rk(e))try{t=Es(e.styleSheet)||Ik(e)}catch{}else if(Ak(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=kk(e)),r&&(n=Ck(n)),r||i)return n}return t||e.cssText}function Ck(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Rk(e){return"styleSheet"in e}function Ak(e){return"selectorText"in e}let lh=class{constructor(){Nl(this,"idNodeMap",new Map),Nl(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function xk(){return new lh}function so({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 Lr({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Zn(e){return e.toLowerCase()}function Sa(e){return e.toUpperCase()}const Ol="__rrweb_original__";function Mk(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const s=t.getImageData,o=Ol in s?s[Ol]:s;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(c=>c!==0))return!1}return!0}function Nc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Zn(t):null}function vs(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function dh(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const Ll={};function fh(e){const t=Ll[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return Ll[e]=r.bind(window)}function ba(...e){return fh("setTimeout")(...e)}function ph(...e){return fh("clearTimeout")(...e)}function hh(e){try{return e.contentDocument}catch{}}let Nk=1;const Ok=new RegExp("[^a-z0-9-_:]"),Pr=-2;function Oc(){return Nk++}function Lk(e){if(e instanceof HTMLFormElement)return"form";const t=Zn(e.tagName);return Ok.test(t)?"div":t}function Pk(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Nn,Pl;const Dk=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fk=/^(?:[a-z+]+:)?\/\//i,$k=/^www\..*/i,Uk=/^(data:)([^,]*),(.*)/i;function Bk(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const s=i.indexOf(":");if(s===-1){r.push(i);continue}const o=i.slice(0,s).trim();t.has(o)||r.push(i)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Ts(e,t){return(e||"").replace(Dk,(n,r,i,s,o,a)=>{const c=i||o||a,u=r||s||"";if(!c)return n;if(Fk.test(c)||$k.test(c))return`url(${u}${c}${u})`;if(Uk.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Pk(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const p of l)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const Hk=/^[^ \t\n\r\u000c]+/,Wk=/^[, \t\n\r\u000c]+/;function jk(e,t){if(t.trim()==="")return t;let n=0;function r(s){let o;const a=s.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const i=[];for(;r(Wk),!(n>=t.length);){let s=r(Hk);if(s.slice(-1)===",")s=Fn(e,s.substring(0,s.length-1)),i.push(s);else{let o="";s=Fn(e,s);let a=!1;for(;;){const c=t.charAt(n);if(c===""){i.push((s+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,i.push((s+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return i.join(", ")}const Dl=new WeakMap;function Fn(e,t){return!t||t.trim()===""?t:oo(e,t)}function qk(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function oo(e,t){let n=Dl.get(e);if(n||(n=e.createElement("a"),Dl.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function mh(e,t,n,r,i,s,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Fn(e,r);if(n==="xlink:href"&&r[0]!=="#")return Fn(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Fn(e,r);if(n==="srcset")return jk(e,r);if(n==="style"){let a=Ts(r,oo(e));return o&&o.size>0&&(a=Bk(a,o)),a}else if(t==="object"&&n==="data")return Fn(e,r);return typeof s=="function"?s(n,r,i):r}function gh(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function zk(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 i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function Gk(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function cn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:cn(e.parentNode,t,n,r+1)}function $n(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Gk(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function er(e,t,n,r,i,s){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const u=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(s){if(c=cn(o,$n(r,i)),c<0)return!0;a=cn(o,$n(t,n),c>=0?c:1/0)}else{if(a=cn(o,$n(t,n)),a<0)return!1;c=cn(o,$n(r,i),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!s}catch{}return!!s}function Vk(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=ba(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{ph(a),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return ba(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Jk(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const s=ba(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{ph(s),r=!0,t()})}function Yk(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:_,dataURLOptions:y={},inlineImages:b,recordCanvas:O,keepIframeSrcFn:I,newlyAddedElement:W=!1,ignoreCSSAttributes:L}=t,S=Kk(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Ee.Document,childNodes:[],compatMode:e.compatMode}:{type:Ee.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Ee.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Qk(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:O,keepIframeSrcFn:I,newlyAddedElement:W,rootId:S,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,ignoreCSSAttributes:L});case e.TEXT_NODE:return Xk(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:_,rootId:S});case e.CDATA_SECTION_NODE:return{type:Ee.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:Ee.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function Kk(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function Xk(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,m=l==="TEXTAREA"?!0:void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Es(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}p=Ts(p,oo(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const _=er(e,r,s,i,o,n);if(!f&&!h&&!m&&p&&_&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||_)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),l==="OPTION"&&p){const y=so({type:null,tagName:l,maskInputOptions:c});p=Lr({isMasked:er(e,r,s,i,o,y),element:e,value:p,maskInputFn:u})}return{type:Ee.Text,textContent:p||"",isStyle:f,rootId:d}}function Qk(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:_,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:O,ignoreCSSAttributes:I}=t,W=zk(e,r,i,s),L=Lk(e);let S={};const k=e.attributes.length;for(let E=0;E<k;E++){const R=e.attributes[E];R.name&&!gh(L,R.name,R.value)&&(S[R.name]=mh(n,L,Zn(R.name),R.value,e,c,I))}if(L==="link"&&o){const E=Array.from(n.styleSheets).find(w=>w.href===e.href);let R=null;E&&(R=Es(E)),R&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Ts(R,E.href))}if(L==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const E=Es(e.sheet);E&&(S._cssText=Ts(E,oo(n)))}if(L==="input"||L==="textarea"||L==="select"||L==="option"){const E=e,R=Nc(E),w=vs(E,Sa(L),R),M=E.checked;if(R!=="submit"&&R!=="button"&&w){const P=er(E,_,b,y,O,so({type:R,tagName:Sa(L),maskInputOptions:a}));S.value=Lr({isMasked:P,element:E,value:w,maskInputFn:u})}M&&(S.checked=M)}if(L==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),L==="canvas"&&p){if(e.__context==="2d")Mk(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const E=e.toDataURL(d.type,d.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height;const w=R.toDataURL(d.type,d.quality);E!==w&&(S.rr_dataURL=E)}}if(L==="img"&&l){Nn||(Nn=n.createElement("canvas"),Pl=Nn.getContext("2d"));const E=e,R=E.currentSrc||E.getAttribute("src")||"<unknown-src>",w=E.crossOrigin,M=()=>{E.removeEventListener("load",M);try{Nn.width=E.naturalWidth,Nn.height=E.naturalHeight,Pl.drawImage(E,0,0),S.rr_dataURL=Nn.toDataURL(d.type,d.quality)}catch(P){if(E.crossOrigin!=="anonymous"){E.crossOrigin="anonymous",E.complete&&E.naturalWidth!==0?M():E.addEventListener("load",M);return}else console.warn(`Cannot inline img src=${R}! Error: ${P}`)}E.crossOrigin==="anonymous"&&(w?S.crossOrigin=w:E.removeAttribute("crossorigin"))};E.complete&&E.naturalWidth!==0?M():E.addEventListener("load",M)}if((L==="audio"||L==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),W){const{width:E,height:R}=e.getBoundingClientRect();S={class:S.class,rr_width:`${E}px`,rr_height:`${R}px`}}L==="iframe"&&!f(S.src)&&(!W&&!hh(e)&&(S.rr_src=S.src),delete S.src);let H;try{customElements.get(L)&&(H=!0)}catch{}return{type:Ee.Element,tagName:L,attributes:S,childNodes:[],isSVG:qk(e)||void 0,needBlock:W,rootId:m,isCustom:H}}function le(e){return e==null?"":e.toLowerCase()}function Zk(e,t){if(t.comment&&e.type===Ee.Comment)return!0;if(e.type===Ee.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&dh(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(le(e.attributes.name).match(/^msapplication-tile(image|color)$/)||le(e.attributes.name)==="application-name"||le(e.attributes.rel)==="icon"||le(e.attributes.rel)==="apple-touch-icon"||le(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&le(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(le(e.attributes.property).match(/^(og|twitter|fb):/)||le(e.attributes.name).match(/^(og|twitter):/)||le(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(le(e.attributes.name)==="robots"||le(e.attributes.name)==="googlebot"||le(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(le(e.attributes.name)==="author"||le(e.attributes.name)==="generator"||le(e.attributes.name)==="framework"||le(e.attributes.name)==="publisher"||le(e.attributes.name)==="progid"||le(e.attributes.property).match(/^article:/)||le(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(le(e.attributes.name)==="google-site-verification"||le(e.attributes.name)==="yandex-verification"||le(e.attributes.name)==="csrf-token"||le(e.attributes.name)==="p:domain_verify"||le(e.attributes.name)==="verify-v1"||le(e.attributes.name)==="verification"||le(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Un(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:O={},inlineImages:I=!1,recordCanvas:W=!1,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:k=5e3,onBlockedImageLoad:H,onStylesheetLoad:E,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:M=!1,ignoreCSSAttributes:P}=t;let{preserveWhiteSpace:Q=!0}=t;const Z=Yk(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,dataURLOptions:O,inlineImages:I,recordCanvas:W,keepIframeSrcFn:w,newlyAddedElement:M,ignoreCSSAttributes:P});if(!Z)return console.warn(e,"not serialized"),null;let te;r.hasNode(e)?te=r.getId(e):Zk(Z,b)||!Q&&Z.type===Ee.Text&&!Z.isStyle&&!Z.textContent.replace(/^\s+|\s+$/gm,"").length?te=Pr:te=Oc();const A=Object.assign(Z,{id:te});if(r.add(e,A),te===Pr)return null;L&&L(e);let D=!p;if(A.type===Ee.Element){D=D&&!A.needBlock;const x=e.shadowRoot;x&&Rr(x)&&(A.isShadowHost=!0)}if((A.type===Ee.Document||A.type===Ee.Element)&&D){b.headWhitespace&&A.type===Ee.Element&&A.tagName==="head"&&(Q=!1);const x={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:O,inlineImages:I,recordCanvas:W,preserveWhiteSpace:Q,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:k,onBlockedImageLoad:H,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:w,ignoreCSSAttributes:P},$=e.childNodes?Array.from(e.childNodes):[];for(const re of $){const oe=Un(re,x);oe&&A.childNodes.push(oe)}if(Tk(e)&&e.shadowRoot)for(const re of Array.from(e.shadowRoot.childNodes)){const oe=Un(re,x);oe&&(Rr(e.shadowRoot)&&(oe.isShadow=!0),A.childNodes.push(oe))}}if(e.parentNode&&Cr(e.parentNode)&&Rr(e.parentNode)&&(A.isShadow=!0),A.type===Ee.Element&&A.tagName==="iframe"&&!A.needBlock&&Vk(e,()=>{const x=hh(e);if(x&&S){const $=Un(x,{doc:x,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:O,inlineImages:I,recordCanvas:W,preserveWhiteSpace:Q,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:w,ignoreCSSAttributes:P});$&&S(e,$)}},k),A.type===Ee.Element&&A.tagName==="img"&&!e.complete&&A.needBlock){const x=e,$=()=>{if(x.isConnected&&!x.complete&&H)try{const re=x.getBoundingClientRect();re.width>0&&re.height>0&&H(x,A,re)}catch{}x.removeEventListener("load",$)};x.isConnected&&x.addEventListener("load",$)}return A.type===Ee.Element&&A.tagName==="link"&&typeof A.attributes.rel=="string"&&(A.attributes.rel==="stylesheet"||A.attributes.rel==="preload"&&typeof A.attributes.href=="string"&&dh(A.attributes.href)==="css")&&Jk(e,()=>{if(E){const x=Un(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:O,inlineImages:I,recordCanvas:W,preserveWhiteSpace:Q,onSerialize:L,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:R,keepIframeSrcFn:w,ignoreCSSAttributes:P});x&&E(e,x)}},R),A.type===Ee.Element&&delete A.needBlock,A}function eC(e,t){const{mirror:n=new lh,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOM:b=!1,dataURLOptions:O,preserveWhiteSpace:I,onSerialize:W,onIframeLoad:L,iframeLoadTimeout:S,onBlockedImageLoad:k,onStylesheetLoad:H,stylesheetLoadTimeout:E,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:w=new Set([])}=t||{};return Un(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:_,maskInputFn:y,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:O,inlineImages:p,recordCanvas:f,preserveWhiteSpace:I,onSerialize:W,onIframeLoad:L,iframeLoadTimeout:S,onBlockedImageLoad:k,onStylesheetLoad:H,stylesheetLoadTimeout:E,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:w})}function Fe(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ln=`Please stop import mirror directly. Instead of that,\r
|
|
495
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
496
|
+
or you can use record.mirror to access the mirror instance during recording.`;let Fl={map:{},getId(){return console.error(Ln),-1},getNode(){return console.error(Ln),null},removeNodeFromMap(){console.error(Ln)},has(){return console.error(Ln),!1},reset(){console.error(Ln)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Fl=new Proxy(Fl,{get(e,t,n){return t==="map"&&console.error(Ln),Reflect.get(e,t,n)}}));function Dr(e,t,n={}){let r=null,i=0;return function(...s){const o=Date.now();!i&&n.leading===!1&&(i=o);const a=t-(o-i),c=this;a<=0||a>t?(r&&(aC(r),r=null),i=o,e.apply(c,s)):!r&&n.trailing!==!1&&(r=ao(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,s)},a))}}function _h(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){ao(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>_h(e,t,s||{},!0)}function Lc(e,t,n){try{if(!(t in e))return()=>{};const 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()=>{}}}let ws=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ws=()=>new Date().getTime());function yh(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Sh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Eh(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ge(e,t,n,r,i){if(!e)return!1;const s=Eh(e);if(!s)return!1;const o=$n(t,n);if(!i){const u=r&&s.matches(r);return o(s)&&!u}const a=cn(s,o);let c=-1;return a<0?!1:(r&&(c=cn(s,$n(null,r))),a>-1&&c<0?!0:a<c)}function tC(e,t){return t.getId(e)!==-1}function Uo(e,t){return t.getId(e)===Pr}function vh(e,t){if(Cr(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?vh(e.parentNode,t):!0:!0}function Ea(e){return!!e.changedTouches}function nC(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Th(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function wh(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function va(e){return!!e?.shadowRoot}class rC{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ih(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iC(e){let t=e,n;for(;n=Ih(t);)t=n;return t}function sC(e){const t=e.ownerDocument;if(!t)return!1;const n=iC(e);return t.contains(n)}function kh(e){const t=e.ownerDocument;return t?t.contains(e)||sC(e):!1}const $l={};function Pc(e){const t=$l[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return $l[e]=r.bind(window)}function oC(...e){return Pc("requestAnimationFrame")(...e)}function ao(...e){return Pc("setTimeout")(...e)}function aC(...e){return Pc("clearTimeout")(...e)}var V=(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))(V||{}),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||{}),De=(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))(De||{}),yt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(yt||{}),Pn=(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))(Pn||{});function Dc(e){try{return e.contentDocument}catch{}}function cC(e){try{return e.contentWindow}catch{}}function Ul(e){return"__ln"in e}class uC{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Ul(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Ul(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Bl=(e,t)=>`${e}@${t}`;class lC{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new uC,i=c=>{let u=c,d=Pr;for(;d===Pr;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},s=c=>{if(!c.parentNode||!kh(c))return;const u=Cr(c.parentNode)?this.mirror.getId(Ih(c)):this.mirror.getId(c.parentNode),d=i(c);if(u===-1||d===-1)return r.addNode(c);const l=Un(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Th(p,this.mirror)&&!Ge(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),wh(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),va(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,f)=>{Ge(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,f),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,f)=>{this.stylesheetManager.attachLinkElement(p,f)},onBlockedImageLoad:(p,f,{width:h,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:f.id,attributes:{style:{width:`${h}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Hl(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||s(c);for(const c of this.addedSet)!Wl(this.droppedSet,c)&&!Hl(this.removes,c,this.mirror)||Wl(this.movedSet,c)?s(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const u=this.mirror.getId(o.value.parentNode),d=i(o.value);u!==-1&&d!==-1&&(c=o)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(i(d.value)===-1)continue;if(l!==-1){c=d;break}else{const f=d.value;if(f.parentNode&&f.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=f.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),s(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Uo(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:er(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Eh(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=Nc(n),a=n.tagName;i=vs(n,a,o);const c=so({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),u=er(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);i=Lr({isMasked:u,element:n,value:i,maskInputFn:this.maskInputFn})}if(Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!Dc(n))r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!gh(n.tagName,r)&&(s.attributes[r]=mh(this.doc,Zn(n.tagName),Zn(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||u!==o.style.getPropertyPriority(a)?u===""?s.styleDiff[a]=c:s.styleDiff[a]=[c,u]:s._unchangedStyles[a]=[c,u]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Cr(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Uo(n,this.mirror)||!tC(n,this.mirror)||(this.addedSet.has(n)?(Ta(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||vh(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Bl(r,i)]?Ta(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Cr(t.target)&&Rr(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Uo(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Bl(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ge(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),va(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ta(e,t){e.delete(t),t.childNodes?.forEach(n=>Ta(e,n))}function Hl(e,t,n){return e.length===0?!1:dC(e,t,n)}function dC(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(s=>s.id===i))return!0;r=r.parentNode}return!1}function Wl(e,t){return e.size===0?!1:Ch(e,t)}function Ch(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:Ch(e,n):!1}let Ar;function fC(e){Ar=e}function pC(){Ar=void 0}const ne=e=>Ar?(...n)=>{try{return e(...n)}catch(r){if(Ar&&Ar(r)===!0)return()=>{};throw r}}:e,Bn=[];function ui(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Rh(e,t){const n=new lC;Bn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const s=new r(ne(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function hC({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Dr(ne(l=>{const p=Date.now()-a;e(o.map(f=>(f.timeOffset-=p,f)),l),o=[],a=null}),s),u=ne(Dr(ne(l=>{const p=ui(l),{clientX:f,clientY:h}=Ea(l)?l.changedTouches[0]:l;a||(a=ws()),o.push({x:f,y:h,id:r.getId(p),timeOffset:ws()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?j.Drag:l instanceof MouseEvent?j.MouseMove:j.TouchMove)}),i,{trailing:!1})),d=[Fe("mousemove",u,n),Fe("touchmove",u,n),Fe("drag",u,n)];return ne(()=>{d.forEach(l=>l())})}function mC({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let u=null;const d=l=>p=>{const f=ui(p);if(Ge(f,r,i,s,!0))return;let h=null,m=l;if("pointerType"in p){switch(p.pointerType){case"mouse":h=yt.Mouse;break;case"touch":h=yt.Touch;break;case"pen":h=yt.Pen;break}h===yt.Touch?De[l]===De.MouseDown?m="TouchStart":De[l]===De.MouseUp&&(m="TouchEnd"):yt.Pen}else Ea(p)&&(h=yt.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===yt.Touch||m.startsWith("Mouse")&&h===yt.Mouse)&&(h=null)):De[l]===De.Click&&(h=u,u=null);const _=Ea(p)?p.changedTouches[0]:p;if(!_)return;const y=n.getId(f),{clientX:b,clientY:O}=_;ne(e)({type:De[m],id:y,x:b,y:O,...h!==null&&{pointerType:h}})};return Object.keys(De).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let p=Zn(l);const f=d(l);if(window.PointerEvent)switch(De[l]){case De.MouseDown:case De.MouseUp:p=p.replace("mouse","pointer");break;case De.TouchStart:case De.TouchEnd:return}c.push(Fe(p,f,t))}),ne(()=>{c.forEach(l=>l())})}function Ah({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){const a=ne(Dr(ne(c=>{const u=ui(c);if(!u||Ge(u,r,i,s,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=yh(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),o.scroll||100));return Fe("scroll",a,t)}function gC({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=ne(Dr(ne(()=>{const s=Sh(),o=bh();(n!==s||r!==o)&&(e({width:Number(o),height:Number(s)}),n=s,r=o)}),200));return Fe("resize",i,t)}const _C=["INPUT","TEXTAREA","SELECT"],jl=new WeakMap;function yC({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function _(S){let k=ui(S);const H=S.isTrusted,E=k&&Sa(k.tagName);if(E==="OPTION"&&(k=k.parentElement),!k||!E||_C.indexOf(E)<0||Ge(k,r,i,s,!0))return;const R=k;if(R.classList.contains(o)||a&&R.matches(a))return;const w=Nc(k);let M=vs(R,E,w),P=!1;const Q=so({maskInputOptions:c,tagName:E,type:w}),Z=er(k,p,h,f,m,Q);(w==="radio"||w==="checkbox")&&(P=k.checked),M=Lr({isMasked:Z,element:k,value:M,maskInputFn:u}),y(k,l?{text:M,isChecked:P,userTriggered:H}:{text:M,isChecked:P});const te=k.name;w==="radio"&&te&&P&&t.querySelectorAll(`input[type="radio"][name="${te}"]`).forEach(A=>{if(A!==k){const D=Lr({isMasked:Z,element:A,value:vs(A,E,w),maskInputFn:u});y(A,l?{text:D,isChecked:!P,userTriggered:!1}:{text:D,isChecked:!P})}})}function y(S,k){const H=jl.get(S);if(!H||H.text!==k.text||H.isChecked!==k.isChecked){jl.set(S,k);const E=n.getId(S);ne(e)({...k,id:E})}}const O=(d.input==="last"?["change"]:["input","change"]).map(S=>Fe(S,ne(_),t)),I=t.defaultView;if(!I)return()=>{O.forEach(S=>S())};const W=I.Object.getOwnPropertyDescriptor(I.HTMLInputElement.prototype,"value"),L=[[I.HTMLInputElement.prototype,"value"],[I.HTMLInputElement.prototype,"checked"],[I.HTMLSelectElement.prototype,"value"],[I.HTMLTextAreaElement.prototype,"value"],[I.HTMLSelectElement.prototype,"selectedIndex"],[I.HTMLOptionElement.prototype,"selected"]];return W&&W.set&&O.push(...L.map(S=>_h(S[0],S[1],{set(){ne(_)({target:this,isTrusted:!1})}},!1,I))),ne(()=>{O.forEach(S=>S())})}function Is(e){const t=[];function n(r,i){if(wi("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||wi("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||wi("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||wi("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function Bt(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function SC({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:ne((d,l,p)=>{const[f,h]=p,{id:m,styleId:_}=Bt(l,t,n.styleMirror);return(m&&m!==-1||_&&_!==-1)&&e({id:m,styleId:_,adds:[{rule:f,index:h}]}),d.apply(l,p)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:m}=Bt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:f}]}),d.apply(l,p)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:m}=Bt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:f}),d.apply(l,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:m}=Bt(l,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:f}),d.apply(l,p)})}));const c={};Ii("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Ii("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Ii("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Ii("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:ne((p,f,h)=>{const[m,_]=h,{id:y,styleId:b}=Bt(f.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,adds:[{rule:m,index:[...Is(f),_||0]}]}),p.apply(f,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:ne((p,f,h)=>{const[m]=h,{id:_,styleId:y}=Bt(f.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,removes:[{index:[...Is(f),m]}]}),p.apply(f,h)})})}),ne(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function xh({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(o){const a=s.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),ne(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function bC({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:ne((a,c,u)=>{const[d,l,p]=u;if(n.has(d))return s.apply(c,[d,l,p]);const{id:f,styleId:h}=Bt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(f&&f!==-1||h&&h!==-1)&&e({id:f,styleId:h,set:{property:d,value:l,priority:p},index:Is(c.parentRule)}),a.apply(c,u)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ne((a,c,u)=>{const[d]=u;if(n.has(d))return o.apply(c,[d]);const{id:l,styleId:p}=Bt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||p&&p!==-1)&&e({id:l,styleId:p,remove:{property:d},index:Is(c.parentRule)}),a.apply(c,u)})}),ne(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}function EC({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){const a=ne(u=>Dr(ne(d=>{const l=ui(d);if(!l||Ge(l,t,n,r,!0))return;const{currentTime:p,volume:f,muted:h,playbackRate:m}=l;e({type:u,id:i.getId(l),currentTime:p,volume:f,muted:h,playbackRate:m})}),s.media||500)),c=[Fe("play",a(Pn.Play),o),Fe("pause",a(Pn.Pause),o),Fe("seeked",a(Pn.Seeked),o),Fe("volumechange",a(Pn.VolumeChange),o),Fe("ratechange",a(Pn.RateChange),o)];return ne(()=>{c.forEach(u=>u())})}function vC({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(c,u,d){const l=new s(c,u,d);return i.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const o=Lc(t.fonts,"add",function(a){return function(c){return ao(ne(()=>{const u=i.get(c);u&&(e(u),i.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(o),ne(()=>{r.forEach(a=>a())})}function TC(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e;let a=!0;const c=ne(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let p=0;p<l;p++){const f=u.getRangeAt(p),{startContainer:h,startOffset:m,endContainer:_,endOffset:y}=f;Ge(h,r,i,s,!0)||Ge(_,r,i,s,!0)||d.push({start:n.getId(h),startOffset:m,end:n.getId(_),endOffset:y})}o({ranges:d})});return c(),Fe("selectionchange",c)}function wC({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Lc(n.customElements,"define",function(i){return function(s,o,a){try{t({define:{name:s}})}catch{}return i.apply(this,[s,o,a])}})}function IC(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Rh(e,e.doc));const i=hC(e),s=mC(e),o=Ah(e),a=gC(e,{win:n}),c=yC(e),u=EC(e);let d=()=>{},l=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(d=SC(e,{win:n}),l=xh(e,e.doc),p=bC(e,{win:n}),e.collectFonts&&(f=vC(e)));const h=TC(e),m=wC(e),_=[];for(const y of e.plugins)_.push(y.observer(y.callback,n,y.options));return ne(()=>{Bn.forEach(y=>y.reset()),r?.disconnect(),i(),s(),o(),a(),c(),u(),d(),l(),p(),f(),h(),m(),_.forEach(y=>y())})}function wi(e){return typeof window[e]<"u"}function Ii(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class wa{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const s=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class kC{constructor(){this.crossOriginIframeMirror=new wa(Oc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class CC{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new wa(Oc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new wa(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=Dc(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:V.IncrementalSnapshot,data:{source:j.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return n;case V.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case V.IncrementalSnapshot:switch(n.data.source){case j.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case j.Drag:case j.TouchMove:case j.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case j.ViewportResize:return!1;case j.MediaInteraction:case j.MouseInteraction:case j.Scroll:case j.CanvasMutation:case j.Input:return this.replaceIds(n.data,t,["id"]),n;case j.StyleSheetRule:case j.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case j.Font:return n;case j.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case j.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Ee.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class RC{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class AC{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Rr(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=Rh({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Ah({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),ao(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(xh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Dc(t),r=cC(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Lc(t.prototype,"attachShadow",function(i){return function(s){const o=i.call(this,s);return this.shadowRoot&&kh(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xC=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ki=0;ki<ql.length;ki++)xC[ql.charCodeAt(ki)]=ki;class zl{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class MC{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new rC,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of t){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(a,c)=>({rule:uh(a),index:c}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class NC{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,oC(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let _e,ks;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const nt=xk();function wt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:b,maskInputFn:O,maskTextFn:I,maxCanvasSize:W=null,packFn:L,sampling:S={},dataURLOptions:k={},mousemoveWait:H,recordDOM:E=!0,recordCanvas:R=!1,recordCrossOriginIframes:w=!1,recordAfter:M=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:Q=!1,inlineImages:Z=!1,plugins:te,keepIframeSrcFn:A=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:x,onMutation:$,getCanvasManager:re}=e;fC(x);const oe=w?window.parent===window:!0;let fe=!1;if(!oe)try{window.parent.document&&(fe=!1)}catch{fe=!0}if(oe&&!t)throw new Error("emit function is required");if(!oe&&!fe)return()=>{};H!==void 0&&S.mousemove===void 0&&(S.mousemove=H),nt.reset();const je=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},Oe=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};nC();let $e,be=0;const Je=Y=>{for(const Pe of te||[])Pe.eventProcessor&&(Y=Pe.eventProcessor(Y));return L&&!fe&&(Y=L(Y)),Y};_e=(Y,Pe)=>{const K=Y;if(K.timestamp=ws(),Bn[0]?.isFrozen()&&K.type!==V.FullSnapshot&&!(K.type===V.IncrementalSnapshot&&K.data.source===j.Mutation)&&Bn.forEach(Ce=>Ce.unfreeze()),oe)t?.(Je(K),Pe);else if(fe){const Ce={type:"rrweb",event:Je(K),origin:window.location.origin,isCheckout:Pe};window.parent.postMessage(Ce,"*")}if(K.type===V.FullSnapshot)$e=K,be=0;else if(K.type===V.IncrementalSnapshot){if(K.data.source===j.Mutation&&K.data.isAttachIframe)return;be++;const Ce=r&&be>=r,se=n&&$e&&K.timestamp-$e.timestamp>n;(Ce||se)&&Le(!0)}};const qe=Y=>{_e({type:V.IncrementalSnapshot,data:{source:j.Mutation,...Y}})},fr=Y=>_e({type:V.IncrementalSnapshot,data:{source:j.Scroll,...Y}}),di=Y=>_e({type:V.IncrementalSnapshot,data:{source:j.CanvasMutation,...Y}}),fi=Y=>_e({type:V.IncrementalSnapshot,data:{source:j.AdoptedStyleSheet,...Y}}),tt=new MC({mutationCb:qe,adoptedStyleSheetCb:fi}),ie=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new kC:new CC({mirror:nt,mutationCb:qe,stylesheetManager:tt,recordCrossOriginIframes:w,wrappedEmit:_e});for(const Y of te||[])Y.getMirror&&Y.getMirror({nodeMirror:nt,crossOriginIframeMirror:ie.crossOriginIframeMirror,crossOriginIframeStyleMirror:ie.crossOriginIframeStyleMirror});const he=new NC,Ye=LC(re,{mirror:nt,win:window,mutationCb:Y=>_e({type:V.IncrementalSnapshot,data:{source:j.CanvasMutation,...Y}}),recordCanvas:R,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:W,sampling:S.canvas,dataURLOptions:k,errorHandler:x}),Ie=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new RC:new AC({mutationCb:qe,scrollCb:fr,bypassOptions:{onMutation:$,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:je,dataURLOptions:k,maskAttributeFn:b,maskTextFn:I,maskInputFn:O,recordCanvas:R,inlineImages:Z,sampling:S,slimDOMOptions:Oe,iframeManager:ie,stylesheetManager:tt,canvasManager:Ye,keepIframeSrcFn:A,processedNodeManager:he,ignoreCSSAttributes:D},mirror:nt}),Le=(Y=!1)=>{if(!E)return;_e({type:V.Meta,data:{href:window.location.href,width:bh(),height:Sh()}},Y),tt.reset(),Ie.init(),Bn.forEach(K=>K.lock());const Pe=eC(document,{mirror:nt,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:je,maskAttributeFn:b,maskInputFn:O,maskTextFn:I,slimDOM:Oe,dataURLOptions:k,recordCanvas:R,inlineImages:Z,onSerialize:K=>{Th(K,nt)&&ie.addIframe(K),wh(K,nt)&&tt.trackLinkElement(K),va(K)&&Ie.addShadowRoot(K.shadowRoot,document)},onIframeLoad:(K,Ce)=>{ie.attachIframe(K,Ce),K.contentWindow&&Ye.addWindow(K.contentWindow),Ie.observeAttachShadow(K)},onStylesheetLoad:(K,Ce)=>{tt.attachLinkElement(K,Ce)},onBlockedImageLoad:(K,Ce,{width:se,height:pr})=>{qe({adds:[],removes:[],texts:[],attributes:[{id:Ce.id,attributes:{style:{width:`${se}px`,height:`${pr}px`}}}]})},keepIframeSrcFn:A,ignoreCSSAttributes:D});if(!Pe)return console.warn("Failed to snapshot the document");_e({type:V.FullSnapshot,data:{node:Pe,initialOffset:yh(window)}}),Bn.forEach(K=>K.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&tt.adoptStyleSheets(document.adoptedStyleSheets,nt.getId(document))};ks=Le;try{const Y=[],Pe=Ce=>ne(IC)({onMutation:$,mutationCb:qe,mousemoveCb:(se,pr)=>_e({type:V.IncrementalSnapshot,data:{source:pr,positions:se}}),mouseInteractionCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.MouseInteraction,...se}}),scrollCb:fr,viewportResizeCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.ViewportResize,...se}}),inputCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.Input,...se}}),mediaInteractionCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.MediaInteraction,...se}}),styleSheetRuleCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.StyleSheetRule,...se}}),styleDeclarationCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.StyleDeclaration,...se}}),canvasMutationCb:di,fontCb:se=>_e({type:V.IncrementalSnapshot,data:{source:j.Font,...se}}),selectionCb:se=>{_e({type:V.IncrementalSnapshot,data:{source:j.Selection,...se}})},customElementCb:se=>{_e({type:V.IncrementalSnapshot,data:{source:j.CustomElement,...se}})},blockClass:i,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:je,inlineStylesheet:h,sampling:S,recordDOM:E,recordCanvas:R,inlineImages:Z,userTriggeredOnInput:P,collectFonts:Q,doc:Ce,maskAttributeFn:b,maskInputFn:O,maskTextFn:I,keepIframeSrcFn:A,blockSelector:s,unblockSelector:o,slimDOMOptions:Oe,dataURLOptions:k,mirror:nt,iframeManager:ie,stylesheetManager:tt,shadowDomManager:Ie,processedNodeManager:he,canvasManager:Ye,ignoreCSSAttributes:D,plugins:te?.filter(se=>se.observer)?.map(se=>({observer:se.observer,options:se.options,callback:pr=>_e({type:V.Plugin,data:{plugin:se.name,payload:pr}})}))||[]},{});ie.addLoadListener(Ce=>{try{Y.push(Pe(Ce.contentDocument))}catch(se){console.warn(se)}});const K=()=>{Le(),Y.push(Pe(document))};return document.readyState==="interactive"||document.readyState==="complete"?K():(Y.push(Fe("DOMContentLoaded",()=>{_e({type:V.DomContentLoaded,data:{}}),M==="DOMContentLoaded"&&K()})),Y.push(Fe("load",()=>{_e({type:V.Load,data:{}}),M==="load"&&K()},window))),()=>{Y.forEach(Ce=>Ce()),he.destroy(),ks=void 0,pC()}}catch(Y){console.warn(Y)}}function OC(e){if(!ks)throw new Error("please take full snapshot after start recording");ks(e)}wt.mirror=nt;wt.takeFullSnapshot=OC;function LC(e,t){try{return e?e(t):new zl}catch{return console.warn("Unable to initialize CanvasManager"),new zl}}var Gl;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Gl||(Gl={}));const PC=3,DC=5;function Fc(e){return e>9999999999?e:e*1e3}function Bo(e){return e>9999999999?e/1e3:e}function li(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:V.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Re(t,10,1e3)}}),t.category==="console")))}const FC="button,a";function Mh(e){return e.closest(FC)||e}function Nh(e){const t=Oh(e);return!t||!(t instanceof Element)?t:Mh(t)}function Oh(e){return $C(e)?e.target:e}function $C(e){return typeof e=="object"&&!!e&&"target"in e}let Ht;function UC(e){return Ht||(Ht=[],BC()),Ht.push(e),()=>{const t=Ht?Ht.indexOf(e):-1;t>-1&&Ht.splice(t,1)}}function BC(){Ae(de,"open",function(e){return function(...t){if(Ht)try{Ht.forEach(n=>n())}catch{}return e.apply(de,t)}})}const HC=new Set([j.Mutation,j.StyleSheetRule,j.StyleDeclaration,j.AdoptedStyleSheet,j.CanvasMutation,j.Selection,j.MediaInteraction]);function WC(e,t,n){e.handleClick(t,n)}class jC{constructor(t,n,r=li){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=UC(()=>{this._lastMutation=Vl()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(zC(n,this._ignoreSelector)||!GC(t))return;const r={timestamp:Bo(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Bo(t)}registerScroll(t=Date.now()){this._lastScroll=Bo(t)}registerClick(t){const n=Mh(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Vl();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:o,clickBreadcrumb:a}=t;if(s){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:de.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:o||1}};this._addBreadcrumbEvent(n,d);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:de.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ci(()=>this._checkClicks(),1e3)}}const qC=["A","BUTTON","INPUT"];function zC(e,t){return!!(!qC.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 GC(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Vl(){return Date.now()/1e3}function VC(e,t){try{if(!JC(t))return;const{source:n}=t.data;if(HC.has(n)&&e.registerMutation(t.timestamp),n===j.Scroll&&e.registerScroll(t.timestamp),YC(t)){const{type:r,id:i}=t.data,s=wt.mirror.getNode(i);s instanceof HTMLElement&&r===De.Click&&e.registerClick(s)}}catch{}}function JC(e){return e.type===PC}function YC(e){return e.data.source===j.MouseInteraction}function dt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var $c=(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))($c||{});const KC=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function XC(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(KC.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const QC=e=>t=>{if(!e.isEnabled())return;const n=ZC(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&WC(e.clickDetector,n,Nh(t.event)),li(e,n)};function Lh(e,t){const n=wt.mirror.getId(e),r=n&&wt.mirror.getNode(n),i=r&&wt.mirror.getMeta(r),s=i&&tR(i)?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(o=>o.type===$c.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:XC(s.attributes)}}:{}}}function ZC(e){const{target:t,message:n}=eR(e);return dt({category:`ui.${e.name}`,...Lh(t,n)})}function eR(e){const t=e.name==="click";let n,r=null;try{r=t?Nh(e.event):Oh(e.event),n=We(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function tR(e){return e.type===$c.Element}function nR(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=rR(t);n&&li(e,n)}function rR(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:o}=e;if(!o||iR(o)||!s)return null;const a=t||r||i,c=s.length===1;if(!a&&c)return null;const u=We(o,{maxStringLength:200})||"<unknown>",d=Lh(o,u);return dt({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function iR(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const sR={resource:lR,paint:cR,navigation:uR};function Ho(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function oR(e){return e.map(aR).filter(Boolean)}function aR(e){const t=sR[e.entryType];return t?t(e):null}function tr(e){return((Ne()||de.performance.timeOrigin)+e)/1e3}function cR(e){const{duration:t,entryType:n,name:r,startTime:i}=e,s=tr(i);return{type:n,name:r,start:s,end:s+t,data:void 0}}function uR(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return i===0?null:{type:`${t}.${m}`,start:tr(f),end:tr(s),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:s,redirectCount:p}}}function lR(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tr(s),end:tr(i),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function dR(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Uc(e,"largest-contentful-paint",n)}function fR(e){return e.sources!==void 0}function pR(e){const t=[],n=[];for(const r of e.entries)if(fR(r)){const i=[];for(const s of r.sources)if(s.node){n.push(s.node);const o=wt.mirror.getId(s.node);o&&i.push(o)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return Uc(e,"cumulative-layout-shift",n,t)}function hR(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Uc(e,"interaction-to-next-paint",n)}function Uc(e,t,n,r){const i=e.value,s=e.rating,o=tr(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(a=>wt.mirror.getId(a)):void 0,attributions:r}}}function mR(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(vn(i,n))}),r.push(wc(Ho(dR,e)),Tc(Ho(pR,e)),Wp(Ho(hR,e))),()=>{r.forEach(i=>i())}}const U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,gR='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 _R(){const e=new Blob([gR]);return URL.createObjectURL(e)}const Jl=["log","warn","error"],Vi="[Replay] ";function Wo(e,t="info"){xt({category:"console",data:{logger:"replay"},level:t,message:`${Vi}${e}`},{level:t})}function yR(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return U?(Jl.forEach(r=>{n[r]=(...i)=>{g[r](Vi,...i),t&&Wo(i.join(""),us(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),g.error(Vi,r),e?pe(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Wo(r,"error")},n.infoTick=(...r)=>{g.log(Vi,...r),t&&setTimeout(()=>Wo(r[0]),0)}):Jl.forEach(r=>{n[r]=()=>{}}),n}const B=yR();class Bc extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Mc}.`)}}class Ph{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Mc)throw new Bc;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?Fc(t):null}}class SR{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(U&&B.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{U&&B.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){U&&B.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){U&&B.error("Error in compression worker: ",c.response),s(new Error("Error in compression worker"));return}i(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class bR{constructor(t){this._worker=new SR(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Fc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Mc?Promise.reject(new Bc):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{U&&B.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class ER{constructor(t){this._fallback=new Ph,this._compression=new bR(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){U&&B.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const s of t)i.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(s){U&&B.exception(s,"Failed to add events when switching buffers.")}}}function vR({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=TR(t);if(n)return n}return U&&B.log("Using simple buffer"),new Ph}function TR(e){try{const t=e||wR();if(!t)return;U&&B.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new ER(n)}catch(t){U&&B.exception(t,"Failed to create compression worker")}}function wR(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?_R():""}function Hc(){try{return"sessionStorage"in de&&!!de.sessionStorage}catch{return!1}}function IR(e){kR(),e.session=void 0}function kR(){if(Hc())try{de.sessionStorage.removeItem(Ac)}catch{}}function Dh(e){return e===void 0?!1:Math.random()<e}function co(e){if(Hc())try{de.sessionStorage.setItem(Ac,JSON.stringify(e))}catch{}}function Fh(e){const t=Date.now(),n=e.id||we(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:o,previousSessionId:a,dirty:c}}function CR(e,t){return Dh(e)?"session":t?"buffer":!1}function Yl({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=CR(e,t),s=Fh({sampled:i,previousSessionId:r});return n&&co(s),s}function RR(){if(!Hc())return null;try{const e=de.sessionStorage.getItem(Ac);if(!e)return null;const t=JSON.parse(e);return U&&B.infoTick("Loading existing session"),Fh(t)}catch{return null}}function Ia(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function $h(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ia(e.started,t,r)||Ia(e.lastActivity,n,r)}function Uh(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!$h(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function jo({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&RR();return i?Uh(i,{sessionIdleExpire:e,maxReplayDuration:t})?(U&&B.infoTick("Session in sessionStorage is expired, creating new one..."),Yl(r,{previousSessionId:i.id})):i:(U&&B.infoTick("Creating new session"),Yl(r,{previousSessionId:n}))}function AR(e){return e.type===V.Custom}function Wc(e,t,n){return Hh(e,t)?(Bh(e,t,n),!0):!1}function xR(e,t,n){return Hh(e,t)?Bh(e,t,n):Promise.resolve(null)}async function Bh(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=e.getOptions(),o=MR(t,s.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(s){const o=s&&s instanceof Bc,a=o?"addEventSizeExceeded":"addEvent",c=C();if(c){const u=o?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(o&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:a})}}function Hh(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Fc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(U&&B.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function MR(e,t){try{if(typeof t=="function"&&AR(e))return t(e)}catch(n){return U&&B.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function jc(e){return!e.type}function ka(e){return e.type==="transaction"}function NR(e){return e.type==="replay_event"}function Kl(e){return e.type==="feedback"}function OR(e){return(t,n)=>{if(!e.isEnabled()||!jc(t)&&!ka(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(ka(t)){LR(e,t);return}PR(e,t)}}}function LR(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function PR(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||ci(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function DR(e){return t=>{!e.isEnabled()||!jc(t)||FR(e,t)}}function FR(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=dt({category:"replay.hydrate-error",data:{url:wn()}});li(e,r)}}function $R(e){const t=C();t&&t.on("beforeAddBreadcrumb",n=>UR(e,n))}function UR(e,t){if(!e.isEnabled()||!Wh(t))return;const n=BR(t);n&&li(e,n)}function BR(e){return!Wh(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?HR(e):dt(e)}function HR(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return dt(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Ti?(n=!0,`${i.slice(0,Ti)}…`):i;if(typeof i=="object")try{const s=Re(i,7);return JSON.stringify(s).length>Ti?(n=!0,`${JSON.stringify(s,null,2).slice(0,Ti)}…`):s}catch{}return i});return dt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Wh(e){return!!e.category}function WR(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function jh(){const e=z().getPropagationContext().dsc;e&&delete e.replay_id;const t=Te();if(t){const n=at(t);delete n.replay_id}}function jR(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:V.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 qR(e,t){return e.recordingMode!=="buffer"||t.message===xc||!t.exception||t.type?!1:Dh(e.getOptions().errorSampleRate)}function zR(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(NR(t))return delete t.breadcrumbs,t;if(!jc(t)&&!ka(t)&&!Kl(t))return t;if(!e.checkAndHandleExpiredSession())return jh(),t;if(Kl(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),jR(e,t),t;if(WR(t,n)&&!e.getOptions()._experiments.captureExceptions)return U&&B.log("Ignoring error from rrweb internals",t),null;const i=qR(e,t);if((i||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&co(o)}return t},{id:"Replay"})}function uo(e,t){return t.map(({type:n,start:r,end:i,name:s,data:o})=>{const a=e.throttledAddEvent({type:V.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function GR(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function VR(e){return t=>{if(!e.isEnabled())return;const n=GR(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(uo(e,[n]),!1)))}}function JR(e,t){return U&&e.getOptions()._experiments.traceInternals?!1:Df(t,C())}function qh(e,t){e.isEnabled()&&t!==null&&(JR(e,t.name)||e.addUpdate(()=>(uo(e,[t]),!0)))}function lo(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Yp(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function zh(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Cs(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Gh(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:s,statusCode:o,request:a,response:c}}}function Fr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Vt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:s}=YR(n);return r.body=i,s?.length&&(r._meta={warnings:s}),r}function Ca(e,t){return Object.entries(e).reduce((n,[r,i])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function YR(e){if(!e||typeof e!="string")return{body:e};const t=e.length>xl,n=KR(e);if(t){const r=e.slice(0,xl);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function KR(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Rs(e,t){const n=XR(e);return ot(n,t)}function XR(e,t=de.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(de.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function QR(e,t,n){try{const r=await e1(e,t,n),i=Gh("resource.fetch",r);qh(n.replay,i)}catch(r){U&&B.exception(r,"Failed to capture fetch breadcrumb")}}function ZR(e,t){const{input:n,response:r}=t,i=n?Rc(n):void 0,s=lo(i),o=r?zh(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}async function e1(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Rs(o,n.networkDetailAllowUrls)&&!Rs(o,n.networkDetailDenyUrls),p=l?t1(n,t.input,u):Fr(u),f=await n1(l,n,t.response,d);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:c,request:p,response:f}}function t1({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?s1(n,t):{};if(!e)return Vt(i,r,void 0);const s=Rc(n),[o,a]=bs(s,B),c=Vt(i,r,o);return a?Cs(c,a):c}async function n1(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Fr(i);const s=r?Vh(r.headers,n):{};if(!r||!t&&i!==void 0)return Vt(s,i,void 0);const[o,a]=await i1(r),c=r1(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?Cs(c,a):c}function r1(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const s=e?.length&&n===void 0?lo(e):n;return r?t?Vt(i,s,e):Vt(i,s,void 0):Fr(s)}catch(s){return U&&B.exception(s,"Failed to serialize response body"),Vt(i,n,void 0)}}async function i1(e){const t=o1(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await a1(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(U&&B.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(U&&B.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Vh(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function s1(e,t){return e.length===1&&typeof e[0]!="string"?Xl(e[0],t):e.length===2?Xl(e[1],t):{}}function Xl(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Vh(n,t):Array.isArray(n)?{}:Ca(n,t):{}}function o1(e){try{return e.clone()}catch(t){U&&B.exception(t,"Failed to clone response body")}}function a1(e){return new Promise((t,n)=>{const r=ci(()=>n(new Error("Timeout while trying to read response body")),500);c1(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function c1(e){return await e.text()}async function u1(e,t,n){try{const r=d1(e,t,n),i=Gh("resource.xhr",r);qh(n.replay,i)}catch(r){U&&B.exception(r,"Failed to capture xhr breadcrumb")}}function l1(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=lo(r),s=n.getResponseHeader("content-length")?zh(n.getResponseHeader("content-length")):h1(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function d1(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:p}=e.data;if(!c)return null;if(!a||!Rs(c,n.networkDetailAllowUrls)||Rs(c,n.networkDetailDenyUrls)){const L=Fr(l),S=Fr(p);return{startTimestamp:i,endTimestamp:s,url:c,method:u,statusCode:d,request:L,response:S}}const f=a[St],h=f?Ca(f.request_headers,n.networkRequestHeaders):{},m=Ca(Kp(a),n.networkResponseHeaders),[_,y]=n.networkCaptureBodies?bs(o,B):[void 0],[b,O]=n.networkCaptureBodies?f1(a):[void 0],I=Vt(h,l,_),W=Vt(m,p,b);return{startTimestamp:i,endTimestamp:s,url:c,method:u,statusCode:d,request:y?Cs(I,y):I,response:O?Cs(W,O):W}}function f1(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return p1(e.response,e.responseType)}catch(n){t.push(n)}return U&&B.warn("Failed to get xhr response body",...t),[void 0]}function p1(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return U&&B.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return U&&B.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function h1(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return lo(n)}catch{return}}function m1(e){const t=C();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,u)=>g1(a,c,u))}catch{}}function g1(e,t,n){if(t.data)try{_1(t)&&S1(n)&&(l1(t,n),u1(t,n,e)),y1(t)&&b1(n)&&(ZR(t,n),QR(t,n,e))}catch(r){U&&B.exception(r,"Error when enriching network breadcrumb")}}function _1(e){return e.category==="xhr"}function y1(e){return e.category==="fetch"}function S1(e){return e?.xhr}function b1(e){return e?.response}function E1(e){const t=C();Jp(QC(e)),no(VR(e)),$R(e),m1(e);const n=zR(e);P_(n),t&&(t.on("beforeSendEvent",DR(e)),t.on("afterSendEvent",OR(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=s)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function v1(e){try{return Promise.all(uo(e,[T1(de.performance.memory)]))}catch{return[]}}function T1(e){const{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 w1(e,t,n){return Oy(e,t,{...n,setTimeoutImpl:ci})}const Ci=F.navigator;function I1(){return/iPhone|iPad|iPod/i.test(Ci?.userAgent??"")||/Macintosh/i.test(Ci?.userAgent??"")&&Ci?.maxTouchPoints&&Ci?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function k1(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){U&&B.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&VC(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!Wc(e,n,i))return!0;if(!i)return!1;const s=e.session;if(R1(e,i),e.recordingMode==="buffer"&&s&&e.eventBuffer&&!s.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(U&&B.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),s.started=o,e.getOptions().stickySession&&co(s))}return s?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function C1(e){const t=e.getOptions();return{type:V.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 R1(e,t){!t||e.session?.segmentId!==0||Wc(e,C1(e),!1)}function A1(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function x1(e,t,n,r){return ut(df(e,Fs(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function M1({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
497
|
+
`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function N1({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);const o=await mf(e.getOptions(),r,s,t,e,Se());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u,settings:d}=a?.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},o}async function O1({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){const o=M1({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=C(),p=z(),f=l?.getTransport(),h=l?.getDsn();if(!l||!f||!h||!s.sampled)return Promise.resolve({});const m={type:uk,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},_=await N1({scope:p,client:l,replayId:t,event:m});if(!_)return l.recordDroppedEvent("event_processor","replay"),U&&B.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;const y=x1(_,o,h,l.getOptions().tunnel);let b;try{b=await f.send(y)}catch(I){const W=new Error(xc);try{W.cause=I}catch{}throw W}const O=Cf({},b);if(kf(O,"replay"))throw new qc(O);if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new Jh(b.statusCode);return b}class Jh extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class qc extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class Ql extends Error{constructor(){super("Session is too long, not sending replay")}}async function Yh(e,t={count:0,interval:mk}){const{recordingData:n,onError:r}=e;if(n.length)try{return await O1(e),!0}catch(i){if(i instanceof Jh||i instanceof qc)throw i;if(N_("Replays",{_retryCount:t.count}),r&&r(i),t.count>=gk){const s=new Error(`${xc} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,o)=>{ci(async()=>{try{await Yh(e,t),s(!0)}catch(a){o(a)}},t.interval)})}}const Kh="__THROTTLED",L1="__SKIPPED";function P1(e,t,n){const r=new Map,i=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},s=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(i(c),s()>=t){const d=o;return o=!0,d?L1:Kh}o=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class D1{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:lk,sessionIdleExpire:dk},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=w1(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=P1((o,a)=>xR(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(_k,r),timeout:r,scrollTimeout:yk,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new jC(this,s)),U){const o=t._experiments;B.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{de.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=dt({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=dt({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{nR(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){U&&B.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){U&&B.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",U&&B.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){U&&B.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){U&&B.log("Buffering is in progress, call `flush()` to save the replay");return}U&&B.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=jo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){U&&B.log("Buffering is in progress, call `flush()` to save the replay");return}U&&B.infoTick("Starting replay in buffer mode");const t=jo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=wt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:hk}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:k1(this),...I1(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{U&&B.log(`Stopping Replay${n?` triggered by ${n}`:""}`),jh(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,IR(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),U&&B.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),U&&B.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();U&&B.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ia(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${de.location.pathname}${de.location.hash}${de.location.search}`,n=`${de.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Kh){const i=dt({category:"replay.throttled"});this.addUpdate(()=>!Wc(this,{type:DC,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Te(),n=t&&ve(t),i=(n&&G(n).data||{})[xe];if(!(!n||!i||!["route","custom"].includes(i)))return G(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=vR({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=jo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return Uh(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{de.document.addEventListener("visibilitychange",this._handleVisibilityChange),de.addEventListener("blur",this._handleWindowBlur),de.addEventListener("focus",this._handleWindowFocus),de.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(E1(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=mR(this)}_removeListeners(){try{de.document.removeEventListener("visibilitychange",this._handleVisibilityChange),de.removeEventListener("blur",this._handleWindowBlur),de.removeEventListener("focus",this._handleWindowFocus),de.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||$h(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){U&&B.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:V.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=oR(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(uo(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){U&&B.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await v1(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Ql;const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Yh({replayId:t,recordingData:s,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=C();if(r){let i;n instanceof qc?i="ratelimit_backoff":n instanceof Ql?i="invalid":i="send_error",r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){U&&B.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(s||o){U&&B.log(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&U&&B.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&co(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=A1(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=i&&r>i;if(r>s||o){const a=dt({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function _r(e,t){return[...e,...t].join(",")}function F1({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const s=["base","iframe[srcdoc]:not([src])"],o=_r(e,[".sentry-mask","[data-sentry-mask]"]),a=_r(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:_r(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:_r(r,[]),ignoreSelector:_r(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function $1({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const Zl='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',U1=["content-length","content-type","accept"],B1=Symbol.for("sentry__originalRequestBody");let ed=!1,td=!1;function H1(){if(typeof Request>"u"||td)return;const e=Request;try{const t=function(n,r){const i=new e(n,r);return r?.body!=null&&(i[B1]=r.body),i};t.prototype=e.prototype,F.Request=t,td=!0}catch{}}const jM=(e=>new W1(e));class W1{constructor({flushMinDelay:t=fk,flushMaxDelay:n=pk,minReplayDuration:r=Sk,maxReplayDuration:i=Ml,stickySession:s=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:O=[],networkResponseHeaders:I=[],mask:W=[],maskAttributes:L=["title","placeholder","aria-label"],unmask:S=[],block:k=[],unblock:H=[],ignore:E=[],maskFn:R,beforeAddRecordingEvent:w,beforeErrorSampling:M,onError:P,attachRawBodyFromRequest:Q=!1}={}){this.name="Replay";const Z=F1({mask:W,unmask:S,block:k,unblock:H,ignore:E});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(te,A,D)=>$1({maskAttributes:L,maskAllText:u,privacyOptions:Z,key:te,value:A,el:D}),...Z,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:te=>{try{te.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,bk),maxReplayDuration:Math.min(i,Ml),stickySession:s,useCompression:o,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:nd(O),networkResponseHeaders:nd(I),beforeAddRecordingEvent:w,beforeErrorSampling:M,onError:P,attachRawBodyFromRequest:Q,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Zl}`:Zl,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&ps())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ed}set _isInitialized(t){ed=t}afterAllSetup(t){!ps()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&H1(),this._setup(t),this._initialize(t))}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(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=j1(this._initialOptions,t);this._replay=new D1({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function j1(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=pn(n.replaysSessionSampleRate),s=pn(n.replaysOnErrorSampleRate);return i==null&&s==null&&Ot(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function nd(e){return[...U1,...e.map(t=>t.toLowerCase())]}function qM(){return C()?.getIntegrationByName("Replay")}var q1=Object.defineProperty,z1=(e,t,n)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rd=(e,t,n)=>z1(e,typeof t!="symbol"?t+"":t,n);class G1{constructor(){rd(this,"idNodeMap",new Map),rd(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function V1(){return new G1}function J1(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ra(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ra(e.parentNode,t,n,r+1)}function id(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(J1(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Dn=`Please stop import mirror directly. Instead of that,\r
|
|
498
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
499
|
+
or you can use record.mirror to access the mirror instance during recording.`;let sd={map:{},getId(){return console.error(Dn),-1},getNode(){return console.error(Dn),null},removeNodeFromMap(){console.error(Dn)},has(){return console.error(Dn),!1},reset(){console.error(Dn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(sd=new Proxy(sd,{get(e,t,n){return t==="map"&&console.error(Dn),Reflect.get(e,t,n)}}));function zc(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){Qh(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>zc(e,t,s||{},!0)}function Gc(e,t,n){try{if(!(t in e))return()=>{};const 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()=>{}}}Date.now().toString();function Y1(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function fo(e,t,n,r,i){if(!e)return!1;const s=Y1(e);if(!s)return!1;const o=id(t,n),a=Ra(s,o);let c=-1;return a<0?!1:(r&&(c=Ra(s,id(null,r))),a>-1&&c<0?!0:a<c)}const od={};function Xh(e){const t=od[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return od[e]=r.bind(window)}function rn(...e){return Xh("requestAnimationFrame")(...e)}function Qh(...e){return Xh("setTimeout")(...e)}var nr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(nr||{});let Ji;function K1(e){Ji=e}const qo=e=>Ji?(...n)=>{try{return e(...n)}catch(r){if(Ji&&Ji(r)===!0)return()=>{};throw r}}:e;var Hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ri=0;Ri<Hn.length;Ri++)X1[Hn.charCodeAt(Ri)]=Ri;var Q1=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=Hn[t[n]>>2],i+=Hn[(t[n]&3)<<4|t[n+1]>>4],i+=Hn[(t[n+1]&15)<<2|t[n+2]>>6],i+=Hn[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const ad=new Map;function Z1(e,t){let n=ad.get(e);return n||(n=new Map,ad.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Zh=(e,t,n)=>{if(!e||!(tm(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=Z1(n,r);let s=i.indexOf(e);return s===-1&&(s=i.length,i.push(e)),s};function Yi(e,t,n){if(e instanceof Array)return e.map(r=>Yi(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=Q1(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Yi(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Yi(e.data,t,n),e.width,e.height]};if(tm(e,t)||typeof e=="object"){const r=e.constructor.name,i=Zh(e,t,n);return{rr_type:r,index:i}}}}return e}const em=(e,t,n)=>e.map(r=>Yi(r,t,n)),tm=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function eA(e,t,n,r,i){const s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Gc(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return fo(this.canvas,n,r,i,!0)||Qh(()=>{const l=em(d,t,this);e(this.canvas,{type:nr["2D"],property:a,args:l})},0),u.apply(this,d)}});s.push(c)}catch{const c=zc(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:nr["2D"],property:a,args:[u],setter:!0})}});s.push(c)}return()=>{s.forEach(a=>a())}}function tA(e){return e==="experimental-webgl"?"webgl":e}function cd(e,t,n,r,i){const s=[];try{const o=Gc(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!fo(this,t,n,r,!0)){const d=tA(c);if("__context"in this||(this.__context=d),i&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});s.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(o=>o())}}function ud(e,t,n,r,i,s,o,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=Gc(e,d,function(p){return function(...f){const h=p.apply(this,f);if(Zh(h,a,this),"tagName"in this.canvas&&!fo(this.canvas,r,i,s,!0)){const m=em(f,a,this),_={type:t,property:d,args:m};n(this.canvas,_)}return h}});c.push(l)}catch{const l=zc(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(l)}return c}function nA(e,t,n,r,i,s){const o=[];return o.push(...ud(t.WebGLRenderingContext.prototype,nr.WebGL,e,n,r,i,s,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(...ud(t.WebGL2RenderingContext.prototype,nr.WebGL2,e,n,r,i,s,t)),()=>{o.forEach(a=>a())}}const rA='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function iA(){const e=new Blob([rA]);return URL.createObjectURL(e)}class sA{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:s,errorHandler:o}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&K1(o),(s&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&qo(()=>{s&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:s,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}qo(()=>{if(o&&n==="all"&&this.initCanvasMutationObserver(t,r,i,s),o&&typeof n=="number"){const c=cd(t,r,i,s,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}rn(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(iA());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:s,type:o,width:a,height:c}=r;this.mutationCb({id:i,type:nr["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:o}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=rn(n)};t=rn(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const s=cd(t,n,r,i,!1),o=eA(this.processMutation.bind(this),t,n,r,i),a=nA(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{s(),o(),a()})}getCanvasElements(t,n,r){const i=[],s=o=>{o.querySelectorAll("canvas").forEach(a=>{fo(a,t,n,r)||i.push(a)})};for(const o of this.windows){const a=o.deref();let c;try{c=a&&a.document}catch{}c&&s(c)}for(const o of this.shadowDoms){const a=o.deref();a&&s(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:s,blockSelector:o,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(s,o,a)).forEach(h=>{const m=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(m))){if(this.snapshotInProgressMap.set(m,!0),!n&&["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);_?.getContextAttributes()?.preserveDrawingBuffer===!1&&_.clear(_.COLOR_BUFFER_BIT)}createImageBitmap(h).then(_=>{this.worker?.postMessage({id:m,bitmap:_,width:h.width,height:h.height,dataURLOptions:c,maxCanvasSize:u},[_])}).catch(_=>{qo(()=>{throw this.snapshotInProgressMap.delete(m),_})()})}}),!0)}startPendingCanvasMutationFlusher(){rn(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,rn(t)};rn(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),rn(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(o=>{const{type:a,...c}=o;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}V1();var ld;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(ld||(ld={}));const dd={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},oA="ReplayCanvas",Ai=1280,aA=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Ai):Ai,n?Math.min(n,Ai):Ai]};let i,s;const o=new Promise(a=>s=a);return{name:oA,getOptions(){const{quality:a,enableManualSnapshot:c,maxCanvasSize:u}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:d=>{const l=new sA({...d,enableManualSnapshot:c,maxCanvasSize:u,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch{}}});return i=l,s(l),l},...dd[a]||dd.medium}},async snapshot(a,c){(i||await o).snapshot(a,c)}}}),zM=aA;function cA(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function nm(e){try{return new URL(e,N.location.origin).href}catch{return}}function uA(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function rm(e){try{return new Headers(e)}catch{return}}const fd=new WeakMap,zo=new Map,im={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function lA(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...im,...t},d=typeof s=="function"?s:h=>!0,l=h=>dA(h,a),p={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(m=>{if(m.op==="http.client"){const _=zo.get(m.span_id);_&&(m.timestamp=_/1e3,zo.delete(m.span_id))}}),h)),i&&Sv(h=>{if(h.response){const m=fd.get(h.response);m&&h.endTimestamp&&zo.set(m,h.endTimestamp)}}),fc(h=>{const m=YS(h,d,l,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&fd.set(h.response,h.fetchData.__span),m){const _=nm(h.fetchData.url),y=_?fn(_).host:void 0;m.setAttributes({"http.url":_?zt(_):void 0,"server.address":y}),o&&pd(m),c?.(m,{headers:h.headers})}})),r&&Cc(h=>{const m=fA(h,d,l,p,f,u);m&&(o&&pd(m),c?.(m,{headers:rm(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}function pd(e){const{url:t}=G(e).data;if(!t||typeof t!="string")return;const n=vn("resource",({entries:r})=>{r.forEach(i=>{uA(i)&&i.name.endsWith(t)&&(e.setAttributes(Vp(i)),setTimeout(n))})})}function dA(e,t){const n=wn();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?ot(r.toString(),t)||s&&ot(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?ot(e,t):r}}function fA(e,t,n,r,i,s){const o=e.xhr,a=o?.[St];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:u}=a,d=Ze()&&t(c);if(e.endTimestamp){const y=o.__sentry_xhr_span_id__;if(!y)return;const b=r[y];b&&(d&&a.status_code!==void 0&&(Qi(b,a.status_code),b.end(),s?.(b,{headers:rm(Kp(o)),error:e.error})),delete r[y]);return}const l=nm(c),p=fn(l||c),f=zt(Pf(c)),h=!!Te(),m=d&&h?Dt({name:`${u} ${f}`,attributes:{url:zt(c),type:"xhr","http.method":u,"http.url":l?zt(l):void 0,"server.address":p?.host,[X]:"auto.http.browser",[ke]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new At;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(c)&&pA(o,Ze()&&h?m:void 0,i);const _=C();return _&&_.emit("beforeOutgoingRequestSpan",m,e),m}function pA(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:s}=Ff({span:t,propagateTraceparent:n});r&&hA(e,r,i,s)}function hA(e,t,n,r){const 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){const s=i?.baggage;(!s||!cA(s))&&e.setRequestHeader("baggage",n)}}catch{}}function mA(){N.document?N.document.addEventListener("visibilitychange",()=>{const e=Te();if(!e)return;const t=ve(e);if(N.document.hidden&&t){const n="cancelled",{op:r,status:i}=G(t);v&&g.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:ee,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):v&&g.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const gA=3600,sm="sentry_previous_trace",_A="sentry.previous_trace";function yA(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?EA():void 0;e.on("spanStart",o=>{if(ve(o)!==o)return;const a=z().getPropagationContext();i=SA(i,o,a),r&&bA(i)});let s=!0;n&&e.on("beforeSampling",o=>{if(!i)return;const a=z(),c=a.getPropagationContext();if(s&&c.parentSpanId){s=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(i.sampleRate),sampled:String(Aa(i.spanContext))},sampleRand:i.sampleRand}),o.parentSampled=Aa(i.spanContext),o.parentSampleRate=i.sampleRate,o.spanAttributes={...o.spanAttributes,[jd]:i.sampleRate}})}function SA(e,t,n){const r=G(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[Fa])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=gA&&(v&&g.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[ug]:"previous_trace"}}),t.setAttribute(_A,`${o.traceId}-${o.spanId}-${Aa(o)?1:0}`)),s)}function bA(e){try{N.sessionStorage.setItem(sm,JSON.stringify(e))}catch(t){v&&g.warn("Could not store previous trace in sessionStorage",t)}}function EA(){try{const e=N.sessionStorage?.getItem(sm);return JSON.parse(e)}catch{return}}function Aa(e){return e.traceFlags===1}const vA="BrowserTracing",TA=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function wA(){const e=N.navigator;return e?.userAgent?TA.test(e.userAgent):!1}const IA={...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:{},...im},kA=((e={})=>{const t={name:void 0,source:void 0},n=N.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:p,childSpanTimeout:f,markBackgroundSpan:h,traceFetch:m,traceXHR:_,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:b,enableHTTPTimings:O,ignoreResourceSpans:I,ignorePerformanceApiSpans:W,instrumentPageLoad:L,instrumentNavigation:S,detectRedirects:k,linkPreviousTrace:H,consistentTraceSampling:E,enableReportPageLoaded:R,onRequestSpanStart:w,onRequestSpanEnd:M}={...IA,...e},P=wA();let Q,Z,te;function A(D,x,$=!0){const re=x.op==="pageload",oe=x.name,fe=d?d(x):x,je=fe.attributes||{};if(oe!==fe.name&&(je[xe]="custom",fe.attributes=je),!$){const be=In();Dt({...fe,startTime:be}).end(be);return}t.name=fe.name,t.source=je[xe];const Oe=pf(fe,{idleTimeout:l,finalTimeout:p,childSpanTimeout:f,disableAutoFinish:re,beforeSpanEnd:be=>{Q?.(),z0(be,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:I,ignorePerformanceApiSpans:W}),gd(D,void 0);const Je=z(),qe=Je.getPropagationContext();Je.setPropagationContext({...qe,traceId:Oe.spanContext().traceId,sampled:en(Oe),dsc:at(be)}),re&&(te=void 0)},trimIdleSpanEndTimestamp:!R});re&&R&&(te=Oe),gd(D,Oe);function $e(){n&&["interactive","complete"].includes(n.readyState)&&D.emit("idleSpanEnableAutoFinish",Oe)}re&&!R&&n&&(n.addEventListener("readystatechange",()=>{$e()}),$e())}return{name:vA,setup(D){if(P){v&&g.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(Og(),Q=$0({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:D}),r&&_w(),i&&rw(),o&&F.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?B0():s&&U0(),a&&H0(),k&&n){const $=()=>{Z=ge()};addEventListener("click",$,{capture:!0}),addEventListener("keydown",$,{capture:!0,passive:!0})}function x(){const $=$r(D);$&&!G($).timestamp&&(v&&g.log(`[Tracing] Finishing current active span with op: ${G($).op}`),$.setAttribute(Mr,"cancelled"),$.end())}D.on("startNavigationSpan",($,re)=>{if(C()!==D)return;if(re?.isRedirect){v&&g.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),A(D,{op:"navigation.redirect",...$},!1);return}Z=void 0,x(),Se().setPropagationContext({traceId:pt(),sampleRand:Math.random(),propagationSpanId:Ze()?void 0:vt()});const oe=z();oe.setPropagationContext({traceId:pt(),sampleRand:Math.random(),propagationSpanId:Ze()?void 0:vt()}),oe.setSDKProcessingMetadata({normalizedRequest:void 0}),A(D,{op:"navigation",...$,parentSpan:null,forceTransaction:!0})}),D.on("startPageLoadSpan",($,re={})=>{if(C()!==D)return;x();const oe=re.sentryTrace||hd("sentry-trace")||md("sentry-trace"),fe=re.baggage||hd("baggage")||md("baggage"),je=Qd(oe,fe),Oe=z();Oe.setPropagationContext(je),Ze()||(Oe.getPropagationContext().propagationSpanId=vt()),Oe.setSDKProcessingMetadata({normalizedRequest:yc()}),A(D,{op:"pageload",...$})}),D.on("endPageloadSpan",()=>{R&&te&&(te.setAttribute(Mr,"reportPageLoaded"),te.end())})},afterAllSetup(D){if(P)return;let x=wn();if(H!=="off"&&yA(D,{linkPreviousTrace:H,consistentTraceSampling:E}),N.location){if(L){const $=Ne();om(D,{name:N.location.pathname,startTime:$?$/1e3:void 0,attributes:{[xe]:"url",[X]:"auto.pageload.browser"}})}S&&no(({to:$,from:re})=>{if(re===void 0&&x?.indexOf($)!==-1){x=void 0;return}x=void 0;const oe=Za($),fe=$r(D),je=fe&&k&&RA(fe,Z);am(D,{name:oe?.pathname||N.location.pathname,attributes:{[xe]:"url",[X]:"auto.navigation.browser"}},{url:$,isRedirect:je})})}h&&mA(),a&&CA(D,l,p,f,t),r&&bw(),lA(D,{traceFetch:m,traceXHR:_,trackFetchStreamPerformance:y,tracePropagationTargets:D.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:O,onRequestSpanStart:w,onRequestSpanEnd:M})}}});function om(e,t,n){e.emit("startPageLoadSpan",t,n),z().setTransactionName(t.name);const r=$r(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function am(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=z();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...yc(),url:r}}),$r(e)}function hd(e){return N.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function md(e){return N.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function CA(e,t,n,r,i){const s=N.document;let o;const a=()=>{const c="ui.action.click",u=$r(e);if(u){const d=G(u).op;if(["navigation","pageload"].includes(d)){v&&g.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(Mr,"interactionInterrupted"),o.end(),o=void 0),!i.name){v&&g.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=pf({name:i.name,op:c,attributes:{[xe]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",a,{capture:!0})}const cm="_sentry_idleSpan";function $r(e){return e[cm]}function gd(e,t){Me(e,cm,t)}const _d=1.5;function RA(e,t){const n=G(e),r=In(),i=n.start_timestamp;return!(r-i>_d||t&&r-t<=_d)}function GM(e=C()){e?.emit("endPageloadSpan")}function VM(e){const t=Te();if(t===e)return;const n=z();e.end=new Proxy(e.end,{apply(r,i,s){return ht(n,t),Reflect.apply(r,i,s)}}),ht(n,e)}function rr(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function AA(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=rr(n);return i=>r.then(s=>i(s.transaction(t,"readwrite").objectStore(t)))}function Vc(e){return rr(e.getAllKeys())}function xA(e,t,n){return e(r=>Vc(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),rr(r.transaction)}))}function MA(e,t,n){return e(r=>Vc(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),rr(r.transaction)}))}function NA(e){return e(t=>Vc(t).then(n=>{const r=n[0];if(r!=null)return rr(t.get(r)).then(i=>(t.delete(r),rr(t.transaction).then(()=>i)))}))}function OA(e){let t;function n(){return t==null&&(t=AA(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=rs(r);await xA(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=rs(r);await MA(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await NA(n());if(r)return qg(r)}catch{}}}}function LA(e){return t=>{const n=e({...t,createStore:OA});return N.addEventListener("online",async r=>{await n.flush()}),n}}function JM(e=Xp){return LA(Ey(e))}const yd=1e6,PA="window"in F&&F.window===F&&typeof importScripts>"u",Jt=String(0),As=PA?"main":"worker",xs=N.navigator;let um="",lm="",dm="",xa=xs?.userAgent||"",fm="";const DA=xs?.language||xs?.languages?.[0]||"";function FA(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Sd=xs?.userAgentData;FA(Sd)&&Sd.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(um=e.platform||"",dm=e.architecture||"",fm=e.model||"",lm=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];xa=`${t.brand} ${t.version}`}}).catch(e=>{});function $A(e){return!("thread_metadata"in e)}function UA(e){return $A(e)?zA(e):e}function BA(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&v&&g.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function HA(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=BA(r),s=UA(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:ge()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:ge()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Ds,runtime:{name:"javascript",version:N.navigator.userAgent},os:{name:um,version:lm,build_number:xa},device:{locale:DA,model:fm,manufacturer:xa,architecture:dm,is_emulator:!1},debug_meta:{images:hm(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||we(),trace_id:i,active_thread_id:Jt,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function WA(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=qA(e),i=t.getOptions(),s=t.getSdkMetadata?.()?.sdk;return{chunk_id:we(),client_sdk:{name:s?.name??"sentry.javascript.browser",version:s?.version??"0.0.0"},profiler_id:n||we(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:hm(e.resources)},profile:r}}function jA(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function qA(e){const t=[];for(let a=0;a<e.frames.length;a++){const c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const c=e.stacks[a];if(!c)continue;const u=[];let d=c;for(;d;)u.push(d.frameId),d=d.parentId===void 0?void 0:e.stacks[d.parentId];n[a]=u}const r=Ne(),i=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,s=i-(r||i),o=[];for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(!c)continue;const u=(i+(c.timestamp-s))/1e3;o[a]={stack_id:c.stackId??0,thread_id:Jt,timestamp:u}}return{frames:t,stacks:n,samples:o,thread_metadata:{[Jt]:{name:As}}}}function pm(e){return G(e).op==="pageload"}function zA(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Jt]:{name:As}}},i=e.samples[0];if(!i)return r;const s=i.timestamp,o=Ne(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0,c=a-(o||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-s)*yd).toFixed(0),stack_id:t,thread_id:Jt};return}let l=e.stacks[u.stackId];const p=[];for(;l;){p.push(l.frameId);const h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const f={elapsed_since_start_ns:((u.timestamp+c-s)*yd).toFixed(0),stack_id:n,thread_id:Jt};r.stacks[n]=p,r.samples[d]=f,n++}),r}function GA(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function VA(e){const t=[];return hn(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function hm(e){const r=C()?.getOptions()?.stackParser;return r?h_(r,e):[]}function mm(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(v&&g.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(v&&g.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function JA(e){return e.samples.length<2?(v&&g.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(v&&g.log("[Profiling] Discarding profile because it contains no frames"),!1)}let Jc=!1;const gm=3e4;function YA(e){return typeof e=="function"}function _m(){const e=N.Profiler;if(!YA(e)){v&&g.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(gm/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{v&&(g.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),g.log("[Profiling] Disabling profiling for current user session.")),Jc=!0}}function bd(e){if(Jc)return v&&g.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return v&&g.log("[Profiling] Discarding profile because root span was not sampled."),!1;const n=C()?.getOptions();if(!n)return v&&g.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return mm(r)?r?(r===!0?!0:Math.random()<r)?!0:(v&&g.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(v&&g.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(v&&g.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function KA(e){if(Jc)return v&&g.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return v&&g.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return mm(t)?t?Math.random()<=t:(v&&g.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(v&&g.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function xi(e){return typeof e.profilesSampleRate<"u"}function XA(e,t,n,r){return JA(n)?HA(e,t,n,r):null}const un=new Map;function QA(){return un.size}function ZA(e){const t=un.get(e);return t&&un.delete(e),t}function ex(e,t){if(un.set(e,t),un.size>30){const n=un.keys().next().value;n!==void 0&&un.delete(n)}}function tx(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":Jt,"thread.name":As}}),e.spans?.forEach(t=>{t.data={...t.data||{},"thread.id":Jt,"thread.name":As}})),e}function Ed(e){let t;pm(e)&&(t=ge()*1e3);const n=_m();if(!n)return;v&&g.log(`[Profiling] started profiling span: ${G(e).description}`);const r=we();let i=null;z().setContext("profile",{profile_id:r,start_timestamp:t});async function s(){if(e&&n){if(i){v&&g.log("[Profiling] profile for:",G(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(o&&(N.clearTimeout(o),o=void 0),v&&g.log(`[Profiling] stopped profiling of span: ${G(e).description}`),!u){v&&g.log(`[Profiling] profiler returned null profile for: ${G(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}i=u,ex(r,u)}).catch(u=>{v&&g.log("[Profiling] error while stopping profiler:",u)})}}let o=N.setTimeout(()=>{v&&g.log("[Profiling] max profile duration elapsed, stopping profiling for:",G(e).description),s()},gm);const a=e.end.bind(e);function c(){return e?(s().then(()=>{a()},()=>{a()}),e):a()}e.end=c}const nx=6e4,rx=3e5;class ix{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=KA(t.getOptions());v&&g.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||v&&g.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=we(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}start(){if(this._lifecycleMode==="trace"){v&&g.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){v&&g.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){v&&g.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){v&&g.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){v&&g.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(v&&g.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,v&&g.log("[Profiling] Started profiling with profiler ID:",this._profilerId),wr().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){v&&g.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{v&&g.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&wr().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){v&&g.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==ve(n))return;if(!n.isRecording()){v&&g.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const i=this._activeRootSpanIds.size;i===1&&(v&&g.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${i}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const i=this._activeRootSpanIds.size;v&&g.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${i}).`),i===0&&(this._collectCurrentChunk().catch(s=>{v&&g.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",s)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,wr().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),rx);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;const t=_m();if(!t){v&&g.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{v&&g.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},nx))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(v&&g.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=WA(n,this._client,this._profilerId),i=jA(r);if("reason"in i){v&&g.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",i.reason);return}this._sendProfileChunk(r),v&&g.log("[Profiling] Collected browser profile chunk.")}catch(n){v&&g.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){const n=this._client,r=Fs(n.getSdkMetadata?.()),i=n.getDsn(),s=n.getOptions().tunnel,o=ut({event_id:we(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!s&&i&&{dsn:Lt(i)}},[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(o).then(null,a=>{v&&g.error("Error while sending profile chunk envelope:",a)})}}const sx="BrowserProfiling",ox=(()=>({name:sx,setup(e){const t=e.getOptions(),n=new ix;if(!xi(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),xi(t)&&!t.profilesSampleRate){v&&g.log("[Profiling] Profiling disabled, no profiling options found.");return}const r=Te(),i=r&&ve(r);if(xi(t)&&t.profileSessionSampleRate!==void 0&&v&&g.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),xi(t))i&&pm(i)&&bd(i)&&Ed(i),e.on("spanStart",s=>{s===ve(s)&&bd(s)&&Ed(s)}),e.on("beforeEnvelope",s=>{if(!QA())return;const o=VA(s);if(!o.length)return;const a=[];for(const c of o){const u=c?.contexts,d=u?.profile?.profile_id,l=u?.profile?.start_timestamp;if(typeof d!="string"){v&&g.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){v&&g.log("[Profiling] cannot find profile for a span without a profile context");continue}u?.profile&&delete u.profile;const p=ZA(d);if(!p){v&&g.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}const f=XA(d,l,p,c);f&&a.push(f)}GA(s,a)});else{const s=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),s==="manual")n.initialize(e);else if(s==="trace"){if(!Ze(t)){v&&g.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),N.setTimeout(()=>{const o=Te(),a=o&&ve(o);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return tx(e)}})),YM=ox,KM=()=>({name:"LaunchDarkly",processEvent(e,t,n){return ar(e)}});function XM(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{mn(e,t.value),gn(e,t.value)}}}const QM=()=>({name:"OpenFeature",processEvent(e,t,n){return ar(e)}});class ZM{after(t,n){mn(n.flagKey,n.value),gn(n.flagKey,n.value)}error(t,n,r){mn(t.flagKey,t.defaultValue),gn(t.flagKey,t.defaultValue)}}const eN=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Ae(t,"isEnabled",ax)},processEvent(t,n,r){return ar(t)}});function ax(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(mn(n,r),gn(n,r)):v&&g.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const tN=(({growthbookClass:e})=>zS({growthbookClass:e})),nN=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{mn(n.gate.name,n.gate.value),gn(n.gate.name,n.gate.value)})},processEvent(t,n,r){return ar(t)}});async function rN(){const e=C();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await s_(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const cx="WebWorker",iN=({worker:e})=>({name:cx,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>vd(t))},addWorker:t=>vd(t)});function vd(e){e.addEventListener("message",t=>{if(lx(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(v&&g.log("Sentry debugId web worker message received",t.data),N._sentryDebugIds={...t.data._sentryDebugIds,...N._sentryDebugIds}),t.data._sentryModuleMetadata&&(v&&g.log("Sentry module metadata web worker message received",t.data),N._sentryModuleMetadata={...t.data._sentryModuleMetadata,...N._sentryModuleMetadata}),t.data._sentryWasmImages){v&&g.log("Sentry WASM images web worker message received",t.data);const n=N._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(i=>Be(i)&&typeof i.code_file=="string"&&!n.some(s=>s.code_file===i.code_file));N._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(v&&g.log("Sentry worker rejection message received",t.data._sentryWorkerError),ux(t.data._sentryWorkerError))}})}function ux(e){const t=C();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,s=kt(i)?eh(i):Zs(n,i,void 0,r,!0);s.level="error",e.filename&&(s.contexts={...s.contexts,worker:{filename:e.filename}}),Yr(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),v&&g.log("Captured worker unhandled rejection",i)}function sN({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:Zp(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),v&&g.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),v&&g.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function lx(e){if(!Be(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!i||t&&!(Be(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Be(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Be(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(s=>Be(s)&&typeof s.code_file=="string")))}function dx(e){const t={...e};return ec(t,"svelte"),FI(t)}const fx=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,px={trackInit:!0,trackUpdates:!1};function oN(e){const t={...px,...e},r=`<${t.componentName||"Svelte Component"}>`;if(t.trackInit&&hx(r),t.trackUpdates)try{mx(r)}catch{fx&&g.warn("Cannot track component updates. This is likely because you're using Svelte 5 in Runes mode. Set `trackUpdates: false` in `withSentryConfig` or `trackComponent` to disable this warning.")}}function hx(e){const t=Dt({onlyIfParent:!0,op:"ui.svelte.init",name:e,attributes:{[X]:"auto.ui.svelte"}});Tm(()=>{t.end()})}function mx(e){let t;wm(()=>{t=Dt({onlyIfParent:!0,op:"ui.svelte.update",name:e,attributes:{[X]:"auto.ui.svelte"}})}),Im(()=>{t&&(t.end(),t=void 0)})}var gx=44,_x=59,Td="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ym=new Uint8Array(64),yx=new Uint8Array(128);for(let e=0;e<Td.length;e++){const t=Td.charCodeAt(e);ym[e]=t,yx[t]=e}function yr(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let i=r&31;r>>>=5,r>0&&(i|=32),e.write(ym[i])}while(r>0);return t}var wd=1024*16,Id=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Sx=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(wd)}write(e){const{buffer:t}=this;t[this.pos++]=e,this.pos===wd&&(this.out+=Id.decode(t),this.pos=0)}flush(){const{buffer:e,out:t,pos:n}=this;return n>0?t+Id.decode(e.subarray(0,n)):t}};function bx(e){const t=new Sx;let n=0,r=0,i=0,s=0;for(let o=0;o<e.length;o++){const a=e[o];if(o>0&&t.write(_x),a.length===0)continue;let c=0;for(let u=0;u<a.length;u++){const d=a[u];u>0&&t.write(gx),c=yr(t,d[0],c),d.length!==1&&(n=yr(t,d[1],n),r=yr(t,d[2],r),i=yr(t,d[3],i),d.length!==4&&(s=yr(t,d[4],s)))}}return t.flush()}class Ms{constructor(t){this.bits=t instanceof Ms?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}}class Ur{constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){const t=new Ur(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){const n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;const s=new Ur(t,this.end,i);return s.outro=this.outro,this.outro="",this.end=t,this.edited?(s.edit("",!1),this.content=""):this.content=r,s.next=this.next,s.next&&(s.next.previous=s),s.previous=this,this.next=s,s}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;const n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;const n=this.content.replace(t,"");if(n.length){if(n!==this.content){const r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}}function Ex(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const vx=Ex();class Tx{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=bx(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+vx(this.toString())}}function wx(e){const t=e.split(`
|
|
500
|
+
`),n=t.filter(s=>/^\t+/.test(s)),r=t.filter(s=>/^ {2,}/.test(s));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return" ";const i=r.reduce((s,o)=>{const a=/^ +/.exec(o)[0].length;return Math.min(a,s)},1/0);return new Array(i+1).join(" ")}function Ix(e,t){const n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let i=n.length;for(;i--;)n[i]=".."}return n.concat(r).join("/")}const kx=Object.prototype.toString;function Cx(e){return kx.call(e)==="[object Object]"}function kd(e){const t=e.split(`
|
|
501
|
+
`),n=[];for(let r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(i){let s=0,o=n.length;for(;s<o;){const u=s+o>>1;i<n[u]?o=u:s=u+1}const a=s-1,c=i-n[a];return{line:a,column:c}}}const Rx=/\w/;class Ax{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,r,i){if(n.length){const s=n.length-1;let o=n.indexOf(`
|
|
502
|
+
`,0),a=-1;for(;o>=0&&s>o;){const u=[this.generatedCodeColumn,t,r.line,r.column];i>=0&&u.push(i),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=o,o=n.indexOf(`
|
|
503
|
+
`,o+1)}const c=[this.generatedCodeColumn,t,r.line,r.column];i>=0&&c.push(i),this.rawSegments.push(c),this.advance(n.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(t,n,r,i,s){let o=n.start,a=!0,c=!1;for(;o<n.end;){if(r[o]===`
|
|
504
|
+
`)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0,c=!1;else{if(this.hires||a||s.has(o)){const u=[this.generatedCodeColumn,t,i.line,i.column];this.hires==="boundary"?Rx.test(r[o])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}i.column+=1,this.generatedCodeColumn+=1,a=!1}o+=1}this.pending=null}advance(t){if(!t)return;const n=t.split(`
|
|
505
|
+
`);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const Sr=`
|
|
506
|
+
`,On={insertLeft:!1,insertRight:!1,storeName:!1};class Ns{constructor(t,n={}){const r=new Ur(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new Ms},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){const t=new Ns(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;const i=n.next,s=i&&i.clone();s&&(r.next=s,s.previous=r,r=s),n=i}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new Ms(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};const n=0,r=Object.keys(this.storedNames),i=new Ax(t.hires),s=kd(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(o=>{const a=s(o.start);o.intro.length&&i.advance(o.intro),o.edited?i.addEdit(n,o.content,a,o.storeName?r.indexOf(o.original):-1):i.addUneditedChunk(n,o,this.original,a,this.sourcemapLocations),o.outro.length&&i.advance(o.outro)}),this.outro&&i.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?Ix(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:i.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Tx(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=wx(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){const r=/^[^\r\n]/gm;if(Cx(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};const i={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(d=>{for(let l=d[0];l<d[1];l+=1)i[l]=!0});let s=n.indentStart!==!1;const o=u=>s?`${t}${u}`:(s=!0,u);this.intro=this.intro.replace(r,o);let a=0,c=this.firstChunk;for(;c;){const u=c.end;if(c.edited)i[a]||(c.content=c.content.replace(r,o),c.content.length&&(s=c.content[c.content.length-1]===`
|
|
507
|
+
`));else for(a=c.start;a<u;){if(!i[a]){const d=this.original[a];d===`
|
|
508
|
+
`?s=!0:d!=="\r"&&s&&(s=!1,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t))}a+=1}a=c.end,c=c.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return On.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),On.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return On.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),On.insertRight=!0),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);const i=this.byStart[t],s=this.byEnd[n],o=i.previous,a=s.next,c=this.byStart[r];if(!c&&s===this.lastChunk)return this;const u=c?c.previous:this.lastChunk;return o&&(o.next=a),a&&(a.previous=o),u&&(u.next=i),c&&(c.previous=s),i.previous||(this.firstChunk=s.next),s.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=u,s.next=c||null,u||(this.firstChunk=i),c||(this.lastChunk=s),this}overwrite(t,n,r,i){return i=i||{},this.update(t,n,r,{...i,overwrite:!i.contentOnly})}update(t,n,r,i){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(n),i===!0&&(On.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),On.storeName=!0),i={storeName:!0});const s=i!==void 0?i.storeName:!1,o=i!==void 0?i.overwrite:!1;if(s){const u=this.original.slice(t,n);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}const a=this.byStart[t],c=this.byEnd[n];if(a){let u=a;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}a.edit(r,s,!o)}else{const u=new Ur(t,n,"").edit(r,s);c.next=u,u.previous=c}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);const r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(Sr);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(Sr),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n}if(r.content.length>0){if(t=r.content.lastIndexOf(Sr),t!==-1)return r.content.substr(t+1)+n;n=r.content+n}if(r.intro.length>0){if(t=r.intro.lastIndexOf(Sr),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n}}while(r=r.previous);return t=this.intro.lastIndexOf(Sr),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}let r="",i=this.firstChunk;for(;i&&(i.start>t||i.end<=t);){if(i.start<n&&i.end>=n)return r;i=i.next}if(i&&i.edited&&i.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);const s=i;for(;i;){i.intro&&(s!==i||i.start===t)&&(r+=i.intro);const o=i.start<n&&i.end>=n;if(o&&i.edited&&i.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const a=s===i?t-i.start:0,c=o?i.content.length+n-i.end:i.content.length;if(r+=i.content.slice(a,c),i.outro&&(!o||i.end===n)&&(r+=i.outro),o)break;i=i.next}return r}snip(t,n){const r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n;const i=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=i?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n}}_splitChunk(t,n){if(t.edited&&t.content.length){const i=kd(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} – "${t.original}")`)}const r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){const n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let r=this.lastChunk;do{const i=r.end,s=r.trimEnd(n);if(r.end!==i&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),s)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){const n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let r=this.firstChunk;do{const i=r.end,s=r.trimStart(n);if(r.end!==i&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),s)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(s,o){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?s[0]:+c<s.length?s[+c]:`$${c}`):n(...s,s.index,o,s.groups)}function i(s,o){let a;const c=[];for(;a=s.exec(o);)c.push(a);return c}if(t.global)i(t,this.original).forEach(o=>{if(o.index!=null){const a=r(o,this.original);a!==o[0]&&this.overwrite(o.index,o.index+o[0].length,a)}});else{const s=this.original.match(t);if(s&&s.index!=null){const o=r(s,this.original);o!==s[0]&&this.overwrite(s.index,s.index+s[0].length,o)}}return this}_replaceString(t,n){const{original:r}=this,i=r.indexOf(t);return i!==-1&&(typeof n=="function"&&(n=n(t,i,r)),t!==n&&this.overwrite(i,i+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){const{original:r}=this,i=t.length;for(let s=r.indexOf(t);s!==-1;s=r.indexOf(t,s+i)){const o=r.slice(s,s+i);let a=n;typeof n=="function"&&(a=n(o,s,r)),o!==a&&this.overwrite(s,s+i,a)}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}}const Sm={trackComponents:!0,trackInit:!0,trackUpdates:!1},xx="FIRST_PASS_COMPONENT_TRACKING_PREPROCESSOR";function Mx(e){const t={...Sm,...e},n=new Set,r=new Set;return{...{markup:({content:o,filename:a})=>{const c=a||"unknown";if(Cd(t.trackComponents,c,{},r)&&!Nx(o)){const d=new Ns(o);return d.prepend(`<script>
|
|
509
|
+
<\/script>
|
|
510
|
+
`),{code:d.toString(),map:d.generateMap().toString()}}return{code:o}},script:({content:o,filename:a,attributes:c})=>{const u=a||"unknown";if(!Cd(t.trackComponents,u,c,n))return{code:o};const{trackInit:d,trackUpdates:l}=t,p={trackInit:d,trackUpdates:l,componentName:bm(u)},f=`import { trackComponent } from "@sentry/svelte";
|
|
511
|
+
`,h=`trackComponent(${JSON.stringify(p)});
|
|
512
|
+
`,m=new Ns(o);m.prepend(h).prepend(f);const _=m.toString(),y=m.generateMap().toString();return{code:_,map:y}}},sentryId:xx}}function Cd(e,t,n,r){if(r.has(t)||(r.add(t),n.module||n.context==="module")||!e)return!1;if(Array.isArray(e)){const i=bm(t);return e.some(s=>s===i)}return!0}function bm(e){const t=e.split("/");return t[t.length-1].replace(".svelte","")}function Nx(e){return/<script(\s[^]*?)?(?:>([^]*?)<\/script\s*>|\/>)/gi.test(e)}const Ox={componentTracking:Sm};function aN(e,t){const n={...t,componentTracking:{...Ox.componentTracking,...t?.componentTracking}},r=Lx(e);if(r.find(s=>!!s.sentryId))return e;const i=[...r];return n.componentTracking.trackComponents&&i.unshift(Mx(n.componentTracking)),{...e,preprocess:i}}function Lx(e){return e.preprocess?Array.isArray(e.preprocess)?e.preprocess:[e.preprocess]:[]}function Px(e={}){const t={...kA({...e,instrumentNavigation:!1,instrumentPageLoad:!1})};return{...t,afterAllSetup:n=>{t.afterAllSetup(n),e.instrumentPageLoad!==!1&&Dx(n),e.instrumentNavigation!==!1&&Fx(n)}}}function Dx(e){const t=N.location?.pathname,n=om(e,{name:t,op:"pageload",attributes:{[X]:"auto.pageload.sveltekit",[xe]:"url"}});n&&Em.subscribe(r=>{if(!r)return;const i=r.route?.id;i&&(n.updateName(i),n.setAttribute(xe,"route"),z().setTransactionName(i))})}function Fx(e){let t;vm.subscribe(n=>{if(!n){t&&(t.end(),t=void 0);return}const r=n.from,i=n.to,s=r?.url.pathname||N.location?.pathname,o=i?.url.pathname;if(s===o)return;const a=r?.route.id,c=i?.route.id;t&&t.end();const u={"sentry.sveltekit.navigation.type":n.type,"sentry.sveltekit.navigation.from":a||void 0,"sentry.sveltekit.navigation.to":c||void 0};am(e,{name:c||o||"unknown",op:"navigation",attributes:{[X]:"auto.navigation.sveltekit",[xe]:c?"route":"url",...u}}),t=Dt({op:"ui.sveltekit.routing",name:"SvelteKit Route Change",attributes:{[X]:"auto.ui.sveltekit",...u},onlyIfParent:!0})})}function cN(e){const t={defaultIntegrations:$x(),...e};ec(t,"sveltekit",["sveltekit","svelte"]);const n=Ux(),r=dx(t);return n&&Bx(n),r}function $x(e){return typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__?[...ya(),Px()]:ya()}function Ux(){const e=N,t=e.fetch;if(e._sentryFetchProxy&&t)return e.fetch=e._sentryFetchProxy,t}function Bx(e){const t=N;t._sentryFetchProxy=t.fetch,t.fetch=e}function Hx({error:e}){Ot(()=>{console.error(e)})}function uN(e){const t=e??Hx;return n=>(Wx(n)||pe(n.error,{mechanism:{type:"auto.function.sveltekit.handle_error",handled:!!e}}),t(n))}function Wx(e){const{status:t}=e;return t?t>=400&&t<500:!1}function jx(e){if(typeof e.untrack=="function")return e.untrack(()=>e.route?.id??void 0);const t=e.route;if(!t)return;const r=Object.getOwnPropertyDescriptor(t,"id")?.value;if(r!=null)return r}function qx(e){if(e==null||typeof e!="object")return!1;const t="location"in e&&typeof e.location=="string",n="status"in e&&typeof e.status=="number"&&e.status>=300&&e.status<=308;return t&&n}function zx(e){return typeof e=="object"&&e!==null&&"status"in e&&"body"in e}function Gx(e){const t=qm(e);return qx(t)||zx(t)&&t.status<500&&t.status>=400||pe(t,{mechanism:{type:"auto.function.sveltekit.load",handled:!1}}),t}function lN(e){return new Proxy(e,{apply:(t,n,r)=>{const i=r[0];if(i.__sentry_wrapped__)return t.apply(n,r);const s={...i};Me(s,"__sentry_wrapped__",!0);const o=jx(i);return Pt({op:"function.sveltekit.load",attributes:{[X]:"auto.function.sveltekit",[xe]:o?"route":"url"},name:o||i.url.pathname},()=>Gr(()=>t.apply(n,[s]),Gx))}})}export{n0 as BrowserClient,ko as MULTIPLEXED_TRANSPORT_EXTRA_KEY,ZM as OpenFeatureIntegrationHook,qt as SDK_VERSION,ke as SEMANTIC_ATTRIBUTE_SENTRY_OP,X as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,Fa as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,xe as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,mt as Scope,N as WINDOW,xt as addBreadcrumb,P_ as addEventProcessor,Tu as addIntegration,Kw as breadcrumbsIntegration,aI as browserApiErrorsIntegration,YM as browserProfilingIntegration,pI as browserSessionIntegration,Px as browserTracingIntegration,XM as buildLaunchDarklyFlagUsedHandler,lM as captureConsoleIntegration,Yr as captureEvent,pe as captureException,tb as captureFeedback,M_ as captureMessage,bo as captureSession,Lw as chromeStackLineParser,oM as close,yM as consoleLoggingIntegration,BM as contextLinesIntegration,Qx as continueTrace,bM as createConsolaReporter,wM as createLangChainCallbackHandler,ay as createTransport,OM as createUserFeedbackEnvelope,gI as cultureContextIntegration,iS as dedupeIntegration,im as defaultRequestInstrumentationOptions,zw as defaultStackLineParsers,Gw as defaultStackParser,rN as diagnoseSdkConnectivity,gf as endSession,By as eventFiltersIntegration,XT as eventFromException,QT as eventFromMessage,Sc as exceptionFromError,dM as extraErrorDataIntegration,gM as featureFlagsIntegration,CM as feedbackAsyncIntegration,RM as feedbackIntegration,RM as feedbackSyncIntegration,sM as flush,PM as forceLoad,Fy as functionToStringIntegration,$w as geckoStackLineParser,Te as getActiveSpan,C as getClient,z as getCurrentScope,ya as getDefaultIntegrations,kM as getFeedback,wr as getGlobalScope,Se as getIsolationScope,qM as getReplay,ve as getRootSpan,Oi as getSpanDescendants,fg as getSpanStatusFromHttpCode,Ff as getTraceData,bI as globalHandlersIntegration,HM as graphqlClientIntegration,tN as growthbookIntegration,uN as handleErrorWithSentry,UM as httpClientIntegration,II as httpContextIntegration,Hy as inboundFiltersIntegration,cN as init,vM as instrumentAnthropicAiClient,TM as instrumentGoogleGenAIClient,IM as instrumentLangGraph,EM as instrumentOpenAiClient,lA as instrumentOutgoingRequests,CS as instrumentSupabaseClient,L_ as isEnabled,aM as isInitialized,O_ as lastEventId,KM as launchDarklyIntegration,jT as lazyLoadIntegration,xI as linkedErrorsIntegration,_M as logger,JM as makeBrowserOfflineTransport,Xp as makeFetchTransport,cM as makeMultiplexedTransport,SM as metrics,uM as moduleMetadataIntegration,DM as onLoad,QM as openFeatureIntegration,MM as opera10StackLineParser,NM as opera11StackLineParser,Ry as parameterize,Og as registerSpanErrorInstrumentation,sN as registerWebWorker,zM as replayCanvasIntegration,jM as replayIntegration,GM as reportPageLoaded,$M as reportingObserverIntegration,fM as rewriteFramesIntegration,Jv as sendFeedback,VM as setActiveSpanInBrowser,N_ as setContext,iM as setConversationId,Sy as setCurrentClient,eM as setExtra,Zx as setExtras,Qi as setHttpStatus,e_ as setMeasurement,nM as setTag,tM as setTags,rM as setUser,FM as showReportDialog,Xx as spanToBaggageHeader,G as spanToJSON,Rg as spanToTraceHeader,LM as spotlightBrowserIntegration,am as startBrowserTracingNavigationSpan,om as startBrowserTracingPageLoadSpan,Dt as startInactiveSpan,o_ as startNewTrace,bu as startSession,Pt as startSpan,Wt as startSpanManual,nN as statsigIntegration,pM as supabaseIntegration,s_ as suppressTracing,mM as thirdPartyErrorFilterIntegration,oN as trackComponent,AM as uiProfiler,eN as unleashIntegration,Kx as updateSpanName,iN as webWorkerIntegration,xM as winjsStackLineParser,Us as withActiveSpan,Yx as withIsolationScope,ct as withScope,aN as withSentryConfig,lN as wrapLoadWithSentry,hM as zodErrorsIntegration};
|