@wellesley/notifications 1.0.129 → 1.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var RG=Object.defineProperty,AG=(e,t,n)=>t in e?RG(e,t,{enumerable:!0,configurab
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function IG(){if(a$)return Xt;a$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=g.prototype=new y;v.constructor=g,p(v,m.prototype),v.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(t,n,r){var a,o={},i=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(i=""+n.key),n)_.call(n,a)&&!k.hasOwnProperty(a)&&(o[a]=n[a]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(t&&t.defaultProps)for(a in c=t.defaultProps)void 0===o[a]&&(o[a]=c[a]);return{$$typeof:e,type:t,key:i,ref:s,props:o,_owner:w.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function A(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 C(n,r,a,o,i){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var c=!1;if(null===n)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,b(i)?(a="",null!=n&&(a=n.replace(E,"$&/")+"/"),C(i,r,a,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",b(n))for(var l=0;l<n.length;l++){var u=o+A(s=n[l],l);c+=C(s,r,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),l=0;!(s=n.next()).done;)c+=C(s=s.value,r,a,u=o+A(s,l++),i);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function O(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(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 I={current:null},T={transition:null},R={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:w};return Xt.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(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Xt.Component=m,Xt.Fragment=n,Xt.Profiler=a,Xt.PureComponent=g,Xt.StrictMode=r,Xt.Suspense=c,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,Xt.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=p({},t.props),o=t.key,i=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,s=w.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in n)_.call(n,l)&&!k.hasOwnProperty(l)&&(a[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}return{$$typeof:e,type:t.type,key:o,ref:i,props:a,_owner:s}},Xt.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},Xt.createElement=x,Xt.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(e){return{$$typeof:s,render:e}},Xt.isValidElement=S,Xt.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:z}},Xt.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},Xt.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(e,t){return I.current.useCallback(e,t)},Xt.useContext=function(e){return I.current.useContext(e)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(e){return I.current.useDeferredValue(e)},Xt.useEffect=function(e,t){return I.current.useEffect(e,t)},Xt.useId=function(){return I.current.useId()},Xt.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},Xt.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},Xt.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},Xt.useMemo=function(e,t){return I.current.useMemo(e,t)},Xt.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},Xt.useRef=function(e){return I.current.useRef(e)},Xt.useState=function(e){return I.current.useState(e)},Xt.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},Xt.useTransition=function(){return I.current.useTransition()},Xt.version="18.2.0",Xt}function Ik(){return o$||(o$=1,P3.exports=IG()),P3.exports}var v=Ik();const we=sf(v),Cw=TG({__proto__:null,default:we},[v]);function W5(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=W5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gl(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=W5(e))&&(r&&(r+=" "),r+=t);return r}const l_=e=>"number"==typeof e&&!isNaN(e),mm=e=>"string"==typeof e,si=e=>"function"==typeof e,fw=e=>mm(e)||si(e)?e:null,eR=e=>v.isValidElement(e)||mm(e)||si(e)||l_(e);function $G(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame((()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame((()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)}))}))}function $k(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:o=300}=e;return function(e){let{children:i,position:s,preventExitTransition:c,done:l,nodeRef:u,isIn:f,playToast:d}=e;const p=r?`${t}--${s}`:t,h=r?`${n}--${s}`:n,m=v.useRef(0);return v.useLayoutEffect((()=>{const e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(d(),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)}),[]),v.useEffect((()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),a?$G(e,l,o):l()};f||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),we.createElement(we.Fragment,null,i)}}function s$(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 ns=new Map;let f_=[];const tR=new Set,PG=e=>tR.forEach((t=>t(e))),H5=()=>ns.size>0;function G5(e,t){var n;if(t)return!(null==(n=ns.get(t))||!n.isToastActive(e));let r=!1;return ns.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function K5(e,t){eR(e)&&(H5()||f_.push({content:e,options:t}),ns.forEach((n=>{n.buildToast(e,t)})))}function i$(e,t){ns.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 OG(e){const{subscribe:t,getSnapshot:n,setProps:r}=v.useRef(function(e){const t=e.containerId||1;return{subscribe(n){const r=function(e,t,n){let r=1,a=0,o=[],i=[],s=[],c=t;const l=new Map,u=new Set,f=()=>{s=Array.from(l.values()),u.forEach((e=>e()))},d=e=>{i=null==e?[]:i.filter((t=>t!==e)),f()},p=e=>{const{toastId:t,onOpen:r,updateId:a,children:o}=e.props,s=null==a;e.staleId&&l.delete(e.staleId),l.set(t,e),i=[...i,e.props.toastId].filter((t=>t!==e.staleId)),f(),n(s$(e,s?"added":"updated")),s&&si(r)&&r(v.isValidElement(o)&&o.props)};return{id:e,props:c,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{l.forEach((n=>{null!=t&&t!==n.props.toastId||si(n.toggle)&&n.toggle(e)}))},removeToast:d,toasts:l,clearQueue:()=>{a-=o.length,o=[]},buildToast:(t,i)=>{if((t=>{let{containerId:n,toastId:r,updateId:a}=t;const o=n?n!==e:1!==e,i=l.has(r)&&null==a;return o||i})(i))return;const{toastId:s,updateId:u,data:h,staleId:m,delay:y}=i,g=()=>{d(s)},b=null==u;b&&a++;const _={...c,style:c.toastStyle,key:r++,...Object.fromEntries(Object.entries(i).filter((e=>{let[t,n]=e;return null!=n}))),toastId:s,updateId:u,data:h,closeToast:g,isIn:!1,className:fw(i.className||c.toastClassName),bodyClassName:fw(i.bodyClassName||c.bodyClassName),progressClassName:fw(i.progressClassName||c.progressClassName),autoClose:!i.isLoading&&(w=i.autoClose,k=c.autoClose,!1===w||l_(w)&&w>0?w:k),deleteToast(){const e=l.get(s),{onClose:t,children:r}=e.props;si(t)&&t(v.isValidElement(r)&&r.props),n(s$(e,"removed")),l.delete(s),a--,a<0&&(a=0),o.length>0?p(o.shift()):f()}};var w,k;_.closeButton=c.closeButton,!1===i.closeButton||eR(i.closeButton)?_.closeButton=i.closeButton:!0===i.closeButton&&(_.closeButton=!eR(c.closeButton)||c.closeButton);let x=t;v.isValidElement(t)&&!mm(t.type)?x=v.cloneElement(t,{closeToast:g,toastProps:_,data:h}):si(t)&&(x=t({closeToast:g,toastProps:_,data:h}));const S={content:x,props:_,staleId:m};c.limit&&c.limit>0&&a>c.limit&&b?o.push(S):l_(y)?setTimeout((()=>{p(S)}),y):p(S)},setProps(e){c=e},setToggle:(e,t)=>{l.get(e).toggle=t},isToastActive:e=>i.some((t=>t===e)),getSnapshot:()=>c.newestOnTop?s.reverse():s}}(t,e,PG);ns.set(t,r);const a=r.observe(n);return f_.forEach((e=>K5(e.content,e.options))),f_=[],()=>{a(),ns.delete(t)}},setProps(e){var n;null==(n=ns.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=ns.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);const a=v.useSyncExternalStore(t,n,n);return{getToastToRender:function(e){if(!a)return[];const t=new Map;return a.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:G5,count:null==a?void 0:a.length}}function zG(e){const[t,n]=v.useState(!1),[r,a]=v.useState(!1),o=v.useRef(null),i=v.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var d,p;function h(){n(!0)}function m(){n(!1)}function y(n){const r=o.current;i.canDrag&&r&&(i.didMove=!0,t&&m(),i.delta="x"===e.draggableDirection?n.clientX-i.start:n.clientY-i.start,i.start!==n.clientX&&(i.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function g(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",g);const t=o.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return a(!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=ns.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||p.setToggle(d.id,d.fn),v.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 b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){i.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",g);const n=o.current;i.canCloseOnClick=!0,i.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(i.start=t.clientX,i.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(i.start=t.clientY,i.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:a,right:i}=o.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=a&&t.clientX<=i&&t.clientY>=n&&t.clientY<=r?m():h()}};return s&&c&&(b.onMouseEnter=m,e.stacked||(b.onMouseLeave=h)),f&&(b.onClick=e=>{u&&u(e),i.canCloseOnClick&&l()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function MG(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:o,className:i,style:s,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:d}=e;const p=o||c&&0===l,h={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(h.transform=`scaleX(${l})`);const m=Gl("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":u}),y=si(i)?i({rtl:u,type:a,defaultClassName:m}):Gl(m,i),g={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return we.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},we.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${a}`}),we.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:y,style:h,...g}))}let NG=1;const Q5=()=>""+NG++;function DG(e){return e&&(mm(e.toastId)||l_(e.toastId))?e.toastId:Q5()}function qy(e,t){return K5(e,t),t.toastId}function Rw(e,t){return{...t,type:t&&t.type||e,toastId:DG(t)}}function pb(e){return(t,n)=>qy(t,Rw(e,n))}function xt(e,t){return qy(e,Rw("default",t))}xt.loading=(e,t)=>qy(e,Rw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xt.promise=function(e,t,n){let r,{pending:a,error:o,success:i}=t;a&&(r=mm(a)?xt.loading(a,n):xt.loading(a.render,{...n,...a}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,a)=>{if(null==t)return void xt.dismiss(r);const o={type:e,...s,...n,data:a},i=mm(t)?{render:t}:t;return r?xt.update(r,{...o,...i}):xt(i.render,{...o,...i}),a},l=si(e)?e():e;return l.then((e=>c("success",i,e))).catch((e=>c("error",o,e))),l},xt.success=pb("success"),xt.info=pb("info"),xt.error=pb("error"),xt.warning=pb("warning"),xt.warn=xt.warning,xt.dark=(e,t)=>qy(e,Rw("default",{theme:"dark",...t})),xt.dismiss=function(e){!function(e){var t;if(H5()){if(null==e||mm(t=e)||l_(t))ns.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=ns.get(e.containerId);t?t.removeToast(e.id):ns.forEach((t=>{t.removeToast(e.id)}))}}else f_=f_.filter((t=>null!=e&&t.options.toastId!==e))}(e)},xt.clearWaitingQueue=function(e){void 0===e&&(e={}),ns.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},xt.isActive=G5,xt.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=ns.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:a}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q5()};o.toastId!==e&&(o.staleId=e);const i=o.render||a;delete o.render,qy(i,o)}},xt.done=e=>{xt.update(e,{progress:1})},xt.onChange=function(e){return tR.add(e),()=>{tR.delete(e)}},xt.play=e=>i$(!0,e),xt.pause=e=>i$(!1,e);const LG=typeof window<"u"?v.useLayoutEffect:v.useEffect,hb=e=>{let{theme:t,type:n,isLoading:r,...a}=e;return we.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...a})},O3={info:function(e){return we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement("div",{className:"Toastify__spinner"})}},jG=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a,playToast:o}=zG(e),{closeButton:i,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:d,transition:p,position:h,className:m,style:y,bodyClassName:g,bodyStyle:b,progressClassName:_,progressStyle:w,updateId:k,role:x,progress:S,rtl:E,toastId:A,deleteToast:C,isIn:O,isLoading:z,closeOnClick:I,theme:T}=e,R=Gl("Toastify__toast",`Toastify__toast-theme--${T}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":I}),P=si(m)?m({rtl:E,position:h,type:u,defaultClassName:R}):Gl(R,m),j=function(e){let{theme:t,type:n,isLoading:r,icon:a}=e,o=null;const i={theme:t,type:n};return!1===a||(si(a)?o=a({...i,isLoading:r}):v.isValidElement(a)?o=v.cloneElement(a,i):r?o=O3.spinner():n in O3&&(o=O3[n](i))),o}(e),N=!!S||!c,M={closeToast:d,type:u,theme:T};let D=null;return!1===i||(D=si(i)?i(M):v.isValidElement(i)?v.cloneElement(i,M):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return we.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},we.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},we.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"})))}(M)),we.createElement(p,{isIn:O,done:C,position:h,preventExitTransition:n,nodeRef:r,playToast:o},we.createElement("div",{id:A,onClick:l,"data-in":O,className:P,...a,style:y,ref:r},we.createElement("div",{...O&&{role:x},className:si(g)?g({type:u}):Gl("Toastify__toast-body",g),style:b},null!=j&&we.createElement("div",{className:Gl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},j),we.createElement("div",null,s)),D,we.createElement(MG,{...k&&!N?{key:`pb-${k}`}:{},rtl:E,theme:T,delay:c,isRunning:t,isIn:O,closeToast:d,hide:f,type:u,style:w,className:_,controlledProgress:N,progress:S||0})))},Pk=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},FG=$k(Pk("bounce",!0));$k(Pk("slide",!0)),$k(Pk("zoom")),$k(Pk("flip"));const BG={position:"top-right",transition:FG,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Y5(e){let t={...BG,...e};const n=e.stacked,[r,a]=v.useState(!0),o=v.useRef(null),{getToastToRender:i,isToastActive:s,count:c}=OG(t),{className:l,style:u,rtl:f,containerId:d}=t;function p(e){const t=Gl("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return si(l)?l({position:e,rtl:f,defaultClassName:t}):Gl(t,fw(l))}function h(){n&&(a(!0),xt.play())}return LG((()=>{if(n){var e;const n=o.current.querySelectorAll('[data-in="true"]'),a=12,i=null==(e=t.position)?void 0:e.includes("top");let s=0,c=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=i?"top":"bot");const o=s*(r?.2:1)+(r?0:a*t);n.style.setProperty("--y",`${i?o:-1*o}px`),n.style.setProperty("--g",`${a}`),n.style.setProperty("--s",""+(1-(r?c:0))),s+=n.offsetHeight,c+=.025}))}}),[r,c,n]),we.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(a(!1),xt.pause())},onMouseLeave:h},i(((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return we.createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map((e=>{let{content:t,props:r}=e;return we.createElement(jG,{...r,stacked:n,collapseAll:h,isIn:s(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)})))})))}function uo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var UG="function"==typeof Symbol&&Symbol.observable||"@@observable",c$=UG,z3=()=>Math.random().toString(36).substring(7).split("").join("."),VG={INIT:`@@redux/INIT${z3()}`,REPLACE:`@@redux/REPLACE${z3()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${z3()}`},Aw=VG;function Jl(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Z5(e,t,n){if("function"!=typeof e)throw new Error(uo(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(uo(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(uo(1));return n(Z5)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(uo(3));return a}function f(e){if("function"!=typeof e)throw new Error(uo(4));if(c)throw new Error(uo(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(uo(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Jl(e))throw new Error(uo(7));if(typeof e.type>"u")throw new Error(uo(8));if("string"!=typeof e.type)throw new Error(uo(17));if(c)throw new Error(uo(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Aw.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(uo(10));r=e,d({type:Aw.REPLACE})},[c$]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(uo(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[c$](){return this}}}}}function qG(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Aw.INIT})>"u")throw new Error(uo(12));if(typeof n(void 0,{type:Aw.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(uo(13))}))}function UA(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{qG(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(uo(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Tw(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function WG(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(uo(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Tw(...s)(a.dispatch),{...a,dispatch:o}}}function X5(e){return Jl(e)&&"type"in e&&"string"==typeof e.type}var VA=Symbol.for("immer-nothing"),Wy=Symbol.for("immer-draftable"),$s=Symbol.for("immer-state");function po(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vm=Object.getPrototypeOf;function Yc(e){return!!e&&!!e[$s]}function Zc(e){var t;return!!e&&(J5(e)||Array.isArray(e)||!!e[Wy]||!(null==(t=e.constructor)||!t[Wy])||J_(e)||ev(e))}var HG=Object.prototype.constructor.toString();function J5(e){if(!e||"object"!=typeof e)return!1;const t=vm(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===HG}function GG(e){return Yc(e)||po(15,e),e[$s].base_}function D1(e,t){0===bm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function bm(e){const t=e[$s];return t?t.type_:Array.isArray(e)?1:J_(e)?2:ev(e)?3:0}function u_(e,t){return 2===bm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function M3(e,t){return 2===bm(e)?e.get(t):e[t]}function e7(e,t,n){const r=bm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function KG(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function J_(e){return e instanceof Map}function ev(e){return e instanceof Set}function om(e){return e.copy_||e.base_}function nR(e,t){if(J_(e))return new Map(e);if(ev(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&J5(e))return vm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[$s];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(vm(e),n)}function qA(e,t=!1){return Ok(e)||Yc(e)||!Zc(e)||(bm(e)>1&&(e.set=e.add=e.clear=e.delete=QG),Object.freeze(e),t&&D1(e,((e,t)=>qA(t,!0)))),e}function QG(){po(2)}function Ok(e){return Object.isFrozen(e)}var d_,rR={};function wm(e){const t=rR[e];return t||po(0,e),t}function YG(e,t){rR[e]||(rR[e]=t)}function t7(){return d_}function ZG(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function l$(e,t){t&&(wm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function aR(e){oR(e),e.drafts_.forEach(XG),e.drafts_=null}function oR(e){e===d_&&(d_=e.parent_)}function f$(e){return d_=ZG(d_,e)}function XG(e){const t=e[$s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function u$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[$s].modified_&&(aR(t),po(4)),Zc(e)&&(e=Iw(t,e),t.parent_||$w(t,e)),t.patches_&&wm("Patches").generateReplacementPatches_(n[$s].base_,e,t.patches_,t.inversePatches_)):e=Iw(t,n,[]),aR(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==VA?e:void 0}function Iw(e,t,n){if(Ok(t))return t;const r=t[$s];if(!r)return D1(t,((a,o)=>d$(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return $w(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),D1(a,((a,i)=>d$(e,r,t,a,i,n,o))),$w(e,t,!1),n&&e.patches_&&wm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function d$(e,t,n,r,a,o,i){if(Yc(a)){const i=Iw(e,a,o&&t&&3!==t.type_&&!u_(t.assigned_,r)?o.concat(r):void 0);if(e7(n,r,i),!Yc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Zc(a)&&!Ok(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Iw(e,a),(!t||!t.scope_.parent_)&&$w(e,a)}}function $w(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qA(t,n)}function JG(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:t7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=WA;n&&(a=[r],o=p_);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var WA={get(e,t){if(t===$s)return e;const n=om(e);if(!u_(n,t))return eK(e,n,t);const r=n[t];return e.finalized_||!Zc(r)?r:r===N3(e.base_,t)?(D3(e),e.copy_[t]=iR(r,e)):r},has:(e,t)=>t in om(e),ownKeys:e=>Reflect.ownKeys(om(e)),set(e,t,n){const r=n7(om(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=N3(om(e),t),a=null==r?void 0:r[$s];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(KG(n,r)&&(void 0!==n||u_(e.base_,t)))return!0;D3(e),sR(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==N3(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,D3(e),sR(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=om(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){po(11)},getPrototypeOf:e=>vm(e.base_),setPrototypeOf(){po(12)}},p_={};function N3(e,t){const n=e[$s];return(n?om(n):e)[t]}function eK(e,t,n){var r;const a=n7(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function n7(e,t){if(!(t in e))return;let n=vm(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=vm(n)}}function sR(e){e.modified_||(e.modified_=!0,e.parent_&&sR(e.parent_))}function D3(e){e.copy_||(e.copy_=nR(e.base_,e.scope_.immer_.useStrictShallowCopy_))}D1(WA,((e,t)=>{p_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),p_.deleteProperty=function(e,t){return p_.set.call(this,e,t,void 0)},p_.set=function(e,t,n){return WA.set.call(this,e[0],t,n,e[0])};var tK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&po(6),void 0!==n&&"function"!=typeof n&&po(7),Zc(e)){const a=f$(this),o=iR(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?aR(a):oR(a)}return l$(a,n),u$(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===VA&&(r=void 0),this.autoFreeze_&&qA(r,!0),n){const t=[],a=[];wm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}po(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zc(e)||po(8),Yc(e)&&(e=r7(e));const t=f$(this),n=iR(e,void 0);return n[$s].isManual_=!0,oR(t),n}finishDraft(e,t){const n=e&&e[$s];(!n||!n.isManual_)&&po(9);const{scope_:r}=n;return l$(r,t),u$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=wm("Patches").applyPatches_;return Yc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function iR(e,t){const n=J_(e)?wm("MapSet").proxyMap_(e,t):ev(e)?wm("MapSet").proxySet_(e,t):JG(e,t);return(t?t.scope_:t7()).drafts_.push(n),n}function r7(e){return Yc(e)||po(10,e),a7(e)}function a7(e){if(!Zc(e)||Ok(e))return e;const t=e[$s];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nR(e,t.scope_.immer_.useStrictShallowCopy_)}else n=nR(e,!0);return D1(n,((e,t)=>{e7(n,e,a7(t))})),t&&(t.finalized_=!1),n}function nK(){const e="replace",t="add",n="remove";function r(e){if(!Zc(e))return e;if(Array.isArray(e))return e.map(r);if(J_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(ev(e))return new Set(Array.from(e).map(r));const t=Object.create(vm(e));for(const n in e)t[n]=r(e[n]);return u_(e,Wy)&&(t[Wy]=e[Wy]),t}function a(e){return Yc(e)?r(e):e}YG("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=bm(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&po(19),"function"==typeof c&&"prototype"===n&&po(19),c=M3(c,n),"object"!=typeof c&&po(18,i.join("/"))}const l=bm(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:po(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:po(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;D1(r.assigned_,((r,u)=>{const f=M3(c,r),d=M3(l,r),p=u?u_(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===VA?void 0:n}),a.push({op:e,path:[],value:t})}})}var fi=new tK,tv=fi.produce,o7=fi.produceWithPatches.bind(fi);fi.setAutoFreeze.bind(fi),fi.setUseStrictShallowCopy.bind(fi);var p$=fi.applyPatches.bind(fi);function rK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function aK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function oK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}fi.createDraft.bind(fi),fi.finishDraft.bind(fi);var h$=e=>Array.isArray(e)?e:[e];function sK(e){const t=Array.isArray(e[0])?e[0]:e;return oK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function iK(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var cK=class{constructor(e){this.value=e}deref(){return this.value}},lK=typeof WeakRef<"u"?WeakRef:cK,fK=0,m$=1;function mb(){return{s:fK,v:void 0,o:null,p:null}}function h_(e,t={}){let n=mb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=mb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=mb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===m$?l=i.v:(l=e.apply(null,arguments),o++),c.s=m$,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new lK(l):l}return c.v=l,l}return i.clearCache=()=>{n=mb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function s7(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),rK(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=h_,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=h$(l),h=h$(f),m=sK(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=iK(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var mo=s7(h_),uK=Object.assign(((e,t=mo)=>{aK(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>uK});function i7(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var dK=i7(),pK=i7,hK={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"99899611aac5fbc0",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.129",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"},mK=(...e)=>{const t=s7(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Yc(e)?r7(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};mK(h_);var gK=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Tw:Tw.apply(null,arguments)},yK=e=>e&&"function"==typeof e.match;function zr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Ha(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>X5(t)&&t.type===e,n}var c7=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function g$(e){return Zc(e)?tv(e,(()=>{})):e}function cR(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Ha(10));const r=n.insert(t,e);return e.set(t,r),r}function _K(e){return"boolean"==typeof e}var vK=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new c7;return t&&(_K(t)?o.push(dK):o.push(pK(t.extraArgument))),o},k1="RTK_autoBatch",dy=()=>e=>({payload:e,meta:{[k1]:!0}}),l7=e=>t=>{setTimeout(t,e)},bK=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:l7(10),wK=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?bK:"callback"===e.type?e.queueNotification:l7(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[k1]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},kK=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new c7(e);return n&&r.push(wK("object"==typeof n?n:void 0)),r},xK="production"===hK.NODE_ENV;function SK(e){const t=vK(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Jl(n))throw new Error(Ha(1));s=UA(n)}c="function"==typeof r?r(t):t();let l=Tw;a&&(l=gK({trace:!xK,..."object"==typeof a&&a}));const u=WG(...c),f=kK(u);return Z5(s,o,l(..."function"==typeof i?i(f):f()))}function f7(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ha(28));if(r in t)throw new Error(Ha(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function EK(e){return"function"==typeof e}function CK(e,t){let n,[r,a,o]=f7(t);if(EK(e))n=()=>g$(e());else{const t=g$(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Yc(e)){const r=n(e,t);return void 0===r?e:r}if(Zc(e))return tv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Ha(9))}return r}}return e}),e)}return i.getInitialState=n,i}var RK="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zk=(e=21)=>{let t="",n=e;for(;n--;)t+=RK[64*Math.random()|0];return t},u7=(e,t)=>yK(e)?e.match(t):e(t);function Cp(...e){return t=>e.some((e=>u7(e,t)))}function Hy(...e){return t=>e.every((e=>u7(e,t)))}function Mk(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function nv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function HA(...e){return 0===e.length?e=>Mk(e,["pending"]):nv(e)?t=>Cp(...e.map((e=>e.pending)))(t):HA()(e[0])}function L1(...e){return 0===e.length?e=>Mk(e,["rejected"]):nv(e)?t=>Cp(...e.map((e=>e.rejected)))(t):L1()(e[0])}function Nk(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||nv(e)?n=>Hy(L1(...e),t)(n):Nk()(e[0])}function Rp(...e){return 0===e.length?e=>Mk(e,["fulfilled"]):nv(e)?t=>Cp(...e.map((e=>e.fulfilled)))(t):Rp()(e[0])}function lR(...e){return 0===e.length?e=>Mk(e,["pending","fulfilled","rejected"]):nv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return Cp(...n)(t)}:lR()(e[0])}var AK=["name","message","stack","code"],L3=class{constructor(e,t){$3(this,"_type"),this.payload=e,this.meta=t}},y$=class{constructor(e,t){$3(this,"_type"),this.payload=e,this.meta=t}},TK=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of AK)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},_$=(()=>{function e(e,t,n){const r=zr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=zr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=zr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||TK)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):zk(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if($K(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new L3(e,t),fulfillWithValue:(e,t)=>new y$(e,t)})).then((t=>{if(t instanceof L3)throw t;return t instanceof y$?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof L3?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(IK)})}}),{pending:a,rejected:o,fulfilled:r,settled:Cp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function IK(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function $K(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var PK=Symbol.for("rtk-slice-createasyncthunk");function OK(e,t){return`${e}/${t}`}function zK({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[PK];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Ha(11));const a=("function"==typeof e.reducers?e.reducers(NK()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ha(12));if(n in i.sliceCaseReducersByType)throw new Error(Ha(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?f7(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return CK(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:OK(t,r),createNotation:"function"==typeof e.reducers};LK(o)?FK(i,o,s,n):DK(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=cR(u,n,{insert:()=>new WeakMap});return cR(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=MK(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function MK(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var qr=zK();function NK(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function DK({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!jK(r))throw new Error(Ha(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?zr(e,i):zr(e))}function LK(e){return"asyncThunk"===e._reducerDefinitionType}function jK(e){return"reducerWithPrepare"===e._reducerDefinitionType}function FK({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Ha(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||gb,pending:s||gb,rejected:c||gb,settled:l||gb})}function gb(){}var BK=(e,t)=>{if("function"!=typeof e)throw new Error(Ha(32))},GA="listenerMiddleware",UK=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=zr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Ha(21));return BK(o),{predicate:a,type:t,effect:o}},VK=Object.assign((e=>{const{type:t,predicate:n,effect:r}=UK(e);return{id:zk(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ha(22))}}}),{withTypes:()=>VK}),qK=Object.assign(zr(`${GA}/add`),{withTypes:()=>qK});zr(`${GA}/removeAll`);var WK=Object.assign(zr(`${GA}/remove`),{withTypes:()=>WK}),HK=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,GK=e=>e.flatMap((e=>HK(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),KA=Symbol.for("rtk-state-proxy-original"),KK=e=>!!e&&!!e[KA],QK=new WeakMap,YK=(e,t)=>cR(QK,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===KA)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:zk()});if(typeof t>"u")throw new Error(Ha(24));return t}}return a}})}),ZK=e=>{if(!KK(e))throw new Error(Ha(25));return e[KA]},XK=(e={})=>e;function JK(...e){const t=Object.fromEntries(GK(e)),n=()=>Object.keys(t).length?UA(t):XK;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(YK(n?n(r,...a):r,t),...a)}}),{original:ZK});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Ha(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eQ={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"99899611aac5fbc0",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.129",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"},d7=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(d7||{});function tQ(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function nQ(e){return new RegExp("(^|:)//").test(e)}var rQ=e=>e.replace(/\/$/,""),aQ=e=>e.replace(/^\//,"");function oQ(e,t){if(!e)return t;if(!t)return e;if(nQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=rQ(e)}${n}${t=aQ(t)}`}var v$=e=>[].concat(...e);function sQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function iQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var b$=Jl;function p7(e,t){if(e===t||!(b$(e)&&b$(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=p7(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var w$=(...e)=>fetch(...e),cQ=e=>e.status>=200&&e.status<=299,lQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function k$(e){if(!Jl(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function fQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=w$,paramsSerializer:r,isJsonContentType:a=lQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===w$&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??cQ,timeout:A=s,...C}="string"==typeof d?{url:d}:d,O={...u,signal:h,...C};k=new Headers(k$(k)),O.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const z=e=>"object"==typeof e&&(Jl(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!O.headers.has("content-type")&&z(O.body)&&O.headers.set("content-type",o),z(O.body)&&a(O.headers)&&(O.body=JSON.stringify(O.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(k$(x)))}w=oQ(e,w);const I=new Request(w,O);_={request:new Request(w,O)};let T,R=!1,P=A&&setTimeout((()=>{R=!0,p.abort()}),A);try{T=await n(I)}catch(e){return{error:{status:R?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const j=T.clone();_.response=j;let N,M="";try{let e;if(await Promise.all([f(T,S).then((e=>N=e),(t=>e=t)),j.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:T.status,data:M,error:String(e)},meta:_}}return E(T,N)?{data:N,meta:_}:{error:{status:T.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var x$=class{constructor(e,t=void 0){this.value=e,this.meta=t}},QA=zr("__rtkq/focused"),h7=zr("__rtkq/unfocused"),YA=zr("__rtkq/online"),m7=zr("__rtkq/offline");function g7(e){return"query"===e.type}function uQ(e){return"mutation"===e.type}function ZA(e,t,n,r,a,o){return dQ(e)?e(t,n,r,a).map(fR).map(o):Array.isArray(e)?e.map(fR).map(o):[]}function dQ(e){return"function"==typeof e}function fR(e){return"string"==typeof e?{type:e}:e}function S$(e){return null!=e}function T1(e){let t=0;for(const n in e)t++;return t}function pQ(e,t){return e.catch(t)}var m_=Symbol("forceQueryFn"),uR=e=>"function"==typeof e[m_];function hQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[m_]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[m_]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(y()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(g=o.get(m))?void 0:g[v],C=()=>_(y()),O=Object.assign(p?w.then(C):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(C),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await O;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){O.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=O,o.set(m,e),O.then((()=>{delete e[v],T1(e)||o.delete(m)}))}return O};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=pQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],T1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],T1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(S$)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(S$)}}}function E$(e){return e}function mQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=E$;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[m_]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&eQ.NODE_ENV,n.error)throw new x$(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[k1]:!0})}catch(t){let n=t;if(n instanceof x$){let t=E$;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[k1]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=_$(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[k1]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!uR(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||g7(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=_$(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[k1]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Zc(s.data)){const[e,t,r]=o7(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[m_]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=ZA(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Hy(HA(e),u(t)),matchFulfilled:Hy(Rp(e),u(t)),matchRejected:Hy(L1(e),u(t))}}}}function y7(e,t,n,r){return ZA(n[e.meta.arg.endpointName][t],Rp(e)?e.payload:void 0,Nk(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function yb(e,t,n){const r=e[t];r&&n(r)}function g_(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function C$(e,t,n){const r=e[g_(t)];r&&n(r)}var py={};function gQ({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=zr(`${e}/resetApiState`),u=qr({name:`${e}/queries`,initialState:py,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:dy()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){yb(e,t,(e=>{e.data=p$(e.data,n.concat())}))},prepare:dy()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=uR(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),yb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{yb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!uR(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=tv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?p7(Yc(e.data)?GG(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{yb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=qr({name:`${e}/mutations`,initialState:py,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=g_(t);n in e&&delete e[n]},prepare:dy()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[g_(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&C$(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&C$(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=qr({name:`${e}/invalidation`,initialState:py,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:dy()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(Cp(Rp(t),Nk(t)),((e,t)=>{const n=y7(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=qr({name:`${e}/subscriptions`,initialState:py,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=qr({name:`${e}/internalSubscriptions`,initialState:py,reducers:{subscriptionsUpdated:{reducer:(e,t)=>p$(e,t.payload),prepare:dy()}}}),m=qr({name:`${e}/config`,initialState:{online:sQ(),focused:iQ(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(YA,(e=>{e.online=!0})).addCase(m7,(e=>{e.online=!1})).addCase(QA,(e=>{e.focused=!0})).addCase(h7,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=UA({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var fm=Symbol.for("RTKQ/skipToken"),_7={status:"uninitialized"},R$=tv(_7,(()=>{})),A$=tv(_7,(()=>{}));function yQ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>R$,a=e=>A$;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===fm?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??R$},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?g_(e)??fm:e,n(t===fm?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??A$},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(fR)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:v$(Object.values(t)))??[];for(const e of n)a.add(e)}return v$(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...tQ(e.status)}}function i(e){return e[t]}}var o1=WeakMap?new WeakMap:void 0,T$=({endpointName:e,queryArgs:t})=>{let n="";const r=null==o1?void 0:o1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Jl(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Jl(t)&&(null==o1||o1.set(t,e)),n=e}return`${e}(${n})`};function _Q(...e){return function(t){const n=h_((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=T$;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:T$({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:zk(),extractRehydrationInfo:n,hasRehydrationInfo:h_((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Ha(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function vQ(e){for(let t in e)return!1;return!0}var bQ=2147482.647,wQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!vQ(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,bQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},kQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=Cp(Rp(r),Nk(r)),f=Cp(Rp(r,a),L1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===T1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(y7(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(ZA(e.payload,void 0,void 0,void 0,void 0,i),t)}},xQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},SQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===T1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{QA.match(e)&&i(t,"refetchOnFocus"),YA.match(e)&&i(t,"refetchOnReconnect")}},I$=new Error("Promise never resolved before cacheEntryRemoved."),EQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=lR(r),s=lR(a),c=Rp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw I$}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==I$)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?g_(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},CQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=HA(n,r),o=L1(n,r),i=Rp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},RQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},AQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>T1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=o7(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function TQ(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:zr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[RQ,wQ,kQ,xQ,EQ,CQ];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=AQ(u),p=SQ(u);return e=>c=>{if(!X5(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ip(e,...t){return Object.assign(e,...t)}var P$,O$,$$=Symbol(),IQ=({createSelector:e=mo}={})=>({name:$$,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){nK();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:YA,onOffline:m7,onFocus:QA,onFocusLost:h7},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=mQ({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=gQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});ip(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:w.resetApiState}),ip(t.internalActions,w);const{middleware:k,actions:x}=TQ({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});ip(t.util,x),ip(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:C}=yQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});ip(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:C});const{buildInitiateQuery:O,buildInitiateMutation:z,getRunningMutationThunk:I,getRunningMutationsThunk:T,getRunningQueriesThunk:R,getRunningQueryThunk:P}=hQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return ip(t.util,{getRunningMutationThunk:I,getRunningMutationsThunk:T,getRunningQueryThunk:P,getRunningQueriesThunk:R}),{name:$$,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),g7(n)?ip(a.endpoints[e],{name:e,select:S(e,n),initiate:O(e,n)},b(p,e)):uQ(n)&&ip(a.endpoints[e],{name:e,select:E(),initiate:z(e)},b(h,e))}}}}),j3={exports:{}},F3={};
|
|
10
|
+
*/function IG(){if(a$)return Xt;a$=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||d}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=g.prototype=new y;v.constructor=g,p(v,m.prototype),v.isPureReactComponent=!0;var b=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function x(t,n,r){var a,o={},i=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(i=""+n.key),n)_.call(n,a)&&!k.hasOwnProperty(a)&&(o[a]=n[a]);var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(t&&t.defaultProps)for(a in c=t.defaultProps)void 0===o[a]&&(o[a]=c[a]);return{$$typeof:e,type:t,key:i,ref:s,props:o,_owner:w.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function A(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 C(n,r,a,o,i){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var c=!1;if(null===n)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case e:case t:c=!0}}if(c)return i=i(c=n),n=""===o?"."+A(c,0):o,b(i)?(a="",null!=n&&(a=n.replace(E,"$&/")+"/"),C(i,r,a,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+n)),r.push(i)),1;if(c=0,o=""===o?".":o+":",b(n))for(var l=0;l<n.length;l++){var u=o+A(s=n[l],l);c+=C(s,r,a,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),l=0;!(s=n.next()).done;)c+=C(s=s.value,r,a,u=o+A(s,l++),i);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function O(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(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 I={current:null},T={transition:null},R={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:w};return Xt.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(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Xt.Component=m,Xt.Fragment=n,Xt.Profiler=a,Xt.PureComponent=g,Xt.StrictMode=r,Xt.Suspense=c,Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,Xt.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=p({},t.props),o=t.key,i=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,s=w.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in n)_.call(n,l)&&!k.hasOwnProperty(l)&&(a[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}return{$$typeof:e,type:t.type,key:o,ref:i,props:a,_owner:s}},Xt.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},Xt.createElement=x,Xt.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},Xt.createRef=function(){return{current:null}},Xt.forwardRef=function(e){return{$$typeof:s,render:e}},Xt.isValidElement=S,Xt.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:z}},Xt.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},Xt.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},Xt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Xt.useCallback=function(e,t){return I.current.useCallback(e,t)},Xt.useContext=function(e){return I.current.useContext(e)},Xt.useDebugValue=function(){},Xt.useDeferredValue=function(e){return I.current.useDeferredValue(e)},Xt.useEffect=function(e,t){return I.current.useEffect(e,t)},Xt.useId=function(){return I.current.useId()},Xt.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},Xt.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},Xt.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},Xt.useMemo=function(e,t){return I.current.useMemo(e,t)},Xt.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},Xt.useRef=function(e){return I.current.useRef(e)},Xt.useState=function(e){return I.current.useState(e)},Xt.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},Xt.useTransition=function(){return I.current.useTransition()},Xt.version="18.2.0",Xt}function Ik(){return o$||(o$=1,P3.exports=IG()),P3.exports}var v=Ik();const we=sf(v),Cw=TG({__proto__:null,default:we},[v]);function W5(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=W5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gl(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=W5(e))&&(r&&(r+=" "),r+=t);return r}const l_=e=>"number"==typeof e&&!isNaN(e),mm=e=>"string"==typeof e,si=e=>"function"==typeof e,fw=e=>mm(e)||si(e)?e:null,eR=e=>v.isValidElement(e)||mm(e)||si(e)||l_(e);function $G(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame((()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame((()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)}))}))}function $k(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:o=300}=e;return function(e){let{children:i,position:s,preventExitTransition:c,done:l,nodeRef:u,isIn:f,playToast:d}=e;const p=r?`${t}--${s}`:t,h=r?`${n}--${s}`:n,m=v.useRef(0);return v.useLayoutEffect((()=>{const e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(d(),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)}),[]),v.useEffect((()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),a?$G(e,l,o):l()};f||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),we.createElement(we.Fragment,null,i)}}function s$(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 ns=new Map;let f_=[];const tR=new Set,PG=e=>tR.forEach((t=>t(e))),H5=()=>ns.size>0;function G5(e,t){var n;if(t)return!(null==(n=ns.get(t))||!n.isToastActive(e));let r=!1;return ns.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function K5(e,t){eR(e)&&(H5()||f_.push({content:e,options:t}),ns.forEach((n=>{n.buildToast(e,t)})))}function i$(e,t){ns.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 OG(e){const{subscribe:t,getSnapshot:n,setProps:r}=v.useRef(function(e){const t=e.containerId||1;return{subscribe(n){const r=function(e,t,n){let r=1,a=0,o=[],i=[],s=[],c=t;const l=new Map,u=new Set,f=()=>{s=Array.from(l.values()),u.forEach((e=>e()))},d=e=>{i=null==e?[]:i.filter((t=>t!==e)),f()},p=e=>{const{toastId:t,onOpen:r,updateId:a,children:o}=e.props,s=null==a;e.staleId&&l.delete(e.staleId),l.set(t,e),i=[...i,e.props.toastId].filter((t=>t!==e.staleId)),f(),n(s$(e,s?"added":"updated")),s&&si(r)&&r(v.isValidElement(o)&&o.props)};return{id:e,props:c,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{l.forEach((n=>{null!=t&&t!==n.props.toastId||si(n.toggle)&&n.toggle(e)}))},removeToast:d,toasts:l,clearQueue:()=>{a-=o.length,o=[]},buildToast:(t,i)=>{if((t=>{let{containerId:n,toastId:r,updateId:a}=t;const o=n?n!==e:1!==e,i=l.has(r)&&null==a;return o||i})(i))return;const{toastId:s,updateId:u,data:h,staleId:m,delay:y}=i,g=()=>{d(s)},b=null==u;b&&a++;const _={...c,style:c.toastStyle,key:r++,...Object.fromEntries(Object.entries(i).filter((e=>{let[t,n]=e;return null!=n}))),toastId:s,updateId:u,data:h,closeToast:g,isIn:!1,className:fw(i.className||c.toastClassName),bodyClassName:fw(i.bodyClassName||c.bodyClassName),progressClassName:fw(i.progressClassName||c.progressClassName),autoClose:!i.isLoading&&(w=i.autoClose,k=c.autoClose,!1===w||l_(w)&&w>0?w:k),deleteToast(){const e=l.get(s),{onClose:t,children:r}=e.props;si(t)&&t(v.isValidElement(r)&&r.props),n(s$(e,"removed")),l.delete(s),a--,a<0&&(a=0),o.length>0?p(o.shift()):f()}};var w,k;_.closeButton=c.closeButton,!1===i.closeButton||eR(i.closeButton)?_.closeButton=i.closeButton:!0===i.closeButton&&(_.closeButton=!eR(c.closeButton)||c.closeButton);let x=t;v.isValidElement(t)&&!mm(t.type)?x=v.cloneElement(t,{closeToast:g,toastProps:_,data:h}):si(t)&&(x=t({closeToast:g,toastProps:_,data:h}));const S={content:x,props:_,staleId:m};c.limit&&c.limit>0&&a>c.limit&&b?o.push(S):l_(y)?setTimeout((()=>{p(S)}),y):p(S)},setProps(e){c=e},setToggle:(e,t)=>{l.get(e).toggle=t},isToastActive:e=>i.some((t=>t===e)),getSnapshot:()=>c.newestOnTop?s.reverse():s}}(t,e,PG);ns.set(t,r);const a=r.observe(n);return f_.forEach((e=>K5(e.content,e.options))),f_=[],()=>{a(),ns.delete(t)}},setProps(e){var n;null==(n=ns.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=ns.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);const a=v.useSyncExternalStore(t,n,n);return{getToastToRender:function(e){if(!a)return[];const t=new Map;return a.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:G5,count:null==a?void 0:a.length}}function zG(e){const[t,n]=v.useState(!1),[r,a]=v.useState(!1),o=v.useRef(null),i=v.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var d,p;function h(){n(!0)}function m(){n(!1)}function y(n){const r=o.current;i.canDrag&&r&&(i.didMove=!0,t&&m(),i.delta="x"===e.draggableDirection?n.clientX-i.start:n.clientY-i.start,i.start!==n.clientX&&(i.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function g(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",g);const t=o.current;if(i.canDrag&&i.didMove&&t){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return a(!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=ns.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||p.setToggle(d.id,d.fn),v.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 b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){i.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",g);const n=o.current;i.canCloseOnClick=!0,i.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(i.start=t.clientX,i.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(i.start=t.clientY,i.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:a,right:i}=o.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=a&&t.clientX<=i&&t.clientY>=n&&t.clientY<=r?m():h()}};return s&&c&&(b.onMouseEnter=m,e.stacked||(b.onMouseLeave=h)),f&&(b.onClick=e=>{u&&u(e),i.canCloseOnClick&&l()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:b}}function MG(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:o,className:i,style:s,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:d}=e;const p=o||c&&0===l,h={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(h.transform=`scaleX(${l})`);const m=Gl("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":u}),y=si(i)?i({rtl:u,type:a,defaultClassName:m}):Gl(m,i),g={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return we.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},we.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${a}`}),we.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:y,style:h,...g}))}let NG=1;const Q5=()=>""+NG++;function DG(e){return e&&(mm(e.toastId)||l_(e.toastId))?e.toastId:Q5()}function qy(e,t){return K5(e,t),t.toastId}function Rw(e,t){return{...t,type:t&&t.type||e,toastId:DG(t)}}function pb(e){return(t,n)=>qy(t,Rw(e,n))}function xt(e,t){return qy(e,Rw("default",t))}xt.loading=(e,t)=>qy(e,Rw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xt.promise=function(e,t,n){let r,{pending:a,error:o,success:i}=t;a&&(r=mm(a)?xt.loading(a,n):xt.loading(a.render,{...n,...a}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,a)=>{if(null==t)return void xt.dismiss(r);const o={type:e,...s,...n,data:a},i=mm(t)?{render:t}:t;return r?xt.update(r,{...o,...i}):xt(i.render,{...o,...i}),a},l=si(e)?e():e;return l.then((e=>c("success",i,e))).catch((e=>c("error",o,e))),l},xt.success=pb("success"),xt.info=pb("info"),xt.error=pb("error"),xt.warning=pb("warning"),xt.warn=xt.warning,xt.dark=(e,t)=>qy(e,Rw("default",{theme:"dark",...t})),xt.dismiss=function(e){!function(e){var t;if(H5()){if(null==e||mm(t=e)||l_(t))ns.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){const t=ns.get(e.containerId);t?t.removeToast(e.id):ns.forEach((t=>{t.removeToast(e.id)}))}}else f_=f_.filter((t=>null!=e&&t.options.toastId!==e))}(e)},xt.clearWaitingQueue=function(e){void 0===e&&(e={}),ns.forEach((t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},xt.isActive=G5,xt.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=ns.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:a}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:Q5()};o.toastId!==e&&(o.staleId=e);const i=o.render||a;delete o.render,qy(i,o)}},xt.done=e=>{xt.update(e,{progress:1})},xt.onChange=function(e){return tR.add(e),()=>{tR.delete(e)}},xt.play=e=>i$(!0,e),xt.pause=e=>i$(!1,e);const LG=typeof window<"u"?v.useLayoutEffect:v.useEffect,hb=e=>{let{theme:t,type:n,isLoading:r,...a}=e;return we.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...a})},O3={info:function(e){return we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement(hb,{...e},we.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 we.createElement("div",{className:"Toastify__spinner"})}},jG=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a,playToast:o}=zG(e),{closeButton:i,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:d,transition:p,position:h,className:m,style:y,bodyClassName:g,bodyStyle:b,progressClassName:_,progressStyle:w,updateId:k,role:x,progress:S,rtl:E,toastId:A,deleteToast:C,isIn:O,isLoading:z,closeOnClick:I,theme:T}=e,R=Gl("Toastify__toast",`Toastify__toast-theme--${T}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":I}),P=si(m)?m({rtl:E,position:h,type:u,defaultClassName:R}):Gl(R,m),j=function(e){let{theme:t,type:n,isLoading:r,icon:a}=e,o=null;const i={theme:t,type:n};return!1===a||(si(a)?o=a({...i,isLoading:r}):v.isValidElement(a)?o=v.cloneElement(a,i):r?o=O3.spinner():n in O3&&(o=O3[n](i))),o}(e),N=!!S||!c,M={closeToast:d,type:u,theme:T};let D=null;return!1===i||(D=si(i)?i(M):v.isValidElement(i)?v.cloneElement(i,M):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return we.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},we.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},we.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"})))}(M)),we.createElement(p,{isIn:O,done:C,position:h,preventExitTransition:n,nodeRef:r,playToast:o},we.createElement("div",{id:A,onClick:l,"data-in":O,className:P,...a,style:y,ref:r},we.createElement("div",{...O&&{role:x},className:si(g)?g({type:u}):Gl("Toastify__toast-body",g),style:b},null!=j&&we.createElement("div",{className:Gl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!z})},j),we.createElement("div",null,s)),D,we.createElement(MG,{...k&&!N?{key:`pb-${k}`}:{},rtl:E,theme:T,delay:c,isRunning:t,isIn:O,closeToast:d,hide:f,type:u,style:w,className:_,controlledProgress:N,progress:S||0})))},Pk=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},FG=$k(Pk("bounce",!0));$k(Pk("slide",!0)),$k(Pk("zoom")),$k(Pk("flip"));const BG={position:"top-right",transition:FG,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Y5(e){let t={...BG,...e};const n=e.stacked,[r,a]=v.useState(!0),o=v.useRef(null),{getToastToRender:i,isToastActive:s,count:c}=OG(t),{className:l,style:u,rtl:f,containerId:d}=t;function p(e){const t=Gl("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return si(l)?l({position:e,rtl:f,defaultClassName:t}):Gl(t,fw(l))}function h(){n&&(a(!0),xt.play())}return LG((()=>{if(n){var e;const n=o.current.querySelectorAll('[data-in="true"]'),a=12,i=null==(e=t.position)?void 0:e.includes("top");let s=0,c=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=i?"top":"bot");const o=s*(r?.2:1)+(r?0:a*t);n.style.setProperty("--y",`${i?o:-1*o}px`),n.style.setProperty("--g",`${a}`),n.style.setProperty("--s",""+(1-(r?c:0))),s+=n.offsetHeight,c+=.025}))}}),[r,c,n]),we.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(a(!1),xt.pause())},onMouseLeave:h},i(((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return we.createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map((e=>{let{content:t,props:r}=e;return we.createElement(jG,{...r,stacked:n,collapseAll:h,isIn:s(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)})))})))}function uo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var UG="function"==typeof Symbol&&Symbol.observable||"@@observable",c$=UG,z3=()=>Math.random().toString(36).substring(7).split("").join("."),VG={INIT:`@@redux/INIT${z3()}`,REPLACE:`@@redux/REPLACE${z3()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${z3()}`},Aw=VG;function Jl(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Z5(e,t,n){if("function"!=typeof e)throw new Error(uo(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(uo(0));if("function"==typeof t&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if("function"!=typeof n)throw new Error(uo(1));return n(Z5)(e,t)}let r=e,a=t,o=new Map,i=o,s=0,c=!1;function l(){i===o&&(i=new Map,o.forEach(((e,t)=>{i.set(t,e)})))}function u(){if(c)throw new Error(uo(3));return a}function f(e){if("function"!=typeof e)throw new Error(uo(4));if(c)throw new Error(uo(5));let t=!0;l();const n=s++;return i.set(n,e),function(){if(t){if(c)throw new Error(uo(6));t=!1,l(),i.delete(n),o=null}}}function d(e){if(!Jl(e))throw new Error(uo(7));if(typeof e.type>"u")throw new Error(uo(8));if("string"!=typeof e.type)throw new Error(uo(17));if(c)throw new Error(uo(9));try{c=!0,a=r(a,e)}finally{c=!1}return(o=i).forEach((e=>{e()})),e}return d({type:Aw.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(uo(10));r=e,d({type:Aw.REPLACE})},[c$]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(uo(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[c$](){return this}}}}}function qG(e){Object.keys(e).forEach((t=>{const n=e[t];if(typeof n(void 0,{type:Aw.INIT})>"u")throw new Error(uo(12));if(typeof n(void 0,{type:Aw.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(uo(13))}))}function UA(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}const r=Object.keys(n);let a;try{qG(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let o=!1;const i={};for(let a=0;a<r.length;a++){const s=r[a],c=n[s],l=e[s],u=c(l,t);if(typeof u>"u")throw t&&t.type,new Error(uo(14));i[s]=u,o=o||u!==l}return o=o||r.length!==Object.keys(e).length,o?i:e}}function Tw(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function WG(...e){return t=>(n,r)=>{const a=t(n,r);let o=()=>{throw new Error(uo(15))};const i={getState:a.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(i)));return o=Tw(...s)(a.dispatch),{...a,dispatch:o}}}function X5(e){return Jl(e)&&"type"in e&&"string"==typeof e.type}var VA=Symbol.for("immer-nothing"),Wy=Symbol.for("immer-draftable"),$s=Symbol.for("immer-state");function po(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var vm=Object.getPrototypeOf;function Yc(e){return!!e&&!!e[$s]}function Zc(e){var t;return!!e&&(J5(e)||Array.isArray(e)||!!e[Wy]||!(null==(t=e.constructor)||!t[Wy])||J_(e)||ev(e))}var HG=Object.prototype.constructor.toString();function J5(e){if(!e||"object"!=typeof e)return!1;const t=vm(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===HG}function GG(e){return Yc(e)||po(15,e),e[$s].base_}function D1(e,t){0===bm(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function bm(e){const t=e[$s];return t?t.type_:Array.isArray(e)?1:J_(e)?2:ev(e)?3:0}function u_(e,t){return 2===bm(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function M3(e,t){return 2===bm(e)?e.get(t):e[t]}function e7(e,t,n){const r=bm(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function KG(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function J_(e){return e instanceof Map}function ev(e){return e instanceof Set}function om(e){return e.copy_||e.base_}function nR(e,t){if(J_(e))return new Map(e);if(ev(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&J5(e))return vm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[$s];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const a=r[t],o=n[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(vm(e),n)}function qA(e,t=!1){return Ok(e)||Yc(e)||!Zc(e)||(bm(e)>1&&(e.set=e.add=e.clear=e.delete=QG),Object.freeze(e),t&&D1(e,((e,t)=>qA(t,!0)))),e}function QG(){po(2)}function Ok(e){return Object.isFrozen(e)}var d_,rR={};function wm(e){const t=rR[e];return t||po(0,e),t}function YG(e,t){rR[e]||(rR[e]=t)}function t7(){return d_}function ZG(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function l$(e,t){t&&(wm("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function aR(e){oR(e),e.drafts_.forEach(XG),e.drafts_=null}function oR(e){e===d_&&(d_=e.parent_)}function f$(e){return d_=ZG(d_,e)}function XG(e){const t=e[$s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function u$(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[$s].modified_&&(aR(t),po(4)),Zc(e)&&(e=Iw(t,e),t.parent_||$w(t,e)),t.patches_&&wm("Patches").generateReplacementPatches_(n[$s].base_,e,t.patches_,t.inversePatches_)):e=Iw(t,n,[]),aR(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==VA?e:void 0}function Iw(e,t,n){if(Ok(t))return t;const r=t[$s];if(!r)return D1(t,((a,o)=>d$(e,r,t,a,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return $w(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let a=t,o=!1;3===r.type_&&(a=new Set(t),t.clear(),o=!0),D1(a,((a,i)=>d$(e,r,t,a,i,n,o))),$w(e,t,!1),n&&e.patches_&&wm("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function d$(e,t,n,r,a,o,i){if(Yc(a)){const i=Iw(e,a,o&&t&&3!==t.type_&&!u_(t.assigned_,r)?o.concat(r):void 0);if(e7(n,r,i),!Yc(i))return;e.canAutoFreeze_=!1}else i&&n.add(a);if(Zc(a)&&!Ok(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Iw(e,a),(!t||!t.scope_.parent_)&&$w(e,a)}}function $w(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qA(t,n)}function JG(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:t7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,o=WA;n&&(a=[r],o=p_);const{revoke:i,proxy:s}=Proxy.revocable(a,o);return r.draft_=s,r.revoke_=i,s}var WA={get(e,t){if(t===$s)return e;const n=om(e);if(!u_(n,t))return eK(e,n,t);const r=n[t];return e.finalized_||!Zc(r)?r:r===N3(e.base_,t)?(D3(e),e.copy_[t]=iR(r,e)):r},has:(e,t)=>t in om(e),ownKeys:e=>Reflect.ownKeys(om(e)),set(e,t,n){const r=n7(om(e),t);if(null!=r&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=N3(om(e),t),a=null==r?void 0:r[$s];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(KG(n,r)&&(void 0!==n||u_(e.base_,t)))return!0;D3(e),sR(e)}return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==N3(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,D3(e),sR(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=om(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty(){po(11)},getPrototypeOf:e=>vm(e.base_),setPrototypeOf(){po(12)}},p_={};function N3(e,t){const n=e[$s];return(n?om(n):e)[t]}function eK(e,t,n){var r;const a=n7(t,n);return a?"value"in a?a.value:null==(r=a.get)?void 0:r.call(e.draft_):void 0}function n7(e,t){if(!(t in e))return;let n=vm(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=vm(n)}}function sR(e){e.modified_||(e.modified_=!0,e.parent_&&sR(e.parent_))}function D3(e){e.copy_||(e.copy_=nR(e.base_,e.scope_.immer_.useStrictShallowCopy_))}D1(WA,((e,t)=>{p_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),p_.deleteProperty=function(e,t){return p_.set.call(this,e,t,void 0)},p_.set=function(e,t,n){return WA.set.call(this,e[0],t,n,e[0])};var tK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...a){return r.produce(e,(e=>t.call(this,e,...a)))}}let r;if("function"!=typeof t&&po(6),void 0!==n&&"function"!=typeof n&&po(7),Zc(e)){const a=f$(this),o=iR(e,void 0);let i=!0;try{r=t(o),i=!1}finally{i?aR(a):oR(a)}return l$(a,n),u$(r,a)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===VA&&(r=void 0),this.autoFreeze_&&qA(r,!0),n){const t=[],a=[];wm("Patches").generateReplacementPatches_(e,r,t,a),n(t,a)}return r}po(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zc(e)||po(8),Yc(e)&&(e=r7(e));const t=f$(this),n=iR(e,void 0);return n[$s].isManual_=!0,oR(t),n}finishDraft(e,t){const n=e&&e[$s];(!n||!n.isManual_)&&po(9);const{scope_:r}=n;return l$(r,t),u$(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=wm("Patches").applyPatches_;return Yc(e)?r(e,t):this.produce(e,(e=>r(e,t)))}};function iR(e,t){const n=J_(e)?wm("MapSet").proxyMap_(e,t):ev(e)?wm("MapSet").proxySet_(e,t):JG(e,t);return(t?t.scope_:t7()).drafts_.push(n),n}function r7(e){return Yc(e)||po(10,e),a7(e)}function a7(e){if(!Zc(e)||Ok(e))return e;const t=e[$s];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=nR(e,t.scope_.immer_.useStrictShallowCopy_)}else n=nR(e,!0);return D1(n,((e,t)=>{e7(n,e,a7(t))})),t&&(t.finalized_=!1),n}function nK(){const e="replace",t="add",n="remove";function r(e){if(!Zc(e))return e;if(Array.isArray(e))return e.map(r);if(J_(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,r(t)])));if(ev(e))return new Set(Array.from(e).map(r));const t=Object.create(vm(e));for(const n in e)t[n]=r(e[n]);return u_(e,Wy)&&(t[Wy]=e[Wy]),t}function a(e){return Yc(e)?r(e):e}YG("Patches",{applyPatches_:function(a,o){return o.forEach((o=>{const{path:i,op:s}=o;let c=a;for(let e=0;e<i.length-1;e++){const t=bm(c);let n=i[e];"string"!=typeof n&&"number"!=typeof n&&(n=""+n),(0===t||1===t)&&("__proto__"===n||"constructor"===n)&&po(19),"function"==typeof c&&"prototype"===n&&po(19),c=M3(c,n),"object"!=typeof c&&po(18,i.join("/"))}const l=bm(c),u=r(o.value),f=i[i.length-1];switch(s){case e:switch(l){case 2:return c.set(f,u);case 3:po(16);default:return c[f]=u}case t:switch(l){case 1:return"-"===f?c.push(u):c.splice(f,0,u);case 2:return c.set(f,u);case 3:return c.add(u);default:return c[f]=u}case n:switch(l){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(o.value);default:return delete c[f]}default:po(17,s)}})),a},generatePatches_:function(r,o,i,s){switch(r.type_){case 0:case 2:return function(r,o,i,s){const{base_:c,copy_:l}=r;D1(r.assigned_,((r,u)=>{const f=M3(c,r),d=M3(l,r),p=u?u_(c,r)?e:t:n;if(f===d&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:d}),s.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:a(f)}:{op:e,path:h,value:a(f)})}))}(r,o,i,s);case 1:return function(r,o,i,s){let{base_:c,assigned_:l}=r,u=r.copy_;u.length<c.length&&([c,u]=[u,c],[i,s]=[s,i]);for(let t=0;t<c.length;t++)if(l[t]&&u[t]!==c[t]){const n=o.concat([t]);i.push({op:e,path:n,value:a(u[t])}),s.push({op:e,path:n,value:a(c[t])})}for(let e=c.length;e<u.length;e++){const n=o.concat([e]);i.push({op:t,path:n,value:a(u[e])})}for(let e=u.length-1;c.length<=e;--e){const t=o.concat([e]);s.push({op:n,path:t})}}(r,o,i,s);case 3:return function(e,r,a,o){let{base_:i,copy_:s}=e,c=0;i.forEach((e=>{if(!s.has(e)){const i=r.concat([c]);a.push({op:n,path:i,value:e}),o.unshift({op:t,path:i,value:e})}c++})),c=0,s.forEach((e=>{if(!i.has(e)){const i=r.concat([c]);a.push({op:t,path:i,value:e}),o.unshift({op:n,path:i,value:e})}c++}))}(r,o,i,s)}},generateReplacementPatches_:function(t,n,r,a){r.push({op:e,path:[],value:n===VA?void 0:n}),a.push({op:e,path:[],value:t})}})}var fi=new tK,tv=fi.produce,o7=fi.produceWithPatches.bind(fi);fi.setAutoFreeze.bind(fi),fi.setUseStrictShallowCopy.bind(fi);var p$=fi.applyPatches.bind(fi);function rK(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}function aK(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}function oK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}fi.createDraft.bind(fi),fi.finishDraft.bind(fi);var h$=e=>Array.isArray(e)?e:[e];function sK(e){const t=Array.isArray(e[0])?e[0]:e;return oK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function iK(e,t){const n=[],{length:r}=e;for(let a=0;a<r;a++)n.push(e[a].apply(null,t));return n}var cK=class{constructor(e){this.value=e}deref(){return this.value}},lK=typeof WeakRef<"u"?WeakRef:cK,fK=0,m$=1;function mb(){return{s:fK,v:void 0,o:null,p:null}}function h_(e,t={}){let n=mb();const{resultEqualityCheck:r}=t;let a,o=0;function i(){var t;let i=n;const{length:s}=arguments;for(let e=0,t=s;e<t;e++){const t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=mb(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=mb(),e.set(t,i)):i=n}}const c=i;let l;if(i.s===m$?l=i.v:(l=e.apply(null,arguments),o++),c.s=m$,r){const e=(null==(t=null==a?void 0:a.deref)?void 0:t.call(a))??a;null!=e&&r(e,l)&&(l=e,0!==o&&o--),a="object"==typeof l&&null!==l||"function"==typeof l?new lK(l):l}return c.v=l,l}return i.clearCache=()=>{n=mb(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function s7(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),rK(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const s={...n,...o},{memoize:c,memoizeOptions:l=[],argsMemoize:u=h_,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=h$(l),h=h$(f),m=sK(e),y=c((function(){return r++,i.apply(null,arguments)}),...p),g=u((function(){a++;const e=iK(m,arguments);return t=y.apply(null,e),t}),...h);return Object.assign(g,{resultFunc:i,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var mo=s7(h_),uK=Object.assign(((e,t=mo)=>{aK(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>uK});function i7(e){return({dispatch:t,getState:n})=>r=>a=>"function"==typeof a?a(t,n,e):r(a)}var dK=i7(),pK=i7,hK={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"7d05166ba08ea35a",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.130",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"},mK=(...e)=>{const t=s7(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Yc(e)?r7(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n});return n};mK(h_);var gK=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Tw:Tw.apply(null,arguments)},yK=e=>e&&"function"==typeof e.match;function zr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Ha(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>X5(t)&&t.type===e,n}var c7=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function g$(e){return Zc(e)?tv(e,(()=>{})):e}function cR(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(Ha(10));const r=n.insert(t,e);return e.set(t,r),r}function _K(e){return"boolean"==typeof e}var vK=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:a=!0}=e??{};let o=new c7;return t&&(_K(t)?o.push(dK):o.push(pK(t.extraArgument))),o},k1="RTK_autoBatch",dy=()=>e=>({payload:e,meta:{[k1]:!0}}),l7=e=>t=>{setTimeout(t,e)},bK=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:l7(10),wK=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let a=!0,o=!1,i=!1;const s=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?bK:"callback"===e.type?e.queueNotification:l7(e.timeout),l=()=>{i=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>a&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return a=!(null!=(t=null==e?void 0:e.meta)&&t[k1]),o=!a,o&&(i||(i=!0,c(l))),r.dispatch(e)}finally{a=!0}}})},kK=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new c7(e);return n&&r.push(wK("object"==typeof n?n:void 0)),r},xK="production"===hK.NODE_ENV;function SK(e){const t=vK(),{reducer:n,middleware:r,devTools:a=!0,preloadedState:o,enhancers:i}=e;let s,c;if("function"==typeof n)s=n;else{if(!Jl(n))throw new Error(Ha(1));s=UA(n)}c="function"==typeof r?r(t):t();let l=Tw;a&&(l=gK({trace:!xK,..."object"==typeof a&&a}));const u=WG(...c),f=kK(u);return Z5(s,o,l(..."function"==typeof i?i(f):f()))}function f7(e){const t={},n=[];let r;const a={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ha(28));if(r in t)throw new Error(Ha(29));return t[r]=n,a},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(r=e,a)};return e(a),[t,n,r]}function EK(e){return"function"==typeof e}function CK(e,t){let n,[r,a,o]=f7(t);if(EK(e))n=()=>g$(e());else{const t=g$(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...a.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===i.filter((e=>!!e)).length&&(i=[o]),i.reduce(((e,n)=>{if(n){if(Yc(e)){const r=n(e,t);return void 0===r?e:r}if(Zc(e))return tv(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(Ha(9))}return r}}return e}),e)}return i.getInitialState=n,i}var RK="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zk=(e=21)=>{let t="",n=e;for(;n--;)t+=RK[64*Math.random()|0];return t},u7=(e,t)=>yK(e)?e.match(t):e(t);function Cp(...e){return t=>e.some((e=>u7(e,t)))}function Hy(...e){return t=>e.every((e=>u7(e,t)))}function Mk(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function nv(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function HA(...e){return 0===e.length?e=>Mk(e,["pending"]):nv(e)?t=>Cp(...e.map((e=>e.pending)))(t):HA()(e[0])}function L1(...e){return 0===e.length?e=>Mk(e,["rejected"]):nv(e)?t=>Cp(...e.map((e=>e.rejected)))(t):L1()(e[0])}function Nk(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||nv(e)?n=>Hy(L1(...e),t)(n):Nk()(e[0])}function Rp(...e){return 0===e.length?e=>Mk(e,["fulfilled"]):nv(e)?t=>Cp(...e.map((e=>e.fulfilled)))(t):Rp()(e[0])}function lR(...e){return 0===e.length?e=>Mk(e,["pending","fulfilled","rejected"]):nv(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return Cp(...n)(t)}:lR()(e[0])}var AK=["name","message","stack","code"],L3=class{constructor(e,t){$3(this,"_type"),this.payload=e,this.meta=t}},y$=class{constructor(e,t){$3(this,"_type"),this.payload=e,this.meta=t}},TK=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of AK)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},_$=(()=>{function e(e,t,n){const r=zr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),a=zr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=zr(e+"/rejected",((e,t,r,a,o)=>({payload:a,error:(n&&n.serializeError||TK)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)}})));return Object.assign((function(e){return(i,s,c)=>{const l=null!=n&&n.idGenerator?n.idGenerator(e):zk(),u=new AbortController;let f,d;function p(e){d=e,u.abort()}const h=async function(){var h,m;let y;try{let o=null==(h=null==n?void 0:n.condition)?void 0:h.call(n,e,{getState:s,extra:c});if($K(o)&&(o=await o),!1===o||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},u.signal.addEventListener("abort",f)}));i(a(l,e,null==(m=null==n?void 0:n.getPendingMeta)?void 0:m.call(n,{requestId:l,arg:e},{getState:s,extra:c}))),y=await Promise.race([g,Promise.resolve(t(e,{dispatch:i,getState:s,extra:c,requestId:l,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new L3(e,t),fulfillWithValue:(e,t)=>new y$(e,t)})).then((t=>{if(t instanceof L3)throw t;return t instanceof y$?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(t){y=t instanceof L3?o(null,l,e,t.payload,t.meta):o(t,l,e)}finally{f&&u.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||i(y),y}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(IK)})}}),{pending:a,rejected:o,fulfilled:r,settled:Cp(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function IK(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function $K(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var PK=Symbol.for("rtk-slice-createasyncthunk");function OK(e,t){return`${e}/${t}`}function zK({creators:e}={}){var t;const n=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[PK];return function(e){const{name:t,reducerPath:r=t}=e;if(!t)throw new Error(Ha(11));const a=("function"==typeof e.reducers?e.reducers(NK()):e.reducers)||{},o=Object.keys(a),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ha(12));if(n in i.sliceCaseReducersByType)throw new Error(Ha(13));return i.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(i.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?f7(e.extraReducers):[e.extraReducers],a={...t,...i.sliceCaseReducersByType};return CK(e.initialState,(e=>{for(let t in a)e.addCase(t,a[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}o.forEach((r=>{const o=a[r],i={reducerName:r,type:OK(t,r),createNotation:"function"==typeof e.reducers};LK(o)?FK(i,o,s,n):DK(i,o,s)}));const l=e=>e,u=new Map;let f;function d(e,t){return f||(f=c()),f(e,t)}function p(){return f||(f=c()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return typeof r>"u"&&n&&(r=p()),r}function a(t=l){const r=cR(u,n,{insert:()=>new WeakMap});return cR(r,t,{insert:()=>{const r={};for(const[a,o]of Object.entries(e.selectors??{}))r[a]=MK(o,t,p,n);return r}})}return{reducerPath:t,getSelectors:a,get selectors(){return a(r)},selectSlice:r}}const m={name:t,reducer:d,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const a=t??r;return e.inject({reducerPath:a,reducer:d},n),{...m,...h(a,!0)}}};return m}}function MK(e,t,n,r){function a(a,...o){let i=t(a);return typeof i>"u"&&r&&(i=n()),e(i,...o)}return a.unwrapped=e,a}var qr=zK();function NK(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}function DK({type:e,reducerName:t,createNotation:n},r,a){let o,i;if("reducer"in r){if(n&&!jK(r))throw new Error(Ha(17));o=r.reducer,i=r.prepare}else o=r;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?zr(e,i):zr(e))}function LK(e){return"asyncThunk"===e._reducerDefinitionType}function jK(e){return"reducerWithPrepare"===e._reducerDefinitionType}function FK({type:e,reducerName:t},n,r,a){if(!a)throw new Error(Ha(18));const{payloadCreator:o,fulfilled:i,pending:s,rejected:c,settled:l,options:u}=n,f=a(e,o,u);r.exposeAction(t,f),i&&r.addCase(f.fulfilled,i),s&&r.addCase(f.pending,s),c&&r.addCase(f.rejected,c),l&&r.addMatcher(f.settled,l),r.exposeCaseReducer(t,{fulfilled:i||gb,pending:s||gb,rejected:c||gb,settled:l||gb})}function gb(){}var BK=(e,t)=>{if("function"!=typeof e)throw new Error(Ha(32))},GA="listenerMiddleware",UK=e=>{let{type:t,actionCreator:n,matcher:r,predicate:a,effect:o}=e;if(t)a=zr(t).match;else if(n)t=n.type,a=n.match;else if(r)a=r;else if(!a)throw new Error(Ha(21));return BK(o),{predicate:a,type:t,effect:o}},VK=Object.assign((e=>{const{type:t,predicate:n,effect:r}=UK(e);return{id:zk(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ha(22))}}}),{withTypes:()=>VK}),qK=Object.assign(zr(`${GA}/add`),{withTypes:()=>qK});zr(`${GA}/removeAll`);var WK=Object.assign(zr(`${GA}/remove`),{withTypes:()=>WK}),HK=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,GK=e=>e.flatMap((e=>HK(e)?[[e.reducerPath,e.reducer]]:Object.entries(e))),KA=Symbol.for("rtk-state-proxy-original"),KK=e=>!!e&&!!e[KA],QK=new WeakMap,YK=(e,t)=>cR(QK,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===KA)return e;const a=Reflect.get(e,n,r);if(typeof a>"u"){const e=t[n.toString()];if(e){const t=e(void 0,{type:zk()});if(typeof t>"u")throw new Error(Ha(24));return t}}return a}})}),ZK=e=>{if(!KK(e))throw new Error(Ha(25));return e[KA]},XK=(e={})=>e;function JK(...e){const t=Object.fromEntries(GK(e)),n=()=>Object.keys(t).length?UA(t):XK;let r=n();function a(e,t){return r(e,t)}a.withLazyLoadedSlices=()=>a;const o=Object.assign((function(e,n){return function(r,...a){return e(YK(n?n(r,...a):r,t),...a)}}),{original:ZK});return Object.assign(a,{inject:(e,o={})=>{const{reducerPath:i,reducer:s}=e,c=t[i];return!o.overrideExisting&&c&&c!==s||(t[i]=s,r=n()),a},selector:o})}function Ha(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eQ={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"7d05166ba08ea35a",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.130",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"},d7=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(d7||{});function tQ(e){return{status:e,isUninitialized:"uninitialized"===e,isLoading:"pending"===e,isSuccess:"fulfilled"===e,isError:"rejected"===e}}function nQ(e){return new RegExp("(^|:)//").test(e)}var rQ=e=>e.replace(/\/$/,""),aQ=e=>e.replace(/^\//,"");function oQ(e,t){if(!e)return t;if(!t)return e;if(nQ(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=rQ(e)}${n}${t=aQ(t)}`}var v$=e=>[].concat(...e);function sQ(){return typeof navigator>"u"||void 0===navigator.onLine||navigator.onLine}function iQ(){return typeof document>"u"||"hidden"!==document.visibilityState}var b$=Jl;function p7(e,t){if(e===t||!(b$(e)&&b$(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let a=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const r of n)o[r]=p7(e[r],t[r]),a&&(a=e[r]===o[r]);return a?e:o}var w$=(...e)=>fetch(...e),cQ=e=>e.status>=200&&e.status<=299,lQ=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function k$(e){if(!Jl(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function fQ({baseUrl:e,prepareHeaders:t=e=>e,fetchFn:n=w$,paramsSerializer:r,isJsonContentType:a=lQ,jsonContentType:o="application/json",jsonReplacer:i,timeout:s,responseHandler:c,validateStatus:l,...u}={}){return typeof fetch>"u"&&n===w$&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:h,getState:m,extra:y,endpoint:g,forced:v,type:b}=p;let _,{url:w,headers:k=new Headers(u.headers),params:x,responseHandler:S=c??"json",validateStatus:E=l??cQ,timeout:A=s,...C}="string"==typeof d?{url:d}:d,O={...u,signal:h,...C};k=new Headers(k$(k)),O.headers=await t(k,{getState:m,extra:y,endpoint:g,forced:v,type:b})||k;const z=e=>"object"==typeof e&&(Jl(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!O.headers.has("content-type")&&z(O.body)&&O.headers.set("content-type",o),z(O.body)&&a(O.headers)&&(O.body=JSON.stringify(O.body,i)),x){const e=~w.indexOf("?")?"&":"?";w+=e+(r?r(x):new URLSearchParams(k$(x)))}w=oQ(e,w);const I=new Request(w,O);_={request:new Request(w,O)};let T,R=!1,P=A&&setTimeout((()=>{R=!0,p.abort()}),A);try{T=await n(I)}catch(e){return{error:{status:R?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:_}}finally{P&&clearTimeout(P)}const j=T.clone();_.response=j;let N,M="";try{let e;if(await Promise.all([f(T,S).then((e=>N=e),(t=>e=t)),j.text().then((e=>M=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:T.status,data:M,error:String(e)},meta:_}}return E(T,N)?{data:N,meta:_}:{error:{status:T.status,data:N},meta:_}};async function f(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=a(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var x$=class{constructor(e,t=void 0){this.value=e,this.meta=t}},QA=zr("__rtkq/focused"),h7=zr("__rtkq/unfocused"),YA=zr("__rtkq/online"),m7=zr("__rtkq/offline");function g7(e){return"query"===e.type}function uQ(e){return"mutation"===e.type}function ZA(e,t,n,r,a,o){return dQ(e)?e(t,n,r,a).map(fR).map(o):Array.isArray(e)?e.map(fR).map(o):[]}function dQ(e){return"function"==typeof e}function fR(e){return"string"==typeof e?{type:e}:e}function S$(e){return null!=e}function T1(e){let t=0;for(const n in e)t++;return t}function pQ(e,t){return e.catch(t)}var m_=Symbol("forceQueryFn"),uR=e=>"function"==typeof e[m_];function hQ({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:a}){const o=new Map,i=new Map,{unsubscribeQueryResult:s,removeMutationResult:c,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,a){const i=(c,{subscribe:u=!0,forceRefetch:f,subscriptionOptions:d,[m_]:p,...h}={})=>(m,y)=>{var g;const v=e({queryArgs:c,endpointDefinition:a,endpointName:n}),b=t({...h,type:"query",subscribe:u,forceRefetch:f,subscriptionOptions:d,endpointName:n,originalArgs:c,queryCacheKey:v,[m_]:p}),_=r.endpoints[n].select(c),w=m(b),k=_(y()),{requestId:x,abort:S}=w,E=k.requestId!==x,A=null==(g=o.get(m))?void 0:g[v],C=()=>_(y()),O=Object.assign(p?w.then(C):E&&!A?Promise.resolve(k):Promise.all([A,w]).then(C),{arg:c,requestId:x,subscriptionOptions:d,queryCacheKey:v,abort:S,async unwrap(){const e=await O;if(e.isError)throw e.error;return e.data},refetch:()=>m(i(c,{subscribe:!1,forceRefetch:!0})),unsubscribe(){u&&m(s({queryCacheKey:v,requestId:x}))},updateSubscriptionOptions(e){O.subscriptionOptions=e,m(l({endpointName:n,requestId:x,queryCacheKey:v,options:e}))}});if(!A&&!E&&!p){const e=o.get(m)||{};e[v]=O,o.set(m,e),O.then((()=>{delete e[v],T1(e)||o.delete(m)}))}return O};return i},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:a}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:a}),u=o(l),{requestId:f,abort:d,unwrap:p}=u,h=pQ(u.unwrap().then((e=>({data:e}))),(e=>({error:e}))),m=Object.assign(h,{arg:u.arg,requestId:f,abort:d,unwrap:p,reset:()=>{o(c({requestId:f,fixedCacheKey:a}))}}),y=i.get(o)||{};return i.set(o,y),y[f]=m,m.then((()=>{delete y[f],T1(y)||i.delete(o)})),a&&(y[a]=m,m.then((()=>{y[a]===m&&(delete y[a],T1(y)||i.delete(o))}))),m}},getRunningQueryThunk:function(t,n){return r=>{var i;const s=a.endpointDefinitions[t],c=e({queryArgs:n,endpointDefinition:s,endpointName:t});return null==(i=o.get(r))?void 0:i[c]}},getRunningMutationThunk:function(e,t){return e=>{var n;return null==(n=i.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(S$)},getRunningMutationsThunk:function(){return e=>Object.values(i.get(e)||{}).filter(S$)}}}function E$(e){return e}function mQ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:o}){const i=async(e,{signal:r,abort:a,rejectWithValue:o,fulfillWithValue:i,dispatch:c,getState:l,extra:u})=>{const f=n[e.endpointName];try{let n,o=E$;const d={signal:r,abort:a,dispatch:c,getState:l,extra:u,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?s(e,l()):void 0},p="query"===e.type?e[m_]:void 0;if(p?n=p():f.query?(n=await t(f.query(e.originalArgs),d,f.extraOptions),f.transformResponse&&(o=f.transformResponse)):n=await f.queryFn(e.originalArgs,d,f.extraOptions,(e=>t(e,d,f.extraOptions))),typeof process<"u"&&eQ.NODE_ENV,n.error)throw new x$(n.error,n.meta);return i(await o(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[k1]:!0})}catch(t){let n=t;if(n instanceof x$){let t=E$;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return o(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[k1]:!0})}catch(e){n=e}}throw console.error(n),n}};function s(t,n){var r,a,o;const i=null==(a=null==(r=n[e])?void 0:r.queries)?void 0:a[t.queryCacheKey],s=null==(o=n[e])?void 0:o.config.refetchOnMountOrArgChange,c=null==i?void 0:i.fulfilledTimeStamp,l=t.forceRefetch??(t.subscribe&&s);return!!l&&(!0===l||(Number(new Date)-Number(c))/1e3>=l)}const c=_$(`${e}/executeQuery`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[k1]:!0}),condition(t,{getState:r}){var a,o,i;const c=r(),l=null==(o=null==(a=c[e])?void 0:a.queries)?void 0:o[t.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,f=t.originalArgs,d=null==l?void 0:l.originalArgs,p=n[t.endpointName];return!!uR(t)||"pending"!==(null==l?void 0:l.status)&&(!!(s(t,c)||g7(p)&&null!=(i=null==p?void 0:p.forceRefetch)&&i.call(p,{currentArg:f,previousArg:d,endpointState:l,state:c}))||!u)},dispatchConditionRejection:!0}),l=_$(`${e}/executeMutation`,i,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[k1]:!0})});function u(e){return t=>{var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:c,mutationThunk:l,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,c=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(o());if(i)r(c());else if(s){const e=null==l?void 0:l.fulfilledTimeStamp;if(!e)return void r(c());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(c())}else r(c(!1))},updateQueryData:(e,t,n,r=!0)=>(o,i)=>{const s=a.endpoints[e].select(t)(i());let c,l={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===s.status)return l;if("data"in s)if(Zc(s.data)){const[e,t,r]=o7(s.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(s.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[m_]:()=>({data:n})})),patchQueryData:(e,t,i,s)=>(c,l)=>{const u=n[e],f=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(c(a.internalActions.queryResultPatched({queryCacheKey:f,patches:i})),!s)return;const d=a.endpoints[e].select(t)(l()),p=ZA(u.providesTags,d.data,void 0,t,{},o);c(a.internalActions.updateProvidedBy({queryCacheKey:f,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:Hy(HA(e),u(t)),matchFulfilled:Hy(Rp(e),u(t)),matchRejected:Hy(L1(e),u(t))}}}}function y7(e,t,n,r){return ZA(n[e.meta.arg.endpointName][t],Rp(e)?e.payload:void 0,Nk(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function yb(e,t,n){const r=e[t];r&&n(r)}function g_(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function C$(e,t,n){const r=e[g_(t)];r&&n(r)}var py={};function gQ({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:r,apiUid:a,extractRehydrationInfo:o,hasRehydrationInfo:i},assertTagType:s,config:c}){const l=zr(`${e}/resetApiState`),u=qr({name:`${e}/queries`,initialState:py,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:dy()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){yb(e,t,(e=>{e.data=p$(e.data,n.concat())}))},prepare:dy()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{var r;const a=uR(n);e[r=n.queryCacheKey]??(e[r]={status:"uninitialized",endpointName:n.endpointName}),yb(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=a&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{yb(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!uR(t.arg))return;const{merge:a}=r[t.arg.endpointName];if(e.status="fulfilled",a)if(void 0!==e.data){const{fulfilledTimeStamp:r,arg:o,baseQueryMeta:i,requestId:s}=t;let c=tv(e.data,(e=>a(e,n,{arg:o.originalArgs,baseQueryMeta:i,fulfilledTimeStamp:r,requestId:s})));e.data=c}else e.data=n;else e.data=r[t.arg.endpointName].structuralSharing??1?p7(Yc(e.data)?GG(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:a,payload:o})=>{yb(e,n.queryCacheKey,(e=>{if(!t){if(e.requestId!==r)return;e.status="rejected",e.error=o??a}}))})).addMatcher(i,((e,t)=>{const{queries:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&(e[t]=r)}))}}),f=qr({name:`${e}/mutations`,initialState:py,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=g_(t);n in e&&delete e[n]},prepare:dy()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:a}})=>{r.track&&(e[g_(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:a})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&C$(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&C$(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(i,((e,t)=>{const{mutations:n}=o(t);for(const[t,r]of Object.entries(n))("fulfilled"===(null==r?void 0:r.status)||"rejected"===(null==r?void 0:r.status))&&t!==(null==r?void 0:r.requestId)&&(e[t]=r)}))}}),d=qr({name:`${e}/invalidation`,initialState:py,reducers:{updateProvidedBy:{reducer(e,t){var n,r;const{queryCacheKey:a,providedTags:o}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(a);-1!==t&&e.splice(t,1)}for(const{type:t,id:i}of o){const o=(n=e[t]??(e[t]={}))[r=i||"__internal_without_id"]??(n[r]=[]);o.includes(a)||o.push(a)}},prepare:dy()}},extraReducers(e){e.addCase(u.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(i,((e,t)=>{var n,r;const{provided:a}=o(t);for(const[t,o]of Object.entries(a))for(const[a,i]of Object.entries(o)){const o=(n=e[t]??(e[t]={}))[r=a||"__internal_without_id"]??(n[r]=[]);for(const e of i)o.includes(e)||o.push(e)}})).addMatcher(Cp(Rp(t),Nk(t)),((e,t)=>{const n=y7(t,"providesTags",r,s),{queryCacheKey:a}=t.meta.arg;d.caseReducers.updateProvidedBy(e,d.actions.updateProvidedBy({queryCacheKey:a,providedTags:n}))}))}}),p=qr({name:`${e}/subscriptions`,initialState:py,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),h=qr({name:`${e}/internalSubscriptions`,initialState:py,reducers:{subscriptionsUpdated:{reducer:(e,t)=>p$(e,t.payload),prepare:dy()}}}),m=qr({name:`${e}/config`,initialState:{online:sQ(),focused:iQ(),middlewareRegistered:!1,...c},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===t||"conflict"}},extraReducers:e=>{e.addCase(YA,(e=>{e.online=!0})).addCase(m7,(e=>{e.online=!1})).addCase(QA,(e=>{e.focused=!0})).addCase(h7,(e=>{e.focused=!1})).addMatcher(i,(e=>({...e})))}}),y=UA({queries:u.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:h.reducer,config:m.reducer});return{reducer:(e,t)=>y(l.match(t)?void 0:e,t),actions:{...m.actions,...u.actions,...p.actions,...h.actions,...f.actions,...d.actions,resetApiState:l}}}var fm=Symbol.for("RTKQ/skipToken"),_7={status:"uninitialized"},R$=tv(_7,(()=>{})),A$=tv(_7,(()=>{}));function yQ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>R$,a=e=>A$;return{buildQuerySelector:function(t,a){return s=>{const c=e({queryArgs:s,endpointDefinition:a,endpointName:t});return n(s===fm?r:e=>{var t,n;return(null==(n=null==(t=i(e))?void 0:t.queries)?void 0:n[c])??R$},o)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?g_(e)??fm:e,n(t===fm?a:e=>{var n,r;return(null==(r=null==(n=i(e))?void 0:n.mutations)?void 0:r[t])??A$},o)}},selectInvalidatedBy:function(e,n){const r=e[t],a=new Set;for(const e of n.map(fR)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:v$(Object.values(t)))??[];for(const e of n)a.add(e)}return v$(Array.from(a.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>(null==e?void 0:e.endpointName)===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...tQ(e.status)}}function i(e){return e[t]}}var o1=WeakMap?new WeakMap:void 0,T$=({endpointName:e,queryArgs:t})=>{let n="";const r=null==o1?void 0:o1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Jl(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Jl(t)&&(null==o1||o1.set(t,e)),n=e}return`${e}(${n})`};function _Q(...e){return function(t){const n=h_((e=>{var n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:t.reducerPath??"api"})})),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=T$;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:T$({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},a={endpointDefinitions:{},batch(e){e()},apiUid:zk(),extractRehydrationInfo:n,hasRehydrationInfo:h_((e=>null!=n(e)))},o={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in a.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error(Ha(39))}else{a.endpointDefinitions[n]=r;for(const e of i)e.injectEndpoint(n,r)}return o},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(a.endpointDefinitions[e]):Object.assign(a.endpointDefinitions[e]||{},n);return o}},i=e.map((e=>e.init(o,r,a)));return o.injectEndpoints({endpoints:t.endpoints})}}function vQ(e){for(let t in e)return!1;return!0}var bQ=2147482.647,wQ=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions;function i(e){const t=r.currentSubscriptions[e];return!!t&&!vQ(t)}const s={};function c(e,t,r,o){const c=n.endpointDefinitions[t],l=(null==c?void 0:c.keepUnusedDataFor)??o.keepUnusedDataFor;if(l===1/0)return;const u=Math.max(0,Math.min(l,bQ));if(!i(e)){const t=s[e];t&&clearTimeout(t),s[e]=setTimeout((()=>{i(e)||r.dispatch(a({queryCacheKey:e})),delete s[e]}),1e3*u)}}return(r,a,i)=>{var l;if(o.match(r)){const t=a.getState()[e],{queryCacheKey:n}=r.payload;c(n,null==(l=t.queries[n])?void 0:l.endpointName,a,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(s))t&&clearTimeout(t),delete s[e];if(n.hasRehydrationInfo(r)){const t=a.getState()[e],{queries:o}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(o))c(e,null==n?void 0:n.endpointName,a,t.config)}}},kQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:a,api:o,assertTagType:i,refetchQuery:s,internalState:c})=>{const{removeQueryResult:l}=o.internalActions,u=Cp(Rp(r),Nk(r)),f=Cp(Rp(r,a),L1(r,a));let d=[];function p(n,r){const a=r.getState(),i=a[e];if(d.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){var t,n;for(const n in e.queries)if("pending"===(null==(t=e.queries[n])?void 0:t.status))return!0;for(const t in e.mutations)if("pending"===(null==(n=e.mutations[t])?void 0:n.status))return!0;return!1}(i))return;const u=d;if(d=[],0===u.length)return;const f=o.util.selectInvalidatedBy(a,u);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===T1(n)?r.dispatch(l({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{u(e)?p(y7(e,"invalidatesTags",n,i),t):f(e)?p([],t):o.util.invalidateTags.match(e)&&p(ZA(e.payload,void 0,void 0,void 0,void 0,i),t)}},xQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:a})=>{const o={};function i({queryCacheKey:t},n){const s=n.getState()[e],c=s.queries[t],u=a.currentSubscriptions[t];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:d}=l(u);if(!Number.isFinite(f))return;const p=o[t];null!=p&&p.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+f;o[t]={nextPollTimestamp:h,pollingInterval:f,timeout:setTimeout((()=>{(s.config.focused||!d)&&n.dispatch(r(c,t)),i({queryCacheKey:t},n)}),f)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=a.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=l(s);if(!Number.isFinite(u))return void c(t);const f=o[t],d=Date.now()+u;(!f||d<f.nextPollTimestamp)&&i({queryCacheKey:t},n)}function c(e){const t=o[e];null!=t&&t.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&i(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))c(e)}()}},SQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:a})=>{const{removeQueryResult:o}=n.internalActions;function i(n,i){const s=n.getState()[e],c=s.queries,l=a.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=c[e],a=l[e];a&&t&&((Object.values(a).some((e=>!0===e[i]))||Object.values(a).every((e=>void 0===e[i]))&&s.config[i])&&(0===T1(a)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{QA.match(e)&&i(t,"refetchOnFocus"),YA.match(e)&&i(t,"refetchOnReconnect")}},I$=new Error("Promise never resolved before cacheEntryRemoved."),EQ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:a,internalState:o})=>{const i=lR(r),s=lR(a),c=Rp(r,a),l={};function u(t,r,a,o,i){const s=n.endpointDefinitions[t],c=null==s?void 0:s.onCacheEntryAdded;if(!c)return;let u={};const f=new Promise((e=>{u.cacheEntryRemoved=e})),d=Promise.race([new Promise((e=>{u.valueResolved=e})),f.then((()=>{throw I$}))]);d.catch((()=>{})),l[a]=u;const p=e.endpoints[t].select("query"===s.type?r:a),h=o.dispatch(((e,t,n)=>n)),m={...o,getCacheEntry:()=>p(o.getState()),requestId:i,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:d,cacheEntryRemoved:f},y=c(r,m);Promise.resolve(y).catch((e=>{if(e!==I$)throw e}))}return(n,o,f)=>{const d=function(t){return i(t)?t.meta.arg.queryCacheKey:s(t)?t.meta.arg.fixedCacheKey??t.meta.requestId:e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?g_(t.payload):""}(n);if(r.pending.match(n)){const e=f[t].queries[d],r=o.getState()[t].queries[d];!e&&r&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId)}else if(a.pending.match(n))o.getState()[t].mutations[d]&&u(n.meta.arg.endpointName,n.meta.arg.originalArgs,d,o,n.meta.requestId);else if(c(n)){const e=l[d];null!=e&&e.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=l[d];e&&(delete l[d],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(l))delete l[e],t.cacheEntryRemoved()}},CQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const a=HA(n,r),o=L1(n,r),i=Rp(n,r),s={};return(n,r)=>{var c,l;if(a(n)){const{requestId:a,arg:{endpointName:o,originalArgs:i}}=n.meta,c=t.endpointDefinitions[o],l=null==c?void 0:c.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[a]=t;const u=e.endpoints[o].select("query"===c.type?i:a),f=r.dispatch(((e,t,n)=>n)),d={...r,getCacheEntry:()=>u(r.getState()),requestId:a,extra:f,updateCachedData:"query"===c.type?t=>r.dispatch(e.util.updateQueryData(o,i,t)):void 0,queryFulfilled:n};l(i,d)}}else if(i(n)){const{requestId:e,baseQueryMeta:t}=n.meta;null==(c=s[e])||c.resolve({data:n.payload,meta:t}),delete s[e]}else if(o(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;null==(l=s[e])||l.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},RQ=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},AQ=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let a=null,o=null;const{updateSubscriptionOptions:i,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,l={getSubscriptions:c,getSubscriptionCount:e=>T1(c()[e]??{}),isRequestSubscribed:(e,t)=>{var n;const r=c();return!(null==(n=null==r?void 0:r[e])||!n[t])}};return(c,u)=>{if(a||(a=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return a=n.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,l];const f=((n,r)=>{var a,o,c;if(i.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return null!=(a=null==n?void 0:n[e])&&a[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,a=n[o=e.queryCacheKey]??(n[o]={});return a[`${t}_running`]={},e.subscribe&&(a[t]=e.subscriptionOptions??a[t]??{}),!0}let l=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;l||(l=!!e[t]),delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:a}}=r;if(e&&t.subscribe){const e=n[c=t.queryCacheKey]??(n[c]={});e[a]=t.subscriptionOptions??e[a]??{},l=!0}}return l})(n.currentSubscriptions,c);let d=!0;if(f){o||(o=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=o7(a,(()=>t));u.next(e.internalActions.subscriptionsUpdated(r)),a=t,o=null}),500));const i="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;d=!i&&!s}return[d,!1]}};function TQ(e){const{reducerPath:t,queryThunk:n,api:r,context:a}=e,{apiUid:o}=a,i={invalidateTags:zr(`${t}/invalidateTags`)},s=e=>e.type.startsWith(`${t}/`),c=[RQ,wQ,kQ,xQ,EQ,CQ];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:l,isThisApiSliceAction:s},f=c.map((e=>e(u))),d=AQ(u),p=SQ(u);return e=>c=>{if(!X5(c))return e(c);i||(i=!0,n.dispatch(r.internalActions.middlewareRegistered(o)));const l={...n,next:e},u=n.getState(),[h,m]=d(c,l,u);let y;if(y=h?e(c):m,n.getState()[t]&&(p(c,l,u),s(c)||a.hasRehydrationInfo(c)))for(let e of f)e(c,l,u);return y}},actions:i};function l(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ip(e,...t){return Object.assign(e,...t)}var P$,O$,$$=Symbol(),IQ=({createSelector:e=mo}={})=>({name:$$,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:o,keepUnusedDataFor:i,refetchOnMountOrArgChange:s,refetchOnFocus:c,refetchOnReconnect:l,invalidationBehavior:u},f){nK();const d=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:YA,onOffline:m7,onFocus:QA,onFocusLost:h7},util:{}});const{queryThunk:p,mutationThunk:h,patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,buildMatchThunkActions:b}=mQ({baseQuery:n,reducerPath:a,context:f,api:t,serializeQueryArgs:o,assertTagType:d}),{reducer:_,actions:w}=gQ({context:f,queryThunk:p,mutationThunk:h,reducerPath:a,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:l,refetchOnMountOrArgChange:s,keepUnusedDataFor:i,reducerPath:a,invalidationBehavior:u}});ip(t.util,{patchQueryData:m,updateQueryData:y,upsertQueryData:g,prefetch:v,resetApiState:w.resetApiState}),ip(t.internalActions,w);const{middleware:k,actions:x}=TQ({reducerPath:a,context:f,queryThunk:p,mutationThunk:h,api:t,assertTagType:d});ip(t.util,x),ip(t,{reducer:_,middleware:k});const{buildQuerySelector:S,buildMutationSelector:E,selectInvalidatedBy:A,selectCachedArgsForQuery:C}=yQ({serializeQueryArgs:o,reducerPath:a,createSelector:e});ip(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:C});const{buildInitiateQuery:O,buildInitiateMutation:z,getRunningMutationThunk:I,getRunningMutationsThunk:T,getRunningQueriesThunk:R,getRunningQueryThunk:P}=hQ({queryThunk:p,mutationThunk:h,api:t,serializeQueryArgs:o,context:f});return ip(t.util,{getRunningMutationThunk:I,getRunningMutationsThunk:T,getRunningQueryThunk:P,getRunningQueriesThunk:R}),{name:$$,injectEndpoint(e,n){var r;const a=t;(r=a.endpoints)[e]??(r[e]={}),g7(n)?ip(a.endpoints[e],{name:e,select:S(e,n),initiate:O(e,n)},b(p,e)):uQ(n)&&ip(a.endpoints[e],{name:e,select:E(),initiate:z(e)},b(h,e))}}}}),j3={exports:{}},F3={};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* use-sync-external-store-with-selector.production.min.js
|
|
@@ -16,7 +16,7 @@ var RG=Object.defineProperty,AG=(e,t,n)=>t in e?RG(e,t,{enumerable:!0,configurab
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/function $Q(){if(P$)return F3;P$=1;var e=Ik();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return F3.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},F3}function PQ(){return O$||(O$=1,j3.exports=$Q()),j3.exports}var OQ=PQ(),Kl="default"in Cw?we:Cw,z$=Symbol.for("react-redux-context"),M$=typeof globalThis<"u"?globalThis:{};function zQ(){if(!Kl.createContext)return{};const e=M$[z$]??(M$[z$]=new Map);let t=e.get(Kl.createContext);return t||(t=Kl.createContext(null),e.set(Kl.createContext,t)),t}var km=zQ(),MQ=()=>{throw new Error("uSES not initialized!")};function XA(e=km){return function(){return Kl.useContext(e)}}var v7=XA(),b7=MQ,NQ=e=>{b7=e},DQ=(e,t)=>e===t;function LQ(e=km){const t=e===km?v7:XA(e),n=(e,n={})=>{const{equalityFn:r=DQ,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Kl.useRef(!0);const u=Kl.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=b7(i.addNestedSub,o.getState,s||o.getState,u,r);return Kl.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var on=LQ();function jQ(e){e()}var FQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N$(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Gy(e,t){if(N$(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!N$(e[n[r]],t[n[r]]))return!1;return!0}function w7(e=km){const t=e===km?v7:XA(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}FQ?Kl.useLayoutEffect:Kl.useEffect;var k7=w7();function BQ(e=km){const t=e===km?k7:w7(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Lp=BQ(),UQ=jQ;function VQ(e){return"query"===e.type}function qQ(e){return"mutation"===e.type}function _b(e,...t){return Object.assign(e,...t)}function B3(e){return e.replace(e[0],e[0].toUpperCase())}NQ(OQ.useSyncExternalStoreWithSelector);var s1=WeakMap?new WeakMap:void 0,WQ=({endpointName:e,queryArgs:t})=>{let n="";const r=null==s1?void 0:s1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Jl(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Jl(t)&&(null==s1||s1.set(t,e)),n=e}return`${e}(${n})`},U3=Symbol();function D$(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function V3(e){const t=v.useRef(e);return v.useEffect((()=>{Gy(t.current,e)||(t.current=e)}),[e]),Gy(t.current,e)?t.current:e}var HQ=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,GQ=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:d7.pending}:e;function KQ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=D$(s?fm:t,WQ,c.endpointDefinitions[o],o),y=V3({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),g=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&g.current;return l((()=>{g.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===fm)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:y,forceRefetch:i}));b.current=e}}),[p,d,i,m,y,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Ha(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(U3),p=v.useRef(),h=V3({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const y=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==U3&&!p.current&&y(f,!0)}),[f,y]),v.useMemo((()=>[y,f]),[y,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=D$(n?fm:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:Gy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),y=r((e=>m(e,p.current)),Gy),g=a(),b=h(g.getState(),p.current);return HQ((()=>{p.current=b}),[b]),y};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===U3}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===fm||null!=t&&t.skip?void 0:GQ,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),y=v.useMemo((()=>o?i([m],o):m),[o,m]),g=r(y,Gy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C}=g;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C});const O=v.useMemo((()=>({...g,originalArgs:b,reset:_})),[g,b,_]);return v.useMemo((()=>[p,O]),[p,O])}},usePrefetch:function(t,r){const a=n(),o=V3(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var QQ=Symbol(),YQ=({batch:e=UQ,hooks:t={useDispatch:Lp,useSelector:on,useStore:k7},createSelector:n=mo,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:QQ,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=KQ({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return _b(s,{usePrefetch:u}),_b(i,{batch:e}),{injectEndpoint(e,t){if(VQ(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);_b(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${B3(e)}Query`]=t,a[`useLazy${B3(e)}Query`]=n}else if(qQ(t)){const t=l(e);_b(s.endpoints[e],{useMutation:t}),a[`use${B3(e)}Mutation`]=t}}}}}),ZQ=_Q(IQ(),YQ());const JA="auth_token",x7=()=>localStorage.getItem(JA)||void 0,XQ=e=>localStorage.setItem(JA,e),JQ=()=>localStorage.removeItem(JA),eY=()=>!!x7(),xm={getToken:x7,setToken:XQ,removeToken:JQ,hasToken:eY},tY="remote-ready",S7=zr("reselectUser"),eT=zr("requestLogin"),E7=zr("requestLogout"),nY="host-store-connect",C7=zr("remoteLogin"),tT=zr("remoteLogout"),L$=zr("requestMicroFrontendFetch"),rY=zr("sendMicroFrontendFetchResponse"),aY=e=>{xm.removeToken(),e(tT())},oY=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&aY(n.dispatch),a},sY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},iY=5,cY=e=>t=>!!e&&t.includes(e.status),j$=e=>new Promise((t=>setTimeout(t,1e3*e))),lY=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await sY((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await j$(Math.pow(2,o)),o++;const p=cY(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await j$(+(e||"0")),await i()}default:return f}};return await i()};var Pw=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Pw||{});const nT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ky="8.48.0",Mo=globalThis;function Dk(e,t,n){const r=Mo,a=r.__SENTRY__=r.__SENTRY__||{},o=a[Ky]=a[Ky]||{};return o[e]||(o[e]=t())}const rv=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fY="Sentry Logger ",F$=["debug","info","warn","error","log","assert","trace"],B$={};function rT(e){if(!("console"in Mo))return e();const t=Mo.console,n={},r=Object.keys(B$);r.forEach((e=>{const r=B$[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function uY(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return rv?F$.forEach((n=>{t[n]=(...t)=>{e&&rT((()=>{Mo.console[n](`${fY}[${n}]:`,...t)}))}})):F$.forEach((e=>{t[e]=()=>{}})),t}const as=Dk("logger",uY),q3="<anonymous>";function Cu(e){try{return e&&"function"==typeof e&&e.name||q3}catch{return q3}}function U$(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const uw={},V$={};function R7(e,t){uw[e]=uw[e]||[],uw[e].push(t)}function A7(e,t){if(!V$[e]){V$[e]=!0;try{t()}catch(t){rv&&as.error(`Error while instrumenting ${e}`,t)}}}function dR(e,t){const n=e&&uw[e];if(n)for(const r of n)try{r(t)}catch(t){rv&&as.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(r)}\nError:`,t)}}function av(){return aT(Mo),Mo}function aT(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ky,t[Ky]=t[Ky]||{}}const T7=Object.prototype.toString;function dY(e){switch(T7.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Lk(e,Error)}}function oT(e,t){return T7.call(e)===`[object ${t}]`}function Ow(e){return oT(e,"String")}function sT(e){return oT(e,"Object")}function pY(e){return typeof Event<"u"&&Lk(e,Event)}function hY(e){return typeof Element<"u"&&Lk(e,Element)}function mY(e){return oT(e,"RegExp")}function iT(e){return!(!e||!e.then||"function"!=typeof e.then)}function gY(e){return sT(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Lk(e,t){try{return e instanceof t}catch{return!1}}function yY(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const I7=Mo,_Y=80;function cT(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=vY(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function vY(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(I7.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Ow(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function bY(){try{return I7.document.location.href}catch{return""}}function W3(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wY(e,t,n=!1){return!!Ow(e)&&(mY(t)?t.test(e):!!Ow(t)&&(n?e===t:e.includes(t)))}function kY(e,t=[],n=!1){return t.some((t=>wY(e,t,n)))}function Hi(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&$7(a,r);try{e[t]=a}catch{rv&&as.log(`Failed to replace method "${t}" in object`,e)}}function y_(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{rv&&as.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function $7(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,y_(e,"__sentry_original__",t)}catch{}}function P7(e){return e.__sentry_original__}function xY(e){if(dY(e))return{message:e.message,name:e.name,stack:e.stack,...W$(e)};if(pY(e)){const t={type:e.type,target:q$(e.target),currentTarget:q$(e.currentTarget),...W$(e)};return typeof CustomEvent<"u"&&Lk(e,CustomEvent)&&(t.detail=e.detail),t}return e}function q$(e){try{return hY(e)?cT(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function W$(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 Uc(e){return pR(e,new Map)}function pR(e,t){if(SY(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=pR(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(pR(e,t))})),r}return e}function SY(e){if(!sT(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const O7=1e3;function jk(){return Date.now()/O7}function EY(){const{performance:e}=Mo;if(!e||!e.now)return jk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/O7}const z7=EY(),CY=(()=>{const{performance:e}=Mo;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function ku(){const e=Mo,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{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function RY(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function AY(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function M7(e,t){const n=RY(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}}var gu;function H$(e){return new wu((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(gu||(gu={}));class wu{constructor(e){wu.prototype.__init.call(this),wu.prototype.__init2.call(this),wu.prototype.__init3.call(this),wu.prototype.__init4.call(this),this._state=gu.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new wu(((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 wu(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(gu.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(gu.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===gu.PENDING){if(iT(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===gu.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===gu.RESOLVED&&e[1](this._value),this._state===gu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function TY(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||z7(),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:ku()),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 G$(){return ku()}function hR(){return ku().substring(16)}function Fk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Fk(r[e],t[e],n-1));return r}const mR="_sentrySpan";function K$(e,t){t?y_(e,mR,t):delete e[mR]}function gR(e){return e[mR]}const IY=100;class lT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:G$(),spanId:hR()}}clone(){const e=new lT;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,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._lastEventId=this._lastEventId,K$(e,gR(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&TY(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}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,[n,r]=t instanceof Sm?[t.getScopeData(),t.getRequestSession()]:sT(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),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._session=void 0,K$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:G$()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:IY;if(n<=0)return this;const r={timestamp:jk(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gR(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Fk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:hR(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ku();if(!this._client)return as.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:ku();if(!this._client)return as.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ku();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(as.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)}}const Sm=lT;function $Y(){return Dk("defaultCurrentScope",(()=>new Sm))}function PY(){return Dk("defaultIsolationScope",(()=>new Sm))}class OY{constructor(e,t){let n,r;n=e||new Sm,r=t||new Sm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return iT(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function j1(){const e=aT(av());return e.stack=e.stack||new OY($Y(),PY())}function zY(e){return j1().withScope(e)}function MY(e,t){const n=j1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Q$(e){return j1().withScope((()=>e(j1().getIsolationScope())))}function NY(){return{withIsolationScope:Q$,withScope:zY,withSetScope:MY,withSetIsolationScope:(e,t)=>Q$(t),getCurrentScope:()=>j1().getScope(),getIsolationScope:()=>j1().getIsolationScope()}}function Bk(e){const t=aT(e);return t.acs?t.acs:NY()}function n0(){return Bk(av()).getCurrentScope()}function ov(){return Bk(av()).getIsolationScope()}function DY(){return Dk("globalScope",(()=>new Sm))}function LY(...e){const t=Bk(av());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function cf(){return n0().getClient()}const jY="_sentryMetrics";function FY(e){const t=e[jY];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Uc(r));return n}const N7="sentry.source",BY="sentry.sample_rate",UY="sentry.op",VY="sentry.origin",qY=0,WY=1,HY="sentry-",GY=/^sentry-/;function KY(e){const t=QY(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(GY)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function QY(e){if(e&&(Ow(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Y$(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Y$(e)}function Y$(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const YY=1;function ZY(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Uc({parent_span_id:r?t:__(e).parent_span_id,span_id:r?hR():t,trace_id:n})}function Z$(e){return"number"==typeof e?X$(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?X$(e.getTime()):z7()}function X$(e){return e>9999999999?e/1e3:e}function __(e){if(JY(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(XY(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return Uc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:Z$(a),timestamp:Z$(i)||void 0,status:tZ(c),op:r[UY],origin:r[VY],_metrics_summary:FY(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function XY(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function JY(e){return"function"==typeof e.getSpanJSON}function eZ(e){const{traceFlags:t}=e.spanContext();return 1===t}function tZ(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const nZ="_sentryRootSpan";function fT(e){return e[nZ]||e}function D7(){const e=Bk(av());return e.getActiveSpan?e.getActiveSpan():gR(n0())}function rZ(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=cf(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const L7="production",aZ="_frozenDsc";function oZ(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=Uc({environment:n.environment||L7,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function j7(e){const t=cf();if(!t)return{};const n=fT(e),r=n[aZ];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&KY(o);if(i)return i;const s=oZ(e.spanContext().traceId,t),c=__(n),l=c.data||{},u=l[BY];null!=u&&(s.sample_rate=`${u}`);const f=l[N7],d=c.description;return"url"!==f&&d&&(s.transaction=d),rZ()&&(s.sampled=String(eZ(n))),t.emit("createDsc",s,n),s}function J$(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;nT&&as.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)}.`)}function sZ(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function iZ(){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}}]}function yu(e,t=100,n=1/0){try{return yR("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yR(e,t,n=1/0,r=1/0,a=iZ()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=cZ(e,t);if(!s.startsWith("[object "))return s;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 s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return yR("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=xY(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=yR(e,t,c-1,r,a),f++}return i(t),u}function cZ(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(yY(t))return"[VueViewModel]";if(gY(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Cu(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=lZ(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function lZ(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function fZ(e,t=[]){return[e,t]}function uZ(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function dZ(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:sZ(r)},...a&&{trace:Uc({...a})}}}function _R(e,t,n,r=0){return new wu(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);nT&&i.id&&null===s&&as.log(`Event processor "${i.id}" dropped event`),iT(s)?s.then((t=>_R(e,t,n,r+1).then(a))).then(null,o):_R(e,s,n,r+1).then(a).then(null,o)}}))}let vb,eP,bb;function pZ(e){const t=Mo._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return bb&&n.length===eP||(eP=n.length,bb=n.reduce(((n,r)=>{vb||(vb={});const a=vb[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,vb[r]=[i,s];break}}}return n}),{})),bb}function hZ(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;mZ(e,t),r&&_Z(e,r),vZ(e,n),gZ(e,a),yZ(e,o)}function tP(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;wb(e,"extra",n),wb(e,"tags",r),wb(e,"user",a),wb(e,"contexts",o),e.sdkProcessingMetadata=Fk(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function wb(e,t,n){e[t]=Fk(e[t],n,1)}function mZ(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=Uc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Uc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Uc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Uc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function gZ(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function yZ(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function _Z(e,t){e.contexts={trace:ZY(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:j7(t),...e.sdkProcessingMetadata};const n=__(fT(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function vZ(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function bZ(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ku(),timestamp:t.timestamp||jk()},l=n.integrations||e.integrations.map((e=>e.name));wZ(c,e),SZ(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&kZ(c,e.stackParser);const u=CZ(r,n.captureContext);n.mechanism&&M7(c,n.mechanism);const f=a?a.getEventProcessors():[],d=DY().getScopeData();if(o){tP(d,o.getScopeData())}if(u){tP(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),hZ(c,d);return _R([...f,...d.eventProcessors],c,n).then((e=>(e&&xZ(e),"number"==typeof i&&i>0?EZ(e,i,s):e)))}function wZ(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||L7,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=W3(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=W3(i.value,o));const s=e.request;s&&s.url&&(s.url=W3(s.url,o))}function kZ(e,t){const n=pZ(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function xZ(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{}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.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function SZ(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function EZ(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:yu(e.data,t,n)}})))},...e.user&&{user:yu(e.user,t,n)},...e.contexts&&{contexts:yu(e.contexts,t,n)},...e.extra&&{extra:yu(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=yu(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:yu(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=yu(e.contexts.flags,3,n)),r}function CZ(e,t){if(!t)return e;const n=e?e.clone():new Sm;return n.update(t),n}function uT(e,t){return n0().captureException(e,void 0)}function RZ(e,t){const n={captureContext:t};return n0().captureMessage(e,void 0,n)}function AZ(e,t){ov().setContext(e,t)}function TZ(e,t){ov().setExtra(e,t)}function IZ(e){ov().addEventProcessor(e)}const $Z=6e4;function PZ(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?$Z:r-t}function OZ(e,t){return e[t]||e.all||0}function zZ(e,t,n=Date.now()){return OZ(e,t)>n}function MZ(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+PZ(i,r):429===t&&(a.all=r+6e4);return a}function NZ(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return LZ(e,n)||DZ(e,r)}function DZ(e,t){return!!t&&nP(e)===nP(t)}function LZ(e,t){return!!t&&e.includes(t.host)}function nP(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const jZ=100;function FZ(e,t){const n=cf(),r=ov();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=jZ}=n.getOptions();if(o<=0)return;const i={timestamp:jk(),...e},s=a?rT((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function BZ(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const UZ="Dedupe",VZ=()=>{let e;return{name:UZ,processEvent(t){if(t.type)return t;try{if(WZ(t,e))return nT&&as.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},qZ=VZ;function WZ(e,t){return!!t&&!(!HZ(e,t)&&!GZ(e,t))}function HZ(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!B7(e,t)||!F7(e,t))}function GZ(e,t){const n=rP(t),r=rP(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&B7(e,t)&&F7(e,t))}function F7(e,t){let n=U$(e),r=U$(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function B7(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{return!1}}function rP(e){return e.exception&&e.exception.values&&e.exception.values[0]}function KZ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function QZ(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function YZ(){return!QZ()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function aP(){return typeof window<"u"&&(!YZ()||ZZ())}function ZZ(){const e=Mo.process;return!!e&&"renderer"===e.type}const kb=Mo;function XZ(){const e=kb.chrome,t=e&&e.app&&e.app.runtime,n="history"in kb&&!!kb.history.pushState&&!!kb.history.replaceState;return!t&&n}function JZ(e,t){return e??t()}function dw(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Py=Mo;function eX(){setTimeout((()=>{}))}function F1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(P7(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>F1(e,t)));return e.apply(this,r)}catch(e){throw eX(),LY((r=>{r.addEventProcessor((e=>(t.mechanism&&(AY(e),M7(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),uT(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}$7(n,e),y_(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const U7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tX=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",sv=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=tX(t.value,n),e(t)))}},nn=Mo,nX=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,V7=(e=!0)=>{const t=nn.performance&&nn.performance.getEntriesByType&&nn.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},dT=()=>{const e=V7();return e&&e.activationStart||0},iv=(e,t)=>{const n=V7();let r="navigate";return n&&(nn.document&&nn.document.prerendering||dT()>0?r="prerender":nn.document&&nn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:nX(),navigationType:r}},Nm=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},cv=e=>{const t=t=>{("pagehide"===t.type||nn.document&&"hidden"===nn.document.visibilityState)&&e(t)};nn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Uk=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Qy=-1;const rX=()=>"hidden"!==nn.document.visibilityState||nn.document.prerendering?1/0:0,zw=e=>{"hidden"===nn.document.visibilityState&&Qy>-1&&(Qy="visibilitychange"===e.type?e.timeStamp:0,oX())},aX=()=>{addEventListener("visibilitychange",zw,!0),addEventListener("prerenderingchange",zw,!0)},oX=()=>{removeEventListener("visibilitychange",zw,!0),removeEventListener("prerenderingchange",zw,!0)},pT=()=>(nn.document&&Qy<0&&(Qy=rX(),aX()),{get firstHiddenTime(){return Qy}}),Vk=e=>{nn.document&&nn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},sX=[1800,3e3],iX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("FCP");let a;const o=Nm("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-dT(),0),r.entries.push(e),a(!0)))}))}));o&&(a=sv(e,r,sX,t.reportAllChanges))}))},cX=[.1,.25],lX=(e,t={})=>{iX(Uk((()=>{const n=iv("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=Nm("layout-shift",i);s&&(r=sv(e,n,cX,t.reportAllChanges),cv((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},fX=[100,300],uX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=Nm("first-input",i);a=sv(e,r,fX,t.reportAllChanges),s&&cv(Uk((()=>{i(s.takeRecords()),s.disconnect()})))}))};let q7=0,H3=1/0,xb=0;const dX=e=>{e.forEach((e=>{e.interactionId&&(H3=Math.min(H3,e.interactionId),xb=Math.max(xb,e.interactionId),q7=xb?(xb-H3)/7+1:0)}))};let vR;const pX=()=>vR?q7:performance.interactionCount||0,hX=()=>{"interactionCount"in performance||vR||(vR=Nm("event",dX,{type:"event",buffered:!0,durationThreshold:0}))},_u=[],G3=new Map,mX=40;let gX=0;const yX=()=>pX()-gX,_X=()=>{const e=Math.min(_u.length-1,Math.floor(yX()/50));return _u[e]},K3=10,vX=[],bX=e=>{if(vX.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=_u[_u.length-1],n=G3.get(e.interactionId);if(n||_u.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};G3.set(t.id,t),_u.push(t)}_u.sort(((e,t)=>t.latency-e.latency)),_u.length>10&&_u.splice(10).forEach((e=>G3.delete(e.id)))}},W7=e=>{const t=nn.requestIdleCallback||nn.setTimeout;let n=-1;return e=Uk(e),nn.document&&"hidden"===nn.document.visibilityState?e():(n=t(e),cv(e)),n},wX=[200,500],kX=(e,t={})=>{"PerformanceEventTiming"in nn&&"interactionId"in PerformanceEventTiming.prototype&&Vk((()=>{hX();const n=iv("INP");let r;const a=e=>{W7((()=>{e.forEach(bX);const t=_X();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=Nm("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=sv(e,n,wX,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),cv((()=>{a(o.takeRecords()),r(!0)})))}))},xX=[2500,4e3],oP={},SX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-dT(),0),r.entries=[e],a())}))},i=Nm("largest-contentful-paint",o);if(i){a=sv(e,r,xX,t.reportAllChanges);const n=Uk((()=>{oP[r.id]||(o(i.takeRecords()),i.disconnect(),oP[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{nn.document&&addEventListener(e,(()=>W7(n)),{once:!0,capture:!0})})),cv(n)}}))},Yy={},Mw={};let H7,G7,K7,Q7;function EX(e,t=!1){return qk("cls",e,IX,H7,t)}function CX(e,t=!1){return qk("lcp",e,PX,K7,t)}function RX(e){return qk("fid",e,$X,G7)}function AX(e){return qk("inp",e,OX,Q7)}function TX(e,t){return Y7(e,t),Mw[e]||(zX(e),Mw[e]=!0),Z7(e,t)}function lv(e,t){const n=Yy[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){U7&&as.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(r)}\nError:`,t)}}function IX(){return lX((e=>{lv("cls",{metric:e}),H7=e}),{reportAllChanges:!0})}function $X(){return uX((e=>{lv("fid",{metric:e}),G7=e}))}function PX(){return SX((e=>{lv("lcp",{metric:e}),K7=e}),{reportAllChanges:!0})}function OX(){return kX((e=>{lv("inp",{metric:e}),Q7=e}))}function qk(e,t,n,r,a=!1){let o;return Y7(e,t),Mw[e]||(o=n(),Mw[e]=!0),r&&t({metric:r}),Z7(e,t,a?o:void 0)}function zX(e){const t={};"event"===e&&(t.durationThreshold=0),Nm(e,(t=>{lv(e,{entries:t})}),t)}function Y7(e,t){Yy[e]=Yy[e]||[],Yy[e].push(t)}function Z7(e,t,n){return()=>{n&&n();const r=Yy[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const MX=1e3;let sP,bR,wR,Sb;function NX(e){R7("dom",e),A7("dom",DX)}function DX(){if(!nn.document)return;const e=dR.bind(null,"dom"),t=iP(e,!0);nn.document.addEventListener("click",t,!1),nn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=nn[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Hi(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=iP(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Hi(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function LX(e){if(e.type!==bR)return!1;try{if(!e.target||e.target._sentryId!==wR)return!1}catch{}return!0}function jX(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function iP(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=FX(n);if(jX(n.type,r))return;y_(n,"_sentryCaptured",!0),r&&!r._sentryId&&y_(r,"_sentryId",ku());const a="keypress"===n.type?"input":n.type;LX(n)||(e({event:n,name:a,global:t}),bR=n.type,wR=r?r._sentryId:void 0),clearTimeout(sP),sP=nn.setTimeout((()=>{wR=void 0,bR=void 0}),MX)}}function FX(e){try{return e.target}catch{return null}}function BX(e){const t="history";R7(t,e),A7(t,UX)}function UX(){if(!XZ())return;const e=nn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Sb,t=String(n);Sb=t,dR("history",{from:e,to:t})}return e.apply(this,t)}}nn.onpopstate=function(...t){const n=nn.location.href,r=Sb;if(Sb=n,dR("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Hi(nn.history,"pushState",t),Hi(nn.history,"replaceState",t)}const Q3={};function VX(e){const t=Q3[e];if(t)return t;let n=nn[e];if(KZ(n))return Q3[e]=n.bind(nn);const r=nn.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){U7&&as.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Q3[e]=n.bind(nn))}function B1(...e){return VX("setTimeout")(...e)}const qX="__sentry_xhr_v3__",WX=["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"],HX="BrowserApiErrors",GX=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:HX,setupOnce(){t.setTimeout&&Hi(Py,"setTimeout",cP),t.setInterval&&Hi(Py,"setInterval",cP),t.requestAnimationFrame&&Hi(Py,"requestAnimationFrame",QX),t.XMLHttpRequest&&"XMLHttpRequest"in Py&&Hi(XMLHttpRequest.prototype,"send",YX);const e=t.eventTarget;e&&(Array.isArray(e)?e:WX).forEach(ZX)}}},KX=GX;function cP(e){return function(...t){const n=t[0];return t[0]=F1(n,{mechanism:{data:{function:Cu(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function QX(e){return function(t){return e.apply(this,[F1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cu(e)},handled:!1,type:"instrument"}})])}}function YX(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Hi(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Cu(t)},handled:!1,type:"instrument"}},r=P7(t);return r&&(n.mechanism.data.handler=Cu(r)),F1(t,n)}))})),e.apply(this,t)}}function ZX(e){const t=Py[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Hi(n,"addEventListener",(function(t){return function(n,r,a){try{XX(r)&&(r.handleEvent=F1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cu(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,F1(r,{mechanism:{data:{function:"addEventListener",handler:Cu(r),target:e},handled:!1,type:"instrument"}}),a])}})),Hi(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function XX(e){return"function"==typeof e.handleEvent}const tr=Mo,hT="sentryReplaySession",JX="replay_event",mT="Unable to send Replay",eJ=3e5,tJ=9e5,nJ=5e3,rJ=5500,aJ=6e4,oJ=5e3,sJ=3,lP=15e4,Eb=5e3,iJ=3e3,cJ=300,gT=2e7,lJ=4999,fJ=15e3,fP=36e5;function kR(e,t){return e??t()}function v_(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var Aa;function uJ(e){return e.nodeType===e.ELEMENT_NODE}function Zy(e){const t=v_([e,"optionalAccess",e=>e.host]);return v_([t,"optionalAccess",e=>e.shadowRoot])===e}function Xy(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function dJ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function pJ(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Nw(e){try{const t=e.rules||e.cssRules;return t?dJ(Array.from(t,X7).join("")):null}catch{return null}}function hJ(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function X7(e){let t;if(gJ(e))try{t=Nw(e.styleSheet)||pJ(e)}catch{}else if(yJ(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=hJ(e)),n&&(t=mJ(t)),n||r)return t}return t||e.cssText}function mJ(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function gJ(e){return"styleSheet"in e}function yJ(e){return"selectorText"in e}!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"}(Aa||(Aa={}));class J7{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return kR(v_([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){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 _J(){return new J7}function Wk({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function b_({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function U1(e){return e.toLowerCase()}function xR(e){return e.toUpperCase()}const uP="__rrweb_original__";function vJ(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 a=t.getImageData,o=uP in a?a[uP]:a;if(new Uint32Array(o.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}function yT(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?U1(t):null}function Dw(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function eL(e,t){let n;try{n=new URL(e,kR(t,(()=>window.location.href)))}catch{return null}return kR(v_([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const dP={};function tL(e){const t=dP[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return dP[e]=r.bind(window)}function SR(...e){return tL("setTimeout")(...e)}function nL(...e){return tL("clearTimeout")(...e)}function rL(e){try{return e.contentDocument}catch{}}let bJ=1;const wJ=new RegExp("[^a-z0-9-_:]"),w_=-2;function _T(){return bJ++}function kJ(e){if(e instanceof HTMLFormElement)return"form";const t=U1(e.tagName);return wJ.test(t)?"div":t}function xJ(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let i1,pP;const SJ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,EJ=/^(?:[a-z+]+:)?\/\//i,CJ=/^www\..*/i,RJ=/^(data:)([^,]*),(.*)/i;function Lw(e,t){return(e||"").replace(SJ,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(EJ.test(s)||CJ.test(s))return`url(${c}${s}${c})`;if(RJ.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${xJ(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const AJ=/^[^ \t\n\r\u000c]+/,TJ=/^[, \t\n\r\u000c]+/;function IJ(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(TJ),!(n>=t.length);){let o=r(AJ);if(","===o.slice(-1))o=x1(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=x1(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const hP=new WeakMap;function x1(e,t){return t&&""!==t.trim()?Hk(e,t):t}function $J(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Hk(e,t){let n=hP.get(e);if(n||(n=e.createElement("a"),hP.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function aL(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?x1(e,r):"srcset"===n?IJ(e,r):"style"===n?Lw(r,Hk(e)):"object"===t&&"data"===n?x1(e,r):"function"==typeof o?o(n,r,a):r)}function oL(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function PJ(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{}return!1}function OJ(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function um(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:um(e.parentNode,t,n,r+1)}function S1(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(OJ(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function V1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=um(i,S1(r,a)),c<0)return!0;s=um(i,S1(t,n),c>=0?c:1/0)}else{if(s=um(i,S1(t,n)),s<0)return!1;c=um(i,S1(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function zJ(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=SR((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{nL(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return SR(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function MJ(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=SR((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{nL(o),a=!0,t()}))}function NJ(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=DJ(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Aa.Document,childNodes:[],compatMode:e.compatMode}:{type:Aa.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Aa.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return jJ(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return LJ(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:Aa.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Aa.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function DJ(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function LJ(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||v_([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Nw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Lw(d,Hk(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=V1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&y&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=b_({isMasked:V1(e,r,o,a,i,Wk({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:Aa.Text,textContent:d||"",isStyle:p,rootId:u}}function jJ(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=PJ(e,r,a,o),k=kJ(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!oL(k,r.name,r.value)&&(x[r.name]=aL(n,k,U1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Nw(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=Lw(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Nw(e.sheet);t&&(x._cssText=Lw(t,Hk(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=yT(t),r=Dw(t,xR(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=V1(t,g,b,v,_,Wk({type:n,tagName:xR(k),maskInputOptions:s}));x.value=b_({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)vJ(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){i1||(i1=n.createElement("canvas"),pP=i1.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{i1.width=t.naturalWidth,i1.height=t.naturalHeight,pP.drawImage(t,0,0),x.rr_dataURL=i1.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("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)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!rL(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:Aa.Element,tagName:k,attributes:x,childNodes:[],isSVG:$J(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function er(e){return null==e?"":e.toLowerCase()}function FJ(e,t){if(t.comment&&e.type===Aa.Comment)return!0;if(e.type===Aa.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eL(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(er(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===er(e.attributes.name)||"icon"===er(e.attributes.rel)||"apple-touch-icon"===er(e.attributes.rel)||"shortcut icon"===er(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&er(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(er(e.attributes.property).match(/^(og|twitter|fb):/)||er(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===er(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===er(e.attributes.name)||"googlebot"===er(e.attributes.name)||"bingbot"===er(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===er(e.attributes.name)||"generator"===er(e.attributes.name)||"framework"===er(e.attributes.name)||"publisher"===er(e.attributes.name)||"progid"===er(e.attributes.name)||er(e.attributes.property).match(/^article:/)||er(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===er(e.attributes.name)||"yandex-verification"===er(e.attributes.name)||"csrf-token"===er(e.attributes.name)||"p:domain_verify"===er(e.attributes.name)||"verify-v1"===er(e.attributes.name)||"verification"===er(e.attributes.name)||"shopify-checkout-api-token"===er(e.attributes.name)))return!0}}return!1}function E1(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:O=!1}=t;let{preserveWhiteSpace:z=!0}=t;const I=NJ(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:O});if(!I)return console.warn(e,"not serialized"),null;let T;T=r.hasNode(e)?r.getId(e):FJ(I,v)||!z&&I.type===Aa.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?-2:_T();const R=Object.assign(I,{id:T});if(r.add(e,R),-2===T)return null;k&&k(e);let P=!d;if(R.type===Aa.Element){P=P&&!R.needBlock,delete R.needBlock;const t=e.shadowRoot;t&&Xy(t)&&(R.isShadowHost=!0)}if((R.type===Aa.Document||R.type===Aa.Element)&&P){v.headWhitespace&&R.type===Aa.Element&&"head"===R.tagName&&(z=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=E1(n,t);e&&R.childNodes.push(e)}if(uJ(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=E1(n,t);r&&(Xy(e.shadowRoot)&&(r.isShadow=!0),R.childNodes.push(r))}}return e.parentNode&&Zy(e.parentNode)&&Xy(e.parentNode)&&(R.isShadow=!0),R.type===Aa.Element&&"iframe"===R.tagName&&zJ(e,(()=>{const t=rL(e);if(t&&x){const n=E1(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});n&&x(e,n)}}),S),R.type===Aa.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===eL(R.attributes.href))&&MJ(e,(()=>{if(E){const t=E1(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});t&&E(e,t)}}),A),R}function BJ(e,t){const{mirror:n=new J7,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return E1(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,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:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function hp(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function rs(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const v1="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let mP={map:{},getId:()=>(console.error(v1),-1),getNode:()=>(console.error(v1),null),removeNodeFromMap(){console.error(v1)},has:()=>(console.error(v1),!1),reset(){console.error(v1)}};function k_(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(KJ(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Gk((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function sL(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Gk((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>sL(e,t,o||{},!0)}function vT(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(mP=new Proxy(mP,{get:(e,t,n)=>("map"===t&&console.error(v1),Reflect.get(e,t,n))}));let jw=Date.now;function iL(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:hp([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:hp([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function cL(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lL(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fL(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ai(e,t,n,r,a){if(!e)return!1;const o=fL(e);if(!o)return!1;const i=S1(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=um(o,i);let c=-1;return!(s<0)&&(r&&(c=um(o,S1(null,r))),s>-1&&c<0||s<c)}function UJ(e,t){return-1!==t.getId(e)}function Y3(e,t){return-2===t.getId(e)}function uL(e,t){if(Zy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||uL(e.parentNode,t))}function ER(e){return!!e.changedTouches}function VJ(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})}function dL(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function pL(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function CR(e){return!!hp([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(jw=()=>(new Date).getTime());class qJ{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return JZ(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=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 hL(e){let t=null;return hp([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 WJ(e){let t,n=e;for(;t=hL(n);)n=t;return n}function HJ(e){const t=e.ownerDocument;if(!t)return!1;const n=WJ(e);return t.contains(n)}function mL(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||HJ(e))}const gP={};function bT(e){const t=gP[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return gP[e]=r.bind(window)}function GJ(...e){return bT("requestAnimationFrame")(...e)}function Gk(...e){return bT("setTimeout")(...e)}function KJ(...e){return bT("clearTimeout")(...e)}var yP,_P,Ht=(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))(Ht||{}),Mt=(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))(Mt||{}),es=(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))(es||{}),hu=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(hu||{});function wT(e){try{return e.contentDocument}catch{}}function QJ(e){try{return e.contentWindow}catch{}}function YJ(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function vP(e){return"__ln"in e}!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"}(yP||(yP={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(_P||(_P={}));class ZJ{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=YJ([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&vP(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&&vP(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 bP=(e,t)=>`${e}@${t}`;class XJ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new ZJ,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!mL(a))return;const o=Zy(a.parentNode)?this.mirror.getId(hL(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=E1(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{dL(e,this.mirror)&&!ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),pL(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),CR(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)wP(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!kP(this.droppedSet,e)&&!wP(this.removes,e,this.mirror)||kP(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}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}o=e.previous,n.removeNode(e.value),a(e.value)}const i={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};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Y3(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:V1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,fL(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=yT(t),a=t.tagName;r=Dw(t,a,n);const o=Wk({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=b_({isMasked:V1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(wT(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!oL(t.tagName,n)&&(a.attributes[n]=aL(this.doc,U1(t.tagName),U1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(ai(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=Zy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Y3(t,this.mirror)||!UJ(t,this.mirror)||(this.addedSet.has(t)?(RR(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||uL(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[bP(n,r)]?RR(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Zy(e.target)||!Xy(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(Y3(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[bP(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),CR(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 RR(e,t){e.delete(t),t.childNodes.forEach((t=>RR(e,t)))}function wP(e,t,n){return 0!==e.length&&JJ(e,t,n)}function JJ(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function kP(e,t){return 0!==e.size&&gL(e,t)}function gL(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||gL(e,n))}let Jy;function eee(e){Jy=e}function tee(){Jy=void 0}const pn=e=>Jy?(...t)=>{try{return e(...t)}catch(e){if(Jy&&!0===Jy(e))return()=>{};throw e}}:e;function jc(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const C1=[];function fv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function yL(e,t){const n=new XJ;C1.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=jc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(pn((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function nee({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=k_(pn((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=pn(k_(pn((e=>{const t=fv(e),{clientX:n,clientY:a}=ER(e)?e.changedTouches[0]:e;i||(i=jw()),s.push({x:n,y:a,id:r.getId(t),timeOffset:jw()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?Mt.Drag:e instanceof MouseEvent?Mt.MouseMove:Mt.TouchMove)})),a,{trailing:!1})),u=[rs("mousemove",l,n),rs("touchmove",l,n),rs("drag",l,n)];return pn((()=>{u.forEach((e=>e()))}))}function ree({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(es).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=U1(i);const u=(t=>i=>{const s=fv(i);if(ai(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=hu.Mouse;break;case"touch":c=hu.Touch;break;case"pen":c=hu.Pen}c===hu.Touch?es[t]===es.MouseDown?u="TouchStart":es[t]===es.MouseUp&&(u="TouchEnd"):hu.Pen}else ER(i)&&(c=hu.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===hu.Touch||u.startsWith("Mouse")&&c===hu.Mouse)&&(c=null)):es[t]===es.Click&&(c=l,l=null);const f=ER(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;pn(e)({type:es[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(es[i]){case es.MouseDown:case es.MouseUp:s=s.replace("mouse","pointer");break;case es.TouchStart:case es.TouchEnd:return}c.push(rs(s,u,t))})),pn((()=>{c.forEach((e=>e()))}))}function _L({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return rs("scroll",pn(k_(pn((i=>{const s=fv(i);if(!s||ai(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=iL(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function aee({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return rs("resize",pn(k_(pn((()=>{const t=cL(),a=lL();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const oee=["INPUT","TEXTAREA","SELECT"],xP=new WeakMap;function see({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=fv(e);const u=e.isTrusted,y=n&&xR(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||oee.indexOf(y)<0||ai(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=yT(n);let _=Dw(v,y,b),w=!1;const k=Wk({maskInputOptions:c,tagName:y,type:b}),x=V1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=b_({isMasked:x,element:n,value:_,maskInputFn:l}),g(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=b_({isMasked:x,element:e,value:Dw(e,y,b),maskInputFn:l});g(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function g(t,r){const a=xP.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){xP.set(t,r);const a=n.getId(t);pn(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>rs(e,pn(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[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(...w.map((e=>sL(e[0],e[1],{set(){pn(y)({target:this,isTrusted:!1})}},!1,b)))),pn((()=>{v.forEach((e=>e()))}))}function Fw(e){return function(e,t){if(Cb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Cb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Cb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Cb("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 mp(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function iee({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=mp(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};Rb("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Rb("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Rb("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Rb("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=mp(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Fw(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Fw(a),i]}]}),r.apply(a,o)}))})})),pn((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function vL({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?jc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):jc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=jc([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(jc([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return jc([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=jc([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),pn((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function cee({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pn(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=mp(jc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Fw(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pn(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=mp(jc([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Fw(o.parentRule)}),a.apply(o,s)}))}),pn((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function lee({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=pn((i=>k_(pn((o=>{const s=fv(o);if(!s||ai(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[rs("play",s(0),i),rs("pause",s(1),i),rs("seeked",s(2),i),rs("volumechange",s(3),i),rs("ratechange",s(4),i)];return pn((()=>{c.forEach((e=>e()))}))}function fee({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=vT(t.fonts,"add",(function(t){return function(n){return Gk(pn((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),pn((()=>{r.forEach((e=>e()))}))}function uee(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=pn((()=>{const e=t.getSelection();if(!e||s&&jc([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;ai(s,r,a,o,!0)||ai(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),rs("selectionchange",c)}function dee({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?vT(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function pee(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=yL(e,e.doc));const a=nee(e),o=ree(e),i=_L(e),s=aee(e,{win:n}),c=see(e),l=lee(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=iee(e,{win:n}),f=vL(e,e.doc),d=cee(e,{win:n}),e.collectFonts&&(p=fee(e)));const h=uee(e),m=dee(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return pn((()=>{C1.forEach((e=>e.reset())),jc([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),y.forEach((e=>e()))}))}function Cb(e){return typeof window[e]<"u"}function Rb(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class AR{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}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;return r.get(t)||-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 SP(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class hee{constructor(){this.crossOriginIframeMirror=new AR(_T),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class mee{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new AR(_T),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new AR(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}),SP([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=wT(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!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 Ht.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:Ht.IncrementalSnapshot,data:{source:Mt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ht.Meta:case Ht.Load:case Ht.DomContentLoaded:return!1;case Ht.Plugin:return t;case Ht.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ht.IncrementalSnapshot:switch(t.data.source){case Mt.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 Mt.Drag:case Mt.TouchMove:case Mt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Mt.ViewportResize:return!1;case Mt.MediaInteraction:case Mt.MouseInteraction:case Mt.Scroll:case Mt.CanvasMutation:case Mt.Input:return this.replaceIds(t.data,e,["id"]),t;case Mt.StyleSheetRule:case Mt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Mt.Font:return t;case Mt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Mt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),SP([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 a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));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!==Aa.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class gee{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class yee{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(!Xy(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=yL({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(_L({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Gk((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(vL({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=wT(e),n=QJ(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(vT(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&mL(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class EP{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class _ee{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qJ,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:X7(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 vee{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,GJ((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Pr,Bw;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=dw([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Nc=_J();function xu(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:C=!1,recordCrossOriginIframes:O=!1,recordAfter:z=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:T=!1,inlineImages:R=!1,plugins:P,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:L}=e;eee(M);const q=!O||window.parent===window;let V=!1;if(!q)try{window.parent.document&&(V=!1)}catch{V=!0}if(q&&!t)throw new Error("emit function is required");if(!q&&!V)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Nc.reset();const F=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},B=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};VJ();let U,$=0;const W=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!V&&(e=k(e)),e};Pr=(e,a)=>{const o=e;if(o.timestamp=jw(),dw([C1,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Ht.FullSnapshot&&!(o.type===Ht.IncrementalSnapshot&&o.data.source===Mt.Mutation)&&C1.forEach((e=>e.unfreeze())),q)dw([t,"optionalCall",e=>e(W(o),a)]);else if(V){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Ht.FullSnapshot)U=o,$=0;else if(o.type===Ht.IncrementalSnapshot){if(o.data.source===Mt.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Mutation,...e}})},G=e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Scroll,...e}}),Q=e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CanvasMutation,...e}}),K=new _ee({mutationCb:H,adoptedStyleSheetCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new hee:new mee({mirror:Nc,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:O,wrappedEmit:Pr});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:Nc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new vee,X=wee(L,{mirror:Nc,win:window,mutationCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CanvasMutation,...e}}),recordCanvas:C,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new gee:new yee({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:F,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:C,inlineImages:R,sampling:x,slimDOMOptions:B,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:j,processedNodeManager:Z},mirror:Nc}),ee=(e=!1)=>{if(!A)return;Pr({type:Ht.Meta,data:{href:window.location.href,width:lL(),height:cL()}},e),K.reset(),J.init(),C1.forEach((e=>e.lock()));const t=BJ(document,{mirror:Nc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:F,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:S,recordCanvas:C,inlineImages:R,onSerialize:e=>{dL(e,Nc)&&Y.addIframe(e),pL(e,Nc)&&K.trackLinkElement(e),CR(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");Pr({type:Ht.FullSnapshot,data:{node:t,initialOffset:iL(window)}}),C1.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Nc.getId(document))};Bw=ee;try{const e=[],t=e=>pn(pee)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Pr({type:Ht.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.ViewportResize,...e}}),inputCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Input,...e}}),mediaInteractionCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Font,...e}}),selectionCb:e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Selection,...e}})},customElementCb:e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:F,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:C,inlineImages:R,userTriggeredOnInput:I,collectFonts:T,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:j,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:S,mirror:Nc,iframeManager:Y,stylesheetManager:K,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:dw([P,"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=>Pr({type:Ht.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(rs("DOMContentLoaded",(()=>{Pr({type:Ht.DomContentLoaded,data:{}}),"DOMContentLoaded"===z&&n()}))),e.push(rs("load",(()=>{Pr({type:Ht.Load,data:{}}),"load"===z&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),Bw=void 0,tee()}}catch(e){console.warn(e)}}function bee(e){if(!Bw)throw new Error("please take full snapshot after start recording");Bw(e)}function wee(e,t){try{return e?e(t):new EP}catch{return console.warn("Unable to initialize CanvasManager"),new EP}}xu.mirror=Nc,xu.takeFullSnapshot=bee;const kee=3,xee=5;function kT(e){return e>9999999999?e:1e3*e}function Z3(e){return e>9999999999?e/1e3:e}function uv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Ht.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:yu(t,10,1e3)}}),"console"===t.category))))}const See="button,a";function bL(e){return e.closest(See)||e}function wL(e){const t=kL(e);return t&&t instanceof Element?bL(t):t}function kL(e){return Eee(e)?e.target:e}function Eee(e){return"object"==typeof e&&!!e&&"target"in e}let gp;function Cee(e){return gp||(gp=[],Ree()),gp.push(e),()=>{const t=gp?gp.indexOf(e):-1;t>-1&&gp.splice(t,1)}}function Ree(){Hi(tr,"open",(function(e){return function(...t){if(gp)try{gp.forEach((e=>e()))}catch{}return e.apply(tr,t)}}))}const Aee=new Set([Mt.Mutation,Mt.StyleSheetRule,Mt.StyleDeclaration,Mt.AdoptedStyleSheet,Mt.CanvasMutation,Mt.Selection,Mt.MediaInteraction]);function Tee(e,t,n){e.handleClick(t,n)}class Iee{constructor(e,t,n=uv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Cee((()=>{this._lastMutation=CP()}));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(Pee(t,this._ignoreSelector)||!Oee(e))return;const n={timestamp:Z3(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=Z3(e)}registerScroll(e=Date.now()){this._lastScroll=Z3(e)}registerClick(e){const t=bL(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=CP();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._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:tr.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:tr.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=B1((()=>this._checkClicks()),1e3)}}const $ee=["A","BUTTON","INPUT"];function Pee(e,t){return!!(!$ee.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function Oee(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function CP(){return Date.now()/1e3}function zee(e,t){try{if(!Mee(t))return;const{source:n}=t.data;if(Aee.has(n)&&e.registerMutation(t.timestamp),n===Mt.Scroll&&e.registerScroll(t.timestamp),Nee(t)){const{type:n,id:r}=t.data,a=xu.mirror.getNode(r);a instanceof HTMLElement&&n===es.Click&&e.registerClick(a)}}catch{}}function Mee(e){return 3===e.type}function Nee(e){return e.data.source===Mt.MouseInteraction}function Ql(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Uw;!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"}(Uw||(Uw={}));const Dee=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Lee(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Dee.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const jee=e=>t=>{if(!e.isEnabled())return;const n=Fee(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&Tee(e.clickDetector,n,wL(t.event)),uv(e,n)};function xL(e,t){const n=xu.mirror.getId(e),r=n&&xu.mirror.getNode(n),a=r&&xu.mirror.getMeta(r),o=a&&Uee(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Uw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Lee(o.attributes)}}:{}}}function Fee(e){const{target:t,message:n}=Bee(e);return Ql({category:`ui.${e.name}`,...xL(t,n)})}function Bee(e){const t="click"===e.name;let n,r=null;try{r=t?wL(e.event):kL(e.event),n=cT(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Uee(e){return e.type===Uw.Element}function Vee(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=qee(t);n&&uv(e,n)}function qee(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||Wee(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=cT(i,{maxStringLength:200})||"<unknown>";return Ql({category:"ui.keyDown",message:l,data:{...xL(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function Wee(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const Hee={resource:Zee,paint:Qee,navigation:Yee};function Ab(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Gee(e){return e.map(Kee).filter(Boolean)}function Kee(e){const t=Hee[e.entryType];return t?t(e):null}function q1(e){return((CY||tr.performance.timeOrigin)+e)/1e3}function Qee(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=q1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function Yee(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:q1(p),end:q1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Zee(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:q1(o),end:q1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function Xee(e){const t=e.entries[e.entries.length-1];return Kk(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Jee(e){return void 0!==e.sources}function ete(e){const t=[],n=[];for(const r of e.entries)if(Jee(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=xu.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Kk(e,"cumulative-layout-shift",n,t)}function tte(e){const t=e.entries[e.entries.length-1];return Kk(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function nte(e){const t=e.entries[e.entries.length-1];return Kk(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Kk(e,t,n,r){const a=e.value,o=e.rating,i=q1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>xu.mirror.getId(e))):void 0,attributions:r}}}function rte(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(TX(e,n))})),r.push(CX(Ab(Xee,e)),EX(Ab(ete,e)),RX(Ab(tte,e)),AX(Ab(nte,e))),()=>{r.forEach((e=>e()))}}const Tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ate='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==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[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,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[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){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function ote(){const e=new Blob([ate]);return URL.createObjectURL(e)}const RP=["info","warn","error","log"],pw="[Replay] ";function X3(e,t="info"){FZ({category:"console",data:{logger:"replay"},level:t,message:`${pw}${e}`},{level:t})}function ste(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return Tt?(RP.forEach((e=>{n[e]=(...n)=>{as[e](pw,...n),t&&X3(n.join(""),BZ(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),as.error(pw,r),e?uT(r):t&&X3(r,"error")},n.infoTick=(...e)=>{as.info(pw,...e),t&&setTimeout((()=>X3(e[0])),0)}):RP.forEach((e=>{n[e]=()=>{}})),n}const Ot=ste();class xT extends Error{constructor(){super(`Event buffer exceeded maximum size of ${gT}.`)}}class SL{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>gT)throw new xT;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?kT(e):null}}class ite{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(){Tt&&Ot.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Tt&&Ot.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class cte{constructor(e){this._worker=new ite(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=kT(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>gT?Promise.reject(new xT):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Tt&&Ot.exception(e,'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 lte{constructor(e){this._fallback=new SL,this._compression=new cte(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Tt&&Ot.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Tt&&Ot.exception(e,"Failed to add events when switching buffers.")}}}function fte({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=ute(t);if(e)return e}return Tt&&Ot.info("Using simple buffer"),new SL}function ute(e){try{const t=e||dte();if(!t)return;Tt&&Ot.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new lte(n)}catch(e){Tt&&Ot.exception(e,"Failed to create compression worker")}}function dte(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ote():""}function ST(){try{return"sessionStorage"in tr&&!!tr.sessionStorage}catch{return!1}}function pte(e){hte(),e.session=void 0}function hte(){if(ST())try{tr.sessionStorage.removeItem(hT)}catch{}}function EL(e){return void 0!==e&&Math.random()<e}function CL(e){const t=Date.now();return{id:e.id||ku(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function ET(e){if(ST())try{tr.sessionStorage.setItem(hT,JSON.stringify(e))}catch{}}function mte(e,t){return EL(e)?"session":!!t&&"buffer"}function AP({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=CL({sampled:mte(e,t),previousSessionId:r});return n&&ET(a),a}function gte(){if(!ST())return null;try{const e=tr.sessionStorage.getItem(hT);if(!e)return null;const t=JSON.parse(e);return Tt&&Ot.infoTick("Loading existing session"),CL(t)}catch{return null}}function TR(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function RL(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return TR(e.started,t,r)||TR(e.lastActivity,n,r)}function AL(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!RL(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function J3({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&>e();return a?AL(a,{sessionIdleExpire:e,maxReplayDuration:t})?(Tt&&Ot.infoTick("Session in sessionStorage is expired, creating new one..."),AP(r,{previousSessionId:a.id})):a:(Tt&&Ot.infoTick("Creating new session"),AP(r,{previousSessionId:n}))}function yte(e){return e.type===Ht.Custom}function CT(e,t,n){return!!IL(e,t)&&(TL(e,t,n),!0)}function _te(e,t,n){return IL(e,t)?TL(e,t,n):Promise.resolve(null)}async function TL(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=vte(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof xT,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=cf();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function IL(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=kT(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Tt&&Ot.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function vte(e,t){try{if("function"==typeof t&&yte(e))return t(e)}catch(e){return Tt&&Ot.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function RT(e){return!e.type}function IR(e){return"transaction"===e.type}function bte(e){return"replay_event"===e.type}function TP(e){return"feedback"===e.type}function wte(e){return(t,n)=>{if(!e.isEnabled()||!RT(t)&&!IR(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(IR(t))return void kte(e,t);xte(e,t)}}}function kte(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)}function xte(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||B1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function Ste(e){return t=>{!e.isEnabled()||!RT(t)||Ete(e,t)}}function Ete(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){uv(e,Ql({category:"replay.hydrate-error",data:{url:bY()}}))}}function Cte(e){const t=cf();t&&t.on("beforeAddBreadcrumb",(t=>Rte(e,t)))}function Rte(e,t){if(!e.isEnabled()||!$L(t))return;const n=Ate(t);n&&uv(e,n)}function Ate(e){return!$L(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?Tte(e):Ql(e)}function Tte(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ql(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Eb?(n=!0,`${e.slice(0,Eb)}…`):e;if("object"==typeof e)try{const t=yu(e,7);return JSON.stringify(t).length>Eb?(n=!0,`${JSON.stringify(t,null,2).slice(0,Eb)}…`):t}catch{}return e}));return Ql({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $L(e){return!!e.category}function Ite(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function PL(){const e=n0().getPropagationContext().dsc;e&&delete e.replay_id;const t=D7();if(t){delete j7(t).replay_id}}function $te(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Ht.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function Pte(e,t){return!("buffer"!==e.recordingMode||t.message===mT||!t.exception||t.type)&&EL(e.getOptions().errorSampleRate)}function Ote(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:bte(t)?(delete t.breadcrumbs,t):RT(t)||IR(t)||TP(t)?e.checkAndHandleExpiredSession()?TP(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),$te(e,t),t):Ite(t,n)&&!e.getOptions()._experiments.captureExceptions?(Tt&&Ot.log("Ignoring error from rrweb internals",t),null):((Pte(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(PL(),t):t),{id:"Replay"})}function Qk(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Ht.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function zte(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Mte(e){return t=>{if(!e.isEnabled())return;const n=zte(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Qk(e,[n]),!1))))}}function Nte(e,t){return(!Tt||!e.getOptions()._experiments.traceInternals)&&NZ(t,cf())}function OL(e,t){e.isEnabled()&&null!==t&&(Nte(e,t.name)||e.addUpdate((()=>(Qk(e,[t]),!0))))}function Yk(e){if(!e)return;const t=new TextEncoder;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=DL(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function zL(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ML(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[DL(e)];if(!e)return[void 0]}catch(t){return Tt&&Ot.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Tt&&Ot.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vw(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 NL(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Uc({method:o,statusCode:i,request:s,response:c})}}function x_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kp(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:a,warnings:o}=Dte(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function $R(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function DL(e){return new URLSearchParams(e).toString()}function Dte(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>lP,n=Lte(e);if(t){const t=e.slice(0,lP);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Lte(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function qw(e,t){return kY(jte(e),t)}function jte(e,t=tr.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(tr.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Fte(e,t,n){try{const r=NL("resource.fetch",await Ute(e,t,n));OL(n.replay,r)}catch(e){Tt&&Ot.exception(e,"Failed to capture fetch breadcrumb")}}function Bte(e,t){const{input:n,response:r}=t,a=Yk(n?LL(n):void 0),o=r?zL(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function Ute(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=qw(i,n.networkDetailAllowUrls)&&!qw(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?Vte(n,t.input,l):x_(l),response:await qte(f,n,t.response,u)}}function Vte({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?Gte(n,t):{};if(!e)return kp(a,r,void 0);const o=LL(n),[i,s]=ML(o),c=kp(a,r,i);return s?Vw(c,s):c}async function qte(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return x_(a);const o=r?jL(r.headers,n):{};if(!r||!t&&void 0!==a)return kp(o,a,void 0);const[i,s]=await Hte(r),c=Wte(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Vw(c,s):c}function Wte(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Yk(e):n;return r?kp(a,o,t?e:void 0):x_(o)}catch(e){return Tt&&Ot.exception(e,"Failed to serialize response body"),kp(a,n,void 0)}}async function Hte(e){const t=Kte(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Qte(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Tt&&Ot.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Tt&&Ot.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function LL(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function jL(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Gte(e,t){return 1===e.length&&"string"!=typeof e[0]?IP(e[0],t):2===e.length?IP(e[1],t):{}}function IP(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?jL(n,t):Array.isArray(n)?{}:$R(n,t):{}}function Kte(e){try{return e.clone()}catch(e){Tt&&Ot.exception(e,"Failed to clone response body")}}function Qte(e){return new Promise(((t,n)=>{const r=B1((()=>n(new Error("Timeout while trying to read response body"))),500);Yte(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function Yte(e){return await e.text()}async function Zte(e,t,n){try{const r=NL("resource.xhr",Jte(e,t,n));OL(n.replay,r)}catch(e){Tt&&Ot.exception(e,"Failed to capture xhr breadcrumb")}}function Xte(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Yk(r),o=n.getResponseHeader("content-length")?zL(n.getResponseHeader("content-length")):rne(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function Jte(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!qw(c,n.networkDetailAllowUrls)||qw(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:x_(f),response:x_(d)}}const p=s[qX],h=p?$R(p.request_headers,n.networkRequestHeaders):{},m=$R(ene(s),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ML(i):[void 0],[v,b]=n.networkCaptureBodies?tne(s):[void 0],_=kp(h,f,y),w=kp(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:g?Vw(_,g):_,response:b?Vw(w,b):w}}function ene(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function tne(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return nne(e.response,e.responseType)}catch(e){t.push(e)}return Tt&&Ot.warn("Failed to get xhr response body",...t),[void 0]}function nne(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 Tt&&Ot.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Tt&&Ot.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function rne(e,t){try{return Yk("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function ane(e){const t=cf();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>one(s,e,t)))}catch{}}function one(e,t,n){if(t.data)try{sne(t)&&cne(n)&&(Xte(t,n),Zte(t,n,e)),ine(t)&&lne(n)&&(Bte(t,n),Fte(t,n,e))}catch(e){Tt&&Ot.exception(e,"Error when enriching network breadcrumb")}}function sne(e){return"xhr"===e.category}function ine(e){return"fetch"===e.category}function cne(e){return e&&e.xhr}function lne(e){return e&&e.response}function fne(e){const t=cf();NX(jee(e)),BX(Mte(e)),Cte(e),ane(e);IZ(Ote(e)),t&&(t.on("beforeSendEvent",Ste(e)),t.on("afterSendEvent",wte(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function une(e){try{return Promise.all(Qk(e,[dne(tr.performance.memory)]))}catch{return[]}}function dne(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function pne(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=B1(s,t),i&&void 0===o&&(o=B1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function hne(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Tt&&Ot.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&zee(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!CT(e,n,a))return!0;if(!a)return!1;const t=e.session;if(gne(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Tt&&Ot.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&ET(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function mne(e){const t=e.getOptions();return{type:Ht.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}}}}function gne(e,t){!t||!e.session||0!==e.session.segmentId||CT(e,mne(e),!1)}function yne(e,t,n,r){return fZ(dZ(e,uZ(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function _ne({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}async function vne({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await bZ(e.getOptions(),r,a,t,e,ov());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function bne({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=_ne({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=cf(),d=n0(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return H$({});const m={type:JX,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},y=await vne({scope:d,client:f,replayId:t,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),Tt&&Ot.info("An event processor returned `null`, will not send event."),H$({});delete y.sdkProcessingMetadata;const g=yne(y,i,h,f.getOptions().tunnel);let v;try{v=await p.send(g)}catch(e){const t=new Error(mT);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new FL(v.statusCode);const b=MZ({},v);if(zZ(b,"replay"))throw new AT(b);return v}class FL extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class AT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function BL(e,t={count:0,interval:oJ}){const{recordingData:n,onError:r}=e;if(n.length)try{return await bne(e),!0}catch(n){if(n instanceof FL||n instanceof AT)throw n;if(AZ("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${mT} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{B1((async()=>{try{await BL(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const UL="__THROTTLED",wne="__SKIPPED";function kne(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?wne:UL}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class yp{constructor({options:e,recordingOptions:t}){yp.prototype.__init.call(this),yp.prototype.__init2.call(this),yp.prototype.__init3.call(this),yp.prototype.__init4.call(this),yp.prototype.__init5.call(this),yp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:eJ,sessionIdleExpire:tJ},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=pne((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=kne(((e,t)=>_te(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(iJ,n),timeout:n,scrollTimeout:cJ,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new Iee(this,a)),Tt){const t=e._experiments;Ot.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Tt&&Ot.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(Tt&&Ot.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Tt&&Ot.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Tt&&Ot.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Tt&&Ot.info("Buffering is in progress, call `flush()` to save the replay"));Tt&&Ot.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=J3({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Tt&&Ot.info("Buffering is in progress, call `flush()` to save the replay"));Tt&&Ot.infoTick("Starting replay in buffer mode");const e=J3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=xu({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:aJ}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:hne(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{Tt&&Ot.info("Stopping Replay"+(t?` triggered by ${t}`:"")),PL(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,pte(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Tt&&Ot.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Tt&&Ot.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Tt&&Ot.info("Converting buffer to session"),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&&TR(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${tr.location.pathname}${tr.location.hash}${tr.location.search}`,t=`${tr.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===UL){const e=Ql({category:"replay.throttled"});this.addUpdate((()=>!CT(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||D7(),t=e&&fT(e),n=(t&&__(t).data||{})[N7];if(t&&n&&["route","custom"].includes(n))return __(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=fte({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=J3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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!AL(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{tr.document.addEventListener("visibilitychange",this._handleVisibilityChange),tr.addEventListener("blur",this._handleWindowBlur),tr.addEventListener("focus",this._handleWindowFocus),tr.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(fne(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=rte(this)}_removeListeners(){try{tr.document.removeEventListener("visibilitychange",this._handleVisibilityChange),tr.removeEventListener("blur",this._handleWindowBlur),tr.removeEventListener("focus",this._handleWindowFocus),tr.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===tr.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ql({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ql({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Vee(this,e)}}_doChangeToBackgroundTasks(e){!this.session||RL(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Tt&&Ot.info("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:Ht.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=Gee(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(Qk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||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 une(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 a=await this.eventBuffer.finish();await BL({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=cf();if(t){const n=e instanceof AT?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Tt&&Ot.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Tt&&Ot.error("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,a=n>this._options.maxReplayDuration+5e3;if(r||a)return Tt&&Ot.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Tt&&Ot.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ET(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=Ql({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function hy(e,t){return[...e,...t].join(",")}function xne({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:hy(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:hy(t,[]),blockSelector:hy(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:hy(r,[]),ignoreSelector:hy(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Sne({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const $P='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ene=["content-length","content-type","accept"];let PP=!1;const Cne=e=>new Zk(e);class Zk{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=nJ,flushMaxDelay:t=rJ,minReplayDuration:n=lJ,maxReplayDuration:r=fP,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:C,beforeErrorSampling:O,onError:z}={}){this.name=Zk.id;const I=xne({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>Sne({maskAttributes:w,maskAllText:c,privacyOptions:I,key:e,value:t,el:n}),...I,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,fJ),maxReplayDuration:Math.min(r,fP),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:OP(v),networkResponseHeaders:OP(b),beforeAddRecordingEvent:C,beforeErrorSampling:O,onError:z,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$P}`:$P),this._isInitialized&&aP())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return PP}set _isInitialized(e){PP=e}afterAllSetup(e){!aP()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=Rne(this._initialOptions,e);this._replay=new yp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Rne(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Uc(e)},a=J$(n.replaysSessionSampleRate),o=J$(n.replaysOnErrorSampleRate);return null==a&&null==o&&rT((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function OP(e){return[...Ene,...e.map((e=>e.toLowerCase()))]}Zk.__initStatic();const VL=()=>"object"!=typeof window;var Ane={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"99899611aac5fbc0",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.129",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"};VL()||(window.build=Ane.BUILD_NUMBER),Cne(),KX(),qZ();const zP={data:null,isError:!1,isPending:!1,isSuccess:!1},Kn=qr({name:"user",initialState:zP,reducers:{reset:e=>{Object.assign(e,zP)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),Tne=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return TZ("exceptionMessage",t),void uT(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}RZ(t)},MP=["debug","info","warn","error"],Ine=(e,t)=>{const n=MP.indexOf(e);return MP.indexOf(t)>=n},Tb=(e,t,n,...r)=>{Ine(t,e)&&console.log(`[${e}] ${n}`,...r)},$ne=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),Pne=(e=!VL()&&$ne()||"warn")=>{let t=e;return{debug:(e,...n)=>Tb("debug",t,e,...n),info:(e,...n)=>Tb("info",t,e,...n),warn:(e,...n)=>Tb("warn",t,e,...n),error:(e,...n)=>(Tne(e,...n),Tb("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Ru=Pne(),Xk="staticState",hw={path:"",baseUrl:"",search:""},One=e=>{if(!e)return hw;try{return JSON.parse(decodeURIComponent(e))||hw}catch(e){return Ru.error("Error parsing static state",e),hw}},qL=()=>new URLSearchParams(window.location.search).get(Xk),zne=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Xk}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},Mne=()=>{const e=qL();return e&&localStorage.setItem(Xk,e),WL()},WL=()=>{try{const e=localStorage.getItem(Xk)||qL();return One(e)}catch(e){return Ru.error("Error parsing static state",e),hw}},TT={create:zne,init:Mne,get:WL},Nne=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Ru.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},Dne=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=Nne(e);t.postMessage(a,"*")}catch(e){Ru.error("Failed to process or send message:",e)}},Lne=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},jne=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return Ru.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},Fne=e=>{const{url:t,status:n,statusText:r,headers:a,body:o}=e,i=new Response(JSON.stringify(o),{status:n,statusText:r,headers:a});return Object.defineProperty(i,"url",{value:t}),i},Bne=async e=>{const t=crypto.randomUUID();return Dne({action:L$({id:t,options:await jne(e)}),windowElement:window.parent,whitelist:[L$]}),new Promise((e=>{const n=Lne({onMessage:({payload:{id:r,response:a}})=>{t===r&&(n(),e(Fne(a)))},whitelist:[rY]})}))},Une=()=>{try{return window.self!==window.top}catch{return!0}},Vne=()=>e=>Une()?Bne(e):fetch(e),qne=TT.get().baseUrl,Wne=qne||"",Hne=fQ({fetchFn:Vne(),baseUrl:Wne,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=xm.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),Gne=oY(lY(Hne)),Kne=ZQ({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Pw)],reducerPath:"openapi",baseQuery:Gne,endpoints:()=>({})}),nr=Kne.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:UQe,usePostApiV1AccountsAuthenticateEmailMutation:VQe,usePostApiV1AccountsAuthenticatePhoneMutation:qQe,usePutApiV1AccountsChangeNameMutation:WQe,usePostApiV1AccountsCheckCaptchaMutation:HQe,usePostApiV1AccountsConfirmEmailMutation:GQe,usePostApiV1AccountsConfirmPhoneMutation:KQe,useDeleteApiV1AccountsDeleteMutation:QQe,usePostApiV1AccountsEmailChangeConfirmMutation:YQe,usePostApiV1AccountsEmailChangeRequestMutation:ZQe,usePutApiV1AccountsEmailChangeResendCodeMutation:XQe,usePostApiV1AccountsFinishCreatingMutation:JQe,usePutApiV1AccountsGetTokenByHashMutation:eYe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:tYe,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:nYe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:rYe,usePostApiV1AccountsLoginsAddPhoneMutation:aYe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:oYe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:sYe,usePostApiV1AccountsPasswordChangeConfirmMutation:iYe,usePostApiV1AccountsPasswordChangeRequestMutation:cYe,usePutApiV1AccountsPasswordChangeResendCodeMutation:lYe,usePostApiV1AccountsPasswordRecoverMutation:fYe,usePostApiV1AccountsPasswordRecoverChangeMutation:uYe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:dYe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:pYe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:hYe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:mYe,usePutApiV1AccountsPhoneChangeRequestMutation:gYe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:yYe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:_Ye,useGetApiV1AccountsProfileQuery:vYe,usePostApiV1AccountsReselectUserMutation:bYe,usePutApiV1AccountsResendCodeByHashMutation:wYe,usePutApiV1AccountsResendEmailByHashMutation:kYe,usePostApiV1AccountsSignupMutation:xYe,usePostApiV1AccountsSignupPhoneMutation:SYe,usePostApiV1AccountsUserReselectUserMutation:EYe,useGetApiV1AccountsByIdQuery:CYe,useGetApiV1AddressesSuggestQuery:RYe,useGetApiV1AdminAccountByAccountIdQuery:AYe,useGetApiV1AdminAuditLogQuery:TYe,usePutApiV1AdminChangeEmailMutation:IYe,usePutApiV1AdminChangePasswordMutation:$Ye,usePutApiV1AdminChangeRoleAssignMutation:PYe,usePutApiV1AdminChangeRoleRevokeMutation:OYe,usePostApiV1AdminClearApErrorsMutation:zYe,usePostApiV1AdminCreateAccountMutation:MYe,useDeleteApiV1AdminDeleteMutation:NYe,useGetApiV1AdminDomainAllowQuery:DYe,usePostApiV1AdminDomainAllowMutation:LYe,useDeleteApiV1AdminDomainAllowByDomainMutation:jYe,usePutApiV1AdminDomainBlockMutation:FYe,useGetApiV1AdminDomainBlockQuery:BYe,usePostApiV1AdminDomainBlockMutation:UYe,useGetApiV1AdminDomainBlockListQuery:VYe,useDeleteApiV1AdminDomainBlockByDomainMutation:qYe,useGetApiV1AdminFederationQuery:WYe,useGetApiV1AdminFederationMetricsOperationsQuery:HYe,useGetApiV1AdminFederationMetricsRunningAverageSingleQuery:GYe,useGetApiV1AdminFederationMetricsRunningAveragesAllQuery:KYe,useGetApiV1AdminFederationByDomainQuery:QYe,usePostApiV1AdminFeedClearUserFeedMutation:YYe,useGetApiV1AdminFeedMetricsGlobalAllOperationQuery:ZYe,useGetApiV1AdminFeedMetricsGlobalAllOwnersQuery:XYe,useGetApiV1AdminFeedMetricsGlobalSingleQuery:JYe,useGetApiV1AdminFeedMetricsHistoryQuery:eZe,useGetApiV1AdminFeedMetricsHistoryAllQuery:tZe,useGetApiV1AdminFeedMetricsHistoryAllSingleOwnerQuery:nZe,useGetApiV1AdminFeedMetricsHistoryByOwnerTypeQuery:rZe,useGetApiV1AdminFeedMetricsRunningAverageSingleQuery:aZe,useGetApiV1AdminFeedMetricsRunningAveragesAllQuery:oZe,useGetApiV1AdminFeedMetricsSlowestOperationsQuery:sZe,useGetApiV1AdminFeedMetricsSlowestUsersQuery:iZe,useGetApiV1AdminFeedMetricsSlowestUsersAllQuery:cZe,useGetApiV1AdminFeedMetricsSlowestUsersSingleQuery:lZe,useGetApiV1AdminFeedMetricsSummaryQuery:fZe,useGetApiV1AdminFeedMetricsUserCountAllQuery:uZe,useGetApiV1AdminFeedMetricsUserCountSingleQuery:dZe,usePostApiV1AdminFeedRegenerateUserFeedMutation:pZe,usePostApiV1AdminPostsDeleteMutation:hZe,useDeleteApiV1AdminPurgeMutation:mZe,usePostApiV1AdminRegenerateKeysMutation:gZe,usePostApiV1AdminRegenerateKeysAllMutation:yZe,usePostApiV1AdminReportsDeletePostsMutation:_Ze,useGetApiV1AdminReportsListQuery:vZe,useGetApiV1AdminReportsByReportIdQuery:bZe,usePostApiV1AdminReportsByReportIdAddNoteMutation:wZe,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:kZe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:xZe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:SZe,usePostApiV1AdminReportsByReportIdReopenMutation:EZe,usePostApiV1AdminReportsByReportIdResolveMutation:CZe,usePostApiV1AdminReportsByReportIdUnassignMutation:RZe,usePostApiV1AdminRestartApDeliveryMutation:AZe,useGetApiV1AdminSearchQuery:TZe,usePutApiV1AdminSignupRequestsApproveByHashMutation:IZe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:$Ze,useGetApiV1AdminSignupRequestsListQuery:PZe,usePutApiV1AdminSignupRequestsRejectByHashMutation:OZe,useGetApiV1AdminUploadsJobsQueueByQueueNameQuery:zZe,useGetApiV1AdminUploadsJobsSummaryQuery:MZe,useGetApiV1AdminUploadsSearchQuery:NZe,useGetApiV1AdminUploadsStorageByUserIdQuery:DZe,usePostApiV1AdminUserChangeStateMutation:LZe,useGetApiV1AdminUserByUserIdQuery:jZe,usePostApiV1AppsMutation:FZe,useGetApiV1AppsQuery:BZe,useGetApiV1AppsEnabledQuery:UZe,useGetApiV1AppsGroupByGroupIdQuery:VZe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:qZe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:WZe,useGetApiV1AppsInstalledQuery:HZe,useGetApiV1AppsUserQuery:GZe,useDeleteApiV1AppsUserByAppIdMutation:KZe,usePutApiV1AppsUserByAppIdMutation:QZe,usePutApiV1AppsByAppIdMutation:YZe,useGetApiV1AppsByAppIdQuery:ZZe,useDeleteApiV1AppsByAppIdMutation:XZe,useGetApiV1AppsByAppIdDataQuery:JZe,usePostApiV1AppsByAppIdDataMutation:eXe,usePutApiV1AppsByAppIdDataAndIdMutation:tXe,useDeleteApiV1AppsByAppIdDataAndIdMutation:nXe,usePutApiV1AppsByAppIdDefaultMutation:rXe,usePutApiV1AppsByAppIdDisableMutation:aXe,usePutApiV1AppsByAppIdEnableMutation:oXe,useGetApiV1AppsByAppIdStatsQuery:sXe,usePutApiV1AppsByAppIdUserDefaultMutation:iXe,useDeleteApiV1AppsByAppIdUserDefaultMutation:cXe,useGetApiV1BlockQuery:lXe,useGetApiV1BlockByQuery:fXe,useDeleteApiV1BlockByUserIdMutation:Qne,usePostApiV1BlockByUserIdMutation:Yne,usePostApiV1CategoriesMutation:uXe,useGetApiV1CategoriesNameByCategoryNameQuery:dXe,usePutApiV1CategoriesByCategoryIdMutation:pXe,useGetApiV1CategoriesByCategoryIdQuery:hXe,useDeleteApiV1CategoriesByCategoryIdMutation:mXe,useGetApiV1CustomEmojisQuery:gXe,useDeleteApiV1CustomEmojisMutation:yXe,usePostApiV1CustomEmojisMutation:_Xe,useGetApiV1CustomEmojisExportQuery:vXe,usePostApiV1CustomEmojisImportMutation:bXe,useGetApiV1CustomEmojisSearchQuery:wXe,usePostApiV1CustomEmojisUploadMutation:kXe,useGetApiV1DataQuery:xXe,usePostApiV1DataMutation:SXe,usePutApiV1DataByIdMutation:EXe,useDeleteApiV1DataByIdMutation:CXe,useGetApiV1EventsQuery:RXe,usePostApiV1EventsMutation:AXe,useGetApiV1EventsFollowingQuery:TXe,useGetApiV1EventsMyQuery:IXe,useGetApiV1EventsSettingsQuery:$Xe,usePostApiV1EventsSettingsRegeneratePrivateIdMutation:PXe,usePostApiV1EventsSettingsUpdateMutation:OXe,usePutApiV1EventsByEventIdMutation:zXe,useGetApiV1EventsByEventIdQuery:MXe,useDeleteApiV1EventsByEventIdMutation:NXe,usePostApiV1EventsByEventIdAcceptMutation:DXe,useGetApiV1EventsByEventIdAttendeesQuery:LXe,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:jXe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:FXe,usePostApiV1EventsByEventIdCancelMutation:BXe,usePostApiV1EventsByEventIdInterestedMutation:UXe,usePostApiV1EventsByEventIdJoinMutation:VXe,useDeleteApiV1EventsByEventIdLeaveMutation:qXe,usePostApiV1EventsByEventIdMaybeMutation:WXe,useGetApiV1EventsByEventIdMutualQuery:HXe,usePostApiV1EventsByEventIdRejectMutation:GXe,usePostApiV1FaspClearMutation:KXe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:QXe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:YXe,usePostApiV1FaspRegistrationMutation:ZXe,usePostApiV1FaspByProviderIdCapabilitiesMutation:XXe,usePostApiV1FaspByProviderIdDebugCallMutation:JXe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:eJe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:tJe,usePostApiV1FaspByProviderIdRequestBackfillMutation:nJe,usePutApiV1ForumsByForumIdMutation:rJe,useGetApiV1ForumsByForumIdQuery:aJe,useDeleteApiV1ForumsByForumIdMutation:oJe,useGetApiV1ForumsByForumIdCategoriesQuery:sJe,useGetApiV1ForumsByForumIdPostsQuery:iJe,useGetApiV1ForumsByForumIdTagsQuery:cJe,useGetApiV1ForumsByForumIdTagsSearchQuery:lJe,useGetApiV1GeoQuery:fJe,useGetApiV1GroupsQuery:uJe,usePostApiV1GroupsMutation:dJe,useGetApiV1GroupsAccountQuery:pJe,useGetApiV1GroupsMemberByUserIdQuery:hJe,useGetApiV1GroupsMemberByUserIdGroupsQuery:mJe,useGetApiV1GroupsNameByGroupnameQuery:gJe,useGetApiV1GroupsSearchQuery:yJe,usePutApiV1GroupsByGroupIdMutation:_Je,useGetApiV1GroupsByGroupIdQuery:vJe,useDeleteApiV1GroupsByGroupIdMutation:bJe,useGetApiV1GroupsByGroupIdForumQuery:wJe,usePostApiV1GroupsByGroupIdForumMutation:kJe,usePostApiV1GroupsByGroupIdJoinMutation:xJe,usePutApiV1GroupsByGroupIdMediaMutation:SJe,usePutApiV1GroupsByGroupIdMembersMutation:EJe,useGetApiV1GroupsByGroupIdMembersQuery:CJe,usePostApiV1GroupsByGroupIdMembersMutation:RJe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:AJe,useGetApiV1GroupsByGroupIdUsersQuery:TJe,useGetApiV1ImportQuery:IJe,usePostApiV1ImportMutation:$Je,usePostApiV1ImportStartByIdMutation:PJe,useGetApiV1ImportByIdQuery:OJe,useGetApiV1InstanceQuery:zJe,useGetApiV1InstanceCountriesQuery:MJe,useGetApiV1InstanceDomainsQuery:NJe,useGetApiV1InstanceExtendedDescriptionQuery:DJe,useGetApiV1InstanceSupportedLanguagesQuery:LJe,useGetApiV1InstanceTimezonesQuery:jJe,useGetApiV1JobsListJobsQuery:FJe,useGetApiV1JobsListStatsQuery:BJe,useGetApiV1JobsListStatsAllQuery:UJe,useGetApiV1JobsListsQuery:VJe,useGetApiV1JobsStatsQuery:qJe,useGetApiV1JobsStatsPerDayQuery:WJe,useGetApiV1LinksQuery:HJe,useGetApiV1ListsQuery:GJe,usePostApiV1ListsMutation:KJe,usePutApiV1ListsByListIdMutation:QJe,useGetApiV1ListsByListIdQuery:YJe,useDeleteApiV1ListsByListIdMutation:ZJe,useGetApiV1ListsByListIdUsersQuery:XJe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:JJe,usePostApiV1ListsByListIdUsersAndUserIdMutation:eet,useGetApiV1MetricsQuery:tet,useGetApiV1MetricsTotalsQuery:net,useGetApiV1MuteQuery:ret,useDeleteApiV1MuteByUserIdMutation:aet,usePostApiV1MuteByUserIdMutation:oet,usePutApiV1NotesMutation:set,useGetApiV1NotesQuery:iet,useDeleteApiV1NotesByUserIdMutation:cet,useGetApiV1NotificationsQuery:fet,useGetApiV1NotificationsCountQuery:uet,usePostApiV1NotificationsMarkAllMutation:det,useGetApiV1NotificationsByIdQuery:pet,usePostApiV1NotificationsByIdMarkMutation:het,usePostApiV1PollsByPollIdRefreshMutation:met,usePostApiV1PollsByPollIdVoteMutation:get,useGetApiV1PostsQuery:yet,usePostApiV1PostsMutation:_et,useGetApiV1PostsBookmarksQuery:vet,useGetApiV1PostsFollowingQuery:bet,useGetApiV1PostsLikedQuery:wet,useGetApiV1PostsMentionedQuery:ket,useGetApiV1PostsMyQuery:xet,useGetApiV1PostsPinsQuery:Eet,useDeleteApiV1PostsPinsByPostIdMutation:Cet,usePostApiV1PostsPinsByPostIdMutation:Ret,useGetApiV1PostsPublicQuery:Aet,useGetApiV1PostsRepliesQuery:Tet,useGetApiV1PostsSubscribeQuery:Iet,usePutApiV1PostsByPostIdMutation:$et,useGetApiV1PostsByPostIdQuery:Pet,useDeleteApiV1PostsByPostIdMutation:Oet,useDeleteApiV1PostsByPostIdBookmarkMutation:zet,usePostApiV1PostsByPostIdBookmarkMutation:Met,useGetApiV1PostsByPostIdCommentsQuery:Net,usePostApiV1PostsByPostIdCommentsMutation:Det,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:Let,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:jet,usePostApiV1PostsByPostIdDetachMutation:Fet,useGetApiV1PostsByPostIdEditsQuery:Bet,useGetApiV1PostsByPostIdLikesQuery:Uet,useDeleteApiV1PostsByPostIdLikesMutation:Vet,usePostApiV1PostsByPostIdLikesMutation:qet,usePostApiV1PostsByPostIdRefreshCardMutation:Wet,useDeleteApiV1PostsByPostIdRepostMutation:Het,usePostApiV1PostsByPostIdRepostMutation:Get,useGetApiV1PostsByPostIdRepostsQuery:Ket,usePostApiV1PostsByPostIdSubscribeMutation:Qet,useDeleteApiV1PostsByPostIdSubscribeMutation:Yet,usePostApiV1PostsByPostIdTranslateMutation:Zet,useGetApiV1RbacQuery:Xet,useGetApiV1RbacActorsByActorIdPermissionsQuery:Jet,useGetApiV1RbacActorsByActorIdRolesQuery:ett,usePutApiV1RbacRolesByRoleIdMutation:ttt,useGetApiV1RbacScopesByScopeRolesQuery:ntt,usePostApiV1RbacScopesByScopeRolesMutation:rtt,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:att,useGetApiV1RbacByResourceQuery:ott,usePostApiV1ReportsMutation:stt,usePutApiV1RulesMutation:itt,useGetApiV1RulesQuery:ctt,usePostApiV1RulesMutation:ltt,usePostApiV1RulesReorderMutation:ftt,useDeleteApiV1RulesByIdMutation:utt,useGetApiV1SearchQuery:HL,useDeleteApiV1SessionsAllMutation:dtt,useGetApiV1SessionsListQuery:ptt,usePutApiV1SessionsRevokeAllMutation:htt,usePutApiV1SessionsRevokeBySessionKeyMutation:mtt,useDeleteApiV1SessionsBySessionKeyMutation:gtt,usePutApiV1SettingsMutation:ytt,useGetApiV1SettingsQuery:_tt,useDeleteApiV1SettingsMutation:vtt,usePutApiV1SettingsUserMutation:btt,useGetApiV1SettingsUserQuery:wtt,useDeleteApiV1SettingsUserMutation:ktt,useGetApiV1TagsFeaturedQuery:xtt,useDeleteApiV1TagsFeaturedByNameMutation:Stt,usePostApiV1TagsFeaturedByNameMutation:Ett,usePostApiV1TagsFollowByNameMutation:Ctt,useGetApiV1TagsFollowedQuery:Rtt,useGetApiV1TagsTrendingQuery:Att,usePostApiV1TagsUnfollowByNameMutation:Ttt,useGetApiV1TagsByNameQuery:Itt,usePostApiV1TranslateTextMutation:$tt,useGetApiV1TrendsLinksQuery:Ptt,useGetApiV1TrendsPostsQuery:Ott,useGetApiV1TrendsTagsQuery:ztt,usePostApiV1UploadsMutation:Mtt,usePostApiV1UploadsBatchMutation:Ntt,usePostApiV1UploadsListMutation:Dtt,useGetApiV1UploadsSearchQuery:Ltt,useGetApiV1UploadsUsagesQuery:jtt,useGetApiV1UploadsByIdQuery:Ftt,useDeleteApiV1UploadsByIdMutation:Btt,usePostApiV1UploadsByIdMetaMutation:Utt,usePutApiV1UploadsByIdMetaMutation:Vtt,usePostApiV1UploadsByIdTagsMutation:qtt,usePutApiV1UploadsByIdTagsMutation:Wtt,usePostApiV1UploadsByIdThumbnailMutation:Htt,useGetApiV1UserAliasQuery:Gtt,useDeleteApiV1UserAliasMutation:Ktt,usePostApiV1UserAliasMutation:Qtt,useGetApiV1UserDomainBlockQuery:Ytt,useDeleteApiV1UserDomainBlockByDomainMutation:Ztt,usePostApiV1UserDomainBlockByDomainMutation:Xtt,useDeleteApiV1UsersMutation:Jtt,usePostApiV1UsersMutation:ent,useGetApiV1UsersQuery:tnt,useGetApiV1UsersCheckQuery:nnt,useGetApiV1UsersConnectionsQuery:rnt,usePostApiV1UsersFollowByUsernameMutation:ant,usePostApiV1UsersFollowByUsernameAcceptMutation:Zne,usePostApiV1UsersFollowByUsernamePendMutation:ont,usePostApiV1UsersFollowByUsernameRejectMutation:Xne,usePostApiV1UsersFollowByUsernameUndoMutation:snt,useGetApiV1UsersFolloweesQuery:Jne,useGetApiV1UsersFollowersQuery:int,usePostApiV1UsersInviteMutation:cnt,usePostApiV1UsersInviteAcceptMutation:lnt,useGetApiV1UsersInviteInviteeEntitiesQuery:fnt,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:unt,useGetApiV1UsersInviteInviteeInvitersQuery:dnt,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:pnt,useGetApiV1UsersInviteInviterEntitiesQuery:hnt,useGetApiV1UsersInviteInviterInviteesQuery:mnt,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:gnt,usePostApiV1UsersInviteRejectMutation:ynt,usePostApiV1UsersInviteUndoMutation:_nt,useGetApiV1UsersRelationshipsQuery:vnt,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:bnt,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:wnt,useGetApiV1UsersRenameHistoryQuery:knt,usePutApiV1UsersByUserIdMutation:xnt,useGetApiV1UsersByUserIdQuery:Snt,useGetApiV1UsersByUserIdFollowersQuery:Ent,useGetApiV1UsersByUserIdFollowingQuery:ere,usePutApiV1UsersByUserIdMediaMutation:Cnt}=nr;var NP,Oy={exports:{}},tre=Oy.exports;
|
|
19
|
+
*/function $Q(){if(P$)return F3;P$=1;var e=Ik();var t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=e.useRef,a=e.useEffect,o=e.useMemo,i=e.useDebugValue;return F3.useSyncExternalStoreWithSelector=function(e,s,c,l,u){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=o((function(){function e(e){if(!a){if(a=!0,n=e,e=l(e),void 0!==u&&d.hasValue){var o=d.value;if(u(o,e))return r=o}return r=e}if(o=r,t(n,e))return o;var i=l(e);return void 0!==u&&u(o,i)?o:(n=e,r=i)}var n,r,a=!1,o=void 0===c?null:c;return[function(){return e(s())},null===o?void 0:function(){return e(o())}]}),[s,c,l,u]);var p=n(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),i(p),p},F3}function PQ(){return O$||(O$=1,j3.exports=$Q()),j3.exports}var OQ=PQ(),Kl="default"in Cw?we:Cw,z$=Symbol.for("react-redux-context"),M$=typeof globalThis<"u"?globalThis:{};function zQ(){if(!Kl.createContext)return{};const e=M$[z$]??(M$[z$]=new Map);let t=e.get(Kl.createContext);return t||(t=Kl.createContext(null),e.set(Kl.createContext,t)),t}var km=zQ(),MQ=()=>{throw new Error("uSES not initialized!")};function XA(e=km){return function(){return Kl.useContext(e)}}var v7=XA(),b7=MQ,NQ=e=>{b7=e},DQ=(e,t)=>e===t;function LQ(e=km){const t=e===km?v7:XA(e),n=(e,n={})=>{const{equalityFn:r=DQ,devModeChecks:a={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:i,getServerState:s,stabilityCheck:c,identityFunctionCheck:l}=t();Kl.useRef(!0);const u=Kl.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,a.stabilityCheck]),f=b7(i.addNestedSub,o.getState,s||o.getState,u,r);return Kl.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var on=LQ();function jQ(e){e()}var FQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N$(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Gy(e,t){if(N$(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!N$(e[n[r]],t[n[r]]))return!1;return!0}function w7(e=km){const t=e===km?v7:XA(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}FQ?Kl.useLayoutEffect:Kl.useEffect;var k7=w7();function BQ(e=km){const t=e===km?k7:w7(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Lp=BQ(),UQ=jQ;function VQ(e){return"query"===e.type}function qQ(e){return"mutation"===e.type}function _b(e,...t){return Object.assign(e,...t)}function B3(e){return e.replace(e[0],e[0].toUpperCase())}NQ(OQ.useSyncExternalStoreWithSelector);var s1=WeakMap?new WeakMap:void 0,WQ=({endpointName:e,queryArgs:t})=>{let n="";const r=null==s1?void 0:s1.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>Jl(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));Jl(t)&&(null==s1||s1.set(t,e)),n=e}return`${e}(${n})`},U3=Symbol();function D$(e,t,n,r){const a=v.useMemo((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=v.useRef(a);return v.useEffect((()=>{o.current.serialized!==a.serialized&&(o.current=a)}),[a]),o.current.serialized===a.serialized?o.current.queryArgs:e}function V3(e){const t=v.useRef(e);return v.useEffect((()=>{Gy(t.current,e)||(t.current=e)}),[e]),Gy(t.current,e)?t.current:e}var HQ=typeof window<"u"&&window.document&&window.document.createElement?v.useLayoutEffect:v.useEffect,GQ=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:d7.pending}:e;function KQ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:a},unstable__sideEffectsInRender:o,createSelector:i},serializeQueryArgs:s,context:c}){const l=o?e=>e():v.useEffect;return{buildQueryHooks:function(o){const f=(t,{refetchOnReconnect:r,refetchOnFocus:a,refetchOnMountOrArgChange:i,skip:s=!1,pollingInterval:u=0,skipPollingIfUnfocused:f=!1}={})=>{const{initiate:d}=e.endpoints[o],p=n(),h=v.useRef();if(!h.current){const t=p(e.internalActions.internal_getRTKQSubscriptions());h.current=t}const m=D$(s?fm:t,WQ,c.endpointDefinitions[o],o),y=V3({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:u,skipPollingIfUnfocused:f}),g=v.useRef(!1),b=v.useRef();let{queryCacheKey:_,requestId:w}=b.current||{},k=!1;_&&w&&(k=h.current.isRequestSubscribed(_,w));const x=!k&&g.current;return l((()=>{g.current=k})),l((()=>{x&&(b.current=void 0)}),[x]),l((()=>{var e;const t=b.current;if(m===fm)return null==t||t.unsubscribe(),void(b.current=void 0);const n=null==(e=b.current)?void 0:e.subscriptionOptions;if(t&&t.arg===m)y!==n&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();const e=p(d(m,{subscriptionOptions:y,forceRefetch:i}));b.current=e}}),[p,d,i,m,y,x]),v.useEffect((()=>()=>{var e;null==(e=b.current)||e.unsubscribe(),b.current=void 0}),[]),v.useMemo((()=>({refetch:()=>{var e;if(!b.current)throw new Error(Ha(38));return null==(e=b.current)?void 0:e.refetch()}})),[])},d=({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i=0,skipPollingIfUnfocused:s=!1}={})=>{const{initiate:c}=e.endpoints[o],u=n(),[f,d]=v.useState(U3),p=v.useRef(),h=V3({refetchOnReconnect:r,refetchOnFocus:a,pollingInterval:i,skipPollingIfUnfocused:s});l((()=>{var e,t;const n=null==(e=p.current)?void 0:e.subscriptionOptions;h!==n&&(null==(t=p.current)||t.updateSubscriptionOptions(h))}),[h]);const m=v.useRef(h);l((()=>{m.current=h}),[h]);const y=v.useCallback((function(e,n=!1){let r;return t((()=>{var t;null==(t=p.current)||t.unsubscribe(),p.current=r=u(c(e,{subscriptionOptions:m.current,forceRefetch:!n})),d(e)})),r}),[u,c]);return v.useEffect((()=>()=>{var e;null==(e=null==p?void 0:p.current)||e.unsubscribe()}),[]),v.useEffect((()=>{f!==U3&&!p.current&&y(f,!0)}),[f,y]),v.useMemo((()=>[y,f]),[y,f])},p=(t,{skip:n=!1,selectFromResult:l}={})=>{const{select:f}=e.endpoints[o],d=D$(n?fm:t,s,c.endpointDefinitions[o],o),p=v.useRef(),h=v.useMemo((()=>i([f(d),(e,t)=>t,e=>d],u,{memoizeOptions:{resultEqualityCheck:Gy}})),[f,d]),m=v.useMemo((()=>l?i([h],l,{devModeChecks:{identityFunctionCheck:"never"}}):h),[h,l]),y=r((e=>m(e,p.current)),Gy),g=a(),b=h(g.getState(),p.current);return HQ((()=>{p.current=b}),[b]),y};return{useQueryState:p,useQuerySubscription:f,useLazyQuerySubscription:d,useLazyQuery(e){const[t,n]=d(e),r=p(n,{...e,skip:n===U3}),a=v.useMemo((()=>({lastArg:n})),[n]);return v.useMemo((()=>[t,r,a]),[t,r,a])},useQuery(e,t){const n=f(e,t),r=p(e,{selectFromResult:e===fm||null!=t&&t.skip?void 0:GQ,...t}),{data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}=r;return v.useDebugValue({data:a,status:o,isLoading:i,isSuccess:s,isError:c,error:l}),v.useMemo((()=>({...r,...n})),[r,n])}}},buildMutationHook:function(a){return({selectFromResult:o,fixedCacheKey:s}={})=>{const{select:c,initiate:l}=e.endpoints[a],u=n(),[f,d]=v.useState();v.useEffect((()=>()=>{null!=f&&f.arg.fixedCacheKey||null==f||f.reset()}),[f]);const p=v.useCallback((function(e){const t=u(l(e,{fixedCacheKey:s}));return d(t),t}),[u,l,s]),{requestId:h}=f||{},m=v.useMemo((()=>c({fixedCacheKey:s,requestId:null==f?void 0:f.requestId})),[s,f,c]),y=v.useMemo((()=>o?i([m],o):m),[o,m]),g=r(y,Gy),b=null==s?null==f?void 0:f.arg.originalArgs:void 0,_=v.useCallback((()=>{t((()=>{f&&d(void 0),s&&u(e.internalActions.removeMutationResult({requestId:h,fixedCacheKey:s}))}))}),[u,s,f,h]),{endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C}=g;v.useDebugValue({endpointName:w,data:k,status:x,isLoading:S,isSuccess:E,isError:A,error:C});const O=v.useMemo((()=>({...g,originalArgs:b,reset:_})),[g,b,_]);return v.useMemo((()=>[p,O]),[p,O])}},usePrefetch:function(t,r){const a=n(),o=V3(r);return v.useCallback(((n,r)=>a(e.util.prefetch(t,n,{...o,...r}))),[t,a,o])}};function u(e,t,n){if(null!=t&&t.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=c.endpointDefinitions[e];s({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===s({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:null==t?void 0:t.data;void 0===r&&(r=e.data);const a=void 0!==r,o=e.isLoading,i=!a&&o,l=e.isSuccess||o&&a;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:i,isSuccess:l}}}var QQ=Symbol(),YQ=({batch:e=UQ,hooks:t={useDispatch:Lp,useSelector:on,useStore:k7},createSelector:n=mo,unstable__sideEffectsInRender:r=!1,...a}={})=>({name:QQ,init(a,{serializeQueryArgs:o},i){const s=a,{buildQueryHooks:c,buildMutationHook:l,usePrefetch:u}=KQ({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:o,context:i});return _b(s,{usePrefetch:u}),_b(i,{batch:e}),{injectEndpoint(e,t){if(VQ(t)){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=c(e);_b(s.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),a[`use${B3(e)}Query`]=t,a[`useLazy${B3(e)}Query`]=n}else if(qQ(t)){const t=l(e);_b(s.endpoints[e],{useMutation:t}),a[`use${B3(e)}Mutation`]=t}}}}}),ZQ=_Q(IQ(),YQ());const JA="auth_token",x7=()=>localStorage.getItem(JA)||void 0,XQ=e=>localStorage.setItem(JA,e),JQ=()=>localStorage.removeItem(JA),eY=()=>!!x7(),xm={getToken:x7,setToken:XQ,removeToken:JQ,hasToken:eY},tY="remote-ready",S7=zr("reselectUser"),eT=zr("requestLogin"),E7=zr("requestLogout"),nY="host-store-connect",C7=zr("remoteLogin"),tT=zr("remoteLogout"),L$=zr("requestMicroFrontendFetch"),rY=zr("sendMicroFrontendFetchResponse"),aY=e=>{xm.removeToken(),e(tT())},oY=e=>async(t,n,r)=>{const a=await e(t,n,r);return a.error&&[401].includes(a.error.status)&&aY(n.dispatch),a},sY=async(e,t=2e3)=>{for(;!e();)await new Promise((e=>setTimeout(e,t)))},iY=5,cY=e=>t=>!!e&&t.includes(e.status),j$=e=>new Promise((t=>setTimeout(t,1e3*e))),lY=e=>async(t,n,r)=>{const a=(null==r?void 0:r.maxRetries)??5;await sY((()=>n.getState().network.isOnline));let o=0;const i=async()=>{var s,c,l,u;const f=await e(t,n,r),d=f.error;if(o>=a)return f;o>0&&await j$(Math.pow(2,o)),o++;const p=cY(d);switch(!0){case"mutation"===n.type:return f;case!navigator.onLine:case p([408,404]):case d&&"FETCH_ERROR"===(null==d?void 0:d.status):case d&&d.status>=500:return await i();case 429===(null==(s=null==f?void 0:f.error)?void 0:s.status):{const e=null==(u=null==(l=null==(c=f.meta)?void 0:c.response)?void 0:l.headers)?void 0:u.get("Retry-After");return await j$(+(e||"0")),await i()}default:return f}};return await i()};var Pw=(e=>(e.SERVER_RULES="serverRules",e.EVENT_ATTENDEES="eventAttendees",e))(Pw||{});const nT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ky="8.48.0",Mo=globalThis;function Dk(e,t,n){const r=Mo,a=r.__SENTRY__=r.__SENTRY__||{},o=a[Ky]=a[Ky]||{};return o[e]||(o[e]=t())}const rv=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,fY="Sentry Logger ",F$=["debug","info","warn","error","log","assert","trace"],B$={};function rT(e){if(!("console"in Mo))return e();const t=Mo.console,n={},r=Object.keys(B$);r.forEach((e=>{const r=B$[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function uY(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return rv?F$.forEach((n=>{t[n]=(...t)=>{e&&rT((()=>{Mo.console[n](`${fY}[${n}]:`,...t)}))}})):F$.forEach((e=>{t[e]=()=>{}})),t}const as=Dk("logger",uY),q3="<anonymous>";function Cu(e){try{return e&&"function"==typeof e&&e.name||q3}catch{return q3}}function U$(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch{return}}}const uw={},V$={};function R7(e,t){uw[e]=uw[e]||[],uw[e].push(t)}function A7(e,t){if(!V$[e]){V$[e]=!0;try{t()}catch(t){rv&&as.error(`Error while instrumenting ${e}`,t)}}}function dR(e,t){const n=e&&uw[e];if(n)for(const r of n)try{r(t)}catch(t){rv&&as.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(r)}\nError:`,t)}}function av(){return aT(Mo),Mo}function aT(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ky,t[Ky]=t[Ky]||{}}const T7=Object.prototype.toString;function dY(e){switch(T7.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Lk(e,Error)}}function oT(e,t){return T7.call(e)===`[object ${t}]`}function Ow(e){return oT(e,"String")}function sT(e){return oT(e,"Object")}function pY(e){return typeof Event<"u"&&Lk(e,Event)}function hY(e){return typeof Element<"u"&&Lk(e,Element)}function mY(e){return oT(e,"RegExp")}function iT(e){return!(!e||!e.then||"function"!=typeof e.then)}function gY(e){return sT(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Lk(e,t){try{return e instanceof t}catch{return!1}}function yY(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const I7=Mo,_Y=80;function cT(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let o=0,i=0;const s=" > ",c=s.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=vY(n,u),!("html"===l||o>1&&i+a.length*c+l.length>=f));)a.push(l),i+=l.length,n=n.parentNode;return a.reverse().join(s)}catch{return"<unknown>"}}function vY(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(I7.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const a=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(a&&a.length)a.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Ow(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const o=["aria-label","type","name","title","alt"];for(const e of o){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function bY(){try{return I7.document.location.href}catch{return""}}function W3(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function wY(e,t,n=!1){return!!Ow(e)&&(mY(t)?t.test(e):!!Ow(t)&&(n?e===t:e.includes(t)))}function kY(e,t=[],n=!1){return t.some((t=>wY(e,t,n)))}function Hi(e,t,n){if(!(t in e))return;const r=e[t],a=n(r);"function"==typeof a&&$7(a,r);try{e[t]=a}catch{rv&&as.log(`Failed to replace method "${t}" in object`,e)}}function y_(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{rv&&as.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function $7(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,y_(e,"__sentry_original__",t)}catch{}}function P7(e){return e.__sentry_original__}function xY(e){if(dY(e))return{message:e.message,name:e.name,stack:e.stack,...W$(e)};if(pY(e)){const t={type:e.type,target:q$(e.target),currentTarget:q$(e.currentTarget),...W$(e)};return typeof CustomEvent<"u"&&Lk(e,CustomEvent)&&(t.detail=e.detail),t}return e}function q$(e){try{return hY(e)?cT(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function W$(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 Uc(e){return pR(e,new Map)}function pR(e,t){if(SY(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))typeof e[n]<"u"&&(r[n]=pR(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(pR(e,t))})),r}return e}function SY(e){if(!sT(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}const O7=1e3;function jk(){return Date.now()/O7}function EY(){const{performance:e}=Mo;if(!e||!e.now)return jk;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/O7}const z7=EY(),CY=(()=>{const{performance:e}=Mo;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+n-r):t;return o||s<t?a<=s?e.timeOrigin:i:r})();function ku(){const e=Mo,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{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function RY(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function AY(e,t,n){const r=e.exception=e.exception||{},a=r.values=r.values||[],o=a[0]=a[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function M7(e,t){const n=RY(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}}var gu;function H$(e){return new wu((t=>{t(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(gu||(gu={}));class wu{constructor(e){wu.prototype.__init.call(this),wu.prototype.__init2.call(this),wu.prototype.__init3.call(this),wu.prototype.__init4.call(this),this._state=gu.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new wu(((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 wu(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(gu.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(gu.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===gu.PENDING){if(iT(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===gu.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===gu.RESOLVED&&e[1](this._value),this._state===gu.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function TY(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||z7(),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:ku()),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 G$(){return ku()}function hR(){return ku().substring(16)}function Fk(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Fk(r[e],t[e],n-1));return r}const mR="_sentrySpan";function K$(e,t){t?y_(e,mR,t):delete e[mR]}function gR(e){return e[mR]}const IY=100;class lT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:G$(),spanId:hR()}}clone(){const e=new lT;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,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._lastEventId=this._lastEventId,K$(e,gR(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&TY(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}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,[n,r]=t instanceof Sm?[t.getScopeData(),t.getRequestSession()]:sT(t)?[e,e.requestSession]:[],{tags:a,extra:o,user:i,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),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._session=void 0,K$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:G$()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:IY;if(n<=0)return this;const r={timestamp:jk(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gR(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Fk(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:hR(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:ku();if(!this._client)return as.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:ku();if(!this._client)return as.warn("No client configured on scope - will not capture message!"),r;const a=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:ku();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(as.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)}}const Sm=lT;function $Y(){return Dk("defaultCurrentScope",(()=>new Sm))}function PY(){return Dk("defaultIsolationScope",(()=>new Sm))}class OY{constructor(e,t){let n,r;n=e||new Sm,r=t||new Sm,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return iT(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function j1(){const e=aT(av());return e.stack=e.stack||new OY($Y(),PY())}function zY(e){return j1().withScope(e)}function MY(e,t){const n=j1();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Q$(e){return j1().withScope((()=>e(j1().getIsolationScope())))}function NY(){return{withIsolationScope:Q$,withScope:zY,withSetScope:MY,withSetIsolationScope:(e,t)=>Q$(t),getCurrentScope:()=>j1().getScope(),getIsolationScope:()=>j1().getIsolationScope()}}function Bk(e){const t=aT(e);return t.acs?t.acs:NY()}function n0(){return Bk(av()).getCurrentScope()}function ov(){return Bk(av()).getIsolationScope()}function DY(){return Dk("globalScope",(()=>new Sm))}function LY(...e){const t=Bk(av());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function cf(){return n0().getClient()}const jY="_sentryMetrics";function FY(e){const t=e[jY];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(Uc(r));return n}const N7="sentry.source",BY="sentry.sample_rate",UY="sentry.op",VY="sentry.origin",qY=0,WY=1,HY="sentry-",GY=/^sentry-/;function KY(e){const t=QY(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(GY)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function QY(e){if(e&&(Ow(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Y$(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Y$(e)}function Y$(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const YY=1;function ZY(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Uc({parent_span_id:r?t:__(e).parent_span_id,span_id:r?hR():t,trace_id:n})}function Z$(e){return"number"==typeof e?X$(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?X$(e.getTime()):z7()}function X$(e){return e>9999999999?e/1e3:e}function __(e){if(JY(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(XY(e)){const{attributes:r,startTime:a,name:o,endTime:i,parentSpanId:s,status:c}=e;return Uc({span_id:t,trace_id:n,data:r,description:o,parent_span_id:s,start_timestamp:Z$(a),timestamp:Z$(i)||void 0,status:tZ(c),op:r[UY],origin:r[VY],_metrics_summary:FY(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function XY(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function JY(e){return"function"==typeof e.getSpanJSON}function eZ(e){const{traceFlags:t}=e.spanContext();return 1===t}function tZ(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const nZ="_sentryRootSpan";function fT(e){return e[nZ]||e}function D7(){const e=Bk(av());return e.getActiveSpan?e.getActiveSpan():gR(n0())}function rZ(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=cf(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const L7="production",aZ="_frozenDsc";function oZ(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=Uc({environment:n.environment||L7,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function j7(e){const t=cf();if(!t)return{};const n=fT(e),r=n[aZ];if(r)return r;const a=n.spanContext().traceState,o=a&&a.get("sentry.dsc"),i=o&&KY(o);if(i)return i;const s=oZ(e.spanContext().traceId,t),c=__(n),l=c.data||{},u=l[BY];null!=u&&(s.sample_rate=`${u}`);const f=l[N7],d=c.description;return"url"!==f&&d&&(s.transaction=d),rZ()&&(s.sampled=String(eZ(n))),t.emit("createDsc",s,n),s}function J$(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;nT&&as.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)}.`)}function sZ(e,t=!1){const{host:n,path:r,pass:a,port:o,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&a?`:${a}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function iZ(){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}}]}function yu(e,t=100,n=1/0){try{return yR("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yR(e,t,n=1/0,r=1/0,a=iZ()){const[o,i]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const s=cZ(e,t);if(!s.startsWith("[object "))return s;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 s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return yR("",l.toJSON(),c-1,r,a)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const d=xY(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=r){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=yR(e,t,c-1,r,a),f++}return i(t),u}function cZ(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(yY(t))return"[VueViewModel]";if(gY(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Cu(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=lZ(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function lZ(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function fZ(e,t=[]){return[e,t]}function uZ(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function dZ(e,t,n,r){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:sZ(r)},...a&&{trace:Uc({...a})}}}function _R(e,t,n,r=0){return new wu(((a,o)=>{const i=e[r];if(null===t||"function"!=typeof i)a(t);else{const s=i({...t},n);nT&&i.id&&null===s&&as.log(`Event processor "${i.id}" dropped event`),iT(s)?s.then((t=>_R(e,t,n,r+1).then(a))).then(null,o):_R(e,s,n,r+1).then(a).then(null,o)}}))}let vb,eP,bb;function pZ(e){const t=Mo._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return bb&&n.length===eP||(eP=n.length,bb=n.reduce(((n,r)=>{vb||(vb={});const a=vb[r];if(a)n[a[0]]=a[1];else{const a=e(r);for(let e=a.length-1;e>=0;e--){const o=a[e],i=o&&o.filename,s=t[r];if(i&&s){n[i]=s,vb[r]=[i,s];break}}}return n}),{})),bb}function hZ(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:o}=t;mZ(e,t),r&&_Z(e,r),vZ(e,n),gZ(e,a),yZ(e,o)}function tP(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:f,propagationContext:d,transactionName:p,span:h}=t;wb(e,"extra",n),wb(e,"tags",r),wb(e,"user",a),wb(e,"contexts",o),e.sdkProcessingMetadata=Fk(e.sdkProcessingMetadata,s,2),i&&(e.level=i),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function wb(e,t,n){e[t]=Fk(e[t],n,1)}function mZ(e,t){const{extra:n,tags:r,user:a,contexts:o,level:i,transactionName:s}=t,c=Uc(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Uc(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Uc(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});const f=Uc(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),i&&(e.level=i),s&&"transaction"!==e.type&&(e.transaction=s)}function gZ(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function yZ(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function _Z(e,t){e.contexts={trace:ZY(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:j7(t),...e.sdkProcessingMetadata};const n=__(fT(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}function vZ(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function bZ(e,t,n,r,a,o){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ku(),timestamp:t.timestamp||jk()},l=n.integrations||e.integrations.map((e=>e.name));wZ(c,e),SZ(c,l),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&kZ(c,e.stackParser);const u=CZ(r,n.captureContext);n.mechanism&&M7(c,n.mechanism);const f=a?a.getEventProcessors():[],d=DY().getScopeData();if(o){tP(d,o.getScopeData())}if(u){tP(d,u.getScopeData())}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),hZ(c,d);return _R([...f,...d.eventProcessors],c,n).then((e=>(e&&xZ(e),"number"==typeof i&&i>0?EZ(e,i,s):e)))}function wZ(e,t){const{environment:n,release:r,dist:a,maxValueLength:o=250}=t;e.environment=e.environment||n||L7,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=W3(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=W3(i.value,o));const s=e.request;s&&s.url&&(s.url=W3(s.url,o))}function kZ(e,t){const n=pZ(t);try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch{}}function xZ(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{}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.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function SZ(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function EZ(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:yu(e.data,t,n)}})))},...e.user&&{user:yu(e.user,t,n)},...e.contexts&&{contexts:yu(e.contexts,t,n)},...e.extra&&{extra:yu(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=yu(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:yu(e.data,t,n)}})))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=yu(e.contexts.flags,3,n)),r}function CZ(e,t){if(!t)return e;const n=e?e.clone():new Sm;return n.update(t),n}function uT(e,t){return n0().captureException(e,void 0)}function RZ(e,t){const n={captureContext:t};return n0().captureMessage(e,void 0,n)}function AZ(e,t){ov().setContext(e,t)}function TZ(e,t){ov().setExtra(e,t)}function IZ(e){ov().addEventProcessor(e)}const $Z=6e4;function PZ(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?$Z:r-t}function OZ(e,t){return e[t]||e.all||0}function zZ(e,t,n=Date.now()){return OZ(e,t)>n}function MZ(e,{statusCode:t,headers:n},r=Date.now()){const a={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else i?a.all=r+PZ(i,r):429===t&&(a.all=r+6e4);return a}function NZ(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return LZ(e,n)||DZ(e,r)}function DZ(e,t){return!!t&&nP(e)===nP(t)}function LZ(e,t){return!!t&&e.includes(t.host)}function nP(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const jZ=100;function FZ(e,t){const n=cf(),r=ov();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=jZ}=n.getOptions();if(o<=0)return;const i={timestamp:jk(),...e},s=a?rT((()=>a(i,t))):i;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function BZ(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const UZ="Dedupe",VZ=()=>{let e;return{name:UZ,processEvent(t){if(t.type)return t;try{if(WZ(t,e))return nT&&as.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},qZ=VZ;function WZ(e,t){return!!t&&!(!HZ(e,t)&&!GZ(e,t))}function HZ(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!B7(e,t)||!F7(e,t))}function GZ(e,t){const n=rP(t),r=rP(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&B7(e,t)&&F7(e,t))}function F7(e,t){let n=U$(e),r=U$(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function B7(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{return!1}}function rP(e){return e.exception&&e.exception.values&&e.exception.values[0]}function KZ(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function QZ(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function YZ(){return!QZ()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function aP(){return typeof window<"u"&&(!YZ()||ZZ())}function ZZ(){const e=Mo.process;return!!e&&"renderer"===e.type}const kb=Mo;function XZ(){const e=kb.chrome,t=e&&e.app&&e.app.runtime,n="history"in kb&&!!kb.history.pushState&&!!kb.history.replaceState;return!t&&n}function JZ(e,t){return e??t()}function dw(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const Py=Mo;function eX(){setTimeout((()=>{}))}function F1(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(P7(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>F1(e,t)));return e.apply(this,r)}catch(e){throw eX(),LY((r=>{r.addEventProcessor((e=>(t.mechanism&&(AY(e),M7(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),uT(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}$7(n,e),y_(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}const U7=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,tX=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",sv=(e,t,n,r)=>{let a,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(a||0),(o||void 0===a)&&(a=t.value,t.delta=o,t.rating=tX(t.value,n),e(t)))}},nn=Mo,nX=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,V7=(e=!0)=>{const t=nn.performance&&nn.performance.getEntriesByType&&nn.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},dT=()=>{const e=V7();return e&&e.activationStart||0},iv=(e,t)=>{const n=V7();let r="navigate";return n&&(nn.document&&nn.document.prerendering||dT()>0?r="prerender":nn.document&&nn.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:nX(),navigationType:r}},Nm=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},cv=e=>{const t=t=>{("pagehide"===t.type||nn.document&&"hidden"===nn.document.visibilityState)&&e(t)};nn.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},Uk=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Qy=-1;const rX=()=>"hidden"!==nn.document.visibilityState||nn.document.prerendering?1/0:0,zw=e=>{"hidden"===nn.document.visibilityState&&Qy>-1&&(Qy="visibilitychange"===e.type?e.timeStamp:0,oX())},aX=()=>{addEventListener("visibilitychange",zw,!0),addEventListener("prerenderingchange",zw,!0)},oX=()=>{removeEventListener("visibilitychange",zw,!0),removeEventListener("prerenderingchange",zw,!0)},pT=()=>(nn.document&&Qy<0&&(Qy=rX(),aX()),{get firstHiddenTime(){return Qy}}),Vk=e=>{nn.document&&nn.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},sX=[1800,3e3],iX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("FCP");let a;const o=Nm("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-dT(),0),r.entries.push(e),a(!0)))}))}));o&&(a=sv(e,r,sX,t.reportAllChanges))}))},cX=[.1,.25],lX=(e,t={})=>{iX(Uk((()=>{const n=iv("CLS",0);let r,a=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=o[0],n=o[o.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e])}})),a>n.value&&(n.value=a,n.entries=o,r())},s=Nm("layout-shift",i);s&&(r=sv(e,n,cX,t.reportAllChanges),cv((()=>{i(s.takeRecords()),r(!0)})),setTimeout(r,0))})))},fX=[100,300],uX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("FID");let a;const o=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},i=e=>{e.forEach(o)},s=Nm("first-input",i);a=sv(e,r,fX,t.reportAllChanges),s&&cv(Uk((()=>{i(s.takeRecords()),s.disconnect()})))}))};let q7=0,H3=1/0,xb=0;const dX=e=>{e.forEach((e=>{e.interactionId&&(H3=Math.min(H3,e.interactionId),xb=Math.max(xb,e.interactionId),q7=xb?(xb-H3)/7+1:0)}))};let vR;const pX=()=>vR?q7:performance.interactionCount||0,hX=()=>{"interactionCount"in performance||vR||(vR=Nm("event",dX,{type:"event",buffered:!0,durationThreshold:0}))},_u=[],G3=new Map,mX=40;let gX=0;const yX=()=>pX()-gX,_X=()=>{const e=Math.min(_u.length-1,Math.floor(yX()/50));return _u[e]},K3=10,vX=[],bX=e=>{if(vX.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=_u[_u.length-1],n=G3.get(e.interactionId);if(n||_u.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};G3.set(t.id,t),_u.push(t)}_u.sort(((e,t)=>t.latency-e.latency)),_u.length>10&&_u.splice(10).forEach((e=>G3.delete(e.id)))}},W7=e=>{const t=nn.requestIdleCallback||nn.setTimeout;let n=-1;return e=Uk(e),nn.document&&"hidden"===nn.document.visibilityState?e():(n=t(e),cv(e)),n},wX=[200,500],kX=(e,t={})=>{"PerformanceEventTiming"in nn&&"interactionId"in PerformanceEventTiming.prototype&&Vk((()=>{hX();const n=iv("INP");let r;const a=e=>{W7((()=>{e.forEach(bX);const t=_X();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},o=Nm("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=sv(e,n,wX,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),cv((()=>{a(o.takeRecords()),r(!0)})))}))},xX=[2500,4e3],oP={},SX=(e,t={})=>{Vk((()=>{const n=pT(),r=iv("LCP");let a;const o=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-dT(),0),r.entries=[e],a())}))},i=Nm("largest-contentful-paint",o);if(i){a=sv(e,r,xX,t.reportAllChanges);const n=Uk((()=>{oP[r.id]||(o(i.takeRecords()),i.disconnect(),oP[r.id]=!0,a(!0))}));["keydown","click"].forEach((e=>{nn.document&&addEventListener(e,(()=>W7(n)),{once:!0,capture:!0})})),cv(n)}}))},Yy={},Mw={};let H7,G7,K7,Q7;function EX(e,t=!1){return qk("cls",e,IX,H7,t)}function CX(e,t=!1){return qk("lcp",e,PX,K7,t)}function RX(e){return qk("fid",e,$X,G7)}function AX(e){return qk("inp",e,OX,Q7)}function TX(e,t){return Y7(e,t),Mw[e]||(zX(e),Mw[e]=!0),Z7(e,t)}function lv(e,t){const n=Yy[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){U7&&as.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Cu(r)}\nError:`,t)}}function IX(){return lX((e=>{lv("cls",{metric:e}),H7=e}),{reportAllChanges:!0})}function $X(){return uX((e=>{lv("fid",{metric:e}),G7=e}))}function PX(){return SX((e=>{lv("lcp",{metric:e}),K7=e}),{reportAllChanges:!0})}function OX(){return kX((e=>{lv("inp",{metric:e}),Q7=e}))}function qk(e,t,n,r,a=!1){let o;return Y7(e,t),Mw[e]||(o=n(),Mw[e]=!0),r&&t({metric:r}),Z7(e,t,a?o:void 0)}function zX(e){const t={};"event"===e&&(t.durationThreshold=0),Nm(e,(t=>{lv(e,{entries:t})}),t)}function Y7(e,t){Yy[e]=Yy[e]||[],Yy[e].push(t)}function Z7(e,t,n){return()=>{n&&n();const r=Yy[e];if(!r)return;const a=r.indexOf(t);-1!==a&&r.splice(a,1)}}const MX=1e3;let sP,bR,wR,Sb;function NX(e){R7("dom",e),A7("dom",DX)}function DX(){if(!nn.document)return;const e=dR.bind(null,"dom"),t=iP(e,!0);nn.document.addEventListener("click",t,!1),nn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=nn[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Hi(r,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=iP(e);o.handler=r,t.call(this,n,r,a)}o.refCount++}catch{}return t.call(this,n,r,a)}})),Hi(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}})))}))}function LX(e){if(e.type!==bR)return!1;try{if(!e.target||e.target._sentryId!==wR)return!1}catch{}return!0}function jX(e,t){return"keypress"===e&&(!t||!t.tagName||!("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable))}function iP(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=FX(n);if(jX(n.type,r))return;y_(n,"_sentryCaptured",!0),r&&!r._sentryId&&y_(r,"_sentryId",ku());const a="keypress"===n.type?"input":n.type;LX(n)||(e({event:n,name:a,global:t}),bR=n.type,wR=r?r._sentryId:void 0),clearTimeout(sP),sP=nn.setTimeout((()=>{wR=void 0,bR=void 0}),MX)}}function FX(e){try{return e.target}catch{return null}}function BX(e){const t="history";R7(t,e),A7(t,UX)}function UX(){if(!XZ())return;const e=nn.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Sb,t=String(n);Sb=t,dR("history",{from:e,to:t})}return e.apply(this,t)}}nn.onpopstate=function(...t){const n=nn.location.href,r=Sb;if(Sb=n,dR("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},Hi(nn.history,"pushState",t),Hi(nn.history,"replaceState",t)}const Q3={};function VX(e){const t=Q3[e];if(t)return t;let n=nn[e];if(KZ(n))return Q3[e]=n.bind(nn);const r=nn.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){U7&&as.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Q3[e]=n.bind(nn))}function B1(...e){return VX("setTimeout")(...e)}const qX="__sentry_xhr_v3__",WX=["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"],HX="BrowserApiErrors",GX=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:HX,setupOnce(){t.setTimeout&&Hi(Py,"setTimeout",cP),t.setInterval&&Hi(Py,"setInterval",cP),t.requestAnimationFrame&&Hi(Py,"requestAnimationFrame",QX),t.XMLHttpRequest&&"XMLHttpRequest"in Py&&Hi(XMLHttpRequest.prototype,"send",YX);const e=t.eventTarget;e&&(Array.isArray(e)?e:WX).forEach(ZX)}}},KX=GX;function cP(e){return function(...t){const n=t[0];return t[0]=F1(n,{mechanism:{data:{function:Cu(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function QX(e){return function(t){return e.apply(this,[F1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Cu(e)},handled:!1,type:"instrument"}})])}}function YX(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Hi(n,e,(function(t){const n={mechanism:{data:{function:e,handler:Cu(t)},handled:!1,type:"instrument"}},r=P7(t);return r&&(n.mechanism.data.handler=Cu(r)),F1(t,n)}))})),e.apply(this,t)}}function ZX(e){const t=Py[e],n=t&&t.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Hi(n,"addEventListener",(function(t){return function(n,r,a){try{XX(r)&&(r.handleEvent=F1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Cu(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,F1(r,{mechanism:{data:{function:"addEventListener",handler:Cu(r),target:e},handled:!1,type:"instrument"}}),a])}})),Hi(n,"removeEventListener",(function(e){return function(t,n,r){try{const a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch{}return e.call(this,t,n,r)}})))}function XX(e){return"function"==typeof e.handleEvent}const tr=Mo,hT="sentryReplaySession",JX="replay_event",mT="Unable to send Replay",eJ=3e5,tJ=9e5,nJ=5e3,rJ=5500,aJ=6e4,oJ=5e3,sJ=3,lP=15e4,Eb=5e3,iJ=3e3,cJ=300,gT=2e7,lJ=4999,fJ=15e3,fP=36e5;function kR(e,t){return e??t()}function v_(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}var Aa;function uJ(e){return e.nodeType===e.ELEMENT_NODE}function Zy(e){const t=v_([e,"optionalAccess",e=>e.host]);return v_([t,"optionalAccess",e=>e.shadowRoot])===e}function Xy(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function dJ(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function pJ(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Nw(e){try{const t=e.rules||e.cssRules;return t?dJ(Array.from(t,X7).join("")):null}catch{return null}}function hJ(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,a=r[n],o=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function X7(e){let t;if(gJ(e))try{t=Nw(e.styleSheet)||pJ(e)}catch{}else if(yJ(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=hJ(e)),n&&(t=mJ(t)),n||r)return t}return t||e.cssText}function mJ(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function gJ(e){return"styleSheet"in e}function yJ(e){return"selectorText"in e}!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"}(Aa||(Aa={}));class J7{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return kR(v_([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){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 _J(){return new J7}function Wk({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function b_({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function U1(e){return e.toLowerCase()}function xR(e){return e.toUpperCase()}const uP="__rrweb_original__";function vJ(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 a=t.getImageData,o=uP in a?a[uP]:a;if(new Uint32Array(o.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}function yT(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?U1(t):null}function Dw(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function eL(e,t){let n;try{n=new URL(e,kR(t,(()=>window.location.href)))}catch{return null}return kR(v_([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const dP={};function tL(e){const t=dP[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return dP[e]=r.bind(window)}function SR(...e){return tL("setTimeout")(...e)}function nL(...e){return tL("clearTimeout")(...e)}function rL(e){try{return e.contentDocument}catch{}}let bJ=1;const wJ=new RegExp("[^a-z0-9-_:]"),w_=-2;function _T(){return bJ++}function kJ(e){if(e instanceof HTMLFormElement)return"form";const t=U1(e.tagName);return wJ.test(t)?"div":t}function xJ(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}let i1,pP;const SJ=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,EJ=/^(?:[a-z+]+:)?\/\//i,CJ=/^www\..*/i,RJ=/^(data:)([^,]*),(.*)/i;function Lw(e,t){return(e||"").replace(SJ,((e,n,r,a,o,i)=>{const s=r||o||i,c=n||a||"";if(!s)return e;if(EJ.test(s)||CJ.test(s))return`url(${c}${s}${c})`;if(RJ.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${xJ(t)+s}${c})`;const l=t.split("/"),u=s.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const AJ=/^[^ \t\n\r\u000c]+/,TJ=/^[, \t\n\r\u000c]+/;function IJ(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}const a=[];for(;r(TJ),!(n>=t.length);){let o=r(AJ);if(","===o.slice(-1))o=x1(e,o.substring(0,o.length-1)),a.push(o);else{let r="";o=x1(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){a.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,a.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return a.join(", ")}const hP=new WeakMap;function x1(e,t){return t&&""!==t.trim()?Hk(e,t):t}function $J(e){return!("svg"!==e.tagName&&!e.ownerSVGElement)}function Hk(e,t){let n=hP.get(e);if(n||(n=e.createElement("a"),hP.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function aL(e,t,n,r,a,o){return r&&("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===t||"td"===t||"th"===t)?x1(e,r):"srcset"===n?IJ(e,r):"style"===n?Lw(r,Hk(e)):"object"===t&&"data"===n?x1(e,r):"function"==typeof o?o(n,r,a):r)}function oL(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function PJ(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{}return!1}function OJ(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function um(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:um(e.parentNode,t,n,r+1)}function S1(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(OJ(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function V1(e,t,n,r,a,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,c=-1;if(o){if(c=um(i,S1(r,a)),c<0)return!0;s=um(i,S1(t,n),c>=0?c:1/0)}else{if(s=um(i,S1(t,n)),s<0)return!1;c=um(i,S1(r,a),s>=0?s:1/0)}return s>=0?!(c>=0)||s<=c:!(c>=0)&&!!o}catch{}return!!o}function zJ(e,t,n){const r=e.contentWindow;if(!r)return;let a,o=!1;try{a=r.document.readyState}catch{return}if("complete"!==a){const r=SR((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{nL(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return SR(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function MJ(e,t,n){let r,a=!1;try{r=e.sheet}catch{return}if(r)return;const o=SR((()=>{a||(t(),a=!0)}),n);e.addEventListener("load",(()=>{nL(o),a=!0,t()}))}function NJ(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1}=t,k=DJ(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Aa.Document,childNodes:[],compatMode:e.compatMode}:{type:Aa.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Aa.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return jJ(e,{doc:n,blockClass:a,blockSelector:o,unblockSelector:i,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d});case e.TEXT_NODE:return LJ(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:k});case e.CDATA_SECTION_NODE:return{type:Aa.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:Aa.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function DJ(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}function LJ(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,f=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const p="STYLE"===f||void 0,h="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||v_([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Nw(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=Lw(d,Hk(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=V1(e,r,o,a,i,n);if(!p&&!h&&!m&&d&&y&&(d=s?s(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(c.textarea||y)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=b_({isMasked:V1(e,r,o,a,i,Wk({type:null,tagName:f,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:Aa.Text,textContent:d||"",isStyle:p,rootId:u}}function jJ(e,t){const{doc:n,blockClass:r,blockSelector:a,unblockSelector:o,inlineStylesheet:i,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:_}=t,w=PJ(e,r,a,o),k=kJ(e);let x={};const S=e.attributes.length;for(let t=0;t<S;t++){const r=e.attributes[t];r.name&&!oL(k,r.name,r.value)&&(x[r.name]=aL(n,k,U1(r.name),r.value,e,c))}if("link"===k&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Nw(t)),r&&(x.rel=null,x.href=null,x.crossorigin=null,x._cssText=Lw(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Nw(e.sheet);t&&(x._cssText=Lw(t,Hk(n)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=yT(t),r=Dw(t,xR(k),n),a=t.checked;if("submit"!==n&&"button"!==n&&r){const e=V1(t,g,b,v,_,Wk({type:n,tagName:xR(k),maskInputOptions:s}));x.value=b_({isMasked:e,element:t,value:r,maskInputFn:l})}a&&(x.checked=a)}if("option"===k&&(e.selected&&!s.select?x.selected=!0:delete x.selected),"canvas"===k&&d)if("2d"===e.__context)vJ(e)||(x.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(x.rr_dataURL=t)}if("img"===k&&f){i1||(i1=n.createElement("canvas"),pP=i1.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",a=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{i1.width=t.naturalWidth,i1.height=t.naturalHeight,pP.drawImage(t,0,0),x.rr_dataURL=i1.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(a?x.crossOrigin=a:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if(("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)),w){const{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"===k&&!p(x.src)&&(!w&&!rL(e)&&(x.rr_src=x.src),delete x.src);try{customElements.get(k)&&(E=!0)}catch{}return{type:Aa.Element,tagName:k,attributes:x,childNodes:[],isSVG:$J(e)||void 0,needBlock:w,rootId:m,isCustom:E}}function er(e){return null==e?"":e.toLowerCase()}function FJ(e,t){if(t.comment&&e.type===Aa.Comment)return!0;if(e.type===Aa.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eL(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(er(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===er(e.attributes.name)||"icon"===er(e.attributes.rel)||"apple-touch-icon"===er(e.attributes.rel)||"shortcut icon"===er(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&er(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(er(e.attributes.property).match(/^(og|twitter|fb):/)||er(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===er(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===er(e.attributes.name)||"googlebot"===er(e.attributes.name)||"bingbot"===er(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===er(e.attributes.name)||"generator"===er(e.attributes.name)||"framework"===er(e.attributes.name)||"publisher"===er(e.attributes.name)||"progid"===er(e.attributes.name)||er(e.attributes.property).match(/^article:/)||er(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===er(e.attributes.name)||"yandex-verification"===er(e.attributes.name)||"csrf-token"===er(e.attributes.name)||"p:domain_verify"===er(e.attributes.name)||"verify-v1"===er(e.attributes.name)||"verification"===er(e.attributes.name)||"shopify-checkout-api-token"===er(e.attributes.name)))return!0}}return!1}function E1(e,t){const{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:O=!1}=t;let{preserveWhiteSpace:z=!0}=t;const I=NJ(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:O});if(!I)return console.warn(e,"not serialized"),null;let T;T=r.hasNode(e)?r.getId(e):FJ(I,v)||!z&&I.type===Aa.Text&&!I.isStyle&&!I.textContent.replace(/^\s+|\s+$/gm,"").length?-2:_T();const R=Object.assign(I,{id:T});if(r.add(e,R),-2===T)return null;k&&k(e);let P=!d;if(R.type===Aa.Element){P=P&&!R.needBlock,delete R.needBlock;const t=e.shadowRoot;t&&Xy(t)&&(R.isShadowHost=!0)}if((R.type===Aa.Document||R.type===Aa.Element)&&P){v.headWhitespace&&R.type===Aa.Element&&"head"===R.tagName&&(z=!1);const t={doc:n,mirror:r,blockClass:a,blockSelector:o,maskAllText:s,unblockSelector:i,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=E1(n,t);e&&R.childNodes.push(e)}if(uJ(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=E1(n,t);r&&(Xy(e.shadowRoot)&&(r.isShadow=!0),R.childNodes.push(r))}}return e.parentNode&&Zy(e.parentNode)&&Xy(e.parentNode)&&(R.isShadow=!0),R.type===Aa.Element&&"iframe"===R.tagName&&zJ(e,(()=>{const t=rL(e);if(t&&x){const n=E1(t,{doc:t,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});n&&x(e,n)}}),S),R.type===Aa.Element&&"link"===R.tagName&&"string"==typeof R.attributes.rel&&("stylesheet"===R.attributes.rel||"preload"===R.attributes.rel&&"string"==typeof R.attributes.href&&"css"===eL(R.attributes.href))&&MJ(e,(()=>{if(E){const t=E1(e,{doc:n,mirror:r,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:z,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:C});t&&E(e,t)}}),A),R}function BJ(e,t){const{mirror:n=new J7,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=t;return E1(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:f,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:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:d,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:S,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}function hp(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function rs(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const v1="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let mP={map:{},getId:()=>(console.error(v1),-1),getNode:()=>(console.error(v1),null),removeNodeFromMap(){console.error(v1)},has:()=>(console.error(v1),!1),reset(){console.error(v1)}};function k_(e,t,n={}){let r=null,a=0;return function(...o){const i=Date.now();!a&&!1===n.leading&&(a=i);const s=t-(i-a),c=this;s<=0||s>t?(r&&(KJ(r),r=null),a=i,e.apply(c,o)):!r&&!1!==n.trailing&&(r=Gk((()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),s))}}function sL(e,t,n,r,a=window){const o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){Gk((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>sL(e,t,o||{},!0)}function vT(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(mP=new Proxy(mP,{get:(e,t,n)=>("map"===t&&console.error(v1),Reflect.get(e,t,n))}));let jw=Date.now;function iL(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:hp([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:hp([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||hp([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function cL(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lL(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function fL(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ai(e,t,n,r,a){if(!e)return!1;const o=fL(e);if(!o)return!1;const i=S1(t,n);if(!a){const e=r&&o.matches(r);return i(o)&&!e}const s=um(o,i);let c=-1;return!(s<0)&&(r&&(c=um(o,S1(null,r))),s>-1&&c<0||s<c)}function UJ(e,t){return-1!==t.getId(e)}function Y3(e,t){return-2===t.getId(e)}function uL(e,t){if(Zy(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||uL(e.parentNode,t))}function ER(e){return!!e.changedTouches}function VJ(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})}function dL(e,t){return!("IFRAME"!==e.nodeName||!t.getMeta(e))}function pL(e,t){return!("LINK"!==e.nodeName||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||"stylesheet"!==e.getAttribute("rel")||!t.getMeta(e))}function CR(e){return!!hp([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(jw=()=>(new Date).getTime());class qJ{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return JZ(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=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 hL(e){let t=null;return hp([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 WJ(e){let t,n=e;for(;t=hL(n);)n=t;return n}function HJ(e){const t=e.ownerDocument;if(!t)return!1;const n=WJ(e);return t.contains(n)}function mL(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||HJ(e))}const gP={};function bT(e){const t=gP[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return gP[e]=r.bind(window)}function GJ(...e){return bT("requestAnimationFrame")(...e)}function Gk(...e){return bT("setTimeout")(...e)}function KJ(...e){return bT("clearTimeout")(...e)}var yP,_P,Ht=(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))(Ht||{}),Mt=(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))(Mt||{}),es=(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))(es||{}),hu=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(hu||{});function wT(e){try{return e.contentDocument}catch{}}function QJ(e){try{return e.contentWindow}catch{}}function YJ(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}function vP(e){return"__ln"in e}!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"}(yP||(yP={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(_P||(_P={}));class ZJ{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=YJ([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&vP(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&&vP(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 bP=(e,t)=>`${e}@${t}`;class XJ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new ZJ,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!mL(a))return;const o=Zy(a.parentNode)?this.mirror.getId(hL(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===o||-1===i)return n.addNode(a);const s=E1(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{dL(e,this.mirror)&&!ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),pL(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),CR(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)wP(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(const e of this.addedSet)!kP(this.droppedSet,e)&&!wP(this.removes,e,this.mirror)||kP(this.movedSet,e)?a(e):this.droppedSet.add(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}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}o=e.previous,n.removeNode(e.value),a(e.value)}const i={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};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Y3(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;!ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:V1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,fL(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=yT(t),a=t.tagName;r=Dw(t,a,n);const o=Wk({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=b_({isMasked:V1(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(wT(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!oL(t.tagName,n)&&(a.attributes[n]=aL(this.doc,U1(t.tagName),U1(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?a.styleDiff[e]=""===o?r:[r,o]:a._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(ai(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=Zy(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ai(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Y3(t,this.mirror)||!UJ(t,this.mirror)||(this.addedSet.has(t)?(RR(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||uL(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[bP(n,r)]?RR(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Zy(e.target)||!Xy(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(Y3(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[bP(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ai(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),CR(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 RR(e,t){e.delete(t),t.childNodes.forEach((t=>RR(e,t)))}function wP(e,t,n){return 0!==e.length&&JJ(e,t,n)}function JJ(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}function kP(e,t){return 0!==e.size&&gL(e,t)}function gL(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||gL(e,n))}let Jy;function eee(e){Jy=e}function tee(){Jy=void 0}const pn=e=>Jy?(...t)=>{try{return e(...t)}catch(e){if(Jy&&!0===Jy(e))return()=>{};throw e}}:e;function jc(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}const C1=[];function fv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function yL(e,t){const n=new XJ;C1.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const a=jc([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);const o=new r(pn((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function nee({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,s=[];const c=k_(pn((t=>{const n=Date.now()-i;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],i=null})),o),l=pn(k_(pn((e=>{const t=fv(e),{clientX:n,clientY:a}=ER(e)?e.changedTouches[0]:e;i||(i=jw()),s.push({x:n,y:a,id:r.getId(t),timeOffset:jw()-i}),c(typeof DragEvent<"u"&&e instanceof DragEvent?Mt.Drag:e instanceof MouseEvent?Mt.MouseMove:Mt.TouchMove)})),a,{trailing:!1})),u=[rs("mousemove",l,n),rs("touchmove",l,n),rs("drag",l,n)];return pn((()=>{u.forEach((e=>e()))}))}function ree({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let l=null;return Object.keys(es).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((i=>{let s=U1(i);const u=(t=>i=>{const s=fv(i);if(ai(s,r,a,o,!0))return;let c=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=hu.Mouse;break;case"touch":c=hu.Touch;break;case"pen":c=hu.Pen}c===hu.Touch?es[t]===es.MouseDown?u="TouchStart":es[t]===es.MouseUp&&(u="TouchEnd"):hu.Pen}else ER(i)&&(c=hu.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===hu.Touch||u.startsWith("Mouse")&&c===hu.Mouse)&&(c=null)):es[t]===es.Click&&(c=l,l=null);const f=ER(i)?i.changedTouches[0]:i;if(!f)return;const d=n.getId(s),{clientX:p,clientY:h}=f;pn(e)({type:es[u],id:d,x:p,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(es[i]){case es.MouseDown:case es.MouseUp:s=s.replace("mouse","pointer");break;case es.TouchStart:case es.TouchEnd:return}c.push(rs(s,u,t))})),pn((()=>{c.forEach((e=>e()))}))}function _L({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,sampling:i}){return rs("scroll",pn(k_(pn((i=>{const s=fv(i);if(!s||ai(s,r,a,o,!0))return;const c=n.getId(s);if(s===t&&t.defaultView){const n=iL(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})})),i.scroll||100)),t)}function aee({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return rs("resize",pn(k_(pn((()=>{const t=cL(),a=lL();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)})),200)),t)}const oee=["INPUT","TEXTAREA","SELECT"],xP=new WeakMap;function see({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let n=fv(e);const u=e.isTrusted,y=n&&xR(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||oee.indexOf(y)<0||ai(n,r,a,o,!0))return;const v=n;if(v.classList.contains(i)||s&&v.matches(s))return;const b=yT(n);let _=Dw(v,y,b),w=!1;const k=Wk({maskInputOptions:c,tagName:y,type:b}),x=V1(n,d,h,p,m,k);("radio"===b||"checkbox"===b)&&(w=n.checked),_=b_({isMasked:x,element:n,value:_,maskInputFn:l}),g(n,f?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const S=n.name;"radio"===b&&S&&w&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((e=>{if(e!==n){const t=b_({isMasked:x,element:e,value:Dw(e,y,b),maskInputFn:l});g(e,f?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function g(t,r){const a=xP.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){xP.set(t,r);const a=n.getId(t);pn(e)({...r,id:a})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>rs(e,pn(y),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[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(...w.map((e=>sL(e[0],e[1],{set(){pn(y)({target:this,isTrusted:!1})}},!1,b)))),pn((()=>{v.forEach((e=>e()))}))}function Fw(e){return function(e,t){if(Cb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Cb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Cb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Cb("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 mp(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function iee({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=mp(a,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:s}]}),r.apply(a,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:i}]}),r.apply(a,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replace:i}),r.apply(a,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,replaceSync:i}),r.apply(a,o)}))}));const c={};Rb("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Rb("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Rb("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Rb("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,a])=>{l[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(l[r].insertRule,{apply:pn(((r,a,o)=>{const[i,s]=o,{id:c,styleId:l}=mp(a.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:i,index:[...Fw(a),s||0]}]}),r.apply(a,o)}))}),a.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:pn(((r,a,o)=>{const[i]=o,{id:s,styleId:c}=mp(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||c&&-1!==c)&&e({id:s,styleId:c,removes:[{index:[...Fw(a),i]}]}),r.apply(a,o)}))})})),pn((()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}function vL({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const a="#document"===n.nodeName?jc([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):jc([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=jc([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(jc([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return jc([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=jc([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),pn((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function cee({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pn(((a,i,s)=>{const[c,l,u]=s;if(n.has(c))return o.apply(i,[c,l,u]);const{id:f,styleId:d}=mp(jc([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&e({id:f,styleId:d,set:{property:c,value:l,priority:u},index:Fw(i.parentRule)}),a.apply(i,s)}))});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pn(((a,o,s)=>{const[c]=s;if(n.has(c))return i.apply(o,[c]);const{id:l,styleId:u}=mp(jc([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Fw(o.parentRule)}),a.apply(o,s)}))}),pn((()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i}))}function lee({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:o,doc:i}){const s=pn((i=>k_(pn((o=>{const s=fv(o);if(!s||ai(s,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:f}=s;e({type:i,id:a.getId(s),currentTime:c,volume:l,muted:u,playbackRate:f})})),o.media||500))),c=[rs("play",s(0),i),rs("pause",s(1),i),rs("seeked",s(2),i),rs("volumechange",s(3),i),rs("ratechange",s(4),i)];return pn((()=>{c.forEach((e=>e()))}))}function fee({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=vT(t.fonts,"add",(function(t){return function(n){return Gk(pn((()=>{const t=a.get(n);t&&(e(t),a.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),pn((()=>{r.forEach((e=>e()))}))}function uee(e){const{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:o,selectionCb:i}=e;let s=!0;const c=pn((()=>{const e=t.getSelection();if(!e||s&&jc([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const i=e.getRangeAt(t),{startContainer:s,startOffset:l,endContainer:u,endOffset:f}=i;ai(s,r,a,o,!0)||ai(u,r,a,o,!0)||c.push({start:n.getId(s),startOffset:l,end:n.getId(u),endOffset:f})}i({ranges:c})}));return c(),rs("selectionchange",c)}function dee({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?vT(n.customElements,"define",(function(e){return function(n,r,a){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,a])}})):()=>{}}function pee(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=yL(e,e.doc));const a=nee(e),o=ree(e),i=_L(e),s=aee(e,{win:n}),c=see(e),l=lee(e);let u=()=>{},f=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=iee(e,{win:n}),f=vL(e,e.doc),d=cee(e,{win:n}),e.collectFonts&&(p=fee(e)));const h=uee(e),m=dee(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,n,t.options));return pn((()=>{C1.forEach((e=>e.reset())),jc([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),o(),i(),s(),c(),l(),u(),f(),d(),p(),h(),m(),y.forEach((e=>e()))}))}function Cb(e){return typeof window[e]<"u"}function Rb(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class AR{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const a=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}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;return r.get(t)||-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 SP(e){let t,n=e[0],r=1;for(;r<e.length;){const a=e[r],o=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=o(n)):("call"===a||"optionalCall"===a)&&(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}class hee{constructor(){this.crossOriginIframeMirror=new AR(_T),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class mee{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new AR(_T),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new AR(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}),SP([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=wT(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!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 Ht.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:Ht.IncrementalSnapshot,data:{source:Mt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ht.Meta:case Ht.Load:case Ht.DomContentLoaded:return!1;case Ht.Plugin:return t;case Ht.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Ht.IncrementalSnapshot:switch(t.data.source){case Mt.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 Mt.Drag:case Mt.TouchMove:case Mt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Mt.ViewportResize:return!1;case Mt.MediaInteraction:case Mt.MouseInteraction:case Mt.Scroll:case Mt.CanvasMutation:case Mt.Input:return this.replaceIds(t.data,e,["id"]),t;case Mt.StyleSheetRule:case Mt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Mt.Font:return t;case Mt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Mt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),SP([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 a of r)!Array.isArray(t[a])&&"number"!=typeof t[a]||(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));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!==Aa.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class gee{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class yee{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(!Xy(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=yL({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(_L({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Gk((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(vL({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=wT(e),n=QJ(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(vT(e.prototype,"attachShadow",(function(e){return function(r){const a=e.call(this,r);return this.shadowRoot&&mL(this)&&n.addShadowRoot(this.shadowRoot,t),a}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class EP{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class _ee{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new qJ,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:X7(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 vee{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,GJ((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Pr,Bw;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=dw([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Nc=_J();function xu(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:k,sampling:x={},dataURLOptions:S={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:C=!1,recordCrossOriginIframes:O=!1,recordAfter:z=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:I=!1,collectFonts:T=!1,inlineImages:R=!1,plugins:P,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:M,onMutation:D,getCanvasManager:L}=e;eee(M);const q=!O||window.parent===window;let V=!1;if(!q)try{window.parent.document&&(V=!1)}catch{V=!0}if(q&&!t)throw new Error("emit function is required");if(!q&&!V)return()=>{};void 0!==E&&void 0===x.mousemove&&(x.mousemove=E),Nc.reset();const F=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},B=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};VJ();let U,$=0;const W=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!V&&(e=k(e)),e};Pr=(e,a)=>{const o=e;if(o.timestamp=jw(),dw([C1,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&o.type!==Ht.FullSnapshot&&!(o.type===Ht.IncrementalSnapshot&&o.data.source===Mt.Mutation)&&C1.forEach((e=>e.unfreeze())),q)dw([t,"optionalCall",e=>e(W(o),a)]);else if(V){const e={type:"rrweb",event:W(o),origin:window.location.origin,isCheckout:a};window.parent.postMessage(e,"*")}if(o.type===Ht.FullSnapshot)U=o,$=0;else if(o.type===Ht.IncrementalSnapshot){if(o.data.source===Mt.Mutation&&o.data.isAttachIframe)return;$++;const e=r&&$>=r,t=n&&U&&o.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const H=e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Mutation,...e}})},G=e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Scroll,...e}}),Q=e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CanvasMutation,...e}}),K=new _ee({mutationCb:H,adoptedStyleSheetCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new hee:new mee({mirror:Nc,mutationCb:H,stylesheetManager:K,recordCrossOriginIframes:O,wrappedEmit:Pr});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:Nc,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const Z=new vee,X=wee(L,{mirror:Nc,win:window,mutationCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CanvasMutation,...e}}),recordCanvas:C,blockClass:a,blockSelector:o,unblockSelector:i,maxCanvasSize:w,sampling:x.canvas,dataURLOptions:S,errorHandler:M}),J="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new gee:new yee({mutationCb:H,scrollCb:G,bypassOptions:{onMutation:D,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:F,dataURLOptions:S,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:C,inlineImages:R,sampling:x,slimDOMOptions:B,iframeManager:Y,stylesheetManager:K,canvasManager:X,keepIframeSrcFn:j,processedNodeManager:Z},mirror:Nc}),ee=(e=!1)=>{if(!A)return;Pr({type:Ht.Meta,data:{href:window.location.href,width:lL(),height:cL()}},e),K.reset(),J.init(),C1.forEach((e=>e.lock()));const t=BJ(document,{mirror:Nc,blockClass:a,blockSelector:o,unblockSelector:i,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:F,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:B,dataURLOptions:S,recordCanvas:C,inlineImages:R,onSerialize:e=>{dL(e,Nc)&&Y.addIframe(e),pL(e,Nc)&&K.trackLinkElement(e),CR(e)&&J.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&X.addWindow(e.contentWindow),J.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");Pr({type:Ht.FullSnapshot,data:{node:t,initialOffset:iL(window)}}),C1.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,Nc.getId(document))};Bw=ee;try{const e=[],t=e=>pn(pee)({onMutation:D,mutationCb:H,mousemoveCb:(e,t)=>Pr({type:Ht.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.ViewportResize,...e}}),inputCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Input,...e}}),mediaInteractionCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Font,...e}}),selectionCb:e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.Selection,...e}})},customElementCb:e=>{Pr({type:Ht.IncrementalSnapshot,data:{source:Mt.CustomElement,...e}})},blockClass:a,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,maskInputOptions:F,inlineStylesheet:h,sampling:x,recordDOM:A,recordCanvas:C,inlineImages:R,userTriggeredOnInput:I,collectFonts:T,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:j,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:S,mirror:Nc,iframeManager:Y,stylesheetManager:K,shadowDomManager:J,processedNodeManager:Z,canvasManager:X,ignoreCSSAttributes:N,plugins:dw([P,"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=>Pr({type:Ht.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(rs("DOMContentLoaded",(()=>{Pr({type:Ht.DomContentLoaded,data:{}}),"DOMContentLoaded"===z&&n()}))),e.push(rs("load",(()=>{Pr({type:Ht.Load,data:{}}),"load"===z&&n()}),window))),()=>{e.forEach((e=>e())),Z.destroy(),Bw=void 0,tee()}}catch(e){console.warn(e)}}function bee(e){if(!Bw)throw new Error("please take full snapshot after start recording");Bw(e)}function wee(e,t){try{return e?e(t):new EP}catch{return console.warn("Unable to initialize CanvasManager"),new EP}}xu.mirror=Nc,xu.takeFullSnapshot=bee;const kee=3,xee=5;function kT(e){return e>9999999999?e:1e3*e}function Z3(e){return e>9999999999?e/1e3:e}function uv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Ht.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:yu(t,10,1e3)}}),"console"===t.category))))}const See="button,a";function bL(e){return e.closest(See)||e}function wL(e){const t=kL(e);return t&&t instanceof Element?bL(t):t}function kL(e){return Eee(e)?e.target:e}function Eee(e){return"object"==typeof e&&!!e&&"target"in e}let gp;function Cee(e){return gp||(gp=[],Ree()),gp.push(e),()=>{const t=gp?gp.indexOf(e):-1;t>-1&&gp.splice(t,1)}}function Ree(){Hi(tr,"open",(function(e){return function(...t){if(gp)try{gp.forEach((e=>e()))}catch{}return e.apply(tr,t)}}))}const Aee=new Set([Mt.Mutation,Mt.StyleSheetRule,Mt.StyleDeclaration,Mt.AdoptedStyleSheet,Mt.CanvasMutation,Mt.Selection,Mt.MediaInteraction]);function Tee(e,t,n){e.handleClick(t,n)}class Iee{constructor(e,t,n=uv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Cee((()=>{this._lastMutation=CP()}));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(Pee(t,this._ignoreSelector)||!Oee(e))return;const n={timestamp:Z3(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=Z3(e)}registerScroll(e=Date.now()){this._lastScroll=Z3(e)}registerClick(e){const t=bL(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=CP();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._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(a){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:tr.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,a)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:tr.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=B1((()=>this._checkClicks()),1e3)}}const $ee=["A","BUTTON","INPUT"];function Pee(e,t){return!!(!$ee.includes(e.tagName)||"INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||"A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target"))||t&&e.matches(t))}function Oee(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}function CP(){return Date.now()/1e3}function zee(e,t){try{if(!Mee(t))return;const{source:n}=t.data;if(Aee.has(n)&&e.registerMutation(t.timestamp),n===Mt.Scroll&&e.registerScroll(t.timestamp),Nee(t)){const{type:n,id:r}=t.data,a=xu.mirror.getNode(r);a instanceof HTMLElement&&n===es.Click&&e.registerClick(a)}}catch{}}function Mee(e){return 3===e.type}function Nee(e){return e.data.source===Mt.MouseInteraction}function Ql(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Uw;!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"}(Uw||(Uw={}));const Dee=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Lee(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Dee.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}const jee=e=>t=>{if(!e.isEnabled())return;const n=Fee(t);if(!n)return;const r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&Tee(e.clickDetector,n,wL(t.event)),uv(e,n)};function xL(e,t){const n=xu.mirror.getId(e),r=n&&xu.mirror.getNode(n),a=r&&xu.mirror.getMeta(r),o=a&&Uee(a)?a:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===Uw.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Lee(o.attributes)}}:{}}}function Fee(e){const{target:t,message:n}=Bee(e);return Ql({category:`ui.${e.name}`,...xL(t,n)})}function Bee(e){const t="click"===e.name;let n,r=null;try{r=t?wL(e.event):kL(e.event),n=cT(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Uee(e){return e.type===Uw.Element}function Vee(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=qee(t);n&&uv(e,n)}function qee(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o,target:i}=e;if(!i||Wee(i)||!o)return null;const s=t||r||a,c=1===o.length;if(!s&&c)return null;const l=cT(i,{maxStringLength:200})||"<unknown>";return Ql({category:"ui.keyDown",message:l,data:{...xL(i,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:a,key:o}})}function Wee(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}const Hee={resource:Zee,paint:Qee,navigation:Yee};function Ab(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Gee(e){return e.map(Kee).filter(Boolean)}function Kee(e){const t=Hee[e.entryType];return t?t(e):null}function q1(e){return((CY||tr.performance.timeOrigin)+e)/1e3}function Qee(e){const{duration:t,entryType:n,name:r,startTime:a}=e,o=q1(a);return{type:n,name:r,start:o,end:o+t,data:void 0}}function Yee(e){const{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:f,redirectCount:d,startTime:p,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:q1(p),end:q1(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Zee(e){const{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:q1(o),end:q1(a),name:r,data:{size:l,statusCode:c,decodedBodySize:i,encodedBodySize:s}}}function Xee(e){const t=e.entries[e.entries.length-1];return Kk(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function Jee(e){return void 0!==e.sources}function ete(e){const t=[],n=[];for(const r of e.entries)if(Jee(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=xu.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Kk(e,"cumulative-layout-shift",n,t)}function tte(e){const t=e.entries[e.entries.length-1];return Kk(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function nte(e){const t=e.entries[e.entries.length-1];return Kk(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function Kk(e,t,n,r){const a=e.value,o=e.rating,i=q1(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:n?n.map((e=>xu.mirror.getId(e))):void 0,attributions:r}}}function rte(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(TX(e,n))})),r.push(CX(Ab(Xee,e)),EX(Ab(ete,e)),RX(Ab(tte,e)),AX(Ab(nte,e))),()=>{r.forEach((e=>e()))}}const Tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ate='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==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],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=A(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}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,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)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[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,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[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){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^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=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(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-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[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=U(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=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function ote(){const e=new Blob([ate]);return URL.createObjectURL(e)}const RP=["info","warn","error","log"],pw="[Replay] ";function X3(e,t="info"){FZ({category:"console",data:{logger:"replay"},level:t,message:`${pw}${e}`},{level:t})}function ste(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return Tt?(RP.forEach((e=>{n[e]=(...n)=>{as[e](pw,...n),t&&X3(n.join(""),BZ(e))}})),n.exception=(r,...a)=>{a.length&&n.error&&n.error(...a),as.error(pw,r),e?uT(r):t&&X3(r,"error")},n.infoTick=(...e)=>{as.info(pw,...e),t&&setTimeout((()=>X3(e[0])),0)}):RP.forEach((e=>{n[e]=()=>{}})),n}const Ot=ste();class xT extends Error{constructor(){super(`Event buffer exceeded maximum size of ${gT}.`)}}class SL{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>gT)throw new xT;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?kT(e):null}}class ite{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(){Tt&&Ot.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,a)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return Tt&&Ot.error("Error in compression worker: ",i.response),void a(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class cte{constructor(e){this._worker=new ite(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=kT(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>gT?Promise.reject(new xT):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Tt&&Ot.exception(e,'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 lte{constructor(e){this._fallback=new SL,this._compression=new cte(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Tt&&Ot.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Tt&&Ot.exception(e,"Failed to add events when switching buffers.")}}}function fte({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=ute(t);if(e)return e}return Tt&&Ot.info("Using simple buffer"),new SL}function ute(e){try{const t=e||dte();if(!t)return;Tt&&Ot.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new lte(n)}catch(e){Tt&&Ot.exception(e,"Failed to create compression worker")}}function dte(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ote():""}function ST(){try{return"sessionStorage"in tr&&!!tr.sessionStorage}catch{return!1}}function pte(e){hte(),e.session=void 0}function hte(){if(ST())try{tr.sessionStorage.removeItem(hT)}catch{}}function EL(e){return void 0!==e&&Math.random()<e}function CL(e){const t=Date.now();return{id:e.id||ku(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function ET(e){if(ST())try{tr.sessionStorage.setItem(hT,JSON.stringify(e))}catch{}}function mte(e,t){return EL(e)?"session":!!t&&"buffer"}function AP({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const a=CL({sampled:mte(e,t),previousSessionId:r});return n&&ET(a),a}function gte(){if(!ST())return null;try{const e=tr.sessionStorage.getItem(hT);if(!e)return null;const t=JSON.parse(e);return Tt&&Ot.infoTick("Loading existing session"),CL(t)}catch{return null}}function TR(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function RL(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return TR(e.started,t,r)||TR(e.lastActivity,n,r)}function AL(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!RL(e,{sessionIdleExpire:t,maxReplayDuration:n})||"buffer"===e.sampled&&0===e.segmentId)}function J3({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const a=r.stickySession&>e();return a?AL(a,{sessionIdleExpire:e,maxReplayDuration:t})?(Tt&&Ot.infoTick("Session in sessionStorage is expired, creating new one..."),AP(r,{previousSessionId:a.id})):a:(Tt&&Ot.infoTick("Creating new session"),AP(r,{previousSessionId:n}))}function yte(e){return e.type===Ht.Custom}function CT(e,t,n){return!!IL(e,t)&&(TL(e,t,n),!0)}function _te(e,t,n){return IL(e,t)?TL(e,t,n):Promise.resolve(null)}async function TL(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=vte(t,e.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(t){const n=t&&t instanceof xT,o=n?"addEventSizeExceeded":"addEvent";if(n&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o});const i=cf();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function IL(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=kT(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Tt&&Ot.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function vte(e,t){try{if("function"==typeof t&&yte(e))return t(e)}catch(e){return Tt&&Ot.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function RT(e){return!e.type}function IR(e){return"transaction"===e.type}function bte(e){return"replay_event"===e.type}function TP(e){return"feedback"===e.type}function wte(e){return(t,n)=>{if(!e.isEnabled()||!RT(t)&&!IR(t))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(IR(t))return void kte(e,t);xte(e,t)}}}function kte(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)}function xte(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();"function"==typeof r&&!r(t)||B1((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}function Ste(e){return t=>{!e.isEnabled()||!RT(t)||Ete(e,t)}}function Ete(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){uv(e,Ql({category:"replay.hydrate-error",data:{url:bY()}}))}}function Cte(e){const t=cf();t&&t.on("beforeAddBreadcrumb",(t=>Rte(e,t)))}function Rte(e,t){if(!e.isEnabled()||!$L(t))return;const n=Ate(t);n&&uv(e,n)}function Ate(e){return!$L(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?Tte(e):Ql(e)}function Tte(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ql(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Eb?(n=!0,`${e.slice(0,Eb)}…`):e;if("object"==typeof e)try{const t=yu(e,7);return JSON.stringify(t).length>Eb?(n=!0,`${JSON.stringify(t,null,2).slice(0,Eb)}…`):t}catch{}return e}));return Ql({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function $L(e){return!!e.category}function Ite(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&!(!t.originalException||!t.originalException.__rrweb__)}function PL(){const e=n0().getPropagationContext().dsc;e&&delete e.replay_id;const t=D7();if(t){delete j7(t).replay_id}}function $te(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Ht.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}function Pte(e,t){return!("buffer"!==e.recordingMode||t.message===mT||!t.exception||t.type)&&EL(e.getOptions().errorSampleRate)}function Ote(e){return Object.assign(((t,n)=>!e.isEnabled()||e.isPaused()?t:bte(t)?(delete t.breadcrumbs,t):RT(t)||IR(t)||TP(t)?e.checkAndHandleExpiredSession()?TP(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),$te(e,t),t):Ite(t,n)&&!e.getOptions()._experiments.captureExceptions?(Tt&&Ot.log("Ignoring error from rrweb internals",t),null):((Pte(e,t)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(PL(),t):t),{id:"Replay"})}function Qk(e,t){return t.map((({type:t,start:n,end:r,name:a,data:o})=>{const i=e.throttledAddEvent({type:Ht.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function zte(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Mte(e){return t=>{if(!e.isEnabled())return;const n=zte(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Qk(e,[n]),!1))))}}function Nte(e,t){return(!Tt||!e.getOptions()._experiments.traceInternals)&&NZ(t,cf())}function OL(e,t){e.isEnabled()&&null!==t&&(Nte(e,t.name)||e.addUpdate((()=>(Qk(e,[t]),!0))))}function Yk(e){if(!e)return;const t=new TextEncoder;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=DL(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function zL(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ML(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[DL(e)];if(!e)return[void 0]}catch(t){return Tt&&Ot.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Tt&&Ot.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Vw(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 NL(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:a,method:o,statusCode:i,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:Uc({method:o,statusCode:i,request:s,response:c})}}function x_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kp(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:a,warnings:o}=Dte(n);return r.body=a,o&&o.length>0&&(r._meta={warnings:o}),r}function $R(e,t){return Object.entries(e).reduce(((n,[r,a])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=a),n}),{})}function DL(e){return new URLSearchParams(e).toString()}function Dte(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>lP,n=Lte(e);if(t){const t=e.slice(0,lP);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Lte(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}function qw(e,t){return kY(jte(e),t)}function jte(e,t=tr.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(tr.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Fte(e,t,n){try{const r=NL("resource.fetch",await Ute(e,t,n));OL(n.replay,r)}catch(e){Tt&&Ot.exception(e,"Failed to capture fetch breadcrumb")}}function Bte(e,t){const{input:n,response:r}=t,a=Yk(n?LL(n):void 0),o=r?zL(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}async function Ute(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r}=t,{url:i,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,f=qw(i,n.networkDetailAllowUrls)&&!qw(i,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:c,request:f?Vte(n,t.input,l):x_(l),response:await qte(f,n,t.response,u)}}function Vte({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const a=n?Gte(n,t):{};if(!e)return kp(a,r,void 0);const o=LL(n),[i,s]=ML(o),c=kp(a,r,i);return s?Vw(c,s):c}async function qte(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return x_(a);const o=r?jL(r.headers,n):{};if(!r||!t&&void 0!==a)return kp(o,a,void 0);const[i,s]=await Hte(r),c=Wte(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?Vw(c,s):c}function Wte(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{const o=e&&e.length&&void 0===n?Yk(e):n;return r?kp(a,o,t?e:void 0):x_(o)}catch(e){return Tt&&Ot.exception(e,"Failed to serialize response body"),kp(a,n,void 0)}}async function Hte(e){const t=Kte(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await Qte(t)]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Tt&&Ot.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Tt&&Ot.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function LL(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function jL(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Gte(e,t){return 1===e.length&&"string"!=typeof e[0]?IP(e[0],t):2===e.length?IP(e[1],t):{}}function IP(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?jL(n,t):Array.isArray(n)?{}:$R(n,t):{}}function Kte(e){try{return e.clone()}catch(e){Tt&&Ot.exception(e,"Failed to clone response body")}}function Qte(e){return new Promise(((t,n)=>{const r=B1((()=>n(new Error("Timeout while trying to read response body"))),500);Yte(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}async function Yte(e){return await e.text()}async function Zte(e,t,n){try{const r=NL("resource.xhr",Jte(e,t,n));OL(n.replay,r)}catch(e){Tt&&Ot.exception(e,"Failed to capture xhr breadcrumb")}}function Xte(e,t){const{xhr:n,input:r}=t;if(!n)return;const a=Yk(r),o=n.getResponseHeader("content-length")?zL(n.getResponseHeader("content-length")):rne(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}function Jte(e,t,n){const r=Date.now(),{startTimestamp:a=r,endTimestamp:o=r,input:i,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:f,response_body_size:d}=e.data;if(!c)return null;if(!s||!qw(c,n.networkDetailAllowUrls)||qw(c,n.networkDetailDenyUrls)){return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:x_(f),response:x_(d)}}const p=s[qX],h=p?$R(p.request_headers,n.networkRequestHeaders):{},m=$R(ene(s),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ML(i):[void 0],[v,b]=n.networkCaptureBodies?tne(s):[void 0],_=kp(h,f,y),w=kp(m,d,v);return{startTimestamp:a,endTimestamp:o,url:c,method:l,statusCode:u,request:g?Vw(_,g):_,response:b?Vw(w,b):w}}function ene(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function tne(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return nne(e.response,e.responseType)}catch(e){t.push(e)}return Tt&&Ot.warn("Failed to get xhr response body",...t),[void 0]}function nne(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 Tt&&Ot.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Tt&&Ot.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function rne(e,t){try{return Yk("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}function ane(e){const t=cf();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>one(s,e,t)))}catch{}}function one(e,t,n){if(t.data)try{sne(t)&&cne(n)&&(Xte(t,n),Zte(t,n,e)),ine(t)&&lne(n)&&(Bte(t,n),Fte(t,n,e))}catch(e){Tt&&Ot.exception(e,"Error when enriching network breadcrumb")}}function sne(e){return"xhr"===e.category}function ine(e){return"fetch"===e.category}function cne(e){return e&&e.xhr}function lne(e){return e&&e.response}function fne(e){const t=cf();NX(jee(e)),BX(Mte(e)),Cte(e),ane(e);IZ(Ote(e)),t&&(t.on("beforeSendEvent",Ste(e)),t.on("afterSendEvent",wte(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}async function une(e){try{return Promise.all(Qk(e,[dne(tr.performance.memory)]))}catch{return[]}}function dne(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function pne(e,t,n){let r,a,o;const i=n.maxWait?Math.max(n.maxWait,t):0;function s(){return c(),r=e(),r}function c(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function l(){return a&&clearTimeout(a),a=B1(s,t),i&&void 0===o&&(o=B1(s,i)),r}return l.cancel=c,l.flush=function(){return void 0!==a||void 0!==o?s():r},l}function hne(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Tt&&Ot.warn("Received replay event after session expired."));const a=r||!t;t=!0,e.clickDetector&&zee(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!CT(e,n,a))return!0;if(!a)return!1;const t=e.session;if(gne(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Tt&&Ot.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&ET(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}function mne(e){const t=e.getOptions();return{type:Ht.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}}}}function gne(e,t){!t||!e.session||0!==e.session.segmentId||CT(e,mne(e),!1)}function yne(e,t,n,r){return fZ(dZ(e,uZ(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}function _ne({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}async function vne({client:e,scope:t,replayId:n,event:r}){const a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);const o=await bZ(e.getOptions(),r,a,t,e,ov());if(!o)return null;o.platform=o.platform||"javascript";const i=e.getSdkMetadata(),{name:s,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}async function bne({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:o}){const i=_ne({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,f=cf(),d=n0(),p=f&&f.getTransport(),h=f&&f.getDsn();if(!(f&&p&&h&&o.sampled))return H$({});const m={type:JX,replay_start_timestamp:u/1e3,timestamp:a/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:o.sampled},y=await vne({scope:d,client:f,replayId:t,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),Tt&&Ot.info("An event processor returned `null`, will not send event."),H$({});delete y.sdkProcessingMetadata;const g=yne(y,i,h,f.getOptions().tunnel);let v;try{v=await p.send(g)}catch(e){const t=new Error(mT);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new FL(v.statusCode);const b=MZ({},v);if(zZ(b,"replay"))throw new AT(b);return v}class FL extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class AT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function BL(e,t={count:0,interval:oJ}){const{recordingData:n,onError:r}=e;if(n.length)try{return await bne(e),!0}catch(n){if(n instanceof FL||n instanceof AT)throw n;if(AZ("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${mT} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{B1((async()=>{try{await BL(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const UL="__THROTTLED",wne="__SKIPPED";function kne(e,t,n){const r=new Map;let a=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=a;return a=!0,e?wne:UL}a=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...o)}}class yp{constructor({options:e,recordingOptions:t}){yp.prototype.__init.call(this),yp.prototype.__init2.call(this),yp.prototype.__init3.call(this),yp.prototype.__init4.call(this),yp.prototype.__init5.call(this),yp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:eJ,sessionIdleExpire:tJ},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=pne((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=kne(((e,t)=>_te(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(iJ,n),timeout:n,scrollTimeout:cJ,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new Iee(this,a)),Tt){const t=e._experiments;Ot.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Tt&&Ot.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return void(Tt&&Ot.exception(new Error("Unable to initialize and create session")));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Tt&&Ot.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Tt&&Ot.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Tt&&Ot.info("Buffering is in progress, call `flush()` to save the replay"));Tt&&Ot.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=J3({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Tt&&Ot.info("Buffering is in progress, call `flush()` to save the replay"));Tt&&Ot.infoTick("Starting replay in buffer mode");const e=J3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=xu({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:aJ}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:hne(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{Tt&&Ot.info("Stopping Replay"+(t?` triggered by ${t}`:"")),PL(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,pte(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Tt&&Ot.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Tt&&Ot.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Tt&&Ot.info("Converting buffer to session"),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&&TR(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${tr.location.pathname}${tr.location.hash}${tr.location.search}`,t=`${tr.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===UL){const e=Ql({category:"replay.throttled"});this.addUpdate((()=>!CT(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||D7(),t=e&&fT(e),n=(t&&__(t).data||{})[N7];if(t&&n&&["route","custom"].includes(n))return __(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=fte({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=J3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,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!AL(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{tr.document.addEventListener("visibilitychange",this._handleVisibilityChange),tr.addEventListener("blur",this._handleWindowBlur),tr.addEventListener("focus",this._handleWindowFocus),tr.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(fne(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=rte(this)}_removeListeners(){try{tr.document.removeEventListener("visibilitychange",this._handleVisibilityChange),tr.removeEventListener("blur",this._handleWindowBlur),tr.removeEventListener("focus",this._handleWindowFocus),tr.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===tr.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ql({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ql({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Vee(this,e)}}_doChangeToBackgroundTasks(e){!this.session||RL(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Tt&&Ot.info("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:Ht.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=Gee(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(Qk(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||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 une(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 a=await this.eventBuffer.finish();await BL({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=cf();if(t){const n=e instanceof AT?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Tt&&Ot.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Tt&&Ot.error("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,a=n>this._options.maxReplayDuration+5e3;if(r||a)return Tt&&Ot.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&Tt&&Ot.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ET(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=Ql({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function hy(e,t){return[...e,...t].join(",")}function xne({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:hy(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:hy(t,[]),blockSelector:hy(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:hy(r,[]),ignoreSelector:hy(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Sne({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:o}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const $P='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ene=["content-length","content-type","accept"];let PP=!1;const Cne=e=>new Zk(e);class Zk{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=nJ,flushMaxDelay:t=rJ,minReplayDuration:n=lJ,maxReplayDuration:r=fP,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:_=[],maskAttributes:w=["title","placeholder"],unmask:k=[],block:x=[],unblock:S=[],ignore:E=[],maskFn:A,beforeAddRecordingEvent:C,beforeErrorSampling:O,onError:z}={}){this.name=Zk.id;const I=xne({mask:_,unmask:k,block:x,unblock:S,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:A,maskInputFn:A,maskAttributeFn:(e,t,n)=>Sne({maskAttributes:w,maskAllText:c,privacyOptions:I,key:e,value:t,el:n}),...I,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,fJ),maxReplayDuration:Math.min(r,fP),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:OP(v),networkResponseHeaders:OP(b),beforeAddRecordingEvent:C,beforeErrorSampling:O,onError:z,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$P}`:$P),this._isInitialized&&aP())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return PP}set _isInitialized(e){PP=e}afterAllSetup(e){!aP()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=Rne(this._initialOptions,e);this._replay=new yp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Rne(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Uc(e)},a=J$(n.replaysSessionSampleRate),o=J$(n.replaysOnErrorSampleRate);return null==a&&null==o&&rT((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=a&&(r.sessionSampleRate=a),null!=o&&(r.errorSampleRate=o),r}function OP(e){return[...Ene,...e.map((e=>e.toLowerCase()))]}Zk.__initStatic();const VL=()=>"object"!=typeof window;var Ane={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"7d05166ba08ea35a",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.130",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"};VL()||(window.build=Ane.BUILD_NUMBER),Cne(),KX(),qZ();const zP={data:null,isError:!1,isPending:!1,isSuccess:!1},Kn=qr({name:"user",initialState:zP,reducers:{reset:e=>{Object.assign(e,zP)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectAccountId:e=>{var t;return null==(t=e.data)?void 0:t.account.id},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}}),Tne=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return TZ("exceptionMessage",t),void uT(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}RZ(t)},MP=["debug","info","warn","error"],Ine=(e,t)=>{const n=MP.indexOf(e);return MP.indexOf(t)>=n},Tb=(e,t,n,...r)=>{Ine(t,e)&&console.log(`[${e}] ${n}`,...r)},$ne=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),Pne=(e=!VL()&&$ne()||"warn")=>{let t=e;return{debug:(e,...n)=>Tb("debug",t,e,...n),info:(e,...n)=>Tb("info",t,e,...n),warn:(e,...n)=>Tb("warn",t,e,...n),error:(e,...n)=>(Tne(e,...n),Tb("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Ru=Pne(),Xk="staticState",hw={path:"",baseUrl:"",search:""},One=e=>{if(!e)return hw;try{return JSON.parse(decodeURIComponent(e))||hw}catch(e){return Ru.error("Error parsing static state",e),hw}},qL=()=>new URLSearchParams(window.location.search).get(Xk),zne=({path:e,baseUrl:t,search:n}={})=>{const{pathname:r,origin:a,search:o}=window.location;return`${Xk}=${encodeURIComponent(JSON.stringify({path:e||r,baseUrl:t||a,search:n||o}))}`},Mne=()=>{const e=qL();return e&&localStorage.setItem(Xk,e),WL()},WL=()=>{try{const e=localStorage.getItem(Xk)||qL();return One(e)}catch(e){return Ru.error("Error parsing static state",e),hw}},TT={create:zne,init:Mne,get:WL},Nne=e=>{try{const{type:t,payload:n}=e,r={type:t};return void 0!==n&&(r.payload=JSON.parse(JSON.stringify(n))),r}catch(t){return Ru.warn(`Could not serialize action type: ${e.type}`,t),{type:e.type,payload:`[Non-serializable payload for action: ${e.type}]`}}},Dne=({action:e,windowElement:t,whitelist:n})=>{if(t)try{const{type:r}=e;if(!n.some((({type:e})=>e===r||"*"===e)))return;const a=Nne(e);t.postMessage(a,"*")}catch(e){Ru.error("Failed to process or send message:",e)}},Lne=({onMessage:e,whitelist:t})=>{const n=n=>{const r=n.origin!==window.location.origin,a=n.data&&"object"==typeof n.data&&"type"in n.data,o=t.some((({type:e})=>e===n.data.type||"*"===e));r&&a&&o&&e(n.data)};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},jne=async e=>{const t={};e.headers.forEach(((e,n)=>{t[n]=e}));return{body:["get","head"].includes(e.method.toLowerCase())?null:await(async()=>{try{return await e.text()}catch(e){return Ru.error("No body or error reading body:",e),null}})(),headers:t,url:e.url,method:e.method,mode:e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}},Fne=e=>{const{url:t,status:n,statusText:r,headers:a,body:o}=e,i=new Response(JSON.stringify(o),{status:n,statusText:r,headers:a});return Object.defineProperty(i,"url",{value:t}),i},Bne=async e=>{const t=crypto.randomUUID();return Dne({action:L$({id:t,options:await jne(e)}),windowElement:window.parent,whitelist:[L$]}),new Promise((e=>{const n=Lne({onMessage:({payload:{id:r,response:a}})=>{t===r&&(n(),e(Fne(a)))},whitelist:[rY]})}))},Une=()=>{try{return window.self!==window.top}catch{return!0}},Vne=()=>e=>Une()?Bne(e):fetch(e),qne=TT.get().baseUrl,Wne=qne||"",Hne=fQ({fetchFn:Vne(),baseUrl:Wne,responseHandler:e=>{const t=e.headers.get("content-type");return(null==t?void 0:t.startsWith("application/json"))?e.json():e.text()},prepareHeaders:e=>{const t=xm.getToken();return t&&e.set("authorization",`Bearer ${t}`),e}}),Gne=oY(lY(Hne)),Kne=ZQ({tagTypes:["Secure","Post","Follow","Like","Settings","Rbac_Config","Admin_Apps","Admin_Users","Admin_Audit_Logs","Admin_Reports","Admin_Signup_Requests","Admin_Posts","Admin_Uploads","Admin_Roles","Admin_Jobs_Stats","Admin_Federation","Admin_Domain_Block","Group_Apps","User_Apps","Account","Profile","UserNoHtml","Relationship","Bookmarks",...Object.values(Pw)],reducerPath:"openapi",baseQuery:Gne,endpoints:()=>({})}),nr=Kne.injectEndpoints({endpoints:e=>({postApiV1AccountsAddReason:e.mutation({query:e=>({url:"/api/v1/accounts/add-reason",method:"POST",body:e.signupReasonParams})}),postApiV1AccountsAuthenticateEmail:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/email",method:"POST",body:e.authRequest})}),postApiV1AccountsAuthenticatePhone:e.mutation({query:e=>({url:"/api/v1/accounts/authenticate/phone",method:"POST",body:e.authPhoneRequest})}),putApiV1AccountsChangeName:e.mutation({query:e=>({url:"/api/v1/accounts/change/name",method:"PUT",params:{id:e.id,name:e.name,username:e.username}})}),postApiV1AccountsCheckCaptcha:e.mutation({query:e=>({url:"/api/v1/accounts/check-captcha",method:"POST",body:e.captchaVerificationParams})}),postApiV1AccountsConfirmEmail:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-email",method:"POST",body:e.codeVerificationParams})}),postApiV1AccountsConfirmPhone:e.mutation({query:e=>({url:"/api/v1/accounts/confirm-phone",method:"POST",body:e.codeVerificationParams})}),deleteApiV1AccountsDelete:e.mutation({query:()=>({url:"/api/v1/accounts/delete",method:"DELETE"})}),postApiV1AccountsEmailChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsEmailChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/email/change/request",method:"POST",body:e.emailChangeRequest})}),putApiV1AccountsEmailChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/email/change/resend-code",method:"PUT"})}),postApiV1AccountsFinishCreating:e.mutation({query:e=>({url:"/api/v1/accounts/finish-creating",method:"POST",body:e.finishCreatingAccountParams,params:{htmlContent:e.htmlContent}})}),putApiV1AccountsGetTokenByHash:e.mutation({query:e=>({url:`/api/v1/accounts/get-token/${e.hash}`,method:"PUT"})}),postApiV1AccountsLoginsAddEmailPassword:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password",method:"POST",body:e.addEmailRequest})}),postApiV1AccountsLoginsAddEmailPasswordConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-email-password/confirm",method:"POST",body:e.body})}),putApiV1AccountsLoginsAddEmailPasswordResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/logins/add-email-password/resend-code",method:"PUT"})}),postApiV1AccountsLoginsAddPhone:e.mutation({query:e=>({url:"/api/v1/accounts/logins/add-phone",method:"POST",body:e.addPhoneRequest})}),deleteApiV1AccountsLoginsRemoveEmailPassword:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-email-password",method:"DELETE"})}),deleteApiV1AccountsLoginsRemovePhone:e.mutation({query:()=>({url:"/api/v1/accounts/logins/remove-phone",method:"DELETE"})}),postApiV1AccountsPasswordChangeConfirm:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/confirm",method:"POST",body:e.body})}),postApiV1AccountsPasswordChangeRequest:e.mutation({query:e=>({url:"/api/v1/accounts/password/change/request",method:"POST",body:e.passwordChangeRequest})}),putApiV1AccountsPasswordChangeResendCode:e.mutation({query:()=>({url:"/api/v1/accounts/password/change/resend-code",method:"PUT"})}),postApiV1AccountsPasswordRecover:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover",method:"POST",body:e.passwordRecoveryRequest})}),postApiV1AccountsPasswordRecoverChange:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/change",method:"POST",body:e.passwordRecoveryChange})}),postApiV1AccountsPasswordRecoverCheckCode:e.mutation({query:e=>({url:"/api/v1/accounts/password/recover/check-code",method:"POST",body:e.passwordRecoveryCode})}),postApiV1AccountsPhoneChangeConfirmAuth:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/auth",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeConfirmNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/confirm/new-phone",method:"POST",body:e.body})}),postApiV1AccountsPhoneChangeNewPhone:e.mutation({query:e=>({url:"/api/v1/accounts/phone/change/new-phone",method:"POST",body:e.addPhoneRequest})}),putApiV1AccountsPhoneChangeRequest:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/request",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeAuth:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/auth",method:"PUT"})}),putApiV1AccountsPhoneChangeResendCodeNewPhone:e.mutation({query:()=>({url:"/api/v1/accounts/phone/change/resend-code/new-phone",method:"PUT"})}),getApiV1AccountsProfile:e.query({query:e=>({url:"/api/v1/accounts/profile",params:{htmlContent:e.htmlContent}})}),postApiV1AccountsReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName,htmlContent:e.htmlContent}})}),putApiV1AccountsResendCodeByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-code/${e.hash}`,method:"PUT"})}),putApiV1AccountsResendEmailByHash:e.mutation({query:e=>({url:`/api/v1/accounts/resend-email/${e.hash}`,method:"PUT"})}),postApiV1AccountsSignup:e.mutation({query:e=>({url:"/api/v1/accounts/signup",method:"POST",body:e.accountCreate})}),postApiV1AccountsSignupPhone:e.mutation({query:e=>({url:"/api/v1/accounts/signup-phone",method:"POST",body:e.phoneSignup})}),postApiV1AccountsUserReselectUser:e.mutation({query:e=>({url:"/api/v1/accounts/user/reselect-user",method:"POST",params:{userId:e.userId,userName:e.userName}})}),getApiV1AccountsById:e.query({query:e=>({url:`/api/v1/accounts/${e.id}`,params:{htmlContent:e.htmlContent}})}),getApiV1AddressesSuggest:e.query({query:e=>({url:"/api/v1/addresses/suggest",params:{text:e.text}})}),getApiV1AdminAccountByAccountId:e.query({query:e=>({url:`/api/v1/admin/account/${e.accountId}`,params:{htmlContent:e.htmlContent}})}),getApiV1AdminAuditLog:e.query({query:e=>({url:"/api/v1/admin/audit_log",params:{accountId:e.accountId,action:e.action,appId:e.appId,domainSearch:e.domainSearch,email:e.email,group:e.group,lastId:e.lastId,limit:e.limit,offset:e.offset,ruleId:e.ruleId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminChangeEmail:e.mutation({query:e=>({url:"/api/v1/admin/change/email",method:"PUT",params:{email:e.email,id:e.id,username:e.username}})}),putApiV1AdminChangePassword:e.mutation({query:e=>({url:"/api/v1/admin/change/password",method:"PUT",params:{id:e.id,password:e.password,username:e.username}})}),putApiV1AdminChangeRoleAssign:e.mutation({query:e=>({url:"/api/v1/admin/change/role/assign",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),putApiV1AdminChangeRoleRevoke:e.mutation({query:e=>({url:"/api/v1/admin/change/role/revoke",method:"PUT",params:{id:e.id,role:e.role,username:e.username,htmlContent:e.htmlContent}})}),postApiV1AdminClearApErrors:e.mutation({query:e=>({url:"/api/v1/admin/clear-ap-errors",method:"POST",params:{domain:e.domain}})}),postApiV1AdminCreateAccount:e.mutation({query:e=>({url:"/api/v1/admin/create-account",method:"POST",body:e.accountCreate,params:{htmlContent:e.htmlContent}})}),deleteApiV1AdminDelete:e.mutation({query:e=>({url:"/api/v1/admin/delete",method:"DELETE",params:{email:e.email,id:e.id,username:e.username}})}),getApiV1AdminDomainAllow:e.query({query:e=>({url:"/api/v1/admin/domain-allow",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainAllow:e.mutation({query:e=>({url:"/api/v1/admin/domain-allow",method:"POST",body:e.allowedDomainReq})}),deleteApiV1AdminDomainAllowByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-allow/${e.domain}`,method:"DELETE"})}),putApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"PUT",body:e.blockDomainReq})}),getApiV1AdminDomainBlock:e.query({query:e=>({url:"/api/v1/admin/domain-block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1AdminDomainBlock:e.mutation({query:e=>({url:"/api/v1/admin/domain-block",method:"POST",body:e.blockDomainReq})}),getApiV1AdminDomainBlockList:e.query({query:e=>({url:"/api/v1/admin/domain-block/list",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1AdminDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/admin/domain-block/${e.domain}`,method:"DELETE"})}),getApiV1AdminFederation:e.query({query:e=>({url:"/api/v1/admin/federation",params:{blockState:e.blockState,lastId:e.lastId,limit:e.limit,offset:e.offset,search:e.search,sortBy:e.sortBy,sortOrder:e.sortOrder,unavailable:e.unavailable,untilId:e.untilId,warning:e.warning}})}),getApiV1AdminFederationMetricsOperations:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/operations",params:{window:e.window}})}),getApiV1AdminFederationMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-average-single",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFederationMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/federation/metrics/running-averages-all",params:{operations:e.operations,window:e.window}})}),getApiV1AdminFederationByDomain:e.query({query:e=>({url:`/api/v1/admin/federation/${e.domain}`})}),postApiV1AdminFeedClearUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/clear-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),getApiV1AdminFeedMetricsGlobalAllOperation:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-operation",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsGlobalAllOwners:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-all-owners",params:{operation:e.operation,window:e.window}})}),getApiV1AdminFeedMetricsGlobalSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/global-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsHistory:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all",params:{limit:e.limit,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryAllSingleOwner:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/all-single-owner",params:{limit:e.limit,ownerType:e.ownerType,userId:e.userId}})}),getApiV1AdminFeedMetricsHistoryByOwnerType:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/history/by-owner-type",params:{limit:e.limit,operation:e.operation,userId:e.userId}})}),getApiV1AdminFeedMetricsRunningAverageSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-average-single",params:{operation:e.operation,ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsRunningAveragesAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/running-averages-all",params:{ownerType:e.ownerType,userId:e.userId,window:e.window}})}),getApiV1AdminFeedMetricsSlowestOperations:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-operations",params:{limit:e.limit,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsers:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-all",params:{limit:e.limit,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSlowestUsersSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/slowest-users-single",params:{limit:e.limit,operation:e.operation,ownerType:e.ownerType,sortDesc:e.sortDesc,window:e.window}})}),getApiV1AdminFeedMetricsSummary:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/summary",params:{includeUserCounts:e.includeUserCounts,window:e.window}})}),getApiV1AdminFeedMetricsUserCountAll:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-all",params:{ownerType:e.ownerType,window:e.window}})}),getApiV1AdminFeedMetricsUserCountSingle:e.query({query:e=>({url:"/api/v1/admin/feed/metrics/user-count-single",params:{operation:e.operation,ownerType:e.ownerType,window:e.window}})}),postApiV1AdminFeedRegenerateUserFeed:e.mutation({query:e=>({url:"/api/v1/admin/feed/regenerate-user-feed",method:"POST",params:{ownerType:e.ownerType,userId:e.userId,username:e.username}})}),postApiV1AdminPostsDelete:e.mutation({query:e=>({url:"/api/v1/admin/posts/delete",method:"POST",body:e.postDelete})}),deleteApiV1AdminPurge:e.mutation({query:e=>({url:"/api/v1/admin/purge",method:"DELETE",params:{id:e.id}})}),postApiV1AdminRegenerateKeys:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys",method:"POST",params:{userId:e.userId,username:e.username}})}),postApiV1AdminRegenerateKeysAll:e.mutation({query:e=>({url:"/api/v1/admin/regenerate-keys-all",method:"POST",params:{batch:e.batch}})}),postApiV1AdminReportsDeletePosts:e.mutation({query:e=>({url:"/api/v1/admin/reports/delete-posts",method:"POST",body:e.body})}),getApiV1AdminReportsList:e.query({query:e=>({url:"/api/v1/admin/reports/list",params:{groupId:e.groupId,lastId:e.lastId,limit:e.limit,offset:e.offset,open:e.open,postId:e.postId,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId}})}),getApiV1AdminReportsByReportId:e.query({query:e=>({url:`/api/v1/admin/reports/${e.reportId}`})}),postApiV1AdminReportsByReportIdAddNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/add-note`,method:"POST",body:e.body})}),postApiV1AdminReportsByReportIdAssignToSelf:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/assign-to-self`,method:"POST"})}),deleteApiV1AdminReportsByReportIdDelete:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/delete`,method:"DELETE"})}),postApiV1AdminReportsByReportIdRemoveNote:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/remove-note`,method:"POST",params:{index:e.index}})}),postApiV1AdminReportsByReportIdReopen:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/reopen`,method:"POST"})}),postApiV1AdminReportsByReportIdResolve:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/resolve`,method:"POST"})}),postApiV1AdminReportsByReportIdUnassign:e.mutation({query:e=>({url:`/api/v1/admin/reports/${e.reportId}/unassign`,method:"POST"})}),postApiV1AdminRestartApDelivery:e.mutation({query:e=>({url:"/api/v1/admin/restart-ap-delivery",method:"POST",params:{domain:e.domain}})}),getApiV1AdminSearch:e.query({query:e=>({url:"/api/v1/admin/search",params:{accountId:e.accountId,country:e.country,displayName:e.displayName,domain:e.domain,email:e.email,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,role:e.role,sortBy:e.sortBy,sortOrder:e.sortOrder,state:e.state,untilId:e.untilId,userId:e.userId,username:e.username}})}),putApiV1AdminSignupRequestsApproveByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/approve/${e.hash}`,method:"PUT"})}),deleteApiV1AdminSignupRequestsDeleteByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/delete/${e.hash}`,method:"DELETE"})}),getApiV1AdminSignupRequestsList:e.query({query:e=>({url:"/api/v1/admin/signup_requests/list",params:{email:e.email,hash:e.hash,ip:e.ip,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1AdminSignupRequestsRejectByHash:e.mutation({query:e=>({url:`/api/v1/admin/signup_requests/reject/${e.hash}`,method:"PUT",params:{reason:e.reason}})}),getApiV1AdminUploadsJobsQueueByQueueName:e.query({query:e=>({url:`/api/v1/admin/uploads/jobs/queue/${e.queueName}`,params:{limit:e.limit,page:e.page,sortBy:e.sortBy,sortOrder:e.sortOrder,uploadType:e.uploadType}})}),getApiV1AdminUploadsJobsSummary:e.query({query:()=>({url:"/api/v1/admin/uploads/jobs/summary"})}),getApiV1AdminUploadsSearch:e.query({query:e=>({url:"/api/v1/admin/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType,userId:e.userId}})}),getApiV1AdminUploadsStorageByUserId:e.query({query:e=>({url:`/api/v1/admin/uploads/storage/${e.userId}`})}),postApiV1AdminUserChangeState:e.mutation({query:e=>({url:"/api/v1/admin/user/change-state",method:"POST",body:e.changeUserState})}),getApiV1AdminUserByUserId:e.query({query:e=>({url:`/api/v1/admin/user/${e.userId}`})}),postApiV1Apps:e.mutation({query:e=>({url:"/api/v1/apps",method:"POST",body:e.body,params:{enable:e.enable}})}),getApiV1Apps:e.query({query:()=>({url:"/api/v1/apps"})}),getApiV1AppsEnabled:e.query({query:()=>({url:"/api/v1/apps/enabled"})}),getApiV1AppsGroupByGroupId:e.query({query:e=>({url:`/api/v1/apps/group/${e.groupId}`})}),deleteApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"DELETE"})}),putApiV1AppsGroupByGroupIdAndAppId:e.mutation({query:e=>({url:`/api/v1/apps/group/${e.groupId}/${e.appId}`,method:"PUT"})}),getApiV1AppsInstalled:e.query({query:()=>({url:"/api/v1/apps/installed"})}),getApiV1AppsUser:e.query({query:()=>({url:"/api/v1/apps/user"})}),deleteApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"DELETE"})}),putApiV1AppsUserByAppId:e.mutation({query:e=>({url:`/api/v1/apps/user/${e.appId}`,method:"PUT"})}),putApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"PUT",body:e.body,params:{enable:e.enable}})}),getApiV1AppsByAppId:e.query({query:e=>({url:`/api/v1/apps/${e.appId}`})}),deleteApiV1AppsByAppId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}`,method:"DELETE"})}),getApiV1AppsByAppIdData:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/data`,params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1AppsByAppIdData:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data`,method:"POST",body:e.dataCreate})}),putApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1AppsByAppIdDataAndId:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/data/${e.id}`,method:"DELETE"})}),putApiV1AppsByAppIdDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/default`,method:"PUT"})}),putApiV1AppsByAppIdDisable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/disable`,method:"PUT"})}),putApiV1AppsByAppIdEnable:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/enable`,method:"PUT"})}),getApiV1AppsByAppIdStats:e.query({query:e=>({url:`/api/v1/apps/${e.appId}/stats`})}),putApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"PUT"})}),deleteApiV1AppsByAppIdUserDefault:e.mutation({query:e=>({url:`/api/v1/apps/${e.appId}/user-default`,method:"DELETE"})}),getApiV1Block:e.query({query:e=>({url:"/api/v1/block",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1BlockBy:e.query({query:e=>({url:"/api/v1/block/by",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"DELETE"})}),postApiV1BlockByUserId:e.mutation({query:e=>({url:`/api/v1/block/${e.userId}`,method:"POST"})}),postApiV1Categories:e.mutation({query:e=>({url:"/api/v1/categories",method:"POST",body:e.categoryCreate})}),getApiV1CategoriesNameByCategoryName:e.query({query:e=>({url:`/api/v1/categories/name/${e.categoryName}`})}),putApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"PUT",body:e.categoryUpdate})}),getApiV1CategoriesByCategoryId:e.query({query:e=>({url:`/api/v1/categories/${e.categoryId}`})}),deleteApiV1CategoriesByCategoryId:e.mutation({query:e=>({url:`/api/v1/categories/${e.categoryId}`,method:"DELETE"})}),getApiV1CustomEmojis:e.query({query:e=>({url:"/api/v1/custom_emojis",params:{shortcode:e.shortcode}})}),deleteApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"DELETE",params:{shortcode:e.shortcode,category:e.category}})}),postApiV1CustomEmojis:e.mutation({query:e=>({url:"/api/v1/custom_emojis",method:"POST",body:e.emoji,params:{overwrite:e.overwrite}})}),getApiV1CustomEmojisExport:e.query({query:e=>({url:"/api/v1/custom_emojis/export",params:{category:e.category}})}),postApiV1CustomEmojisImport:e.mutation({query:e=>({url:"/api/v1/custom_emojis/import",method:"POST",body:e.body,params:{visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1CustomEmojisSearch:e.query({query:e=>({url:"/api/v1/custom_emojis/search",params:{shortcode:e.shortcode}})}),postApiV1CustomEmojisUpload:e.mutation({query:e=>({url:"/api/v1/custom_emojis/upload",method:"POST",body:e.body,params:{shortcode:e.shortcode,visible:e.visible,category:e.category,overwrite:e.overwrite,domain:e.domain}})}),getApiV1Data:e.query({query:e=>({url:"/api/v1/data",params:{owner:e.owner,tags:e.tags,type:e.type}})}),postApiV1Data:e.mutation({query:e=>({url:"/api/v1/data",method:"POST",body:e.dataCreate})}),putApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"PUT",body:e.dataCreate})}),deleteApiV1DataById:e.mutation({query:e=>({url:`/api/v1/data/${e.id}`,method:"DELETE"})}),getApiV1Events:e.query({query:e=>({url:"/api/v1/events",params:{limit:e.limit,offset:e.offset,organizerId:e.organizerId,ownerId:e.ownerId,username:e.username}})}),postApiV1Events:e.mutation({query:e=>({url:"/api/v1/events",method:"POST",body:e.createEvent})}),getApiV1EventsFollowing:e.query({query:e=>({url:"/api/v1/events/following",params:{limit:e.limit,offset:e.offset}})}),getApiV1EventsMy:e.query({query:e=>({url:"/api/v1/events/my",params:{limit:e.limit,notRespondedOnly:e.notRespondedOnly,offset:e.offset,organizedOnly:e.organizedOnly,past:e.past}})}),getApiV1EventsSettings:e.query({query:e=>({url:"/api/v1/events/settings",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsRegeneratePrivateId:e.mutation({query:e=>({url:"/api/v1/events/settings/regeneratePrivateId",method:"POST",params:{ownerId:e.ownerId}})}),postApiV1EventsSettingsUpdate:e.mutation({query:e=>({url:"/api/v1/events/settings/update",method:"POST",body:e.updateEventsSettings,params:{ownerId:e.ownerId}})}),putApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"PUT",body:e.updateEvent})}),getApiV1EventsByEventId:e.query({query:e=>({url:`/api/v1/events/${e.eventId}`})}),deleteApiV1EventsByEventId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}`,method:"DELETE"})}),postApiV1EventsByEventIdAccept:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/accept`,method:"POST"})}),getApiV1EventsByEventIdAttendees:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/attendees`,params:{limit:e.limit,offset:e.offset}})}),deleteApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"DELETE"})}),postApiV1EventsByEventIdAttendeesAndUserId:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/attendees/${e.userId}`,method:"POST"})}),postApiV1EventsByEventIdCancel:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/cancel`,method:"POST"})}),postApiV1EventsByEventIdInterested:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/interested`,method:"POST"})}),postApiV1EventsByEventIdJoin:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/join`,method:"POST"})}),deleteApiV1EventsByEventIdLeave:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/leave`,method:"DELETE"})}),postApiV1EventsByEventIdMaybe:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/maybe`,method:"POST"})}),getApiV1EventsByEventIdMutual:e.query({query:e=>({url:`/api/v1/events/${e.eventId}/mutual`,params:{limit:e.limit,offset:e.offset}})}),postApiV1EventsByEventIdReject:e.mutation({query:e=>({url:`/api/v1/events/${e.eventId}/reject`,method:"POST"})}),postApiV1FaspClear:e.mutation({query:()=>({url:"/api/v1/fasp/clear",method:"POST"})}),getApiV1FaspDebugV0CallbackCallbacks:e.query({query:()=>({url:"/api/v1/fasp/debug/v0/callback/callbacks"})}),deleteApiV1FaspDebugV0CallbackCallbacksById:e.mutation({query:e=>({url:`/api/v1/fasp/debug/v0/callback/callbacks/${e.id}`,method:"DELETE"})}),postApiV1FaspRegistration:e.mutation({query:e=>({url:"/api/v1/fasp/registration",method:"POST",body:e.registrationRequest})}),postApiV1FaspByProviderIdCapabilities:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/capabilities`,method:"POST",body:e.body})}),postApiV1FaspByProviderIdDebugCall:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/debug-call`,method:"POST",body:e.body})}),getApiV1FaspByProviderIdRegistrationFinish:e.query({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`})}),postApiV1FaspByProviderIdRegistrationFinish:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/registration-finish`,method:"POST"})}),postApiV1FaspByProviderIdRequestBackfill:e.mutation({query:e=>({url:`/api/v1/fasp/${e.providerId}/request_backfill`,method:"POST",params:{category:e.category}})}),putApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"PUT",body:e.createForum})}),getApiV1ForumsByForumId:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}`})}),deleteApiV1ForumsByForumId:e.mutation({query:e=>({url:`/api/v1/forums/${e.forumId}`,method:"DELETE"})}),getApiV1ForumsByForumIdCategories:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/categories`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdPosts:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/posts`,params:{forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1ForumsByForumIdTags:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1ForumsByForumIdTagsSearch:e.query({query:e=>({url:`/api/v1/forums/${e.forumId}/tags/search`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,q:e.q,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Geo:e.query({query:e=>({url:"/api/v1/geo",params:{latitude:e.latitude,longitude:e.longitude}})}),getApiV1Groups:e.query({query:e=>({url:"/api/v1/groups",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1Groups:e.mutation({query:e=>({url:"/api/v1/groups",method:"POST",body:e.groupCreate})}),getApiV1GroupsAccount:e.query({query:e=>({url:"/api/v1/groups/account",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserId:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsMemberByUserIdGroups:e.query({query:e=>({url:`/api/v1/groups/member/${e.userId}/groups`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1GroupsNameByGroupname:e.query({query:e=>({url:`/api/v1/groups/name/${e.groupname}`})}),getApiV1GroupsSearch:e.query({query:e=>({url:"/api/v1/groups/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,substring:e.substring,untilId:e.untilId}})}),putApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"PUT",body:e.groupUpdate})}),getApiV1GroupsByGroupId:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}`})}),deleteApiV1GroupsByGroupId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdForum:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`})}),postApiV1GroupsByGroupIdForum:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/forum`,method:"POST"})}),postApiV1GroupsByGroupIdJoin:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/join`,method:"POST"})}),putApiV1GroupsByGroupIdMedia:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/media`,method:"PUT",body:e.groupMediaUpdate})}),putApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"PUT",body:e.groupMemberUpdate})}),getApiV1GroupsByGroupIdMembers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),postApiV1GroupsByGroupIdMembers:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members`,method:"POST",body:e.groupMemberCreate})}),deleteApiV1GroupsByGroupIdMembersAndMemberId:e.mutation({query:e=>({url:`/api/v1/groups/${e.groupId}/members/${e.memberId}`,method:"DELETE"})}),getApiV1GroupsByGroupIdUsers:e.query({query:e=>({url:`/api/v1/groups/${e.groupId}/users`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1Import:e.query({query:()=>({url:"/api/v1/import"})}),postApiV1Import:e.mutation({query:e=>({url:"/api/v1/import",method:"POST",body:e.body,params:{overwrite:e.overwrite,type:e.type}})}),postApiV1ImportStartById:e.mutation({query:e=>({url:`/api/v1/import/start/${e.id}`,method:"POST"})}),getApiV1ImportById:e.query({query:e=>({url:`/api/v1/import/${e.id}`})}),getApiV1Instance:e.query({query:()=>({url:"/api/v1/instance"})}),getApiV1InstanceCountries:e.query({query:()=>({url:"/api/v1/instance/countries"})}),getApiV1InstanceDomains:e.query({query:e=>({url:"/api/v1/instance/domains",params:{domain:e.domain,limit:e.limit,software:e.software}})}),getApiV1InstanceExtendedDescription:e.query({query:()=>({url:"/api/v1/instance/extended_description"})}),getApiV1InstanceSupportedLanguages:e.query({query:()=>({url:"/api/v1/instance/supported_languages"})}),getApiV1InstanceTimezones:e.query({query:()=>({url:"/api/v1/instance/timezones"})}),getApiV1JobsListJobs:e.query({query:e=>({url:"/api/v1/jobs/list-jobs",params:{limit:e.limit,offset:e.offset}})}),getApiV1JobsListStats:e.query({query:e=>({url:"/api/v1/jobs/list-stats",params:{queue:e.queue}})}),getApiV1JobsListStatsAll:e.query({query:()=>({url:"/api/v1/jobs/list-stats-all"})}),getApiV1JobsLists:e.query({query:e=>({url:"/api/v1/jobs/lists",params:{limit:e.limit,listKind:e.listKind,offset:e.offset,queue:e.queue}})}),getApiV1JobsStats:e.query({query:()=>({url:"/api/v1/jobs/stats"})}),getApiV1JobsStatsPerDay:e.query({query:e=>({url:"/api/v1/jobs/stats-per-day",params:{lastDays:e.lastDays,queue:e.queue}})}),getApiV1Links:e.query({query:e=>({url:"/api/v1/links",params:{url:e.url}})}),getApiV1Lists:e.query({query:()=>({url:"/api/v1/lists"})}),postApiV1Lists:e.mutation({query:e=>({url:"/api/v1/lists",method:"POST",body:e.userListCreate})}),putApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"PUT",body:e.userListCreate})}),getApiV1ListsByListId:e.query({query:e=>({url:`/api/v1/lists/${e.listId}`})}),deleteApiV1ListsByListId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}`,method:"DELETE"})}),getApiV1ListsByListIdUsers:e.query({query:e=>({url:`/api/v1/lists/${e.listId}/users`})}),deleteApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"DELETE"})}),postApiV1ListsByListIdUsersAndUserId:e.mutation({query:e=>({url:`/api/v1/lists/${e.listId}/users/${e.userId}`,method:"POST"})}),getApiV1Metrics:e.query({query:e=>({url:"/api/v1/metrics",params:{from:e.from,period:e.period,to:e.to}})}),getApiV1MetricsTotals:e.query({query:()=>({url:"/api/v1/metrics/totals"})}),getApiV1Mute:e.query({query:e=>({url:"/api/v1/mute",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),deleteApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"DELETE"})}),postApiV1MuteByUserId:e.mutation({query:e=>({url:`/api/v1/mute/${e.userId}`,method:"POST",params:{duration:e.duration}})}),putApiV1Notes:e.mutation({query:e=>({url:"/api/v1/notes",method:"PUT",body:e.noteUpdate})}),getApiV1Notes:e.query({query:e=>({url:"/api/v1/notes",params:{userIds:e.userIds}})}),deleteApiV1NotesByUserId:e.mutation({query:e=>({url:`/api/v1/notes/${e.userId}`,method:"DELETE"})}),getApiV1Notifications:e.query({query:e=>({url:"/api/v1/notifications",params:{excludeTypes:e.excludeTypes,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,types:e.types,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1NotificationsCount:e.query({query:e=>({url:"/api/v1/notifications/count",params:{excludeTypes:e.excludeTypes,status:e.status,types:e.types}})}),postApiV1NotificationsMarkAll:e.mutation({query:e=>({url:"/api/v1/notifications/mark-all",method:"POST",params:{status:e.status}})}),getApiV1NotificationsById:e.query({query:e=>({url:`/api/v1/notifications/${e.id}`,params:{htmlContent:e.htmlContent}})}),postApiV1NotificationsByIdMark:e.mutation({query:e=>({url:`/api/v1/notifications/${e.id}/mark`,method:"POST",params:{status:e.status,htmlContent:e.htmlContent}})}),postApiV1PollsByPollIdRefresh:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/refresh`,method:"POST"})}),postApiV1PollsByPollIdVote:e.mutation({query:e=>({url:`/api/v1/polls/${e.pollId}/vote`,method:"POST",body:e.body})}),getApiV1Posts:e.query({query:e=>({url:"/api/v1/posts",params:{bookmarkedOnly:e.bookmarkedOnly,forumTag:e.forumTag,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,includeFollowStatus:e.includeFollowStatus,includeReply:e.includeReply,lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,listId:e.listId,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,ownerId:e.ownerId,ownerType:e.ownerType,pinned:e.pinned,repostKind:e.repostKind,repostOf:e.repostOf,repostsOnly:e.repostsOnly,search:e.search,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,userId:e.userId,username:e.username,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),postApiV1Posts:e.mutation({query:e=>({url:"/api/v1/posts",method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsBookmarks:e.query({query:()=>({url:"/api/v1/posts/bookmarks"})}),getApiV1PostsFollowing:e.query({query:e=>({url:"/api/v1/posts/following",params:{ignoreCache:e.ignoreCache,includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,htmlContent:e.htmlContent}})}),getApiV1PostsLiked:e.query({query:e=>({url:"/api/v1/posts/liked",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMentioned:e.query({query:e=>({url:"/api/v1/posts/mentioned",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,private:e.private,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsMy:e.query({query:e=>({url:"/api/v1/posts/my",params:{bookmarkedOnly:e.bookmarkedOnly,includeBookmarkStatus:e.includeBookmarkStatus,includeComments:e.includeComments,lastId:e.lastId,limit:e.limit,offset:e.offset,repostsOnly:e.repostsOnly,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),getApiV1PostsPins:e.query({query:e=>({url:"/api/v1/posts/pins",params:{postOnly:e.postOnly}})}),deleteApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"DELETE"})}),postApiV1PostsPinsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/pins/${e.postId}`,method:"POST"})}),getApiV1PostsPublic:e.query({query:e=>({url:"/api/v1/posts/public",params:{includeBookmarkStatus:e.includeBookmarkStatus,includeFollowStatus:e.includeFollowStatus,lastId:e.lastId,limit:e.limit,local:e.local,offset:e.offset,ownerType:e.ownerType,skipReposts:e.skipReposts,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),getApiV1PostsReplies:e.query({query:e=>({url:"/api/v1/posts/replies",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,userId:e.userId,username:e.username,htmlContent:e.htmlContent}})}),getApiV1PostsSubscribe:e.query({query:e=>({url:"/api/v1/posts/subscribe",params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostId:e.query({query:e=>({url:`/api/v1/posts/${e.postId}`,params:{includeBookmarkStatus:e.includeBookmarkStatus,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,withComments:e.withComments,withParents:e.withParents,withRepostedBy:e.withRepostedBy,withTranslation:e.withTranslation,withTrends:e.withTrends,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}`,method:"DELETE"})}),deleteApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"DELETE"})}),postApiV1PostsByPostIdBookmark:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/bookmark`,method:"POST"})}),getApiV1PostsByPostIdComments:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,params:{lastId:e.lastId,limit:e.limit,limitFirstLevelComments:e.limitFirstLevelComments,limitSecondLevelComments:e.limitSecondLevelComments,maxLevel:e.maxLevel,minLevel:e.minLevel,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdComments:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),putApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"PUT",body:e.createPost,params:{htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdCommentsAndCommentId:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/comments/${e.commentId}`,method:"DELETE"})}),postApiV1PostsByPostIdDetach:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/detach`,method:"POST"})}),getApiV1PostsByPostIdEdits:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/edits`,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdLikes:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),deleteApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"DELETE"})}),postApiV1PostsByPostIdLikes:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/likes`,method:"POST"})}),postApiV1PostsByPostIdRefreshCard:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/refresh-card`,method:"POST"})}),deleteApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"DELETE"})}),postApiV1PostsByPostIdRepost:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/repost`,method:"POST",body:e.createPost,params:{htmlContent:e.htmlContent}})}),getApiV1PostsByPostIdReposts:e.query({query:e=>({url:`/api/v1/posts/${e.postId}/reposts`,params:{includeFollowedStatus:e.includeFollowedStatus,includeFollowingStatus:e.includeFollowingStatus,kind:e.kind,lastId:e.lastId,limit:e.limit,offset:e.offset,skipDuplicates:e.skipDuplicates,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,htmlContent:e.htmlContent}})}),postApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"POST"})}),deleteApiV1PostsByPostIdSubscribe:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/subscribe`,method:"DELETE"})}),postApiV1PostsByPostIdTranslate:e.mutation({query:e=>({url:`/api/v1/posts/${e.postId}/translate`,method:"POST",params:{htmlContent:e.htmlContent,lang:e.lang}})}),getApiV1Rbac:e.query({query:()=>({url:"/api/v1/rbac"})}),getApiV1RbacActorsByActorIdPermissions:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/permissions`,params:{scope:e.scope}})}),getApiV1RbacActorsByActorIdRoles:e.query({query:e=>({url:`/api/v1/rbac/actors/${e.actorId}/roles`,params:{scope:e.scope}})}),putApiV1RbacRolesByRoleId:e.mutation({query:e=>({url:`/api/v1/rbac/roles/${e.roleId}`,method:"PUT",body:e.rbacRoleTemplate})}),getApiV1RbacScopesByScopeRoles:e.query({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`})}),postApiV1RbacScopesByScopeRoles:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles`,method:"POST",body:e.rbacRoleTemplate})}),deleteApiV1RbacScopesByScopeRolesAndRoleName:e.mutation({query:e=>({url:`/api/v1/rbac/scopes/${e.scope}/roles/${e.roleName}`,method:"DELETE"})}),getApiV1RbacByResource:e.query({query:e=>({url:`/api/v1/rbac/${e.resource}`})}),postApiV1Reports:e.mutation({query:e=>({url:"/api/v1/reports",method:"POST",body:e.createReport})}),putApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"PUT",body:e.rule})}),getApiV1Rules:e.query({query:()=>({url:"/api/v1/rules"})}),postApiV1Rules:e.mutation({query:e=>({url:"/api/v1/rules",method:"POST",params:{hint:e.hint,ordering:e.ordering,text:e.text}})}),postApiV1RulesReorder:e.mutation({query:e=>({url:"/api/v1/rules/reorder",method:"POST",body:e.body})}),deleteApiV1RulesById:e.mutation({query:e=>({url:`/api/v1/rules/${e.id}`,method:"DELETE"})}),getApiV1Search:e.query({query:e=>({url:"/api/v1/search",params:{actorType:e.actorType,fasp:e.fasp,filter:e.filter,followStatus:e.followStatus,followers:e.followers,following:e.following,lastId:e.lastId,limit:e.limit,offset:e.offset,ownerType:e.ownerType,q:e.q,resolve:e.resolve,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId,withComments:e.withComments,withParent:e.withParent,htmlContent:e.htmlContent}})}),deleteApiV1SessionsAll:e.mutation({query:()=>({url:"/api/v1/sessions/all",method:"DELETE"})}),getApiV1SessionsList:e.query({query:()=>({url:"/api/v1/sessions/list"})}),putApiV1SessionsRevokeAll:e.mutation({query:()=>({url:"/api/v1/sessions/revoke/all",method:"PUT"})}),putApiV1SessionsRevokeBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/revoke/${e.sessionKey}`,method:"PUT"})}),deleteApiV1SessionsBySessionKey:e.mutation({query:e=>({url:`/api/v1/sessions/${e.sessionKey}`,method:"DELETE"})}),putApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"PUT",body:e.platformSettings})}),getApiV1Settings:e.query({query:e=>({url:"/api/v1/settings",params:{keys:e.keys}})}),deleteApiV1Settings:e.mutation({query:e=>({url:"/api/v1/settings",method:"DELETE",params:{keys:e.keys}})}),putApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"PUT",body:e.userSettings})}),getApiV1SettingsUser:e.query({query:e=>({url:"/api/v1/settings/user",params:{keys:e.keys}})}),deleteApiV1SettingsUser:e.mutation({query:e=>({url:"/api/v1/settings/user",method:"DELETE",params:{keys:e.keys}})}),getApiV1TagsFeatured:e.query({query:e=>({url:"/api/v1/tags/featured",params:{userId:e.userId}})}),deleteApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"DELETE"})}),postApiV1TagsFeaturedByName:e.mutation({query:e=>({url:`/api/v1/tags/featured/${e.name}`,method:"POST"})}),postApiV1TagsFollowByName:e.mutation({query:e=>({url:`/api/v1/tags/follow/${e.name}`,method:"POST"})}),getApiV1TagsFollowed:e.query({query:()=>({url:"/api/v1/tags/followed"})}),getApiV1TagsTrending:e.query({query:()=>({url:"/api/v1/tags/trending"})}),postApiV1TagsUnfollowByName:e.mutation({query:e=>({url:`/api/v1/tags/unfollow/${e.name}`,method:"POST"})}),getApiV1TagsByName:e.query({query:e=>({url:`/api/v1/tags/${e.name}`,params:{historySince:e.historySince}})}),postApiV1TranslateText:e.mutation({query:e=>({url:"/api/v1/translate/text",method:"POST",body:e.translationRequest})}),getApiV1TrendsLinks:e.query({query:()=>({url:"/api/v1/trends/links"})}),getApiV1TrendsPosts:e.query({query:e=>({url:"/api/v1/trends/posts",params:{htmlContent:e.htmlContent}})}),getApiV1TrendsTags:e.query({query:()=>({url:"/api/v1/trends/tags"})}),postApiV1Uploads:e.mutation({query:e=>({url:"/api/v1/uploads",method:"POST",body:e.createUpload})}),postApiV1UploadsBatch:e.mutation({query:e=>({url:"/api/v1/uploads/batch",method:"POST",body:e.body})}),postApiV1UploadsList:e.mutation({query:e=>({url:"/api/v1/uploads/list",method:"POST",body:e.uploadList})}),getApiV1UploadsSearch:e.query({query:e=>({url:"/api/v1/uploads/search",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,tag:e.tag,untilId:e.untilId,uploadType:e.uploadType}})}),getApiV1UploadsUsages:e.query({query:e=>({url:"/api/v1/uploads/usages",params:{ids:e.ids}})}),getApiV1UploadsById:e.query({query:e=>({url:`/api/v1/uploads/${e.id}`})}),deleteApiV1UploadsById:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}`,method:"DELETE"})}),postApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"POST",body:e.body})}),putApiV1UploadsByIdMeta:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/meta`,method:"PUT",body:e.body})}),postApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"POST",body:e.body})}),putApiV1UploadsByIdTags:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/tags`,method:"PUT",body:e.body})}),postApiV1UploadsByIdThumbnail:e.mutation({query:e=>({url:`/api/v1/uploads/${e.id}/thumbnail`,method:"POST",body:e.changeVideoThumbnail})}),getApiV1UserAlias:e.query({query:()=>({url:"/api/v1/user-alias"})}),deleteApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"DELETE",params:{uri:e.uri}})}),postApiV1UserAlias:e.mutation({query:e=>({url:"/api/v1/user-alias",method:"POST",params:{acct:e.acct}})}),getApiV1UserDomainBlock:e.query({query:()=>({url:"/api/v1/user-domain-block"})}),deleteApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"DELETE"})}),postApiV1UserDomainBlockByDomain:e.mutation({query:e=>({url:`/api/v1/user-domain-block/${e.domain}`,method:"POST"})}),deleteApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"DELETE",params:{id:e.id,name:e.name}})}),postApiV1Users:e.mutation({query:e=>({url:"/api/v1/users",method:"POST",body:e.userCreate,params:{account_id:e.accountId,email:e.email,htmlContent:e.htmlContent}})}),getApiV1Users:e.query({query:e=>({url:"/api/v1/users",params:{full:e.full,username:e.username,htmlContent:e.htmlContent}})}),getApiV1UsersCheck:e.query({query:e=>({url:"/api/v1/users/check",params:{username:e.username}})}),getApiV1UsersConnections:e.query({query:e=>({url:"/api/v1/users/connections",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersFollowByUsername:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),postApiV1UsersFollowByUsernameAccept:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/accept`,method:"POST"})}),postApiV1UsersFollowByUsernamePend:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/pend`,method:"POST"})}),postApiV1UsersFollowByUsernameReject:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/reject`,method:"POST"})}),postApiV1UsersFollowByUsernameUndo:e.mutation({query:e=>({url:`/api/v1/users/follow/${e.username}/undo`,method:"POST",params:{domain:e.domain,mutual:e.mutual,scheme:e.scheme}})}),getApiV1UsersFollowees:e.query({query:e=>({url:"/api/v1/users/followees",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersFollowers:e.query({query:e=>({url:"/api/v1/users/followers",params:{anyStatus:e.anyStatus,lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInvite:e.mutation({query:e=>({url:"/api/v1/users/invite",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),postApiV1UsersInviteAccept:e.mutation({query:e=>({url:"/api/v1/users/invite/accept",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),getApiV1UsersInviteInviteeEntities:e.query({query:e=>({url:"/api/v1/users/invite/invitee/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeEntitiesByInviterUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/entities/${e.inviterUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInviters:e.query({query:e=>({url:"/api/v1/users/invite/invitee/inviters",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviteeInvitersByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/invitee/inviters/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterEntities:e.query({query:e=>({url:"/api/v1/users/invite/inviter/entities",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInvitees:e.query({query:e=>({url:"/api/v1/users/invite/inviter/invitees",params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),getApiV1UsersInviteInviterInviteesByEntityUser:e.query({query:e=>({url:`/api/v1/users/invite/inviter/invitees/${e.entityUser}`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,scheme:e.scheme,sortBy:e.sortBy,sortOrder:e.sortOrder,status:e.status,untilId:e.untilId}})}),postApiV1UsersInviteReject:e.mutation({query:e=>({url:"/api/v1/users/invite/reject",method:"POST",params:{entity:e.entity,inviter:e.inviter,scheme:e.scheme}})}),postApiV1UsersInviteUndo:e.mutation({query:e=>({url:"/api/v1/users/invite/undo",method:"POST",params:{entity:e.entity,invitee:e.invitee,scheme:e.scheme}})}),getApiV1UsersRelationships:e.query({query:e=>({url:"/api/v1/users/relationships",params:{filter:e.filter,targets:e.targets}})}),getApiV1UsersRemoteByUserNameFullFollowers:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/followers`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRemoteByUserNameFullFollowing:e.query({query:e=>({url:`/api/v1/users/remote/${e.userNameFull}/following`,params:{limit:e.limit,offset:e.offset}})}),getApiV1UsersRenameHistory:e.query({query:()=>({url:"/api/v1/users/rename-history"})}),putApiV1UsersByUserId:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}`,method:"PUT",body:e.userUpdate,params:{htmlContent:e.htmlContent}})}),getApiV1UsersByUserId:e.query({query:e=>({url:`/api/v1/users/${e.userId}`,params:{allowDeleted:e.allowDeleted,full:e.full,htmlContent:e.htmlContent}})}),getApiV1UsersByUserIdFollowers:e.query({query:e=>({url:`/api/v1/users/${e.userId}/followers`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),getApiV1UsersByUserIdFollowing:e.query({query:e=>({url:`/api/v1/users/${e.userId}/following`,params:{lastId:e.lastId,limit:e.limit,offset:e.offset,sortBy:e.sortBy,sortOrder:e.sortOrder,untilId:e.untilId}})}),putApiV1UsersByUserIdMedia:e.mutation({query:e=>({url:`/api/v1/users/${e.userId}/media`,method:"PUT",body:e.userUpdateMedia,params:{htmlContent:e.htmlContent}})})}),overrideExisting:!1}),{usePostApiV1AccountsAddReasonMutation:UQe,usePostApiV1AccountsAuthenticateEmailMutation:VQe,usePostApiV1AccountsAuthenticatePhoneMutation:qQe,usePutApiV1AccountsChangeNameMutation:WQe,usePostApiV1AccountsCheckCaptchaMutation:HQe,usePostApiV1AccountsConfirmEmailMutation:GQe,usePostApiV1AccountsConfirmPhoneMutation:KQe,useDeleteApiV1AccountsDeleteMutation:QQe,usePostApiV1AccountsEmailChangeConfirmMutation:YQe,usePostApiV1AccountsEmailChangeRequestMutation:ZQe,usePutApiV1AccountsEmailChangeResendCodeMutation:XQe,usePostApiV1AccountsFinishCreatingMutation:JQe,usePutApiV1AccountsGetTokenByHashMutation:eYe,usePostApiV1AccountsLoginsAddEmailPasswordMutation:tYe,usePostApiV1AccountsLoginsAddEmailPasswordConfirmMutation:nYe,usePutApiV1AccountsLoginsAddEmailPasswordResendCodeMutation:rYe,usePostApiV1AccountsLoginsAddPhoneMutation:aYe,useDeleteApiV1AccountsLoginsRemoveEmailPasswordMutation:oYe,useDeleteApiV1AccountsLoginsRemovePhoneMutation:sYe,usePostApiV1AccountsPasswordChangeConfirmMutation:iYe,usePostApiV1AccountsPasswordChangeRequestMutation:cYe,usePutApiV1AccountsPasswordChangeResendCodeMutation:lYe,usePostApiV1AccountsPasswordRecoverMutation:fYe,usePostApiV1AccountsPasswordRecoverChangeMutation:uYe,usePostApiV1AccountsPasswordRecoverCheckCodeMutation:dYe,usePostApiV1AccountsPhoneChangeConfirmAuthMutation:pYe,usePostApiV1AccountsPhoneChangeConfirmNewPhoneMutation:hYe,usePostApiV1AccountsPhoneChangeNewPhoneMutation:mYe,usePutApiV1AccountsPhoneChangeRequestMutation:gYe,usePutApiV1AccountsPhoneChangeResendCodeAuthMutation:yYe,usePutApiV1AccountsPhoneChangeResendCodeNewPhoneMutation:_Ye,useGetApiV1AccountsProfileQuery:vYe,usePostApiV1AccountsReselectUserMutation:bYe,usePutApiV1AccountsResendCodeByHashMutation:wYe,usePutApiV1AccountsResendEmailByHashMutation:kYe,usePostApiV1AccountsSignupMutation:xYe,usePostApiV1AccountsSignupPhoneMutation:SYe,usePostApiV1AccountsUserReselectUserMutation:EYe,useGetApiV1AccountsByIdQuery:CYe,useGetApiV1AddressesSuggestQuery:RYe,useGetApiV1AdminAccountByAccountIdQuery:AYe,useGetApiV1AdminAuditLogQuery:TYe,usePutApiV1AdminChangeEmailMutation:IYe,usePutApiV1AdminChangePasswordMutation:$Ye,usePutApiV1AdminChangeRoleAssignMutation:PYe,usePutApiV1AdminChangeRoleRevokeMutation:OYe,usePostApiV1AdminClearApErrorsMutation:zYe,usePostApiV1AdminCreateAccountMutation:MYe,useDeleteApiV1AdminDeleteMutation:NYe,useGetApiV1AdminDomainAllowQuery:DYe,usePostApiV1AdminDomainAllowMutation:LYe,useDeleteApiV1AdminDomainAllowByDomainMutation:jYe,usePutApiV1AdminDomainBlockMutation:FYe,useGetApiV1AdminDomainBlockQuery:BYe,usePostApiV1AdminDomainBlockMutation:UYe,useGetApiV1AdminDomainBlockListQuery:VYe,useDeleteApiV1AdminDomainBlockByDomainMutation:qYe,useGetApiV1AdminFederationQuery:WYe,useGetApiV1AdminFederationMetricsOperationsQuery:HYe,useGetApiV1AdminFederationMetricsRunningAverageSingleQuery:GYe,useGetApiV1AdminFederationMetricsRunningAveragesAllQuery:KYe,useGetApiV1AdminFederationByDomainQuery:QYe,usePostApiV1AdminFeedClearUserFeedMutation:YYe,useGetApiV1AdminFeedMetricsGlobalAllOperationQuery:ZYe,useGetApiV1AdminFeedMetricsGlobalAllOwnersQuery:XYe,useGetApiV1AdminFeedMetricsGlobalSingleQuery:JYe,useGetApiV1AdminFeedMetricsHistoryQuery:eZe,useGetApiV1AdminFeedMetricsHistoryAllQuery:tZe,useGetApiV1AdminFeedMetricsHistoryAllSingleOwnerQuery:nZe,useGetApiV1AdminFeedMetricsHistoryByOwnerTypeQuery:rZe,useGetApiV1AdminFeedMetricsRunningAverageSingleQuery:aZe,useGetApiV1AdminFeedMetricsRunningAveragesAllQuery:oZe,useGetApiV1AdminFeedMetricsSlowestOperationsQuery:sZe,useGetApiV1AdminFeedMetricsSlowestUsersQuery:iZe,useGetApiV1AdminFeedMetricsSlowestUsersAllQuery:cZe,useGetApiV1AdminFeedMetricsSlowestUsersSingleQuery:lZe,useGetApiV1AdminFeedMetricsSummaryQuery:fZe,useGetApiV1AdminFeedMetricsUserCountAllQuery:uZe,useGetApiV1AdminFeedMetricsUserCountSingleQuery:dZe,usePostApiV1AdminFeedRegenerateUserFeedMutation:pZe,usePostApiV1AdminPostsDeleteMutation:hZe,useDeleteApiV1AdminPurgeMutation:mZe,usePostApiV1AdminRegenerateKeysMutation:gZe,usePostApiV1AdminRegenerateKeysAllMutation:yZe,usePostApiV1AdminReportsDeletePostsMutation:_Ze,useGetApiV1AdminReportsListQuery:vZe,useGetApiV1AdminReportsByReportIdQuery:bZe,usePostApiV1AdminReportsByReportIdAddNoteMutation:wZe,usePostApiV1AdminReportsByReportIdAssignToSelfMutation:kZe,useDeleteApiV1AdminReportsByReportIdDeleteMutation:xZe,usePostApiV1AdminReportsByReportIdRemoveNoteMutation:SZe,usePostApiV1AdminReportsByReportIdReopenMutation:EZe,usePostApiV1AdminReportsByReportIdResolveMutation:CZe,usePostApiV1AdminReportsByReportIdUnassignMutation:RZe,usePostApiV1AdminRestartApDeliveryMutation:AZe,useGetApiV1AdminSearchQuery:TZe,usePutApiV1AdminSignupRequestsApproveByHashMutation:IZe,useDeleteApiV1AdminSignupRequestsDeleteByHashMutation:$Ze,useGetApiV1AdminSignupRequestsListQuery:PZe,usePutApiV1AdminSignupRequestsRejectByHashMutation:OZe,useGetApiV1AdminUploadsJobsQueueByQueueNameQuery:zZe,useGetApiV1AdminUploadsJobsSummaryQuery:MZe,useGetApiV1AdminUploadsSearchQuery:NZe,useGetApiV1AdminUploadsStorageByUserIdQuery:DZe,usePostApiV1AdminUserChangeStateMutation:LZe,useGetApiV1AdminUserByUserIdQuery:jZe,usePostApiV1AppsMutation:FZe,useGetApiV1AppsQuery:BZe,useGetApiV1AppsEnabledQuery:UZe,useGetApiV1AppsGroupByGroupIdQuery:VZe,useDeleteApiV1AppsGroupByGroupIdAndAppIdMutation:qZe,usePutApiV1AppsGroupByGroupIdAndAppIdMutation:WZe,useGetApiV1AppsInstalledQuery:HZe,useGetApiV1AppsUserQuery:GZe,useDeleteApiV1AppsUserByAppIdMutation:KZe,usePutApiV1AppsUserByAppIdMutation:QZe,usePutApiV1AppsByAppIdMutation:YZe,useGetApiV1AppsByAppIdQuery:ZZe,useDeleteApiV1AppsByAppIdMutation:XZe,useGetApiV1AppsByAppIdDataQuery:JZe,usePostApiV1AppsByAppIdDataMutation:eXe,usePutApiV1AppsByAppIdDataAndIdMutation:tXe,useDeleteApiV1AppsByAppIdDataAndIdMutation:nXe,usePutApiV1AppsByAppIdDefaultMutation:rXe,usePutApiV1AppsByAppIdDisableMutation:aXe,usePutApiV1AppsByAppIdEnableMutation:oXe,useGetApiV1AppsByAppIdStatsQuery:sXe,usePutApiV1AppsByAppIdUserDefaultMutation:iXe,useDeleteApiV1AppsByAppIdUserDefaultMutation:cXe,useGetApiV1BlockQuery:lXe,useGetApiV1BlockByQuery:fXe,useDeleteApiV1BlockByUserIdMutation:Qne,usePostApiV1BlockByUserIdMutation:Yne,usePostApiV1CategoriesMutation:uXe,useGetApiV1CategoriesNameByCategoryNameQuery:dXe,usePutApiV1CategoriesByCategoryIdMutation:pXe,useGetApiV1CategoriesByCategoryIdQuery:hXe,useDeleteApiV1CategoriesByCategoryIdMutation:mXe,useGetApiV1CustomEmojisQuery:gXe,useDeleteApiV1CustomEmojisMutation:yXe,usePostApiV1CustomEmojisMutation:_Xe,useGetApiV1CustomEmojisExportQuery:vXe,usePostApiV1CustomEmojisImportMutation:bXe,useGetApiV1CustomEmojisSearchQuery:wXe,usePostApiV1CustomEmojisUploadMutation:kXe,useGetApiV1DataQuery:xXe,usePostApiV1DataMutation:SXe,usePutApiV1DataByIdMutation:EXe,useDeleteApiV1DataByIdMutation:CXe,useGetApiV1EventsQuery:RXe,usePostApiV1EventsMutation:AXe,useGetApiV1EventsFollowingQuery:TXe,useGetApiV1EventsMyQuery:IXe,useGetApiV1EventsSettingsQuery:$Xe,usePostApiV1EventsSettingsRegeneratePrivateIdMutation:PXe,usePostApiV1EventsSettingsUpdateMutation:OXe,usePutApiV1EventsByEventIdMutation:zXe,useGetApiV1EventsByEventIdQuery:MXe,useDeleteApiV1EventsByEventIdMutation:NXe,usePostApiV1EventsByEventIdAcceptMutation:DXe,useGetApiV1EventsByEventIdAttendeesQuery:LXe,useDeleteApiV1EventsByEventIdAttendeesAndUserIdMutation:jXe,usePostApiV1EventsByEventIdAttendeesAndUserIdMutation:FXe,usePostApiV1EventsByEventIdCancelMutation:BXe,usePostApiV1EventsByEventIdInterestedMutation:UXe,usePostApiV1EventsByEventIdJoinMutation:VXe,useDeleteApiV1EventsByEventIdLeaveMutation:qXe,usePostApiV1EventsByEventIdMaybeMutation:WXe,useGetApiV1EventsByEventIdMutualQuery:HXe,usePostApiV1EventsByEventIdRejectMutation:GXe,usePostApiV1FaspClearMutation:KXe,useGetApiV1FaspDebugV0CallbackCallbacksQuery:QXe,useDeleteApiV1FaspDebugV0CallbackCallbacksByIdMutation:YXe,usePostApiV1FaspRegistrationMutation:ZXe,usePostApiV1FaspByProviderIdCapabilitiesMutation:XXe,usePostApiV1FaspByProviderIdDebugCallMutation:JXe,useGetApiV1FaspByProviderIdRegistrationFinishQuery:eJe,usePostApiV1FaspByProviderIdRegistrationFinishMutation:tJe,usePostApiV1FaspByProviderIdRequestBackfillMutation:nJe,usePutApiV1ForumsByForumIdMutation:rJe,useGetApiV1ForumsByForumIdQuery:aJe,useDeleteApiV1ForumsByForumIdMutation:oJe,useGetApiV1ForumsByForumIdCategoriesQuery:sJe,useGetApiV1ForumsByForumIdPostsQuery:iJe,useGetApiV1ForumsByForumIdTagsQuery:cJe,useGetApiV1ForumsByForumIdTagsSearchQuery:lJe,useGetApiV1GeoQuery:fJe,useGetApiV1GroupsQuery:uJe,usePostApiV1GroupsMutation:dJe,useGetApiV1GroupsAccountQuery:pJe,useGetApiV1GroupsMemberByUserIdQuery:hJe,useGetApiV1GroupsMemberByUserIdGroupsQuery:mJe,useGetApiV1GroupsNameByGroupnameQuery:gJe,useGetApiV1GroupsSearchQuery:yJe,usePutApiV1GroupsByGroupIdMutation:_Je,useGetApiV1GroupsByGroupIdQuery:vJe,useDeleteApiV1GroupsByGroupIdMutation:bJe,useGetApiV1GroupsByGroupIdForumQuery:wJe,usePostApiV1GroupsByGroupIdForumMutation:kJe,usePostApiV1GroupsByGroupIdJoinMutation:xJe,usePutApiV1GroupsByGroupIdMediaMutation:SJe,usePutApiV1GroupsByGroupIdMembersMutation:EJe,useGetApiV1GroupsByGroupIdMembersQuery:CJe,usePostApiV1GroupsByGroupIdMembersMutation:RJe,useDeleteApiV1GroupsByGroupIdMembersAndMemberIdMutation:AJe,useGetApiV1GroupsByGroupIdUsersQuery:TJe,useGetApiV1ImportQuery:IJe,usePostApiV1ImportMutation:$Je,usePostApiV1ImportStartByIdMutation:PJe,useGetApiV1ImportByIdQuery:OJe,useGetApiV1InstanceQuery:zJe,useGetApiV1InstanceCountriesQuery:MJe,useGetApiV1InstanceDomainsQuery:NJe,useGetApiV1InstanceExtendedDescriptionQuery:DJe,useGetApiV1InstanceSupportedLanguagesQuery:LJe,useGetApiV1InstanceTimezonesQuery:jJe,useGetApiV1JobsListJobsQuery:FJe,useGetApiV1JobsListStatsQuery:BJe,useGetApiV1JobsListStatsAllQuery:UJe,useGetApiV1JobsListsQuery:VJe,useGetApiV1JobsStatsQuery:qJe,useGetApiV1JobsStatsPerDayQuery:WJe,useGetApiV1LinksQuery:HJe,useGetApiV1ListsQuery:GJe,usePostApiV1ListsMutation:KJe,usePutApiV1ListsByListIdMutation:QJe,useGetApiV1ListsByListIdQuery:YJe,useDeleteApiV1ListsByListIdMutation:ZJe,useGetApiV1ListsByListIdUsersQuery:XJe,useDeleteApiV1ListsByListIdUsersAndUserIdMutation:JJe,usePostApiV1ListsByListIdUsersAndUserIdMutation:eet,useGetApiV1MetricsQuery:tet,useGetApiV1MetricsTotalsQuery:net,useGetApiV1MuteQuery:ret,useDeleteApiV1MuteByUserIdMutation:aet,usePostApiV1MuteByUserIdMutation:oet,usePutApiV1NotesMutation:set,useGetApiV1NotesQuery:iet,useDeleteApiV1NotesByUserIdMutation:cet,useGetApiV1NotificationsQuery:fet,useGetApiV1NotificationsCountQuery:uet,usePostApiV1NotificationsMarkAllMutation:det,useGetApiV1NotificationsByIdQuery:pet,usePostApiV1NotificationsByIdMarkMutation:het,usePostApiV1PollsByPollIdRefreshMutation:met,usePostApiV1PollsByPollIdVoteMutation:get,useGetApiV1PostsQuery:yet,usePostApiV1PostsMutation:_et,useGetApiV1PostsBookmarksQuery:vet,useGetApiV1PostsFollowingQuery:bet,useGetApiV1PostsLikedQuery:wet,useGetApiV1PostsMentionedQuery:ket,useGetApiV1PostsMyQuery:xet,useGetApiV1PostsPinsQuery:Eet,useDeleteApiV1PostsPinsByPostIdMutation:Cet,usePostApiV1PostsPinsByPostIdMutation:Ret,useGetApiV1PostsPublicQuery:Aet,useGetApiV1PostsRepliesQuery:Tet,useGetApiV1PostsSubscribeQuery:Iet,usePutApiV1PostsByPostIdMutation:$et,useGetApiV1PostsByPostIdQuery:Pet,useDeleteApiV1PostsByPostIdMutation:Oet,useDeleteApiV1PostsByPostIdBookmarkMutation:zet,usePostApiV1PostsByPostIdBookmarkMutation:Met,useGetApiV1PostsByPostIdCommentsQuery:Net,usePostApiV1PostsByPostIdCommentsMutation:Det,usePutApiV1PostsByPostIdCommentsAndCommentIdMutation:Let,useDeleteApiV1PostsByPostIdCommentsAndCommentIdMutation:jet,usePostApiV1PostsByPostIdDetachMutation:Fet,useGetApiV1PostsByPostIdEditsQuery:Bet,useGetApiV1PostsByPostIdLikesQuery:Uet,useDeleteApiV1PostsByPostIdLikesMutation:Vet,usePostApiV1PostsByPostIdLikesMutation:qet,usePostApiV1PostsByPostIdRefreshCardMutation:Wet,useDeleteApiV1PostsByPostIdRepostMutation:Het,usePostApiV1PostsByPostIdRepostMutation:Get,useGetApiV1PostsByPostIdRepostsQuery:Ket,usePostApiV1PostsByPostIdSubscribeMutation:Qet,useDeleteApiV1PostsByPostIdSubscribeMutation:Yet,usePostApiV1PostsByPostIdTranslateMutation:Zet,useGetApiV1RbacQuery:Xet,useGetApiV1RbacActorsByActorIdPermissionsQuery:Jet,useGetApiV1RbacActorsByActorIdRolesQuery:ett,usePutApiV1RbacRolesByRoleIdMutation:ttt,useGetApiV1RbacScopesByScopeRolesQuery:ntt,usePostApiV1RbacScopesByScopeRolesMutation:rtt,useDeleteApiV1RbacScopesByScopeRolesAndRoleNameMutation:att,useGetApiV1RbacByResourceQuery:ott,usePostApiV1ReportsMutation:stt,usePutApiV1RulesMutation:itt,useGetApiV1RulesQuery:ctt,usePostApiV1RulesMutation:ltt,usePostApiV1RulesReorderMutation:ftt,useDeleteApiV1RulesByIdMutation:utt,useGetApiV1SearchQuery:HL,useDeleteApiV1SessionsAllMutation:dtt,useGetApiV1SessionsListQuery:ptt,usePutApiV1SessionsRevokeAllMutation:htt,usePutApiV1SessionsRevokeBySessionKeyMutation:mtt,useDeleteApiV1SessionsBySessionKeyMutation:gtt,usePutApiV1SettingsMutation:ytt,useGetApiV1SettingsQuery:_tt,useDeleteApiV1SettingsMutation:vtt,usePutApiV1SettingsUserMutation:btt,useGetApiV1SettingsUserQuery:wtt,useDeleteApiV1SettingsUserMutation:ktt,useGetApiV1TagsFeaturedQuery:xtt,useDeleteApiV1TagsFeaturedByNameMutation:Stt,usePostApiV1TagsFeaturedByNameMutation:Ett,usePostApiV1TagsFollowByNameMutation:Ctt,useGetApiV1TagsFollowedQuery:Rtt,useGetApiV1TagsTrendingQuery:Att,usePostApiV1TagsUnfollowByNameMutation:Ttt,useGetApiV1TagsByNameQuery:Itt,usePostApiV1TranslateTextMutation:$tt,useGetApiV1TrendsLinksQuery:Ptt,useGetApiV1TrendsPostsQuery:Ott,useGetApiV1TrendsTagsQuery:ztt,usePostApiV1UploadsMutation:Mtt,usePostApiV1UploadsBatchMutation:Ntt,usePostApiV1UploadsListMutation:Dtt,useGetApiV1UploadsSearchQuery:Ltt,useGetApiV1UploadsUsagesQuery:jtt,useGetApiV1UploadsByIdQuery:Ftt,useDeleteApiV1UploadsByIdMutation:Btt,usePostApiV1UploadsByIdMetaMutation:Utt,usePutApiV1UploadsByIdMetaMutation:Vtt,usePostApiV1UploadsByIdTagsMutation:qtt,usePutApiV1UploadsByIdTagsMutation:Wtt,usePostApiV1UploadsByIdThumbnailMutation:Htt,useGetApiV1UserAliasQuery:Gtt,useDeleteApiV1UserAliasMutation:Ktt,usePostApiV1UserAliasMutation:Qtt,useGetApiV1UserDomainBlockQuery:Ytt,useDeleteApiV1UserDomainBlockByDomainMutation:Ztt,usePostApiV1UserDomainBlockByDomainMutation:Xtt,useDeleteApiV1UsersMutation:Jtt,usePostApiV1UsersMutation:ent,useGetApiV1UsersQuery:tnt,useGetApiV1UsersCheckQuery:nnt,useGetApiV1UsersConnectionsQuery:rnt,usePostApiV1UsersFollowByUsernameMutation:ant,usePostApiV1UsersFollowByUsernameAcceptMutation:Zne,usePostApiV1UsersFollowByUsernamePendMutation:ont,usePostApiV1UsersFollowByUsernameRejectMutation:Xne,usePostApiV1UsersFollowByUsernameUndoMutation:snt,useGetApiV1UsersFolloweesQuery:Jne,useGetApiV1UsersFollowersQuery:int,usePostApiV1UsersInviteMutation:cnt,usePostApiV1UsersInviteAcceptMutation:lnt,useGetApiV1UsersInviteInviteeEntitiesQuery:fnt,useGetApiV1UsersInviteInviteeEntitiesByInviterUserQuery:unt,useGetApiV1UsersInviteInviteeInvitersQuery:dnt,useGetApiV1UsersInviteInviteeInvitersByEntityUserQuery:pnt,useGetApiV1UsersInviteInviterEntitiesQuery:hnt,useGetApiV1UsersInviteInviterInviteesQuery:mnt,useGetApiV1UsersInviteInviterInviteesByEntityUserQuery:gnt,usePostApiV1UsersInviteRejectMutation:ynt,usePostApiV1UsersInviteUndoMutation:_nt,useGetApiV1UsersRelationshipsQuery:vnt,useGetApiV1UsersRemoteByUserNameFullFollowersQuery:bnt,useGetApiV1UsersRemoteByUserNameFullFollowingQuery:wnt,useGetApiV1UsersRenameHistoryQuery:knt,usePutApiV1UsersByUserIdMutation:xnt,useGetApiV1UsersByUserIdQuery:Snt,useGetApiV1UsersByUserIdFollowersQuery:Ent,useGetApiV1UsersByUserIdFollowingQuery:ere,usePutApiV1UsersByUserIdMediaMutation:Cnt}=nr;var NP,Oy={exports:{}},tre=Oy.exports;
|
|
20
20
|
/**
|
|
21
21
|
* @license
|
|
22
22
|
* Lodash <https://lodash.com/>
|
|
@@ -86,7 +86,7 @@ var RG=Object.defineProperty,AG=(e,t,n)=>t in e?RG(e,t,{enumerable:!0,configurab
|
|
|
86
86
|
*
|
|
87
87
|
* @license MIT
|
|
88
88
|
*/
|
|
89
|
-
function PR(){return PR=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},PR.apply(this,arguments)}var XP,JP;function xp(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function JL(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 Oae(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?JL(e):e;return{pathname:n?n.startsWith("/")?n:zae(n,t):t,search:jae(r),hash:Fae(a)}}function zae(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("/"):"/"}function fS(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 Mae(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Nae(e,t){let n=Mae(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function Dae(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=JL(e):(a=PR({},e),xp(!a.pathname||!a.pathname.includes("?"),fS("?","pathname","search",a)),xp(!a.pathname||!a.pathname.includes("#"),fS("#","pathname","hash",a)),xp(!a.search||!a.search.includes("#"),fS("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=Oae(a,o),l=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(XP||(XP={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(JP||(JP={}));const Lae=e=>e.join("/").replace(/\/\/+/g,"/"),jae=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Fae=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ej=["post","put","patch","delete"];new Set(ej);const Bae=["get",...ej];function OR(){return OR=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},OR.apply(this,arguments)}new Set(Bae);const tj=v.createContext(null),nj=v.createContext(null),rj=v.createContext(null),zT=v.createContext({outlet:null,matches:[],isDataRoute:!1});function aj(){return null!=v.useContext(rj)}function e2(){return aj()||xp(!1),v.useContext(rj).location}function oj(e){v.useContext(nj).static||v.useLayoutEffect(e)}function MT(){let{isDataRoute:e}=v.useContext(zT);return e?Hae():Uae()}function Uae(){aj()||xp(!1);let e=v.useContext(tj),{basename:t,future:n,navigator:r}=v.useContext(nj),{matches:a}=v.useContext(zT),{pathname:o}=e2(),i=JSON.stringify(Nae(a,n.v7_relativeSplatPath)),s=v.useRef(!1);return oj((()=>{s.current=!0})),v.useCallback((function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let c=Dae(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:Lae([t,c.pathname])),(a.replace?r.replace:r.push)(c,a.state,a)}),[t,r,i,o,e])}var sj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sj||{}),ij=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}(ij||{});function Vae(e){let t=v.useContext(tj);return t||xp(!1),t}function qae(e){let t=v.useContext(zT);return t||xp(!1),t}function Wae(e){let t=qae(),n=t.matches[t.matches.length-1];return n.route.id||xp(!1),n.route.id}function Hae(){let{router:e}=Vae(sj.UseNavigateStable),t=Wae(ij.UseNavigateStable),n=v.useRef(!1);return oj((()=>{n.current=!0})),v.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,OR({fromRouteId:t},a)))}),[e,t])}new Promise((()=>{}));const Gae=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:a}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),o=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return a.toString()&&!n?`${o}?${a.toString()}`:o},Kae=e=>e&&Ki.values(e).length?"?"+new URLSearchParams(e).toString():"",Qae={data:null,isPending:!1,isSuccess:!1},Jo=qr({name:"userNoHTML",initialState:Qae,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var eO,uS={};function Yae(){return eO||(eO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(uS)),uS}var Zae=Yae();const Xae=sf(Zae),NT=e=>e,cj=mo(NT,(e=>e.data)),Jae=mo(NT,(e=>e.error)),eoe=mo(NT,(e=>e.isPending)),toe=mo(cj,(e=>null==e?void 0:e.rules)),noe={data:null,isPending:!1},mw=qr({name:"instanceInfo",initialState:noe,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:cj,selectInstanceInfoError:Jae,selectInstanceInfoPending:eoe,selectPlatformRules:toe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),roe={data:null,isPending:!1,isSuccess:!1},S_=qr({name:"profileSettings",initialState:roe,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),$o={followAutoAccept:"user.follow.autoAccept",notificationsPrefsFollow:"user.notifications.prefs.follow",notificationsPrefsFollow_request:"user.notifications.prefs.followRequest",notificationsPrefsLike:"user.notifications.prefs.like",notificationsPrefsComment:"user.notifications.prefs.comment",notificationsPrefsMention:"user.notifications.prefs.mention",notificationsPrefsRepost:"user.notifications.prefs.repost",notificationsPrefsList_post_create:"user.notifications.prefs.list_post_create",notificationsPrefsPost_update:"user.notifications.prefs.post_update",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsAlwaysSendEmail:"user.notifications.prefs.alwaysSendEmail",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},aoe={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},ooe={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},soe={data:null,isPending:!1},{posts:dS,uploadsPolicyDoc:tO,uploadsPolicyAudio:pS,uploadsPolicyImage:Ib,uploadsPolicyVideo:gy,registration:ioe,captcha:coe}=ooe,{captcha:loe,language:foe,translation:uoe,openai:doe}=aoe,r0=e=>e.data,poe=mo(r0,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[dS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[dS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[dS])?void 0:r.max_pins)||0}})),lj=mo(r0,(e=>{var t,n,r;return{...null==e?void 0:e[Ib],maxSize:(null==(t=null==e?void 0:e[Ib])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Ib])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Ib])?void 0:r.maxResolution)||0}})),fj=mo(r0,(e=>{var t,n,r,a;return{...null==e?void 0:e[gy],maxSize:(null==(t=null==e?void 0:e[gy])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[gy])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[gy])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[gy])?void 0:a.maxResolution)||0}})),uj=mo(r0,(e=>{var t,n;return{...null==e?void 0:e[pS],maxSize:null==(t=null==e?void 0:e[pS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[pS])?void 0:n.keepOriginal)||0}})),dj=mo(r0,(e=>{var t;return{...null==e?void 0:e[tO],maxSize:(null==(t=null==e?void 0:e[tO])?void 0:t.maxSize)||0}})),pj=mo([lj,fj,uj,dj],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),hoe=mo(pj,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),I1=qr({name:"platformSettings",initialState:soe,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:r0,selectPostConfig:poe,selectDocPolicy:dj,selectImagePolicy:lj,selectVideoPolicy:fj,selectAudioPolicy:uj,selectSupportedExtensions:pj,selectFullExtensionsList:hoe,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[ioe]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[foe]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[uoe]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[doe]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[coe]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[loe]}}}),moe=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},goe={deviceType:moe()},DT=qr({name:"ui",initialState:goe,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function yoe(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const _oe={isOnline:yoe()},voe=qr({name:"network",initialState:_oe,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var boe={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"99899611aac5fbc0",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.129",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"};const Dm=JK(nr,voe,DT,ss,Kn,Jo,mw,lr,S_,I1);let zy;const woe=e=>{const t=SK({devTools:{name:boe.APP_NAME},reducer:Dm,preloadedState:e,middleware:e=>e().concat(nr.middleware,Xae)});return zy=t,t},W1=e=>zy||(zy=woe(e),zy),koe={path:"",transitionPath:""},ii=qr({name:"router",initialState:koe,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(Dm),hj=(e,t)=>{const n=Kae(null==t?void 0:t.queryParams);return(null!=t&&t.props&&!Ki.isNumber(e)?Gae(e,null==t?void 0:t.props):e)+n},xoe=e=>!(null==e||!e.target);function Soe(e,t){const n=hj(e,t);if(xoe(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else W1().dispatch(ii.actions.requestChangePath(n))}const LT=()=>Soe,e_=({to:e,props:t,children:n,target:r,queryParams:a,className:o,disabled:i,onClick:s,...c})=>{const l=LT(),u=hj(e,{queryParams:a,props:t}),{baseUrl:f}=TT.get(),d=r?u:`${f}${u}`;return O.jsx("a",{href:d,target:r,onClick:n=>{n.preventDefault(),!i&&(null==s||s(n),l(e,{queryParams:a,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:o,...c,children:n})};var nO,My={exports:{}},Eoe=My.exports;
|
|
89
|
+
function PR(){return PR=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},PR.apply(this,arguments)}var XP,JP;function xp(e,t){if(!1===e||null===e||typeof e>"u")throw new Error(t)}function JL(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 Oae(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?JL(e):e;return{pathname:n?n.startsWith("/")?n:zae(n,t):t,search:jae(r),hash:Fae(a)}}function zae(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("/"):"/"}function fS(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 Mae(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Nae(e,t){let n=Mae(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function Dae(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=JL(e):(a=PR({},e),xp(!a.pathname||!a.pathname.includes("?"),fS("?","pathname","search",a)),xp(!a.pathname||!a.pathname.includes("#"),fS("#","pathname","hash",a)),xp(!a.search||!a.search.includes("#"),fS("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=Oae(a,o),l=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(XP||(XP={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(JP||(JP={}));const Lae=e=>e.join("/").replace(/\/\/+/g,"/"),jae=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Fae=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",ej=["post","put","patch","delete"];new Set(ej);const Bae=["get",...ej];function OR(){return OR=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},OR.apply(this,arguments)}new Set(Bae);const tj=v.createContext(null),nj=v.createContext(null),rj=v.createContext(null),zT=v.createContext({outlet:null,matches:[],isDataRoute:!1});function aj(){return null!=v.useContext(rj)}function e2(){return aj()||xp(!1),v.useContext(rj).location}function oj(e){v.useContext(nj).static||v.useLayoutEffect(e)}function MT(){let{isDataRoute:e}=v.useContext(zT);return e?Hae():Uae()}function Uae(){aj()||xp(!1);let e=v.useContext(tj),{basename:t,future:n,navigator:r}=v.useContext(nj),{matches:a}=v.useContext(zT),{pathname:o}=e2(),i=JSON.stringify(Nae(a,n.v7_relativeSplatPath)),s=v.useRef(!1);return oj((()=>{s.current=!0})),v.useCallback((function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n)return void r.go(n);let c=Dae(n,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:Lae([t,c.pathname])),(a.replace?r.replace:r.push)(c,a.state,a)}),[t,r,i,o,e])}var sj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(sj||{}),ij=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}(ij||{});function Vae(e){let t=v.useContext(tj);return t||xp(!1),t}function qae(e){let t=v.useContext(zT);return t||xp(!1),t}function Wae(e){let t=qae(),n=t.matches[t.matches.length-1];return n.route.id||xp(!1),n.route.id}function Hae(){let{router:e}=Vae(sj.UseNavigateStable),t=Wae(ij.UseNavigateStable),n=v.useRef(!1);return oj((()=>{n.current=!0})),v.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,OR({fromRouteId:t},a)))}),[e,t])}new Promise((()=>{}));const Gae=(e,t,{skipParams:n=!1}={})=>{const{props:r,params:a}=Object.keys(t).reduce(((n,r)=>(e.includes(`:${r}`)?n.props[r]=t[r]:n.params.set(r,t[r]),n)),{props:{},params:new URLSearchParams}),o=Object.keys(r).reduce(((e,t)=>{const n=new RegExp(`/:${t}\\?`,"g");return(e=e.replace(n,`/${r[t]}`)).replace(new RegExp(`:${t}`,"g"),r[t])}),e).replace(/\/:[^/]+?\?/g,"");return a.toString()&&!n?`${o}?${a.toString()}`:o},Kae=e=>e&&Ki.values(e).length?"?"+new URLSearchParams(e).toString():"",Qae={data:null,isPending:!1,isSuccess:!1},Jo=qr({name:"userNoHTML",initialState:Qae,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}});var eO,uS={};function Yae(){return eO||(eO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=[],n=[],r=[],a=[],o=(e,t)=>{if("function"!=typeof e)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeBefore=e=>o(e,t),e.subscribeAfter=e=>o(e,n);const i=(e,t)=>{if(!e.action)throw new Error("Expected the action to be a string.");if("function"!=typeof e.listener)throw new Error("Expected the listener to be a function.");return t.push(e),()=>{const n=t.indexOf(e);t.splice(n,1)}};e.subscribeActionBefore=(e,t)=>i({action:e,listener:t},r),e.subscribeActionAfter=(e,t)=>i({action:e,listener:t},a),e.unsubscribeBefore=()=>{t.length=0},e.unsubscribeActionsBefore=()=>{r.length=0},e.unsubscribeAfter=()=>{n.length=0},e.unsubscribeActionsAfter=()=>{a.length=0},e.unsubscribeAll=()=>{e.unsubscribeBefore(),e.unsubscribeActionsBefore(),e.unsubscribeAfter(),e.unsubscribeActionsAfter()};const s=(e,t)=>{const n=e.filter((({action:e})=>e!==t));e.length=0,e.concat(n)};e.unsubscribeActionBefore=e=>{s(r,e)},e.unsubscribeActionAfter=e=>{s(a,e)},e.unsubscribeActionAll=t=>{e.unsubscribeActionBefore(t),e.unsubscribeActionAfter(t)};const c=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r(e)}},l=(e,t)=>{for(let n=t.length-1;n>=0;n--){const r=t[n];"object"==typeof e&&r.action===e.type&&r.listener(e)}};e.subscribeActionMiddleware=e=>e=>o=>{c(o,t),l(o,r);const i=e(o);return c(o,n),l(o,a),i},e.default=e.subscribeActionMiddleware}(uS)),uS}var Zae=Yae();const Xae=sf(Zae),NT=e=>e,cj=mo(NT,(e=>e.data)),Jae=mo(NT,(e=>e.error)),eoe=mo(NT,(e=>e.isPending)),toe=mo(cj,(e=>null==e?void 0:e.rules)),noe={data:null,isPending:!1},mw=qr({name:"instanceInfo",initialState:noe,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:cj,selectInstanceInfoError:Jae,selectInstanceInfoPending:eoe,selectPlatformRules:toe,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}}),roe={data:null,isPending:!1,isSuccess:!1},S_=qr({name:"profileSettings",initialState:roe,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectProfileSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),$o={followAutoAccept:"user.follow.autoAccept",notificationsPrefsFollow:"user.notifications.prefs.follow",notificationsPrefsFollow_request:"user.notifications.prefs.followRequest",notificationsPrefsLike:"user.notifications.prefs.like",notificationsPrefsComment:"user.notifications.prefs.comment",notificationsPrefsMention:"user.notifications.prefs.mention",notificationsPrefsRepost:"user.notifications.prefs.repost",notificationsPrefsList_post_create:"user.notifications.prefs.list_post_create",notificationsPrefsPost_update:"user.notifications.prefs.post_update",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsAlwaysSendEmail:"user.notifications.prefs.alwaysSendEmail",notificationsShowPopup:"user.notifications.prefs.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers",translation:"user.translation"},aoe={sms:"wellesley.admin.sms",auth:"wellesley.admin.auth",openai:"wellesley.admin.openai",uploads:"wellesley.admin.uploads",captcha:"wellesley.admin.captcha",language:"wellesley.admin.language",mediacache:"wellesley.admin.mediacache",translation:"wellesley.admin.translation"},ooe={posts:"wellesley.posts",registration:"wellesley.registration",confirmationCode:"wellesley.confirmationCode",uploadsPolicyDoc:"wellesley.uploads.policy.doc",uploadsPolicyAudio:"wellesley.uploads.policy.audio",uploadsPolicyImage:"wellesley.uploads.policy.image",uploadsPolicyVideo:"wellesley.uploads.policy.video",captcha:"wellesley.captcha"},soe={data:null,isPending:!1},{posts:dS,uploadsPolicyDoc:tO,uploadsPolicyAudio:pS,uploadsPolicyImage:Ib,uploadsPolicyVideo:gy,registration:ioe,captcha:coe}=ooe,{captcha:loe,language:foe,translation:uoe,openai:doe}=aoe,r0=e=>e.data,poe=mo(r0,(e=>{var t,n,r;return{max_characters:(null==(t=null==e?void 0:e[dS])?void 0:t.max_characters)||0,max_media_attachments:(null==(n=null==e?void 0:e[dS])?void 0:n.max_media_attachments)||0,max_pins:(null==(r=null==e?void 0:e[dS])?void 0:r.max_pins)||0}})),lj=mo(r0,(e=>{var t,n,r;return{...null==e?void 0:e[Ib],maxSize:(null==(t=null==e?void 0:e[Ib])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[Ib])?void 0:n.maxMatrix)||0,maxResolution:(null==(r=null==e?void 0:e[Ib])?void 0:r.maxResolution)||0}})),fj=mo(r0,(e=>{var t,n,r,a;return{...null==e?void 0:e[gy],maxSize:(null==(t=null==e?void 0:e[gy])?void 0:t.maxSize)||0,maxMatrix:(null==(n=null==e?void 0:e[gy])?void 0:n.maxMatrix)||0,maxDuration:(null==(r=null==e?void 0:e[gy])?void 0:r.maxDuration)||0,maxResolution:(null==(a=null==e?void 0:e[gy])?void 0:a.maxResolution)||0}})),uj=mo(r0,(e=>{var t,n;return{...null==e?void 0:e[pS],maxSize:null==(t=null==e?void 0:e[pS])?void 0:t.maxSize,keepOriginal:(null==(n=null==e?void 0:e[pS])?void 0:n.keepOriginal)||0}})),dj=mo(r0,(e=>{var t;return{...null==e?void 0:e[tO],maxSize:(null==(t=null==e?void 0:e[tO])?void 0:t.maxSize)||0}})),pj=mo([lj,fj,uj,dj],((e,t,n,r)=>({IMAGE:null==e?void 0:e.extensions,VIDEO:null==t?void 0:t.extensions,AUDIO:null==n?void 0:n.extensions,DOCUMENT:null==r?void 0:r.extensions}))),hoe=mo(pj,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),I1=qr({name:"platformSettings",initialState:soe,reducers:{setSettings:(e,t)=>{e.data={...e.data,...t.payload}},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectSettings:r0,selectPostConfig:poe,selectDocPolicy:dj,selectImagePolicy:lj,selectVideoPolicy:fj,selectAudioPolicy:uj,selectSupportedExtensions:pj,selectFullExtensionsList:hoe,selectRegistration:e=>{var t;return null==(t=e.data)?void 0:t[ioe]},selectLanguageDetection:e=>{var t;return null==(t=e.data)?void 0:t[foe]},selectLanguageTranslation:e=>{var t;return null==(t=e.data)?void 0:t[uoe]},selectOpenai:e=>{var t;return null==(t=e.data)?void 0:t[doe]},selectCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[coe]},selectAdminCaptcha:e=>{var t;return null==(t=e.data)?void 0:t[loe]}}}),moe=()=>{const e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"},goe={deviceType:moe()},DT=qr({name:"ui",initialState:goe,reducers:{setDeviceType:(e,{payload:t})=>{e.deviceType=t}},selectors:{selectDeviceType:e=>e.deviceType,selectIsMobile:e=>"mobile"===e.deviceType,selectIsTablet:e=>"tablet"===e.deviceType,selectIsDesktop:e=>"desktop"===e.deviceType}});function yoe(){return!(typeof navigator<"u"&&"boolean"==typeof navigator.onLine)||navigator.onLine}const _oe={isOnline:yoe()},voe=qr({name:"network",initialState:_oe,reducers:{setOnline:(e,{payload:t})=>{e.isOnline=t}},selectors:{selectOnline:e=>e.isOnline}});var boe={USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.16.0 linux x64 workspaces/true",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_config_noproxy:"",HOME:"/home/teamcity",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/notifications/package.json",npm_config_userconfig:"/home/teamcity/.npmrc",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",COLOR:"1",npm_config_progress:"",TEMP:"/mnt/agent/temp/buildTmp",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_config_npm_version:"10.9.2",npm_config_cache:"/home/teamcity/.npm",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/notifications/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/packages/node_modules/.bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/70fcd8585843667f/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.7/bin:/home/teamcity/.rvm/gems/ruby-3.3.7@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.7/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-21-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.16.0/bin",TURBO_HASH:"7d05166ba08ea35a",NODE:"/home/teamcity/.nvm/versions/node/v22.16.0/bin/node",npm_package_name:"@wellesley/notifications",npm_config_color:"always",DOMAIN_ENV:"test",LANG:"en_US.UTF-8",TURBO_TEAM:"wellesley",TMP:"/mnt/agent/temp/buildTmp",TURBO_API:"https://turborepo-remote-cache-fo3np.ondigitalocean.app",npm_lifecycle_script:"tsc && vite build",SHELL:"/bin/bash",npm_package_version:"1.0.130",npm_lifecycle_event:"build",TURBO_CACHE:"remote:rw",SENTRY_MAPS_UPLOAD:"true",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.16.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",PWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.16.0/lib/node_modules/npm/bin/npm-cli.js",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.16.0",npm_command:"run-script",TURBO_TOKEN:"wellesley-turbo-token",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/notifications",EDITOR:"vi",NODE_ENV:"production",APP_NAME:"@wellesley/notifications"};const Dm=JK(nr,voe,DT,ss,Kn,Jo,mw,lr,S_,I1);let zy;const woe=e=>{const t=SK({devTools:{name:boe.APP_NAME},reducer:Dm,preloadedState:e,middleware:e=>e().concat(nr.middleware,Xae)});return zy=t,t},W1=e=>zy||(zy=woe(e),zy),koe={path:"",transitionPath:""},ii=qr({name:"router",initialState:koe,reducers:{setPath:(e,{payload:t})=>{t!==e.path&&(e.path=t)},requestChangePath:(e,{payload:t})=>{t!==e.transitionPath&&(e.transitionPath=t)}},selectors:{selectPath:e=>e.path,selectTransitionPath:e=>e.transitionPath}}).injectInto(Dm),hj=(e,t)=>{const n=Kae(null==t?void 0:t.queryParams);return(null!=t&&t.props&&!Ki.isNumber(e)?Gae(e,null==t?void 0:t.props):e)+n},xoe=e=>!(null==e||!e.target);function Soe(e,t){const n=hj(e,t);if(xoe(t)&&"_blank"===t.target){const{origin:e}=new URL(document.referrer||window.location.origin),t=n.includes("://")?n:e+n;window.open(t,"_blank")}else W1().dispatch(ii.actions.requestChangePath(n))}const LT=()=>Soe,e_=({to:e,props:t,children:n,target:r,queryParams:a,className:o,disabled:i,onClick:s,...c})=>{const l=LT(),u=hj(e,{queryParams:a,props:t}),{baseUrl:f}=TT.get(),d=r?u:`${f}${u}`;return O.jsx("a",{href:d,target:r,onClick:n=>{n.preventDefault(),!i&&(null==s||s(n),l(e,{queryParams:a,props:t,target:n.ctrlKey||n.metaKey?"_blank":r}))},className:o,...c,children:n})};var nO,My={exports:{}},Eoe=My.exports;
|
|
90
90
|
/**
|
|
91
91
|
* @license
|
|
92
92
|
* Lodash <https://lodash.com/>
|