/*! For license information please see bundle.js.LICENSE.txt */ (()=>{"use strict";var e,t,n={341:(e,t,n)=>{function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:()=>r,e:()=>o})},284:(e,t,n)=>{n.d(t,{wD:()=>o});var r=n(341);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}e=n.hmd(e)},250:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,':root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset),env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset),env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset),env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset),env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:0.2}.Vk4DwKiBYqmj5pv6balw{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.pyv733v1dV1Ys9jl3_Nx{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.X4KopfjjDdzazlSzlsCw{top:var(--toastify-toast-top);left:50%;transform:translateX(-50%)}.xWhzE9IPJLSdlXPkyL2D{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.xwZWGD_qnD2rPvjYPZr_{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.tseRSZ_7upqzbFwWcCgi{bottom:var(--toastify-toast-bottom);left:50%;transform:translateX(-50%)}.aMC0KRiDLWDYGZ6PBb4l{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width:480px){.Vk4DwKiBYqmj5pv6balw{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.X4KopfjjDdzazlSzlsCw,.pyv733v1dV1Ys9jl3_Nx,.xWhzE9IPJLSdlXPkyL2D{top:env(safe-area-inset-top);transform:translateX(0)}.tseRSZ_7upqzbFwWcCgi,.xwZWGD_qnD2rPvjYPZr_,.aMC0KRiDLWDYGZ6PBb4l{bottom:env(safe-area-inset-bottom);transform:translateX(0)}.SGj6C62930xXVRutSyG8{right:env(safe-area-inset-right);left:auto}}.wBO5jdEKl1GGSxbdd6BK{--y:0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.X2Q4T82xNvRMjWwV22t1{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.X2Q4T82xNvRMjWwV22t1[data-collapsed] .Fkshb1NhgGwn5aF8m1v0,.X2Q4T82xNvRMjWwV22t1[data-collapsed] ._kbmJQjDZN_WmvNZFgR_{transition:opacity .1s}.X2Q4T82xNvRMjWwV22t1[data-collapsed=false]{overflow:visible}.X2Q4T82xNvRMjWwV22t1[data-collapsed=true]:not(:last-child)>*{opacity:0}.X2Q4T82xNvRMjWwV22t1:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.X2Q4T82xNvRMjWwV22t1[data-pos=top]{top:0}.X2Q4T82xNvRMjWwV22t1[data-pos=bot]{bottom:0}.X2Q4T82xNvRMjWwV22t1[data-pos=bot].X2Q4T82xNvRMjWwV22t1:before{transform-origin:top}.X2Q4T82xNvRMjWwV22t1[data-pos=top].X2Q4T82xNvRMjWwV22t1:before{transform-origin:bottom}.X2Q4T82xNvRMjWwV22t1:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.iN2OpzBOIICWYK0BZZGG{direction:rtl}.wB5aXXC_hkFQLaT5773M{cursor:pointer}._kbmJQjDZN_WmvNZFgR_{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}._kbmJQjDZN_WmvNZFgR_>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.QDopkeXkhrU9sidWAh3q{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.hexRTTRnvZRmbli1K8Wl{animation-fill-mode:both;animation-duration:.5s}.zroe0qdXWucGD5J9axDD{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.wBO5jdEKl1GGSxbdd6BK{margin-bottom:0;border-radius:0}}.AlMNxGEjFHWdA02DWcB0{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.TgphmCbSFfDdgHOD_VA9.iStP1bMOmnPjUzLKZwhW,.zekqSjlnSJlv6poeIzP2{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.TgphmCbSFfDdgHOD_VA9.Zg1Ngjw1fAtzn9DVENHL{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.TgphmCbSFfDdgHOD_VA9.LVuefFQpdn3n_xnKvK8q{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.TgphmCbSFfDdgHOD_VA9.dBB3YCit9hyNtefhWv6f{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.TgphmCbSFfDdgHOD_VA9.pkFj4IMCrSn6095L1x81{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.W36S5c9hIRl_661CSMxs{background:var(--toastify-color-progress-light)}.OgPd5uc4NYX6qStD_Qh2{background:var(--toastify-color-progress-dark)}.mzS9hZNBTdV7HOpW006j{background:var(--toastify-color-progress-info)}.GjuwIvwaoRfXFiwvjuw7{background:var(--toastify-color-progress-success)}.nHPqaD1Xg0wNhAFDz9xw{background:var(--toastify-color-progress-warning)}.Ldlx3SeQ39WzuvQCfUFk{background:var(--toastify-color-progress-error)}.eYAZQEcKW6LaexuScejA.Ldlx3SeQ39WzuvQCfUFk,.eYAZQEcKW6LaexuScejA.mzS9hZNBTdV7HOpW006j,.eYAZQEcKW6LaexuScejA.GjuwIvwaoRfXFiwvjuw7,.eYAZQEcKW6LaexuScejA.nHPqaD1Xg0wNhAFDz9xw{background:var(--toastify-color-transparent)}.Fkshb1NhgGwn5aF8m1v0{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.xp8KtarDuQ7x7qnO0yNF{color:#000;opacity:.3}.Fkshb1NhgGwn5aF8m1v0>svg{fill:currentColor;height:16px;width:14px}.Fkshb1NhgGwn5aF8m1v0:focus,.Fkshb1NhgGwn5aF8m1v0:hover{opacity:1}@keyframes vRAr_Vh205fcFy3m5Szz{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.wHz5B5X_NBO8be5cKN0d{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Rf25QweXHo1GSEfvh0DD{animation:vRAr_Vh205fcFy3m5Szz linear 1 forwards}.fOjIzvFV5s88ZuQDFttM{transition:transform .2s}.cgaP00NZrHpMokclqO8m{right:0;left:auto;transform-origin:right;border-bottom-left-radius:0;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.U7OX8iwaeHByhYsarZxO{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.U7OX8iwaeHByhYsarZxO[data-hidden=true]{opacity:0}.a3kchZnSz1ZPZMtVLOSw{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.pWc5vuiA5Jra18yqOD6K{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:MkDsmh_uh83Y5yDU3pfu .65s linear infinite}@keyframes yWK6W7EQR8YtRM2PMnFp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes jS2iByFNBtBz5y0a1oAc{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes AUo9e1mcbZV6xDHJMZL_{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes PHrs_mbmvxE6hxCsOk6g{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes BekCWrChJy4TXIHnJHCU{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes x68uQSQK_Z6cmtD2XP8i{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes TYlr0t3y80MSKR1n2xc9{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes DLAbZ90mBfvcP7Fgi_gg{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.P8tuvH3hLram3RsVyrRN,.EWArdZy_OQutiR4Cqfq4{animation-name:AUo9e1mcbZV6xDHJMZL_}.ew0RcpvE41f61SG_gUFg,.WkKqOZ6JjFuL1uohJpYV{animation-name:yWK6W7EQR8YtRM2PMnFp}.OeAPholYkFXxAKkOQ7pW{animation-name:TYlr0t3y80MSKR1n2xc9}.CYzV5iXTwiAPQnKYic0l{animation-name:BekCWrChJy4TXIHnJHCU}.KNBjnzLBsytL9CTnhJfX,.H2gLaY0qqHn3ydP8Inq8{animation-name:PHrs_mbmvxE6hxCsOk6g}.VT8xJkEWVwimSNLVv_DO,.UebAJ5HXfVcTl6qQbA_A{animation-name:jS2iByFNBtBz5y0a1oAc}.IBcI15DDFPsebwVTfd9U{animation-name:x68uQSQK_Z6cmtD2XP8i}.oogCBO3ZXxS7DqEcrm31{animation-name:DLAbZ90mBfvcP7Fgi_gg}@keyframes VLbsR_WQs7jTl6Abb5Mu{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Vyumxd4pdZsTBjSzQVxX{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Llq4pOiYqaRWL3sz7RK6{animation-name:VLbsR_WQs7jTl6Abb5Mu}.mS6RgaU20rSC2dD5ZDs0{animation-name:Vyumxd4pdZsTBjSzQVxX}@keyframes L2kpYad74z7HiGQxlT1o{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes I_Nv5fr6yvkW2T67PviD{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.jdLP0jhJl4FJG5tJPHVo{animation-name:L2kpYad74z7HiGQxlT1o}.tJW_lzgcmUQnYfewKtK5{animation-name:I_Nv5fr6yvkW2T67PviD}@keyframes cIWACnO1qTnIL9XGuZ1u{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes WlcBs8vKQivPxRjvq8Sv{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes N5PJJ8jDONjhBXXj30VR{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes CwTvMsemMEyXCVxDlNHl{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes YcwhIBI55lVJBTdSoKo2{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes nLn_HhewjbCpG0V8vSzb{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes kgQtWm7L3OAf2T4R2mOV{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes ZLxndsos5nSF5pMELPZN{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.C3HV95yAIzWSULAr3TH0,.GD1_SSzYP0M7Q9Tsx8Af{animation-name:WlcBs8vKQivPxRjvq8Sv}.JFvLjxdbDNrqDbAKs1FU,.XXa6FcJUySc1PcQWWFs2{animation-name:cIWACnO1qTnIL9XGuZ1u}.VT_2pVsFBOlyYCISUfQ0{animation-name:CwTvMsemMEyXCVxDlNHl}.JrIxJSu0Cjzg658USbl0{animation-name:N5PJJ8jDONjhBXXj30VR}.ZfrjpHlWN_3Kzhtq6AxA,.w22GhLjVb8QuPeLnOGgd{animation-name:nLn_HhewjbCpG0V8vSzb;animation-timing-function:ease-in;animation-duration:.3s}.pgXoEidUdZIJv0h6UfDw,.K2ZDypvE35tE0eWaF6aZ{animation-name:YcwhIBI55lVJBTdSoKo2;animation-timing-function:ease-in;animation-duration:.3s}.d1aI1IfpEPCpI9r2hW8y{animation-name:ZLxndsos5nSF5pMELPZN;animation-timing-function:ease-in;animation-duration:.3s}.l9FhhpxzcG1oc3eFDlUa{animation-name:kgQtWm7L3OAf2T4R2mOV;animation-timing-function:ease-in;animation-duration:.3s}@keyframes MkDsmh_uh83Y5yDU3pfu{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}',""]),s.locals={"Toastify__toast-container":"Vk4DwKiBYqmj5pv6balw","Toastify__toast-container--top-left":"pyv733v1dV1Ys9jl3_Nx","Toastify__toast-container--top-center":"X4KopfjjDdzazlSzlsCw","Toastify__toast-container--top-right":"xWhzE9IPJLSdlXPkyL2D","Toastify__toast-container--bottom-left":"xwZWGD_qnD2rPvjYPZr_","Toastify__toast-container--bottom-center":"tseRSZ_7upqzbFwWcCgi","Toastify__toast-container--bottom-right":"aMC0KRiDLWDYGZ6PBb4l","Toastify__toast-container--rtl":"SGj6C62930xXVRutSyG8",Toastify__toast:"wBO5jdEKl1GGSxbdd6BK","Toastify__toast--stacked":"X2Q4T82xNvRMjWwV22t1","Toastify__close-button":"Fkshb1NhgGwn5aF8m1v0","Toastify__toast-body":"_kbmJQjDZN_WmvNZFgR_","Toastify__toast--rtl":"iN2OpzBOIICWYK0BZZGG","Toastify__toast--close-on-click":"wB5aXXC_hkFQLaT5773M","Toastify__toast-icon":"QDopkeXkhrU9sidWAh3q","Toastify--animate":"hexRTTRnvZRmbli1K8Wl","Toastify--animate-icon":"zroe0qdXWucGD5J9axDD","Toastify__toast-theme--dark":"AlMNxGEjFHWdA02DWcB0","Toastify__toast-theme--colored":"TgphmCbSFfDdgHOD_VA9","Toastify__toast--default":"iStP1bMOmnPjUzLKZwhW","Toastify__toast-theme--light":"zekqSjlnSJlv6poeIzP2","Toastify__toast--info":"Zg1Ngjw1fAtzn9DVENHL","Toastify__toast--success":"LVuefFQpdn3n_xnKvK8q","Toastify__toast--warning":"dBB3YCit9hyNtefhWv6f","Toastify__toast--error":"pkFj4IMCrSn6095L1x81","Toastify__progress-bar-theme--light":"W36S5c9hIRl_661CSMxs","Toastify__progress-bar-theme--dark":"OgPd5uc4NYX6qStD_Qh2","Toastify__progress-bar--info":"mzS9hZNBTdV7HOpW006j","Toastify__progress-bar--success":"GjuwIvwaoRfXFiwvjuw7","Toastify__progress-bar--warning":"nHPqaD1Xg0wNhAFDz9xw","Toastify__progress-bar--error":"Ldlx3SeQ39WzuvQCfUFk","Toastify__progress-bar-theme--colored":"eYAZQEcKW6LaexuScejA","Toastify__close-button--light":"xp8KtarDuQ7x7qnO0yNF","Toastify__progress-bar":"wHz5B5X_NBO8be5cKN0d","Toastify__progress-bar--animated":"Rf25QweXHo1GSEfvh0DD",Toastify__trackProgress:"vRAr_Vh205fcFy3m5Szz","Toastify__progress-bar--controlled":"fOjIzvFV5s88ZuQDFttM","Toastify__progress-bar--rtl":"cgaP00NZrHpMokclqO8m","Toastify__progress-bar--wrp":"U7OX8iwaeHByhYsarZxO","Toastify__progress-bar--bg":"a3kchZnSz1ZPZMtVLOSw",Toastify__spinner:"pWc5vuiA5Jra18yqOD6K",Toastify__spin:"MkDsmh_uh83Y5yDU3pfu","Toastify__bounce-enter--bottom-left":"P8tuvH3hLram3RsVyrRN","Toastify__bounce-enter--top-left":"EWArdZy_OQutiR4Cqfq4",Toastify__bounceInLeft:"AUo9e1mcbZV6xDHJMZL_","Toastify__bounce-enter--bottom-right":"ew0RcpvE41f61SG_gUFg","Toastify__bounce-enter--top-right":"WkKqOZ6JjFuL1uohJpYV",Toastify__bounceInRight:"yWK6W7EQR8YtRM2PMnFp","Toastify__bounce-enter--top-center":"OeAPholYkFXxAKkOQ7pW",Toastify__bounceInDown:"TYlr0t3y80MSKR1n2xc9","Toastify__bounce-enter--bottom-center":"CYzV5iXTwiAPQnKYic0l",Toastify__bounceInUp:"BekCWrChJy4TXIHnJHCU","Toastify__bounce-exit--bottom-left":"KNBjnzLBsytL9CTnhJfX","Toastify__bounce-exit--top-left":"H2gLaY0qqHn3ydP8Inq8",Toastify__bounceOutLeft:"PHrs_mbmvxE6hxCsOk6g","Toastify__bounce-exit--bottom-right":"VT8xJkEWVwimSNLVv_DO","Toastify__bounce-exit--top-right":"UebAJ5HXfVcTl6qQbA_A",Toastify__bounceOutRight:"jS2iByFNBtBz5y0a1oAc","Toastify__bounce-exit--top-center":"IBcI15DDFPsebwVTfd9U",Toastify__bounceOutUp:"x68uQSQK_Z6cmtD2XP8i","Toastify__bounce-exit--bottom-center":"oogCBO3ZXxS7DqEcrm31",Toastify__bounceOutDown:"DLAbZ90mBfvcP7Fgi_gg","Toastify__zoom-enter":"Llq4pOiYqaRWL3sz7RK6",Toastify__zoomIn:"VLbsR_WQs7jTl6Abb5Mu","Toastify__zoom-exit":"mS6RgaU20rSC2dD5ZDs0",Toastify__zoomOut:"Vyumxd4pdZsTBjSzQVxX","Toastify__flip-enter":"jdLP0jhJl4FJG5tJPHVo",Toastify__flipIn:"L2kpYad74z7HiGQxlT1o","Toastify__flip-exit":"tJW_lzgcmUQnYfewKtK5",Toastify__flipOut:"I_Nv5fr6yvkW2T67PviD","Toastify__slide-enter--bottom-left":"C3HV95yAIzWSULAr3TH0","Toastify__slide-enter--top-left":"GD1_SSzYP0M7Q9Tsx8Af",Toastify__slideInLeft:"WlcBs8vKQivPxRjvq8Sv","Toastify__slide-enter--bottom-right":"JFvLjxdbDNrqDbAKs1FU","Toastify__slide-enter--top-right":"XXa6FcJUySc1PcQWWFs2",Toastify__slideInRight:"cIWACnO1qTnIL9XGuZ1u","Toastify__slide-enter--top-center":"VT_2pVsFBOlyYCISUfQ0",Toastify__slideInDown:"CwTvMsemMEyXCVxDlNHl","Toastify__slide-enter--bottom-center":"JrIxJSu0Cjzg658USbl0",Toastify__slideInUp:"N5PJJ8jDONjhBXXj30VR","Toastify__slide-exit--bottom-left":"ZfrjpHlWN_3Kzhtq6AxA","Toastify__slide-exit--top-left":"w22GhLjVb8QuPeLnOGgd",Toastify__slideOutLeft:"nLn_HhewjbCpG0V8vSzb","Toastify__slide-exit--bottom-right":"pgXoEidUdZIJv0h6UfDw","Toastify__slide-exit--top-right":"K2ZDypvE35tE0eWaF6aZ",Toastify__slideOutRight:"YcwhIBI55lVJBTdSoKo2","Toastify__slide-exit--top-center":"d1aI1IfpEPCpI9r2hW8y",Toastify__slideOutUp:"ZLxndsos5nSF5pMELPZN","Toastify__slide-exit--bottom-center":"l9FhhpxzcG1oc3eFDlUa",Toastify__slideOutDown:"kgQtWm7L3OAf2T4R2mOV"};const i=s},765:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,'@-ms-viewport{width:device-width}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,main{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,main,summary{display:block}*,*::before,*::after{box-sizing:inherit}html{box-sizing:border-box;touch-action:manipulation;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{line-height:1;font-family:sans-serif;text-align:left}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\'\';content:none}table{border-collapse:collapse;border-spacing:0}caption{caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}hr{box-sizing:content-box;height:0;overflow:visible}pre,code,kbd,samp{font-family:monospace,monospace}pre{overflow:auto;-ms-overflow-style:scrollbar}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:0;text-decoration:underline;text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{font-style:normal;line-height:inherit}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0}sub{bottom:-.25em}sup{top:-.5em}em{font-style:italic}img{border-style:none}svg:not(:root){overflow:hidden}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,[type="reset"],[type="submit"],[type="button"]{-webkit-appearance:button}input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}button,input{overflow:visible}button,select{text-transform:none}[role="button"]{cursor:pointer}select{word-wrap:normal}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}input[type="radio"],input[type="checkbox"]{box-sizing:border-box;padding:0}[tabindex="-1"]:focus{outline:0 !important}fieldset{min-width:0}legend{max-width:100%;white-space:normal;color:inherit;display:block}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}template{display:none}[hidden]{display:none}',""]),s.locals={};const i=s},176:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--xgIJ0{display:flex;align-items:center;flex-direction:row}.styles--ASo7r{width:28px;height:28px;margin-right:8px}.styles--YKwK0{font-size:18px}",""]),s.locals={logo:"styles--xgIJ0",logoImg:"styles--ASo7r",logoText:"styles--YKwK0"};const i=s},502:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,"body,.global--gj3OE{scrollbar-width:thin;scrollbar-color:#8d9cb8 transparent}body::-webkit-scrollbar,.global--gj3OE::-webkit-scrollbar{width:8px;height:8px}body::-webkit-scrollbar-thumb,.global--gj3OE::-webkit-scrollbar-thumb{background-color:#8d9cb8;border-radius:10px}body::-webkit-scrollbar-thumb:hover,.global--gj3OE::-webkit-scrollbar-thumb:active{background-color:#6b7a92}body::-webkit-scrollbar-track,.global--gj3OE::-webkit-scrollbar-track{background:transparent}",""]),s.locals={"custom-scroll":"global--gj3OE"};const i=s},199:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,'.styles--Km4NM{height:100vh;overflow:hidden;display:flex;flex-direction:column;align-items:center}.styles--y2Nol{width:100%;height:100%}.styles--tGkqN{height:136px}.styles--XHJSx{padding:16px 0}.styles--IqsCg{height:calc(100% - 136px);position:relative}.styles--qZ968{overflow:auto;padding-bottom:48px;height:100%}.styles--dZG5S:after{content:"";position:absolute;z-index:2;top:0;left:0;right:0;height:92px;background:linear-gradient(180deg,#fff -50%,rgba(255,255,255,0) 125%);pointer-events:none}.styles--pZhWm:before{content:"";position:absolute;z-index:2;bottom:0;left:0;right:0;height:92px;background:linear-gradient(180deg,rgba(255,255,255,0) -50%,#fff 125%);pointer-events:none}',""]),s.locals={root:"styles--Km4NM",container:"styles--y2Nol",head:"styles--tGkqN",header:"styles--XHJSx",body:"styles--IqsCg",bodyScroll:"styles--qZ968",bodyScrollTop:"styles--dZG5S",bodyScrollBottom:"styles--pZhWm"};const i=s},904:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--ZlLgS{width:100%;height:100vh;display:flex;justify-content:center;align-items:center;padding:16px}.styles--u7_lb{width:100%;min-width:260px;max-width:580px;background:#fff;padding:32px 56px;border-radius:24px;box-shadow:0 34px 32px rgba(43,46,70,0.08)}.styles--ud2f7 + .styles--ud2f7{margin-top:16px}.styles--JaQuV{display:flex;justify-content:center;margin-bottom:30px}.styles--aqJVP{display:flex;justify-content:flex-end}.styles--sXtPv{margin-bottom:16px;line-height:20px}.styles--m_7TR{color:#8d9cb8;font-weight:bold;margin-bottom:16px}.styles--D07DH + .styles--D07DH{margin-top:8px}",""]),s.locals={root:"styles--ZlLgS",auth:"styles--u7_lb",authGroup:"styles--ud2f7",authLogo:"styles--JaQuV",authBtn:"styles--aqJVP",authDescription:"styles--sXtPv",title:"styles--m_7TR",text:"styles--D07DH"};const i=s},737:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--aZTYY{display:flex;align-items:center;cursor:pointer}.styles--bSQEc{width:24px;height:24px;border:2px solid #c6cfdc;border-radius:8px;display:inline-flex;justify-content:center;align-items:center;position:relative;overflow:hidden}.styles--bSQEc svg{position:absolute;top:-2px;left:-2px}.styles--bSQEc svg path{stroke:#c6cfdc}.styles--anAzX{margin-left:16px;color:#8d9cb8}@media (max-width:768px){.styles--anAzX{display:none}}",""]),s.locals={root:"styles--aZTYY",icon:"styles--bSQEc",text:"styles--anAzX"};const i=s},773:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--gvAsX{display:flex;justify-content:space-between;align-items:center}.styles--A0QJJ{margin-top:24px}",""]),s.locals={container:"styles--gvAsX",subheader:"styles--A0QJJ"};const i=s},374:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--AxRfR{display:flex;align-items:center;justify-content:space-between}.styles--WOHs4{width:260px}@media (max-width:768px){.styles--WOHs4{width:200px}}",""]),s.locals={root:"styles--AxRfR",search:"styles--WOHs4"};const i=s},295:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--ORXTK{position:relative;cursor:pointer}.styles--h4e5u{font-size:18px;margin-right:10px}.styles--rkZzL{width:42px;height:42px;background:#f5f7f9;border-radius:50%;background-size:50%;background-position:center;background-repeat:no-repeat}.styles--SNl6t{display:flex;flex-direction:row;align-items:center}.styles--JtynZ{position:absolute;top:100%;right:0;background:#fff;margin-top:4px;min-width:100px;z-index:10;border-radius:4px}.styles--rQecD{padding:8px;cursor:pointer}",""]),s.locals={root:"styles--ORXTK",name:"styles--h4e5u",avatar:"styles--rkZzL",wrap:"styles--SNl6t",menu:"styles--JtynZ",menuItem:"styles--rQecD"};const i=s},937:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--KIXLA + .styles--KIXLA{margin-top:16px}.styles--N5kN_{display:flex;justify-content:flex-end}.styles--vjgo4{max-height:300px}",""]),s.locals={group:"styles--KIXLA",groupBtn:"styles--N5kN_",textarea:"styles--vjgo4"};const i=s},699:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--uiSG6 + .styles--uiSG6{margin-top:16px}.styles--mQ2bG{background:#f5f7f9;border-radius:20px;padding:24px}.styles--WqN2e{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}.styles--MIvVg{display:flex;flex-direction:row;align-items:center}.styles--trsFz{width:calc(100% - 30px);padding-right:16px}.styles--a0C7s{margin-right:16px}.styles--q_Irs{font-size:18px}.styles--uEs6X{margin-top:16px;font-size:16px;line-height:19px;color:#8d9cb8;font-weight:500;white-space:pre-wrap}.styles--ve9x2 .styles--q_Irs{color:#8d9cb8}.styles--fqRnn{display:flex;justify-content:space-between;align-items:center;padding:40px 0 20px 0}.styles--J1ACS{font-weight:600;font-size:18px;line-height:22px;color:#8d9cb8;display:inline-flex;align-items:center;cursor:pointer}.styles--J1ACS svg{transform:rotate(180deg);margin-left:10px}.styles--J1ACS svg path{stroke:#8d9cb8}.styles--dvMc3 svg{transform:rotate(0deg)}.styles--ha9FL{display:inline-block;color:#ff5e5e;font-weight:500;font-size:18px;text-decoration:underline;cursor:pointer}.styles--ka_c9{width:30px;height:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;padding:0;border:1px solid transparent;background-color:rgba(255,140,140,0.15);cursor:pointer}.styles--ka_c9 svg path{fill:#ff5e5e}.styles--ka_c9:hover,.styles--ka_c9:focus{border-color:transparent;outline:none}",""]),s.locals={listItem:"styles--uiSG6",card:"styles--mQ2bG",cardWrap:"styles--WqN2e",cardWrapLeft:"styles--MIvVg",cardWrapLeftWithButtons:"styles--trsFz",cardCheckbox:"styles--a0C7s",cardTitle:"styles--q_Irs",cardNote:"styles--uEs6X",cardCompleted:"styles--ve9x2",head:"styles--fqRnn",headTitle:"styles--J1ACS",headTitleClose:"styles--dvMc3",headDeleteAll:"styles--ha9FL",actionsButton:"styles--ka_c9"};const i=s},927:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--YoyN2{background:#007fff;border:1px solid #007fff;border-radius:12px;font-weight:500;font-size:16px;color:#fff;padding:12px 16px;cursor:pointer}",""]),s.locals={root:"styles--YoyN2"};const i=s},68:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--rKEf5{width:24px;height:24px;border:2px solid #c6cfdc;border-radius:8px;display:inline-flex;justify-content:center;align-items:center;position:relative;cursor:pointer;overflow:hidden}.styles--rKEf5 svg{position:absolute;top:-2px;left:-2px}.styles--rKEf5 svg path{stroke:#fff}.styles--W1MLR{background:#007fff;border-color:#007fff}.styles--C_0lF{background:#c6cfdc;border-color:#c6cfdc}",""]),s.locals={root:"styles--rKEf5",checked:"styles--W1MLR",disabled:"styles--C_0lF"};const i=s},170:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--HCtBD{display:flex;justify-content:center;flex-direction:row}.styles--zNtWG{max-width:1440px;width:100%;padding:0 24px}",""]),s.locals={root:"styles--HCtBD",container:"styles--zNtWG"};const i=s},188:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--yZzU0{display:flex;flex-direction:column;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.styles--xnXtE{background-color:#fff;max-width:500px;width:100%;border-radius:10px;padding:24px;position:relative;z-index:101;margin-top:10%}.styles--TxQ1F{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.styles--_I3TL{margin-top:24px}.styles--wJ7p_{cursor:pointer}.styles--wJ7p_ svg path{fill:#8d9cb8}.styles--ezLpd{font-size:16px;color:#8d9cb8}.styles--ABtI5{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);z-index:100}",""]),s.locals={root:"styles--yZzU0",window:"styles--xnXtE",head:"styles--TxQ1F",body:"styles--_I3TL",close:"styles--wJ7p_",title:"styles--ezLpd",backdrop:"styles--ABtI5"};const i=s},666:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--YQ2xG{width:100%;box-sizing:border-box;line-height:1.5;resize:none;background:#f5f7f9;border-radius:12px;border:1px solid #f5f7f9;padding-top:8px;padding-left:16px;padding-right:16px;font-weight:500;font-size:16px}.styles--YQ2xG::placeholder{line-height:19px;color:#c6cfdc}",""]),s.locals={root:"styles--YQ2xG"};const i=s},732:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,".styles--OpEQ2{position:relative}.styles--AAYWi{display:block;background:#f5f7f9;border-radius:12px;height:38px;border:1px solid #f5f7f9;padding-left:16px;padding-right:16px;font-weight:500;font-size:16px}.styles--AAYWi::placeholder{line-height:19px;color:#c6cfdc}.styles--wKd5V{width:100%}.styles--wKd5V > input{width:100%}",""]),s.locals={root:"styles--OpEQ2",input:"styles--AAYWi",fullWith:"styles--wKd5V"};const i=s},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&s[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},601:e=>{e.exports=function(e){return e[1]}},146:(e,t,n)=>{var r=n(363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return r.isMemo(e)?s:i[e.$$typeof]||o}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var i=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(a[y]||r&&r[y]||m&&m[y]||i&&i[y])){var v=f(n,y);try{c(t,y,v)}catch(e){}}}}return t}},551:(e,t,n)=>{var r=n(540),o=n(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var L,j=Object.assign;function F(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),s=o.length-1,i=a.length-1;1<=s&&0<=i&&o[s]!==a[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==a[i]){if(1!==s||1!==i)do{if(s--,0>--i||o[s]!==a[i]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=i);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case E:return"Profiler";case w:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===w?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function G(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,we=null;function Ee(e){if(e=_o(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Te(e){xe?we?we.push(e):we=[e]:xe=e}function Ce(){if(xe){var e=xe,t=we;if(we=xe=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ie(e,t){return e(t)}function Re(){}var Oe=!1;function Ne(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ie(e,t,n)}finally{Oe=!1,(null!==xe||null!==we)&&(Re(),Ce())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ko(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Me=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){Me=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){Me=!1}function Pe(e,t,n,r,o,a,s,i,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Le=!1,je=null,Fe=!1,ze=null,Be={onError:function(e){Le=!0,je=e}};function Ue(e,t,n,r,o,a,s,i,l){Le=!1,je=null,Pe.apply(Be,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(a(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return He(o),e;if(s===r)return He(o),t;s=s.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Je=o.unstable_requestPaint,Ye=o.unstable_now,Ge=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!==s){var i=s&~o;0!==i?r=dt(i):0!==(a&=s)&&(r=dt(a))}else 0!==(s=n&~o)?r=dt(s):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,kt,xt,wt,Et,Tt=!1,Ct=[],It=null,Rt=null,Ot=null,Nt=new Map,At=new Map,Mt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Lt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=_o(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=bo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_o(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function zt(e,t,n){Ft(e)&&n.delete(t)}function Bt(){Tt=!1,null!==It&&Ft(It)&&(It=null),null!==Rt&&Ft(Rt)&&(Rt=null),null!==Ot&&Ft(Ot)&&(Ot=null),Nt.forEach(zt),At.forEach(zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Ct.length){Ut(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&Ut(It,e),null!==Rt&&Ut(Rt,e),null!==Ot&&Ut(Ot,e),Nt.forEach(t),At.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)jt(n),null===n.blockedOn&&Mt.shift()}var Wt=_.ReactCurrentBatchConfig,Ht=!0;function qt(e,t,n,r){var o=bt,a=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Wt.transition=a}}function Vt(e,t,n,r){var o=bt,a=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Wt.transition=a}}function Kt(e,t,n,r){if(Ht){var o=Xt(e,t,n,r);if(null===o)Hr(e,t,r,Qt,n),Pt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Lt(It,e,t,n,r,o),!0;case"dragenter":return Rt=Lt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=Lt(Ot,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Nt.set(a,Lt(Nt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,At.set(a,Lt(At.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Pt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var a=_o(o);if(null!==a&&St(a),null===(a=Xt(e,t,n,r))&&Hr(e,t,r,Qt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Qt=null;function Xt(e,t,n,r){if(Qt=null,null!==(e=bo(e=Se(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ge()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Gt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Gt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=j({},cn,{view:0,detail:0}),fn=on(dn),pn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(j({},pn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),yn=on(j({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=j({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),_n=on(j({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function En(){return wn}var Tn=j({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(Tn),In=on(j({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on(j({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=j({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=on(Nn),Mn=[9,13,27,32],Dn=u&&"CompositionEvent"in window,Pn=null;u&&"documentMode"in document&&(Pn=document.documentMode);var Ln=u&&"TextEvent"in window&&!Pn,jn=u&&(!Dn||Pn&&8<Pn&&11>=Pn),Fn=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Qn(e){Fr(e,0)}function Xn(e){if(K(So(e)))return e}function Jn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Gn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Gn=Zn}else Gn=!1;Yn=Gn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Kn=Vn=null)}function nr(e){if("value"===e.propertyName&&Xn(Kn)){var t=[];qn(t,Kn,e,Se(e)),Ne(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Kn)}function ar(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var s=ur(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Q(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Vr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},xr={},wr={};function Er(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return xr[e]=n[t];return e}u&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Tr=Er("animationend"),Cr=Er("animationiteration"),Ir=Er("animationstart"),Rr=Er("transitionend"),Or=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Or.set(e,t),l(t,[e])}for(var Mr=0;Mr<Nr.length;Mr++){var Dr=Nr[Mr];Ar(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Ar(Tr,"onAnimationEnd"),Ar(Cr,"onAnimationIteration"),Ar(Ir,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,i,l,c){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=je;Le=!1,je=null,Fe||(Fe=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==a&&o.isPropagationStopped())break e;jr(o,i,c),a=l}else for(s=0;s<r.length;s++){if(l=(i=r[s]).instance,c=i.currentTarget,i=i.listener,l!==a&&o.isPropagationStopped())break e;jr(o,i,c),a=l}}}if(Fe)throw e=ze,Fe=!1,ze=null,e}function zr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,s.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var o=qt;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var i=r.stateNode.containerInfo;if(i===o||8===i.nodeType&&i.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==i;){if(null===(s=bo(i)))return;if(5===(l=s.tag)||6===l){r=a=s;continue e}i=i.parentNode}}r=r.return}Ne((function(){var r=a,o=Se(n),s=[];e:{var i=Or.get(e);if(void 0!==i){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Tr:case Cr:case Ir:l=yn;break;case Rr:l=On;break;case"scroll":l=fn;break;case"wheel":l=An;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=In}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==i?i+"Capture":null:i;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ae(h,f))&&u.push(qr(h,m,p)))),d)break;h=h.return}0<u.length&&(i=new l(i,c,null,n,o),s.push({event:i,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===_e||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||i)&&(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=In,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?i:So(l),p=null==c?i:So(c),(i=new u(m,h+"leave",l,n,o)).target=d,i.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Kr(u),f=Kr(f)}u=null}else u=null;null!==l&&Qr(s,i,l,u,!1),null!==c&&null!==d&&Qr(s,d,c,u,!0)}if("select"===(l=(i=r?So(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===l&&"file"===i.type)var g=Jn;else if(Hn(i))if(Yn)g=sr;else{g=or;var y=rr}else(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=ar);switch(g&&(g=g(e,r))?qn(s,g,n,o):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&ee(i,"number",i.value)),y=r?So(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(s,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(s,n,o)}var v;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(v=en()):(Gt="value"in(Yt=o)?Yt.value:Yt.textContent,$n=!0)),0<(y=Vr(r,b)).length&&(b=new _n(b,e,null,n,o),s.push({event:b,listeners:y}),v?b.data=v:null!==(v=Un(n))&&(b.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,Fn);case"textInput":return(e=t.data)===Fn&&zn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Dn&&Bn(e,t)?(e=en(),Zt=Gt=Yt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new _n("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v))}Fr(s,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ae(e,n))&&r.unshift(qr(e,a,o)),null!=(a=Ae(e,t))&&r.push(qr(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var a=t._reactName,s=[];null!==n&&n!==r;){var i=n,l=i.alternate,c=i.stateNode;if(null!==l&&l===r)break;5===i.tag&&null!==c&&(i=c,o?null!=(l=Ae(n,a))&&s.unshift(qr(n,l,i)):o||null!=(l=Ae(n,a))&&s.push(qr(n,l,i))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Xr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Jr,"")}function Gr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(io)}:ro;function io(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,yo="__reactListeners$"+fo,vo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function _o(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ko(e){return e[ho]||null}var xo=[],wo=-1;function Eo(e){return{current:e}}function To(e){0>wo||(e.current=xo[wo],xo[wo]=null,wo--)}function Co(e,t){wo++,xo[wo]=e.current,e.current=t}var Io={},Ro=Eo(Io),Oo=Eo(!1),No=Io;function Ao(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Mo(e){return null!=(e=e.childContextTypes)}function Do(){To(Oo),To(Ro)}function Po(e,t,n){if(Ro.current!==Io)throw Error(a(168));Co(Ro,t),Co(Oo,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,No=Ro.current,Co(Ro,e),Co(Oo,Oo.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,To(Oo),To(Ro),Co(Ro,e)):To(Oo),Co(Oo,n)}var zo=null,Bo=!1,Uo=!1;function $o(e){null===zo?zo=[e]:zo.push(e)}function Wo(){if(!Uo&&null!==zo){Uo=!0;var e=0,t=bt;try{var n=zo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Bo=!1}catch(t){throw null!==zo&&(zo=zo.slice(e+1)),Ke(Ze,Wo),t}finally{bt=t,Uo=!1}}return null}var Ho=[],qo=0,Vo=null,Ko=0,Qo=[],Xo=0,Jo=null,Yo=1,Go="";function Zo(e,t){Ho[qo++]=Ko,Ho[qo++]=Vo,Vo=e,Ko=t}function ea(e,t,n){Qo[Xo++]=Yo,Qo[Xo++]=Go,Qo[Xo++]=Jo,Jo=e;var r=Yo;e=Go;var o=32-st(r)-1;r&=~(1<<o),n+=1;var a=32-st(t)+o;if(30<a){var s=o-o%5;a=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Yo=1<<32-st(t)+o|n<<o|r,Go=a+e}else Yo=1<<a|n<<o|r,Go=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Ho[--qo],Ho[qo]=null,Ko=Ho[--qo],Ho[qo]=null;for(;e===Jo;)Jo=Qo[--Xo],Qo[Xo]=null,Go=Qo[--Xo],Qo[Xo]=null,Yo=Qo[--Xo],Qo[Xo]=null}var ra=null,oa=null,aa=!1,sa=null;function ia(e,t){var n=Nc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Jo?{id:Yo,overflow:Go}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?ia(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw pa(),Error(a(418));for(;t;)ia(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===sa?sa=[e]:sa.push(e)}var ga=_.ReactCurrentBatchConfig;function ya(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=Eo(null),ba=null,_a=null,Sa=null;function ka(){Sa=_a=ba=null}function xa(e){var t=va.current;To(va),e._currentValue=t}function wa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){ba=e,Sa=_a=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(bi=!0),e.firstContext=null)}function Ta(e){var t=e._currentValue;if(Sa!==e)if(e={context:e,memoizedValue:t,next:null},null===_a){if(null===ba)throw Error(a(308));_a=e,ba.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var Ca=null;function Ia(e){null===Ca?Ca=[e]:Ca.push(e)}function Ra(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ia(t)):(n.next=o.next,o.next=n),t.interleaved=n,Oa(e,r)}function Oa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Na=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ma(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Il)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Oa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ia(r)):(t.next=o.next,o.next=t),r.interleaved=t,Oa(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function ja(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;Na=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(null!==i){o.shared.pending=null;var l=i,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var u=e.alternate;null!==u&&((i=(u=u.updateQueue).lastBaseUpdate)!==s&&(null===i?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(s=0,u=c=l=null,i=a;;){var f=i.lane,p=i.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=j({},d,f);break e;case 2:Na=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[i]:f.push(i))}else p={eventTime:p,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,s|=f;if(null===(i=i.next)){if(null===(i=o.shared.pending))break;i=(f=i).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=d}}function za(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Ba=(new r.Component).refs;function Ua(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Da(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,o))&&(nc(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Da(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Pa(e,a,o))&&(nc(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Da(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Pa(e,o,r))&&(nc(t,e,r,n),La(t,e,r))}};function Wa(e,t,n,r,o,a,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function Ha(e,t,n){var r=!1,o=Io,a=t.contextType;return"object"==typeof a&&null!==a?a=Ta(a):(o=Mo(t)?No:Ro.current,a=(r=null!=(r=t.contextTypes))?Ao(e,o):Io),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function qa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ba,Aa(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ta(a):(a=Mo(t)?No:Ro.current,o.context=Ao(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$a.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ka(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xa(e){return(0,e._init)(e._payload)}function Ja(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===A&&Xa(a)===t.type)?((r=o(t,n.props)).ref=Ka(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Ka(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Pc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Ka(e,null,t),n.return=e,n;case k:return(t=Fc(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(te(t)||P(t))return(t=Pc(t,e.mode,n,null)).return=e,t;Qa(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?c(e,t,n,r):null;case k:return n.key===o?u(e,t,n,r):null;case A:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||P(n))return null!==o?null:d(e,t,n,r,null);Qa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||P(r))return d(t,e=e.get(n)||null,r,o,null);Qa(t,r)}return null}function m(o,a,i,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<i.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(o,d,i[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),a=s(y,a,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===i.length)return n(o,d),aa&&Zo(o,m),c;if(null===d){for(;m<i.length;m++)null!==(d=f(o,i[m],l))&&(a=s(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,m),c}for(d=r(o,d);m<i.length;m++)null!==(g=h(d,o,m,i[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=s(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,m),c}function g(o,i,l,c){var u=P(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=i,g=i=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),i=s(b,i,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),aa&&Zo(o,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(o,v.value,c))&&(i=s(v,i,g),null===d?u=v:d.sibling=v,d=v);return aa&&Zo(o,g),u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),i=s(v,i,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),u}return function e(r,a,s,l){if("object"==typeof s&&null!==s&&s.type===x&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case S:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===x){if(7===u.tag){n(r,u.sibling),(a=o(u,s.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===A&&Xa(c)===u.type){n(r,u.sibling),(a=o(u,s.props)).ref=Ka(r,u,s),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===x?((a=Pc(s.props.children,r.mode,l,s.key)).return=r,r=a):((l=Dc(s.type,s.key,s.props,null,r.mode,l)).ref=Ka(r,a,s),l.return=r,r=l)}return i(r);case k:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(r,a.sibling),(a=o(a,s.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(s,r.mode,l)).return=r,r=a}return i(r);case A:return e(r,a,(u=s._init)(s._payload),l)}if(te(s))return m(r,a,s,l);if(P(s))return g(r,a,s,l);Qa(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,s)).return=r,r=a):(n(r,a),(a=jc(s,r.mode,l)).return=r,r=a),i(r)):n(r,a)}}var Ya=Ja(!0),Ga=Ja(!1),Za={},es=Eo(Za),ts=Eo(Za),ns=Eo(Za);function rs(e){if(e===Za)throw Error(a(174));return e}function os(e,t){switch(Co(ns,t),Co(ts,e),Co(es,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}To(es),Co(es,t)}function as(){To(es),To(ts),To(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Co(ts,e),Co(es,n))}function is(e){ts.current===e&&(To(es),To(ts))}var ls=Eo(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var fs=_.ReactCurrentDispatcher,ps=_.ReactCurrentBatchConfig,hs=0,ms=null,gs=null,ys=null,vs=!1,bs=!1,_s=0,Ss=0;function ks(){throw Error(a(321))}function xs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function ws(e,t,n,r,o,s){if(hs=s,ms=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fs.current=null===e||null===e.memoizedState?ii:li,e=n(r,o),bs){s=0;do{if(bs=!1,_s=0,25<=s)throw Error(a(301));s+=1,ys=gs=null,t.updateQueue=null,fs.current=ci,e=n(r,o)}while(bs)}if(fs.current=si,t=null!==gs&&null!==gs.next,hs=0,ys=gs=ms=null,vs=!1,t)throw Error(a(300));return e}function Es(){var e=0!==_s;return _s=0,e}function Ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?ms.memoizedState=ys=e:ys=ys.next=e,ys}function Cs(){if(null===gs){var e=ms.alternate;e=null!==e?e.memoizedState:null}else e=gs.next;var t=null===ys?ms.memoizedState:ys.next;if(null!==t)ys=t,gs=e;else{if(null===e)throw Error(a(310));e={memoizedState:(gs=e).memoizedState,baseState:gs.baseState,baseQueue:gs.baseQueue,queue:gs.queue,next:null},null===ys?ms.memoizedState=ys=e:ys=ys.next=e}return ys}function Is(e,t){return"function"==typeof t?t(e):t}function Rs(e){var t=Cs(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=gs,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((hs&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,i=r):c=c.next=f,ms.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==s);null===c?i=r:c.next=l,ir(r,t.memoizedState)||(bi=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,ms.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Os(e){var t=Cs(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{s=e(s,i.action),i=i.next}while(i!==o);ir(s,t.memoizedState)||(bi=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Ns(){}function As(e,t){var n=ms,r=Cs(),o=t(),s=!ir(r.memoizedState,o);if(s&&(r.memoizedState=o,bi=!0),r=r.queue,Hs(Ps.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,zs(9,Ds.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(a(349));0!=(30&hs)||Ms(n,t,o)}return o}function Ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ds(e,t,n,r){t.value=n,t.getSnapshot=r,Ls(t)&&js(e)}function Ps(e,t,n){return n((function(){Ls(t)&&js(e)}))}function Ls(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function js(e){var t=Oa(e,1);null!==t&&nc(t,e,1,-1)}function Fs(e){var t=Ts();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Is,lastRenderedState:e},t.queue=e,e=e.dispatch=ni.bind(null,ms,e),[t.memoizedState,e]}function zs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ms.updateQueue)?(t={lastEffect:null,stores:null},ms.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Cs().memoizedState}function Us(e,t,n,r){var o=Ts();ms.flags|=e,o.memoizedState=zs(1|t,n,void 0,void 0===r?null:r)}function $s(e,t,n,r){var o=Cs();r=void 0===r?null:r;var a=void 0;if(null!==gs){var s=gs.memoizedState;if(a=s.destroy,null!==r&&xs(r,s.deps))return void(o.memoizedState=zs(t,n,a,r))}ms.flags|=e,o.memoizedState=zs(1|t,n,a,r)}function Ws(e,t){return Us(8390656,8,e,t)}function Hs(e,t){return $s(2048,8,e,t)}function qs(e,t){return $s(4,2,e,t)}function Vs(e,t){return $s(4,4,e,t)}function Ks(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qs(e,t,n){return n=null!=n?n.concat([e]):null,$s(4,4,Ks.bind(null,t,e),n)}function Xs(){}function Js(e,t){var n=Cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=Cs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gs(e,t,n){return 0==(21&hs)?(e.baseState&&(e.baseState=!1,bi=!0),e.memoizedState=n):(ir(n,t)||(n=mt(),ms.lanes|=n,Ll|=n,e.baseState=!0),t)}function Zs(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ps.transition;ps.transition={};try{e(!1),t()}finally{bt=n,ps.transition=r}}function ei(){return Cs().memoizedState}function ti(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ri(e))oi(t,n);else if(null!==(n=Ra(e,t,n,r))){nc(n,e,r,ec()),ai(n,t,r)}}function ni(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(e))oi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,i=a(s,n);if(o.hasEagerState=!0,o.eagerState=i,ir(i,s)){var l=t.interleaved;return null===l?(o.next=o,Ia(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ra(e,t,o,r))&&(nc(n,e,r,o=ec()),ai(n,t,r))}}function ri(e){var t=e.alternate;return e===ms||null!==t&&t===ms}function oi(e,t){bs=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ai(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var si={readContext:Ta,useCallback:ks,useContext:ks,useEffect:ks,useImperativeHandle:ks,useInsertionEffect:ks,useLayoutEffect:ks,useMemo:ks,useReducer:ks,useRef:ks,useState:ks,useDebugValue:ks,useDeferredValue:ks,useTransition:ks,useMutableSource:ks,useSyncExternalStore:ks,useId:ks,unstable_isNewReconciler:!1},ii={readContext:Ta,useCallback:function(e,t){return Ts().memoizedState=[e,void 0===t?null:t],e},useContext:Ta,useEffect:Ws,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Us(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var n=Ts();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ts();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ti.bind(null,ms,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ts().memoizedState=e},useState:Fs,useDebugValue:Xs,useDeferredValue:function(e){return Ts().memoizedState=e},useTransition:function(){var e=Fs(!1),t=e[0];return e=Zs.bind(null,e[1]),Ts().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ms,o=Ts();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Rl)throw Error(a(349));0!=(30&hs)||Ms(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ws(Ps.bind(null,r,s,e),[e]),r.flags|=2048,zs(9,Ds.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ts(),t=Rl.identifierPrefix;if(aa){var n=Go;t=":"+t+"R"+(n=(Yo&~(1<<32-st(Yo)-1)).toString(32)+n),0<(n=_s++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ss++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},li={readContext:Ta,useCallback:Js,useContext:Ta,useEffect:Hs,useImperativeHandle:Qs,useInsertionEffect:qs,useLayoutEffect:Vs,useMemo:Ys,useReducer:Rs,useRef:Bs,useState:function(){return Rs(Is)},useDebugValue:Xs,useDeferredValue:function(e){return Gs(Cs(),gs.memoizedState,e)},useTransition:function(){return[Rs(Is)[0],Cs().memoizedState]},useMutableSource:Ns,useSyncExternalStore:As,useId:ei,unstable_isNewReconciler:!1},ci={readContext:Ta,useCallback:Js,useContext:Ta,useEffect:Hs,useImperativeHandle:Qs,useInsertionEffect:qs,useLayoutEffect:Vs,useMemo:Ys,useReducer:Os,useRef:Bs,useState:function(){return Os(Is)},useDebugValue:Xs,useDeferredValue:function(e){var t=Cs();return null===gs?t.memoizedState=e:Gs(t,gs.memoizedState,e)},useTransition:function(){return[Os(Is)[0],Cs().memoizedState]},useMutableSource:Ns,useSyncExternalStore:As,useId:ei,unstable_isNewReconciler:!1};function ui(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var fi="function"==typeof WeakMap?WeakMap:Map;function pi(e,t,n){(n=Da(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r)},n}function hi(e,t,n){(n=Da(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fi;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yi(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Da(-1,1)).tag=2,Pa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vi=_.ReactCurrentOwner,bi=!1;function _i(e,t,n,r){t.child=null===e?Ga(t,null,n,r):Ya(t,e.child,n,r)}function Si(e,t,n,r,o){n=n.render;var a=t.ref;return Ea(t,o),r=ws(e,t,n,r,a,o),n=Es(),null===e||bi?(aa&&n&&ta(t),t.flags|=1,_i(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hi(e,t,o))}function ki(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Ac(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,xi(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Hi(e,t,o)}return t.flags|=1,(e=Mc(a,r)).ref=t.ref,e.return=t,t.child=e}function xi(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(bi=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Hi(e,t,o);0!=(131072&e.flags)&&(bi=!0)}}return Ti(e,t,n,r,o)}function wi(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Ml,Al),Al|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Ml,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Co(Ml,Al),Al|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Co(Ml,Al),Al|=r;return _i(e,t,o,n),t.child}function Ei(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ti(e,t,n,r,o){var a=Mo(n)?No:Ro.current;return a=Ao(t,a),Ea(t,o),n=ws(e,t,n,r,a,o),r=Es(),null===e||bi?(aa&&r&&ta(t),t.flags|=1,_i(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hi(e,t,o))}function Ci(e,t,n,r,o){if(Mo(n)){var a=!0;jo(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Wi(e,t),Ha(t,n,r),Va(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ta(c):c=Ao(t,c=Mo(n)?No:Ro.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==r||l!==c)&&qa(t,s,r,c),Na=!1;var f=t.memoizedState;s.state=f,Fa(t,r,s,o),l=t.memoizedState,i!==r||f!==l||Oo.current||Na?("function"==typeof u&&(Ua(t,n,u,r),l=t.memoizedState),(i=Na||Wa(t,n,i,r,f,l,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=i):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ma(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:ya(t.type,i),s.props=c,d=t.pendingProps,f=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ta(l):l=Ao(t,l=Mo(n)?No:Ro.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(i!==d||f!==l)&&qa(t,s,r,l),Na=!1,f=t.memoizedState,s.state=f,Fa(t,r,s,o);var h=t.memoizedState;i!==d||f!==h||Oo.current||Na?("function"==typeof p&&(Ua(t,n,p,r),h=t.memoizedState),(c=Na||Wa(t,n,c,r,f,h,l)||!1)?(u||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,h,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=c):("function"!=typeof s.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ii(e,t,n,r,a,o)}function Ii(e,t,n,r,o,a){Ei(e,t);var s=0!=(128&t.flags);if(!r&&!s)return o&&Fo(t,n,!1),Hi(e,t,a);r=t.stateNode,vi.current=t;var i=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,i,a)):_i(e,t,i,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ri(e){var t=e.stateNode;t.pendingContext?Po(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Po(0,t.context,!1),os(e,t.containerInfo)}function Oi(e,t,n,r,o){return ha(),ma(o),t.flags|=256,_i(e,t,n,r),t.child}var Ni,Ai,Mi,Di,Pi={dehydrated:null,treeContext:null,retryLane:0};function Li(e){return{baseLanes:e,cachePool:null,transitions:null}}function ji(e,t,n){var r,o=t.pendingProps,s=ls.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Co(ls,1&s),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Lc(l,o,0,null),e=Pc(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Li(n),t.memoizedState=Pi,e):Fi(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,i){if(n)return 256&t.flags?(t.flags&=-257,zi(e,t,i,r=di(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Lc({mode:"visible",children:r.children},o,0,null),(s=Pc(s,o,i,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Ya(t,e.child,null,i),t.child.memoizedState=Li(i),t.memoizedState=Pi,s);if(0==(1&t.mode))return zi(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zi(e,t,i,r=di(s=Error(a(419)),r,void 0))}if(l=0!=(i&e.childLanes),bi||l){if(null!==(r=Rl)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Oa(e,o),nc(r,e,o,-1))}return mc(),zi(e,t,i,r=di(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,sa=null,null!==e&&(Qo[Xo++]=Yo,Qo[Xo++]=Go,Qo[Xo++]=Jo,Yo=e.id,Go=e.overflow,Jo=t),t=Fi(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,s,n);if(i){i=o.fallback,l=t.mode,r=(s=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(s,c)).subtreeFlags=14680064&s.subtreeFlags,null!==r?i=Mc(r,i):(i=Pc(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Li(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Pi,o}return e=(i=e.child).sibling,o=Mc(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fi(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zi(e,t,n,r){return null!==r&&ma(r),Ya(t,e.child,null,n),(e=Fi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wa(e.return,t,n)}function Ui(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function $i(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(_i(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===cs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ui(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===cs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ui(t,!0,n,null,a);break;case"together":Ui(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wi(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qi(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ki(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return Mo(t.type)&&Do(),Vi(t),null;case 3:return r=t.stateNode,as(),To(Oo),To(Ro),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==sa&&(sc(sa),sa=null))),Ai(e,t),Vi(t),null;case 5:is(t);var o=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Mi(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Vi(t),null}if(e=rs(es.current),fa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[po]=t,r[ho]=s,e=0!=(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Pr.length;o++)zr(Pr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":J(r,s),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},zr("invalid",r);break;case"textarea":oe(r,s),zr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==s.suppressHydrationWarning&&Gr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Gr(r.textContent,c,e),o=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&zr("scroll",r)}switch(n){case"input":V(r),Z(r,s,!0);break;case"textarea":V(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ni(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Pr.length;o++)zr(Pr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":J(e,r),o=X(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(s in ve(n,o),c=o)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ge(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=u&&"onScroll"===s&&zr("scroll",e):null!=u&&b(e,s,u,l))}switch(n){case"input":V(e),Z(e,r,!1);break;case"textarea":V(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Di(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=rs(ns.current),rs(es.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(s=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Gr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Gr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vi(t),null;case 13:if(To(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))pa(),ha(),t.flags|=98560,s=!1;else if(s=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(a(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(a(317));s[po]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),s=!1}else null!==sa&&(sc(sa),sa=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Dl&&(Dl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return as(),Ai(e,t),null===e&&$r(t.stateNode.containerInfo),Vi(t),null;case 10:return xa(t.type._context),Vi(t),null;case 19:if(To(ls),null===(s=t.memoizedState))return Vi(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)qi(s,!1);else{if(0!==Dl||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=cs(e))){for(t.flags|=128,qi(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ye()>$l&&(t.flags|=128,r=!0,qi(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qi(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!aa)return Vi(t),null}else 2*Ye()-s.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,qi(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,n=ls.current,Co(ls,r?1&n|2:1&n),t):(Vi(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Al)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qi(e,t){switch(na(t),t.tag){case 1:return Mo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return as(),To(Oo),To(Ro),ds(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return is(t),null;case 13:if(To(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return To(ls),null;case 4:return as(),null;case 10:return xa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ni=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ai=function(){},Mi=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rs(es.current);var a,s=null;switch(n){case"input":o=X(e,o),r=X(e,r),s=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&zr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Di=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xi=!1,Ji=!1,Yi="function"==typeof WeakSet?WeakSet:Set,Gi=null;function Zi(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){wc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){wc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&el(t,n,a)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[yo],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ji||Zi(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),$t(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ji&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,s=a.destroy;a=a.tag,void 0!==s&&(0!=(2&a)||0!=(4&a))&&el(n,t,s),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ji&&(Zi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){wc(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ji=(r=Ji)||null!==n.memoizedState,fl(e,t,n),Ji=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yi),t.forEach((function(t){var r=Ic.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));pl(s,i,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){wc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){wc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){wc(e,e.return,t)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&Zi(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&Zi(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){wc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,i=null!==n?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===s.type&&null!=s.name&&Y(o,s),be(l,i);var u=be(l,s);for(i=0;i<c.length;i+=2){var d=c[i],f=c[i+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":G(o,s);break;case"textarea":ae(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var h=s.value;null!=h?ne(o,!!s.multiple,h,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[ho]=s}catch(t){wc(e,e.return,t)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){wc(e,e.return,t)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){wc(e,e.return,t)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Ye())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ji=(u=Ji)||d,ml(t,e),Ji=u):ml(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Gi=e,d=e.child;null!==d;){for(f=Gi=d;null!==Gi;){switch(h=(p=Gi).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Zi(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){wc(r,n,e)}}break;case 5:Zi(p,p.return);break;case 22:if(null!==p.memoizedState){Sl(f);continue}}null!==h?(h.return=p,Gi=h):Sl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=f.stateNode,i=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",i))}catch(t){wc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){wc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),yl(e),4&r&&hl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,il(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ll(e,il(e),s);break;default:throw Error(a(161))}}catch(t){wc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Gi=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!=(1&e.mode);null!==Gi;){var o=Gi,a=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Xi;if(!s){var i=o.alternate,l=null!==i&&null!==i.memoizedState||Ji;i=Xi;var c=Ji;if(Xi=s,(Ji=l)&&!c)for(Gi=o;null!==Gi;)l=(s=Gi).child,22===s.tag&&null!==s.memoizedState?kl(o):null!==l?(l.return=s,Gi=l):kl(o);for(;null!==a;)Gi=a,bl(a,t,n),a=a.sibling;Gi=o,Xi=i,Ji=c}_l(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Gi=a):_l(e)}}function _l(e){for(;null!==Gi;){var t=Gi;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ji||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ji)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ya(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&za(t,s,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}za(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(a(163))}Ji||512&t.flags&&ol(t)}catch(e){wc(t,t.return,e)}}if(t===e){Gi=null;break}if(null!==(n=t.sibling)){n.return=t.return,Gi=n;break}Gi=t.return}}function Sl(e){for(;null!==Gi;){var t=Gi;if(t===e){Gi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Gi=n;break}Gi=t.return}}function kl(e){for(;null!==Gi;){var t=Gi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){wc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){wc(t,o,e)}}var a=t.return;try{ol(t)}catch(e){wc(t,a,e)}break;case 5:var s=t.return;try{ol(t)}catch(e){wc(t,s,e)}}}catch(e){wc(t,t.return,e)}if(t===e){Gi=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Gi=i;break}Gi=t.return}}var xl,wl=Math.ceil,El=_.ReactCurrentDispatcher,Tl=_.ReactCurrentOwner,Cl=_.ReactCurrentBatchConfig,Il=0,Rl=null,Ol=null,Nl=0,Al=0,Ml=Eo(0),Dl=0,Pl=null,Ll=0,jl=0,Fl=0,zl=null,Bl=null,Ul=0,$l=1/0,Wl=null,Hl=!1,ql=null,Vl=null,Kl=!1,Ql=null,Xl=0,Jl=0,Yl=null,Gl=-1,Zl=0;function ec(){return 0!=(6&Il)?Ye():-1!==Gl?Gl:Gl=Ye()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Il)&&0!==Nl?Nl&-Nl:null!==ga.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nc(e,t,n,r){if(50<Jl)throw Jl=0,Yl=null,Error(a(185));yt(e,n,r),0!=(2&Il)&&e===Rl||(e===Rl&&(0==(2&Il)&&(jl|=n),4===Dl&&ic(e,Nl)),rc(e,r),1===n&&0===Il&&0==(1&t.mode)&&($l=Ye()+500,Bo&&Wo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-st(a),i=1<<s,l=o[s];-1===l?0!=(i&n)&&0==(i&r)||(o[s]=pt(i,t)):l<=t&&(e.expiredLanes|=i),a&=~i}}(e,t);var r=ft(e,e===Rl?Nl:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Bo=!0,$o(e)}(lc.bind(null,e)):$o(lc.bind(null,e)),so((function(){0==(6&Il)&&Wo()})),n=null;else{switch(_t(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Gl=-1,Zl=0,0!=(6&Il))throw Error(a(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Nl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Il;Il|=2;var s=hc();for(Rl===e&&Nl===t||(Wl=null,$l=Ye()+500,fc(e,t));;)try{vc();break}catch(t){pc(e,t)}ka(),El.current=s,Il=o,null!==Ol?t=0:(Rl=null,Nl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ac(e,o))),1===t)throw n=Pl,fc(e,0),ic(e,r),rc(e,Ye()),n;if(6===t)ic(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!ir(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(s=ht(e))&&(r=s,t=ac(e,s))),1===t))throw n=Pl,fc(e,0),ic(e,r),rc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Sc(e,Bl,Wl);break;case 3:if(ic(e,r),(130023424&r)===r&&10<(t=Ul+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,Bl,Wl),t);break}Sc(e,Bl,Wl);break;case 4:if(ic(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-st(r);s=1<<i,(i=t[i])>o&&(o=i),r&=~s}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wl(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,Bl,Wl),r);break}Sc(e,Bl,Wl);break;default:throw Error(a(329))}}}return rc(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&sc(t)),e}function sc(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function ic(e,t){for(t&=~Fl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!=(6&Il))throw Error(a(327));kc();var t=ft(e,0);if(0==(1&t))return rc(e,Ye()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Pl,fc(e,0),ic(e,t),rc(e,Ye()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Bl,Wl),rc(e,Ye()),null}function cc(e,t){var n=Il;Il|=1;try{return e(t)}finally{0===(Il=n)&&($l=Ye()+500,Bo&&Wo())}}function uc(e){null!==Ql&&0===Ql.tag&&0==(6&Il)&&kc();var t=Il;Il|=1;var n=Cl.transition,r=bt;try{if(Cl.transition=null,bt=1,e)return e()}finally{bt=r,Cl.transition=n,0==(6&(Il=t))&&Wo()}}function dc(){Al=Ml.current,To(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:as(),To(Oo),To(Ro),ds();break;case 5:is(r);break;case 4:as();break;case 13:case 19:To(ls);break;case 10:xa(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Rl=e,Ol=e=Mc(e.current,null),Nl=Al=t,Dl=0,Pl=null,Fl=jl=Ll=0,Bl=zl=null,null!==Ca){for(t=0;t<Ca.length;t++)if(null!==(r=(n=Ca[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var s=a.next;a.next=o,r.next=s}n.pending=r}Ca=null}return e}function pc(e,t){for(;;){var n=Ol;try{if(ka(),fs.current=si,vs){for(var r=ms.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vs=!1}if(hs=0,ys=gs=ms=null,bs=!1,_s=0,Tl.current=null,null===n||null===n.return){Dl=1,Pl=t,Ol=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Nl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gi(i);if(null!==h){h.flags&=-257,yi(h,i,l,0,t),1&h.mode&&mi(s,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){mi(s,u,t),mc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var y=gi(i);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),yi(y,i,l,0,t),ma(ui(c,l));break e}}s=c=ui(c,l),4!==Dl&&(Dl=2),null===zl?zl=[s]:zl.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,ja(s,pi(0,c,t));break e;case 1:l=c;var v=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,ja(s,hi(s,l,t));break e}}s=s.return}while(null!==s)}_c(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function hc(){var e=El.current;return El.current=si,null===e?si:e}function mc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Rl||0==(268435455&Ll)&&0==(268435455&jl)||ic(Rl,Nl)}function gc(e,t){var n=Il;Il|=2;var r=hc();for(Rl===e&&Nl===t||(Wl=null,fc(e,t));;)try{yc();break}catch(t){pc(e,t)}if(ka(),Il=n,El.current=r,null!==Ol)throw Error(a(261));return Rl=null,Nl=0,Dl}function yc(){for(;null!==Ol;)bc(Ol)}function vc(){for(;null!==Ol&&!Xe();)bc(Ol)}function bc(e){var t=xl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?_c(e):Ol=t,Tl.current=null}function _c(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ki(n,t,Al)))return void(Ol=n)}else{if(null!==(n=Qi(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Dl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Dl&&(Dl=5)}function Sc(e,t,n){var r=bt,o=Cl.transition;try{Cl.transition=null,bt=1,function(e,t,n,r){do{kc()}while(null!==Ql);if(0!=(6&Il))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,s),e===Rl&&(Ol=Rl=null,Nl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Kl||(Kl=!0,Rc(tt,(function(){return kc(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=Cl.transition,Cl.transition=null;var i=bt;bt=1;var l=Il;Il|=4,Tl.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=i+o),f!==s||0!==r&&3!==f.nodeType||(c=i+r),3===f.nodeType&&(i+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=i),p===s&&++d===r&&(c=i),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Gi=t;null!==Gi;)if(e=(t=Gi).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Gi=e;else for(;null!==Gi;){t=Gi;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ya(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(a(163))}}catch(e){wc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Gi=e;break}Gi=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Ht=!!eo,to=eo=null,e.current=n,vl(n,e,o),Je(),Il=l,bt=i,Cl.transition=s}else e.current=n;if(Kl&&(Kl=!1,Ql=e,Xl=o),s=e.pendingLanes,0===s&&(Vl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;0!=(1&Xl)&&0!==e.tag&&kc(),s=e.pendingLanes,0!=(1&s)?e===Yl?Jl++:(Jl=0,Yl=e):Jl=0,Wo()}(e,t,n,r)}finally{Cl.transition=o,bt=r}return null}function kc(){if(null!==Ql){var e=_t(Xl),t=Cl.transition,n=bt;try{if(Cl.transition=null,bt=16>e?16:e,null===Ql)var r=!1;else{if(e=Ql,Ql=null,Xl=0,0!=(6&Il))throw Error(a(331));var o=Il;for(Il|=4,Gi=e.current;null!==Gi;){var s=Gi,i=s.child;if(0!=(16&Gi.flags)){var l=s.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Gi=u;null!==Gi;){var d=Gi;switch(d.tag){case 0:case 11:case 15:nl(8,d,s)}var f=d.child;if(null!==f)f.return=d,Gi=f;else for(;null!==Gi;){var p=(d=Gi).sibling,h=d.return;if(al(d),d===u){Gi=null;break}if(null!==p){p.return=h,Gi=p;break}Gi=h}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Gi=s}}if(0!=(2064&s.subtreeFlags)&&null!==i)i.return=s,Gi=i;else e:for(;null!==Gi;){if(0!=(2048&(s=Gi).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Gi=v;break e}Gi=s.return}}var b=e.current;for(Gi=b;null!==Gi;){var _=(i=Gi).child;if(0!=(2064&i.subtreeFlags)&&null!==_)_.return=i,Gi=_;else e:for(i=b;null!==Gi;){if(0!=(2048&(l=Gi).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){wc(l,l.return,e)}if(l===i){Gi=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Gi=S;break e}Gi=l.return}}if(Il=o,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Cl.transition=t}}return!1}function xc(e,t,n){e=Pa(e,t=pi(0,t=ui(n,t),1),1),t=ec(),null!==e&&(yt(e,1,t),rc(e,t))}function wc(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Pa(t,e=hi(t,e=ui(n,e),1),1),e=ec(),null!==t&&(yt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Nl&n)===n&&(4===Dl||3===Dl&&(130023424&Nl)===Nl&&500>Ye()-Ul?fc(e,0):Fl|=n),rc(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Oa(e,t))&&(yt(e,t,n),rc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Ic(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function Rc(e,t){return Ke(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,n,r){return new Oc(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,o,s){var i=2;if(r=e,"function"==typeof e)Ac(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case x:return Pc(n.children,o,s,t);case w:i=8,o|=8;break;case E:return(e=Nc(12,n,t,2|o)).elementType=E,e.lanes=s,e;case R:return(e=Nc(13,n,t,o)).elementType=R,e.lanes=s,e;case O:return(e=Nc(19,n,t,o)).elementType=O,e.lanes=s,e;case M:return Lc(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:i=10;break e;case C:i=9;break e;case I:i=11;break e;case N:i=14;break e;case A:i=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nc(i,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Pc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,a,s,i,l){return e=new zc(e,t,n,i,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aa(a),e}function Uc(e){if(!e)return Io;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Mo(n))return Lo(e,n,t)}return t}function $c(e,t,n,r,o,a,s,i,l){return(e=Bc(n,r,!0,e,0,a,0,i,l)).context=Uc(null),n=e.current,(a=Da(r=ec(),o=tc(n))).callback=null!=t?t:null,Pa(n,a,o),e.current.lanes=o,yt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=ec(),s=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Da(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Pa(o,t,s))&&(nc(e,o,s,a),La(e,o,s)),s}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)bi=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return bi=!1,function(e,t,n){switch(t.tag){case 3:Ri(t),ha();break;case 5:ss(t);break;case 1:Mo(t.type)&&jo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(va,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?ji(e,t,n):(Co(ls,1&ls.current),null!==(e=Hi(e,t,n))?e.sibling:null);Co(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $i(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,wi(e,t,n)}return Hi(e,t,n)}(e,t,n);bi=0!=(131072&e.flags)}else bi=!1,aa&&0!=(1048576&t.flags)&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wi(e,t),e=t.pendingProps;var o=Ao(t,Ro.current);Ea(t,n),o=ws(null,t,r,e,o,n);var s=Es();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(s=!0,jo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Aa(t),o.updater=$a,t.stateNode=o,o._reactInternals=t,Va(t,r,e,n),t=Ii(null,t,r,!0,s,n)):(t.tag=0,aa&&s&&ta(t),_i(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wi(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===N)return 14}return 2}(r),e=ya(r,e),o){case 0:t=Ti(null,t,r,e,n);break e;case 1:t=Ci(null,t,r,e,n);break e;case 11:t=Si(null,t,r,e,n);break e;case 14:t=ki(null,t,r,ya(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ti(e,t,r,o=t.elementType===r?o:ya(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ci(e,t,r,o=t.elementType===r?o:ya(r,o),n);case 3:e:{if(Ri(t),null===e)throw Error(a(387));r=t.pendingProps,o=(s=t.memoizedState).element,Ma(e,t),Fa(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Oi(e,t,r,n,o=ui(Error(a(423)),t));break e}if(r!==o){t=Oi(e,t,r,n,o=ui(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,sa=null,n=Ga(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=Hi(e,t,n);break e}_i(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&ua(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,i=o.children,no(r,o)?i=null:null!==s&&no(r,s)&&(t.flags|=32),Ei(e,t),_i(e,t,i,n),t.child;case 6:return null===e&&ua(t),null;case 13:return ji(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):_i(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Si(e,t,r,o=t.elementType===r?o:ya(r,o),n);case 7:return _i(e,t,t.pendingProps,n),t.child;case 8:case 12:return _i(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Co(va,r._currentValue),r._currentValue=i,null!==s)if(ir(s.value,i)){if(s.children===o.children&&!Oo.current){t=Hi(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){i=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===s.tag){(c=Da(-1,n&-n)).tag=2;var u=s.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),wa(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===s.tag)i=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(i=s.return))throw Error(a(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),wa(i,n,t),i=s.sibling}else i=s.child;if(null!==i)i.return=s;else for(i=s;null!==i;){if(i===t){i=null;break}if(null!==(s=i.sibling)){s.return=i.return,i=s;break}i=i.return}s=i}_i(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=Ta(o)),t.flags|=1,_i(e,t,r,n),t.child;case 14:return o=ya(r=t.type,t.pendingProps),ki(e,t,r,o=ya(r.type,o),n);case 15:return xi(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ya(r,o),Wi(e,t),t.tag=1,Mo(r)?(e=!0,jo(t)):e=!1,Ea(t,n),Ha(t,r,o),Va(t,r,o,n),Ii(null,t,r,!0,e,n);case 19:return $i(e,t,n);case 22:return wi(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){};function Qc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gc(){}function Zc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var s=a;if("function"==typeof o){var i=o;o=function(){var e=Hc(s);i.call(e)}}Wc(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(s);a.call(e)}}var s=$c(t,r,e,0,null,!1,0,"",Gc);return e._reactRootContainer=s,e[mo]=s.current,$r(8===e.nodeType?e.parentNode:e),uc(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var i=r;r=function(){var e=Hc(l);i.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Gc);return e._reactRootContainer=l,e[mo]=l.current,$r(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(s)}Xc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wc(e,t,null,null)},Xc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&jt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Ye()),0==(6&Il)&&($l=Ye()+500,Wo()))}break;case 13:uc((function(){var t=Oa(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Oa(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},xt=function(e){if(13===e.tag){var t=tc(e),n=Oa(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},wt=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(G(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ko(r);if(!o)throw Error(a(90));K(r),G(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[_o,So,ko,Te,Ce,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Jc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,$r(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(a(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Jc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",i=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,o,0,s,i),e[mo]=t.current,$r(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(a(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zc(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},338:(e,t,n)=>{var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(551)},799:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case i:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=i,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||S(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===i},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===i||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_||e.$$typeof===y)},t.typeOf=S},363:(e,t,n)=>{e.exports=n(799)},20:(e,t,n)=>{var r=n(540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:i.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var _=b.prototype=new v;_.constructor=b,m(_,y.prototype),_.isPureReactComponent=!0;var S=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},s=null,i=null;if(null!=t)for(o in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,o)&&!w.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:i,props:a,_owner:x.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,a,s){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var l=!1;if(null===e)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===a?"."+I(l,0):a,S(s)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),R(s,t,o,"",(function(e){return e}))):null!=s&&(T(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+e)),t.push(s)),1;if(l=0,a=""===a?".":a+":",S(e))for(var c=0;c<e.length;c++){var u=a+I(i=e[c],c);l+=R(i,t,o,u,s)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)l+=R(i=i.value,t,o,u=a+I(i,c++),s);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},M={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:x};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,s=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,i=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!w.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:s,props:o,_owner:i}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},540:(e,t,n)=>{e.exports=n(287)},848:(e,t,n)=>{e.exports=n(20)},463:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var i=2*(r+1)-1,l=e[i],c=i+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[i]=n,r=i);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,_(e),!m)if(null!==r(c))m=!0,M(k);else{var t=r(u);null!==t&&D(S,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,v(T),T=-1),h=!0;var a=p;try{for(_(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var s=f.callback;if("function"==typeof s){f.callback=null,p=f.priorityLevel;var i=s(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?f.callback=i:f===r(c)&&o(c),_(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&D(S,d.startTime-n),l=!1}return l}finally{f=null,p=a,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,w=!1,E=null,T=-1,C=5,I=-1;function R(){return!(t.unstable_now()-I<C)}function O(){if(null!==E){var e=t.unstable_now();I=e;var n=!0;try{n=E(!0,e)}finally{n?x():(w=!1,E=null)}}else w=!1}if("function"==typeof b)x=function(){b(O)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=O,x=function(){A.postMessage(null)}}else x=function(){y(O,0)};function M(e){E=e,w||(w=!0,x())}function D(e,n){T=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(k))},t.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:i=a+i,sortIndex:-1},a>s?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(v(T),T=-1):g=!0,D(S,a-s))):(e.sortIndex=i,n(c,e),m||h||(m=!0,M(k))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},982:(e,t,n)=>{e.exports=n(463)},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],i=0;i<e.length;i++){var l=e[i],c=r.base?l[0]+r.base:l[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,r);r.byIndex=i,t.splice(i,0,{identifier:d,updater:h,references:1})}s.push(d)}return s}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var i=n(a[s]);t[i].references--}for(var l=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=l}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},159:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},63:(e,t,n)=>{var r=n(540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return i((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},940:(e,t,n)=>{var r=n(540),o=n(888);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,i=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return i=t}return i=e}if(t=i,a(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(s=e,i=n)}var s,i,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=s(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},888:(e,t,n)=>{e.exports=n(63)},242:(e,t,n)=>{e.exports=n(940)}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e](a,a.exports,o),a.loaded=!0,a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var s={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,o.d(a,s),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",o.nc=void 0,(()=>{var e={};o.r(e),o.d(e,{hasBrowserEnv:()=>Uh,hasStandardBrowserEnv:()=>$h,hasStandardBrowserWebWorkerEnv:()=>Hh});var t=o(848);const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function r(e){return e&&e.Math==Math?e:void 0}const a="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof o.g&&r(o.g)||function(){return this}()||{};function s(){return a}function i(e,t,n){const r=n||a,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const l=["debug","info","warn","error","log","assert","trace"],c={};function u(e){if(!("console"in a))return e();const t=a.console,n={},r=Object.keys(c);r.forEach((e=>{const r=c[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const d=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return n?l.forEach((n=>{t[n]=(...t)=>{e&&u((()=>{a.console[n](`Sentry Logger [${n}]:`,...t)}))}})):l.forEach((e=>{t[e]=()=>{}})),t}(),f=Object.prototype.toString;function p(e){switch(f.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return w(e,Error)}}function h(e,t){return f.call(e)===`[object ${t}]`}function m(e){return h(e,"ErrorEvent")}function g(e){return h(e,"DOMError")}function y(e){return h(e,"String")}function v(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function b(e){return null===e||v(e)||"object"!=typeof e&&"function"!=typeof e}function _(e){return h(e,"Object")}function S(e){return"undefined"!=typeof Event&&w(e,Event)}function k(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function x(e){return"number"==typeof e&&e!=e}function w(e,t){try{return e instanceof t}catch(e){return!1}}function E(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const T=s(),C=80;function I(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let a=0,s=0;const i=" > ",l=i.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||C;for(;n&&a++<r&&(c=R(n,u),!("html"===c||a>1&&s+o.length*l+c.length>=d));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(i)}catch(e){return"<unknown>"}}function R(e,t){const n=e,r=[];let o,a,s,i,l;if(!n||!n.tagName)return"";if(T.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&y(o))for(a=o.split(/\s+/),l=0;l<a.length;l++)r.push(`.${a[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)s=u[l],i=n.getAttribute(s),i&&r.push(`[${s}="${i}"]`);return r.join("")}function O(e){if(!T.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}function N(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function A(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{E(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function M(e,t,n=!1){return!!y(e)&&(h(t,"RegExp")?t.test(e):!!y(t)&&(n?e===t:e.includes(t)))}function D(e,t=[],n=!1){return t.some((t=>M(e,t,n)))}function P(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&j(o,r),e[t]=o}function L(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){n&&d.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function j(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,L(e,"__sentry_original__",t)}catch(e){}}function F(e){return e.__sentry_original__}function z(e){if(p(e))return{message:e.message,name:e.name,stack:e.stack,...U(e)};if(S(e)){const t={type:e.type,target:B(e.target),currentTarget:B(e.currentTarget),...U(e)};return"undefined"!=typeof CustomEvent&&w(e,CustomEvent)&&(t.detail=e.detail),t}return e}function B(e){try{return t=e,"undefined"!=typeof Element&&w(t,Element)?I(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function U(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function $(e){return W(e,new Map)}function W(e,t){if(function(e){if(!_(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=W(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(W(e,t))})),r}return e}function H(){const e=a,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function q(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function V(e){const{message:t,event_id:n}=e;if(t)return t;const r=q(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function K(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Q(e,t){const n=q(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function X(e){if(e&&e.__sentry_captured__)return!0;try{L(e,"__sentry_captured__",!0)}catch(e){}return!1}function J(e){return Array.isArray(e)?e:[e]}const Y="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var G;function Z(e){return new te((t=>{t(e)}))}function ee(e){return new te(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(G||(G={}));class te{constructor(e){te.prototype.__init.call(this),te.prototype.__init2.call(this),te.prototype.__init3.call(this),te.prototype.__init4.call(this),this._state=G.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new te(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new te(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(G.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(G.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===G.PENDING&&(k(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===G.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===G.RESOLVED&&e[1](this._value),this._state===G.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function ne(){return i("globalEventProcessors",(()=>[]))}function re(e){ne().push(e)}function oe(e,t,n,r=0){return new te(((o,a)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const i=s({...t},n);Y&&s.id&&null===i&&d.log(`Event processor "${s.id}" dropped event`),k(i)?i.then((t=>oe(e,t,n,r+1).then(o))).then(null,a):oe(e,i,n,r+1).then(o).then(null,a)}}))}const ae=1e3;function se(){return Date.now()/ae}const ie=function(){const{performance:e}=a;if(!e||!e.now)return se;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/ae}();let le;const ce=(()=>{const{performance:e}=a;if(!e||!e.now)return void(le="none");const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=o<t,i=e.timing&&e.timing.navigationStart,l="number"==typeof i?Math.abs(i+n-r):t;return s||l<t?o<=l?(le="timeOrigin",e.timeOrigin):(le="navigationStart",i):(le="dateNow",r)})(),ue="production";function de(e){const t=ie(),n={sid:H(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return $({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${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}})}(n)};return e&&fe(n,e),n}function fe(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||ie(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:H()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function pe(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),fe(e,n)}const he=50,me=/\(error: (.*)\)/,ge=/captureMessage|captureException/;function ye(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e<o.length;e++){const n=o[e];if(n.length>1024)continue;const a=me.test(n)?n.replace(me,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){r.push(t);break}}if(r.length>=he)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),ge.test(t[t.length-1].function||"")&&(t.pop(),ge.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,he).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}const ve="<anonymous>";function be(e){try{return e&&"function"==typeof e&&e.name||ve}catch(e){return ve}}function _e(e,t=100,n=1/0){try{return ke("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Se(e,t=3,n=102400){const r=_e(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Se(e,t-1,n):r;var o}function ke(e,t,n=1/0,r=1/0,a=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,i]=a;if(null==t||["number","boolean","string"].includes(typeof t)&&!x(t))return t;const l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==o.g&&t===o.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(E(t))return"[VueViewModel]";if(_(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${be(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return l.replace("object ","");if(s(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return ke("",u.toJSON(),c-1,r,a)}catch(e){}const d=Array.isArray(t)?[]:{};let f=0;const p=z(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=ke(e,t,c-1,r,a),f++}return i(t),d}const xe="baggage",we="sentry-",Ee=/^sentry-/,Te=8192;function Ce(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,r],o)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===o?a:`${e},${a}`;return s.length>Te?(n&&d.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${we}${t}`]=n),e)),{}))}function Ie(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const Re=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Oe(e){if(!e)return;const t=e.match(Re);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ne(e,t){const n=Oe(e),r=function(e){if(!y(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=Ie(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=Ie(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ee)&&(e[t.slice(we.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:o,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:o||H(),parentSpanId:a||H().substring(16),spanId:H().substring(16),sampled:s,dsc:r||{}}:{traceId:o||H(),spanId:H().substring(16)}}function Ae(e=H(),t=H().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Me=1;function De(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:s,tags:i,origin:l}=Fe(e);return $({data:r,op:o,parent_span_id:a,span_id:t,status:s,tags:i,trace_id:n,origin:l})}function Pe(e){const{traceId:t,spanId:n}=e.spanContext();return Ae(t,n,ze(e))}function Le(e){return"number"==typeof e?je(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?je(e.getTime()):ie()}function je(e){return e>9999999999?e/1e3:e}function Fe(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function ze(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Me)}function Be(e,t,n,r,o,s){const{normalizeDepth:i=3,normalizeMaxBreadth:l=1e3}=e,c={...t,event_id:t.event_id||n.event_id||H(),timestamp:t.timestamp||se()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:ue);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=N(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=N(s.value,a));const i=e.request;i&&i.url&&(i.url=N(i.url,a))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){const n=a._sentryDebugIds;if(!n)return;let r;const o=Ue.get(t);o?r=o:(r=new Map,Ue.set(t,r));const s=Object.keys(n).reduce(((e,o)=>{let a;const s=r.get(o);s?a=s:(a=t(o),r.set(o,a));for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new it;return n.update(t),n}(r,n.captureContext);n.mechanism&&Q(c,n.mechanism);const f=o&&o.getEventProcessors?o.getEventProcessors():[],p=function(){st||(st=new it);return st}().getScopeData();if(s){ot(p,s.getScopeData())}if(d){ot(p,d.getScopeData())}const h=[...n.attachments||[],...p.attachments];h.length&&(n.attachments=h),rt(c,p);return oe([...f,...ne(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof i&&i>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:_e(e.data,t,n)}})))},...e.user&&{user:_e(e.user,t,n)},...e.contexts&&{contexts:_e(e.contexts,t,n)},...e.extra&&{extra:_e(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=_e(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>{const r=Fe(e).data;return r&&(e.data=_e(r,t,n)),e})));return r}(e,i,l):e)))}const Ue=new WeakMap;function $e(e){if(e)return function(e){return e instanceof it||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>We.includes(e)))}(e)?{captureContext:e}:e}const We=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function He(e,t){return mt().captureException(e,$e(t))}function qe(e,t){return mt().captureEvent(e,t)}function Ve(e,t){mt().addBreadcrumb(e,t)}function Ke(...e){const t=mt();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function Qe(){return mt().getClient()}function Xe(){return mt().getScope()}function Je(e){const t=Qe(),n=gt(),r=Xe(),{release:o,environment:s=ue}=t&&t.getOptions()||{},{userAgent:i}=a.navigator||{},l=de({release:o,environment:s,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&"ok"===c.status&&fe(c,{status:"exited"}),Ye(),n.setSession(l),r.setSession(l),l}function Ye(){const e=gt(),t=Xe(),n=t.getSession()||e.getSession();n&&pe(n),Ge(),e.setSession(),t.setSession()}function Ge(){const e=gt(),t=Xe(),n=Qe(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Ze(e=!1){e?Ye():Ge()}function et(e){return e.transaction}function tt(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=$({environment:r.environment||ue,release:r.release,user_segment:a,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function nt(e){const t=Qe();if(!t)return{};const n=tt(Fe(e).trace_id||"",t,Xe()),r=et(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:a,source:s}=r.metadata;null!=a&&(n.sample_rate=`${a}`);const i=Fe(r);return s&&"url"!==s&&(n.transaction=i.description),n.sampled=String(ze(r)),t.emit&&t.emit("createDsc",n),n}function rt(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:a,level:s,transactionName:i}=t,l=$(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=$(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=$(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=$(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);i&&(e.transaction=i)}(e,t),r&&function(e,t){e.contexts={trace:De(t),...e.contexts};const n=et(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:nt(t),...e.sdkProcessingMetadata};const r=Fe(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){e.fingerprint=e.fingerprint?J(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function ot(e,t){const{extra:n,tags:r,user:o,contexts:a,level:s,sdkProcessingMetadata:i,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:h}=t;at(e,"extra",n),at(e,"tags",r),at(e,"user",o),at(e,"contexts",a),at(e,"sdkProcessingMetadata",i),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function at(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let st;class it{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=lt()}static clone(e){return e?e.clone():new it}clone(){const e=new it;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&fe(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof it){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(_(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=lt(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:se(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:a,_level:s,_fingerprint:i,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:f}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:a,level:s,fingerprint:i||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:f}}applyToEvent(e,t={},n=[]){rt(e,this.getScopeData());return oe([...n,...ne(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:H();if(!this._client)return d.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:H();if(!this._client)return d.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:H();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(d.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function lt(){return{traceId:H(),spanId:H().substring(16)}}const ct="7.103.0",ut=parseFloat(ct),dt=100;class ft{constructor(e,t,n,r=ut){let o,a;this._version=r,t?o=t:(o=new it,o.setClient(e)),n?a=n:(a=new it,a.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return k(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:H(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:H(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:H();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=dt}=r.getOptions&&r.getOptions()||{};if(a<=0)return;const s={timestamp:se(),...e},i=o?u((()=>o(s,t))):s;null!==i&&(r.emit&&r.emit("beforeAddBreadcrumb",i,t),n.addBreadcrumb(i,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=ht(this);try{e(this)}finally{ht(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Y&&d.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(Y&&!n){this.getClient()?d.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):d.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&pe(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=ue}=n&&n.getOptions()||{},{userAgent:s}=a.navigator||{},i=de({release:r,environment:o,user:t.getUser(),...s&&{userAgent:s},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&fe(l,{status:"exited"}),this.endSession(),t.setSession(i),i}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=pt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Y&&d.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function pt(){return a.__SENTRY__=a.__SENTRY__||{extensions:{},hub:void 0},a}function ht(e){const t=pt(),n=bt(t);return _t(t,e),n}function mt(){const e=pt();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return yt(e)}function gt(){return mt().getIsolationScope()}function yt(e=pt()){return vt(e)&&!bt(e).isOlderThan(ut)||_t(e,new ft),bt(e)}function vt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function bt(e){return i("hub",(()=>new ft),e)}function _t(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}const St=[];function kt(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?J(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(o,(e=>"Debug"===e.name));if(-1!==a){const[e]=o.splice(a,1);o.push(e)}return o}function xt(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wt(e,t,n){if(n[t.name])Y&&d.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===St.indexOf(t.name)&&(t.setupOnce(re,mt),St.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Y&&d.log(`Integration installed: ${t.name}`)}}function Et(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}const Tt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ct=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],It="InboundFilters",Rt=(e={})=>({name:It,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Tt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Ct],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return Y&&d.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${V(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));Y&&0===t.length&&d.error(`Could not extract message for event ${V(e)}`);return t}(e).some((e=>D(e,t)))}(e,t.ignoreErrors))return Y&&d.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${V(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&D(n,t)}(e,t.ignoreTransactions))return Y&&d.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${V(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=Ot(e);return!!n&&D(n,t)}(e,t.denyUrls))return Y&&d.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${V(e)}.\nUrl: ${Ot(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=Ot(e);return!n||D(n,t)}(e,t.allowUrls))return Y&&d.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${V(e)}.\nUrl: ${Ot(e)}`),!0;return!1}(t,a)?null:t}});Et(It,Rt);function Ot(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return Y&&d.error(`Cannot extract url for event ${V(e)}`),null}}let Nt;const At="FunctionToString",Mt=new WeakMap,Dt=()=>({name:At,setupOnce(){Nt=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=F(this),n=Mt.has(Qe())&&void 0!==t?t:this;return Nt.apply(n,e)}}catch(e){}},setup(e){Mt.set(e,!0)}});Et(At,Dt);function Pt(e,t){!0===t.debug&&(Y?d.enable():u((()=>{})));Xe().update(t.initialScope);const n=new e(t);!function(e){const t=mt().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const Lt=s();function jt(){if(!("fetch"in Lt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Ft(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const zt=s();const Bt={},Ut={};function $t(e,t){Bt[e]=Bt[e]||[],Bt[e].push(t)}function Wt(e,t){Ut[e]||(t(),Ut[e]=!0)}function Ht(e,t){const r=e&&Bt[e];if(r)for(const o of r)try{o(t)}catch(t){n&&d.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${be(o)}\nError:`,t)}}const qt=a;let Vt;function Kt(e){const t="history";$t(t,e),Wt(t,Qt)}function Qt(){if(!function(){const e=zt.chrome,t=e&&e.app&&e.app.runtime,n="history"in zt&&!!zt.history.pushState&&!!zt.history.replaceState;return!t&&n}())return;const e=qt.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Vt,t=String(n);Vt=t;Ht("history",{from:e,to:t})}return e.apply(this,t)}}qt.onpopstate=function(...t){const n=qt.location.href,r=Vt;Vt=n;if(Ht("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},P(qt.history,"pushState",t),P(qt.history,"replaceState",t)}const Xt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Jt(e,t=!1){const{host:n,path:r,pass:o,port:a,projectId:s,protocol:i,publicKey:l}=e;return`${i}://${l}${t&&o?`:${o}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function Yt(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Gt(e){const t="string"==typeof e?function(e){const t=Xt.exec(e);if(!t)return void u((()=>{}));const[n,r,o="",a,s="",i]=t.slice(1);let l="",c=i;const d=c.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),c=d.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Yt({host:a,pass:o,path:l,projectId:c,port:s,protocol:n,publicKey:r})}(e):Yt(e);if(t&&function(e){if(!n)return!0;const{port:t,projectId:r,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(d.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(d.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(d.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(d.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}function Zt(e,t=[]){return[e,t]}function en(e,t){const[n,r]=e;return[n,[...r,t]]}function tn(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function nn(e,t){return(t||new TextEncoder).encode(e)}function rn(e,t){const[n,r]=e;let o=JSON.stringify(n);function a(e){"string"==typeof o?o="string"==typeof e?o+e:[nn(o,t),e]:o.push("string"==typeof e?nn(e,t):e)}for(const e of r){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(_e(n))}a(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function on(e,t){const n="string"==typeof e.data?nn(e.data,t):e.data;return[$({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const an={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function sn(e){return an[e]}function ln(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function cn(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Jt(r)},...o&&{trace:$({...o})}}}class un extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const dn="7";function fn(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function pn(e,t){return n={sentry_key:e.publicKey,sentry_version:dn,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}function hn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${fn(e)}${e.projectId}/envelope/`}(e)}?${pn(e,r)}`}function mn(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Jt(t));const a=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Zt(o,[a])}const gn="Not capturing exception because it's already been captured.";class yn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Gt(e.dsn):Y&&d.warn("No DSN provided, client will not send events."),this._dsn){const t=hn(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(X(e))return void(Y&&d.log(gn));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const a=v(e)?e:String(e),s=b(e)?this.eventFromMessage(a,t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&X(t.originalException))return void(Y&&d.log(gn));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Y&&d.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),fe(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Z(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Y&&d.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];wt(this,e,this._integrations),t||xt(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=ln(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=cn(e,o,r,t);return delete e.sdkProcessingMetadata,Zt(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=en(n,on(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=ln(n);return Zt({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Jt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Y&&d.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Y&&d.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=mn(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&wt(e,t,n)})),n}(this,e),xt(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(fe(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new te((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=gt()){const o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),Be(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:a,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:a},...e.contexts};const i=s||tt(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:i,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Y){const t=e;"log"===t.logLevel?d.log(t.message):d.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,a=bn(e),s=vn(e),i=e.type||"error",l=`before send for type \`${i}\``;if(s&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),ee(new un(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===i?"replay":i,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new un("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if(vn(t)&&r)return r(t,n);if(bn(t)&&o)return o(t,n);return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(k(e))return e.then((e=>{if(!_(e)&&null!==e)throw new un(n);return e}),(e=>{throw new un(`${t} rejected with ${e}`)}));if(!_(e)&&null!==e)throw new un(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new un(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!a&&o&&this._updateSessionFromEvent(o,r);const s=r.transaction_info;if(a&&s&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...s,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof un)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new un(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Y&&d.error("Error while sending event:",e)}));Y&&d.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function vn(e){return void 0===e.type}function bn(e){return"transaction"===e.type}function _n(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:ct}))),version:ct}),e._metadata=o}var Sn=o(341);const kn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function xn(e,t){const n=En(e,t),r={type:t&&t.name,value:Cn(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wn(e,t){return{exception:{values:[xn(e,t)]}}}function En(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Tn.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const Tn=/Minified React error #\d+;/i;function Cn(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function In(e,t,n,r,o){let a;if(m(t)&&t.error){return wn(e,t.error)}if(g(t)||h(t,"DOMException")){const o=t;if("stack"in t)a=wn(e,t);else{const t=o.name||(g(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;a=Rn(e,s,n,r),K(a,s)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}if(p(t))return wn(e,t);if(_(t)||S(t)){return a=function(e,t,n,r){const o=Qe(),a=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:S(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:On(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Se(t,a)}};if(n){const t=En(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}(e,t,n,o),Q(a,{synthetic:!0}),a}return a=Rn(e,t,n,r),K(a,`${t}`,void 0),Q(a,{synthetic:!0}),a}function Rn(e,t,n,r){const o={};if(r&&n){const r=En(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(v(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function On(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(z(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return N(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:N(r,t)}return""}(e),r=t?"promise rejection":"exception";if(m(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(S(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const Nn=a;let An=0;function Mn(){return An>0}function Dn(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(F(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const o=r.map((e=>Dn(e,t)));return e.apply(this,o)}catch(e){throw An++,setTimeout((()=>{An--})),Ke((n=>{n.addEventProcessor((e=>(t.mechanism&&(K(e,void 0,void 0),Q(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),He(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}j(r,e),L(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class Pn extends yn{constructor(e){_n(e,"browser",["browser"],Nn.SENTRY_SDK_SOURCE||(0,Sn.e)()),super(e),e.sendClientReports&&Nn.document&&Nn.document.addEventListener("visibilitychange",(()=>{"hidden"===Nn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=In(e,t,n&&n.syntheticException||void 0,r);return Q(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),Z(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const a=Rn(e,t,r&&r.syntheticException||void 0,o);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Z(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(kn&&d.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Jt(r)}},a=function(e){return[{type:"user_report"},e]}(e);return Zt(o,[a])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(kn&&d.log("No outcomes to send"));if(!this._dsn)return void(kn&&d.log("No dsn provided, will not send outcomes"));kn&&d.log("Sending outcomes:",e);const t=(n=e,Zt((r=this._options.tunnel&&Jt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||se(),discarded_events:n}]]));var n,r,o;this._sendEnvelope(t)}}function Ln(){"console"in a&&l.forEach((function(e){e in a.console&&P(a.console,e,(function(t){return c[e]=t,function(...t){Ht("console",{args:t,level:e});const n=c[e];n&&n.apply(a.console,t)}}))}))}const jn=a,Fn=1e3;let zn,Bn,Un;function $n(e){$t("dom",e),Wt("dom",Wn)}function Wn(){if(!jn.document)return;const e=Ht.bind(null,"dom"),t=Hn(e,!0);jn.document.addEventListener("click",t,!1),jn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=jn[t]&&jn[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(P(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,a=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){const r=Hn(e);s.handler=r,t.call(this,n,r,o)}s.refCount++}catch(e){}return t.call(this,n,r,o)}})),P(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function Hn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;L(n,"_sentryCaptured",!0),r&&!r._sentryId&&L(r,"_sentryId",H());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Bn)return!1;try{if(!e.target||e.target._sentryId!==Un)return!1}catch(e){}return!0}(n)){e({event:n,name:o,global:t}),Bn=n.type,Un=r?r._sentryId:void 0}clearTimeout(zn),zn=jn.setTimeout((()=>{Un=void 0,Bn=void 0}),Fn)}}const qn=a,Vn="__sentry_xhr_v3__";function Kn(e){$t("xhr",e),Wt("xhr",Qn)}function Qn(){if(!qn.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;P(e,"open",(function(e){return function(...t){const n=Date.now(),r=y(t[0])?t[0].toUpperCase():void 0,o=function(e){if(y(e))return e;try{return e.toString()}catch(e){}return}(t[1]);if(!r||!o)return e.apply(this,t);this[Vn]={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[Vn];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Ht("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?P(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),P(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this[Vn];return o&&y(n)&&y(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),P(e,"send",(function(e){return function(...t){const n=this[Vn];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return Ht("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}function Xn(e){const t="fetch";$t(t,e),Wt(t,Jn)}function Jn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!jt())return!1;if(Ft(Lt.fetch))return!0;let e=!1;const t=Lt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ft(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){n&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&P(a,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Gn(t),method:Yn(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Gn(t),method:Yn(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Ht("fetch",{...o}),e.apply(a,t).then((e=>(Ht("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Ht("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function Yn(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Gn(e){return"string"==typeof e?e:e?Yn(e,"url")?e.url:e.toString?e.toString():"":""}const Zn=["fatal","error","warning","log","info","debug"];function er(e){return"warn"===e?"warning":Zn.includes(e)?e:"log"}function tr(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}}const nr=1024,rr="Breadcrumbs",or=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:rr,setupOnce(){},setup(e){t.console&&function(e){const t="console";$t(t,e),Wt(t,Ln)}(function(e){return function(t){if(Qe()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:er(t.level),message:A(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${A(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Ve(n,{input:t.args,level:t.level})}}(e)),t.dom&&$n(function(e,t){return function(n){if(Qe()!==e)return;let r,o,a="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>nr&&(kn&&d.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=nr),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=I(t,{keyAttrs:a,maxStringLength:s}),o=O(t)}catch(e){r="<unknown>"}if(0===r.length)return;const i={category:`ui.${n.name}`,message:r};o&&(i.data={"ui.component_name":o}),Ve(i,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&Kn(function(e){return function(t){if(Qe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[Vn];if(!n||!r||!o)return;const{method:a,url:s,status_code:i,body:l}=o;Ve({category:"xhr",data:{method:a,url:s,status_code:i},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&Xn(function(e){return function(t){if(Qe()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){Ve({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r})}else{const e=t.response;Ve({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Kt(function(e){return function(t){if(Qe()!==e)return;let n=t.from,r=t.to;const o=tr(Nn.location.href);let a=n?tr(n):void 0;const s=tr(r);a&&a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),Ve({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Qe()===e&&Ve({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:V(t)},{event:t})}}(e))}}};Et(rr,or);const ar="Dedupe",sr=()=>{let e;return{name:ar,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!lr(e,t))return!1;if(!ir(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=cr(t),r=cr(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!lr(e,t))return!1;if(!ir(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return kn&&d.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};Et(ar,sr);function ir(e,t){let n=ur(e),r=ur(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function lr(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function cr(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ur(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}let dr=null;function fr(e){const t="error";$t(t,e),Wt(t,pr)}function pr(){dr=a.onerror,a.onerror=function(e,t,n,r,o){return Ht("error",{column:r,error:o,line:n,msg:e,url:t}),!(!dr||dr.__SENTRY_LOADER__)&&dr.apply(this,arguments)},a.onerror.__SENTRY_INSTRUMENTED__=!0}let hr=null;function mr(e){const t="unhandledrejection";$t(t,e),Wt(t,gr)}function gr(){hr=a.onunhandledrejection,a.onunhandledrejection=function(e){return Ht("unhandledrejection",e),!(hr&&!hr.__SENTRY_LOADER__)||hr.apply(this,arguments)},a.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const yr="GlobalHandlers",vr=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:yr,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){fr((t=>{const{stackParser:n,attachStacktrace:r}=Sr();if(Qe()!==e||Mn())return;const{msg:o,url:a,line:s,column:i,error:l}=t,c=void 0===l&&y(o)?function(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=m(e)?e.message:e,s="Error";const i=a.match(o);i&&(s=i[1],a=i[2]);const l={exception:{values:[{type:s,value:a}]}};return br(l,t,n,r)}(o,a,s,i):br(In(n,l||o,void 0,r,!1),a,s,i);c.level="error",qe(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),_r("onerror")),t.onunhandledrejection&&(!function(e){mr((t=>{const{stackParser:n,attachStacktrace:r}=Sr();if(Qe()!==e||Mn())return;const o=function(e){if(b(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),a=b(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:In(n,o,void 0,r,!0);a.level="error",qe(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),_r("onunhandledrejection"))}}};Et(yr,vr);function br(e,t,n,r){const o=e.exception=e.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},i=s.stacktrace=s.stacktrace||{},l=i.frames=i.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=y(t)&&t.length>0?t:function(){try{return T.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function _r(e){kn&&d.log(`Global Handler attached: ${e}`)}function Sr(){const e=Qe();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const kr="HttpContext",xr=()=>({name:kr,setupOnce(){},preprocessEvent(e){if(!Nn.navigator&&!Nn.location&&!Nn.document)return;const t=e.request&&e.request.url||Nn.location&&Nn.location.href,{referrer:n}=Nn.document||{},{userAgent:r}=Nn.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}});Et(kr,xr);function wr(e,t,n=250,r,o,a,s){if(!(a.exception&&a.exception.values&&s&&w(s.originalException,Error)))return;const i=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var l,c;i&&(a.exception.values=(l=Er(e,t,o,s.originalException,r,a.exception.values,i,0),c=n,l.map((e=>(e.value&&(e.value=N(e.value,c)),e)))))}function Er(e,t,n,r,o,a,s,i){if(a.length>=n+1)return a;let l=[...a];if(w(r[o],Error)){Tr(s,i);const a=e(t,r[o]),c=l.length;Cr(a,o,c,i),l=Er(e,t,n,r[o],o,[a,...l],a,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,a)=>{if(w(r,Error)){Tr(s,i);const c=e(t,r),u=l.length;Cr(c,`errors[${a}]`,u,i),l=Er(e,t,n,r,o,[c,...l],c,u)}})),l}function Tr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Cr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Ir="LinkedErrors",Rr=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:Ir,setupOnce(){},preprocessEvent(e,r,o){const a=o.getOptions();wr(xn,a.stackParser,a.maxValueLength,n,t,e,r)}}},Or=(Et(Ir,Rr),["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"]),Nr="TryCatch",Ar=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Nr,setupOnce(){t.setTimeout&&P(Nn,"setTimeout",Mr),t.setInterval&&P(Nn,"setInterval",Mr),t.requestAnimationFrame&&P(Nn,"requestAnimationFrame",Dr),t.XMLHttpRequest&&"XMLHttpRequest"in Nn&&P(XMLHttpRequest.prototype,"send",Pr);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Or).forEach(Lr)}}}};Et(Nr,Ar);function Mr(e){return function(...t){const n=t[0];return t[0]=Dn(n,{mechanism:{data:{function:be(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Dr(e){return function(t){return e.apply(this,[Dn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:be(e)},handled:!1,type:"instrument"}})])}}function Pr(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&P(n,e,(function(t){const n={mechanism:{data:{function:e,handler:be(t)},handled:!1,type:"instrument"}},r=F(t);return r&&(n.mechanism.data.handler=be(r)),Dn(t,n)}))})),e.apply(this,t)}}function Lr(e){const t=Nn,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(P(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Dn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:be(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Dn(r,{mechanism:{data:{function:"addEventListener",handler:be(r),target:e},handled:!1,type:"instrument"}}),o])}})),P(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}const jr="?";function Fr(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const zr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Br=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ur=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$r=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Wr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hr=ye(...[[30,e=>{const t=zr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Br.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=qr(t[1]||jr,t[2]);return Fr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Ur.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=$r.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||jr;return[n,e]=qr(n,e),Fr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Wr.exec(e);return t?Fr(t[2],t[1]||jr,+t[3],t[4]?+t[4]:void 0):void 0}]]),qr=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:jr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Vr(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return ee(new un("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new te(((n,r)=>{let o=t.length;if(!o)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Z(e).then((()=>{--o||(clearTimeout(a),n(!0))}),r)}))}))}}}const Kr=6e4;function Qr(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Xr(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))o[e]=r+s;else o.all=r+s}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Kr:r-t}(s,r):429===t&&(o.all=r+6e4);return o}const Jr=30;function Yr(e,t,n=Vr(e.bufferSize||Jr)){let r={};function o(o){const a=[];if(tn(o,((t,n)=>{const o=sn(n);if(Qr(r,o)){const r=Gr(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else a.push(t)})),0===a.length)return Z();const s=Zt(o[0],a),i=t=>{tn(s,((n,r)=>{const o=Gr(n,r);e.recordDroppedEvent(t,sn(r),o)}))};return n.add((()=>t({body:rn(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Y&&d.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Xr(r,e),e)),(e=>{throw i("network_error"),e})))).then((e=>e),(e=>{if(e instanceof un)return Y&&d.error("Skipped sending event because buffer is full."),i("queue_overflow"),Z();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Gr(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Zr;function eo(e,t=function(){if(Zr)return Zr;if(Ft(Nn.fetch))return Zr=Nn.fetch.bind(Nn);const e=Nn.document;let t=Nn.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){kn&&d.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Zr=t.bind(Nn)}()){let n=0,r=0;return Yr(e,(function(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then((e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Zr=void 0,n-=a,r--,ee(e)}}))}const to=4;function no(e){return Yr(e,(function(t){return new te(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{o.readyState===to&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const ro=[Rt(),Dt(),Ar(),or(),vr(),Rr(),sr(),xr()];function oo(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...ro]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Nn.SENTRY_RELEASE&&Nn.SENTRY_RELEASE.id&&(e.release=Nn.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Hr,Array.isArray(n)?ye(...n):n),integrations:kt(e),transport:e.transport||(jt()?eo:no)};var n;Pt(Pn,t),e.autoSessionTracking&&function(){if(void 0===Nn.document)return void(kn&&d.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));Je({ignoreDuration:!0}),Ze(),Kt((({from:e,to:t})=>{void 0!==e&&e!==t&&(Je({ignoreDuration:!0}),Ze())}))}()}let ao;function so(e){return ao?ao.get(e):void 0}function io(e){const t=so(e);if(!t)return;const n={};for(const[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push($(r));return n}const lo="sentry.source",co="sentry.sample_rate",uo="sentry.op",fo="sentry.origin";var po;function ho(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(po||(po={}));function mo(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=ho(t);"unknown_error"!==n&&e.setStatus(n)}class go{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class yo{constructor(e={}){this._traceId=e.traceId||H(),this._spanId=e.spanId||H().substring(16),this._startTime=e.startTimestamp||ie(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[fo]:e.origin||"manual",[uo]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[uo]}set op(e){this.setAttribute(uo,e)}get origin(){return this._attributes[fo]}set origin(e){this.setAttribute(fo,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Me:0}}startChild(e){const t=new yo({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=et(this);if(t.transaction=n,Y&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${Fe(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;d.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return mo(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=et(this);if(Y&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&d.log(e.replace("Starting","Finishing"))}this._endTime=Le(e)}toTraceparent(){return Pe(this)}toContext(){return $({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return De(this)}getSpanJSON(){return $({data:this._getData(),description:this._name,op:this._attributes[uo],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[fo],_metrics_summary:io(this)})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}function vo(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Qe(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function bo(e){if(!vo())return;const t=ko(e),n=mt(),r=e.scope?e.scope.getSpan():_o();if(e.onlyIfParent&&!r)return;const o=(e.scope||Xe()).clone();return So(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function _o(){return Xe().getSpan()}function So(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!vo())return;const a=gt();let s;if(t&&!r)s=t.startChild(n);else if(t){const r=nt(t),{traceId:o,spanId:a}=t.spanContext(),i=ze(t);s=e.startTransaction({traceId:o,parentSpanId:a,parentSampled:i,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{const{traceId:t,dsc:r,parentSpanId:i,sampled:l}={...a.getPropagationContext(),...o.getPropagationContext()};s=e.startTransaction({traceId:t,parentSpanId:i,parentSampled:l,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return o.setSpan(s),function(e,t,n){e&&(L(e,wo,n),L(e,xo,t))}(s,o,a),s}function ko(e){if(e.startTime){const t={...e};return t.startTimestamp=Le(e.startTime),delete t.startTime,t}return e}const xo="_sentryScope",wo="_sentryIsolationScope";class Eo extends yo{constructor(e,t){super(e),this._measurements={},this._contexts={},this._hub=t||mt(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[lo]&&{source:this._attributes[lo]},...this._attributes[co]&&{sampleRate:this._attributes[co]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(lo,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new go(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=Le(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){return $({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return nt(this)}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Y&&d.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Y&&d.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&Fe(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>Fe(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:o}={scope:(a=this)[xo],isolationScope:a[wo]};var a;const{metadata:s}=this,{source:i}=s,l={contexts:{...this._contexts,trace:De(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:o,...$({dynamicSamplingContext:nt(this)})},_metrics_summary:io(this),...i&&{transaction_info:{source:i}}};return Object.keys(this._measurements).length>0&&(Y&&d.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),Y&&d.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const To={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Co=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Io extends go{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===Fe(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Ro extends Eo{constructor(e,t,n=To.idleTimeout,r=To.finalTimeout,o=To.heartbeatInterval,a=!1,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Co[4],this._autoFinishAllowed=!s,a&&(Y&&d.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Co[3],this.end())}),this._finalTimeout)}end(e){const t=Le(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Y&&d.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;Fe(e).timestamp||(e.setStatus("cancelled"),e.end(t),Y&&d.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=Fe(e),o=n&&n<t,a=(this._finalTimeout+this._idleTimeout)/1e3,s=r&&n&&r-n<a;if(Y){const t=JSON.stringify(e,void 0,2);o?s||d.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):d.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return o&&s})),Y&&d.log("[Tracing] flushing IdleTransaction")}else Y&&d.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Io(t,n,this.spanContext().spanId,e),Y&&d.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Co[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Y&&d.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Co[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Y&&d.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,Y&&d.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Y&&d.log(`[Tracing] popActivity ${e}`),delete this.activities[e],Y&&d.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=ie();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Co[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Y&&d.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Co[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Y&&d.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function Oo(e){return(e||mt()).getScope().getTransaction()}let No=!1;function Ao(){const e=Oo();if(e){const t="internal_error";Y&&d.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function Mo(e,t,n){if(!vo(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(co,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(co,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(co,Number(r))):(r=1,e.setAttribute(co,r)),function(e){if(x(e)||"number"!=typeof e&&"boolean"!=typeof e)return Y&&d.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return Y&&d.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(Y&&d.log(`[Tracing] starting ${e.op} transaction - ${Fe(e).description}`),e):(Y&&d.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(Y&&d.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Y&&d.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Do(){const e=this.getScope().getSpan();return e?{"sentry-trace":Pe(e)}:{}}function Po(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",a=e.instrumenter||"sentry";o!==a&&(Y&&d.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${o}\` instrumenter.\nThe transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new Eo(e,this);return s=Mo(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Lo(e,t,n,r,o,a,s,i=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let u=new Ro(t,e,n,r,s,o,i);return u=Mo(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),u.isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function jo(){const e=pt();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Po),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Do),No||(No=!0,fr(Ao),mr(Ao)))}Ao.tag="sentry_tracingErrorCallback";const Fo="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,zo=a;const Bo=(e,t,n)=>{let r,o;return a=>{t.value>=0&&(a||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},Uo=()=>zo.__WEB_VITALS_POLYFILL__?zo.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=zo.performance.timing,t=zo.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):zo.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],$o=()=>{const e=Uo();return e&&e.activationStart||0},Wo=(e,t)=>{const n=Uo();let r="navigate";return n&&(r=zo.document.prerendering||$o()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Ho=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},qo=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==zo.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Vo=e=>{const t=Wo("CLS",0);let n,r=0,o=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const a=o[0],s=o[o.length-1];r&&0!==o.length&&e.startTime-s.startTime<1e3&&e.startTime-a.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e]),r>t.value&&(t.value=r,t.entries=o,n&&n())}}))},s=Ho("layout-shift",a);if(s){n=Bo(e,t);const r=()=>{a(s.takeRecords()),n(!0)};return qo(r),r}};let Ko=-1;const Qo=()=>(Ko<0&&(Ko="hidden"!==zo.document.visibilityState||zo.document.prerendering?1/0:0,qo((({timeStamp:e})=>{Ko=e}),!0)),{get firstHiddenTime(){return Ko}}),Xo=e=>{const t=Qo(),n=Wo("FID");let r;const o=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},a=e=>{e.forEach(o)},s=Ho("first-input",a);r=Bo(e,n),s&&qo((()=>{a(s.takeRecords()),s.disconnect()}),!0)},Jo={},Yo=e=>{const t=Qo(),n=Wo("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-$o(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[o],r())}},a=Ho("largest-contentful-paint",o);if(a){r=Bo(e,n);const t=()=>{Jo[n.id]||(o(a.takeRecords()),a.disconnect(),Jo[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),qo(t,!0),t}},Go={},Zo={};let ea,ta,na;function ra(e,t=!1){return ca("lcp",e,la,na,t)}function oa(e,t){return ua(e,t),Zo[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);Ho(e,(t=>{aa(e,{entries:t})}),t)}(e),Zo[e]=!0),da(e,t)}function aa(e,t){const n=Go[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Fo&&d.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${be(r)}\nError:`,t)}}function sa(){return Vo((e=>{aa("cls",{metric:e}),ea=e}))}function ia(){return Xo((e=>{aa("fid",{metric:e}),ta=e}))}function la(){return Yo((e=>{aa("lcp",{metric:e}),na=e}))}function ca(e,t,n,r,o=!1){let a;return ua(e,t),Zo[e]||(a=n(),Zo[e]=!0),r&&t({metric:r}),da(e,t,o?a:void 0)}function ua(e,t){Go[e]=Go[e]||[],Go[e].push(t)}function da(e,t,n){return()=>{n&&n();const r=Go[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function fa(e){return"number"==typeof e&&isFinite(e)}function pa(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const ha=2147483647;function ma(e){return e/1e3}function ga(){return zo&&zo.addEventListener&&zo.performance}let ya,va,ba=0,_a={};function Sa(){const e=ga();if(e&&ce){e.mark&&zo.performance.mark("sentry-tracing-init");const t=ca("fid",(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ma(ce),r=ma(t.startTime);Fo&&d.log("[Measurements] Adding FID"),_a.fid={value:e.value,unit:"millisecond"},_a["mark.fid"]={value:n+r,unit:"second"}}),ia,ta),n=function(e,t=!1){return ca("cls",e,sa,ea,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Fo&&d.log("[Measurements] Adding CLS"),_a.cls={value:e.value,unit:""},va=t)}),!0),r=ra((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Fo&&d.log("[Measurements] Adding LCP"),_a.lcp={value:e.value,unit:"millisecond"},ya=t)}),!0);return()=>{t(),n(),r()}}return()=>{}}function ka(e){const t=ga();if(!t||!zo.performance.getEntries||!ce)return;Fo&&d.log("[Tracing] Adding & adjusting spans using Performance API");const n=ma(ce),r=t.getEntries();let o,a;const{op:s,start_timestamp:i}=Fe(e);if(r.slice(ba).forEach((t=>{const r=ma(t.startTime),s=ma(t.duration);if(!("navigation"===e.op&&i&&n+r<i))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{xa(e,t,r,n)})),xa(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),xa(e,t,"fetch",n,"cache","domainLookupStart"),xa(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(pa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ma(t.requestStart),endTimestamp:n+ma(t.responseEnd)}),pa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ma(t.responseStart),endTimestamp:n+ma(t.responseEnd)}))}(e,t,n)}(e,t,n),o=n+ma(t.responseStart),a=n+ma(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const a=o+n,s=a+r;pa(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,r,s,n);const o=Qo(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(Fo&&d.log("[Measurements] Adding FP"),_a.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(Fo&&d.log("[Measurements] Adding FCP"),_a.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const s=tr(n),i={};wa(i,t,"transferSize","http.response_transfer_size"),wa(i,t,"encodedBodySize","http.response_content_length"),wa(i,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(i["resource.render_blocking_status"]=t.renderBlockingStatus);s.protocol&&(i["url.scheme"]=s.protocol.split(":").pop());s.host&&(i["server.address"]=s.host);i["url.same_origin"]=n.includes(zo.location.origin);const l=a+r,c=l+o;pa(e,{description:n.replace(zo.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:i})}(e,t,t.name,r,s,n)}})),ba=Math.max(r.length-1,0),function(e){const t=zo.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),fa(n.rtt)&&(_a["connection.rtt"]={value:n.rtt,unit:"millisecond"}));fa(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);fa(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e,t,n,r){"number"==typeof t&&r&&(Fo&&d.log("[Measurements] Adding TTFB"),e.ttfb={value:1e3*Math.max(t-r,0),unit:"millisecond"},"number"==typeof n&&n<=t&&(e["ttfb.requestTime"]={value:1e3*(t-n),unit:"millisecond"}))}(_a,o,a,i),["fcp","fp","lcp"].forEach((e=>{if(!_a[e]||!i||n>=i)return;const t=_a[e].value,r=n+ma(t),o=Math.abs(1e3*(r-i)),a=o-t;Fo&&d.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${a})`),_a[e].value=o}));const t=_a["mark.fid"];t&&_a.fid&&(pa(e,{description:"first input delay",endTimestamp:t.value+ma(_a.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete _a["mark.fid"]),"fcp"in _a||delete _a.cls,Object.keys(_a).forEach((e=>{!function(e,t,n){const r=Oo();r&&r.setMeasurement(e,t,n)}(e,_a[e].value,_a[e].unit)})),function(e){ya&&(Fo&&d.log("[Measurements] Adding LCP Data"),ya.element&&e.setTag("lcp.element",I(ya.element)),ya.id&&e.setTag("lcp.id",ya.id),ya.url&&e.setTag("lcp.url",ya.url.trim().slice(0,200)),e.setTag("lcp.size",ya.size));va&&va.sources&&(Fo&&d.log("[Measurements] Adding CLS Data"),va.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,I(t.node)))))}(e)}ya=void 0,va=void 0,_a={}}function xa(e,t,n,r,o,a){const s=a?t[a]:t[`${n}End`],i=t[`${n}Start`];i&&s&&pa(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+ma(i),endTimestamp:r+ma(s)})}function wa(e,t,n,r){const o=t[n];null!=o&&o<ha&&(e[r]=o)}function Ea(e,t,n,r,o="auto.http.browser"){if(!vo()||!e.fetchData)return;const a=t(e.fetchData.url);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=r[t];if(n){if(e.response){mo(n,e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){const e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete r[t]}return}const s=Xe(),i=Qe(),{method:l,url:c}=e.fetchData,u=a?bo({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,[fo]:o},op:"http.client"}):void 0;if(u&&(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u),n(e.fetchData.url)&&i){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const a=o||n.getSpan(),s=gt(),{traceId:i,spanId:l,sampled:c,dsc:u}={...s.getPropagationContext(),...n.getPropagationContext()},d=a?Pe(a):Ae(i,l,c),f=Ce(u||(a?nt(a):tt(i,t,n))),p=r.headers||("undefined"!=typeof Request&&w(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&w(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",d),f&&e.append(xe,f),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",d]];return f&&e.push([xe,f]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),f&&t.push(f),{...p,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:f}}(t,i,s,n,u)}return u}const Ta=["localhost",/^\/(?!\/)/],Ca={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Ta,tracePropagationTargets:Ta};function Ia(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:Ca.traceFetch,traceXHR:Ca.traceXHR,...e},i="function"==typeof a?a:e=>!0,l=e=>function(e,t){return D(e,t||Ta)}(e,r||o),c={};t&&Xn((e=>{const t=Ea(e,i,l,c);s&&t&&Ra(t)})),n&&Kn((e=>{const t=function(e,t,n,r){const o=e.xhr,a=o&&o[Vn];if(!vo()||!o||o.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==a.status_code&&(mo(t,a.status_code),t.end(),delete r[e]))}const i=Xe(),l=gt(),c=s?bo({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[fo]:"auto.http.browser"},op:"http.client"}):void 0;c&&(o.__sentry_xhr_span_id__=c.spanContext().spanId,r[o.__sentry_xhr_span_id__]=c);const u=Qe();if(o.setRequestHeader&&n(a.url)&&u){const{traceId:e,spanId:t,sampled:n,dsc:r}={...l.getPropagationContext(),...i.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(xe,n)}catch(e){}}(o,c?Pe(c):Ae(e,t,n),Ce(r||(c?nt(c):tt(e,u,i))))}return c}(e,i,l,c);s&&t&&Ra(t)}))}function Ra(e){const{url:t}=Fe(e).data||{};if(!t||"string"!=typeof t)return;const n=oa("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!ce)return r;return[...r,["http.request.redirect_start",Oa(e.redirectStart)],["http.request.fetch_start",Oa(e.fetchStart)],["http.request.domain_lookup_start",Oa(e.domainLookupStart)],["http.request.domain_lookup_end",Oa(e.domainLookupEnd)],["http.request.connect_start",Oa(e.connectStart)],["http.request.secure_connection_start",Oa(e.secureConnectionStart)],["http.request.connection_end",Oa(e.connectEnd)],["http.request.request_start",Oa(e.requestStart)],["http.request.response_start",Oa(e.responseStart)],["http.request.response_end",Oa(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function Oa(e=0){return((ce||performance.timeOrigin)+e)/1e3}const Na={...To,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...Ca},Aa=(e={})=>{const t=!!Fo&&!(!e.tracePropagationTargets&&!e.tracingOrigins);jo(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...Na,...e},r=Sa();n.enableLongTask&&oa("longtask",(({entries:e})=>{for(const t of e){const e=Oo();if(!e)return;const n=ma(ce+t.startTime),r=ma(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),n._experiments.enableInteractions&&oa("event",(({entries:e})=>{for(const t of e){const e=Oo();if(!e)return;if("click"===t.name){const n=ma(ce+t.startTime),r=ma(t.duration),o={description:I(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},a=O(t.target);a&&(o.attributes={"ui.component_name":a}),e.startChild(o)}}}));const o={name:void 0,source:void 0};function a(e){const t=mt(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:i,heartbeatInterval:l}=n,c="pageload"===e.op;let u;if(c){const t=c?Pa("sentry-trace"):"",n=c?Pa("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:a,sampled:s}=Ne(t,n);u={traceId:r,parentSpanId:a,parentSampled:s,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else u={trimEnd:!0,...e};const f=a?a(u):u;f.metadata=f.name!==u.name?{...f.metadata,source:"custom"}:f.metadata,o.name=f.name,o.source=function(e){const t=e.attributes&&e.attributes[lo],n=e.data&&e.data[lo],r=e.metadata&&e.metadata.source;return t||n||r}(f),!1===f.sampled&&Fo&&d.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),Fo&&d.log(`[Tracing] Starting ${f.op} transaction on scope`);const{location:p}=zo,h=Lo(t,f,s,i,!0,{location:p},l,c);return c&&zo.document&&(zo.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(zo.document.readyState)&&h.sendAutoFinishSignal()})),["interactive","complete"].includes(zo.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback((e=>{r(),ka(e)})),h}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:s,traceFetch:i,traceXHR:l,shouldCreateSpanForRequest:c,enableHTTPTimings:u,_experiments:f}=n,p=r&&r.tracePropagationTargets,h=p||n.tracePropagationTargets;let m;Fo&&t&&p&&d.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let g=zo.location&&zo.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{m&&(Fo&&d.log(`[Tracing] Finishing current transaction with op: ${Fe(m).op}`),m.end()),m=a({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{m&&(Fo&&d.log(`[Tracing] Finishing current transaction with op: ${Fe(m).op}`),m.end()),m=a({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit&&zo.location){const t={name:zo.location.pathname,startTimestamp:ce?ce/1e3:void 0,origin:"auto.pageload.browser",attributes:{[lo]:"url"}};Ma(e,t)}n.instrumentNavigation&&e.emit&&zo.location&&Kt((({to:t,from:n})=>{if(void 0===n&&g&&-1!==g.indexOf(t))g=void 0;else if(n!==t){g=void 0;const t={name:zo.location.pathname,origin:"auto.navigation.browser",attributes:{[lo]:"url"}};Da(e,t)}})),s&&(zo&&zo.document?zo.document.addEventListener("visibilitychange",(()=>{const e=Oo();if(zo.document.hidden&&e){const t="cancelled",{op:n,status:r}=Fe(e);Fo&&d.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):Fo&&d.warn("[Tracing] Could not set up background tab detection due to lack of global document")),f.enableInteractions&&function(e,t){let n;const r=()=>{const{idleTimeout:r,finalTimeout:o,heartbeatInterval:a}=e,s="ui.action.click",i=Oo();if(i&&i.op&&["navigation","pageload"].includes(i.op))return void(Fo&&d.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name)return void(Fo&&d.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const{location:l}=zo,c={name:t.name,op:s,trimEnd:!0,data:{[lo]:t.source||"url"}};n=Lo(mt(),c,r,o,!0,{location:l},a)};["click"].forEach((e=>{addEventListener(e,r,{once:!1,capture:!0})}))}(n,o),Ia({traceFetch:i,traceXHR:l,tracePropagationTargets:h,shouldCreateSpanForRequest:c,enableHTTPTimings:u})},options:n}};function Ma(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=_o();return"pageload"===(n&&Fe(n).op)?n:void 0}function Da(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=_o();return"navigation"===(n&&Fe(n).op)?n:void 0}function Pa(e){const t=(n=`meta[name=${e}]`,T.document&&T.document.querySelector?T.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}o(146);var La=o(540),ja=o.t(La,2);let Fa,za,Ba,Ua,$a,Wa,Ha,qa=!1;function Va(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function Ka(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return Qa(e)===Qa(t)}(e,o)}function Qa(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var Xa=o(284);function Ja(){return"undefined"!=typeof window&&(!(0,Xa.wD)()||void 0!==a.process&&"renderer"===a.process.type)}const Ya=a,Ga="sentryReplaySession",Za="replay_event",es="Unable to send Replay",ts=15e4,ns=5e3,rs=2e7,os=36e5;function as(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}var ss;function is(e){const t=as([e,"optionalAccess",e=>e.host]);return Boolean(as([t,"optionalAccess",e=>e.shadowRoot])===e)}function ls(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function cs(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,us).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function us(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=cs(e.styleSheet)||function(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(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(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"}(ss||(ss={}));class ds{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=as([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return r=()=>-1,null!=(n=t)?n:r();var n,r}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function fs({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function ps({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function hs(e){return e.toLowerCase()}function ms(e){return e.toUpperCase()}const gs="__rrweb_original__";function ys(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?hs(t):null}function vs(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let bs=1;const _s=new RegExp("[^a-z0-9-_:]"),Ss=-2;function ks(){return bs++}let xs,ws;const Es=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ts=/^(?:[a-z+]+:)?\/\//i,Cs=/^www\..*/i,Is=/^(data:)([^,]*),(.*)/i;function Rs(e,t){return(e||"").replace(Es,((e,n,r,o,a,s)=>{const i=r||a||s,l=n||o||"";if(!i)return e;if(Ts.test(i)||Cs.test(i))return`url(${l}${i}${l})`;if(Is.test(i))return`url(${l}${i}${l})`;if("/"===i[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+i}${l})`;const c=t.split("/"),u=i.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const Os=/^[^ \t\n\r\u000c]+/,Ns=/^[, \t\n\r\u000c]+/;function As(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function Ms(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Ds(){const e=document.createElement("a");return e.href="",e.href}function Ps(e,t,n,r,o,a){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?As(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(Ns),!(n>=t.length);){let a=r(Os);if(","===a.slice(-1))a=As(e,a.substring(0,a.length-1)),o.push(a);else{let r="";a=As(e,a);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((a+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((a+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Rs(r,Ds()):"object"===t&&"data"===n?As(e,r):"function"==typeof a?a(n,r,o):r:As(e,r):r}function Ls(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function js(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:js(e.parentNode,t,n,r+1):-1}function Fs(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function zs(e,t,n,r,o,a){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let i=-1,l=-1;if(a){if(l=js(s,Fs(r,o)),l<0)return!0;i=js(s,Fs(t,n),l>=0?l:1/0)}else{if(i=js(s,Fs(t,n)),i<0)return!1;l=js(s,Fs(r,o),i>=0?i:1/0)}return i>=0?!(l>=0)||i<=l:!(l>=0)&&!!a}catch(e){}return!!a}function Bs(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:i,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S=!1}=t,k=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ss.Document,childNodes:[],compatMode:e.compatMode}:{type:ss.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ss.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:a,inlineStylesheet:s,maskInputOptions:i={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,a),k=function(e){if(e instanceof HTMLFormElement)return"form";const t=hs(e.tagName);return _s.test(t)?"div":t}(e);let x={};const w=e.attributes.length;for(let t=0;t<w;t++){const r=e.attributes[t];r.name&&!Ls(k,r.name,r.value)&&(x[r.name]=Ps(n,k,hs(r.name),r.value,e,l))}if("link"===k&&s){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=cs(t)),r&&(delete x.rel,delete x.href,x._cssText=Rs(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=cs(e.sheet);t&&(x._cssText=Rs(t,Ds()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=ys(t),r=vs(t,ms(k),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=zs(t,y,b,v,_,fs({type:n,tagName:ms(k),maskInputOptions:i}));x.value=ps({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(x.checked=o)}"option"===k&&(e.selected&&!i.select?x.selected=!0:delete x.selected);if("canvas"===k&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,a=gs in o?o[gs]:o;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&d){xs||(xs=n.createElement("canvas"),ws=xs.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{xs.width=t.naturalWidth,xs.height=t.naturalHeight,ws.drawImage(t,0,0),x.rr_dataURL=xs.toDataURL(u.type,u.quality)}catch(e){}r?x.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}"audio"!==k&&"video"!==k||(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||p(x.src)||(e.contentDocument||(x.rr_src=x.src),delete x.src);let E;try{customElements.get(k)&&(E=!0)}catch(e){}return{type:ss.Element,tagName:k,attributes:x,childNodes:[],isSVG:Ms(e)||void 0,needBlock:S,rootId:m,isCustom:E}}(e,{doc:n,blockClass:o,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:S,rootId:k,maskAllText:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:i,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||as([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(f=cs(e.parentNode.sheet))}catch(e){}f=Rs(f,Ds())}h&&(f="SCRIPT_PLACEHOLDER");const g=zs(e,r,a,o,s,n);p||h||m||!f||!g||(f=i?i(f):f.replace(/[\S]/g,"*"));m&&f&&(l.textarea||g)&&(f=c?c(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){f=ps({isMasked:zs(e,r,a,o,s,fs({type:null,tagName:d,maskInputOptions:l})),element:e,value:f,maskInputFn:c})}return{type:ss.Text,textContent:f||"",isStyle:p,rootId:u}}(e,{maskAllText:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:ss.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:ss.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function Us(e){return null==e?"":e.toLowerCase()}function $s(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:i,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:w=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:R=!0}=t;const O=Bs(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:i,unblockSelector:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:I});if(!O)return null;let N;N=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===ss.Comment)return!0;if(e.type===ss.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Us(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Us(e.attributes.name)||"icon"===Us(e.attributes.rel)||"apple-touch-icon"===Us(e.attributes.rel)||"shortcut icon"===Us(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Us(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Us(e.attributes.property).match(/^(og|twitter|fb):/)||Us(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Us(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Us(e.attributes.name)||"googlebot"===Us(e.attributes.name)||"bingbot"===Us(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Us(e.attributes.name)||"generator"===Us(e.attributes.name)||"framework"===Us(e.attributes.name)||"publisher"===Us(e.attributes.name)||"progid"===Us(e.attributes.name)||Us(e.attributes.property).match(/^article:/)||Us(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Us(e.attributes.name)||"yandex-verification"===Us(e.attributes.name)||"csrf-token"===Us(e.attributes.name)||"p:domain_verify"===Us(e.attributes.name)||"verify-v1"===Us(e.attributes.name)||"verification"===Us(e.attributes.name)||"shopify-checkout-api-token"===Us(e.attributes.name)))return!0}}return!1}(O,v)&&(R||O.type!==ss.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?ks():Ss;const A=Object.assign(O,{id:N});if(r.add(e,A),N===Ss)return null;k&&k(e);let M=!f;if(A.type===ss.Element){M=M&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&ls(t)&&(A.isShadowHost=!0)}if((A.type===ss.Document||A.type===ss.Element)&&M){v.headWhitespace&&A.type===ss.Element&&"head"===A.tagName&&(R=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:a,maskAllText:i,unblockSelector:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=$s(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=$s(n,t);r&&(ls(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&is(e.parentNode)&&ls(e.parentNode)&&(A.isShadow=!0),A.type===ss.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,a=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{a||(t(),a=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),a=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&x){const n=$s(t,{doc:t,mirror:r,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:i,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C});n&&x(e,n)}}),w),A.type===ss.Element&&"link"===A.tagName&&"stylesheet"===A.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const a=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(a),o=!0,t()}))}(e,(()=>{if(E){const t=$s(e,{doc:n,mirror:r,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:i,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:S,preserveWhiteSpace:R,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:C});t&&E(e,t)}}),T),A}function Ws(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function Hs(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let qs={map:{},getId:()=>-1,getNode:()=>null,removeNodeFromMap(){},has:()=>!1,reset(){}};function Vs(e,t,n={}){let r=null,o=0;return function(...a){const s=Date.now();o||!1!==n.leading||(o=s);const i=t-(s-o),l=this;i<=0||i>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(l,a)):r||!1===n.trailing||(r=setTimeout((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,a)}),i))}}function Ks(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Ks(e,t,a||{},!0)}function Qs(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(qs=new Proxy(qs,{get:(e,t,n)=>Reflect.get(e,t,n)}));let Xs,Js=Date.now;function Ys(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:Ws([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||Ws([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||Ws([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:Ws([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||Ws([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||Ws([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Gs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ei(e,t,n,r,o){if(!e)return!1;const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!a)return!1;const s=Fs(t,n);if(!o){const e=r&&a.matches(r);return s(a)&&!e}const i=js(a,s);let l=-1;return!(i<0)&&(r&&(l=js(a,Fs(null,r))),i>-1&&l<0||i<l)}function ti(e,t){return t.getId(e)===Ss}function ni(e,t){if(is(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ni(e.parentNode,t))}function ri(e){return Boolean(e.changedTouches)}function oi(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ai(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function si(e){return Boolean(Ws([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Js=()=>(new Date).getTime());class ii{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function li(e){let t=null;return Ws([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ci(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=li(n);)n=t;return n}(e);return t.contains(n)}function ui(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||ci(e))}function di(...e){return function(){if(Xs)return Xs;const e=window.document;let t=window.requestAnimationFrame;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch(e){}return Xs=t.bind(window)}()(...e)}var fi=(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))(fi||{}),pi=(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))(pi||{}),hi=(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))(hi||{}),mi=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(mi||{});function gi(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}function yi(e){return"__ln"in e}class vi{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=gi([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&yi(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&yi(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const bi=(e,t)=>`${e}@${t}`;class _i{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new vi,r=e=>{let t=e,n=Ss;for(;n===Ss;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!ui(o))return;const a=is(o.parentNode)?this.mirror.getId(li(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===a||-1===s)return n.addNode(o);const i=$s(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{oi(e,this.mirror)&&this.iframeManager.addIframe(e),ai(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),si(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});i&&(e.push({parentId:a,nextId:s,node:i}),t.add(i.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)ki(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)wi(this.droppedSet,e)||ki(this.removes,e,this.mirror)?wi(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let a=null;for(;n.length;){let e=null;if(a){const t=this.mirror.getId(a.value.parentNode),n=r(a.value);-1!==t&&-1!==n&&(e=a)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(ti(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;ei(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:zs(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,o=e.target.getAttribute(r);if("value"===r){const t=ys(n),r=n.tagName;o=vs(n,r,t);const a=fs({maskInputOptions:this.maskInputOptions,tagName:r,type:t});o=ps({isMasked:zs(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:n,value:o,maskInputFn:this.maskInputFn})}if(ei(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===e.oldValue)return;let a=this.attributes.find((t=>t.node===e.target));if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(o)){if(n.contentDocument)return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!Ls(n.tagName,r)&&(a.attributes[r]=Ps(this.doc,hs(n.tagName),hs(r),o,n,this.maskAttributeFn),"style"===r)){const r=t.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),o=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||o!==r.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?t:[t,o]:a._unchangedStyles[e]=[t,o]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(ei(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=is(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ei(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ti(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Si(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||ni(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[bi(n,r)]?Si(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!is(e.target)||!ls(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ti(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[bi(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ei(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),si(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Si(e,t){e.delete(t),t.childNodes.forEach((t=>Si(e,t)))}function ki(e,t,n){return 0!==e.length&&xi(e,t,n)}function xi(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||xi(e,r,n)}function wi(e,t){return 0!==e.size&&Ei(e,t)}function Ei(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Ei(e,n))}let Ti;function Ci(e){Ti=e}function Ii(){Ti=void 0}const Ri=e=>{if(!Ti)return e;return(...t)=>{try{return e(...t)}catch(e){if(Ti&&!0===Ti(e))return()=>{};throw e}}};function Oi(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}const Ni=[];function Ai(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(e){}return e&&e.target}function Mi(e,t){const n=new _i;Ni.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=Oi([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const a=new r(Ri((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Di({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const i=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[];let c=null;return Object.keys(hi).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==i[e])).forEach((s=>{let i=hs(s);const u=(t=>s=>{const i=Ai(s);if(ei(i,r,o,a,!0))return;let l=null,u=t;if("pointerType"in s){switch(s.pointerType){case"mouse":l=mi.Mouse;break;case"touch":l=mi.Touch;break;case"pen":l=mi.Pen}l===mi.Touch?hi[t]===hi.MouseDown?u="TouchStart":hi[t]===hi.MouseUp&&(u="TouchEnd"):mi.Pen}else ri(s)&&(l=mi.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===mi.Touch||u.startsWith("Mouse")&&l===mi.Mouse)&&(l=null)):hi[t]===hi.Click&&(l=c,c=null);const d=ri(s)?s.changedTouches[0]:s;if(!d)return;const f=n.getId(i),{clientX:p,clientY:h}=d;Ri(e)({type:hi[u],id:f,x:p,y:h,...null!==l&&{pointerType:l}})})(s);if(window.PointerEvent)switch(hi[s]){case hi.MouseDown:case hi.MouseUp:i=i.replace("mouse","pointer");break;case hi.TouchStart:case hi.TouchEnd:return}l.push(Hs(i,u,t))})),Ri((()=>{l.forEach((e=>e()))}))}function Pi({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,sampling:s}){return Hs("scroll",Ri(Vs(Ri((s=>{const i=Ai(s);if(!i||ei(i,r,o,a,!0))return;const l=n.getId(i);if(i===t&&t.defaultView){const n=Ys(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:i.scrollLeft,y:i.scrollTop})})),s.scroll||100)),t)}const Li=["INPUT","TEXTAREA","SELECT"],ji=new WeakMap;function Fi({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Ai(e);const u=e.isTrusted,g=n&&ms(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Li.indexOf(g)<0||ei(n,r,o,a,!0))return;const v=n;if(v.classList.contains(s)||i&&v.matches(i))return;const b=ys(n);let _=vs(v,g,b),S=!1;const k=fs({maskInputOptions:l,tagName:g,type:b}),x=zs(n,f,h,p,m,k);"radio"!==b&&"checkbox"!==b||(S=n.checked),_=ps({isMasked:x,element:n,value:_,maskInputFn:c}),y(n,d?{text:_,isChecked:S,userTriggered:u}:{text:_,isChecked:S});const w=n.name;"radio"===b&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach((e=>{if(e!==n){const t=ps({isMasked:x,element:e,value:vs(e,g,b),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,r){const o=ji.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){ji.set(t,r);const o=n.getId(t);Ri(e)({...r,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>Hs(e,Ri(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...S.map((e=>Ks(e[0],e[1],{set(){Ri(g)({target:this,isTrusted:!1})}},!1,b)))),Ri((()=>{v.forEach((e=>e()))}))}function zi(e){return function(e,t){if(Wi("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Wi("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Wi("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Wi("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Bi(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Ui({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?Oi([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Oi([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=Oi([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Oi([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&a?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Oi([a,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Oi([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Ri((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))):()=>{}}function $i(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=Mi(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,i=[];const l=Vs(Ri((t=>{const n=Date.now()-s;e(i.map((e=>(e.timeOffset-=n,e))),t),i=[],s=null})),a),c=Ri(Vs(Ri((e=>{const t=Ai(e),{clientX:n,clientY:o}=ri(e)?e.changedTouches[0]:e;s||(s=Js()),i.push({x:n,y:o,id:r.getId(t),timeOffset:Js()-s}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?pi.Drag:e instanceof MouseEvent?pi.MouseMove:pi.TouchMove)})),o,{trailing:!1})),u=[Hs("mousemove",c,n),Hs("touchmove",c,n),Hs("drag",c,n)];return Ri((()=>{u.forEach((e=>e()))}))}(e),a=Di(e),s=Pi(e),i=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Hs("resize",Ri(Vs(Ri((()=>{const t=Gs(),o=Zs();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),l=Fi(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:a,doc:s}){const i=Ri((s=>Vs(Ri((a=>{const i=Ai(a);if(!i||ei(i,t,n,r,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=i;e({type:s,id:o.getId(i),currentTime:l,volume:c,muted:u,playbackRate:d})})),a.media||500))),l=[Hs("play",i(0),s),Hs("pause",i(1),s),Hs("seeked",i(2),s),Hs("volumechange",i(3),s),Hs("ratechange",i(4),s)];return Ri((()=>{l.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ri(((r,o,a)=>{const[s,i]=a,{id:l,styleId:c}=Bi(o,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:i}]}),r.apply(o,a)}))});const a=r.CSSStyleSheet.prototype.deleteRule;let s,i;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Ri(((r,o,a)=>{const[s]=a,{id:i,styleId:l}=Bi(o,t,n.styleMirror);return(i&&-1!==i||l&&-1!==l)&&e({id:i,styleId:l,removes:[{index:s}]}),r.apply(o,a)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ri(((r,o,a)=>{const[s]=a,{id:i,styleId:l}=Bi(o,t,n.styleMirror);return(i&&-1!==i||l&&-1!==l)&&e({id:i,styleId:l,replace:s}),r.apply(o,a)}))})),r.CSSStyleSheet.prototype.replaceSync&&(i=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:Ri(((r,o,a)=>{const[s]=a,{id:i,styleId:l}=Bi(o,t,n.styleMirror);return(i&&-1!==i||l&&-1!==l)&&e({id:i,styleId:l,replaceSync:s}),r.apply(o,a)}))}));const l={};Hi("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Hi("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Hi("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Hi("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Ri(((r,o,a)=>{const[s,i]=a,{id:l,styleId:c}=Bi(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:s,index:[...zi(o),i||0]}]}),r.apply(o,a)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Ri(((r,o,a)=>{const[s]=a,{id:i,styleId:l}=Bi(o.parentStyleSheet,t,n.styleMirror);return(i&&-1!==i||l&&-1!==l)&&e({id:i,styleId:l,removes:[{index:[...zi(o),s]}]}),r.apply(o,a)}))})})),Ri((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=a,s&&(r.CSSStyleSheet.prototype.replace=s),i&&(r.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:n}),d=Ui(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Ri(((o,s,i)=>{const[l,c,u]=i;if(n.has(l))return a.apply(s,[l,c,u]);const{id:d,styleId:f}=Bi(Oi([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:l,value:c,priority:u},index:zi(s.parentRule)}),o.apply(s,i)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ri(((o,a,i)=>{const[l]=i;if(n.has(l))return s.apply(a,[l]);const{id:c,styleId:u}=Bi(Oi([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:zi(a.parentRule)}),o.apply(a,i)}))}),Ri((()=>{o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){const r=new a(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=Qs(t.fonts,"add",(function(t){return function(n){return setTimeout(Ri((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=a})),r.push(s),Ri((()=>{r.forEach((e=>e()))}))}(e):()=>{},h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,selectionCb:s}=e;let i=!0;const l=Ri((()=>{const e=t.getSelection();if(!e||i&&Oi([e,"optionalAccess",e=>e.isCollapsed]))return;i=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){const s=e.getRangeAt(t),{startContainer:i,startOffset:c,endContainer:u,endOffset:d}=s;ei(i,r,o,a,!0)||ei(u,r,o,a,!0)||l.push({start:n.getId(i),startOffset:c,end:n.getId(u),endOffset:d})}s({ranges:l})}));return l(),Hs("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const r=Qs(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}}));return r}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ri((()=>{Ni.forEach((e=>e.reset())),r.disconnect(),o(),a(),s(),i(),l(),c(),u(),d(),f(),p(),h(),m(),g.forEach((e=>e()))}))}function Wi(e){return void 0!==window[e]}function Hi(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class qi{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),a.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function Vi(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],a=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=a(n)):"call"!==o&&"optionalCall"!==o||(n=a(((...e)=>n.call(t,...e))),t=void 0)}return n}class Ki{constructor(){this.crossOriginIframeMirror=new qi(ks),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Qi{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new qi(ks),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new qi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Vi([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case fi.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:fi.IncrementalSnapshot,data:{source:pi.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case fi.Meta:case fi.Load:case fi.DomContentLoaded:return!1;case fi.Plugin:return t;case fi.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case fi.IncrementalSnapshot:switch(t.data.source){case pi.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case pi.Drag:case pi.TouchMove:case pi.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case pi.ViewportResize:return!1;case pi.MediaInteraction:case pi.MouseInteraction:case pi.Scroll:case pi.CanvasMutation:case pi.Input:return this.replaceIds(t.data,e,["id"]),t;case pi.StyleSheetRule:case pi.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case pi.Font:return t;case pi.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case pi.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),Vi([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===ss.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Xi{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ji{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!ls(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=Mi({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Pi({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Ui({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Qs(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&ui(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Yi{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Gi{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ii,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:us(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Zi{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){di((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function el(e){const t=e;return t.timestamp=Js(),t}let tl;const nl=new ds;function rl(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,packFn:S,sampling:k={},dataURLOptions:x={},mousemoveWait:w,recordCanvas:E=!1,recordCrossOriginIframes:T=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:R=!1,inlineImages:O=!1,plugins:N,keepIframeSrcFn:A=(()=>!1),ignoreCSSAttributes:M=new Set([]),errorHandler:D,onMutation:P,getCanvasManager:L}=e;Ci(D);const j=!T||window.parent===window;let F=!1;if(!j)try{window.parent.document&&(F=!1)}catch(e){F=!0}if(j&&!t)throw new Error("emit function is required");void 0!==w&&void 0===k.mousemove&&(k.mousemove=w),nl.reset();const z=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let U;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let $=0;const W=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!F&&(e=S(e)),e},H=(e,o)=>{if(!Va([Ni,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||e.type===fi.FullSnapshot||e.type===fi.IncrementalSnapshot&&e.data.source===pi.Mutation||Ni.forEach((e=>e.unfreeze())),j)Va([t,"optionalCall",t=>t(W(e),o)]);else if(F){const t={type:"rrweb",event:W(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===fi.FullSnapshot)U=e,$=0;else if(e.type===fi.IncrementalSnapshot){if(e.data.source===pi.Mutation&&e.data.isAttachIframe)return;$++;const t=r&&$>=r,o=n&&e.timestamp-U.timestamp>n;(t||o)&&Z(!0)}},q=e=>{H(el({type:fi.IncrementalSnapshot,data:{source:pi.Mutation,...e}}))},V=e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.Scroll,...e}})),K=e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.CanvasMutation,...e}})),Q=new Gi({mutationCb:q,adoptedStyleSheetCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.AdoptedStyleSheet,...e}}))}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ki:new Qi({mirror:nl,mutationCb:q,stylesheetManager:Q,recordCrossOriginIframes:T,wrappedEmit:H});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:nl,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const J=new Zi,Y=function(e,t){try{return e?e(t):new Yi}catch(e){return new Yi}}(L,{mirror:nl,win:window,mutationCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.CanvasMutation,...e}})),recordCanvas:E,blockClass:o,blockSelector:a,unblockSelector:s,sampling:k.canvas,dataURLOptions:x,errorHandler:D}),G="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Xi:new Ji({mutationCb:q,scrollCb:V,bypassOptions:{onMutation:P,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:z,dataURLOptions:x,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:E,inlineImages:O,sampling:k,slimDOMOptions:B,iframeManager:X,stylesheetManager:Q,canvasManager:Y,keepIframeSrcFn:A,processedNodeManager:J},mirror:nl}),Z=(e=!1)=>{H(el({type:fi.Meta,data:{href:window.location.href,width:Zs(),height:Gs()}}),e),Q.reset(),G.init(),Ni.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new ds,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:i="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:T=(()=>!1)}=t||{};return $s(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:a,maskAllText:s,maskTextClass:i,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:_,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:w,stylesheetLoadTimeout:E,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:nl,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:z,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:x,recordCanvas:E,inlineImages:O,onSerialize:e=>{oi(e,nl)&&X.addIframe(e),ai(e,nl)&&Q.trackLinkElement(e),si(e)&&G.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),G.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:A});t&&(H(el({type:fi.FullSnapshot,data:{node:t,initialOffset:Ys(window)}})),Ni.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,nl.getId(document)))};tl=Z;try{const e=[],t=e=>Ri($i)({onMutation:P,mutationCb:q,mousemoveCb:(e,t)=>H(el({type:fi.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.MouseInteraction,...e}})),scrollCb:V,viewportResizeCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.ViewportResize,...e}})),inputCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.Input,...e}})),mediaInteractionCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.MediaInteraction,...e}})),styleSheetRuleCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.StyleSheetRule,...e}})),styleDeclarationCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.StyleDeclaration,...e}})),canvasMutationCb:K,fontCb:e=>H(el({type:fi.IncrementalSnapshot,data:{source:pi.Font,...e}})),selectionCb:e=>{H(el({type:fi.IncrementalSnapshot,data:{source:pi.Selection,...e}}))},customElementCb:e=>{H(el({type:fi.IncrementalSnapshot,data:{source:pi.CustomElement,...e}}))},blockClass:o,ignoreClass:i,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:z,inlineStylesheet:h,sampling:k,recordCanvas:E,inlineImages:O,userTriggeredOnInput:I,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:A,blockSelector:a,unblockSelector:s,slimDOMOptions:B,dataURLOptions:x,mirror:nl,iframeManager:X,stylesheetManager:Q,shadowDomManager:G,processedNodeManager:J,canvasManager:Y,ignoreCSSAttributes:M,plugins:Va([N,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>H(el({type:fi.Plugin,data:{plugin:e.name,payload:t}}))})))])||[]},{});X.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Hs("DOMContentLoaded",(()=>{H(el({type:fi.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&n()}))),e.push(Hs("load",(()=>{H(el({type:fi.Load,data:{}})),"load"===C&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),tl=void 0,Ii()}}catch(e){}}rl.mirror=nl,rl.takeFullSnapshot=function(e){if(!tl)throw new Error("please take full snapshot after start recording");tl(e)};const ol=3;function al(e){return e>9999999999?e:1e3*e}function sl(e){return e>9999999999?e/1e3:e}function il(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:fi.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:_e(t,10,1e3)}}),"console"===t.category))))}const ll="button,a";function cl(e){return e.closest(ll)||e}function ul(e){const t=dl(e);return t&&t instanceof Element?cl(t):t}function dl(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let fl;function pl(e){return fl||(fl=[],P(Ya,"open",(function(e){return function(...t){if(fl)try{fl.forEach((e=>e()))}catch(e){}return e.apply(Ya,t)}}))),fl.push(e),()=>{const t=fl?fl.indexOf(e):-1;t>-1&&fl.splice(t,1)}}class hl{constructor(e,t,n=il){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=pl((()=>{this._lastMutation=gl()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!ml.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:sl(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=sl(e)}registerScroll(e=Date.now()){this._lastScroll=sl(e)}registerClick(e){const t=cl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=gl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:a,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:Ya.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,o)}else if(a>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Ya.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const ml=["A","BUTTON","INPUT"];function gl(){return Date.now()/1e3}function yl(e,t){try{if(!function(e){return e.type===ol}(t))return;const{source:n}=t.data;if(n===pi.Mutation&&e.registerMutation(t.timestamp),n===pi.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===pi.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=rl.mirror.getNode(r);o instanceof HTMLElement&&n===hi.Click&&e.registerClick(o)}}catch(e){}}function vl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var bl;!function(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"}(bl||(bl={}));const _l=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Sl(e){const t={};for(const n in e)if(_l.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const kl=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?ul(e.event):dl(e.event),n=I(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return vl({category:`ui.${e.name}`,...xl(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,ul(t.event)),il(e,n)};function xl(e,t){const n=rl.mirror.getId(e),r=n&&rl.mirror.getNode(n),o=r&&rl.mirror.getMeta(r),a=o&&function(e){return e.type===bl.Element}(o)?o:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map((e=>e.type===bl.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Sl(a.attributes)}}:{}}}function wl(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!a)return null;const i=t||r||o,l=1===a.length;if(!i&&l)return null;const c=I(s,{maxStringLength:200})||"<unknown>",u=xl(s,c);return vl({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:a}})}(t);n&&il(e,n)}const El={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:a,decodedBodySize:s,encodedBodySize:i,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Cl(a),end:Cl(o),name:r,data:{size:c,statusCode:l,decodedBodySize:s,encodedBodySize:i}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,a=Cl(o);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:i,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:Cl(p),end:Cl(a),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:i,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}};function Tl(e){return El[e.entryType]?El[e.entryType](e):null}function Cl(e){return((ce||Ya.performance.timeOrigin)+e)/1e3}function Il(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(oa(e,n))})),r.push(ra((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,a=Cl(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:o,size:o,nodeId:r?rl.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}const Rl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ol='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();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,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}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}(),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(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}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(let r=0,e=t.length;r<e;r++)n+=t[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 Nl(e,t){Rl&&(d.info(e),t&&Ml(e))}function Al(e,t){Rl&&(d.info(e),t&&setTimeout((()=>{Ml(e)}),0))}function Ml(e){Ve({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class Dl extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Pl{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>rs)throw new Dl;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?al(e):null}}class Ll{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Nl("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const a=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",a),!s.success)return Rl&&d.error("[Replay]",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class jl{constructor(e){this._worker=new Ll(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=al(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>rs?Promise.reject(new Dl):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Rl&&d.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Fl{constructor(e){this._fallback=new Pl,this._compression=new jl(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Nl("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Rl&&d.warn("[Replay] Failed to add events when switching buffers.",e)}}}function zl({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([Ol]);return URL.createObjectURL(e)}();return""}();if(!t)return;Nl("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Fl(n)}catch(e){Nl("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Nl("[Replay] Using simple buffer"),new Pl}function Bl(){try{return"sessionStorage"in Ya&&!!Ya.sessionStorage}catch(e){return!1}}function Ul(e){!function(){if(!Bl())return;try{Ya.sessionStorage.removeItem(Ga)}catch(e){}}(),e.session=void 0}function $l(e){return void 0!==e&&Math.random()<e}function Wl(e){const t=Date.now();return{id:e.id||H(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Hl(e){if(Bl())try{Ya.sessionStorage.setItem(Ga,JSON.stringify(e))}catch(e){}}function ql({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return $l(e)?"session":!!t&&"buffer"}(e,t),a=Wl({sampled:o,previousSessionId:r});return n&&Hl(a),a}function Vl(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Kl(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Vl(e.started,t,r)||Vl(e.lastActivity,n,r)}function Ql(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Kl(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Xl({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){const a=o.stickySession&&function(e){if(!Bl())return null;try{const t=Ya.sessionStorage.getItem(Ga);if(!t)return null;const n=JSON.parse(t);return Al("[Replay] Loading existing session",e),Wl(n)}catch(e){return null}}(e);return a?Ql(a,{sessionIdleExpire:t,maxReplayDuration:n})?(Al("[Replay] Session in sessionStorage is expired, creating new one..."),ql(o,{previousSessionId:a.id})):a:(Al("[Replay] Creating new session",e),ql(o,{previousSessionId:r}))}function Jl(e,t,n){return!!Gl(e,t)&&(Yl(e,t,n),!0)}async function Yl(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===fi.Custom}(e))return t(e)}catch(e){return Rl&&d.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof Dl?"addEventSizeExceeded":"addEvent";Rl&&d.error(t),await e.stop({reason:n});const r=Qe();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function Gl(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=al(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Nl(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function Zl(e){return!e.type}function ec(e){return"transaction"===e.type}function tc(e){return"feedback"===e.type}function nc(e){const t=function(){const e=Qe();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!Zl(n)&&!ec(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(ec(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function rc(e){return t=>{e.isEnabled()&&Zl(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){il(e,vl({category:"replay.hydrate-error"}))}}(e,t)}}function oc(e,t=!1){const n=t?nc(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Zl(t)&&!ec(t)&&!tc(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(tc(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:fi.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Rl&&d.log("[Replay] Ignoring error from rrweb internals",t),null;const o=function(e,t){return"buffer"===e.recordingMode&&t.message!==es&&!(!t.exception||t.type)&&$l(e.getOptions().errorSampleRate)}(e,t);return(o||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}function ac(e,t){return t.map((({type:t,start:n,end:r,name:o,data:a})=>{const s=e.throttledAddEvent({type:fi.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:a}}});return"string"==typeof s?Promise.resolve(null):s}))}function sc(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(ac(e,[n]),!1))))}}function ic(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Rl||!e.getOptions()._experiments.traceInternals)&&Ka(t,Qe())}(e,t.name)||e.addUpdate((()=>(ac(e,[t]),!0))))}function lc(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[Vn];if(!t||!n||!o)return null;const{method:a,url:s,status_code:i}=o;return void 0===s?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:a,statusCode:i}}}(t);ic(e,n)}}function cc(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=yc(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function uc(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function dc(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[yc(e)];if(!e)return[void 0]}catch(t){return Rl&&d.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Rl&&d.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function fc(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 pc(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:a,statusCode:s,request:i,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:$({method:a,statusCode:s,request:i,response:l})}}function hc(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function mc(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>ts,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,ts);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,a&&a.length>0&&(r._meta={warnings:a}),r}function gc(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function yc(e){return new URLSearchParams(e).toString()}function vc(e,t){const n=function(e,t=Ya.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ya.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return D(n,t)}async function bc(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r}=t,{url:s,method:i,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,f=vc(s,n.networkDetailAllowUrls)&&!vc(s,n.networkDetailDenyUrls),p=f?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return kc(e[0],t);if(2===e.length)return kc(e[1],t);return{}}(n,t):{};if(!e)return mc(o,r,void 0);const a=_c(n),[s,i]=dc(a),l=mc(o,r,s);if(i)return fc(l,i);return l}(n,t.input,c):hc(c),h=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,a){if(!e&&void 0!==a)return hc(a);const s=o?Sc(o.headers,r):{};if(!o||!t&&void 0!==a)return mc(s,a,void 0);const[i,l]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Rl&&d.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return Rl&&d.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(o),c=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:a}){try{const s=e&&e.length&&void 0===r?cc(e,n):r;return o?mc(a,s,t?e:void 0):hc(s)}catch(e){return Rl&&d.warn("[Replay] Failed to serialize response body",e),mc(a,r,void 0)}}(i,{networkCaptureBodies:t,textEncoder:n,responseBodySize:a,captureDetails:e,headers:s});if(l)return fc(c,l);return c}(f,n,t.response,u);return{startTimestamp:o,endTimestamp:a,url:s,method:i,statusCode:l,request:p,response:h}}(e,t,n),o=pc("resource.fetch",r);ic(n.replay,o)}catch(e){Rl&&d.error("[Replay] Failed to capture fetch breadcrumb",e)}}function _c(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Sc(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function kc(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Sc(n,t):Array.isArray(n)?{}:gc(n,t):{}}async function xc(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:a=r,input:s,xhr:i}=t,{url:l,method:c,status_code:u=0,request_body_size:f,response_body_size:p}=e.data;if(!l)return null;if(!i||!vc(l,n.networkDetailAllowUrls)||vc(l,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:a,url:l,method:c,statusCode:u,request:hc(f),response:hc(p)}}const h=i[Vn],m=h?gc(h.request_headers,n.networkRequestHeaders):{},g=gc(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{})}(i),n.networkResponseHeaders),[y,v]=n.networkCaptureBodies?dc(s):[void 0],[b,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Rl&&d.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Rl&&d.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Rl&&d.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(i):[void 0],S=mc(m,f,y),k=mc(g,p,b);return{startTimestamp:o,endTimestamp:a,url:l,method:c,statusCode:u,request:v?fc(S,v):S,response:_?fc(k,_):k}}(e,t,n),o=pc("resource.xhr",r);ic(n.replay,o)}catch(e){Rl&&d.error("[Replay] Failed to capture xhr breadcrumb",e)}}function wc(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const a=cc(o,n.textEncoder),s=r.getResponseHeader("content-length")?uc(r.getResponseHeader("content-length")):function(e,t,n){try{return cc("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}function Ec(e){const t=Qe();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(wc(t,n,e),xc(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:r,response:o}=t,a=cc(r?_c(r):void 0,n.textEncoder),s=o?uc(o.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),bc(t,n,e))}catch(e){Rl&&d.warn("Error when enriching network breadcrumb")}}(l,e,t))):(Xn(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:a,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:a,statusCode:o?o.status:void 0}}}(t);ic(e,n)}}(e)),Kn(lc(e)))}catch(e){}}let Tc=null;const Cc=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Tc===t||!t)return null;if(Tc=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return vl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>ns?(n=!0,`${e.slice(0,ns)}…`):e;if("object"==typeof e)try{const t=_e(e,7);return JSON.stringify(t).length>ns?(n=!0,`${JSON.stringify(t,null,2).slice(0,ns)}…`):t}catch(e){}return e}));return vl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return vl(t)}(t);n&&il(e,n)};function Ic(e){const t=Xe(),n=Qe();t.addScopeListener(Cc(e)),$n(kl(e)),Kt(sc(e)),Ec(e);const r=oc(e,!Rc(n));n&&n.addEventProcessor?n.addEventProcessor(r):function(e){const t=Qe();t&&t.addEventProcessor&&t.addEventProcessor(e)}(r),Rc(n)&&(n.on("beforeSendEvent",rc(e)),n.on("afterSendEvent",nc(e)),n.on("createDsc",(t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&(e.flush(),t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r))})))}function Rc(e){return!(!e||!e.on)}function Oc(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Nc(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Rl&&d.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&yl(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Jl(e,n,o))return!0;if(!o)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Jl(e,function(e){const t=e.getOptions();return{type:fi.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&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Nl(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Hl(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Ac({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:a}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:i,errorIds:l,traceIds:c,initialTimestamp:u}=r,d=Qe(),f=Xe(),p=d&&d.getTransport(),h=d&&d.getDsn();if(!(d&&p&&h&&a.sampled))return;const m={type:Za,replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:l,trace_ids:c,urls:i,replay_id:t,segment_id:n,replay_type:a.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const a=await Be(e.getOptions(),r,o,t,e,gt());if(!a)return null;a.platform=a.platform||"javascript";const s=e.getSdkMetadata&&e.getSdkMetadata(),{name:i,version:l}=s&&s.sdk||{};return a.sdk={...a.sdk,name:i||"sentry.javascript.unknown",version:l||"0.0.0"},a}({scope:f,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),void Nl("An event processor returned `null`, will not send event.");delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return Zt(cn(e,ln(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(e){const t=new Error(es);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Mc(v.statusCode);const b=Xr({},v);if(Qr(b,"replay"))throw new Dc(b);return v}class Mc extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Dc extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Pc(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;var o,a;if(n.length)try{return await Ac(e),!0}catch(n){if(n instanceof Mc||n instanceof Dc)throw n;if(o="Replays",a={_retryCount:t.count},mt().setContext(o,a),Rl&&r._experiments&&r._experiments.captureExceptions&&He(n),t.count>=3){const e=new Error(`${es} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await Pc(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Lc="__THROTTLED";function jc(e,t,n){const r=new Map;let o=!1;return(...a)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(s),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Lc}o=!1;const i=r.get(s)||0;return r.set(s,i+1),e(...a)}}class Fc{constructor({options:e,recordingOptions:t}){Fc.prototype.__init.call(this),Fc.prototype.__init2.call(this),Fc.prototype.__init3.call(this),Fc.prototype.__init4.call(this),Fc.prototype.__init5.call(this),Fc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,a;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function i(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==a&&clearTimeout(a),o=a=void 0}function c(){return o&&clearTimeout(o),o=setTimeout(i,t),s&&void 0===a&&(a=setTimeout(i,s)),r}return c.cancel=l,c.flush=function(){return void 0!==o||void 0!==a?i():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=jc(((e,t)=>function(e,t,n){return Gl(e,t)?Yl(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new hl(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Al(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Al("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=Xl({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Al("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Xl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=rl({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Nc(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Nl("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Ul(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Nl("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Nl("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Nl("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Vl(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Ya.location.pathname}${Ya.location.hash}${Ya.location.search}`,t=`${Ya.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Lc){const e=vl({category:"replay.throttled"});this.addUpdate((()=>!Jl(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Xe().getTransaction(),t=(e&&Fe(e).data||{})[lo];if(e&&t&&["route","custom"].includes(t))return Fe(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=zl({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Rl&&d.error("[Replay]",e),Rl&&this._options._experiments&&this._options._experiments.captureExceptions&&He(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Xl({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Ql(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Ya.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ya.addEventListener("blur",this._handleWindowBlur),Ya.addEventListener("focus",this._handleWindowFocus),Ya.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Ic(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Il(this)}_removeListeners(){try{Ya.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ya.removeEventListener("blur",this._handleWindowBlur),Ya.removeEventListener("focus",this._handleWindowFocus),Ya.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ya.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=vl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=vl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{wl(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Kl(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Nl("[Replay] Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:fi.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Tl).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ac(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(ac(e,[Oc(Ya.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Pc({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Qe();t&&t.recordDroppedEvent("send_error","replay")}}else Rl&&d.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Rl&&d.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Nl(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&Nl("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Rl&&d.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hl(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=vl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function zc(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(`.${n}`),u((()=>{}))),o.join(",")}const Bc='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Uc=["content-length","content-type","accept"];let $c=!1;class Wc{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:a=!0,workerUrl:s,_experiments:i={},sessionSampleRate:l,errorSampleRate:c,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:f=!0,mutationBreadcrumbLimit:p=750,mutationLimit:h=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:_=[],networkResponseHeaders:S=[],mask:k=[],maskAttributes:x=["title","placeholder"],unmask:w=[],block:E=[],unblock:T=[],ignore:C=[],maskFn:I,beforeAddRecordingEvent:R,beforeErrorSampling:O,blockClass:N,blockSelector:A,maskInputOptions:M,maskTextClass:D,maskTextSelector:P,ignoreClass:L}={}){this.name=Wc.id;const j=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:a,blockSelector:s,maskTextClass:i,maskTextSelector:l,ignoreClass:c}){const u={maskTextSelector:zc(e,[".sentry-mask","[data-sentry-mask]"],i,l),unmaskTextSelector:zc(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:zc(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,s),unblockSelector:zc(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:zc(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return a instanceof RegExp&&(u.blockClass=a),i instanceof RegExp&&(u.maskTextClass=i),u}({mask:k,unmask:w,block:E,unblock:T,ignore:C,blockClass:N,blockSelector:A,maskTextClass:D,maskTextSelector:P,ignoreClass:L});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...M||{},password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:a}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?a:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a:a}({maskAttributes:x,maskAllText:u,privacyOptions:j,key:e,value:t,el:n}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,os),stickySession:o,sessionSampleRate:l,errorSampleRate:c,useCompression:a,workerUrl:s,blockAllMedia:f,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:h,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:Hc(_),networkResponseHeaders:Hc(S),beforeAddRecordingEvent:R,beforeErrorSampling:O,_experiments:i},"number"==typeof l&&(this._initialOptions.sessionSampleRate=l),"number"==typeof c&&(this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Bc}`:Bc),this._isInitialized&&Ja())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return $c}set _isInitialized(e){$c=e}setupOnce(){Ja()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=Qe(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...$(e)};if(!n)return u((()=>{})),r;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&u((()=>{}));"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new Fc({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=Qe().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function Hc(e){return[...Uc,...e.map((e=>e.toLowerCase()))]}function qc(){return qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}var Vc;Wc.__initStatic(),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Vc||(Vc={}));const Kc="popstate";function Qc(e,t){if(!1===e||null==e)throw new Error(t)}function Xc(e,t){if(!e)try{throw new Error(t)}catch(e){}}function Jc(e,t){return{usr:e.state,key:e.key,idx:t}}function Yc(e,t,n,r){return void 0===n&&(n=null),qc({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Zc(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function Gc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function Zc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function eu(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,s=o.history,i=Vc.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function d(){i=Vc.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:i,location:p.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:Gc(e);return n=n.replace(/ $/,"%20"),Qc(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(qc({},s.state,{idx:c}),""));let p={get action(){return i},get location(){return e(o,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Kc,d),l=e,()=>{o.removeEventListener(Kc,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=Vc.Push;let r=Yc(p.location,e,t);n&&n(r,e),c=u()+1;let d=Jc(r,c),f=p.createHref(r);try{s.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}a&&l&&l({action:i,location:p.location,delta:1})},replace:function(e,t){i=Vc.Replace;let r=Yc(p.location,e,t);n&&n(r,e),c=u();let o=Jc(r,c),d=p.createHref(r);s.replaceState(o,"",d),a&&l&&l({action:i,location:p.location,delta:0})},go:e=>s.go(e)};return p}var tu;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(tu||(tu={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function nu(e,t,n){void 0===n&&(n="/");let r=gu(("string"==typeof t?Zc(t):t).pathname||"/",n);if(null==r)return null;let o=ru(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let e=0;null==a&&e<o.length;++e){let t=mu(r);a=pu(o[e],t)}return a}function ru(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,a)=>{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(Qc(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let i=Su([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(Qc(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),ru(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:fu(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of ou(e.path))o(e,t,n);else o(e,t)})),t}function ou(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let s=ou(r.join("/")),i=[];return i.push(...s.map((e=>""===e?a:[a,e].join("/")))),o&&i.push(...s),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const au=/^:[\w-]+$/,su=3,iu=2,lu=1,cu=10,uu=-2,du=e=>"*"===e;function fu(e,t){let n=e.split("/"),r=n.length;return n.some(du)&&(r+=uu),t&&(r+=iu),n.filter((e=>!du(e))).reduce(((e,t)=>e+(au.test(t)?su:""===t?lu:cu)),r)}function pu(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],i=e===n.length-1,l="/"===o?t:t.slice(o.length)||"/",c=hu({path:s.relativePath,caseSensitive:s.caseSensitive,end:i},l);if(!c)return null;Object.assign(r,c.params);let u=s.route;a.push({params:r,pathname:Su([o,c.pathname]),pathnameBase:ku(Su([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=Su([o,c.pathnameBase]))}return a}function hu(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);Xc("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=i[n]||"";s=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:s,pattern:e}}function mu(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Xc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function gu(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function yu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function vu(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function bu(e,t){let n=vu(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function _u(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=Zc(e):(o=qc({},e),Qc(!o.pathname||!o.pathname.includes("?"),yu("?","pathname","search",o)),Qc(!o.pathname||!o.pathname.includes("#"),yu("#","pathname","hash",o)),Qc(!o.search||!o.search.includes("#"),yu("#","search","hash",o)));let a,s=""===e||""===o.pathname,i=s?"/":o.pathname;if(null==i)a=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?Zc(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:xu(r),hash:wu(o)}}(o,a),c=i&&"/"!==i&&i.endsWith("/"),u=(s||"."===i)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Su=e=>e.join("/").replace(/\/\/+/g,"/"),ku=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xu=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",wu=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Eu(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Tu=["post","put","patch","delete"],Cu=(new Set(Tu),["get",...Tu]);new Set(Cu),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}const Ru=La.createContext(null);const Ou=La.createContext(null);const Nu=La.createContext(null);const Au=La.createContext(null);const Mu=La.createContext({outlet:null,matches:[],isDataRoute:!1});const Du=La.createContext(null);function Pu(){return null!=La.useContext(Au)}function Lu(){return Pu()||Qc(!1),La.useContext(Au).location}function ju(e){La.useContext(Nu).static||La.useLayoutEffect(e)}function Fu(){let{isDataRoute:e}=La.useContext(Mu);return e?function(){let{router:e}=Qu(Vu.UseNavigateStable),t=Ju(Ku.UseNavigateStable),n=La.useRef(!1);ju((()=>{n.current=!0}));let r=La.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Iu({fromRouteId:t},o)))}),[e,t]);return r}():function(){Pu()||Qc(!1);let e=La.useContext(Ru),{basename:t,future:n,navigator:r}=La.useContext(Nu),{matches:o}=La.useContext(Mu),{pathname:a}=Lu(),s=JSON.stringify(bu(o,n.v7_relativeSplatPath)),i=La.useRef(!1);ju((()=>{i.current=!0}));let l=La.useCallback((function(n,o){if(void 0===o&&(o={}),!i.current)return;if("number"==typeof n)return void r.go(n);let l=_u(n,JSON.parse(s),a,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Su([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,s,a,e]);return l}()}const zu=La.createContext(null);function Bu(e,t,n,r){Pu()||Qc(!1);let{navigator:o}=La.useContext(Nu),{matches:a}=La.useContext(Mu),s=a[a.length-1],i=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=Lu();if(t){var d;let e="string"==typeof t?Zc(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||Qc(!1),c=e}else c=u;let f=c.pathname||"/",p=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=nu(e,{pathname:p});let m=qu(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:Su([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Su([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n,r);return t&&m?La.createElement(Au.Provider,{value:{location:Iu({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Vc.Pop}},m):m}function Uu(){let e=function(){var e;let t=La.useContext(Du),n=Xu(Ku.UseRouteError),r=Ju(Ku.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Eu(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return La.createElement(La.Fragment,null,La.createElement("h2",null,"Unexpected Application Error!"),La.createElement("h3",{style:{fontStyle:"italic"}},t),n?La.createElement("pre",{style:o},n):null,null)}const $u=La.createElement(Uu,null);class Wu extends La.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?La.createElement(Mu.Provider,{value:this.props.routeContext},La.createElement(Du.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hu(e){let{routeContext:t,match:n,children:r}=e,o=La.useContext(Ru);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),La.createElement(Mu.Provider,{value:t},r)}function qu(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let s=e,i=null==(o=n)?void 0:o.errors;if(null!=i){let e=s.findIndex((e=>e.route.id&&(null==i?void 0:i[e.route.id])));e>=0||Qc(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){l=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,r,o)=>{let a,u=!1,d=null,f=null;var p;n&&(a=i&&r.route.id?i[r.route.id]:void 0,d=r.route.errorElement||$u,l&&(c<0&&0===o?(p="route-fallback",!1||Yu[p]||(Yu[p]=!0),u=!0,f=null):c===o&&(u=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,o+1)),m=()=>{let t;return t=a?d:u?f:r.route.Component?La.createElement(r.route.Component,null):r.route.element?r.route.element:e,La.createElement(Hu,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?La.createElement(Wu,{location:n.location,revalidation:n.revalidation,component:d,error:a,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}var Vu=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vu||{}),Ku=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ku||{});function Qu(e){let t=La.useContext(Ru);return t||Qc(!1),t}function Xu(e){let t=La.useContext(Ou);return t||Qc(!1),t}function Ju(e){let t=function(e){let t=La.useContext(Mu);return t||Qc(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||Qc(!1),n.route.id}const Yu={};ja.startTransition;function Gu(e){let{to:t,replace:n,state:r,relative:o}=e;Pu()||Qc(!1);let{future:a,static:s}=La.useContext(Nu),{matches:i}=La.useContext(Mu),{pathname:l}=Lu(),c=Fu(),u=_u(t,bu(i,a.v7_relativeSplatPath),l,"path"===o),d=JSON.stringify(u);return La.useEffect((()=>c(JSON.parse(d),{replace:n,state:r,relative:o})),[c,d,o,n,r]),null}function Zu(e){return function(e){let t=La.useContext(Mu).outlet;return t?La.createElement(zu.Provider,{value:e},t):t}(e.context)}function ed(e){Qc(!1)}function td(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Vc.Pop,navigator:a,static:s=!1,future:i}=e;Pu()&&Qc(!1);let l=t.replace(/^\/*/,"/"),c=La.useMemo((()=>({basename:l,navigator:a,static:s,future:Iu({v7_relativeSplatPath:!1},i)})),[l,i,a,s]);"string"==typeof r&&(r=Zc(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=La.useMemo((()=>{let e=gu(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:h},navigationType:o}}),[l,u,d,f,p,h,o]);return null==m?null:La.createElement(Nu.Provider,{value:c},La.createElement(Au.Provider,{children:n,value:m}))}function nd(e){let{children:t,location:n}=e;return function(e,t){return Bu(e,t)}(rd(t),n)}new Promise((()=>{}));La.Component;function rd(e,t){void 0===t&&(t=[]);let n=[];return La.Children.forEach(e,((e,r)=>{if(!La.isValidElement(e))return;let o=[...t,r];if(e.type===La.Fragment)return void n.push.apply(n,rd(e.props.children,o));e.type!==ed&&Qc(!1),e.props.index&&e.props.children&&Qc(!1);let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=rd(e.props.children,o)),n.push(a)})),n}const od="@todoSync",ad={title:"TodoSync",services:{yandexMetrika:98150527,sentry:"undefined"},storageKeys:{themeMode:`${od}/theme-mode`,uncompleteOpen:`${od}/uncomplete-open`,userSession:`${od}/user-session`}},sd={dsn:ad.services.sentry,integrations:[function(e){const t=Aa({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:o,createRoutesFromChildren:a,matchRoutes:s,stripBasename:i,instrumentPageLoad:l=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e);const u=Nn&&Nn.location&&Nn.location.pathname;l&&u&&Ma(e,{name:u,attributes:{[lo]:"url",[uo]:"pageload",[fo]:"auto.pageload.react.reactrouter_v6"}}),Fa=n,za=r,Ba=o,$a=s,Ua=a,qa=i||!1,Wa=t=>{Da(e,t)},Ha=c}}}({useEffect:La.useEffect,useLocation:Lu,useNavigationType:function(){return La.useContext(Au).navigationType},createRoutesFromChildren:rd,matchRoutes:nu}),(e=>new Wc(e))()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1};var id=o(338);function ld(e,t){for(const n in e)t(e[n],n)}function cd(e,t){e.forEach(t)}function ud(e,t,n){if(!e)throw Error(`${n?n+": ":""}${t}`)}function dd(e,t){const n=Dd(e).meta||{};uf={id:Dd(e).id,parent:uf,value:e,template:n.template||ff(),sidRoot:n.sidRoot||uf&&uf.sidRoot,meta:n};try{return t()}finally{df("region"),uf=Bd(uf)}}function fd({node:e=[],from:t,source:n,parent:r=t||n,to:o,target:a,child:s=o||a,scope:i={},meta:l={},family:c={type:"regular"},regional:u}={}){const d=mf(r),f=mf(c.links),p=mf(c.owners),h=[];cd(e,(e=>e&&tf(h,e)));const m={id:sf(),seq:h,next:mf(s),meta:l,scope:i,family:{type:c.type||"crosslink",links:f,owners:p}};return cd(f,(e=>tf(Pd(e),m))),cd(p,(e=>tf(Ld(e),m))),cd(d,(e=>tf(e.next,m))),u&&uf&&hf(Fd(uf),[m]),m}function pd(e,t,n){let r,o=Yf,a=null,s=Kf;if(e.target&&(t=e.params,n=e.defer,r=e.meta,o="page"in e?e.page:o,e.stack&&(a=e.stack),s=Ud(e)||s,e=e.target),s&&Kf&&s!==Kf&&(Kf=null),Array.isArray(e))for(let n=0;n<e.length;n++)Wf("pure",o,Dd(e[n]),a,t[n],s,r);else Wf("pure",o,Dd(e),a,t,s,r);if(n&&!Qf)return;const i={isRoot:Qf,currentPage:Yf,scope:Kf,isWatch:Xf,isPure:Jf};let l,c,u,d,f,p;Qf=0;e:for(;d=$f();){const{idx:e,stack:t,type:n}=d;u=t.node,Yf=f=t.page,Kf=Ud(t),f?p=f.reg:Kf&&(p=Kf.reg);const r=!!f,o=!!Kf,a={fail:0,scope:u.scope};l=c=0;for(let s=e;s<u.seq.length&&!l;s++){const d=u.seq[s];if(d.order){const{priority:r,barrierID:o}=d.order,a=o?f?`${f.fullID}_${o}`:o:0;if(s!==e||n!==r){o?Vf.has(a)||(Vf.add(a),Hf(s,t,r,o)):Hf(s,t,r,0);continue e}o&&Vf.delete(a)}switch(d.type){case"mov":{const e=d.data;let n;switch(e.from){case"stack":n=Fd(t);break;case"a":case"b":n=t[e.from];break;case"value":n=e.store;break;case"store":if(p&&!p[e.store.id])if(r){const n=ep(f,e.store.id);t.page=f=n,n?p=n.reg:o?(op(Kf,e.store,0,1,e.softRead),p=Kf.reg):p=void 0}else o&&op(Kf,e.store,0,1,e.softRead);n=Lf(p&&p[e.store.id]||e.store)}switch(e.to){case"stack":t.value=n;break;case"a":case"b":t[e.to]=n;break;case"store":tp(f,Kf,e.target,0).current=n}break}case"compute":const e=d.data;if(e.fn){Xf="watch"===u.meta.op,Jf=e.pure;const n=e.safe?(0,e.fn)(Fd(t),a.scope,t):ap(a,e.fn,t);e.filter?c=!n:t.value=n,Xf=i.isWatch,Jf=i.isPure}}l=a.fail||c}if(np&&np(t,a),!l){const e=Fd(t),n=Ud(t);if(cd(u.next,(r=>{Wf("child",f,r,t,e,n)})),n){u.meta.needFxCounter&&Wf("child",f,n.fxCount,t,e,n),u.meta.storeChange&&Wf("child",f,n.storeChange,t,e,n),u.meta.warnSerialize&&Wf("child",f,n.warnSerializeNode,t,e,n);const r=n.additionalLinks[u.id];r&&cd(r,(r=>{Wf("child",f,r,t,e,n)}))}}}Qf=i.isRoot,Yf=i.currentPage,Kf=Ud(i)}function hd(e,t="combine"){let n=t+"(",r="",o=0;return ld(e,(e=>{o<25&&(null!=e&&(n+=r,n+=qd(e)?Hd(e).fullName:e.toString()),o+=1,r=", ")})),n+")"}function md(e,t){let n,r;const o=e;if(t){const o=Hd(t);0===e.length?(n=o.path,r=o.fullName):(n=o.path.concat([e]),r=0===o.fullName.length?e:o.fullName+"/"+e)}else n=0===e.length?[]:[e],r=e;return{shortName:o,fullName:r,path:n}}function gd(e,t){if(!t)return e;if(!t.name&&!t.named&&!t.loc)return e;let n=`[${e}]`;const r=t.named||t.name;r&&(n+=` unit '${r}'`);const o=t.loc;return!r&&o&&(n+=` (${o.file}:${o.line}:${o.column})`),n}function yd(e,t){const n=t?e:e[0];bf(n);let r=n.or;const o=n.and;if(o){const n=t?o:o[0];if(gf(n)&&"and"in n){const n=yd(o,t);e=n[0],r={...r,...n[1]}}else e=o}return[e,r]}function vd(e){const t=()=>e();return t.unsubscribe=()=>e(),t}function bd(e,...t){const n=ff();if(n){const r=n.handlers[e];if(r)return r(n,...t)}}function _d(e,t){const n=sp({or:t,and:"string"==typeof e?{name:e}:e}),r=gd("event",n),o=(e,...t)=>(ud(!$d(o,"derived"),"call of derived event is not supported, use createEvent instead",r),ud(!Jf,"unit call from pure function is not supported, use operators like sample instead",r),Yf?((e,t,n,r)=>{const o=Yf;let a=null;if(t)for(a=Yf;a&&a.template!==t;)a=Bd(a);Zf(a);const s=e.create(n,r);return Zf(o),s})(o,a,e,t):o.create(e,t)),a=ff(),s=Object.assign(o,{graphite:fd({meta:mp(n.actualOp||"event",o,n),regional:1}),create:e=>(pd({target:o,params:e,scope:Kf}),e),watch:e=>pp(o,e),map:e=>gp(o,"map",e,[Mf()]),filter:e=>gp(o,"filter",e.fn?e:e.fn,[Mf(Ef,1)]),filterMap:e=>gp(o,"filterMap",e,[Mf(),Nf((e=>!vf(e)),1)]),prepend(e){ud(o.targetable,".prepend of derived event is not supported, call source event instead",r);const t=_d("* → "+o.shortName,{parent:Bd(o)});return bd("eventPrepend",Dd(t)),fp(t,o,[Mf()],"prepend",e),hp(o,t),t}});return null!=n&&n.domain&&n.domain.hooks.event(s),Wd(s,"id",s.graphite.id),df(s.graphite),s}function Sd(e,t,n,r,o){return Sf(n,`${o} ${t}`,"first argument"),ud(yf(r),"second argument should be a function",o),nf(!$d(e,"derived"),`${t} in derived store`,`${t} in store created via createStore`,o),cd(Array.isArray(n)?n:[n],(t=>{e.off(t),zd(e).set(t,dp(vp(t,e,"on",wf,r)))})),e}function kd(e,t){const n=sp(t),r=Pf(e),o=gd("store",n),a=_d({named:"updates",derived:1});bd("storeBase",r);const s=r.id,i="skipVoid"in n,l=i&&!n.skipVoid;nf(!(i&&n.skipVoid),"{skipVoid: true}","updateFilter",o);const c={subscribers:new Map,updates:a,defaultState:e,stateRef:r,getState(){let e,t=r;if(Yf){let t=Yf;for(;t&&!t.reg[s];)t=Bd(t);t&&(e=t)}return!e&&Kf&&(op(Kf,r,1),e=Kf),e&&(t=e.reg[s]),Lf(t)},setState:e=>pd({target:c,params:e,defer:1,scope:Kf}),reset:(...e)=>(ud(c.targetable,".reset of derived store is not supported",o),cd(e,(e=>Sd(c,".reset",e,(()=>c.defaultState),o))),c),on:(e,t)=>(ud(c.targetable,".on of derived store is not supported",o),Sd(c,".on",e,t,o)),off(e){const t=zd(c).get(e);return t&&(t(),zd(c).delete(e)),c},map(e,t){let n,o;gf(e)&&(n=e,e=e.fn);const a=c.getState(),s=vf(a);ff()?o=null:(!s||s&&l)&&(o=e(a));const i=kd(o,{name:`${c.shortName} → *`,derived:1,...t,and:n}),u=vp(c,i,"map",Ef,e);return jf(jd(i),{type:"map",fn:e,from:r}),jd(i).noInit=1,bd("storeMap",r,u),i},watch(e,t){if(nf(!t,"watch second argument","sample",o),!t||!qd(e)){const t=pp(c,e);return bd("storeWatch",r,e)||e(c.getState()),t}return ud(yf(t),"second argument should be a function",o),e.watch((e=>t(c.getState(),e)))}},u=mp("store",c,n),d=c.defaultConfig.updateFilter;c.graphite=fd({scope:{state:r,fn:d},node:[Nf(((e,t,n)=>(n.scope&&!n.scope.reg[r.id]&&(n.b=1),e))),Af(r),Nf(((e,t,{a:n,b:r})=>{const o=vf(e);return(o&&l||!o)&&(e!==n||r)}),1),d&&Mf(xf,1),If({from:"stack",target:r})],child:a,meta:{...u,defaultState:e},regional:1}),Wd(c,"id",c.graphite.id),Wd(c,"rootStateRefId",s);const f=$d(c,"serialize"),p=$d(c,"derived"),h="ignore"===f,m=$d(c,"sid");m&&(Wd(c,"storeChange",1),r.sid=m),m||h||p||Wd(c,"warnSerialize",1);const g=vf(e);return ud(p||!g||g&&l,yp,o),hf(c,[a]),null!=n&&n.domain&&n.domain.hooks.store(c),p||(c.reinit=_d({named:"reinit"}),c.reset(c.reinit)),r.meta=c.graphite.meta,df(c.graphite),c}function xd(...e){let t,n,r;[e,r]=yd(e);const o=gd("combine",r),a=e[e.length-1],s=!Kd(a)&&gf(a),i=s&&a,l=s?e[e.length-2]:a;let c,u,d;if(yf(l)?(n=e.slice(0,s?-2:-1),t=l):n=e,1===n.length){const e=n[0];Kd(e)||(c=e,u=1)}if(!u&&(c=n,t)){d=1;const e=t;t=t=>e(...t)}return ud(gf(c),`${o}: shape should be an object`),bp(Array.isArray(c),!d,c,r,t,i)}function wd(){const e={};return e.req=new Promise(((t,n)=>{e.rs=t,e.rj=n})),e.req.catch((()=>{})),e}function Ed(e,t={}){const n=sp(yf(e)?{handler:e}:e,t),r=gd("effect",n),o=_d(yf(e)?{handler:e}:e,{...t,actualOp:"effect"}),a=Dd(o);Wd(a,"op",o.kind="effect"),o.use=e=>(ud(yf(e),".use argument should be a function",r),d.scope.handler=e,o),o.use.getCurrent=()=>d.scope.handler;const s=o.finally=_d({named:"finally",derived:1}),i=o.done=s.filterMap({named:"done",fn({status:e,params:t,result:n}){if("done"===e)return{params:t,result:n}}}),l=o.fail=s.filterMap({named:"fail",fn({status:e,params:t,error:n}){if("fail"===e)return{params:t,error:n}}}),c=o.doneData=i.map({named:"doneData",fn:({result:e})=>e}),u=o.failData=l.map({named:"failData",fn:({error:e})=>e}),d=fd({scope:{handler:o.defaultConfig.handler||(()=>ud(0,`no handler used in ${o.compositeName.fullName}`))},node:[Nf(((e,t,n)=>{let r=t.handler;const a=Ud(n);if(a){const e=a.handlers.unitMap.get(o)||a.handlers.sidMap[o.sid];e&&(r=e)}return e.handler=r,e}),0,1),Nf(((e,t,n)=>{if(t.runnerFn&&!t.runnerFn(e,null,n))return;const{params:r,req:o,handler:a,args:i=[r]}=e,l=Sp(r,o,1,s,n),c=Sp(r,o,0,s,n),[u,d]=_p(a,c,i);u&&(gf(d)&&yf(d.then)?d.then(l,c):l(d))}),0,1)],meta:{op:"fx",fx:"runner"}});a.scope.runner=d,tf(a.seq,Nf(((e,{runner:t},n)=>{const r=Bd(n)?{params:e,req:{rs(e){},rj(e){}}}:e;return n.meta||(n.meta={fxID:lf()}),pd({target:t,params:r,defer:1,scope:Ud(n),meta:n.meta}),r.params}))),o.create=e=>{const t=wd(),n={params:e,req:t};if(Kf&&!Xf){const e=Kf;t.req.finally((()=>{Gf(e)})).catch((()=>{}))}return pd({target:o,params:n,scope:Kf}),t.req};const f=o.inFlight=kd(0,{serialize:"ignore",named:($d(o,"name")||o.graphite.id)+".inFlight"}).on(o,(e=>e+1)).on(s,(e=>e-1)).map({fn:e=>e,named:"inFlight"});Wd(s,"needFxCounter","dec"),Wd(o,"needFxCounter",1);const p=o.pending=f.map({fn:e=>e>0,named:"pending"});return hf(o,[s,i,l,c,u,p,f]),null!=n&&n.domain&&n.domain.hooks.effect(o),o}function Td(e){let t;[e,t]=yd(e,1);const n=gd("attach",t);let{source:r,effect:o,mapParams:a,domain:s}=e;Xd(o)&&ud(vf(s),"`domain` can only be used with a plain function",n);const i=Ed(e,t);Wd(i,"attached",1);const{runner:l}=Dd(i).scope;let c;const u=(e,t,n)=>{const{params:o,req:s,handler:l}=e,c=i.finally,u=Sp(o,s,0,c,n),d=n.a,f=Xd(l);let p,h=1;if(a?[h,p]=_p(a,u,[o,d]):p=r&&f?d:o,h){if(!f)return e.args=[d,p],1;pd({target:l,params:{params:p,req:{rs:Sp(o,s,1,c,n),rj:u}},page:n.page,defer:1,meta:n.meta})}};if(r){let e;l.scope.runnerFn=u,Kd(r)?(e=r,hf(e,[i])):(e=xd(r),hf(i,[e])),c=[Nf((e=>e),0,1),Af(jd(e))],delete l.seq[1].order}else c=[Nf(u,1,1)];l.seq.splice(1,0,...c),i.use(o);const d=Bd(o);return d&&(Object.assign(Hd(i),md(i.shortName,d)),i.defaultConfig.parent=d),hp(o,i,"effect"),i}function Cd(e,t){const n=gd("merge",t);Sf(e,n,"first argument");const r=_d({name:hd(e,"merge"),derived:1,and:t});return fp(e,r,[],"merge"),r}function Id(e,t){let n=0;return cd(xp,(r=>{r in e&&(ud(null!=e[r],wp(t,r)),n=1)})),n}function Rd(...e){let t,n,r,o,[[a,s,i],l]=yd(e),c=1;const u=gd("sample",l);return vf(s)&&gf(a)&&Id(a,u)&&(s=a.clock,i=a.fn,"batch"in a?c=a.batch:(nf(!("greedy"in a),"greedy in sample","batch",u),c=!a.greedy),o=a.filter,t=a.target,n=a.name,r=a.sid,a=a.source),Ep("sample",s,a,o,t,i,n,l,c,1,0,r)}function Od(e,{scope:t,safe:n}={}){ud(t||Kf||n,"scopeBind: scope not found");const r=t||Kf;return t=>{function n(){Gf(s)}let o,a=0;const s=Kf;Gf(r);try{o=e(t)}catch(e){o=e,a=1}if(n(),a)throw o;return o instanceof Promise&&o.then(n,n),o}}function Nd({unit:e,fn:t,scope:n,batch:r}){const o=[Df.run({fn:e=>t(e)})];r&&o.unshift(Df.compute({priority:"sampler",batch:1})),Kd(e)&&o.unshift(Df.mov({store:e.stateRef,to:"stack"}));const a=Array.isArray(e)?e:[e];if(n){const e=[],t=n.additionalLinks;return a.forEach((n=>{const r=t[n.graphite.id]||[];t[n.graphite.id]=r;const a=fd({node:Ad(o,n),meta:{watchOp:n.kind}});r.push(a),e.push((()=>{const e=r.indexOf(a);-1!==e&&r.splice(e,1),up(a)}))})),vd((()=>{e.forEach((e=>e()))}))}{const e=fd({node:o,parent:a,family:{owners:a}});return vd((()=>{up(e)}))}}function Ad(e,t){return Kd(t)?[Df.mov({store:t.stateRef,to:"stack"}),...e]:e}const Md="undefined"!=typeof Symbol&&Symbol.observable||"@@observable",Dd=e=>e.graphite||e,Pd=e=>e.family.owners,Ld=e=>e.family.links,jd=e=>e.stateRef,Fd=e=>e.value,zd=e=>e.subscribers,Bd=e=>e.parent,Ud=e=>e.scope,$d=(e,t)=>Dd(e).meta[t],Wd=(e,t,n)=>Dd(e).meta[t]=n,Hd=e=>e.compositeName,qd=e=>(yf(e)||gf(e))&&"kind"in e,Vd=e=>t=>qd(t)&&t.kind===e,Kd=Vd("store"),Qd=Vd("event"),Xd=Vd("effect"),Jd=e=>qd(e)&&!!e.targetable,Yd=Vd("domain"),Gd=Vd("scope");var Zd={__proto__:null,unit:qd,store:Kd,event:Qd,effect:Xd,targetable:Jd,domain:Yd,scope:Gd,attached:e=>Xd(e)&&1==$d(e,"attached")};const ef=(e,t)=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)},tf=(e,t)=>e.push(t),nf=(e,t,n,r)=>!e&&void 0,rf=()=>{let e=0;return()=>""+ ++e},of=rf(),af=rf(),sf=rf(),lf=rf();let cf;let uf=null;const df=e=>{cf&&cf(e,uf)},ff=()=>uf&&uf.template,pf=e=>(e&&uf&&uf.sidRoot&&(e=`${uf.sidRoot}|${e}`),e),hf=(e,t)=>{const n=Dd(e);cd(t,(e=>{const t=Dd(e);"domain"!==n.family.type&&(t.family.type="crosslink"),tf(Pd(t),n),tf(Ld(n),t)}))},mf=(e=[])=>(Array.isArray(e)?e:[e]).flat().map(Dd),gf=e=>"object"==typeof e&&null!==e,yf=e=>"function"==typeof e,vf=e=>void 0===e,bf=e=>ud(gf(e)||yf(e),"expect first argument be an object"),_f=(e,t,n,r)=>ud(!(!gf(e)&&!yf(e)||!("family"in e)&&!("graphite"in e)),`${t}: expect ${n} to be a unit (store, event or effect)${r}`),Sf=(e,t,n)=>{Array.isArray(e)?cd(e,((e,r)=>_f(e,t,`${r} item of ${n}`,""))):_f(e,t,n," or array of units")},kf=(e,t,n="target")=>cd(mf(t),(t=>ud(!$d(t,"derived"),`${e}: derived unit in "${n}" is not supported, use createStore/createEvent instead"`))),xf=(e,{fn:t},{a:n})=>t(e,n),wf=(e,{fn:t},{a:n})=>t(n,e),Ef=(e,{fn:t})=>t(e),Tf=(e,t,n,r)=>{const o={id:af(),type:e,data:t};return n&&(o.order={priority:n},r&&(o.order.barrierID=++Cf)),o};let Cf=0;const If=({from:e="store",store:t,target:n,to:r=(n?"store":"stack"),batch:o,priority:a})=>Tf("mov",{from:e,store:t,to:r,target:n},a,o),Rf=({fn:e,batch:t,priority:n,safe:r=0,filter:o=0,pure:a=0})=>Tf("compute",{fn:e,safe:r,filter:o,pure:a},n,t),Of=({fn:e})=>Rf({fn:e,priority:"effect"}),Nf=(e,t,n)=>Rf({fn:e,safe:1,filter:t,priority:n&&"effect"}),Af=(e,t,n)=>If({store:e,to:t?"stack":"a",priority:n&&"sampler",batch:1}),Mf=(e=Ef,t)=>Rf({fn:e,pure:1,filter:t}),Df={mov:If,compute:Rf,filter:({fn:e,pure:t})=>Rf({fn:e,filter:1,pure:t}),run:Of},Pf=e=>({id:af(),current:e,initial:e}),Lf=({current:e})=>e,jf=(e,t)=>{e.before||(e.before=[]),tf(e.before,t)};let Ff=null;const zf=(e,t)=>{if(!e)return t;if(!t)return e;let n;return(e.v.type===t.v.type&&e.v.id>t.v.id||qf(e.v.type)>qf(t.v.type))&&(n=e,e=t,t=n),n=zf(e.r,t),e.r=e.l,e.l=n,e},Bf=[];let Uf=0;for(;Uf<6;)tf(Bf,{first:null,last:null,size:0}),Uf+=1;const $f=()=>{for(let e=0;e<6;e++){const t=Bf[e];if(t.size>0){if(3===e||4===e){t.size-=1;const e=Ff.v;return Ff=zf(Ff.l,Ff.r),e}1===t.size&&(t.last=null);const n=t.first;return t.first=n.r,t.size-=1,n.v}}},Wf=(e,t,n,r,o,a,s)=>Hf(0,{a:null,b:null,node:n,parent:r,value:o,page:t,scope:a,meta:s},e,0),Hf=(e,t,n,r)=>{const o=qf(n),a=Bf[o],s={v:{idx:e,stack:t,type:n,id:r},l:null,r:null};3===o||4===o?Ff=zf(Ff,s):(0===a.size?a.first=s:a.last.r=s,a.last=s),a.size+=1},qf=e=>{switch(e){case"child":return 0;case"pure":return 1;case"read":return 2;case"barrier":return 3;case"sampler":return 4;case"effect":return 5;default:return-1}},Vf=new Set;let Kf,Qf=1,Xf=0,Jf=0,Yf=null;const Gf=e=>{Kf=e},Zf=e=>{Yf=e},ep=(e,t)=>{if(e){for(;e&&!e.reg[t];)e=e.parent;if(e)return e}return null},tp=(e,t,n,r)=>{const o=ep(e,n.id);return o?o.reg[n.id]:t?(op(t,n,r),t.reg[n.id]):n};let np;const rp=e=>e,op=(e,t,n,r,o)=>{const a=e.reg;if(a[t.id])return;const s=t.sid,i={id:t.id,current:t.initial,meta:t.meta};if(i.id in e.values.idMap)i.current=e.values.idMap[i.id];else if(s&&s in e.values.sidMap&&!(s in e.sidIdMap)){var l;const n=null==t||null===(l=t.meta)||void 0===l?void 0:l.serialize;i.current=(e.fromSerialize&&"ignore"!==n&&(null==n?void 0:n.read)||rp)(e.values.sidMap[s])}else if(t.before&&!o){let o=0;const s=n||!t.noInit||r;cd(t.before,(t=>{switch(t.type){case"map":{const o=t.from;if((o||t.fn)&&(o&&op(e,o,n,r),s)){const e=o&&a[o.id].current;i.current=t.fn?t.fn(e):e}break}case"field":op(e,t.from,n,r),o||(o=1,i.current=Array.isArray(i.current)?[...i.current]:{...i.current}),s&&(i.current[t.field]=a[a[t.from.id].id].current)}}))}s&&(e.sidIdMap[s]=t.id),a[t.id]=i},ap=(e,t,n)=>{try{return t(Fd(n),e.scope,n)}catch(t){e.fail=1,e.failReason=t}},sp=(e,t={})=>(gf(e)&&(sp(e.or,t),ld(e,((e,n)=>{vf(e)||"or"===n||"and"===n||(t[n]=e)})),sp(e.and,t)),t),ip=(e,t)=>{ef(e.next,t),ef(Pd(e),t),ef(Ld(e),t)},lp=(e,t,n)=>{let r;e.next.length=0,e.seq.length=0,e.scope=null;let o=Ld(e);for(;r=o.pop();)ip(r,e),(t||n&&"sample"!==e.meta.op||"crosslink"===r.family.type)&&lp(r,t,"on"!==r.meta.op&&n);for(o=Pd(e);r=o.pop();)ip(r,e),n&&"crosslink"===r.family.type&&lp(r,t,"on"!==r.meta.op&&n)},cp=e=>e.clear(),up=(e,{deep:t}={})=>{let n=0;if(e.ownerSet&&e.ownerSet.delete(e),Kd(e))cp(zd(e));else if(Yd(e)){n=1;const t=e.history;cp(t.events),cp(t.effects),cp(t.stores),cp(t.domains)}lp(Dd(e),!!t,n)},dp=e=>vd((()=>up(e))),fp=(e,t,n,r,o)=>fd({node:n,parent:e,child:t,scope:{fn:o},meta:{op:r},family:{owners:[e,t],links:t},regional:1}),pp=(e,t)=>(ud(yf(t),".watch argument should be a function"),dp(fd({scope:{fn:t},node:[Of({fn:Ef})],parent:e,meta:{op:"watch"},family:{owners:e},regional:1}))),hp=(e,t,n="event")=>{Bd(e)&&Bd(e).hooks[n](t)},mp=(e,t,n)=>{const r=sp(n),o="domain"===e,a=of(),{sid:s=null,named:i=null,domain:l=null,parent:c=l}=r,u=i||r.name||(o?"":a),d=md(u,c),f={op:t.kind=e,name:t.shortName=u,sid:t.sid=pf(s),named:i,unitId:t.id=a,serialize:r.serialize,derived:r.derived,config:r};if(t.targetable=!r.derived,t.parent=c,t.compositeName=d,t.defaultConfig=r,t.getType=()=>(nf(0,"getType","compositeName.fullName"),d.fullName),!o){t.subscribe=e=>(bf(e),t.watch(yf(e)?e:t=>e.next&&e.next(t))),t[Md]=()=>t;const e=ff();e&&(f.nativeTemplate=e)}return f},gp=(e,t,n,r)=>{let o;gf(n)&&(o=n,n=n.fn);const a=_d({name:`${e.shortName} → *`,derived:1,and:o});return fp(e,a,r,t,n),a},yp="undefined is used to skip updates. To allow undefined as a value provide explicit { skipVoid: false } option",vp=(e,t,n,r,o)=>{const a=jd(t),s=If({store:a,to:"a",priority:"read"});"map"===n&&(s.data.softRead=1);const i=[s,Mf(r)];return bd("storeOnMap",a,i,Kd(e)&&jd(e)),fp(e,t,i,n,o)},bp=(e,t,n,r,o,a)=>{const s=gd("combine",r),i=e?e=>[...e]:e=>({...e}),l=e?[]:{},c=i(l),u=Pf(c),d=Pf(1);u.type=e?"list":"shape",u.noInit=1,bd("combineBase",u,d);const f=kd(c,{name:hd(n),derived:1,...a,and:r}),p=jd(f);p.noInit=1,Wd(f,"isCombine",1);const h=Af(u);h.order={priority:"barrier"};const m=If({store:p,to:"b",priority:"read"});m.data.softRead=1;const g=[Nf(((e,t,n)=>(n.scope&&!n.scope.reg[u.id]&&(n.c=1),e))),h,If({store:d,to:"b"}),Nf(((e,{key:n},r)=>{if(r.c||e!==r.a[n])return t&&r.b&&(r.a=i(r.a)),r.a[n]=e,1}),1),If({from:"a",target:u}),If({from:"value",store:0,target:d}),If({from:"value",store:1,target:d,priority:"barrier",batch:1}),Af(u,1,1),o&&Mf(),m];if(ld(n,((e,t)=>{if(!Kd(e))return ud(!qd(e)&&!vf(e),`combine expects a store in a field ${t}`,s),void(c[t]=l[t]=e);l[t]=e.defaultState,c[t]=e.getState();const n=fp(e,f,g,"combine",o);n.scope.key=t;const r=jd(e);jf(u,{type:"field",field:t,from:r}),bd("combineField",r,n)})),f.defaultShape=n,jf(p,{type:"map",from:u,fn:o}),!ff())if(o){const e=o(c);vf(e),p.current=e,p.initial=e,f.defaultState=e}else f.defaultState=l;return f},_p=(e,t,n)=>{try{return[1,e(...n)]}catch(e){return t(e),[0,null]}},Sp=(e,t,n,r,o)=>a=>{pd({target:[r,kp],params:[n?{status:"done",params:e,result:a}:{status:"fail",params:e,error:a},{value:a,fn:n?t.rs:t.rj}],defer:1,page:o.page,scope:o.scope,meta:o.meta})},kp=fd({node:[Of({fn:({fn:e,value:t})=>e(t)})],meta:{op:"fx",fx:"sidechain"}}),xp=["source","clock","target"],wp=(e,t)=>e+`: ${t} should be defined`,Ep=(e,t,n,r,o,a,s,i,l,c,u,d)=>{const f=gd(e,i),p=!!o;ud(!vf(n)||!vf(t),wp(f,"either source or clock"));let h=0;vf(n)?h=1:qd(n)||(n=xd(n)),vf(t)?t=n:(Sf(t,f,"clock"),Array.isArray(t)&&(t=Cd(t))),h&&(n=t),i||s||(s=n.shortName);let m="none";(u||r)&&(qd(r)?m="unit":(ud(yf(r),"`filter` should be function or unit"),m="fn")),o?(Sf(o,f,"target"),kf(f,o)):"none"===m&&c&&Kd(n)&&Kd(t)?o=kd(a?a(Lf(jd(n)),Lf(jd(t))):Lf(jd(n)),{name:s,sid:d,or:i}):(o=_d({name:s,derived:1,or:i}),bd("sampleTarget",Dd(o)));const g=Pf();let y=[];if("unit"===m){const[n,a,s]=Cp(r,o,t,g,e);s||y.push(...Tp(a)),y.push(...Tp(n))}const v=[];if(h)l&&v.push(Af(g,1,1));else{const[r,a,s]=Cp(n,o,t,g,e);s||v.push(...Tp(a)),v.push(Af(r,1,l))}const b=fp(t,o,[bd("sampleSourceLoader"),If({from:"stack",target:g}),...v,...y,Af(g),"fn"===m&&Mf(((e,t,{a:n})=>r(e,n)),1),a&&Mf(xf),bd("sampleSourceUpward",p)],e,a);return hf(n,[b]),Object.assign(b.meta,i,{joint:1}),o},Tp=e=>[Af(e),Nf(((e,t,{a:n})=>n),1)],Cp=(e,t,n,r,o)=>{const a=Kd(e),s=a?jd(e):Pf(),i=Pf(a);return a||fd({parent:e,node:[If({from:"stack",target:s}),If({from:"value",store:1,target:i})],family:{owners:[e,t,n],links:t},meta:{op:o},regional:1}),bd("sampleSource",i,s,r),[s,i,a]};var Ip=o(242),Rp=o(888);function Op(e,t){const n=Zd.unit(e);let r={};n?r={unit:e}:"@@unitShape"in e?"function"==typeof e["@@unitShape"]?r=e["@@unitShape"]():Pp("expect @@unitShape to be a function"):r=e;const o=Array.isArray(r),a=La.useRef({stale:1,justSubscribed:0,scope:t}),[s,i,l,c,u]=La.useMemo((()=>{a.current.stale=1;const e=Array.isArray(r)?[]:{},o=[],s=[],i=[],l=[];for(const a in r){if(!{}.hasOwnProperty.call(r,a))continue;const c=r[a];Zd.unit(c)||Pp(`expect useUnit ${n?"argument":`value in key "${a}"`} to be a unit`),Zd.event(c)||Zd.effect(c)?(e[a]=t?Od(c,{scope:t}):c,i.push(a),l.push(c)):(e[a]=null,o.push(a),s.push(c))}return[e,o,s,i,l]}),[a,t,...Object.keys(r),...Object.values(r)]),d=La.useRef({value:s,storeKeys:i,eventKeys:c,eventValues:u}),f=La.useCallback((e=>{const n=a.current;return n.justSubscribed=1,Nd({unit:l,fn:()=>{n.stale||(n.stale=1,e())},scope:t,batch:1})}),[l,t,d,a]),p=La.useCallback((()=>{const e=d.current,r=a.current;let f,p=0;const h=e.value,m=e.storeKeys,g=e.eventKeys,y=e.eventValues,v=t!==r.scope;if(r.stale||r.justSubscribed||v){p=!r.justSubscribed||v,f=o?[...s]:{...s},m.length===i.length&&g.length===c.length||(p=1);for(let e=0;e<i.length;e++){const n=Fp(l[e],t),r=i[e];p||(p=m.includes(r)?h[r]!==n:1),f[r]=n}for(let e=0;e<c.length;e++){const t=u[e],n=c[e];p||(p=g.includes(n)?y[g.indexOf(n)]!==t:1)}}return p&&(e.value=f),e.storeKeys=i,e.eventKeys=c,e.eventValues=u,r.stale=0,r.justSubscribed=!p,r.scope=t,n?e.value.unit:e.value}),[f,l,u,t,d,a]);return Lp(f,p,p)}function Np([e,t],n){let r,o,a,s,i=zp;t?(r=t,a=e,s=[]):({fn:r,store:a,keys:s,defaultValue:o,updateFilter:i=zp}=e),Zd.store(a)||Pp("useStoreMap expects a store"),Array.isArray(s)||Pp("useStoreMap expects an array as keys"),"function"!=typeof r&&Pp("useStoreMap expects a function");const l=La.useCallback((e=>Nd({unit:a,fn:e,scope:n})),[a,n]),c=La.useCallback((()=>Fp(a,n)),[a,n]),u=La.useRef(),d=La.useRef(),f=La.useRef(s);return jp(l,c,c,(e=>{if(u.current!==e||!((e,t)=>{if(!e||!t||e.length!==t.length)return 0;let n=1;for(let r=0;r<e.length;r++)if(e[r]!==t[r]){n=0;break}return n})(f.current,s)){let t=r(e,s);void 0===t&&void 0!==o&&(t=o),u.current=e,f.current=s,void 0!==t&&(d.current=t)}return d.current}),((e,t)=>!i(t,e)))}function Ap(e){const t=La.useContext(Bp);return e&&!t&&Pp("No scope found, consider adding <Provider> to app root"),t}function Mp(e,t){return Op(e,Ap(null==t?void 0:t.forceScope))}function Dp(e,t){return Np([e,t],Ap(null==e?void 0:e.forceScope))}const Pp=e=>{throw Error(e)},{useSyncExternalStore:Lp}=("undefined"!=typeof window?La.useLayoutEffect:La.useEffect,Rp),{useSyncExternalStoreWithSelector:jp}=Ip,Fp=(e,t)=>t?t.getState(e):e.getState(),zp=(e,t)=>e!==t,Bp=La.createContext(null),{Provider:Up}=Bp;function $p(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wp}=Object.prototype,{getPrototypeOf:Hp}=Object,qp=(Vp=Object.create(null),e=>{const t=Wp.call(e);return Vp[t]||(Vp[t]=t.slice(8,-1).toLowerCase())});var Vp;const Kp=e=>(e=e.toLowerCase(),t=>qp(t)===e),Qp=e=>t=>typeof t===e,{isArray:Xp}=Array,Jp=Qp("undefined");const Yp=Kp("ArrayBuffer");const Gp=Qp("string"),Zp=Qp("function"),eh=Qp("number"),th=e=>null!==e&&"object"==typeof e,nh=e=>{if("object"!==qp(e))return!1;const t=Hp(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},rh=Kp("Date"),oh=Kp("File"),ah=Kp("Blob"),sh=Kp("FileList"),ih=Kp("URLSearchParams");function lh(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Xp(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function ch(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const uh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,dh=e=>!Jp(e)&&e!==uh;const fh=(ph="undefined"!=typeof Uint8Array&&Hp(Uint8Array),e=>ph&&e instanceof ph);var ph;const hh=Kp("HTMLFormElement"),mh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gh=Kp("RegExp"),yh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};lh(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},vh="abcdefghijklmnopqrstuvwxyz",bh="0123456789",_h={DIGIT:bh,ALPHA:vh,ALPHA_DIGIT:vh+vh.toUpperCase()+bh};const Sh=Kp("AsyncFunction"),kh={isArray:Xp,isArrayBuffer:Yp,isBuffer:function(e){return null!==e&&!Jp(e)&&null!==e.constructor&&!Jp(e.constructor)&&Zp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Zp(e.append)&&("formdata"===(t=qp(e))||"object"===t&&Zp(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Yp(e.buffer),t},isString:Gp,isNumber:eh,isBoolean:e=>!0===e||!1===e,isObject:th,isPlainObject:nh,isUndefined:Jp,isDate:rh,isFile:oh,isBlob:ah,isRegExp:gh,isFunction:Zp,isStream:e=>th(e)&&Zp(e.pipe),isURLSearchParams:ih,isTypedArray:fh,isFileList:sh,forEach:lh,merge:function e(){const{caseless:t}=dh(this)&&this||{},n={},r=(r,o)=>{const a=t&&ch(n,o)||o;nh(n[a])&&nh(r)?n[a]=e(n[a],r):nh(r)?n[a]=e({},r):Xp(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&lh(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(lh(t,((t,r)=>{n&&Zp(t)?e[r]=$p(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const i={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||i[s]||(t[s]=e[s],i[s]=!0);e=!1!==n&&Hp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:qp,kindOfTest:Kp,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Xp(e))return e;let t=e.length;if(!eh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:hh,hasOwnProperty:mh,hasOwnProp:mh,reduceDescriptors:yh,freezeMethods:e=>{yh(e,((t,n)=>{if(Zp(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Zp(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Xp(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:ch,global:uh,isContextDefined:dh,ALPHABET:_h,generateString:(e=16,t=_h.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Zp(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(th(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Xp(e)?[]:{};return lh(e,((e,t)=>{const a=n(e,r+1);!Jp(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Sh,isThenable:e=>e&&(th(e)||Zp(e))&&Zp(e.then)&&Zp(e.catch)};function xh(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}kh.inherits(xh,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:kh.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wh=xh.prototype,Eh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Eh[e]={value:e}})),Object.defineProperties(xh,Eh),Object.defineProperty(wh,"isAxiosError",{value:!0}),xh.from=(e,t,n,r,o,a)=>{const s=Object.create(wh);return kh.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),xh.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const Th=xh;function Ch(e){return kh.isPlainObject(e)||kh.isArray(e)}function Ih(e){return kh.endsWith(e,"[]")?e.slice(0,-2):e}function Rh(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ih(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Oh=kh.toFlatObject(kh,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Nh=function(e,t,n){if(!kh.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=kh.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!kh.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,s=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&kh.isSpecCompliantForm(t);if(!kh.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(kh.isDate(e))return e.toISOString();if(!i&&kh.isBlob(e))throw new Th("Blob is not supported. Use a Buffer instead.");return kh.isArrayBuffer(e)||kh.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let i=e;if(e&&!o&&"object"==typeof e)if(kh.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(kh.isArray(e)&&function(e){return kh.isArray(e)&&!e.some(Ch)}(e)||(kh.isFileList(e)||kh.endsWith(n,"[]"))&&(i=kh.toArray(e)))return n=Ih(n),i.forEach((function(e,r){!kh.isUndefined(e)&&null!==e&&t.append(!0===s?Rh([n],r,a):null===s?n:n+"[]",l(e))})),!1;return!!Ch(e)||(t.append(Rh(o,n,a),l(e)),!1)}const u=[],d=Object.assign(Oh,{defaultVisitor:c,convertValue:l,isVisitable:Ch});if(!kh.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!kh.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),kh.forEach(n,(function(n,a){!0===(!(kh.isUndefined(n)||null===n)&&o.call(t,n,kh.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t};function Ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Mh(e,t){this._pairs=[],e&&Nh(e,this,t)}const Dh=Mh.prototype;Dh.append=function(e,t){this._pairs.push([e,t])},Dh.toString=function(e){const t=e?function(t){return e.call(this,t,Ah)}:Ah;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Ph=Mh;function Lh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jh(e,t,n){if(!t)return e;const r=n&&n.encode||Lh,o=n&&n.serialize;let a;if(a=o?o(t,n):kh.isURLSearchParams(t)?t.toString():new Ph(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Fh=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){kh.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},zh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bh={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ph,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Uh="undefined"!=typeof window&&"undefined"!=typeof document,$h=(Wh="undefined"!=typeof navigator&&navigator.product,Uh&&["ReactNative","NativeScript","NS"].indexOf(Wh)<0);var Wh;const Hh="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,qh={...e,...Bh};const Vh=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const s=Number.isFinite(+a),i=o>=e.length;if(a=!a&&kh.isArray(r)?r.length:a,i)return kh.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!s;r[a]&&kh.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&kh.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!s}if(kh.isFormData(e)&&kh.isFunction(e.entries)){const n={};return kh.forEachEntry(e,((e,r)=>{t(function(e){return kh.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Kh={transitional:zh,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=kh.isObject(e);o&&kh.isHTMLForm(e)&&(e=new FormData(e));if(kh.isFormData(e))return r?JSON.stringify(Vh(e)):e;if(kh.isArrayBuffer(e)||kh.isBuffer(e)||kh.isStream(e)||kh.isFile(e)||kh.isBlob(e))return e;if(kh.isArrayBufferView(e))return e.buffer;if(kh.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Nh(e,new qh.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qh.isNode&&kh.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=kh.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Nh(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(kh.isString(e))try{return(t||JSON.parse)(e),kh.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Kh.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&kh.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Th.from(e,Th.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qh.classes.FormData,Blob:qh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kh.forEach(["delete","get","head","post","put","patch"],(e=>{Kh.headers[e]={}}));const Qh=Kh,Xh=kh.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jh=Symbol("internals");function Yh(e){return e&&String(e).trim().toLowerCase()}function Gh(e){return!1===e||null==e?e:kh.isArray(e)?e.map(Gh):String(e)}function Zh(e,t,n,r,o){return kh.isFunction(r)?r.call(this,t,n):(o&&(t=n),kh.isString(t)?kh.isString(r)?-1!==t.indexOf(r):kh.isRegExp(r)?r.test(t):void 0:void 0)}class em{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Yh(t);if(!o)throw new Error("header name must be a non-empty string");const a=kh.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Gh(e))}const a=(e,t)=>kh.forEach(e,((e,n)=>o(e,n,t)));return kh.isPlainObject(e)||e instanceof this.constructor?a(e,t):kh.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Xh[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Yh(e)){const n=kh.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(kh.isFunction(t))return t.call(this,e,n);if(kh.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Yh(e)){const n=kh.findKey(this,e);return!(!n||void 0===this[n]||t&&!Zh(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Yh(e)){const o=kh.findKey(n,e);!o||t&&!Zh(0,n[o],o,t)||(delete n[o],r=!0)}}return kh.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Zh(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return kh.forEach(this,((r,o)=>{const a=kh.findKey(n,o);if(a)return t[a]=Gh(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Gh(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return kh.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&kh.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Jh]=this[Jh]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Yh(e);t[r]||(!function(e,t){const n=kh.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return kh.isArray(e)?e.forEach(r):r(e),this}}em.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kh.reduceDescriptors(em.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),kh.freezeMethods(em);const tm=em;function nm(e,t){const n=this||Qh,r=t||n,o=tm.from(r.headers);let a=r.data;return kh.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function rm(e){return!(!e||!e.__CANCEL__)}function om(e,t,n){Th.call(this,null==e?"canceled":e,Th.ERR_CANCELED,t,n),this.name="CanceledError"}kh.inherits(om,Th,{__CANCEL__:!0});const am=om;const sm=qh.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];kh.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),kh.isString(r)&&s.push("path="+r),kh.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function im(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const lm=qh.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=kh.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const cm=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,s=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=r[s];o||(o=l),n[a]=i,r[a]=l;let u=s,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};function um(e,t){let n=0;const r=cm(50,250);return o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,i=a-n,l=r(i);n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:i,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const dm="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=tm.from(e.headers).normalize();let a,s,{responseType:i,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(kh.isFormData(r))if(qh.hasStandardBrowserEnv||qh.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=im(e.baseURL,e.url);function f(){if(!u)return;const r=tm.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Th("Request failed with status code "+n.status,[Th.ERR_BAD_REQUEST,Th.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),jh(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new Th("Request aborted",Th.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Th("Network Error",Th.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||zh;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Th(t,r.clarifyTimeoutError?Th.ETIMEDOUT:Th.ECONNABORTED,e,u)),u=null},qh.hasStandardBrowserEnv&&(l&&kh.isFunction(l)&&(l=l(e)),l||!1!==l&&lm(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&sm.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&kh.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),kh.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&"json"!==i&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",um(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",um(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new am(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===qh.protocols.indexOf(p)?n(new Th("Unsupported protocol "+p+":",Th.ERR_BAD_REQUEST,e)):u.send(r||null)}))},fm={http:null,xhr:dm};kh.forEach(fm,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const pm=e=>`- ${e}`,hm=e=>kh.isFunction(e)||null===e||!1===e,mm=e=>{e=kh.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!hm(n)&&(r=fm[(t=String(n)).toLowerCase()],void 0===r))throw new Th(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(pm).join("\n"):" "+pm(e[0]):"as no adapter specified";throw new Th("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function gm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new am(null,e)}function ym(e){gm(e),e.headers=tm.from(e.headers),e.data=nm.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return mm(e.adapter||Qh.adapter)(e).then((function(t){return gm(e),t.data=nm.call(e,e.transformResponse,t),t.headers=tm.from(t.headers),t}),(function(t){return rm(t)||(gm(e),t&&t.response&&(t.response.data=nm.call(e,e.transformResponse,t.response),t.response.headers=tm.from(t.response.headers))),Promise.reject(t)}))}const vm=e=>e instanceof tm?e.toJSON():e;function bm(e,t){t=t||{};const n={};function r(e,t,n){return kh.isPlainObject(e)&&kh.isPlainObject(t)?kh.merge.call({caseless:n},e,t):kh.isPlainObject(t)?kh.merge({},t):kh.isArray(t)?t.slice():t}function o(e,t,n){return kh.isUndefined(t)?kh.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!kh.isUndefined(t))return r(void 0,t)}function s(e,t){return kh.isUndefined(t)?kh.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(e,t)=>o(vm(e),vm(t),!0)};return kh.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=l[r]||o,s=a(e[r],t[r],r);kh.isUndefined(s)&&a!==i||(n[r]=s)})),n}const _m="1.6.7",Sm={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Sm[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const km={};Sm.transitional=function(e,t,n){return(r,o,a)=>{if(!1===e)throw new Th(function(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),Th.ERR_DEPRECATED);return t&&!km[o]&&(km[o]=!0),!e||e(r,o,a)}};const xm={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Th("options must be an object",Th.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const t=e[a],n=void 0===t||s(t,a,e);if(!0!==n)throw new Th("option "+a+" must be "+n,Th.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Th("Unknown option "+a,Th.ERR_BAD_OPTION)}},validators:Sm},wm=xm.validators;class Em{constructor(e){this.defaults=e,this.interceptors={request:new Fh,response:new Fh}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=bm(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&xm.assertOptions(n,{silentJSONParsing:wm.transitional(wm.boolean),forcedJSONParsing:wm.transitional(wm.boolean),clarifyTimeoutError:wm.transitional(wm.boolean)},!1),null!=r&&(kh.isFunction(r)?t.paramsSerializer={serialize:r}:xm.assertOptions(r,{encode:wm.function,serialize:wm.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&kh.merge(o.common,o[t.method]);o&&kh.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=tm.concat(a,o);const s=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[ym.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let f=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=ym.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return jh(im((e=bm(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}kh.forEach(["delete","get","head","options"],(function(e){Em.prototype[e]=function(t,n){return this.request(bm(n||{},{method:e,url:t,data:(n||{}).data}))}})),kh.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(bm(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Em.prototype[e]=t(),Em.prototype[e+"Form"]=t(!0)}));const Tm=Em;class Cm{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new am(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Cm((function(t){e=t}));return{token:t,cancel:e}}}const Im=Cm;const Rm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rm).forEach((([e,t])=>{Rm[t]=e}));const Om=Rm;const Nm=function e(t){const n=new Tm(t),r=$p(Tm.prototype.request,n);return kh.extend(r,Tm.prototype,n,{allOwnKeys:!0}),kh.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(bm(t,n))},r}(Qh);Nm.Axios=Tm,Nm.CanceledError=am,Nm.CancelToken=Im,Nm.isCancel=rm,Nm.VERSION=_m,Nm.toFormData=Nh,Nm.AxiosError=Th,Nm.Cancel=Nm.CanceledError,Nm.all=function(e){return Promise.all(e)},Nm.spread=function(e){return function(t){return e.apply(null,t)}},Nm.isAxiosError=function(e){return kh.isObject(e)&&!0===e.isAxiosError},Nm.mergeConfig=bm,Nm.AxiosHeaders=tm,Nm.formToJSON=e=>Vh(kh.isHTMLForm(e)?new FormData(e):e),Nm.getAdapter=mm,Nm.HttpStatusCode=Om,Nm.default=Nm;const Am=Nm;var Mm;!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(Mm||(Mm={}));class Dm{instance;securityData=null;securityWorker;secure;format;constructor({securityWorker:e,secure:t,format:n,...r}={}){this.instance=Am.create({...r,baseURL:r.baseURL||"http://localhost:3000/api/v1"}),this.secure=t,this.format=n,this.securityWorker=e}setSecurityData=e=>{this.securityData=e};mergeRequestParams(e,t){const n=e.method||t&&t.method;return{...this.instance.defaults,...e,...t||{},headers:{...n&&this.instance.defaults.headers[n.toLowerCase()]||{},...e.headers||{},...t&&t.headers||{}}}}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e||{}).reduce(((t,n)=>{const r=e[n],o=r instanceof Array?r:[r];for(const e of o){const r=e instanceof Blob||e instanceof File;t.append(n,r?e:this.stringifyFormItem(e))}return t}),new FormData)}request=async({secure:e,path:t,type:n,query:r,format:o,body:a,...s})=>{const i=("boolean"==typeof e?e:this.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},l=this.mergeRequestParams(s,i),c=o||this.format||void 0;return n===Mm.FormData&&a&&null!==a&&"object"==typeof a&&(a=this.createFormData(a)),n===Mm.Text&&a&&null!==a&&"string"!=typeof a&&(a=JSON.stringify(a)),this.instance.request({...l,headers:{...l.headers||{},...n&&n!==Mm.FormData?{"Content-Type":n}:{}},params:r,responseType:c,data:a,url:t}).then((e=>e.data))}}function Pm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Lm=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pm(e))&&(r&&(r+=" "),r+=t);return r},jm=e=>"number"==typeof e&&!isNaN(e),Fm=e=>"string"==typeof e,zm=e=>"function"==typeof e,Bm=e=>Fm(e)||zm(e)?e:null,Um=e=>(0,La.isValidElement)(e)||Fm(e)||zm(e)||jm(e);function $m(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:i,preventExitTransition:l,done:c,nodeRef:u,isIn:d,playToast:f}=e;const p=r?`${t}--${i}`:t,h=r?`${n}--${i}`:n,m=(0,La.useRef)(0);return(0,La.useLayoutEffect)((()=>{const e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,La.useEffect)((()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,c,a):c()};d||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[d]),La.createElement(La.Fragment,null,s)}}function Wm(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Hm=new Map;let qm=[];const Vm=new Set,Km=e=>Vm.forEach((t=>t(e))),Qm=()=>Hm.size>0;function Xm(e,t){var n;if(t)return!(null==(n=Hm.get(t))||!n.isToastActive(e));let r=!1;return Hm.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function Jm(e,t){Um(e)&&(Qm()||qm.push({content:e,options:t}),Hm.forEach((n=>{n.buildToast(e,t)})))}function Ym(e,t){Hm.forEach((n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)}))}function Gm(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:a,className:s,style:i,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const p=a||l&&0===c,h={...i,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(h.transform=`scaleX(${c})`);const m=Lm("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),g=zm(s)?s({rtl:u,type:o,defaultClassName:m}):Lm(m,s),y={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&r()}};return La.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},La.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),La.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:g,style:h,...y}))}let Zm=1;const eg=()=>""+Zm++;function tg(e){return e&&(Fm(e.toastId)||jm(e.toastId))?e.toastId:eg()}function ng(e,t){return Jm(e,t),t.toastId}function rg(e,t){return{...t,type:t&&t.type||e,toastId:tg(t)}}function og(e){return(t,n)=>ng(t,rg(e,n))}function ag(e,t){return ng(e,rg("default",t))}ag.loading=(e,t)=>ng(e,rg("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ag.promise=function(e,t,n){let r,{pending:o,error:a,success:s}=t;o&&(r=Fm(o)?ag.loading(o,n):ag.loading(o.render,{...n,...o}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,o)=>{if(null==t)return void ag.dismiss(r);const a={type:e,...i,...n,data:o},s=Fm(t)?{render:t}:t;return r?ag.update(r,{...a,...s}):ag(s.render,{...a,...s}),o},c=zm(e)?e():e;return c.then((e=>l("success",s,e))).catch((e=>l("error",a,e))),c},ag.success=og("success"),ag.info=og("info"),ag.error=og("error"),ag.warning=og("warning"),ag.warn=ag.warning,ag.dark=(e,t)=>ng(e,rg("default",{theme:"dark",...t})),ag.dismiss=function(e){!function(e){var t;if(Qm()){if(null==e||Fm(t=e)||jm(t))Hm.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=Hm.get(e.containerId);t?t.removeToast(e.id):Hm.forEach((t=>{t.removeToast(e.id)}))}}else qm=qm.filter((t=>null!=e&&t.options.toastId!==e))}(e)},ag.clearWaitingQueue=function(e){void 0===e&&(e={}),Hm.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},ag.isActive=Xm,ag.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=Hm.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:eg()};a.toastId!==e&&(a.staleId=e);const s=a.render||o;delete a.render,ng(s,a)}},ag.done=e=>{ag.update(e,{progress:1})},ag.onChange=function(e){return Vm.add(e),()=>{Vm.delete(e)}},ag.play=e=>Ym(!0,e),ag.pause=e=>Ym(!1,e);const sg="undefined"!=typeof window?La.useLayoutEffect:La.useEffect,ig=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return La.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},lg={info:function(e){return La.createElement(ig,{...e},La.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return La.createElement(ig,{...e},La.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return La.createElement(ig,{...e},La.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return La.createElement(ig,{...e},La.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return La.createElement("div",{className:"Toastify__spinner"})}},cg=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:a}=function(e){const[t,n]=(0,La.useState)(!1),[r,o]=(0,La.useState)(!1),a=(0,La.useRef)(null),s=(0,La.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:i,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var f,p;function h(){n(!0)}function m(){n(!1)}function g(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&m(),s.delta="x"===e.draggableDirection?n.clientX-s.start:n.clientY-s.start,s.start!==n.clientX&&(s.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function y(){document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",y);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(p=Hm.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||p.setToggle(f.id,f.fn),(0,La.useEffect)((()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",h),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",m)}}),[e.pauseOnFocusLoss]);const v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){s.didMove=!1,document.addEventListener("pointermove",g),document.addEventListener("pointerup",y);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(s.start=t.clientX,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=t.clientY,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:o,right:s}=a.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=s&&t.clientY>=n&&t.clientY<=r?m():h()}};return i&&l&&(v.onMouseEnter=m,e.stacked||(v.onMouseLeave=h)),d&&(v.onClick=e=>{u&&u(e),s.canCloseOnClick&&c()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:v}}(e),{closeButton:s,children:i,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:f,transition:p,position:h,className:m,style:g,bodyClassName:y,bodyStyle:v,progressClassName:b,progressStyle:_,updateId:S,role:k,progress:x,rtl:w,toastId:E,deleteToast:T,isIn:C,isLoading:I,closeOnClick:R,theme:O}=e,N=Lm("Toastify__toast",`Toastify__toast-theme--${O}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":R}),A=zm(m)?m({rtl:w,position:h,type:u,defaultClassName:N}):Lm(N,m),M=function(e){let{theme:t,type:n,isLoading:r,icon:o}=e,a=null;const s={theme:t,type:n};return!1===o||(zm(o)?a=o({...s,isLoading:r}):(0,La.isValidElement)(o)?a=(0,La.cloneElement)(o,s):r?a=lg.spinner():(e=>e in lg)(n)&&(a=lg[n](s))),a}(e),D=!!x||!l,P={closeToast:f,type:u,theme:O};let L=null;return!1===s||(L=zm(s)?s(P):(0,La.isValidElement)(s)?(0,La.cloneElement)(s,P):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return La.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},La.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},La.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(P)),La.createElement(p,{isIn:C,done:T,position:h,preventExitTransition:n,nodeRef:r,playToast:a},La.createElement("div",{id:E,onClick:c,"data-in":C,className:A,...o,style:g,ref:r},La.createElement("div",{...C&&{role:k},className:zm(y)?y({type:u}):Lm("Toastify__toast-body",y),style:v},null!=M&&La.createElement("div",{className:Lm("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},M),La.createElement("div",null,i)),L,La.createElement(Gm,{...S&&!D?{key:`pb-${S}`}:{},rtl:w,theme:O,delay:l,isRunning:t,isIn:C,closeToast:f,hide:d,type:u,style:_,className:b,controlledProgress:D,progress:x||0})))},ug=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},dg=$m(ug("bounce",!0)),fg=($m(ug("slide",!0)),$m(ug("zoom")),$m(ug("flip")),{position:"top-right",transition:dg,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function pg(e){let t={...fg,...e};const n=e.stacked,[r,o]=(0,La.useState)(!0),a=(0,La.useRef)(null),{getToastToRender:s,isToastActive:i,count:l}=function(e){const{subscribe:t,getSnapshot:n,setProps:r}=(0,La.useRef)(function(e){const t=e.containerId||1;return{subscribe(n){const r=function(e,t,n){let r=1,o=0,a=[],s=[],i=[],l=t;const c=new Map,u=new Set,d=()=>{i=Array.from(c.values()),u.forEach((e=>e()))},f=e=>{s=null==e?[]:s.filter((t=>t!==e)),d()},p=e=>{const{toastId:t,onOpen:r,updateId:o,children:a}=e.props,i=null==o;e.staleId&&c.delete(e.staleId),c.set(t,e),s=[...s,e.props.toastId].filter((t=>t!==e.staleId)),d(),n(Wm(e,i?"added":"updated")),i&&zm(r)&&r((0,La.isValidElement)(a)&&a.props)};return{id:e,props:l,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{c.forEach((n=>{null!=t&&t!==n.props.toastId||zm(n.toggle)&&n.toggle(e)}))},removeToast:f,toasts:c,clearQueue:()=>{o-=a.length,a=[]},buildToast:(t,s)=>{if((t=>{let{containerId:n,toastId:r,updateId:o}=t;const a=n?n!==e:1!==e,s=c.has(r)&&null==o;return a||s})(s))return;const{toastId:i,updateId:u,data:h,staleId:m,delay:g}=s,y=()=>{f(i)},v=null==u;v&&o++;const b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(s).filter((e=>{let[t,n]=e;return null!=n}))),toastId:i,updateId:u,data:h,closeToast:y,isIn:!1,className:Bm(s.className||l.toastClassName),bodyClassName:Bm(s.bodyClassName||l.bodyClassName),progressClassName:Bm(s.progressClassName||l.progressClassName),autoClose:!s.isLoading&&(_=s.autoClose,S=l.autoClose,!1===_||jm(_)&&_>0?_:S),deleteToast(){const e=c.get(i),{onClose:t,children:r}=e.props;zm(t)&&t((0,La.isValidElement)(r)&&r.props),n(Wm(e,"removed")),c.delete(i),o--,o<0&&(o=0),a.length>0?p(a.shift()):d()}};var _,S;b.closeButton=l.closeButton,!1===s.closeButton||Um(s.closeButton)?b.closeButton=s.closeButton:!0===s.closeButton&&(b.closeButton=!Um(l.closeButton)||l.closeButton);let k=t;(0,La.isValidElement)(t)&&!Fm(t.type)?k=(0,La.cloneElement)(t,{closeToast:y,toastProps:b,data:h}):zm(t)&&(k=t({closeToast:y,toastProps:b,data:h}));const x={content:k,props:b,staleId:m};l.limit&&l.limit>0&&o>l.limit&&v?a.push(x):jm(g)?setTimeout((()=>{p(x)}),g):p(x)},setProps(e){l=e},setToggle:(e,t)=>{c.get(e).toggle=t},isToastActive:e=>s.some((t=>t===e)),getSnapshot:()=>l.newestOnTop?i.reverse():i}}(t,e,Km);Hm.set(t,r);const o=r.observe(n);return qm.forEach((e=>Jm(e.content,e.options))),qm=[],()=>{o(),Hm.delete(t)}},setProps(e){var n;null==(n=Hm.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=Hm.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);const o=(0,La.useSyncExternalStore)(t,n,n);return{getToastToRender:function(e){if(!o)return[];const t=new Map;return o.forEach((e=>{const{position:n}=e.props;t.has(n)||t.set(n,[]),t.get(n).push(e)})),Array.from(t,(t=>e(t[0],t[1])))},isToastActive:Xm,count:null==o?void 0:o.length}}(t),{className:c,style:u,rtl:d,containerId:f}=t;function p(e){const t=Lm("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return zm(c)?c({position:e,rtl:d,defaultClassName:t}):Lm(t,Bm(c))}function h(){n&&(o(!0),ag.play())}return sg((()=>{if(n){var e;const n=a.current.querySelectorAll('[data-in="true"]'),o=12,s=null==(e=t.position)?void 0:e.includes("top");let i=0,l=0;Array.from(n).reverse().forEach(((e,t)=>{const n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=s?"top":"bot");const a=i*(r?.2:1)+(r?0:o*t);n.style.setProperty("--y",`${s?a:-1*a}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(r?l:0))),i+=n.offsetHeight,l+=.025}))}}),[r,l,n]),La.createElement("div",{ref:a,className:"Toastify",id:f,onMouseEnter:()=>{n&&(o(!1),ag.pause())},onMouseLeave:h},s(((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return La.createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map((e=>{let{content:t,props:r}=e;return La.createElement(cg,{...r,stacked:n,collapseAll:h,isIn:i(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)})))})))}const hg=new class extends Dm{api={create:(e,t={})=>this.request({path:"/api/todos/create",method:"POST",body:e,secure:!0,type:Mm.Json,...t}),delete:(e,t={})=>this.request({path:"/api/todos/delete",method:"DELETE",query:e,secure:!0,...t}),update:(e,t,n={})=>this.request({path:"/api/todos/update",method:"PUT",query:t,body:e,secure:!0,type:Mm.Json,...n}),list:(e={})=>this.request({path:"/api/todos/list",method:"GET",secure:!0,...e}),sync:(e,t={})=>this.request({path:"/api/todos/sync",method:"POST",body:e,secure:!0,type:Mm.Json,...t}),requestCode:(e,t={})=>this.request({path:"/api/users/request-code",method:"POST",body:e,secure:!0,type:Mm.Json,...t}),verifyCode:(e,t={})=>this.request({path:"/api/users/verify-code",method:"POST",body:e,type:Mm.Json,...t}),getUser:(e={})=>this.request({path:"/api/users/profile",method:"GET",secure:!0,...e})}}({baseURL:"localhost"!==location.host?`${location.origin}/`:"/api"}),{api:mg}=hg;hg.instance.interceptors.response.use((e=>e),(e=>{const t=e?.response?.data?.message||"";return t&&ag.error(t),Promise.reject(e)}));const gg={user:"user"},yg=Object.values(gg),vg={main:{rules:yg,url:()=>"/cabinet"},login:{rules:yg,url:()=>"/login"},agreement:{rules:yg,url:()=>"/agreement"}},bg=Ed(mg.getUser),_g=kd(gg.user),Sg=kd(null);Rd({clock:bg.doneData,target:Sg});var kg=new Map,xg=e=>([t],n)=>e(n,t),wg=_d();function Eg({keyArea:e=""}={}){var t=()=>({get(){},set(){}});return t.keyArea=e,t.noop=!0,t}function Tg({storage:e,sync:t=!1,serialize:n=JSON.stringify,deserialize:r=JSON.parse,timeout:o,def:a}){var s=(s,i)=>{var l,c,u,d=()=>u.setItem(s,n(c)),f=e=>{l=clearTimeout(l),e&&d(),"undefined"!=typeof removeEventListener&&removeEventListener("beforeunload",f)};return t&&"undefined"!=typeof addEventListener&&addEventListener("storage",(n=>{n.storageArea===e()&&(n.key===s&&i("force"===t?void 0:n.newValue),null===n.key&&i(null))})),{get(t){f();var n=void 0!==t?t:e().getItem(s);return null===n?void 0!==a?a:t:r(n)},set(t){c=t,u=e(),void 0===o?d():l||(l=setTimeout(f,o,1),"undefined"!=typeof addEventListener&&addEventListener("beforeunload",f))}}};try{s.keyArea=e()}catch(e){}return s}function Cg(e){return function(){try{return"undefined"!=typeof localStorage}catch(e){return!0}}()?Tg({storage:()=>localStorage,sync:!0,...e}):Eg({keyArea:"local"})}wg.watch((e=>{})),Eg.factory=!0,Tg.factory=!0,Cg.factory=!0;var Ig=function(e){return t=>function(e){var{adapter:t,store:n,source:r=n,target:o=n,clock:a=r,done:s,fail:i=wg,finally:l,pickup:c,context:u,key:d,keyPrefix:f="",contract:p}=e;if(!t)throw Error("Adapter is not defined");if(!r)throw Error("Store or source is not defined");if(!o)throw Error("Target is not defined");if(!d&&r.shortName===r.id)throw Error("Key or name is not defined");if(r===o&&!Zd.store(r))throw Error("Source must be different from target");void 0===e.def&&Zd.store(r)&&(e.def=r.defaultState);var h="factory"in t?t(e):t,m=d||r.shortName,g=function(e,t){var n=kg.get(e);void 0===n&&(n=new Map,kg.set(e,n));var r=n.get(t);return void 0!==r||(r=kd(null,{serialize:"ignore"}),n.set(t,r)),r}(h.keyArea||h,f+m),y=fd(),v=()=>up(y),b=e=>({status:t="fail",params:n,result:r,error:o})=>"done"===t?{status:t,key:m,keyPrefix:f,operation:e,value:"get"===e?r:n}:{status:t,key:m,keyPrefix:f,operation:e,value:"function"==typeof n?void 0:n,error:o};return dd(y,(()=>{var e=kd([],{serialize:"ignore"}),t=h(f+m,(e=>{S(e)})),n=Td({source:e,effect:xg(t.get)}),d=Td({source:e,effect:xg(t.set)}),y=Ed((e=>t=>!e||void 0===t||("isData"in e?e.isData(t):e(t))?t:(()=>{throw"getErrorMessages"in e?e.getErrorMessages(t):void 0})())(p)),v=_d(),_=_d(),S=n;e.updates.watch((()=>{S=Od(n,{safe:!0})})),Rd({clock:a,source:r,target:_}),Rd({clock:_,source:g,filter:(e,t)=>t!==e,fn:(e,t)=>t,target:d}),Rd({clock:[n.doneData,Rd(d,d.done)],filter:e=>void 0!==e,target:g}),Rd({clock:[n.doneData,g],target:y}),Rd({clock:y.doneData,filter:e=>void 0!==e,target:o}),Rd({clock:[n.finally.map(b("get")),d.finally.map(b("set")),y.fail.map(b("validate"))],target:v}),l&&Rd({clock:v,target:l}),s&&Rd({clock:v,filter:({status:e})=>"done"===e,fn:({key:e,keyPrefix:t,operation:n,value:r})=>({key:e,keyPrefix:t,operation:n,value:r}),target:s}),Rd({clock:v,filter:({status:e})=>"fail"===e,fn:({key:e,keyPrefix:t,operation:n,error:r,value:o})=>({key:e,keyPrefix:t,operation:n,error:r,value:o}),target:i}),u&&e.on(u,(([e],t)=>[void 0===t?e:t])),c?(Rd({clock:c,fn:()=>{},target:n}),e.on(c,(([e],t)=>[void 0===t?e:t]))):n()})),v.unsubscribe=v}({adapter:Cg,...e,...t})}();const Rg=Ed(mg.requestCode),Og=Ed(mg.verifyCode),Ng=Ed((e=>new Promise((t=>{!function(e,t){e.instance.defaults.headers.common.Authorization=`Bearer ${t||""}`}(hg,e),t(e)})))),Ag=_d(),Mg=_d(),Dg=kd("initial"),Pg=xd(Dg,(e=>"user"===e)),Lg=kd("email").on(Ag,((e,t)=>t)),jg=kd("");Rd({clock:Rg.doneData,fn:()=>"code",target:Lg}),Rd({clock:Og.doneData,fn:e=>e.token,target:[Ng,jg]}),Rd({clock:Ng.doneData,source:bg.pending,filter:e=>!e,fn:()=>{},target:bg}),Rd({clock:Mg,source:jg,filter:e=>Boolean(e),target:Ng}),Rd({clock:Mg,source:jg,filter:e=>!e,fn:()=>"guest",target:Dg}),Rd({clock:bg.failData,fn:()=>"guest",target:Dg}),Rd({clock:bg.doneData,fn:()=>"user",target:Dg}),Ig({key:ad.storageKeys.userSession,store:jg});const Fg=_d();kd(!1);Rd({clock:Fg,target:Mg});var zg=o(961),Bg=o.t(zg,2);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const Ug=ja.startTransition;Bg.flushSync,ja.useId;function $g(e){let{basename:t,children:n,future:r,window:o}=e,a=La.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),eu((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return Yc("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:Gc(t)}),null,e)}({window:o,v5Compat:!0}));let s=a.current,[i,l]=La.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=La.useCallback((e=>{c&&Ug?Ug((()=>l(e))):l(e)}),[l,c]);return La.useLayoutEffect((()=>s.listen(u)),[s,u]),La.createElement(td,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var Wg,Hg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wg||(Wg={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Hg||(Hg={}));const qg=({size:e=24,color:n="#000",...r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",...r,children:(0,t.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m7 12 3.33 3L17 9"})}),Vg=({size:e=24,color:n="#000",...r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",...r,children:(0,t.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.4 8v8.792M16.8 12.396H8"})}),Kg=({size:e=24,color:n="#000",...r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",...r,children:(0,t.jsx)("path",{fill:n,d:"M17.97 6.657c.447.446.447 1.17 0 1.616l-4.04 4.04 4.04 4.041a1.143 1.143 0 1 1-1.616 1.616l-4.04-4.04-4.04 4.04a1.143 1.143 0 0 1-1.616-1.616l4.04-4.04-4.041-4.04a1.143 1.143 0 1 1 1.616-1.616l4.04 4.04 4.041-4.041a1.143 1.143 0 0 1 1.617 0Z"})}),Qg=({size:e=24,color:n="#000",...r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,fill:"none",viewBox:"0 0 24 24",...r,children:(0,t.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"m5 8 7 7 7-7"})}),Xg=({size:e=24,color:n="#000",...r})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",...r,children:(0,t.jsx)("path",{fill:n,d:"M6.786 17.444c0 .856.707 1.556 1.571 1.556h6.286c.864 0 1.571-.7 1.571-1.556V9.667c0-.856-.707-1.556-1.571-1.556H8.357c-.864 0-1.571.7-1.571 1.556v7.777Zm9.428-11.666H14.25l-.558-.552a.797.797 0 0 0-.55-.226H9.858a.797.797 0 0 0-.55.226l-.558.552H6.786A.784.784 0 0 0 6 6.556c0 .427.354.777.786.777h9.428c.432 0 .786-.35.786-.777a.784.784 0 0 0-.786-.778Z"})});var Jg=o(72),Yg=o.n(Jg),Gg=o(825),Zg=o.n(Gg),ey=o(659),ty=o.n(ey),ny=o(56),ry=o.n(ny),oy=o(159),ay=o.n(oy),sy=o(113),iy=o.n(sy),ly=o(170),cy={};cy.styleTagTransform=iy(),cy.setAttributes=ry(),cy.insert=ty().bind(null,"head"),cy.domAPI=Zg(),cy.insertStyleElement=ay();Yg()(ly.A,cy);const uy=ly.A&&ly.A.locals?ly.A.locals:void 0;function dy({children:e,className:n}){return(0,t.jsx)("div",{className:uy.root,children:(0,t.jsx)("div",{className:Lm(uy.container,n),children:e})})}var fy=o(68),py={};py.styleTagTransform=iy(),py.setAttributes=ry(),py.insert=ty().bind(null,"head"),py.domAPI=Zg(),py.insertStyleElement=ay();Yg()(fy.A,py);const hy=fy.A&&fy.A.locals?fy.A.locals:void 0;function my({checked:e,disabled:n,className:r,iconProps:o,...a}){return(0,t.jsx)("div",{className:Lm(hy.root,{[hy.checked]:e,[hy.disabled]:n},r),...a,children:e&&(0,t.jsx)(qg,{...o})})}var gy=o(732),yy={};yy.styleTagTransform=iy(),yy.setAttributes=ry(),yy.insert=ty().bind(null,"head"),yy.domAPI=Zg(),yy.insertStyleElement=ay();Yg()(gy.A,yy);const vy=gy.A&&gy.A.locals?gy.A.locals:void 0;function by({value:e,onChangeText:n,placeholder:r,fullWidth:o,className:a,...s}){return(0,t.jsx)("div",{className:Lm(vy.root,{[vy.fullWith]:o}),children:(0,t.jsx)("input",{value:e,onChange:e=>{n(e.currentTarget.value)},placeholder:r,...s,className:Lm(vy.input,a)})})}var _y=o(927),Sy={};Sy.styleTagTransform=iy(),Sy.setAttributes=ry(),Sy.insert=ty().bind(null,"head"),Sy.domAPI=Zg(),Sy.insertStyleElement=ay();Yg()(_y.A,Sy);const ky=_y.A&&_y.A.locals?_y.A.locals:void 0;function xy({children:e,isDisabled:n,className:r,type:o="submit",...a}){return(0,t.jsx)("button",{className:Lm(ky.root,r),type:o,...a,disabled:n,children:e})}var wy=o(666),Ey={};Ey.styleTagTransform=iy(),Ey.setAttributes=ry(),Ey.insert=ty().bind(null,"head"),Ey.domAPI=Zg(),Ey.insertStyleElement=ay();Yg()(wy.A,Ey);const Ty=wy.A&&wy.A.locals?wy.A.locals:void 0;function Cy({minRows:e=3,placeholder:n="",className:r,onChangeText:o,value:a,style:s}){const[i,l]=(0,La.useState)(a),c=(0,La.useRef)(null);(0,La.useEffect)((()=>{c.current&&(c.current.style.height="auto",c.current.style.height=`${c.current.scrollHeight}px`)}),[i]);return(0,t.jsx)("textarea",{ref:c,placeholder:n,className:Lm(Ty.root,r),style:s,rows:e,value:i,onChange:e=>{const{value:t}=e.target;l(t),o(t)}})}var Iy=o(904),Ry={};Ry.styleTagTransform=iy(),Ry.setAttributes=ry(),Ry.insert=ty().bind(null,"head"),Ry.domAPI=Zg(),Ry.insertStyleElement=ay();Yg()(Iy.A,Ry);const Oy=Iy.A&&Iy.A.locals?Iy.A.locals:void 0;var Ny=o(176),Ay={};Ay.styleTagTransform=iy(),Ay.setAttributes=ry(),Ay.insert=ty().bind(null,"head"),Ay.domAPI=Zg(),Ay.insertStyleElement=ay();Yg()(Ny.A,Ay);const My=Ny.A&&Ny.A.locals?Ny.A.locals:void 0;function Dy(){return(0,t.jsxs)("div",{className:My.logo,children:[(0,t.jsx)(my,{checked:!0,className:My.logoImg,iconProps:{size:28}}),(0,t.jsx)("div",{className:My.logoText,children:"TodoSync"})]})}function Py(){const[e,n]=(0,La.useState)(""),[r,o]=(0,La.useState)(""),a=Mp(Lg),s=Mp(Rg.pending),i=Mp(Og.pending),l=s||i;return(0,t.jsx)("form",{className:Oy.root,onSubmit:"email"===a?async t=>{t.preventDefault();try{await Rg({email:e})}catch(e){}}:async t=>{t.preventDefault();try{await Og({email:e,code:r})}catch(e){}},children:(0,t.jsxs)("div",{className:Oy.auth,children:[(0,t.jsx)("div",{className:Oy.authLogo,children:(0,t.jsx)(Dy,{})}),(0,t.jsxs)("div",{className:Oy.authDescription,children:[(0,t.jsx)("div",{className:Oy.title,children:"ÐÐ²Ñ‚Ð¾Ñ€Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð½Ð° Ñайте"}),(0,t.jsx)("div",{className:Oy.text,children:"email"===a?(0,t.jsx)(t.Fragment,{children:"Ð”Ð»Ñ Ð²Ñ…Ð¾Ð´Ð° на наш Ñайт, пожалуйÑта, иÑпользуйте Ñвою Ñлектронную почту. Мы отправим вам четырехзначный проверочный код, который необходимо будет ввеÑти Ð´Ð»Ñ Ð¿Ð¾Ð´Ñ‚Ð²ÐµÑ€Ð¶Ð´ÐµÐ½Ð¸Ñ Ð²Ð°ÑˆÐµÐ¹ личноÑти."}):(0,t.jsx)(t.Fragment,{children:"ПожалуйÑта, введите четырехзначный проверочный код, отправленный на вашу Ñлектронную почту."})}),(0,t.jsx)("ul",{className:Oy.text,children:"email"===a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:"- Введите Ñвой email в поле Ð´Ð»Ñ Ð°Ð²Ñ‚Ð¾Ñ€Ð¸Ð·Ð°Ñ†Ð¸Ð¸."}),(0,t.jsx)("li",{children:"- Получите проверочный код на вашу почту."}),(0,t.jsx)("li",{children:"- Введите код на Ñайте Ð´Ð»Ñ Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð²Ñ…Ð¾Ð´Ð°."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:"- Введите проверочный код, отправленный на вашу почту."}),(0,t.jsx)("li",{children:"- Завершите вход, подтвердив код."})]})})]}),(0,t.jsx)("div",{className:Oy.authGroup,children:"email"===a?(0,t.jsx)(by,{placeholder:"Email",autoFocus:!0,value:e,onChangeText:n,fullWidth:!0}):(0,t.jsx)(by,{placeholder:"Проверочный код",autoFocus:!0,value:r,onChangeText:o,fullWidth:!0})}),(0,t.jsx)("div",{className:Lm(Oy.authGroup,Oy.authBtn),children:(0,t.jsx)(xy,{isDisabled:l,children:"email"===a?"Отправить код":"Подтвердить код"})})]})})}var Ly=o(699),jy={};jy.styleTagTransform=iy(),jy.setAttributes=ry(),jy.insert=ty().bind(null,"head"),jy.domAPI=Zg(),jy.insertStyleElement=ay();Yg()(Ly.A,jy);const Fy=Ly.A&&Ly.A.locals?Ly.A.locals:void 0;function zy({onEdit:e,onUpdate:n,onDelete:r,...o}){const a=Boolean(r);return(0,t.jsxs)("div",{className:Lm(Fy.card,{[Fy.cardCompleted]:o.completed}),onClick:()=>e?.(o),children:[(0,t.jsxs)("div",{className:Fy.cardWrap,children:[(0,t.jsxs)("div",{className:Lm(Fy.cardWrapLeft,{[Fy.cardWrapLeftWithButtons]:a}),children:[(0,t.jsx)("div",{className:Fy.cardCheckbox,children:(0,t.jsx)(my,{checked:Boolean(o.completed),disabled:o.completed,onClick:e=>{e.stopPropagation(),n?.({...o,completed:!o.completed})}})}),(0,t.jsx)("div",{className:Fy.cardTitle,children:o.title})]}),a&&(0,t.jsx)("div",{className:Fy.actions,children:(0,t.jsx)("button",{type:"button",className:Fy.actionsButton,onClick:()=>r?.(o),children:(0,t.jsx)(Xg,{})})})]}),Boolean(o.details?.length)&&(0,t.jsx)("div",{className:Fy.cardNote,children:o.details?.map((e=>e.data?.text))})]})}const By=Ed(mg.list),Uy=Ed((({uuid:e,completed:t,details:n,title:r})=>mg.update({completed:t,details:n?n[0]:void 0,title:r},{uuid:e}))),$y=Ed(mg.create),Wy=Ed(mg.delete),Hy=_d(),qy=_d(),Vy=kd(null),Ky=kd(!1),Qy=kd(""),Xy=xd(Vy,Qy,((e,t)=>(e?.todos||[]).filter((e=>e.title?.toLowerCase()?.includes(t.toLowerCase())||e.details?.[0].data?.text?.toLowerCase().includes(t.toLowerCase()))).reverse()));Rd({clock:By.doneData,fn:e=>e,target:Vy}),Rd({clock:Uy.doneData,source:Vy,fn:(e,t)=>e?{...e,todos:e.todos?.map((e=>e.uuid===t.uuid?t:e))}:null,target:Vy}),Rd({clock:$y.doneData,source:Vy,fn:(e,t)=>{return e?{...e,todos:[...e.todos||[],(n=t,{completed:n.completed,createdAt:n.createdAt,details:n.details?[{createdAt:n.createdAt,data:n.details.data,type:n.details.type,updatedAt:n.updatedAt}]:void 0,title:n.title,updatedAt:n.updatedAt,userId:n.userId,uuid:n.uuid})]}:null;var n},target:Vy}),Rd({clock:Wy.done,source:Vy,fn:(e,{params:t})=>e?{...e,todos:e.todos?.filter((e=>e.uuid!==t?.uuid))}:null,target:Vy}),Rd({clock:Hy,source:Ky,fn:e=>!e,target:Ky}),Rd({clock:qy,target:Qy}),Ig({store:Ky,key:ad.storageKeys.uncompleteOpen});const Jy=_d(),Yy=function(e,t,n){const r=gd("restore",n);if(ud(!Kd(e),"restore($store) is not supported",r),Qd(e)||Xd(e)){const r=Bd(e),o=kd(t,{parent:r,name:e.shortName,and:n});return fp(Xd(e)?e.doneData:e,o),r&&r.hooks.store(o),o}const o=Array.isArray(e)?[]:{};return ld(e,((e,t)=>o[t]=Kd(e)?e:kd(e,{name:t}))),o}(Jy,null),Gy=_d(),Zy=(e,t)=>{Jy({element:e,options:t})};_d();Yy.reset(Gy);var ev=o(937),tv={};tv.styleTagTransform=iy(),tv.setAttributes=ry(),tv.insert=ty().bind(null,"head"),tv.domAPI=Zg(),tv.insertStyleElement=ay();Yg()(ev.A,tv);const nv=ev.A&&ev.A.locals?ev.A.locals:void 0;function rv({todo:e,onSubmit:n}){const[r,o]=(0,La.useState)({title:e?.title||"",note:e?.details?.[0].data?.text||""}),a=Boolean(e);return(0,t.jsxs)("form",{onSubmit:async t=>{t.preventDefault();const o=r.note;try{e?await Uy({uuid:e.uuid,title:r.title,details:[{type:"text",data:{text:o}}]}):await $y({title:r.title,details:{type:"text",data:{text:o}}})}catch(t){}n?.()},children:[(0,t.jsx)("div",{className:nv.group,children:(0,t.jsx)(by,{value:r.title,onChangeText:e=>{o((t=>({...t,title:e})))},fullWidth:!0,placeholder:"Введите название",autoFocus:!0})}),(0,t.jsx)("div",{className:nv.group,children:(0,t.jsx)(Cy,{value:r.note,onChangeText:e=>{o((t=>({...t,note:e})))},maxRows:4,placeholder:"Введите опиÑание",className:nv.textarea})}),(0,t.jsx)("div",{className:Lm(nv.group,nv.groupBtn),children:(0,t.jsx)(xy,{type:"submit",children:a?"Обновить":"Создать"})})]})}function ov(){const e=Mp(Ky),n=Dp(Xy,(e=>e.filter((e=>!e.completed))||[])),r=Dp(Xy,(e=>e.filter((e=>e.completed))||[])),o=e=>{Zy((0,t.jsx)(rv,{todo:e,onSubmit:Gy}),{title:"Редактировать задачу"})};return(0,t.jsxs)("div",{className:Fy.list,children:[n.map((e=>(0,t.jsx)("div",{className:Fy.listItem,children:(0,t.jsx)(zy,{onUpdate:Uy,onEdit:o,...e})},e.uuid))),Boolean(r.length)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:Fy.head,children:[(0,t.jsxs)("div",{className:Lm(Fy.headTitle,{[Fy.headTitleClose]:e}),onClick:()=>{Hy()},children:["Завершенные ",(0,t.jsx)(Qg,{})]}),(0,t.jsx)("div",{className:Fy.headDeleteAll,onClick:async()=>{if(confirm("Ð’Ñ‹ уверены, что хотите удалить вÑе завершенные задачи?"))for(const e of r.reverse())try{await Wy({uuid:e.uuid})}catch(e){}},children:"Удалить вÑе"})]}),e&&r.map((e=>(0,t.jsx)("div",{className:Fy.listItem,children:(0,t.jsx)(zy,{onUpdate:Uy,onDelete:()=>Wy({uuid:e.uuid}),...e})},e.uuid)))]})]})}var av=o(773),sv={};sv.styleTagTransform=iy(),sv.setAttributes=ry(),sv.insert=ty().bind(null,"head"),sv.domAPI=Zg(),sv.insertStyleElement=ay();Yg()(av.A,sv);const iv=av.A&&av.A.locals?av.A.locals:void 0;var lv=o(295),cv={};cv.styleTagTransform=iy(),cv.setAttributes=ry(),cv.insert=ty().bind(null,"head"),cv.domAPI=Zg(),cv.insertStyleElement=ay();Yg()(lv.A,cv);const uv=lv.A&&lv.A.locals?lv.A.locals:void 0,dv=o.p+"85daaf7513823df965b2c61d6a147b20.png";function fv(){const[e,n]=(0,La.useState)(!1),r=Mp(Sg),o=(r?.email||"").split("@")[0];return(0,t.jsxs)("div",{className:uv.root,children:[(0,t.jsxs)("div",{className:uv.wrap,onClick:()=>{n((e=>!e))},children:[(0,t.jsx)("div",{className:uv.name,children:o}),(0,t.jsx)("div",{className:uv.avatar,style:{backgroundImage:`url(${dv})`}})]}),e&&(0,t.jsx)("div",{className:uv.menu,children:(0,t.jsx)("div",{className:uv.menuItem,onClick:()=>{n(!1)},children:"Выйти"})})]})}var pv=o(374),hv={};hv.styleTagTransform=iy(),hv.setAttributes=ry(),hv.insert=ty().bind(null,"head"),hv.domAPI=Zg(),hv.insertStyleElement=ay();Yg()(pv.A,hv);const mv=pv.A&&pv.A.locals?pv.A.locals:void 0;var gv=o(737),yv={};yv.styleTagTransform=iy(),yv.setAttributes=ry(),yv.insert=ty().bind(null,"head"),yv.domAPI=Zg(),yv.insertStyleElement=ay();Yg()(gv.A,yv);const vv=gv.A&&gv.A.locals?gv.A.locals:void 0;function bv(){return(0,t.jsxs)("div",{onClick:()=>{Zy((0,t.jsx)(rv,{onSubmit:Gy}),{title:"Создать новую задачу"})},className:vv.root,children:[(0,t.jsx)("div",{className:vv.icon,children:(0,t.jsx)(Vg,{})}),(0,t.jsx)("div",{className:vv.text,children:"Добавить новую задачу..."})]})}function _v(){const e=Mp(Qy);return(0,t.jsxs)("div",{className:mv.root,children:[(0,t.jsx)(bv,{}),(0,t.jsx)(by,{placeholder:"ПоиÑк по заголовку",className:mv.search,autoFocus:!0,onChangeText:qy,value:e})]})}function Sv(){return(0,t.jsxs)("div",{className:iv.root,children:[(0,t.jsxs)(dy,{className:iv.container,children:[(0,t.jsx)(Dy,{}),(0,t.jsx)(fv,{})]}),(0,t.jsx)(dy,{className:iv.subheader,children:(0,t.jsx)(_v,{})})]})}var kv=o(199),xv={};xv.styleTagTransform=iy(),xv.setAttributes=ry(),xv.insert=ty().bind(null,"head"),xv.domAPI=Zg(),xv.insertStyleElement=ay();Yg()(kv.A,xv);const wv=kv.A&&kv.A.locals?kv.A.locals:void 0;const Ev=[{element:function(){const[e,n]=(0,La.useState)({isScrolling:!1,isScrollTop:!1,isScrollBottom:!1});return(0,t.jsx)("div",{className:wv.root,children:(0,t.jsxs)("div",{className:wv.container,children:[(0,t.jsx)("div",{className:wv.head,children:(0,t.jsx)("div",{className:wv.header,children:(0,t.jsx)(Sv,{})})}),(0,t.jsx)("main",{className:Lm(wv.body,{[wv.bodyScrollTop]:e.isScrollTop,[wv.bodyScrollBottom]:e.isScrollBottom}),children:(0,t.jsx)("div",{className:wv.bodyScroll,onScroll:e=>{const t=e.target,r=t.scrollTop,o=t.scrollHeight,a=t.clientHeight,s=0!==r,i=Math.floor(o-r)!==a;n({isScrolling:!0,isScrollTop:s,isScrollBottom:i}),setTimeout((()=>{n((e=>({...e,isScrolling:!1})))}),1e3)},children:(0,t.jsx)(Zu,{})})})]})})},id:"cabinet",redirect:vg.main.url(),children:[{path:vg.main.url(),element:function(){return(0,La.useEffect)((()=>{By()}),[]),(0,t.jsx)(dy,{children:(0,t.jsx)(ov,{})})},roles:vg.main.rules}]},{element:function(){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(Zu,{})})},id:"auth",redirect:vg.login.url(),children:[{path:vg.login.url(),element:function(){return(0,t.jsx)(Py,{})},roles:vg.login.rules}]},{element:function(){return(0,t.jsx)(Zu,{})},id:"auth",redirect:vg.agreement.url(),children:[{path:vg.agreement.url(),element:function(){return(0,t.jsxs)("div",{style:{padding:"20px",maxWidth:"800px",margin:"0 auto"},children:[(0,t.jsx)("h1",{style:{marginBottom:"20px"},children:"Политика конфиденциальноÑти"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"Данное приложение TodoSync уважает вашу конфиденциальноÑть. Ð’ Ñтом документе опиÑываетÑÑ, какие данные мы Ñобираем и как мы их иÑпользуем."}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"ОпиÑание приложениÑ"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"С приложением TodoSync вы Ñможете легко управлÑть Ñвоими задачами, делами, чек-лиÑтами и ÑпиÑками покупок, оÑтаваÑÑÑŒ продуктивным и организованным каждый день. Также вы можете наÑлаждатьÑÑ ÑƒÐ´Ð¾Ð±Ñтвом работы в темной теме, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¿Ð¾Ð¼Ð¾Ð¶ÐµÑ‚ Ñнизить нагрузку на глаза в уÑловиÑÑ… низкой оÑвещенноÑти."}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"ОÑновные функции:"}),(0,t.jsxs)("ul",{style:{marginBottom:"15px",paddingLeft:"20px"},children:[(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"ПроÑтой интерфейÑ:"})," Легко добавлÑйте и редактируйте задачи Ñ Ð¸Ð½Ñ‚ÑƒÐ¸Ñ‚Ð¸Ð²Ð½Ð¾ понÑтным интерфейÑом."]}),(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"СпиÑки задач:"})," Создавайте ÑпиÑки задач Ð´Ð»Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹, личной жизни, покупок и других целей."]}),(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"ГолоÑовой ввод текÑта:"})," ДобавлÑйте задачи и заметки Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ голоÑового ввода, чтобы быÑтрее фикÑировать Ñвои идеи и планы."]}),(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"Ð¡Ð¸Ð½Ñ…Ñ€Ð¾Ð½Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð´Ð°Ð½Ð½Ñ‹Ñ…:"})," Синхронизируйте данные вручную между вÑеми вашими уÑтройÑтвами, чтобы вÑегда иметь актуальную информацию под рукой."]}),(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"Чек-лиÑты и todo:"})," Создавайте чек-лиÑты и todo Ð´Ð»Ñ Ñффективного ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñвоими задачами."]}),(0,t.jsxs)("li",{style:{marginBottom:"10px"},children:[(0,t.jsx)("strong",{children:"Ð¢ÐµÐ¼Ð½Ð°Ñ Ñ‚ÐµÐ¼Ð°:"})," Работайте комфортно в темной теме, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¿Ð¾Ð¼Ð¾Ð³Ð°ÐµÑ‚ Ñнизить нагрузку на глаза в уÑловиÑÑ… низкой оÑвещенноÑти."]})]}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"Сбор данных"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"TodoSync не Ñобирает ваши личные данные без вашего ÑоглаÑиÑ. Ð’Ñе данные ÑинхронизируютÑÑ Ð²Ñ€ÑƒÑ‡Ð½ÑƒÑŽ и хранÑÑ‚ÑÑ Ð½Ð° вашем уÑтройÑтве."}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"ИÑпользование данных"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"Данные, Ñобранные приложением, иÑпользуютÑÑ Ð¸Ñключительно Ð´Ð»Ñ Ð¿Ñ€ÐµÐ´Ð¾ÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¹, опиÑанных выше. Мы не передаем ваши данные третьим лицам."}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"Ð˜Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð² политике конфиденциальноÑти"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"Мы можем обновлÑть данную политику Ð²Ñ€ÐµÐ¼Ñ Ð¾Ñ‚ времени. Любые Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð±ÑƒÐ´ÑƒÑ‚ отображены в Ñтом документе."}),(0,t.jsx)("h2",{style:{marginBottom:"15px"},children:"Контакты"}),(0,t.jsx)("p",{style:{marginBottom:"15px"},children:"ЕÑли у Ð²Ð°Ñ ÐµÑть вопроÑÑ‹ по поводу данной политики конфиденциальноÑти, пожалуйÑта, ÑвÑжитеÑÑŒ Ñ Ð½Ð°Ð¼Ð¸ через наш вебÑайт."})]})},roles:vg.agreement.rules}]}];var Tv=o(188),Cv={};Cv.styleTagTransform=iy(),Cv.setAttributes=ry(),Cv.insert=ty().bind(null,"head"),Cv.domAPI=Zg(),Cv.insertStyleElement=ay();Yg()(Tv.A,Cv);const Iv=Tv.A&&Tv.A.locals?Tv.A.locals:void 0;function Rv(){const e=Mp(Yy);(0,La.useEffect)((()=>{document.body.classList.toggle(".overflow")}),[e]);const n=e=>{27==(e||window.event).keyCode&&Gy()};return(0,La.useEffect)((()=>(document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)})),[]),e?(0,t.jsxs)("div",{className:Iv.root,children:[(0,t.jsxs)("div",{className:Iv.window,children:[(0,t.jsxs)("div",{className:Iv.head,children:[(0,t.jsx)("div",{className:Iv.title,children:e.options?.title}),!e.options?.shouldHideCloseButton&&(0,t.jsx)("div",{onClick:()=>{Gy()},className:Iv.close,children:(0,t.jsx)(Kg,{})})]}),(0,t.jsx)("div",{className:Iv.body,children:e.element})]}),(0,t.jsx)("div",{className:Iv.backdrop,onClick:()=>{Gy()}})]}):null}var Ov=o(765),Nv={};Nv.styleTagTransform=iy(),Nv.setAttributes=ry(),Nv.insert=ty().bind(null,"head"),Nv.domAPI=Zg(),Nv.insertStyleElement=ay();Yg()(Ov.A,Nv);Ov.A&&Ov.A.locals&&Ov.A.locals;var Av=o(502),Mv={};Mv.styleTagTransform=iy(),Mv.setAttributes=ry(),Mv.insert=ty().bind(null,"head"),Mv.domAPI=Zg(),Mv.insertStyleElement=ay();Yg()(Av.A,Mv);Av.A&&Av.A.locals&&Av.A.locals;var Dv=o(250),Pv={};Pv.styleTagTransform=iy(),Pv.setAttributes=ry(),Pv.insert=ty().bind(null,"head"),Pv.domAPI=Zg(),Pv.insertStyleElement=ay();Yg()(Dv.A,Pv);Dv.A&&Dv.A.locals&&Dv.A.locals;"undefined"!==ad.services.sentry&&function(e){const t={...e};_n(t,"react"),oo(t)}(sd);const Lv=document.getElementById("root");(0,id.H)(Lv).render((0,t.jsx)((function(){const e=Mp(_g),n=Mp(Dg),r=Mp(Pg);return(0,La.useEffect)((()=>{Fg()}),[]),"initial"===n?(0,t.jsx)("div",{children:"loading"}):(0,t.jsxs)($g,{children:[(0,t.jsx)(nd,{children:Ev.filter((({id:e})=>!r&&"auth"===e||r&&"cabinet"===e)).map((({children:n,id:r,element:o,redirect:a})=>!!n.length&&(0,t.jsxs)(ed,{element:(0,t.jsx)(o,{}),children:[n.filter((({roles:t})=>function(e,t){return e.some((e=>e===t))}(t,e))).map((({path:e,element:n})=>(0,t.jsx)(ed,{path:e,element:(0,t.jsx)(n,{})},e))),(0,t.jsx)(ed,{path:"*",element:(0,t.jsx)(Gu,{to:a})})]},r)))}),(0,t.jsx)(Rv,{}),(0,t.jsx)(pg,{position:"bottom-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light"})]})}),{}))})()})();