@wellesley/error-kit 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/index.mjs +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pa={exports:{}},ti={},Fa={exports:{}},Ee={};
1
+ var Lf,Pf,Ff,Bf,Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pa={exports:{}},ti={},Fa={exports:{}},Ee={};
2
2
  /**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -7,7 +7,7 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
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 nE(){if(Lf)return Ee;Lf=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,p={};function m(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}function y(){}function g(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)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,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var _=g.prototype=new y;_.constructor=g,h(_,m.prototype),_.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,k={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var i,o={},s=null,a=null;if(null!=n)for(i in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,i)&&!w.hasOwnProperty(i)&&(o[i]=n[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:t,type:e,key:s,ref:a,props:o,_owner:k.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function C(n,r,i,o,s){var a=typeof n;("undefined"===a||"boolean"===a)&&(n=null);var u=!1;if(null===n)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case t:case e:u=!0}}if(u)return s=s(u=n),n=""===o?"."+I(u,0):o,v(s)?(i="",null!=n&&(i=n.replace(x,"$&/")+"/"),C(s,r,i,"",(function(t){return t}))):null!=s&&(E(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,i+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(u=0,o=""===o?".":o+":",v(n))for(var c=0;c<n.length;c++){var l=o+I(a=n[c],c);u+=C(a,r,i,l,s)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(n),"function"==typeof l)for(n=l.call(n),c=0;!(a=n.next()).done;)u+=C(a=a.value,r,i,l=o+I(a,c++),s);else if("object"===a)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 u}function T(t,e,n){if(null==t)return t;var r=[],i=0;return C(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var A={current:null},M={transition:null},O={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};return Ee.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ee.Component=m,Ee.Fragment=n,Ee.Profiler=i,Ee.PureComponent=g,Ee.StrictMode=r,Ee.Suspense=u,Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,Ee.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=h({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=k.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in n)b.call(n,c)&&!w.hasOwnProperty(c)&&(i[c]=void 0===n[c]&&void 0!==u?u[c]:n[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:t,type:e.type,key:o,ref:s,props:i,_owner:a}},Ee.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:t},t.Consumer=t},Ee.createElement=S,Ee.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(t){return{$$typeof:a,render:t}},Ee.isValidElement=E,Ee.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:R}},Ee.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},Ee.startTransition=function(t){var e=M.transition;M.transition={};try{t()}finally{M.transition=e}},Ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ee.useCallback=function(t,e){return A.current.useCallback(t,e)},Ee.useContext=function(t){return A.current.useContext(t)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(t){return A.current.useDeferredValue(t)},Ee.useEffect=function(t,e){return A.current.useEffect(t,e)},Ee.useId=function(){return A.current.useId()},Ee.useImperativeHandle=function(t,e,n){return A.current.useImperativeHandle(t,e,n)},Ee.useInsertionEffect=function(t,e){return A.current.useInsertionEffect(t,e)},Ee.useLayoutEffect=function(t,e){return A.current.useLayoutEffect(t,e)},Ee.useMemo=function(t,e){return A.current.useMemo(t,e)},Ee.useReducer=function(t,e,n){return A.current.useReducer(t,e,n)},Ee.useRef=function(t){return A.current.useRef(t)},Ee.useState=function(t){return A.current.useState(t)},Ee.useSyncExternalStore=function(t,e,n){return A.current.useSyncExternalStore(t,e,n)},Ee.useTransition=function(){return A.current.useTransition()},Ee.version="18.2.0",Ee}function Zd(){return Pf||(Pf=1,Fa.exports=nE()),Fa.exports
10
+ */function nE(){if(Lf)return Ee;Lf=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.iterator;var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,p={};function m(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}function y(){}function g(t,e,n){this.props=t,this.context=e,this.refs=p,this.updater=n||d}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)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,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var _=g.prototype=new y;_.constructor=g,h(_,m.prototype),_.isPureReactComponent=!0;var v=Array.isArray,b=Object.prototype.hasOwnProperty,k={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_owner:k.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function C(n,r,o,i,s){var a=typeof n;("undefined"===a||"boolean"===a)&&(n=null);var u=!1;if(null===n)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case t:case e:u=!0}}if(u)return s=s(u=n),n=""===i?"."+I(u,0):i,v(s)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(s,r,o,"",(function(t){return t}))):null!=s&&(E(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(u=0,i=""===i?".":i+":",v(n))for(var c=0;c<n.length;c++){var l=i+I(a=n[c],c);u+=C(a,r,o,l,s)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(n),"function"==typeof l)for(n=l.call(n),c=0;!(a=n.next()).done;)u+=C(a=a.value,r,o,l=i+I(a,c++),s);else if("object"===a)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 u}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var A={current:null},M={transition:null},O={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};return Ee.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ee.Component=m,Ee.Fragment=n,Ee.Profiler=o,Ee.PureComponent=g,Ee.StrictMode=r,Ee.Suspense=u,Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,Ee.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=k.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in n)b.call(n,c)&&!w.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==u?u[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];o.children=u}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_owner:a}},Ee.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},Ee.createElement=S,Ee.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(t){return{$$typeof:a,render:t}},Ee.isValidElement=E,Ee.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:R}},Ee.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},Ee.startTransition=function(t){var e=M.transition;M.transition={};try{t()}finally{M.transition=e}},Ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Ee.useCallback=function(t,e){return A.current.useCallback(t,e)},Ee.useContext=function(t){return A.current.useContext(t)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(t){return A.current.useDeferredValue(t)},Ee.useEffect=function(t,e){return A.current.useEffect(t,e)},Ee.useId=function(){return A.current.useId()},Ee.useImperativeHandle=function(t,e,n){return A.current.useImperativeHandle(t,e,n)},Ee.useInsertionEffect=function(t,e){return A.current.useInsertionEffect(t,e)},Ee.useLayoutEffect=function(t,e){return A.current.useLayoutEffect(t,e)},Ee.useMemo=function(t,e){return A.current.useMemo(t,e)},Ee.useReducer=function(t,e,n){return A.current.useReducer(t,e,n)},Ee.useRef=function(t){return A.current.useRef(t)},Ee.useState=function(t){return A.current.useState(t)},Ee.useSyncExternalStore=function(t,e,n){return A.current.useSyncExternalStore(t,e,n)},Ee.useTransition=function(){return A.current.useTransition()},Ee.version="18.2.0",Ee}function Zd(){return Pf||(Pf=1,Fa.exports=nE()),Fa.exports
11
11
  /**
12
12
  * @license React
13
13
  * react-jsx-runtime.production.min.js
@@ -16,7 +16,7 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
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 iE(){if(Ff)return ti;Ff=1;var t=Zd(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,u={},c=null,l=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!o.hasOwnProperty(a)&&(u[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===u[a]&&(u[a]=n[a]);return{$$typeof:e,type:t,key:c,ref:l,props:u,_owner:i.current}}return ti.Fragment=n,ti.jsx=s,ti.jsxs=s,ti}function sE(){return Bf||(Bf=1,Pa.exports=iE()),Pa.exports}var St=sE();const Mu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,si="8.48.0",ut=globalThis;function eo(t,e,n){const r=ut,i=r.__SENTRY__=r.__SENTRY__||{},o=i[si]=i[si]||{};return o[t]||(o[t]=e())}const bi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oE="Sentry Logger ",Uf=["debug","info","warn","error","log","assert","trace"],jf={};function Ou(t){if(!("console"in ut))return t();const e=ut.console,n={},r=Object.keys(jf);r.forEach((t=>{const r=jf[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}function aE(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return bi?Uf.forEach((n=>{e[n]=(...e)=>{t&&Ou((()=>{ut.console[n](`${oE}[${n}]:`,...e)}))}})):Uf.forEach((t=>{e[t]=()=>{}})),e}const ht=eo("logger",aE),Ba="<anonymous>";function gr(t){try{return t&&"function"==typeof t&&t.name||Ba}catch{return Ba}}function Wf(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch{return}}}const Fs={},zf={};function Qd(t,e){Fs[t]=Fs[t]||[],Fs[t].push(e)}function eh(t,e){if(!zf[t]){zf[t]=!0;try{e()}catch(e){bi&&ht.error(`Error while instrumenting ${t}`,e)}}}function ru(t,e){const n=t&&Fs[t];if(n)for(const r of n)try{r(e)}catch(e){bi&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function wi(){return Du(ut),ut}function Du(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||si,e[si]=e[si]||{}}const th=Object.prototype.toString;function uE(t){switch(th.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return to(t,Error)}}function Nu(t,e){return th.call(t)===`[object ${e}]`}function js(t){return Nu(t,"String")}function Lu(t){return Nu(t,"Object")}function cE(t){return typeof Event<"u"&&to(t,Event)}function lE(t){return typeof Element<"u"&&to(t,Element)}function fE(t){return Nu(t,"RegExp")}function Pu(t){return!(!t||!t.then||"function"!=typeof t.then)}function dE(t){return Lu(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function to(t,e){try{return t instanceof e}catch{return!1}}function hE(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const rh=ut,pE=80;function Fu(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",u=a.length;let c;const l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++<r&&(c=mE(n,l),!("html"===c||o>1&&s+i.length*u+c.length>=f));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function mE(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(rh.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(i&&i.length)i.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&js(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const t of o){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function gE(){try{return rh.document.location.href}catch{return""}}function Ua(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function _E(t,e,n=!1){return!!js(t)&&(fE(e)?e.test(t):!!js(e)&&(n?t===e:t.includes(e)))}function yE(t,e=[],n=!1){return e.some((e=>_E(t,e,n)))}function Pt(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"==typeof i&&nh(i,r);try{t[e]=i}catch{bi&&ht.log(`Failed to replace method "${e}" in object`,t)}}function di(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{bi&&ht.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function nh(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,di(t,"__sentry_original__",e)}catch{}}function ih(t){return t.__sentry_original__}function vE(t){if(uE(t))return{message:t.message,name:t.name,stack:t.stack,...Hf(t)};if(cE(t)){const e={type:t.type,target:$f(t.target),currentTarget:$f(t.currentTarget),...Hf(t)};return typeof CustomEvent<"u"&&to(t,CustomEvent)&&(e.detail=t.detail),e}return t}function $f(t){try{return lE(t)?Fu(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Hf(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Ht(t){return nu(t,new Map)}function nu(t,e){if(SE(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))typeof t[n]<"u"&&(r[n]=nu(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(nu(t,e))})),r}return t}function SE(t){if(!Lu(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch{return!0}}const sh=1e3;function ro(){return Date.now()/sh}function EE(){const{performance:t}=ut;if(!t||!t.now)return ro;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/sh}const oh=EE(),bE=(()=>{const{performance:t}=ut;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,s=t.timing&&t.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):e;return o||a<e?i<=a?t.timeOrigin:s:r})();function pr(){const t=ut,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function wE(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function kE(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=""),o.type||(o.type="Error")}function ah(t,e){const n=wE(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}var lr;function qf(t){return new hr((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(lr||(lr={}));class hr{constructor(t){hr.prototype.__init.call(this),hr.prototype.__init2.call(this),hr.prototype.__init3.call(this),hr.prototype.__init4.call(this),this._state=lr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new hr(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new hr(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(lr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(lr.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===lr.PENDING){if(Pu(e))return void e.then(this._resolve,this._reject);this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===lr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===lr.RESOLVED&&t[1](this._value),this._state===lr.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function IE(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||oh(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:pr()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Gf(){return pr()}function iu(){return pr().substring(16)}function no(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=no(r[t],e[t],n-1));return r}const su="_sentrySpan";function Vf(t,e){e?di(t,su,e):delete t[su]}function ou(t){return t[su]}const xE=100;class Bu{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:Gf(),spanId:iu()}}clone(){const t=new Bu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Vf(t,ou(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&IE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Yr?[e.getScopeData(),e.getRequestSession()]:Lu(e)?[t,t.requestSession]:[],{tags:i,extra:o,user:s,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),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,Vf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Gf()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:xE;if(n<=0)return this;const r={timestamp:ro(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:ou(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=no(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:iu(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:pr();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(ht.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const Yr=Bu;function CE(){return eo("defaultCurrentScope",(()=>new Yr))}function RE(){return eo("defaultIsolationScope",(()=>new Yr))}class TE{constructor(t,e){let n,r;n=t||new Yr,r=e||new Yr,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return Pu(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function wn(){const t=Du(wi());return t.stack=t.stack||new TE(CE(),RE())}function AE(t){return wn().withScope(t)}function ME(t,e){const n=wn();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Yf(t){return wn().withScope((()=>t(wn().getIsolationScope())))}function OE(){return{withIsolationScope:Yf,withScope:AE,withSetScope:ME,withSetIsolationScope:(t,e)=>Yf(e),getCurrentScope:()=>wn().getScope(),getIsolationScope:()=>wn().getIsolationScope()}}function io(t){const e=Du(t);return e.acs?e.acs:OE()}function Mn(){return io(wi()).getCurrentScope()}function ki(){return io(wi()).getIsolationScope()}function DE(){return eo("globalScope",(()=>new Yr))}function NE(...t){const e=io(wi());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function Zt(){return Mn().getClient()}const LE="_sentryMetrics";function PE(t){const e=t[LE];if(!e)return;const n={};for(const[,[t,r]]of e)(n[t]||(n[t]=[])).push(Ht(r));return n}const uh="sentry.source",FE="sentry.sample_rate",BE="sentry.op",UE="sentry.origin",jE=0,WE=1,zE="sentry-",$E=/^sentry-/;function HE(t){const e=qE(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match($E)){t[e.slice(7)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function qE(t){if(t&&(js(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=Kf(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):Kf(t)}function Kf(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const GE=1;function VE(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext();return Ht({parent_span_id:r?e:hi(t).parent_span_id,span_id:r?iu():e,trace_id:n})}function Xf(t){return"number"==typeof t?Jf(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Jf(t.getTime()):oh()}function Jf(t){return t>9999999999?t/1e3:t}function hi(t){if(KE(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(YE(t)){const{attributes:r,startTime:i,name:o,endTime:s,parentSpanId:a,status:u}=t;return Ht({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Xf(i),timestamp:Xf(s)||void 0,status:JE(u),op:r[BE],origin:r[UE],_metrics_summary:PE(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function YE(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}function KE(t){return"function"==typeof t.getSpanJSON}function XE(t){const{traceFlags:e}=t.spanContext();return 1===e}function JE(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}const ZE="_sentryRootSpan";function Uu(t){return t[ZE]||t}function ch(){const t=io(wi());return t.getActiveSpan?t.getActiveSpan():ou(Mn())}function QE(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Zt(),n=e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const lh="production",eb="_frozenDsc";function tb(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i=Ht({environment:n.environment||lh,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",i),i}function fh(t){const e=Zt();if(!e)return{};const n=Uu(t),r=n[eb];if(r)return r;const i=n.spanContext().traceState,o=i&&i.get("sentry.dsc"),s=o&&HE(o);if(s)return s;const a=tb(t.spanContext().traceId,e),u=hi(n),c=u.data||{},l=c[FE];null!=l&&(a.sample_rate=`${l}`);const f=c[uh],d=u.description;return"url"!==f&&d&&(a.transaction=d),QE()&&(a.sampled=String(XE(n))),e.emit("createDsc",a,n),a}function Zf(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;Mu&&ht.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}function rb(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function nb(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}function fr(t,e=100,n=1/0){try{return au("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function au(t,e,n=1/0,r=1/0,i=nb()){const[o,s]=i;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=ib(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(o(e))return"[Circular ~]";const c=e;if(c&&"function"==typeof c.toJSON)try{return au("",c.toJSON(),u-1,r,i)}catch{}const l=Array.isArray(e)?[]:{};let f=0;const d=vE(e);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(f>=r){l[t]="[MaxProperties ~]";break}const e=d[t];l[t]=au(t,e,u-1,r,i),f++}return s(e),l}function ib(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(hE(e))return"[VueViewModel]";if(dE(e))return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${gr(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=sb(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}function sb(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function ob(t,e=[]){return[t,e]}function ab(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ub(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:rb(r)},...i&&{trace:Ht({...i})}}}function uu(t,e,n,r=0){return new hr(((i,o)=>{const s=t[r];if(null===e||"function"!=typeof s)i(e);else{const a=s({...e},n);Mu&&s.id&&null===a&&ht.log(`Event processor "${s.id}" dropped event`),Pu(a)?a.then((e=>uu(t,e,n,r+1).then(i))).then(null,o):uu(t,a,n,r+1).then(i).then(null,o)}}))}let ks,Qf,Is;function cb(t){const e=ut._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Is&&n.length===Qf||(Qf=n.length,Is=n.reduce(((n,r)=>{ks||(ks={});const i=ks[r];if(i)n[i[0]]=i[1];else{const i=t(r);for(let t=i.length-1;t>=0;t--){const o=i[t],s=o&&o.filename,a=e[r];if(s&&a){n[s]=a,ks[r]=[s,a];break}}}return n}),{})),Is}function lb(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;fb(t,e),r&&pb(t,r),mb(t,n),db(t,i),hb(t,o)}function ed(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=e;xs(t,"extra",n),xs(t,"tags",r),xs(t,"user",i),xs(t,"contexts",o),t.sdkProcessingMetadata=no(t.sdkProcessingMetadata,a,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function xs(t,e,n){t[e]=no(t[e],n,1)}function fb(t,e){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e,u=Ht(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const c=Ht(r);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const l=Ht(i);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=Ht(o);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),s&&(t.level=s),a&&"transaction"!==t.type&&(t.transaction=a)}function db(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function hb(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function pb(t,e){t.contexts={trace:VE(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:fh(e),...t.sdkProcessingMetadata};const n=hi(Uu(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}function mb(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function gb(t,e,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||n.event_id||pr(),timestamp:e.timestamp||ro()},c=n.integrations||t.integrations.map((t=>t.name));_b(u,t),Sb(u,c),i&&i.emit("applyFrameMetadata",e),void 0===e.type&&yb(u,t.stackParser);const l=bb(r,n.captureContext);n.mechanism&&ah(u,n.mechanism);const f=i?i.getEventProcessors():[],d=DE().getScopeData();if(o){ed(d,o.getScopeData())}if(l){ed(d,l.getScopeData())}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),lb(u,d);return uu([...f,...d.eventProcessors],u,n).then((t=>(t&&vb(t),"number"==typeof s&&s>0?Eb(t,s,a):t)))}function _b(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;t.environment=t.environment||n||lh,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i),t.message&&(t.message=Ua(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Ua(s.value,o));const a=t.request;a&&a.url&&(a.url=Ua(a.url,o))}function yb(t,e){const n=cb(e);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{n&&t.filename&&(t.debug_id=n[t.filename])}))}))}catch{}}function vb(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch{}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}function Sb(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Eb(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))},...t.user&&{user:fr(t.user,e,n)},...t.contexts&&{contexts:fr(t.contexts,e,n)},...t.extra&&{extra:fr(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=fr(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))),t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=fr(t.contexts.flags,3,n)),r}function bb(t,e){if(!e)return t;const n=t?t.clone():new Yr;return n.update(e),n}function ju(t,e){return Mn().captureException(t,void 0)}function wb(t,e){const n={captureContext:e};return Mn().captureMessage(t,void 0,n)}function kb(t,e){ki().setContext(t,e)}function Ib(t,e){ki().setExtra(t,e)}function xb(t){ki().addEventProcessor(t)}const Cb=6e4;function Rb(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?Cb:r-e}function Tb(t,e){return t[e]||t.all||0}function Ab(t,e,n=Date.now()){return Tb(t,e)>n}function Mb(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),s=parseInt(e,10),a=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))"metric_bucket"===t?(!o||o.split(";").includes("custom"))&&(i[t]=r+a):i[t]=r+a;else i.all=r+a}else s?i.all=r+Rb(s,r):429===e&&(i.all=r+6e4);return i}function Ob(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return Nb(t,n)||Db(t,r)}function Db(t,e){return!!e&&td(t)===td(e)}function Nb(t,e){return!!e&&t.includes(e.host)}function td(t){return"/"===t[t.length-1]?t.slice(0,-1):t}const Lb=100;function Pb(t,e){const n=Zt(),r=ki();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Lb}=n.getOptions();if(o<=0)return;const s={timestamp:ro(),...t},a=i?Ou((()=>i(s,e))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}function Fb(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Bb="Dedupe",Ub=()=>{let t;return{name:Bb,processEvent(e){if(e.type)return e;try{if(Wb(e,t))return Mu&&ht.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},jb=Ub;function Wb(t,e){return!!e&&!(!zb(t,e)&&!$b(t,e))}function zb(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hh(t,e)||!dh(t,e))}function $b(t,e){const n=rd(e),r=rd(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&hh(t,e)&&dh(t,e))}function dh(t,e){let n=Wf(t),r=Wf(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function hh(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function rd(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Hb(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function qb(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Gb(){return!qb()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function nd(){return typeof window<"u"&&(!Gb()||Vb())}function Vb(){const t=ut.process;return!!t&&"renderer"===t.type}const Cs=ut;function Yb(){const t=Cs.chrome,e=t&&t.app&&t.app.runtime,n="history"in Cs&&!!Cs.history.pushState&&!!Cs.history.replaceState;return!e&&n}function Kb(t,e){return t??e()}function Bs(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const ni=ut;function Xb(){setTimeout((()=>{}))}function kn(t,e={}){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(ih(t))return t}catch{return t}const n=function(...n){try{const r=n.map((t=>kn(t,e)));return t.apply(this,r)}catch(t){throw Xb(),NE((r=>{r.addEventProcessor((t=>(e.mechanism&&(kE(t),ah(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),ju(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}nh(n,t),di(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}const ph=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jb=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",Ii=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||r)&&(o=e.value-(i||0),(o||void 0===i)&&(i=e.value,e.delta=o,e.rating=Jb(e.value,n),t(e)))}},ke=ut,Zb=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,mh=(t=!0)=>{const e=ke.performance&&ke.performance.getEntriesByType&&ke.performance.getEntriesByType("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Wu=()=>{const t=mh();return t&&t.activationStart||0},xi=(t,e)=>{const n=mh();let r="navigate";return n&&(ke.document&&ke.document.prerendering||Wu()>0?r="prerender":ke.document&&ke.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Zb(),navigationType:r}},Xr=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Ci=t=>{const e=e=>{("pagehide"===e.type||ke.document&&"hidden"===ke.document.visibilityState)&&t(e)};ke.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},so=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let oi=-1;const Qb=()=>"hidden"!==ke.document.visibilityState||ke.document.prerendering?1/0:0,Ws=t=>{"hidden"===ke.document.visibilityState&&oi>-1&&(oi="visibilitychange"===t.type?t.timeStamp:0,t1())},e1=()=>{addEventListener("visibilitychange",Ws,!0),addEventListener("prerenderingchange",Ws,!0)},t1=()=>{removeEventListener("visibilitychange",Ws,!0),removeEventListener("prerenderingchange",Ws,!0)},zu=()=>(ke.document&&oi<0&&(oi=Qb(),e1()),{get firstHiddenTime(){return oi}}),oo=t=>{ke.document&&ke.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},r1=[1800,3e3],n1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("FCP");let i;const o=Xr("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries.push(t),i(!0)))}))}));o&&(i=Ii(t,r,r1,e.reportAllChanges))}))},i1=[.1,.25],s1=(t,e={})=>{n1(so((()=>{const n=xi("CLS",0);let r,i=0,o=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],n=o[o.length-1];i&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(i+=t.value,o.push(t)):(i=t.value,o=[t])}})),i>n.value&&(n.value=i,n.entries=o,r())},a=Xr("layout-shift",s);a&&(r=Ii(t,n,i1,e.reportAllChanges),Ci((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},o1=[100,300],a1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("FID");let i;const o=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),i(!0))},s=t=>{t.forEach(o)},a=Xr("first-input",s);i=Ii(t,r,o1,e.reportAllChanges),a&&Ci(so((()=>{s(a.takeRecords()),a.disconnect()})))}))};let gh=0,ja=1/0,Rs=0;const u1=t=>{t.forEach((t=>{t.interactionId&&(ja=Math.min(ja,t.interactionId),Rs=Math.max(Rs,t.interactionId),gh=Rs?(Rs-ja)/7+1:0)}))};let cu;const c1=()=>cu?gh:performance.interactionCount||0,l1=()=>{"interactionCount"in performance||cu||(cu=Xr("event",u1,{type:"event",buffered:!0,durationThreshold:0}))},dr=[],Wa=new Map,f1=40;let d1=0;const h1=()=>c1()-d1,p1=()=>{const t=Math.min(dr.length-1,Math.floor(h1()/50));return dr[t]},za=10,m1=[],g1=t=>{if(m1.forEach((e=>e(t))),!t.interactionId&&"first-input"!==t.entryType)return;const e=dr[dr.length-1],n=Wa.get(t.interactionId);if(n||dr.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(t);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Wa.set(e.id,e),dr.push(e)}dr.sort(((t,e)=>e.latency-t.latency)),dr.length>10&&dr.splice(10).forEach((t=>Wa.delete(t.id)))}},_h=t=>{const e=ke.requestIdleCallback||ke.setTimeout;let n=-1;return t=so(t),ke.document&&"hidden"===ke.document.visibilityState?t():(n=e(t),Ci(t)),n},_1=[200,500],y1=(t,e={})=>{"PerformanceEventTiming"in ke&&"interactionId"in PerformanceEventTiming.prototype&&oo((()=>{l1();const n=xi("INP");let r;const i=t=>{_h((()=>{t.forEach(g1);const e=p1();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},o=Xr("event",i,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=Ii(t,n,_1,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),Ci((()=>{i(o.takeRecords()),r(!0)})))}))},v1=[2500,4e3],id={},S1=(t,e={})=>{oo((()=>{const n=zu(),r=xi("LCP");let i;const o=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries=[t],i())}))},s=Xr("largest-contentful-paint",o);if(s){i=Ii(t,r,v1,e.reportAllChanges);const n=so((()=>{id[r.id]||(o(s.takeRecords()),s.disconnect(),id[r.id]=!0,i(!0))}));["keydown","click"].forEach((t=>{ke.document&&addEventListener(t,(()=>_h(n)),{once:!0,capture:!0})})),Ci(n)}}))},ai={},zs={};let yh,vh,Sh,Eh;function E1(t,e=!1){return ao("cls",t,x1,yh,e)}function b1(t,e=!1){return ao("lcp",t,R1,Sh,e)}function w1(t){return ao("fid",t,C1,vh)}function k1(t){return ao("inp",t,T1,Eh)}function I1(t,e){return bh(t,e),zs[t]||(A1(t),zs[t]=!0),wh(t,e)}function Ri(t,e){const n=ai[t];if(n&&n.length)for(const r of n)try{r(e)}catch(e){ph&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function x1(){return s1((t=>{Ri("cls",{metric:t}),yh=t}),{reportAllChanges:!0})}function C1(){return a1((t=>{Ri("fid",{metric:t}),vh=t}))}function R1(){return S1((t=>{Ri("lcp",{metric:t}),Sh=t}),{reportAllChanges:!0})}function T1(){return y1((t=>{Ri("inp",{metric:t}),Eh=t}))}function ao(t,e,n,r,i=!1){let o;return bh(t,e),zs[t]||(o=n(),zs[t]=!0),r&&e({metric:r}),wh(t,e,i?o:void 0)}function A1(t){const e={};"event"===t&&(e.durationThreshold=0),Xr(t,(e=>{Ri(t,{entries:e})}),e)}function bh(t,e){ai[t]=ai[t]||[],ai[t].push(e)}function wh(t,e,n){return()=>{n&&n();const r=ai[t];if(!r)return;const i=r.indexOf(e);-1!==i&&r.splice(i,1)}}const M1=1e3;let sd,lu,fu,Ts;function O1(t){Qd("dom",t),eh("dom",D1)}function D1(){if(!ke.document)return;const t=ru.bind(null,"dom"),e=od(t,!0);ke.document.addEventListener("click",e,!1),ke.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=ke[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Pt(r,"addEventListener",(function(e){return function(n,r,i){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=od(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch{}return e.call(this,n,r,i)}})),Pt(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}})))}))}function N1(t){if(t.type!==lu)return!1;try{if(!t.target||t.target._sentryId!==fu)return!1}catch{}return!0}function L1(t,e){return"keypress"===t&&(!e||!e.tagName||!("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable))}function od(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=P1(n);if(L1(n.type,r))return;di(n,"_sentryCaptured",!0),r&&!r._sentryId&&di(r,"_sentryId",pr());const i="keypress"===n.type?"input":n.type;N1(n)||(t({event:n,name:i,global:e}),lu=n.type,fu=r?r._sentryId:void 0),clearTimeout(sd),sd=ke.setTimeout((()=>{fu=void 0,lu=void 0}),M1)}}function P1(t){try{return t.target}catch{return null}}function F1(t){const e="history";Qd(e,t),eh(e,B1)}function B1(){if(!Yb())return;const t=ke.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ts,e=String(n);Ts=e,ru("history",{from:t,to:e})}return t.apply(this,e)}}ke.onpopstate=function(...e){const n=ke.location.href,r=Ts;if(Ts=n,ru("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch{}},Pt(ke.history,"pushState",e),Pt(ke.history,"replaceState",e)}const $a={};function U1(t){const e=$a[t];if(e)return e;let n=ke[t];if(Hb(n))return $a[t]=n.bind(ke);const r=ke.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(n=i[t]),r.head.removeChild(e)}catch(e){ph&&ht.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n&&($a[t]=n.bind(ke))}function In(...t){return U1("setTimeout")(...t)}const j1="__sentry_xhr_v3__",W1=["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"],z1="BrowserApiErrors",$1=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:z1,setupOnce(){e.setTimeout&&Pt(ni,"setTimeout",ad),e.setInterval&&Pt(ni,"setInterval",ad),e.requestAnimationFrame&&Pt(ni,"requestAnimationFrame",q1),e.XMLHttpRequest&&"XMLHttpRequest"in ni&&Pt(XMLHttpRequest.prototype,"send",G1);const t=e.eventTarget;t&&(Array.isArray(t)?t:W1).forEach(V1)}}},H1=$1;function ad(t){return function(...e){const n=e[0];return e[0]=kn(n,{mechanism:{data:{function:gr(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function q1(t){return function(e){return t.apply(this,[kn(e,{mechanism:{data:{function:"requestAnimationFrame",handler:gr(t)},handled:!1,type:"instrument"}})])}}function G1(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&Pt(n,t,(function(e){const n={mechanism:{data:{function:t,handler:gr(e)},handled:!1,type:"instrument"}},r=ih(e);return r&&(n.mechanism.data.handler=gr(r)),kn(e,n)}))})),t.apply(this,e)}}function V1(t){const e=ni[t],n=e&&e.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pt(n,"addEventListener",(function(e){return function(n,r,i){try{Y1(r)&&(r.handleEvent=kn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:gr(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,kn(r,{mechanism:{data:{function:"addEventListener",handler:gr(r),target:t},handled:!1,type:"instrument"}}),i])}})),Pt(n,"removeEventListener",(function(t){return function(e,n,r){try{const i=n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch{}return t.call(this,e,n,r)}})))}function Y1(t){return"function"==typeof t.handleEvent}const je=ut,$u="sentryReplaySession",K1="replay_event",Hu="Unable to send Replay",X1=3e5,J1=9e5,Z1=5e3,Q1=5500,ew=6e4,tw=5e3,rw=3,ud=15e4,As=5e3,nw=3e3,iw=300,qu=2e7,sw=4999,ow=15e3,cd=36e5;function du(t,e){return t??e()}function pi(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}var Qe;function aw(t){return t.nodeType===t.ELEMENT_NODE}function ui(t){const e=pi([t,"optionalAccess",t=>t.host]);return pi([e,"optionalAccess",t=>t.shadowRoot])===t}function ci(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function uw(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function cw(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function $s(t){try{const e=t.rules||t.cssRules;return e?uw(Array.from(e,kh).join("")):null}catch{return null}}function lw(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,i=r[n],o=r.getPropertyPriority(i);e+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${t.selectorText} { ${e} }`}function kh(t){let e;if(dw(t))try{e=$s(t.styleSheet)||cw(t)}catch{}else if(hw(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=lw(t)),n&&(e=fw(e)),n||r)return e}return e||t.cssText}function fw(t){return t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function dw(t){return"styleSheet"in t}function hw(t){return"selectorText"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Qe||(Qe={}));class Ih{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return du(pi([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]),(()=>-1))}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function pw(){return new Ih}function uo({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function mi({isMasked:t,element:e,value:n,maskInputFn:r}){let i=n||"";return t?(r&&(i=r(i,e)),"*".repeat(i.length)):i}function xn(t){return t.toLowerCase()}function hu(t){return t.toUpperCase()}const ld="__rrweb_original__";function mw(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const i=e.getImageData,o=ld in i?i[ld]:i;if(new Uint32Array(o.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0}function Gu(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?xn(e):null}function Hs(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function xh(t,e){let n;try{n=new URL(t,du(e,(()=>window.location.href)))}catch{return null}return du(pi([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",t=>t[1]]),(()=>null))}const fd={};function Ch(t){const e=fd[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch{}return fd[t]=r.bind(window)}function pu(...t){return Ch("setTimeout")(...t)}function Rh(...t){return Ch("clearTimeout")(...t)}function Th(t){try{return t.contentDocument}catch{}}let gw=1;const _w=new RegExp("[^a-z0-9-_:]"),gi=-2;function Vu(){return gw++}function yw(t){if(t instanceof HTMLFormElement)return"form";const e=xn(t.tagName);return _w.test(e)?"div":e}function vw(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}let _n,dd;const Sw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ew=/^(?:[a-z+]+:)?\/\//i,bw=/^www\..*/i,ww=/^(data:)([^,]*),(.*)/i;function qs(t,e){return(t||"").replace(Sw,((t,n,r,i,o,s)=>{const a=r||o||s,u=n||i||"";if(!a)return t;if(Ew.test(a)||bw.test(a))return`url(${u}${a}${u})`;if(ww.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${vw(e)+a}${u})`;const c=e.split("/"),l=a.split("/");c.pop();for(const t of l)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${u}${c.join("/")}${u})`}))}const kw=/^[^ \t\n\r\u000c]+/,Iw=/^[, \t\n\r\u000c]+/;function xw(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(Iw),!(n>=e.length);){let o=r(kw);if(","===o.slice(-1))o=vn(t,o.substring(0,o.length-1)),i.push(o);else{let r="";o=vn(t,o);let s=!1;for(;;){const t=e.charAt(n);if(""===t){i.push((o+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,i.push((o+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return i.join(", ")}const hd=new WeakMap;function vn(t,e){return e&&""!==e.trim()?co(t,e):e}function Cw(t){return!("svg"!==t.tagName&&!t.ownerSVGElement)}function co(t,e){let n=hd.get(t);if(n||(n=t.createElement("a"),hd.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Ah(t,e,n,r,i,o){return r&&("src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===e||"td"===e||"th"===e)?vn(t,r):"srcset"===n?xw(t,r):"style"===n?qs(r,co(t)):"object"===e&&"data"===n?vn(t,r):"function"==typeof o?o(n,r,i):r)}function Mh(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Rw(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch{}return!1}function Tw(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Vr(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Vr(t.parentNode,e,n,r+1)}function Sn(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(Tw(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}function Cn(t,e,n,r,i,o){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const t=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,u=-1;if(o){if(u=Vr(s,Sn(r,i)),u<0)return!0;a=Vr(s,Sn(e,n),u>=0?u:1/0)}else{if(a=Vr(s,Sn(e,n)),a<0)return!1;u=Vr(s,Sn(r,i),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!o}catch{}return!!o}function Aw(t,e,n){const r=t.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch{return}if("complete"!==i){const r=pu((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{Rh(r),o=!0,e()}))}const s="about:blank";if(r.location.href!==s||t.src===s||""===t.src)return pu(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Mw(t,e,n){let r,i=!1;try{r=t.sheet}catch{return}if(r)return;const o=pu((()=>{i||(e(),i=!0)}),n);t.addEventListener("load",(()=>{Rh(o),i=!0,e()}))}function Ow(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k=!1}=e,w=Dw(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Qe.Document,childNodes:[],compatMode:t.compatMode}:{type:Qe.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Qe.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return Lw(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:u,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k,rootId:w,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d});case t.TEXT_NODE:return Nw(t,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:w});case t.CDATA_SECTION_NODE:return{type:Qe.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Qe.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}function Dw(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}function Nw(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=e,f=t.parentNode&&t.parentNode.tagName;let d=t.textContent;const h="STYLE"===f||void 0,p="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(h&&d){try{t.nextSibling||t.previousSibling||pi([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(d=$s(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}d=qs(d,co(e.doc))}p&&(d="SCRIPT_PLACEHOLDER");const y=Cn(t,r,o,i,s,n);if(!h&&!p&&!m&&d&&y&&(d=a?a(d,t.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(u.textarea||y)&&(d=c?c(d,t.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=mi({isMasked:Cn(t,r,o,i,s,uo({type:null,tagName:f,maskInputOptions:u})),element:t,value:d,maskInputFn:c})}return{type:Qe.Text,textContent:d||"",isStyle:h,rootId:l}}function Lw(t,e){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:b}=e,k=Rw(t,r,i,o),w=yw(t);let S={};const E=t.attributes.length;for(let e=0;e<E;e++){const r=t.attributes[e];r.name&&!Mh(w,r.name,r.value)&&(S[r.name]=Ah(n,w,xn(r.name),r.value,t,u))}if("link"===w&&s){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=$s(e)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=qs(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=$s(t.sheet);e&&(S._cssText=qs(e,co(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=Gu(e),r=Hs(e,hu(w),n),i=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Cn(e,g,v,_,b,uo({type:n,tagName:hu(w),maskInputOptions:a}));S.value=mi({isMasked:t,element:e,value:r,maskInputFn:c})}i&&(S.checked=i)}if("option"===w&&(t.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===w&&d)if("2d"===t.__context)mw(t)||(S.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height;e!==r.toDataURL(l.type,l.quality)&&(S.rr_dataURL=e)}if("img"===w&&f){_n||(_n=n.createElement("canvas"),dd=_n.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",i=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{_n.width=e.naturalWidth,_n.height=e.naturalHeight,dd.drawImage(e,0,0),S.rr_dataURL=_n.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(i?S.crossOrigin=i:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===w||"video"===w)&&(S.rr_mediaState=t.paused?"paused":"played",S.rr_mediaCurrentTime=t.currentTime),p||(t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop)),k){const{width:e,height:n}=t.getBoundingClientRect();S={class:S.class,rr_width:`${e}px`,rr_height:`${n}px`}}let x;"iframe"===w&&!h(S.src)&&(!k&&!Th(t)&&(S.rr_src=S.src),delete S.src);try{customElements.get(w)&&(x=!0)}catch{}return{type:Qe.Element,tagName:w,attributes:S,childNodes:[],isSVG:Cw(t)||void 0,needBlock:k,rootId:m,isCustom:x}}function Ue(t){return null==t?"":t.toLowerCase()}function Pw(t,e){if(e.comment&&t.type===Qe.Comment)return!0;if(t.type===Qe.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===xh(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Ue(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ue(t.attributes.name)||"icon"===Ue(t.attributes.rel)||"apple-touch-icon"===Ue(t.attributes.rel)||"shortcut icon"===Ue(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Ue(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Ue(t.attributes.property).match(/^(og|twitter|fb):/)||Ue(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ue(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Ue(t.attributes.name)||"googlebot"===Ue(t.attributes.name)||"bingbot"===Ue(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Ue(t.attributes.name)||"generator"===Ue(t.attributes.name)||"framework"===Ue(t.attributes.name)||"publisher"===Ue(t.attributes.name)||"progid"===Ue(t.attributes.name)||Ue(t.attributes.property).match(/^article:/)||Ue(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Ue(t.attributes.name)||"yandex-verification"===Ue(t.attributes.name)||"csrf-token"===Ue(t.attributes.name)||"p:domain_verify"===Ue(t.attributes.name)||"verify-v1"===Ue(t.attributes.name)||"verification"===Ue(t.attributes.name)||"shopify-checkout-api-token"===Ue(t.attributes.name)))return!0}}return!1}function En(t,e){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:k=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:T=!1}=e;let{preserveWhiteSpace:R=!0}=e;const A=Ow(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:v,inlineImages:b,recordCanvas:k,keepIframeSrcFn:C,newlyAddedElement:T});if(!A)return console.warn(t,"not serialized"),null;let M;M=r.hasNode(t)?r.getId(t):Pw(A,_)||!R&&A.type===Qe.Text&&!A.isStyle&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Vu();const O=Object.assign(A,{id:M});if(r.add(t,O),-2===M)return null;w&&w(t);let D=!d;if(O.type===Qe.Element){D=D&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&ci(e)&&(O.isShadowHost=!0)}if((O.type===Qe.Document||O.type===Qe.Element)&&D){_.headWhitespace&&O.type===Qe.Element&&"head"===O.tagName&&(R=!1);const e={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C};for(const n of Array.from(t.childNodes)){const t=En(n,e);t&&O.childNodes.push(t)}if(aw(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=En(n,e);r&&(ci(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&ui(t.parentNode)&&ci(t.parentNode)&&(O.isShadow=!0),O.type===Qe.Element&&"iframe"===O.tagName&&Aw(t,(()=>{const e=Th(t);if(e&&S){const n=En(e,{doc:e,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});n&&S(t,n)}}),E),O.type===Qe.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===xh(O.attributes.href))&&Mw(t,(()=>{if(x){const e=En(t,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});e&&x(t,e)}}),I),O}function Fw(t,e){const{mirror:n=new Ih,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I=()=>!1}=e;return En(t,{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:d,recordCanvas:h,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I,newlyAddedElement:!1})}function Rr(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function dt(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const yn="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 pd={map:{},getId:()=>(console.error(yn),-1),getNode:()=>(console.error(yn),null),removeNodeFromMap(){console.error(yn)},has:()=>(console.error(yn),!1),reset(){console.error(yn)}};function _i(t,e,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&!1===n.leading&&(i=s);const a=e-(s-i),u=this;a<=0||a>e?(r&&(Hw(r),r=null),i=s,t.apply(u,o)):!r&&!1!==n.trailing&&(r=lo((()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(u,o)}),a))}}function Oh(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(t){lo((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>Oh(t,e,o||{},!0)}function Yu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(pd=new Proxy(pd,{get:(t,e,n)=>("map"===e&&console.error(yn),Reflect.get(t,e,n))}));let Gs=Date.now;function Dh(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function Nh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Lh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ph(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function kt(t,e,n,r,i){if(!t)return!1;const o=Ph(t);if(!o)return!1;const s=Sn(e,n);if(!i){const t=r&&o.matches(r);return s(o)&&!t}const a=Vr(o,s);let u=-1;return!(a<0)&&(r&&(u=Vr(o,Sn(null,r))),a>-1&&u<0||a<u)}function Bw(t,e){return-1!==e.getId(t)}function Ha(t,e){return-2===e.getId(t)}function Fh(t,e){if(ui(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Fh(t.parentNode,e))}function mu(t){return!!t.changedTouches}function Uw(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}function Bh(t,e){return!("IFRAME"!==t.nodeName||!e.getMeta(t))}function Uh(t,e){return!("LINK"!==t.nodeName||t.nodeType!==t.ELEMENT_NODE||!t.getAttribute||"stylesheet"!==t.getAttribute("rel")||!e.getMeta(t))}function gu(t){return!!Rr([t,"optionalAccess",t=>t.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Gs=()=>(new Date).getTime());class jw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Kb(this.styleIDMap.get(t),(()=>-1))}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function jh(t){let e=null;return Rr([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Ww(t){let e,n=t;for(;e=jh(n);)n=e;return n}function zw(t){const e=t.ownerDocument;if(!e)return!1;const n=Ww(t);return e.contains(n)}function Wh(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||zw(t))}const md={};function Ku(t){const e=md[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const i=e.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(e)}catch{}return md[t]=r.bind(window)}function $w(...t){return Ku("requestAnimationFrame")(...t)}function lo(...t){return Ku("setTimeout")(...t)}function Hw(...t){return Ku("clearTimeout")(...t)}var gd,_d,me=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(me||{}),ue=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ue||{}),ft=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ft||{}),cr=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(cr||{});function Xu(t){try{return t.contentDocument}catch{}}function qw(t){try{return t.contentWindow}catch{}}function Gw(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function yd(t){return"__ln"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(gd||(gd={})),function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(_d||(_d={}));class Vw{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Gw([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&yd(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&yd(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const vd=(t,e)=>`${t}@${e}`;class Yw{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Vw,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},i=i=>{if(!i.parentNode||!Wh(i))return;const o=ui(i.parentNode)?this.mirror.getId(jh(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);const a=En(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Bh(t,this.mirror)&&!kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),Uh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),gu(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:o,nextId:s,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Sd(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||i(t);for(const t of this.addedSet)!Ed(this.droppedSet,t)&&!Sd(this.removes,t,this.mirror)||Ed(this.movedSet,t)?i(t):this.droppedSet.add(t);let o=null;for(;n.length;){let t=null;if(o){const e=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==e&&-1!==n&&(t=o)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}o=t.previous,n.removeNode(t.value),i(t.value)}const s={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.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(s))},this.processMutation=t=>{if(!Ha(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;!kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&e!==t.oldValue&&this.texts.push({value:Cn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,Ph(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=Gu(e),i=e.tagName;r=Hs(e,i,n);const o=uo({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=mi({isMasked:Cn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:e,value:r,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let i=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Xu(e))return;n="rr_src"}if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Mh(e.tagName,n)&&(i.attributes[n]=Ah(this.doc,xn(e.tagName),xn(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||o!==n.style.getPropertyPriority(t)?i.styleDiff[t]=""===o?r:[r,o]:i._unchangedStyles[t]=[r,o]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(i.styleDiff[t]=!1)}break}case"childList":if(kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=ui(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ha(e,this.mirror)||!Bw(e,this.mirror)||(this.addedSet.has(e)?(_u(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Fh(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[vd(n,r)]?_u(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!ui(t.target)||!ci(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ha(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[vd(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),gu(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function _u(t,e){t.delete(e),e.childNodes.forEach((e=>_u(t,e)))}function Sd(t,e,n){return 0!==t.length&&Kw(t,e,n)}function Kw(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some((t=>t.id===e)))return!0;r=r.parentNode}return!1}function Ed(t,e){return 0!==t.size&&zh(t,e)}function zh(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||zh(t,n))}let li;function Xw(t){li=t}function Jw(){li=void 0}const xe=t=>li?(...e)=>{try{return t(...e)}catch(t){if(li&&!0===li(t))return()=>{};throw t}}:t;function zt(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const bn=[];function Ti(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function $h(t,e){const n=new Yw;bn.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const i=zt([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);i&&window[i]&&(r=window[i]);const o=new r(xe((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Zw({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,o="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const u=_i(xe((e=>{const n=Date.now()-s;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null})),o),c=xe(_i(xe((t=>{const e=Ti(t),{clientX:n,clientY:i}=mu(t)?t.changedTouches[0]:t;s||(s=Gs()),a.push({x:n,y:i,id:r.getId(e),timeOffset:Gs()-s}),u(typeof DragEvent<"u"&&t instanceof DragEvent?ue.Drag:t instanceof MouseEvent?ue.MouseMove:ue.TouchMove)})),i,{trailing:!1})),l=[dt("mousemove",c,n),dt("touchmove",c,n),dt("drag",c,n)];return xe((()=>{l.forEach((t=>t()))}))}function Qw({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];let c=null;return Object.keys(ft).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((s=>{let a=xn(s);const l=(e=>s=>{const a=Ti(s);if(kt(a,r,i,o,!0))return;let u=null,l=e;if("pointerType"in s){switch(s.pointerType){case"mouse":u=cr.Mouse;break;case"touch":u=cr.Touch;break;case"pen":u=cr.Pen}u===cr.Touch?ft[e]===ft.MouseDown?l="TouchStart":ft[e]===ft.MouseUp&&(l="TouchEnd"):cr.Pen}else mu(s)&&(u=cr.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===cr.Touch||l.startsWith("Mouse")&&u===cr.Mouse)&&(u=null)):ft[e]===ft.Click&&(u=c,c=null);const f=mu(s)?s.changedTouches[0]:s;if(!f)return;const d=n.getId(a),{clientX:h,clientY:p}=f;xe(t)({type:ft[l],id:d,x:h,y:p,...null!==u&&{pointerType:u}})})(s);if(window.PointerEvent)switch(ft[s]){case ft.MouseDown:case ft.MouseUp:a=a.replace("mouse","pointer");break;case ft.TouchStart:case ft.TouchEnd:return}u.push(dt(a,l,e))})),xe((()=>{u.forEach((t=>t()))}))}function Hh({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return dt("scroll",xe(_i(xe((s=>{const a=Ti(s);if(!a||kt(a,r,i,o,!0))return;const u=n.getId(a);if(a===e&&e.defaultView){const n=Dh(e.defaultView);t({id:u,x:n.left,y:n.top})}else t({id:u,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),e)}function ek({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return dt("resize",xe(_i(xe((()=>{const e=Nh(),i=Lh();(n!==e||r!==i)&&(t({width:Number(i),height:Number(e)}),n=e,r=i)})),200)),e)}const tk=["INPUT","TEXTAREA","SELECT"],bd=new WeakMap;function rk({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(t){let n=Ti(t);const l=t.isTrusted,y=n&&hu(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||tk.indexOf(y)<0||kt(n,r,i,o,!0))return;const _=n;if(_.classList.contains(s)||a&&_.matches(a))return;const v=Gu(n);let b=Hs(_,y,v),k=!1;const w=uo({maskInputOptions:u,tagName:y,type:v}),S=Cn(n,d,p,h,m,w);("radio"===v||"checkbox"===v)&&(k=n.checked),b=mi({isMasked:S,element:n,value:b,maskInputFn:c}),g(n,f?{text:b,isChecked:k,userTriggered:l}:{text:b,isChecked:k});const E=n.name;"radio"===v&&E&&k&&e.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((t=>{if(t!==n){const e=mi({isMasked:S,element:t,value:Hs(t,y,v),maskInputFn:c});g(t,f?{text:e,isChecked:!k,userTriggered:!1}:{text:e,isChecked:!k})}}))}function g(e,r){const i=bd.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){bd.set(e,r);const i=n.getId(e);xe(t)({...r,id:i})}}const _=("last"===l.input?["change"]:["input","change"]).map((t=>dt(t,xe(y),e))),v=e.defaultView;if(!v)return()=>{_.forEach((t=>t()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),k=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...k.map((t=>Oh(t[0],t[1],{set(){xe(y)({target:this,isTrusted:!1})}},!1,v)))),xe((()=>{_.forEach((t=>t()))}))}function Vs(t){return function(t,e){if(Ms("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Ms("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Ms("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Ms("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Tr(t,e,n){let r,i;return t?(t.ownerNode?r=e.getId(t.ownerNode):i=n.getId(t),{styleId:i,id:r}):{}}function nk({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:xe(((r,i,o)=>{const[s,a]=o,{id:u,styleId:c}=Tr(i,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:a}]}),r.apply(i,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:s}]}),r.apply(i,o)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replace:s}),r.apply(i,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replaceSync:s}),r.apply(i,o)}))}));const u={};Os("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Os("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Os("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Os("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:xe(((r,i,o)=>{const[s,a]=o,{id:u,styleId:c}=Tr(i.parentStyleSheet,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:[...Vs(i),a||0]}]}),r.apply(i,o)}))}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:xe(((r,i,o)=>{const[s]=o,{id:a,styleId:u}=Tr(i.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:[...Vs(i),s]}]}),r.apply(i,o)}))})})),xe((()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([t,e])=>{e.prototype.insertRule=c[t].insertRule,e.prototype.deleteRule=c[t].deleteRule}))}))}function qh({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const i="#document"===n.nodeName?zt([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):zt([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),o=zt([i,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(zt([i,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return zt([o,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=zt([o,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch{}return n}}),xe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function ik({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:xe(((i,s,a)=>{const[u,c,l]=a;if(n.has(u))return o.apply(s,[u,c,l]);const{id:f,styleId:d}=Tr(zt([s,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&t({id:f,styleId:d,set:{property:u,value:c,priority:l},index:Vs(s.parentRule)}),i.apply(s,a)}))});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:xe(((i,o,a)=>{const[u]=a;if(n.has(u))return s.apply(o,[u]);const{id:c,styleId:l}=Tr(zt([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&t({id:c,styleId:l,remove:{property:u},index:Vs(o.parentRule)}),i.apply(o,a)}))}),xe((()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}))}function sk({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=xe((s=>_i(xe((o=>{const a=Ti(o);if(!a||kt(a,e,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:f}=a;t({type:s,id:i.getId(a),currentTime:u,volume:c,muted:l,playbackRate:f})})),o.media||500))),u=[dt("play",a(0),s),dt("pause",a(1),s),dt("seeked",a(2),s),dt("volumechange",a(3),s),dt("ratechange",a(4),s)];return xe((()=>{u.forEach((t=>t()))}))}function ok({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return i.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const s=Yu(e.fonts,"add",(function(e){return function(n){return lo(xe((()=>{const e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(s),xe((()=>{r.forEach((t=>t()))}))}function ak(t){const{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=t;let a=!0;const u=xe((()=>{const t=e.getSelection();if(!t||a&&zt([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const u=[],c=t.rangeCount||0;for(let e=0;e<c;e++){const s=t.getRangeAt(e),{startContainer:a,startOffset:c,endContainer:l,endOffset:f}=s;kt(a,r,i,o,!0)||kt(l,r,i,o,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:f})}s({ranges:u})}));return u(),dt("selectionchange",u)}function uk({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?Yu(n.customElements,"define",(function(t){return function(n,r,i){try{e({define:{name:n}})}catch{}return t.apply(this,[n,r,i])}})):()=>{}}function ck(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=$h(t,t.doc));const i=Zw(t),o=Qw(t),s=Hh(t),a=ek(t,{win:n}),u=rk(t),c=sk(t);let l=()=>{},f=()=>{},d=()=>{},h=()=>{};t.recordDOM&&(l=nk(t,{win:n}),f=qh(t,t.doc),d=ik(t,{win:n}),t.collectFonts&&(h=ok(t)));const p=ak(t),m=uk(t),y=[];for(const e of t.plugins)y.push(e.observer(e.callback,n,e.options));return xe((()=>{bn.forEach((t=>t.reset())),zt([r,"optionalAccess",t=>t.disconnect,"call",t=>t()]),i(),o(),s(),a(),u(),c(),l(),f(),d(),h(),p(),m(),y.forEach((t=>t()))}))}function Ms(t){return typeof window[t]<"u"}function Os(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class yu{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const i=n||this.getIdToRemoteIdMap(t),o=r||this.getRemoteIdToIdMap(t);let s=i.get(e);return s||(s=this.generateIdFn(),i.set(e,s),o.set(s,e)),s}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;return r.get(e)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function wd(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],o=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}class lk{constructor(){this.crossOriginIframeMirror=new yu(Vu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class fk{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yu(Vu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),wd([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]);const n=Xu(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin||!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case me.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:me.IncrementalSnapshot,data:{source:ue.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case me.Meta:case me.Load:case me.DomContentLoaded:return!1;case me.Plugin:return e;case me.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case me.IncrementalSnapshot:switch(e.data.source){case ue.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.Drag:case ue.TouchMove:case ue.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.ViewportResize:return!1;case ue.MediaInteraction:case ue.MouseInteraction:case ue.Scroll:case ue.CanvasMutation:case ue.Input:return this.replaceIds(e.data,t,["id"]),e;case ue.StyleSheetRule:case ue.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case ue.Font:return e;case ue.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case ue.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),wd([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const i of r)!Array.isArray(e[i])&&"number"!=typeof e[i]||(Array.isArray(e[i])?e[i]=t.getIds(n,e[i]):e[i]=t.getId(n,e[i]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type!==Qe.Document&&!t.rootId&&(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class dk{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hk{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!ci(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=$h({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Hh({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),lo((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(qh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){const e=Xu(t),n=qw(t);!e||!n||this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(Yu(t.prototype,"attachShadow",(function(t){return function(r){const i=t.call(this,r);return this.shadowRoot&&Wh(this)&&n.addShadowRoot(this.shadowRoot,e),i}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class kd{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class pk{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new jw,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:kh(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class mk{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,$w((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let Ye,Ys;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=Bs([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Wt=pw();function mr(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:k=null,packFn:w,sampling:S={},dataURLOptions:E={},mousemoveWait:x,recordDOM:I=!0,recordCanvas:C=!1,recordCrossOriginIframes:T=!1,recordAfter:R=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:M=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:j,onMutation:P,getCanvasManager:F}=t;Xw(j);const U=!T||window.parent===window;let W=!1;if(!U)try{window.parent.document&&(W=!1)}catch{W=!0}if(U&&!e)throw new Error("emit function is required");if(!U&&!W)return()=>{};void 0!==x&&void 0===S.mousemove&&(S.mousemove=x),Wt.reset();const B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},z=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};Uw();let $,H=0;const q=t=>{for(const e of D||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!W&&(t=w(t)),t};Ye=(t,i)=>{const o=t;if(o.timestamp=Gs(),Bs([bn,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&o.type!==me.FullSnapshot&&!(o.type===me.IncrementalSnapshot&&o.data.source===ue.Mutation)&&bn.forEach((t=>t.unfreeze())),U)Bs([e,"optionalCall",t=>t(q(o),i)]);else if(W){const t={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(o.type===me.FullSnapshot)$=o,H=0;else if(o.type===me.IncrementalSnapshot){if(o.data.source===ue.Mutation&&o.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&$&&o.timestamp-$.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.Mutation,...t}})},Y=t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Scroll,...t}}),K=t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),G=new pk({mutationCb:V,adoptedStyleSheetCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.AdoptedStyleSheet,...t}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new lk:new fk({mirror:Wt,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:Ye});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:Wt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new mk,Q=_k(F,{mirror:Wt,win:window,mutationCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),recordCanvas:C,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:k,sampling:S.canvas,dataURLOptions:E,errorHandler:j}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new dk:new hk({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:P,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:B,dataURLOptions:E,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:C,inlineImages:O,sampling:S,slimDOMOptions:z,iframeManager:J,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:X},mirror:Wt}),tt=(t=!1)=>{if(!I)return;Ye({type:me.Meta,data:{href:window.location.href,width:Lh(),height:Nh()}},t),G.reset(),Z.init(),bn.forEach((t=>t.lock()));const e=Fw(document,{mirror:Wt,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:B,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:z,dataURLOptions:E,recordCanvas:C,inlineImages:O,onSerialize:t=>{Bh(t,Wt)&&J.addIframe(t),Uh(t,Wt)&&G.trackLinkElement(t),gu(t)&&Z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{J.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),Z.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");Ye({type:me.FullSnapshot,data:{node:e,initialOffset:Dh(window)}}),bn.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Wt.getId(document))};Ys=tt;try{const t=[],e=t=>xe(ck)({onMutation:P,mutationCb:V,mousemoveCb:(t,e)=>Ye({type:me.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.MouseInteraction,...t}}),scrollCb:Y,viewportResizeCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.ViewportResize,...t}}),inputCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Input,...t}}),mediaInteractionCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.MediaInteraction,...t}}),styleSheetRuleCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.StyleSheetRule,...t}}),styleDeclarationCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.StyleDeclaration,...t}}),canvasMutationCb:K,fontCb:t=>Ye({type:me.IncrementalSnapshot,data:{source:ue.Font,...t}}),selectionCb:t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.Selection,...t}})},customElementCb:t=>{Ye({type:me.IncrementalSnapshot,data:{source:ue.CustomElement,...t}})},blockClass:i,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:B,inlineStylesheet:p,sampling:S,recordDOM:I,recordCanvas:C,inlineImages:O,userTriggeredOnInput:A,collectFonts:M,doc:t,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:N,blockSelector:o,unblockSelector:s,slimDOMOptions:z,dataURLOptions:E,mirror:Wt,iframeManager:J,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:L,plugins:Bs([D,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>Ye({type:me.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});J.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(dt("DOMContentLoaded",(()=>{Ye({type:me.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),t.push(dt("load",(()=>{Ye({type:me.Load,data:{}}),"load"===R&&n()}),window))),()=>{t.forEach((t=>t())),X.destroy(),Ys=void 0,Jw()}}catch(t){console.warn(t)}}function gk(t){if(!Ys)throw new Error("please take full snapshot after start recording");Ys(t)}function _k(t,e){try{return t?t(e):new kd}catch{return console.warn("Unable to initialize CanvasManager"),new kd}}mr.mirror=Wt,mr.takeFullSnapshot=gk;const yk=3,vk=5;function Ju(t){return t>9999999999?t:1e3*t}function qa(t){return t>9999999999?t/1e3:t}function Ai(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:me.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:fr(e,10,1e3)}}),"console"===e.category))))}const Sk="button,a";function Gh(t){return t.closest(Sk)||t}function Vh(t){const e=Yh(t);return e&&e instanceof Element?Gh(e):e}function Yh(t){return Ek(t)?t.target:t}function Ek(t){return"object"==typeof t&&!!t&&"target"in t}let Ar;function bk(t){return Ar||(Ar=[],wk()),Ar.push(t),()=>{const e=Ar?Ar.indexOf(t):-1;e>-1&&Ar.splice(e,1)}}function wk(){Pt(je,"open",(function(t){return function(...e){if(Ar)try{Ar.forEach((t=>t()))}catch{}return t.apply(je,e)}}))}const kk=new Set([ue.Mutation,ue.StyleSheetRule,ue.StyleDeclaration,ue.AdoptedStyleSheet,ue.CanvasMutation,ue.Selection,ue.MediaInteraction]);function Ik(t,e,n){t.handleClick(e,n)}class xk{constructor(t,e,n=Ai){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=bk((()=>{this._lastMutation=Id()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(Rk(e,this._ignoreSelector)||!Tk(t))return;const n={timestamp:qa(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=qa(t)}registerScroll(t=Date.now()){this._lastScroll=qa(t)}registerClick(t){const e=Gh(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=Id();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<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:s}=t;if(i){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:je.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(e,i)}else if(o>1){const t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:je.location.href,route:e.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=In((()=>this._checkClicks()),1e3)}}const Ck=["A","BUTTON","INPUT"];function Rk(t,e){return!!(!Ck.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||e&&t.matches(e))}function Tk(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}function Id(){return Date.now()/1e3}function Ak(t,e){try{if(!Mk(e))return;const{source:n}=e.data;if(kk.has(n)&&t.registerMutation(e.timestamp),n===ue.Scroll&&t.registerScroll(e.timestamp),Ok(e)){const{type:n,id:r}=e.data,i=mr.mirror.getNode(r);i instanceof HTMLElement&&n===ft.Click&&t.registerClick(i)}}catch{}}function Mk(t){return 3===t.type}function Ok(t){return t.data.source===ue.MouseInteraction}function Jt(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Ks;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Ks||(Ks={}));const Dk=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Nk(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Dk.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),e[r]=t[n]}return e}const Lk=t=>e=>{if(!t.isEnabled())return;const n=Pk(e);if(!n)return;const r="click"===e.name,i=r?e.event:void 0;r&&t.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Ik(t.clickDetector,n,Vh(e.event)),Ai(t,n)};function Kh(t,e){const n=mr.mirror.getId(t),r=n&&mr.mirror.getNode(n),i=r&&mr.mirror.getMeta(r),o=i&&Bk(i)?i:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((t=>t.type===Ks.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:Nk(o.attributes)}}:{}}}function Pk(t){const{target:e,message:n}=Fk(t);return Jt({category:`ui.${t.name}`,...Kh(e,n)})}function Fk(t){const e="click"===t.name;let n,r=null;try{r=e?Vh(t.event):Yh(t.event),n=Fu(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function Bk(t){return t.type===Ks.Element}function Uk(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=jk(e);n&&Ai(t,n)}function jk(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=t;if(!s||Wk(s)||!o)return null;const a=e||r||i,u=1===o.length;if(!a&&u)return null;const c=Fu(s,{maxStringLength:200})||"<unknown>";return Jt({category:"ui.keyDown",message:c,data:{...Kh(s,c).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function Wk(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}const zk={resource:Vk,paint:qk,navigation:Gk};function Ds(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function $k(t){return t.map(Hk).filter(Boolean)}function Hk(t){const e=zk[t.entryType];return e?e(t):null}function Rn(t){return((bE||je.performance.timeOrigin)+t)/1e3}function qk(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=Rn(i);return{type:n,name:r,start:o,end:o+e,data:void 0}}function Gk(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:f,redirectCount:d,startTime:h,transferSize:p,type:m}=t;return 0===i?null:{type:`${e}.${m}`,start:Rn(h),end:Rn(o),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:f,domComplete:o,redirectCount:d}}}function Vk(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:u,transferSize:c}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Rn(o),end:Rn(i),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:a}}}function Yk(t){const e=t.entries[t.entries.length-1];return fo(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function Kk(t){return void 0!==t.sources}function Xk(t){const e=[],n=[];for(const r of t.entries)if(Kk(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=mr.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return fo(t,"cumulative-layout-shift",n,e)}function Jk(t){const e=t.entries[t.entries.length-1];return fo(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function Zk(t){const e=t.entries[t.entries.length-1];return fo(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function fo(t,e,n,r){const i=t.value,o=t.rating,s=Rn(i);return{type:"web-vital",name:e,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map((t=>mr.mirror.getId(t))):void 0,attributions:r}}}function Qk(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(I1(t,n))})),r.push(b1(Ds(Yk,t)),E1(Ds(Xk,t)),w1(Ds(Jk,t)),k1(Ds(Zk,t))),()=>{r.forEach((t=>t()))}}const se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,eI='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 tI(){const t=new Blob([eI]);return URL.createObjectURL(t)}const xd=["info","warn","error","log"],Us="[Replay] ";function Ga(t,e="info"){Pb({category:"console",data:{logger:"replay"},level:e,message:`${Us}${t}`},{level:e})}function rI(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=n.captureExceptions,e=n.traceInternals}};return se?(xd.forEach((t=>{n[t]=(...n)=>{ht[t](Us,...n),e&&Ga(n.join(""),Fb(t))}})),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ht.error(Us,r),t?ju(r):e&&Ga(r,"error")},n.infoTick=(...t)=>{ht.info(Us,...t),e&&setTimeout((()=>Ga(t[0])),0)}):xd.forEach((t=>{n[t]=()=>{}})),n}const ae=rI();class Zu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qu}.`)}}class Xh{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>qu)throw new Zu;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Ju(t):null}}class nI{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){se&&ae.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return se&&ae.error("Error in compression worker: ",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class iI{constructor(t){this._worker=new nI(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=Ju(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>qu?Promise.reject(new Zu):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{se&&ae.exception(t,'Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class sI{constructor(t){this._fallback=new Xh,this._compression=new iI(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(se&&ae.exception(t,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const e of t)r.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(t){se&&ae.exception(t,"Failed to add events when switching buffers.")}}}function oI({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=aI(e);if(t)return t}return se&&ae.info("Using simple buffer"),new Xh}function aI(t){try{const e=t||uI();if(!e)return;se&&ae.info("Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new sI(n)}catch(t){se&&ae.exception(t,"Failed to create compression worker")}}function uI(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?tI():""}function Qu(){try{return"sessionStorage"in je&&!!je.sessionStorage}catch{return!1}}function cI(t){lI(),t.session=void 0}function lI(){if(Qu())try{je.sessionStorage.removeItem($u)}catch{}}function Jh(t){return void 0!==t&&Math.random()<t}function Zh(t){const e=Date.now();return{id:t.id||pr(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function ec(t){if(Qu())try{je.sessionStorage.setItem($u,JSON.stringify(t))}catch{}}function fI(t,e){return Jh(t)?"session":!!e&&"buffer"}function Cd({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const i=Zh({sampled:fI(t,e),previousSessionId:r});return n&&ec(i),i}function dI(){if(!Qu())return null;try{const t=je.sessionStorage.getItem($u);if(!t)return null;const e=JSON.parse(t);return se&&ae.infoTick("Loading existing session"),Zh(e)}catch{return null}}function vu(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Qh(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return vu(t.started,e,r)||vu(t.lastActivity,n,r)}function ep(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!Qh(t,{sessionIdleExpire:e,maxReplayDuration:n})||"buffer"===t.sampled&&0===t.segmentId)}function Va({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const i=r.stickySession&&dI();return i?ep(i,{sessionIdleExpire:t,maxReplayDuration:e})?(se&&ae.infoTick("Session in sessionStorage is expired, creating new one..."),Cd(r,{previousSessionId:i.id})):i:(se&&ae.infoTick("Creating new session"),Cd(r,{previousSessionId:n}))}function hI(t){return t.type===me.Custom}function tc(t,e,n){return!!rp(t,e)&&(tp(t,e,n),!0)}function pI(t,e,n){return rp(t,e)?tp(t,e,n):Promise.resolve(null)}async function tp(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const i="buffer"===t.recordingMode;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=mI(e,t.getOptions().beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(e){const n=e&&e instanceof Zu,o=n?"addEventSizeExceeded":"addEvent";if(n&&i)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:o});const s=Zt();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function rp(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Ju(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(se&&ae.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function mI(t,e){try{if("function"==typeof e&&hI(t))return e(t)}catch(t){return se&&ae.exception(t,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function rc(t){return!t.type}function Su(t){return"transaction"===t.type}function gI(t){return"replay_event"===t.type}function Rd(t){return"feedback"===t.type}function _I(t){return(e,n)=>{if(!t.isEnabled()||!rc(e)&&!Su(e))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Su(e))return void yI(t,e);vI(t,e)}}}function yI(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function vI(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();"function"==typeof r&&!r(e)||In((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}function SI(t){return e=>{!t.isEnabled()||!rc(e)||EI(t,e)}}function EI(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.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))){Ai(t,Jt({category:"replay.hydrate-error",data:{url:gE()}}))}}function bI(t){const e=Zt();e&&e.on("beforeAddBreadcrumb",(e=>wI(t,e)))}function wI(t,e){if(!t.isEnabled()||!np(e))return;const n=kI(e);n&&Ai(t,n)}function kI(t){return!np(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?II(t):Jt(t)}function II(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Jt(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>As?(n=!0,`${t.slice(0,As)}…`):t;if("object"==typeof t)try{const e=fr(t,7);return JSON.stringify(e).length>As?(n=!0,`${JSON.stringify(e,null,2).slice(0,As)}…`):e}catch{}return t}));return Jt({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function np(t){return!!t.category}function xI(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}function ip(){const t=Mn().getPropagationContext().dsc;t&&delete t.replay_id;const e=ch();if(e){delete fh(e).replay_id}}function CI(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:me.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}function RI(t,e){return!("buffer"!==t.recordingMode||e.message===Hu||!e.exception||e.type)&&Jh(t.getOptions().errorSampleRate)}function TI(t){return Object.assign(((e,n)=>!t.isEnabled()||t.isPaused()?e:gI(e)?(delete e.breadcrumbs,e):rc(e)||Su(e)||Rd(e)?t.checkAndHandleExpiredSession()?Rd(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),CI(t,e),e):xI(e,n)&&!t.getOptions()._experiments.captureExceptions?(se&&ae.log("Ignoring error from rrweb internals",e),null):((RI(t,e)||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e):(ip(),e):e),{id:"Replay"})}function ho(t,e){return e.map((({type:e,start:n,end:r,name:i,data:o})=>{const s=t.throttledAddEvent({type:me.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof s?Promise.resolve(null):s}))}function AI(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function MI(t){return e=>{if(!t.isEnabled())return;const n=AI(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(ho(t,[n]),!1))))}}function OI(t,e){return(!se||!t.getOptions()._experiments.traceInternals)&&Ob(e,Zt())}function sp(t,e){t.isEnabled()&&null!==e&&(OI(t,e.name)||t.addUpdate((()=>(ho(t,[e]),!0))))}function po(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=cp(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function op(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function ap(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[cp(t)];if(!t)return[void 0]}catch(e){return se&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return se&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xs(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function up(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:u}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:Ht({method:o,statusCode:s,request:a,response:u})}}function yi(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Or(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:o}=DI(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function Eu(t,e){return Object.entries(t).reduce(((n,[r,i])=>{const o=r.toLowerCase();return e.includes(o)&&t[r]&&(n[o]=i),n}),{})}function cp(t){return new URLSearchParams(t).toString()}function DI(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>ud,n=NI(t);if(e){const e=t.slice(0,ud);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function NI(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}function Js(t,e){return yE(LI(t),e)}function LI(t,e=je.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(je.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function PI(t,e,n){try{const r=up("resource.fetch",await BI(t,e,n));sp(n.replay,r)}catch(t){se&&ae.exception(t,"Failed to capture fetch breadcrumb")}}function FI(t,e){const{input:n,response:r}=e,i=po(n?lp(n):void 0),o=r?op(r.headers.get("content-length")):void 0;void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o)}async function BI(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=e,{url:s,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=t.data,f=Js(s,n.networkDetailAllowUrls)&&!Js(s,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:u,request:f?UI(n,e.input,c):yi(c),response:await jI(f,n,e.response,l)}}function UI({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=n?$I(n,e):{};if(!t)return Or(i,r,void 0);const o=lp(n),[s,a]=ap(o),u=Or(i,r,s);return a?Xs(u,a):u}async function jI(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,i){if(!t&&void 0!==i)return yi(i);const o=r?fp(r.headers,n):{};if(!r||!e&&void 0!==i)return Or(o,i,void 0);const[s,a]=await zI(r),u=WI(s,{networkCaptureBodies:e,responseBodySize:i,captureDetails:t,headers:o});return a?Xs(u,a):u}function WI(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:i}){try{const o=t&&t.length&&void 0===n?po(t):n;return r?Or(i,o,e?t:void 0):yi(o)}catch(t){return se&&ae.exception(t,"Failed to serialize response body"),Or(i,n,void 0)}}async function zI(t){const e=HI(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await qI(e)]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?(se&&ae.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(se&&ae.exception(t,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function lp(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function fp(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function $I(t,e){return 1===t.length&&"string"!=typeof t[0]?Td(t[0],e):2===t.length?Td(t[1],e):{}}function Td(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?fp(n,e):Array.isArray(n)?{}:Eu(n,e):{}}function HI(t){try{return t.clone()}catch(t){se&&ae.exception(t,"Failed to clone response body")}}function qI(t){return new Promise(((e,n)=>{const r=In((()=>n(new Error("Timeout while trying to read response body"))),500);GI(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}async function GI(t){return await t.text()}async function VI(t,e,n){try{const r=up("resource.xhr",KI(t,e,n));sp(n.replay,r)}catch(t){se&&ae.exception(t,"Failed to capture xhr breadcrumb")}}function YI(t,e){const{xhr:n,input:r}=e;if(!n)return;const i=po(r),o=n.getResponseHeader("content-length")?op(n.getResponseHeader("content-length")):QI(n.response,n.responseType);void 0!==i&&(t.data.request_body_size=i),void 0!==o&&(t.data.response_body_size=o)}function KI(t,e,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=e,{url:u,method:c,status_code:l=0,request_body_size:f,response_body_size:d}=t.data;if(!u)return null;if(!a||!Js(u,n.networkDetailAllowUrls)||Js(u,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:yi(f),response:yi(d)}}const h=a[j1],p=h?Eu(h.request_headers,n.networkRequestHeaders):{},m=Eu(XI(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ap(s):[void 0],[_,v]=n.networkCaptureBodies?JI(a):[void 0],b=Or(p,f,y),k=Or(m,d,_);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:l,request:g?Xs(b,g):b,response:v?Xs(k,v):k}}function XI(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{}):{}}function JI(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return ZI(t.response,t.responseType)}catch(t){e.push(t)}return se&&ae.warn("Failed to get xhr response body",...e),[void 0]}function ZI(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(e){return se&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return se&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function QI(t,e){try{return po("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}function ex(t){const e=Zt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};e&&e.on("beforeAddBreadcrumb",((t,e)=>tx(a,t,e)))}catch{}}function tx(t,e,n){if(e.data)try{rx(e)&&ix(n)&&(YI(e,n),VI(e,n,t)),nx(e)&&sx(n)&&(FI(e,n),PI(e,n,t))}catch(t){se&&ae.exception(t,"Error when enriching network breadcrumb")}}function rx(t){return"xhr"===t.category}function nx(t){return"fetch"===t.category}function ix(t){return t&&t.xhr}function sx(t){return t&&t.response}function ox(t){const e=Zt();O1(Lk(t)),F1(MI(t)),bI(t),ex(t);xb(TI(t)),e&&(e.on("beforeSendEvent",SI(t)),e.on("afterSendEvent",_I(t)),e.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),e.on("spanStart",(e=>{t.lastActiveSpan=e})),e.on("spanEnd",(e=>{t.lastActiveSpan=e})),e.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}async function ax(t){try{return Promise.all(ho(t,[ux(je.performance.memory)]))}catch{return[]}}function ux(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function cx(t,e,n){let r,i,o;const s=n.maxWait?Math.max(n.maxWait,e):0;function a(){return u(),r=t(),r}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=In(a,e),s&&void 0===o&&(o=In(a,s)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?a():r},c}function lx(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(se&&ae.warn("Received replay event after session expired."));const i=r||!e;e=!0,t.clickDetector&&Ak(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),!tc(t,n,i))return!0;if(!i)return!1;const e=t.session;if(dx(t,i),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(se&&ae.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),e.started=n,t.getOptions().stickySession&&ec(e))}return e&&e.previousSessionId||"session"===t.recordingMode&&t.flush(),!0}))}}function fx(t){const e=t.getOptions();return{type:me.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function dx(t,e){!e||!t.session||0!==t.session.segmentId||tc(t,fx(t),!1)}function hx(t,e,n,r){return ob(ub(t,ab(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}function px({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}async function mx({client:t,scope:e,replayId:n,event:r}){const i={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,i);const o=await gb(t.getOptions(),r,i,e,t,ki());if(!o)return null;o.platform=o.platform||"javascript";const s=t.getSdkMetadata(),{name:a,version:u}=s&&s.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},o}async function gx({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=px({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,f=Zt(),d=Mn(),h=f&&f.getTransport(),p=f&&f.getDsn();if(!(f&&h&&p&&o.sampled))return qf({});const m={type:K1,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},y=await mx({scope:d,client:f,replayId:e,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),se&&ae.info("An event processor returned `null`, will not send event."),qf({});delete y.sdkProcessingMetadata;const g=hx(y,s,p,f.getOptions().tunnel);let _;try{_=await h.send(g)}catch(t){const e=new Error(Hu);try{e.cause=t}catch{}throw e}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new dp(_.statusCode);const v=Mb({},_);if(Ab(v,"replay"))throw new nc(v);return _}class dp extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class nc extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function hp(t,e={count:0,interval:tw}){const{recordingData:n,onError:r}=t;if(n.length)try{return await gx(t),!0}catch(n){if(n instanceof dp||n instanceof nc)throw n;if(kb("Replays",{_retryCount:e.count}),r&&r(n),e.count>=3){const t=new Error(`${Hu} - max retries exceeded`);try{t.cause=n}catch{}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{In((async()=>{try{await hp(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const pp="__THROTTLED",_x="__SKIPPED";function yx(t,e,n){const r=new Map;let i=!1;return(...o)=>{const s=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(s),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=i;return i=!0,t?_x:pp}i=!1;const a=r.get(s)||0;return r.set(s,a+1),t(...o)}}class Mr{constructor({options:t,recordingOptions:e}){Mr.prototype.__init.call(this),Mr.prototype.__init2.call(this),Mr.prototype.__init3.call(this),Mr.prototype.__init4.call(this),Mr.prototype.__init5.call(this),Mr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:X1,sessionIdleExpire:J1},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=e,this._options=t,this._debouncedFlush=cx((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=yx(((t,e)=>pI(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(nw,n),timeout:n,scrollTimeout:iw,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new xk(this,i)),se){const e=t._experiments;ae.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){se&&ae.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(t),!this.session)return void(se&&ae.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",se&&ae.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(se&&ae.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(se&&ae.info("Buffering is in progress, call `flush()` to save the replay"));se&&ae.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Va({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(se&&ae.info("Buffering is in progress, call `flush()` to save the replay"));se&&ae.infoTick("Starting replay in buffer mode");const t=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=mr({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:ew}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:lx(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{se&&ae.info("Stopping Replay"+(e?` triggered by ${e}`:"")),ip(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,cI(this)}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),se&&ae.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),se&&ae.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();se&&ae.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!t||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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&&vu(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${je.location.pathname}${je.location.hash}${je.location.search}`,e=`${je.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===pp){const t=Jt({category:"replay.throttled"});this.addUpdate((()=>!tc(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||ch(),e=t&&Uu(t),n=(e&&hi(e).data||{})[uh];if(e&&n&&["route","custom"].includes(n))return hi(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=oI({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!ep(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{je.document.addEventListener("visibilitychange",this._handleVisibilityChange),je.addEventListener("blur",this._handleWindowBlur),je.addEventListener("focus",this._handleWindowFocus),je.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(ox(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Qk(this)}_removeListeners(){try{je.document.removeEventListener("visibilitychange",this._handleVisibilityChange),je.removeEventListener("blur",this._handleWindowBlur),je.removeEventListener("focus",this._handleWindowFocus),je.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===je.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Jt({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Jt({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{Uk(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Qh(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):se&&ae.info("Document has become active, but session has expired"))}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:me.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){let t=$k(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter((t=>t.start>=e))}return Promise.all(ho(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart||t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ax(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-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 i=await this.eventBuffer.finish();await hp({replayId:t,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=Zt();if(e){const n=t instanceof nc?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}else se&&ae.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(se&&ae.error("Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i)return se&&ae.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&&se&&ae.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ec(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Jt({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ri(t,e){return[...t,...e].join(",")}function vx({mask:t,unmask:e,block:n,unblock:r,ignore:i}){return{maskTextSelector:ri(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ri(e,[]),blockSelector:ri(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:ri(r,[]),ignoreSelector:ri(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Sx({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?o:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Ad='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ex=["content-length","content-type","accept"];let Md=!1;const bx=t=>new mo(t);class mo{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Z1,flushMaxDelay:e=Q1,minReplayDuration:n=sw,maxReplayDuration:r=cd,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:k=["title","placeholder"],unmask:w=[],block:S=[],unblock:E=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R}={}){this.name=mo.id;const A=vx({mask:b,unmask:w,block:S,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(t,e,n)=>Sx({maskAttributes:k,maskAllText:u,privacyOptions:A,key:t,value:e,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,ow),maxReplayDuration:Math.min(r,cd),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Od(_),networkResponseHeaders:Od(v),beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ad}`:Ad),this._isInitialized&&nd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Md}set _isInitialized(t){Md=t}afterAllSetup(t){!nd()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=wx(this._initialOptions,t);this._replay=new Mr({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch{}}}function wx(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ht(t)},i=Zf(n.replaysSessionSampleRate),o=Zf(n.replaysOnErrorSampleRate);return null==i&&null==o&&Ou((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}function Od(t){return[...Ex,...t.map((t=>t.toLowerCase()))]}mo.__initStatic();var at=Zd();const mp=()=>"object"!=typeof window;var kx={TERM_PROGRAM:"iTerm.app",NODE:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",TURBO_INVOCATION_DIR:"/Users/krasevych/Projects/Animatron/web-apps",NVM_CD_FLAGS:"-q",INIT_CWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/error-kit",TERM:"xterm-256color",SHELL:"/bin/zsh",TMPDIR:"/var/folders/1y/vz19w_xj5xzb49lxmbmzk7dc0000gn/T/",DOMAIN_ENV:"dev",npm_config_global_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",TERM_PROGRAM_VERSION:"3.5.11",NODE_OPTIONS:"--max-old-space-size=8192",TERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",COLOR:"1",npm_config_noproxy:"",npm_config_local_prefix:"/Users/krasevych/Projects/Animatron/web-apps",USER:"krasevych",NVM_DIR:"/Users/krasevych/.nvm",COMMAND_MODE:"unix2003",npm_config_globalconfig:"/Users/krasevych/.nvm/versions/node/v22.12.0/etc/npmrc",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.xn6U3pyr1k/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x0:0x2",npm_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",TERM_FEATURES:"T3LrMSc7UUw9Ts3BFGsSyHNoSxF",TERMINFO_DIRS:"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo",PATH:"/Users/krasevych/Projects/Animatron/web-apps/packages/error-kit/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/packages/node_modules/.bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin:/Users/krasevych/Projects/Animatron/node_modules/.bin:/Users/krasevych/Projects/node_modules/.bin:/Users/krasevych/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/usr/local/opt/postgresql@16/bin:/Users/krasevych/.yarn/bin:/Users/krasevych/.config/yarn/global/node_modules/.bin:/Users/krasevych/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",npm_package_json:"/Users/krasevych/Projects/Animatron/web-apps/packages/error-kit/package.json",LaunchInstanceID:"BC2D37FC-0469-4680-8D65-486E7C3C39CD",npm_config_userconfig:"/Users/krasevych/.npmrc",npm_config_init_module:"/Users/krasevych/.npm-init.js",__CFBundleIdentifier:"com.googlecode.iterm2",npm_command:"run-script",PWD:"/Users/krasevych/Projects/Animatron/web-apps/packages/error-kit",npm_lifecycle_event:"build",EDITOR:"vi",npm_package_name:"@wellesley/error-kit",LANG:"en_GB.UTF-8",ITERM_PROFILE:"Roman",npm_config_npm_version:"10.9.0",XPC_FLAGS:"0x0",TURBO_HASH:"cc3264cdd0d07559",npm_package_engines_node:">=20.2.0",npm_config_node_gyp:"/Users/krasevych/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",npm_package_version:"1.0.8",XPC_SERVICE_NAME:"0",SHLVL:"4",HOME:"/Users/krasevych",COLORFGBG:"7;0",LC_TERMINAL_VERSION:"3.5.11",ITERM_SESSION_ID:"w1t0p0:2F5FF982-E666-4698-885A-EB6F06825D4B",npm_config_cache:"/Users/krasevych/.npm",LOGNAME:"krasevych",npm_lifecycle_script:"tsc && vite build",NVM_BIN:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 darwin x64 workspaces/false",LC_TERMINAL:"iTerm2",SECURITYSESSIONID:"186a3",npm_node_execpath:"/Users/krasevych/.nvm/versions/node/v22.12.0/bin/node",npm_config_prefix:"/Users/krasevych/.nvm/versions/node/v22.12.0",COLORTERM:"truecolor",_:"/Users/krasevych/Projects/Animatron/web-apps/node_modules/.bin/vite",NODE_ENV:"production",TEST_1_SERVER:"https://dust.allroads.social",TEST_2_SERVER:"https://meteor.allroads.social",DEV_API_URL:"https://dust.allroads.social",DEV_LOCAL_TEST_ME_URL:"http://dev.localtest.me",APP_NAME:"@wellesley/error-kit"};function Ix(t){if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}function xx(t){return Ix(t)&&"type"in t&&"string"==typeof t.type}mp()||(window.build=kx.BUILD_NUMBER),bx(),H1(),jb();var gp=Symbol.for("immer-nothing"),Dd=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function $t(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Tn=Object.getPrototypeOf;function Dr(t){return!!t&&!!t[xt]}function _r(t){var e;return!!t&&(_p(t)||Array.isArray(t)||!!t[Dd]||!(null==(e=t.constructor)||!e[Dd])||_o(t)||yo(t))}var Cx=Object.prototype.constructor.toString();function _p(t){if(!t||"object"!=typeof t)return!1;const e=Tn(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Cx}function vi(t,e){0===go(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function go(t){const e=t[xt];return e?e.type_:Array.isArray(t)?1:_o(t)?2:yo(t)?3:0}function bu(t,e){return 2===go(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yp(t,e,n){const r=go(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Rx(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function _o(t){return t instanceof Map}function yo(t){return t instanceof Set}function Gr(t){return t.copy_||t.base_}function wu(t,e){if(_o(t))return new Map(t);if(yo(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&_p(t))return Tn(t)?{...t}:Object.assign(Object.create(null),t);const n=Object.getOwnPropertyDescriptors(t);delete n[xt];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],o=n[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Tn(t),n)}function ic(t,e=!1){return vo(t)||Dr(t)||!_r(t)||(go(t)>1&&(t.set=t.add=t.clear=t.delete=Tx),Object.freeze(t),e&&vi(t,((t,e)=>ic(e,!0)))),t}function Tx(){$t(2)}function vo(t){return Object.isFrozen(t)}var Si,Ax={};function Kr(t){const e=Ax[t];return e||$t(0,t),e}function vp(){return Si}function Mx(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nd(t,e){e&&(Kr("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ku(t){Iu(t),t.drafts_.forEach(Ox),t.drafts_=null}function Iu(t){t===Si&&(Si=t.parent_)}function Ld(t){return Si=Mx(Si,t)}function Ox(t){const e=t[xt];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function Pd(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[xt].modified_&&(ku(e),$t(4)),_r(t)&&(t=Zs(e,t),e.parent_||Qs(e,t)),e.patches_&&Kr("Patches").generateReplacementPatches_(n[xt].base_,t,e.patches_,e.inversePatches_)):t=Zs(e,n,[]),ku(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==gp?t:void 0}function Zs(t,e,n){if(vo(e))return e;const r=e[xt];if(!r)return vi(e,((i,o)=>Fd(t,r,e,i,o,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return Qs(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,o=!1;3===r.type_&&(i=new Set(e),e.clear(),o=!0),vi(i,((i,s)=>Fd(t,r,e,i,s,n,o))),Qs(t,e,!1),n&&t.patches_&&Kr("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Fd(t,e,n,r,i,o,s){if(Dr(i)){const s=Zs(t,i,o&&e&&3!==e.type_&&!bu(e.assigned_,r)?o.concat(r):void 0);if(yp(n,r,s),!Dr(s))return;t.canAutoFreeze_=!1}else s&&n.add(i);if(_r(i)&&!vo(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Zs(t,i),(!e||!e.scope_.parent_)&&Qs(t,i)}}function Qs(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ic(e,n)}function Dx(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:vp(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=sc;n&&(i=[r],o=Ei);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var sc={get(t,e){if(e===xt)return t;const n=Gr(t);if(!bu(n,e))return Nx(t,n,e);const r=n[e];return t.finalized_||!_r(r)?r:r===Ya(t.base_,e)?(Ka(t),t.copy_[e]=Cu(r,t)):r},has:(t,e)=>e in Gr(t),ownKeys:t=>Reflect.ownKeys(Gr(t)),set(t,e,n){const r=Sp(Gr(t),e);if(null!=r&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Ya(Gr(t),e),i=null==r?void 0:r[xt];if(i&&i.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(Rx(n,r)&&(void 0!==n||bu(t.base_,e)))return!0;Ka(t),xu(t)}return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==Ya(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Ka(t),xu(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=Gr(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}},defineProperty(){$t(11)},getPrototypeOf:t=>Tn(t.base_),setPrototypeOf(){$t(12)}},Ei={};function Ya(t,e){const n=t[xt];return(n?Gr(n):t)[e]}function Nx(t,e,n){var r;const i=Sp(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}function Sp(t,e){if(!(e in t))return;let n=Tn(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Tn(n)}}function xu(t){t.modified_||(t.modified_=!0,t.parent_&&xu(t.parent_))}function Ka(t){t.copy_||(t.copy_=wu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}vi(sc,((t,e)=>{Ei[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ei.deleteProperty=function(t,e){return Ei.set.call(this,t,e,void 0)},Ei.set=function(t,e,n){return sc.set.call(this,t[0],e,n,t[0])};var Lx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&$t(6),void 0!==n&&"function"!=typeof n&&$t(7),_r(t)){const i=Ld(this),o=Cu(t,void 0);let s=!0;try{r=e(o),s=!1}finally{s?ku(i):Iu(i)}return Nd(i,n),Pd(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===gp&&(r=void 0),this.autoFreeze_&&ic(r,!0),n){const e=[],i=[];Kr("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}$t(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;return[this.produce(t,e,((t,e)=>{n=t,r=e})),n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){_r(t)||$t(8),Dr(t)&&(t=Ep(t));const e=Ld(this),n=Cu(t,void 0);return n[xt].isManual_=!0,Iu(e),n}finishDraft(t,e){const n=t&&t[xt];(!n||!n.isManual_)&&$t(9);const{scope_:r}=n;return Nd(r,e),Pd(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=Kr("Patches").applyPatches_;return Dr(t)?r(t,e):this.produce(t,(t=>r(t,e)))}};function Cu(t,e){const n=_o(t)?Kr("MapSet").proxyMap_(t,e):yo(t)?Kr("MapSet").proxySet_(t,e):Dx(t,e);return(e?e.scope_:vp()).drafts_.push(n),n}function Ep(t){return Dr(t)||$t(10,t),bp(t)}function bp(t){if(!_r(t)||vo(t))return t;const e=t[xt];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=wu(t,e.scope_.immer_.useStrictShallowCopy_)}else n=wu(t,!0);return vi(n,((t,e)=>{yp(n,t,bp(e))})),e&&(e.finalized_=!1),n}var Ct=new Lx,wp=Ct.produce;function Px(t,e="expected a function, instead received "+typeof t){if("function"!=typeof t)throw new TypeError(e)}function Fx(t,e="expected an object, instead received "+typeof t){if("object"!=typeof t)throw new TypeError(e)}function Bx(t,e="expected all items to be functions, instead received the following types: "){if(!t.every((t=>"function"==typeof t))){const n=t.map((t=>"function"==typeof t?`function ${t.name||"unnamed"}()`:typeof t)).join(", ");throw new TypeError(`${e}[${n}]`)}}Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct),Ct.createDraft.bind(Ct),Ct.finishDraft.bind(Ct);var Bd=t=>Array.isArray(t)?t:[t];function Ux(t){const e=Array.isArray(t[0])?t[0]:t;return Bx(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function jx(t,e){const n=[],{length:r}=t;for(let i=0;i<r;i++)n.push(t[i].apply(null,e));return n}var Wx=class{constructor(t){this.value=t}deref(){return this.value}},zx=typeof WeakRef<"u"?WeakRef:Wx,$x=0,Ud=1;function Ns(){return{s:$x,v:void 0,o:null,p:null}}function oc(t,e={}){let n=Ns();const{resultEqualityCheck:r}=e;let i,o=0;function s(){var e;let s=n;const{length:a}=arguments;for(let t=0,e=a;t<e;t++){const e=arguments[t];if("function"==typeof e||"object"==typeof e&&null!==e){let t=s.o;null===t&&(s.o=t=new WeakMap);const n=t.get(e);void 0===n?(s=Ns(),t.set(e,s)):s=n}else{let t=s.p;null===t&&(s.p=t=new Map);const n=t.get(e);void 0===n?(s=Ns(),t.set(e,s)):s=n}}const u=s;let c;if(s.s===Ud?c=s.v:(c=t.apply(null,arguments),o++),u.s=Ud,r){const t=(null==(e=null==i?void 0:i.deref)?void 0:e.call(i))??i;null!=t&&r(t,c)&&(c=t,0!==o&&o--),i="object"==typeof c&&null!==c||"function"==typeof c?new zx(c):c}return u.v=c,c}return s.clearCache=()=>{n=Ns(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function kp(t,...e){const n="function"==typeof t?{memoize:t,memoizeOptions:e}:t,r=(...t)=>{let e,r=0,i=0,o={},s=t.pop();"object"==typeof s&&(o=s,s=t.pop()),Px(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...n,...o},{memoize:u,memoizeOptions:c=[],argsMemoize:l=oc,argsMemoizeOptions:f=[],devModeChecks:d={}}=a,h=Bd(c),p=Bd(f),m=Ux(t),y=u((function(){return r++,s.apply(null,arguments)}),...h),g=l((function(){i++;const t=jx(m,arguments);return e=y.apply(null,t),e}),...p);return Object.assign(g,{resultFunc:s,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>e,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var Hx=kp(oc),qx=Object.assign(((t,e=Hx)=>{Fx(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const n=Object.keys(t);return e(n.map((e=>t[e])),((...t)=>t.reduce(((t,e,r)=>(t[n[r]]=e,t)),{})))}),{withTypes:()=>qx}),Gx=(...t)=>{const e=kp(...t),n=Object.assign(((...t)=>{const n=e(...t),r=(t,...e)=>n(Dr(t)?Ep(t):t,...e);return Object.assign(r,n),r}),{withTypes:()=>n});return n};function An(t,e){function n(...n){if(e){let r=e(...n);if(!r)throw new Error(It(0));return{type:t,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:t,payload:n[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=e=>xx(e)&&e.type===t,n}function jd(t){return _r(t)?wp(t,(()=>{})):t}function Wd(t,e,n){if(t.has(e)){let r=t.get(e);return n.update&&(r=n.update(r,e,t),t.set(e,r)),r}if(!n.insert)throw new Error(It(10));const r=n.insert(e,t);return t.set(e,r),r}function Ip(t){const e={},n=[];let r;const i={addCase(t,n){const r="string"==typeof t?t:t.type;if(!r)throw new Error(It(28));if(r in e)throw new Error(It(29));return e[r]=n,i},addMatcher:(t,e)=>(n.push({matcher:t,reducer:e}),i),addDefaultCase:t=>(r=t,i)};return t(i),[e,n,r]}function Vx(t){return"function"==typeof t}function Yx(t,e){let n,[r,i,o]=Ip(e);if(Vx(t))n=()=>jd(t());else{const e=jd(t);n=()=>e}function s(t=n(),e){let s=[r[e.type],...i.filter((({matcher:t})=>t(e))).map((({reducer:t})=>t))];return 0===s.filter((t=>!!t)).length&&(s=[o]),s.reduce(((t,n)=>{if(n){if(Dr(t)){const r=n(t,e);return void 0===r?t:r}if(_r(t))return wp(t,(t=>n(t,e)));{const r=n(t,e);if(void 0===r){if(null===t)return t;throw new Error(It(9))}return r}}return t}),t)}return s.getInitialState=n,s}Gx(oc);var Kx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xx=(t=21)=>{let e="",n=t;for(;n--;)e+=Kx[64*Math.random()|0];return e},Jx=Symbol.for("rtk-slice-createasyncthunk");function Zx(t,e){return`${t}/${e}`}function Qx({creators:t}={}){var e;const n=null==(e=null==t?void 0:t.asyncThunk)?void 0:e[Jx];return function(t){const{name:e,reducerPath:r=e}=t;if(!e)throw new Error(It(11));const i=("function"==typeof t.reducers?t.reducers(rC()):t.reducers)||{},o=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(t,e){const n="string"==typeof t?t:t.type;if(!n)throw new Error(It(12));if(n in s.sliceCaseReducersByType)throw new Error(It(13));return s.sliceCaseReducersByType[n]=e,a},addMatcher:(t,e)=>(s.sliceMatchers.push({matcher:t,reducer:e}),a),exposeAction:(t,e)=>(s.actionCreators[t]=e,a),exposeCaseReducer:(t,e)=>(s.sliceCaseReducersByName[t]=e,a)};function u(){const[e={},n=[],r]="function"==typeof t.extraReducers?Ip(t.extraReducers):[t.extraReducers],i={...e,...s.sliceCaseReducersByType};return Yx(t.initialState,(t=>{for(let e in i)t.addCase(e,i[e]);for(let e of s.sliceMatchers)t.addMatcher(e.matcher,e.reducer);for(let e of n)t.addMatcher(e.matcher,e.reducer);r&&t.addDefaultCase(r)}))}o.forEach((r=>{const o=i[r],s={reducerName:r,type:Zx(e,r),createNotation:"function"==typeof t.reducers};iC(o)?oC(s,o,a,n):nC(s,o,a)}));const c=t=>t,l=new Map;let f;function d(t,e){return f||(f=u()),f(t,e)}function h(){return f||(f=u()),f.getInitialState()}function p(e,n=!1){function r(t){let r=t[e];return typeof r>"u"&&n&&(r=h()),r}function i(e=c){const r=Wd(l,n,{insert:()=>new WeakMap});return Wd(r,e,{insert:()=>{const r={};for(const[i,o]of Object.entries(t.selectors??{}))r[i]=eC(o,e,h,n);return r}})}return{reducerPath:e,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const m={name:e,reducer:d,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:h,...p(r),injectInto(t,{reducerPath:e,...n}={}){const i=e??r;return t.inject({reducerPath:i,reducer:d},n),{...m,...p(i,!0)}}};return m}}function eC(t,e,n,r){function i(i,...o){let s=e(i);return typeof s>"u"&&r&&(s=n()),t(s,...o)}return i.unwrapped=t,i}var tC=Qx();function rC(){function t(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return t.withTypes=()=>t,{reducer:t=>Object.assign({[t.name]:(...e)=>t(...e)}[t.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(t,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}),asyncThunk:t}}function nC({type:t,reducerName:e,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!sC(r))throw new Error(It(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?An(t,s):An(t))}function iC(t){return"asyncThunk"===t._reducerDefinitionType}function sC(t){return"reducerWithPrepare"===t._reducerDefinitionType}function oC({type:t,reducerName:e},n,r,i){if(!i)throw new Error(It(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:c,options:l}=n,f=i(t,o,l);r.exposeAction(e,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),u&&r.addCase(f.rejected,u),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Ls,pending:a||Ls,rejected:u||Ls,settled:c||Ls})}function Ls(){}var aC=(t,e)=>{if("function"!=typeof t)throw new Error(It(32))},ac="listenerMiddleware",uC=t=>{let{type:e,actionCreator:n,matcher:r,predicate:i,effect:o}=t;if(e)i=An(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(It(21));return aC(o),{predicate:i,type:e,effect:o}},cC=Object.assign((t=>{const{type:e,predicate:n,effect:r}=uC(t);return{id:Xx(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(It(22))}}}),{withTypes:()=>cC}),lC=Object.assign(An(`${ac}/add`),{withTypes:()=>lC});An(`${ac}/removeAll`);var fC=Object.assign(An(`${ac}/remove`),{withTypes:()=>fC});function It(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const zd={data:null,isError:!1,isPending:!1,isSuccess:!1};tC({name:"user",initialState:zd,reducers:{reset:t=>{Object.assign(t,zd)},setData:(t,{payload:e})=>{t.data=e},updateData:(t,{payload:e})=>{t.data&&Object.assign(t.data,e)},setSuccess:(t,{payload:e})=>{t.isSuccess=e},setPending:(t,{payload:e})=>{t.isPending=e},setIsError:(t,{payload:e})=>{t.isError=e},setError:(t,{payload:e})=>{t.error=e},updateUser:(t,{payload:e})=>{var n;null!=(n=t.data)&&n.users&&(t.data.users=t.data.users.map((t=>e.id===t.id?e:t)))}},selectors:{selectIsError:t=>t.isError,selectError:t=>t.error,selectPending:t=>t.isPending,selectData:t=>t.data,selectAccount:t=>{var e;return null==(e=t.data)?void 0:e.account},selectUsers:t=>{var e;return null==(e=t.data)?void 0:e.users},selectUserById:(t,e)=>{var n;return null==(n=t.data)?void 0:n.users.find((({id:t})=>t===e))},selectCurrentUser:t=>{var e;return null==(e=t.data)?void 0:e.users.find((({id:e})=>{var n;return e===(null==(n=t.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:t=>{var e;return null==(e=t.data)?void 0:e.selectedUserId},selectSuccess:t=>t.isSuccess,selectIsAdmin:t=>{var e;return"ADMIN"===(null==(e=t.data)?void 0:e.account.role)}}});const dC=(...t)=>{let e="";for(const n of t){if(n instanceof Error){const t=n;return Ib("exceptionMessage",e),void ju(t)}if("object"!=typeof n)e+=n;else try{e+=" "+JSON.stringify(n)}catch{e+=" "+n}}wb(e)},$d=["debug","info","warn","error"],hC=(t,e)=>{const n=$d.indexOf(t);return $d.indexOf(e)>=n},Ps=(t,e,n,...r)=>{hC(e,t)&&console.log(`[${t}] ${n}`,...r)},pC=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),mC=(t=!mp()&&pC()||"warn")=>{let e=t;return{debug:(t,...n)=>Ps("debug",e,t,...n),info:(t,...n)=>Ps("info",e,t,...n),warn:(t,...n)=>Ps("warn",e,t,...n),error:(t,...n)=>(dC(t,...n),Ps("error",e,t,...n)),setLevel:t=>{e=t},getLevel:()=>e}},Ru=mC(),gC="http://localhost:3100/@wellesley/error-kit/ooopsIcon.svg?no-inline";var Hd,ii={exports:{}},_C=ii.exports;
19
+ */}function iE(){if(Ff)return ti;Ff=1;var t=Zd(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,u={},c=null,l=null;for(a in void 0!==s&&(c=""+s),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(u[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===u[a]&&(u[a]=n[a]);return{$$typeof:e,type:t,key:c,ref:l,props:u,_owner:o.current}}return ti.Fragment=n,ti.jsx=s,ti.jsxs=s,ti}function oE(){return Bf||(Bf=1,Pa.exports=iE()),Pa.exports}var St=oE();const Mu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,oi="8.48.0",ut=globalThis;function ts(t,e,n){const r=ut,o=r.__SENTRY__=r.__SENTRY__||{},i=o[oi]=o[oi]||{};return i[t]||(i[t]=e())}const bi=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sE="Sentry Logger ",jf=["debug","info","warn","error","log","assert","trace"],Uf={};function Ou(t){if(!("console"in ut))return t();const e=ut.console,n={},r=Object.keys(Uf);r.forEach((t=>{const r=Uf[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}function aE(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return bi?jf.forEach((n=>{e[n]=(...e)=>{t&&Ou((()=>{ut.console[n](`${sE}[${n}]:`,...e)}))}})):jf.forEach((t=>{e[t]=()=>{}})),e}const ht=ts("logger",aE),Ba="<anonymous>";function gr(t){try{return t&&"function"==typeof t&&t.name||Ba}catch{return Ba}}function Wf(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach((e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)})),t}catch{return}}}const Bo={},zf={};function Qd(t,e){Bo[t]=Bo[t]||[],Bo[t].push(e)}function eh(t,e){if(!zf[t]){zf[t]=!0;try{e()}catch(e){bi&&ht.error(`Error while instrumenting ${t}`,e)}}}function ru(t,e){const n=t&&Bo[t];if(n)for(const r of n)try{r(e)}catch(e){bi&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function wi(){return Du(ut),ut}function Du(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||oi,e[oi]=e[oi]||{}}const th=Object.prototype.toString;function uE(t){switch(th.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return rs(t,Error)}}function Nu(t,e){return th.call(t)===`[object ${e}]`}function Wo(t){return Nu(t,"String")}function Lu(t){return Nu(t,"Object")}function cE(t){return typeof Event<"u"&&rs(t,Event)}function lE(t){return typeof Element<"u"&&rs(t,Element)}function fE(t){return Nu(t,"RegExp")}function Pu(t){return!(!t||!t.then||"function"!=typeof t.then)}function dE(t){return Lu(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function rs(t,e){try{return t instanceof e}catch{return!1}}function hE(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const rh=ut,pE=80;function Fu(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,o=[];let i=0,s=0;const a=" > ",u=a.length;let c;const l=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&i++<r&&(c=mE(n,l),!("html"===c||i>1&&s+o.length*u+c.length>=f));)o.push(c),s+=c.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function mE(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(rh.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 o=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(o&&o.length)o.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&Wo(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const i=["aria-label","type","name","title","alt"];for(const t of i){const e=n.getAttribute(t);e&&r.push(`[${t}="${e}"]`)}return r.join("")}function gE(){try{return rh.document.location.href}catch{return""}}function ja(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function _E(t,e,n=!1){return!!Wo(t)&&(fE(e)?e.test(t):!!Wo(e)&&(n?t===e:t.includes(e)))}function yE(t,e=[],n=!1){return e.some((e=>_E(t,e,n)))}function Pt(t,e,n){if(!(e in t))return;const r=t[e],o=n(r);"function"==typeof o&&nh(o,r);try{t[e]=o}catch{bi&&ht.log(`Failed to replace method "${e}" in object`,t)}}function di(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{bi&&ht.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function nh(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,di(t,"__sentry_original__",e)}catch{}}function ih(t){return t.__sentry_original__}function vE(t){if(uE(t))return{message:t.message,name:t.name,stack:t.stack,...Hf(t)};if(cE(t)){const e={type:t.type,target:$f(t.target),currentTarget:$f(t.currentTarget),...Hf(t)};return typeof CustomEvent<"u"&&rs(t,CustomEvent)&&(e.detail=t.detail),e}return t}function $f(t){try{return lE(t)?Fu(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function Hf(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function Ht(t){return nu(t,new Map)}function nu(t,e){if(SE(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.getOwnPropertyNames(t))typeof t[n]<"u"&&(r[n]=nu(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(nu(t,e))})),r}return t}function SE(t){if(!Lu(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch{return!0}}const oh=1e3;function ns(){return Date.now()/oh}function EE(){const{performance:t}=ut;if(!t||!t.now)return ns;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/oh}const sh=EE(),bE=(()=>{const{performance:t}=ut;if(!t||!t.now)return;const e=36e5,n=t.now(),r=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=o<e,s=t.timing&&t.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):e;return i||a<e?o<=a?t.timeOrigin:s:r})();function pr(){const t=ut,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function wE(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function IE(t,e,n){const r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=""),i.type||(i.type="Error")}function ah(t,e){const n=wE(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}var lr;function qf(t){return new hr((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(lr||(lr={}));class hr{constructor(t){hr.prototype.__init.call(this),hr.prototype.__init2.call(this),hr.prototype.__init3.call(this),hr.prototype.__init4.call(this),this._state=lr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new hr(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new hr(((e,n)=>{let r,o;return this.then((e=>{o=!1,r=e,t&&t()}),(e=>{o=!0,r=e,t&&t()})).then((()=>{o?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(lr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(lr.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===lr.PENDING){if(Pu(e))return void e.then(this._resolve,this._reject);this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===lr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===lr.RESOLVED&&t[1](this._value),this._state===lr.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function kE(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||sh(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:pr()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Gf(){return pr()}function iu(){return pr().substring(16)}function is(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&e&&0===Object.keys(e).length)return t;const r={...t};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=is(r[t],e[t],n-1));return r}const ou="_sentrySpan";function Yf(t,e){e?di(t,ou,e):delete t[ou]}function su(t){return t[ou]}const CE=100;class Bu{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:Gf(),spanId:iu()}}clone(){const t=new Bu;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Yf(t,su(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&kE(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Vr?[e.getScopeData(),e.getRequestSession()]:Lu(e)?[t,t.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:u,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),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,Yf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Gf()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:CE;if(n<=0)return this;const r={timestamp:ns(),...t},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,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:su(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=is(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:iu(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:pr();if(!this._client)return ht.warn("No client configured on scope - will not capture message!"),r;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:pr();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(ht.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const Vr=Bu;function xE(){return ts("defaultCurrentScope",(()=>new Vr))}function RE(){return ts("defaultIsolationScope",(()=>new Vr))}class TE{constructor(t,e){let n,r;n=t||new Vr,r=e||new Vr,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return Pu(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function wn(){const t=Du(wi());return t.stack=t.stack||new TE(xE(),RE())}function AE(t){return wn().withScope(t)}function ME(t,e){const n=wn();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function Vf(t){return wn().withScope((()=>t(wn().getIsolationScope())))}function OE(){return{withIsolationScope:Vf,withScope:AE,withSetScope:ME,withSetIsolationScope:(t,e)=>Vf(e),getCurrentScope:()=>wn().getScope(),getIsolationScope:()=>wn().getIsolationScope()}}function os(t){const e=Du(t);return e.acs?e.acs:OE()}function Mn(){return os(wi()).getCurrentScope()}function Ii(){return os(wi()).getIsolationScope()}function DE(){return ts("globalScope",(()=>new Vr))}function NE(...t){const e=os(wi());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function Zt(){return Mn().getClient()}const LE="_sentryMetrics";function PE(t){const e=t[LE];if(!e)return;const n={};for(const[,[t,r]]of e)(n[t]||(n[t]=[])).push(Ht(r));return n}const uh="sentry.source",FE="sentry.sample_rate",BE="sentry.op",jE="sentry.origin",UE=0,WE=1,zE="sentry-",$E=/^sentry-/;function HE(t){const e=qE(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>{if(e.match($E)){t[e.slice(7)]=n}return t}),{});return Object.keys(n).length>0?n:void 0}function qE(t){if(t&&(Wo(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=Kf(e);return Object.entries(n).forEach((([e,n])=>{t[e]=n})),t}),{}):Kf(t)}function Kf(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(e&&n&&(t[e]=n),t)),{})}const GE=1;function YE(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext();return Ht({parent_span_id:r?e:hi(t).parent_span_id,span_id:r?iu():e,trace_id:n})}function Jf(t){return"number"==typeof t?Xf(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Xf(t.getTime()):sh()}function Xf(t){return t>9999999999?t/1e3:t}function hi(t){if(KE(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(VE(t)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:u}=t;return Ht({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Jf(o),timestamp:Jf(s)||void 0,status:XE(u),op:r[BE],origin:r[jE],_metrics_summary:PE(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function VE(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}function KE(t){return"function"==typeof t.getSpanJSON}function JE(t){const{traceFlags:e}=t.spanContext();return 1===e}function XE(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"unknown_error"}const ZE="_sentryRootSpan";function ju(t){return t[ZE]||t}function ch(){const t=os(wi());return t.getActiveSpan?t.getActiveSpan():su(Mn())}function QE(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=Zt(),n=e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const lh="production",eb="_frozenDsc";function tb(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},o=Ht({environment:n.environment||lh,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",o),o}function fh(t){const e=Zt();if(!e)return{};const n=ju(t),r=n[eb];if(r)return r;const o=n.spanContext().traceState,i=o&&o.get("sentry.dsc"),s=i&&HE(i);if(s)return s;const a=tb(t.spanContext().traceId,e),u=hi(n),c=u.data||{},l=c[FE];null!=l&&(a.sample_rate=`${l}`);const f=c[uh],d=u.description;return"url"!==f&&d&&(a.transaction=d),QE()&&(a.sampled=String(JE(n))),e.emit("createDsc",a,n),a}function Zf(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;Mu&&ht.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}function rb(t,e=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function nb(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}function fr(t,e=100,n=1/0){try{return au("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function au(t,e,n=1/0,r=1/0,o=nb()){const[i,s]=o;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=ib(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===u)return a.replace("object ","");if(i(e))return"[Circular ~]";const c=e;if(c&&"function"==typeof c.toJSON)try{return au("",c.toJSON(),u-1,r,o)}catch{}const l=Array.isArray(e)?[]:{};let f=0;const d=vE(e);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(f>=r){l[t]="[MaxProperties ~]";break}const e=d[t];l[t]=au(t,e,u-1,r,o),f++}return s(e),l}function ib(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(hE(e))return"[VueViewModel]";if(dE(e))return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${gr(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=ob(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}function ob(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function sb(t,e=[]){return[t,e]}function ab(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ub(t,e,n,r){const o=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:rb(r)},...o&&{trace:Ht({...o})}}}function uu(t,e,n,r=0){return new hr(((o,i)=>{const s=t[r];if(null===e||"function"!=typeof s)o(e);else{const a=s({...e},n);Mu&&s.id&&null===a&&ht.log(`Event processor "${s.id}" dropped event`),Pu(a)?a.then((e=>uu(t,e,n,r+1).then(o))).then(null,i):uu(t,a,n,r+1).then(o).then(null,i)}}))}let ko,Qf,Co;function cb(t){const e=ut._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return Co&&n.length===Qf||(Qf=n.length,Co=n.reduce(((n,r)=>{ko||(ko={});const o=ko[r];if(o)n[o[0]]=o[1];else{const o=t(r);for(let t=o.length-1;t>=0;t--){const i=o[t],s=i&&i.filename,a=e[r];if(s&&a){n[s]=a,ko[r]=[s,a];break}}}return n}),{})),Co}function lb(t,e){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=e;fb(t,e),r&&pb(t,r),mb(t,n),db(t,o),hb(t,i)}function ed(t,e){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:f,propagationContext:d,transactionName:h,span:p}=e;xo(t,"extra",n),xo(t,"tags",r),xo(t,"user",o),xo(t,"contexts",i),t.sdkProcessingMetadata=is(t.sdkProcessingMetadata,a,2),s&&(t.level=s),h&&(t.transactionName=h),p&&(t.span=p),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function xo(t,e,n){t[e]=is(t[e],n,1)}function fb(t,e){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=e,u=Ht(n);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const c=Ht(r);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const l=Ht(o);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=Ht(i);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts}),s&&(t.level=s),a&&"transaction"!==t.type&&(t.transaction=a)}function db(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function hb(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function pb(t,e){t.contexts={trace:YE(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:fh(e),...t.sdkProcessingMetadata};const n=hi(ju(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}function mb(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function gb(t,e,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,u={...e,event_id:e.event_id||n.event_id||pr(),timestamp:e.timestamp||ns()},c=n.integrations||t.integrations.map((t=>t.name));_b(u,t),Sb(u,c),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&yb(u,t.stackParser);const l=bb(r,n.captureContext);n.mechanism&&ah(u,n.mechanism);const f=o?o.getEventProcessors():[],d=DE().getScopeData();if(i){ed(d,i.getScopeData())}if(l){ed(d,l.getScopeData())}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),lb(u,d);return uu([...f,...d.eventProcessors],u,n).then((t=>(t&&vb(t),"number"==typeof s&&s>0?Eb(t,s,a):t)))}function _b(t,e){const{environment:n,release:r,dist:o,maxValueLength:i=250}=e;t.environment=t.environment||n||lh,!t.release&&r&&(t.release=r),!t.dist&&o&&(t.dist=o),t.message&&(t.message=ja(t.message,i));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=ja(s.value,i));const a=t.request;a&&a.url&&(a.url=ja(a.url,i))}function yb(t,e){const n=cb(e);try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{n&&t.filename&&(t.debug_id=n[t.filename])}))}))}catch{}}function vb(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch{}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach((([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})}))}function Sb(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Eb(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))},...t.user&&{user:fr(t.user,e,n)},...t.contexts&&{contexts:fr(t.contexts,e,n)},...t.extra&&{extra:fr(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=fr(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:fr(t.data,e,n)}})))),t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=fr(t.contexts.flags,3,n)),r}function bb(t,e){if(!e)return t;const n=t?t.clone():new Vr;return n.update(e),n}function Uu(t,e){return Mn().captureException(t,void 0)}function wb(t,e){const n={captureContext:e};return Mn().captureMessage(t,void 0,n)}function Ib(t,e){Ii().setContext(t,e)}function kb(t,e){Ii().setExtra(t,e)}function Cb(t){Ii().addEventProcessor(t)}const xb=6e4;function Rb(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?xb:r-e}function Tb(t,e){return t[e]||t.all||0}function Ab(t,e,n=Date.now()){return Tb(t,e)>n}function Mb(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,i]=t.split(":",5),s=parseInt(e,10),a=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))"metric_bucket"===t?(!i||i.split(";").includes("custom"))&&(o[t]=r+a):o[t]=r+a;else o.all=r+a}else s?o.all=r+Rb(s,r):429===e&&(o.all=r+6e4);return o}function Ob(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return Nb(t,n)||Db(t,r)}function Db(t,e){return!!e&&td(t)===td(e)}function Nb(t,e){return!!e&&t.includes(e.host)}function td(t){return"/"===t[t.length-1]?t.slice(0,-1):t}const Lb=100;function Pb(t,e){const n=Zt(),r=Ii();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Lb}=n.getOptions();if(i<=0)return;const s={timestamp:ns(),...t},a=o?Ou((()=>o(s,e))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,i))}function Fb(t){return"warn"===t?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const Bb="Dedupe",jb=()=>{let t;return{name:Bb,processEvent(e){if(e.type)return e;try{if(Wb(e,t))return Mu&&ht.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},Ub=jb;function Wb(t,e){return!!e&&!(!zb(t,e)&&!$b(t,e))}function zb(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hh(t,e)||!dh(t,e))}function $b(t,e){const n=rd(e),r=rd(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&hh(t,e)&&dh(t,e))}function dh(t,e){let n=Wf(t),r=Wf(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],o=n[t];if(e.filename!==o.filename||e.lineno!==o.lineno||e.colno!==o.colno||e.function!==o.function)return!1}return!0}function hh(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function rd(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Hb(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function qb(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Gb(){return!qb()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}function nd(){return typeof window<"u"&&(!Gb()||Yb())}function Yb(){const t=ut.process;return!!t&&"renderer"===t.type}const Ro=ut;function Vb(){const t=Ro.chrome,e=t&&t.app&&t.app.runtime,n="history"in Ro&&!!Ro.history.pushState&&!!Ro.history.replaceState;return!e&&n}function Kb(t,e){return t??e()}function jo(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}const ni=ut;function Jb(){setTimeout((()=>{}))}function In(t,e={}){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(ih(t))return t}catch{return t}const n=function(...n){try{const r=n.map((t=>In(t,e)));return t.apply(this,r)}catch(t){throw Jb(),NE((r=>{r.addEventProcessor((t=>(e.mechanism&&(IE(t),ah(t,e.mechanism)),t.extra={...t.extra,arguments:n},t))),Uu(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}catch{}nh(n,t),di(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>t.name})}catch{}return n}const ph=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Xb=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",ki=(t,e,n,r)=>{let o,i;return s=>{e.value>=0&&(s||r)&&(i=e.value-(o||0),(i||void 0===o)&&(o=e.value,e.delta=i,e.rating=Xb(e.value,n),t(e)))}},Ie=ut,Zb=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,mh=(t=!0)=>{const e=Ie.performance&&Ie.performance.getEntriesByType&&Ie.performance.getEntriesByType("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Wu=()=>{const t=mh();return t&&t.activationStart||0},Ci=(t,e)=>{const n=mh();let r="navigate";return n&&(Ie.document&&Ie.document.prerendering||Wu()>0?r="prerender":Ie.document&&Ie.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:Zb(),navigationType:r}},Jr=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},xi=t=>{const e=e=>{("pagehide"===e.type||Ie.document&&"hidden"===Ie.document.visibilityState)&&t(e)};Ie.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},ss=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let si=-1;const Qb=()=>"hidden"!==Ie.document.visibilityState||Ie.document.prerendering?1/0:0,zo=t=>{"hidden"===Ie.document.visibilityState&&si>-1&&(si="visibilitychange"===t.type?t.timeStamp:0,t1())},e1=()=>{addEventListener("visibilitychange",zo,!0),addEventListener("prerenderingchange",zo,!0)},t1=()=>{removeEventListener("visibilitychange",zo,!0),removeEventListener("prerenderingchange",zo,!0)},zu=()=>(Ie.document&&si<0&&(si=Qb(),e1()),{get firstHiddenTime(){return si}}),as=t=>{Ie.document&&Ie.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},r1=[1800,3e3],n1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("FCP");let o;const i=Jr("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries.push(t),o(!0)))}))}));i&&(o=ki(t,r,r1,e.reportAllChanges))}))},i1=[.1,.25],o1=(t,e={})=>{n1(ss((()=>{const n=Ci("CLS",0);let r,o=0,i=[];const s=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=i[0],n=i[i.length-1];o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(o+=t.value,i.push(t)):(o=t.value,i=[t])}})),o>n.value&&(n.value=o,n.entries=i,r())},a=Jr("layout-shift",s);a&&(r=ki(t,n,i1,e.reportAllChanges),xi((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},s1=[100,300],a1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("FID");let o;const i=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),o(!0))},s=t=>{t.forEach(i)},a=Jr("first-input",s);o=ki(t,r,s1,e.reportAllChanges),a&&xi(ss((()=>{s(a.takeRecords()),a.disconnect()})))}))};let gh=0,Ua=1/0,To=0;const u1=t=>{t.forEach((t=>{t.interactionId&&(Ua=Math.min(Ua,t.interactionId),To=Math.max(To,t.interactionId),gh=To?(To-Ua)/7+1:0)}))};let cu;const c1=()=>cu?gh:performance.interactionCount||0,l1=()=>{"interactionCount"in performance||cu||(cu=Jr("event",u1,{type:"event",buffered:!0,durationThreshold:0}))},dr=[],Wa=new Map,f1=40;let d1=0;const h1=()=>c1()-d1,p1=()=>{const t=Math.min(dr.length-1,Math.floor(h1()/50));return dr[t]},za=10,m1=[],g1=t=>{if(m1.forEach((e=>e(t))),!t.interactionId&&"first-input"!==t.entryType)return;const e=dr[dr.length-1],n=Wa.get(t.interactionId);if(n||dr.length<10||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(t);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Wa.set(e.id,e),dr.push(e)}dr.sort(((t,e)=>e.latency-t.latency)),dr.length>10&&dr.splice(10).forEach((t=>Wa.delete(t.id)))}},_h=t=>{const e=Ie.requestIdleCallback||Ie.setTimeout;let n=-1;return t=ss(t),Ie.document&&"hidden"===Ie.document.visibilityState?t():(n=e(t),xi(t)),n},_1=[200,500],y1=(t,e={})=>{"PerformanceEventTiming"in Ie&&"interactionId"in PerformanceEventTiming.prototype&&as((()=>{l1();const n=Ci("INP");let r;const o=t=>{_h((()=>{t.forEach(g1);const e=p1();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())}))},i=Jr("event",o,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=ki(t,n,_1,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),xi((()=>{o(i.takeRecords()),r(!0)})))}))},v1=[2500,4e3],id={},S1=(t,e={})=>{as((()=>{const n=zu(),r=Ci("LCP");let o;const i=t=>{e.reportAllChanges||(t=t.slice(-1)),t.forEach((t=>{t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Wu(),0),r.entries=[t],o())}))},s=Jr("largest-contentful-paint",i);if(s){o=ki(t,r,v1,e.reportAllChanges);const n=ss((()=>{id[r.id]||(i(s.takeRecords()),s.disconnect(),id[r.id]=!0,o(!0))}));["keydown","click"].forEach((t=>{Ie.document&&addEventListener(t,(()=>_h(n)),{once:!0,capture:!0})})),xi(n)}}))},ai={},$o={};let yh,vh,Sh,Eh;function E1(t,e=!1){return us("cls",t,C1,yh,e)}function b1(t,e=!1){return us("lcp",t,R1,Sh,e)}function w1(t){return us("fid",t,x1,vh)}function I1(t){return us("inp",t,T1,Eh)}function k1(t,e){return bh(t,e),$o[t]||(A1(t),$o[t]=!0),wh(t,e)}function Ri(t,e){const n=ai[t];if(n&&n.length)for(const r of n)try{r(e)}catch(e){ph&&ht.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${gr(r)}\nError:`,e)}}function C1(){return o1((t=>{Ri("cls",{metric:t}),yh=t}),{reportAllChanges:!0})}function x1(){return a1((t=>{Ri("fid",{metric:t}),vh=t}))}function R1(){return S1((t=>{Ri("lcp",{metric:t}),Sh=t}),{reportAllChanges:!0})}function T1(){return y1((t=>{Ri("inp",{metric:t}),Eh=t}))}function us(t,e,n,r,o=!1){let i;return bh(t,e),$o[t]||(i=n(),$o[t]=!0),r&&e({metric:r}),wh(t,e,o?i:void 0)}function A1(t){const e={};"event"===t&&(e.durationThreshold=0),Jr(t,(e=>{Ri(t,{entries:e})}),e)}function bh(t,e){ai[t]=ai[t]||[],ai[t].push(e)}function wh(t,e,n){return()=>{n&&n();const r=ai[t];if(!r)return;const o=r.indexOf(e);-1!==o&&r.splice(o,1)}}const M1=1e3;let od,lu,fu,Ao;function O1(t){Qd("dom",t),eh("dom",D1)}function D1(){if(!Ie.document)return;const t=ru.bind(null,"dom"),e=sd(t,!0);Ie.document.addEventListener("click",e,!1),Ie.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Ie[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Pt(r,"addEventListener",(function(e){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=sd(t);i.handler=r,e.call(this,n,r,o)}i.refCount++}catch{}return e.call(this,n,r,o)}})),Pt(r,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return t.call(this,e,n,r)}})))}))}function N1(t){if(t.type!==lu)return!1;try{if(!t.target||t.target._sentryId!==fu)return!1}catch{}return!0}function L1(t,e){return"keypress"===t&&(!e||!e.tagName||!("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable))}function sd(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=P1(n);if(L1(n.type,r))return;di(n,"_sentryCaptured",!0),r&&!r._sentryId&&di(r,"_sentryId",pr());const o="keypress"===n.type?"input":n.type;N1(n)||(t({event:n,name:o,global:e}),lu=n.type,fu=r?r._sentryId:void 0),clearTimeout(od),od=Ie.setTimeout((()=>{fu=void 0,lu=void 0}),M1)}}function P1(t){try{return t.target}catch{return null}}function F1(t){const e="history";Qd(e,t),eh(e,B1)}function B1(){if(!Vb())return;const t=Ie.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ao,e=String(n);Ao=e,ru("history",{from:t,to:e})}return t.apply(this,e)}}Ie.onpopstate=function(...e){const n=Ie.location.href,r=Ao;if(Ao=n,ru("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch{}},Pt(Ie.history,"pushState",e),Pt(Ie.history,"replaceState",e)}const $a={};function j1(t){const e=$a[t];if(e)return e;let n=Ie[t];if(Hb(n))return $a[t]=n.bind(Ie);const r=Ie.document;if(r&&"function"==typeof r.createElement)try{const e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(n=o[t]),r.head.removeChild(e)}catch(e){ph&&ht.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,e)}return n&&($a[t]=n.bind(Ie))}function kn(...t){return j1("setTimeout")(...t)}const U1="__sentry_xhr_v3__",W1=["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"],z1="BrowserApiErrors",$1=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:z1,setupOnce(){e.setTimeout&&Pt(ni,"setTimeout",ad),e.setInterval&&Pt(ni,"setInterval",ad),e.requestAnimationFrame&&Pt(ni,"requestAnimationFrame",q1),e.XMLHttpRequest&&"XMLHttpRequest"in ni&&Pt(XMLHttpRequest.prototype,"send",G1);const t=e.eventTarget;t&&(Array.isArray(t)?t:W1).forEach(Y1)}}},H1=$1;function ad(t){return function(...e){const n=e[0];return e[0]=In(n,{mechanism:{data:{function:gr(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function q1(t){return function(e){return t.apply(this,[In(e,{mechanism:{data:{function:"requestAnimationFrame",handler:gr(t)},handled:!1,type:"instrument"}})])}}function G1(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&Pt(n,t,(function(e){const n={mechanism:{data:{function:t,handler:gr(e)},handled:!1,type:"instrument"}},r=ih(e);return r&&(n.mechanism.data.handler=gr(r)),In(e,n)}))})),t.apply(this,e)}}function Y1(t){const e=ni[t],n=e&&e.prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Pt(n,"addEventListener",(function(e){return function(n,r,o){try{V1(r)&&(r.handleEvent=In(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:gr(r),target:t},handled:!1,type:"instrument"}}))}catch{}return e.apply(this,[n,In(r,{mechanism:{data:{function:"addEventListener",handler:gr(r),target:t},handled:!1,type:"instrument"}}),o])}})),Pt(n,"removeEventListener",(function(t){return function(e,n,r){try{const o=n.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch{}return t.call(this,e,n,r)}})))}function V1(t){return"function"==typeof t.handleEvent}const Ue=ut,$u="sentryReplaySession",K1="replay_event",Hu="Unable to send Replay",J1=3e5,X1=9e5,Z1=5e3,Q1=5500,ew=6e4,tw=5e3,rw=3,ud=15e4,Mo=5e3,nw=3e3,iw=300,qu=2e7,ow=4999,sw=15e3,cd=36e5;function du(t,e){return t??e()}function pi(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}var Qe;function aw(t){return t.nodeType===t.ELEMENT_NODE}function ui(t){const e=pi([t,"optionalAccess",t=>t.host]);return pi([e,"optionalAccess",t=>t.shadowRoot])===t}function ci(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function uw(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function cw(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Ho(t){try{const e=t.rules||t.cssRules;return e?uw(Array.from(e,Ih).join("")):null}catch{return null}}function lw(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,o=r[n],i=r.getPropertyPriority(o);e+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${t.selectorText} { ${e} }`}function Ih(t){let e;if(dw(t))try{e=Ho(t.styleSheet)||cw(t)}catch{}else if(hw(t)){let e=t.cssText;const n=t.selectorText.includes(":"),r="string"==typeof t.style.all&&t.style.all;if(r&&(e=lw(t)),n&&(e=fw(e)),n||r)return e}return e||t.cssText}function fw(t){return t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function dw(t){return"styleSheet"in t}function hw(t){return"selectorText"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Qe||(Qe={}));class kh{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return du(pi([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]),(()=>-1))}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function pw(){return new kh}function cs({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function mi({isMasked:t,element:e,value:n,maskInputFn:r}){let o=n||"";return t?(r&&(o=r(o,e)),"*".repeat(o.length)):o}function Cn(t){return t.toLowerCase()}function hu(t){return t.toUpperCase()}const ld="__rrweb_original__";function mw(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const o=e.getImageData,i=ld in o?o[ld]:o;if(new Uint32Array(i.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0}function Gu(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Cn(e):null}function qo(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}function Ch(t,e){let n;try{n=new URL(t,du(e,(()=>window.location.href)))}catch{return null}return du(pi([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",t=>t[1]]),(()=>null))}const fd={};function xh(t){const e=fd[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch{}return fd[t]=r.bind(window)}function pu(...t){return xh("setTimeout")(...t)}function Rh(...t){return xh("clearTimeout")(...t)}function Th(t){try{return t.contentDocument}catch{}}let gw=1;const _w=new RegExp("[^a-z0-9-_:]"),gi=-2;function Yu(){return gw++}function yw(t){if(t instanceof HTMLFormElement)return"form";const e=Cn(t.tagName);return _w.test(e)?"div":e}function vw(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}let _n,dd;const Sw=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ew=/^(?:[a-z+]+:)?\/\//i,bw=/^www\..*/i,ww=/^(data:)([^,]*),(.*)/i;function Go(t,e){return(t||"").replace(Sw,((t,n,r,o,i,s)=>{const a=r||i||s,u=n||o||"";if(!a)return t;if(Ew.test(a)||bw.test(a))return`url(${u}${a}${u})`;if(ww.test(a))return`url(${u}${a}${u})`;if("/"===a[0])return`url(${u}${vw(e)+a}${u})`;const c=e.split("/"),l=a.split("/");c.pop();for(const t of l)"."!==t&&(".."===t?c.pop():c.push(t));return`url(${u}${c.join("/")}${u})`}))}const Iw=/^[^ \t\n\r\u000c]+/,kw=/^[, \t\n\r\u000c]+/;function Cw(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const o=t.exec(e.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(kw),!(n>=e.length);){let i=r(Iw);if(","===i.slice(-1))i=vn(t,i.substring(0,i.length-1)),o.push(i);else{let r="";i=vn(t,i);let s=!1;for(;;){const t=e.charAt(n);if(""===t){o.push((i+r).trim());break}if(s)")"===t&&(s=!1);else{if(","===t){n+=1,o.push((i+r).trim());break}"("===t&&(s=!0)}r+=t,n+=1}}}return o.join(", ")}const hd=new WeakMap;function vn(t,e){return e&&""!==e.trim()?ls(t,e):e}function xw(t){return!("svg"!==t.tagName&&!t.ownerSVGElement)}function ls(t,e){let n=hd.get(t);if(n||(n=t.createElement("a"),hd.set(t,n)),e){if(e.startsWith("blob:")||e.startsWith("data:"))return e}else e="";return n.setAttribute("href",e),n.href}function Ah(t,e,n,r,o,i){return r&&("src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]||"background"===n&&("table"===e||"td"===e||"th"===e)?vn(t,r):"srcset"===n?Cw(t,r):"style"===n?Go(r,ls(t)):"object"===e&&"data"===n?vn(t,r):"function"==typeof i?i(n,r,o):r)}function Mh(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Rw(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch{}return!1}function Tw(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}function Yr(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Yr(t.parentNode,e,n,r+1)}function Sn(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(Tw(r,t))return!0;return!(!e||!r.matches(e))}catch{return!1}}}function xn(t,e,n,r,o,i){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const t=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,u=-1;if(i){if(u=Yr(s,Sn(r,o)),u<0)return!0;a=Yr(s,Sn(e,n),u>=0?u:1/0)}else{if(a=Yr(s,Sn(e,n)),a<0)return!1;u=Yr(s,Sn(r,o),a>=0?a:1/0)}return a>=0?!(u>=0)||a<=u:!(u>=0)&&!!i}catch{}return!!i}function Aw(t,e,n){const r=t.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch{return}if("complete"!==o){const r=pu((()=>{i||(e(),i=!0)}),n);return void t.addEventListener("load",(()=>{Rh(r),i=!0,e()}))}const s="about:blank";if(r.location.href!==s||t.src===s||""===t.src)return pu(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Mw(t,e,n){let r,o=!1;try{r=t.sheet}catch{return}if(r)return;const i=pu((()=>{o||(e(),o=!0)}),n);t.addEventListener("load",(()=>{Rh(i),o=!0,e()}))}function Ow(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k=!1}=e,w=Dw(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Qe.Document,childNodes:[],compatMode:t.compatMode}:{type:Qe.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Qe.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:return Lw(t,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:h,maskAttributeFn:u,maskInputOptions:p,maskInputFn:y,dataURLOptions:g,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:k,rootId:w,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d});case t.TEXT_NODE:return Nw(t,{doc:n,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:p,maskInputFn:y,rootId:w});case t.CDATA_SECTION_NODE:return{type:Qe.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:Qe.Comment,textContent:t.textContent||"",rootId:w};default:return!1}}function Dw(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}function Nw(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:u,maskInputFn:c,rootId:l}=e,f=t.parentNode&&t.parentNode.tagName;let d=t.textContent;const h="STYLE"===f||void 0,p="SCRIPT"===f||void 0,m="TEXTAREA"===f||void 0;if(h&&d){try{t.nextSibling||t.previousSibling||pi([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(d=Ho(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}d=Go(d,ls(e.doc))}p&&(d="SCRIPT_PLACEHOLDER");const y=xn(t,r,i,o,s,n);if(!h&&!p&&!m&&d&&y&&(d=a?a(d,t.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(u.textarea||y)&&(d=c?c(d,t.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===f&&d){d=mi({isMasked:xn(t,r,i,o,s,cs({type:null,tagName:f,maskInputOptions:u})),element:t,value:d,maskInputFn:c})}return{type:Qe.Text,textContent:d||"",isStyle:h,rootId:l}}function Lw(t,e){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:f,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskAllText:y,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:b}=e,k=Rw(t,r,o,i),w=yw(t);let S={};const E=t.attributes.length;for(let e=0;e<E;e++){const r=t.attributes[e];r.name&&!Mh(w,r.name,r.value)&&(S[r.name]=Ah(n,w,Cn(r.name),r.value,t,u))}if("link"===w&&s){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=Ho(e)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Go(r,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=Ho(t.sheet);e&&(S._cssText=Go(e,ls(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=Gu(e),r=qo(e,hu(w),n),o=e.checked;if("submit"!==n&&"button"!==n&&r){const t=xn(e,g,v,_,b,cs({type:n,tagName:hu(w),maskInputOptions:a}));S.value=mi({isMasked:t,element:e,value:r,maskInputFn:c})}o&&(S.checked=o)}if("option"===w&&(t.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===w&&d)if("2d"===t.__context)mw(t)||(S.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=t.width,r.height=t.height;e!==r.toDataURL(l.type,l.quality)&&(S.rr_dataURL=e)}if("img"===w&&f){_n||(_n=n.createElement("canvas"),dd=_n.getContext("2d"));const e=t,r=e.currentSrc||e.getAttribute("src")||"<unknown-src>",o=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{_n.width=e.naturalWidth,_n.height=e.naturalHeight,dd.drawImage(e,0,0),S.rr_dataURL=_n.toDataURL(l.type,l.quality)}catch(t){if("anonymous"!==e.crossOrigin)return e.crossOrigin="anonymous",void(e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(o?S.crossOrigin=o:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===w||"video"===w)&&(S.rr_mediaState=t.paused?"paused":"played",S.rr_mediaCurrentTime=t.currentTime),p||(t.scrollLeft&&(S.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(S.rr_scrollTop=t.scrollTop)),k){const{width:e,height:n}=t.getBoundingClientRect();S={class:S.class,rr_width:`${e}px`,rr_height:`${n}px`}}let x;"iframe"===w&&!h(S.src)&&(!k&&!Th(t)&&(S.rr_src=S.src),delete S.src);try{customElements.get(w)&&(x=!0)}catch{}return{type:Qe.Element,tagName:w,attributes:S,childNodes:[],isSVG:xw(t)||void 0,needBlock:k,rootId:m,isCustom:x}}function je(t){return null==t?"":t.toLowerCase()}function Pw(t,e){if(e.comment&&t.type===Qe.Comment)return!0;if(t.type===Qe.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&"js"===Ch(t.attributes.href)))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(je(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===je(t.attributes.name)||"icon"===je(t.attributes.rel)||"apple-touch-icon"===je(t.attributes.rel)||"shortcut icon"===je(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&je(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(je(t.attributes.property).match(/^(og|twitter|fb):/)||je(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===je(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===je(t.attributes.name)||"googlebot"===je(t.attributes.name)||"bingbot"===je(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===je(t.attributes.name)||"generator"===je(t.attributes.name)||"framework"===je(t.attributes.name)||"publisher"===je(t.attributes.name)||"progid"===je(t.attributes.name)||je(t.attributes.property).match(/^article:/)||je(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===je(t.attributes.name)||"yandex-verification"===je(t.attributes.name)||"csrf-token"===je(t.attributes.name)||"p:domain_verify"===je(t.attributes.name)||"verify-v1"===je(t.attributes.name)||"verification"===je(t.attributes.name)||"shopify-checkout-api-token"===je(t.attributes.name)))return!0}}return!1}function En(t,e){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:k=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:T=!1}=e;let{preserveWhiteSpace:R=!0}=e;const A=Ow(t,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:v,inlineImages:b,recordCanvas:k,keepIframeSrcFn:C,newlyAddedElement:T});if(!A)return console.warn(t,"not serialized"),null;let M;M=r.hasNode(t)?r.getId(t):Pw(A,_)||!R&&A.type===Qe.Text&&!A.isStyle&&!A.textContent.replace(/^\s+|\s+$/gm,"").length?-2:Yu();const O=Object.assign(A,{id:M});if(r.add(t,O),-2===M)return null;w&&w(t);let D=!d;if(O.type===Qe.Element){D=D&&!O.needBlock,delete O.needBlock;const e=t.shadowRoot;e&&ci(e)&&(O.isShadowHost=!0)}if((O.type===Qe.Document||O.type===Qe.Element)&&D){_.headWhitespace&&O.type===Qe.Element&&"head"===O.tagName&&(R=!1);const e={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:d,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C};for(const n of Array.from(t.childNodes)){const t=En(n,e);t&&O.childNodes.push(t)}if(aw(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=En(n,e);r&&(ci(t.shadowRoot)&&(r.isShadow=!0),O.childNodes.push(r))}}return t.parentNode&&ui(t.parentNode)&&ci(t.parentNode)&&(O.isShadow=!0),O.type===Qe.Element&&"iframe"===O.tagName&&Aw(t,(()=>{const e=Th(t);if(e&&S){const n=En(e,{doc:e,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});n&&S(t,n)}}),E),O.type===Qe.Element&&"link"===O.tagName&&"string"==typeof O.attributes.rel&&("stylesheet"===O.attributes.rel||"preload"===O.attributes.rel&&"string"==typeof O.attributes.href&&"css"===Ch(O.attributes.href))&&Mw(t,(()=>{if(x){const e=En(t,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:k,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onStylesheetLoad:x,stylesheetLoadTimeout:I,keepIframeSrcFn:C});e&&x(t,e)}}),I),O}function Fw(t,e){const{mirror:n=new kh,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:f=!0,inlineImages:d=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I=()=>!1}=e;return En(t,{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:d,recordCanvas:h,preserveWhiteSpace:b,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:E,stylesheetLoadTimeout:x,keepIframeSrcFn:I,newlyAddedElement:!1})}function Rr(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}function dt(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const yn="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 pd={map:{},getId:()=>(console.error(yn),-1),getNode:()=>(console.error(yn),null),removeNodeFromMap(){console.error(yn)},has:()=>(console.error(yn),!1),reset(){console.error(yn)}};function _i(t,e,n={}){let r=null,o=0;return function(...i){const s=Date.now();!o&&!1===n.leading&&(o=s);const a=e-(s-o),u=this;a<=0||a>e?(r&&(Hw(r),r=null),o=s,t.apply(u,i)):!r&&!1!==n.trailing&&(r=fs((()=>{o=!1===n.leading?0:Date.now(),r=null,t.apply(u,i)}),a))}}function Oh(t,e,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(t,e);return o.Object.defineProperty(t,e,r?n:{set(t){fs((()=>{n.set.call(this,t)}),0),i&&i.set&&i.set.call(this,t)}}),()=>Oh(t,e,i||{},!0)}function Vu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=o,()=>{t[e]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&(pd=new Proxy(pd,{get:(t,e,n)=>("map"===e&&console.error(yn),Reflect.get(t,e,n))}));let Yo=Date.now;function Dh(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:Rr([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||Rr([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function Nh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Lh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ph(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function It(t,e,n,r,o){if(!t)return!1;const i=Ph(t);if(!i)return!1;const s=Sn(e,n);if(!o){const t=r&&i.matches(r);return s(i)&&!t}const a=Yr(i,s);let u=-1;return!(a<0)&&(r&&(u=Yr(i,Sn(null,r))),a>-1&&u<0||a<u)}function Bw(t,e){return-1!==e.getId(t)}function Ha(t,e){return-2===e.getId(t)}function Fh(t,e){if(ui(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Fh(t.parentNode,e))}function mu(t){return!!t.changedTouches}function jw(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}function Bh(t,e){return!("IFRAME"!==t.nodeName||!e.getMeta(t))}function jh(t,e){return!("LINK"!==t.nodeName||t.nodeType!==t.ELEMENT_NODE||!t.getAttribute||"stylesheet"!==t.getAttribute("rel")||!e.getMeta(t))}function gu(t){return!!Rr([t,"optionalAccess",t=>t.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Yo=()=>(new Date).getTime());class Uw{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return Kb(this.styleIDMap.get(t),(()=>-1))}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Uh(t){let e=null;return Rr([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function Ww(t){let e,n=t;for(;e=Uh(n);)n=e;return n}function zw(t){const e=t.ownerDocument;if(!e)return!1;const n=Ww(t);return e.contains(n)}function Wh(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||zw(t))}const md={};function Ku(t){const e=md[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const o=e.contentWindow;o&&o[t]&&(r=o[t]),n.head.removeChild(e)}catch{}return md[t]=r.bind(window)}function $w(...t){return Ku("requestAnimationFrame")(...t)}function fs(...t){return Ku("setTimeout")(...t)}function Hw(...t){return Ku("clearTimeout")(...t)}var gd,_d,me=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(me||{}),ue=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ue||{}),ft=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(ft||{}),cr=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(cr||{});function Ju(t){try{return t.contentDocument}catch{}}function qw(t){try{return t.contentWindow}catch{}}function Gw(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}function yd(t){return"__ln"in t}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(gd||(gd={})),function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(_d||(_d={}));class Yw{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Gw([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&yd(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&yd(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const vd=(t,e)=>`${t}@${e}`;class Vw{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Yw,r=t=>{let e=t,n=-2;for(;-2===n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},o=o=>{if(!o.parentNode||!Wh(o))return;const i=ui(o.parentNode)?this.mirror.getId(Uh(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=En(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Bh(t,this.mirror)&&!It(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(t),jh(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),gu(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{It(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(t,e),t.contentWindow&&this.canvasManager.addWindow(t.contentWindow),this.shadowDomManager.observeAttachShadow(t))},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:i,nextId:s,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Sd(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||o(t);for(const t of this.addedSet)!Ed(this.droppedSet,t)&&!Sd(this.removes,t,this.mirror)||Ed(this.movedSet,t)?o(t):this.droppedSet.add(t);let i=null;for(;n.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==e&&-1!==n&&(t=i)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}i=t.previous,n.removeNode(t.value),o(t.value)}const s={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.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(s))},this.processMutation=t=>{if(!Ha(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;!It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&e!==t.oldValue&&this.texts.push({value:xn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,Ph(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=Gu(e),o=e.tagName;r=qo(e,o,n);const i=cs({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=mi({isMasked:xn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:e,value:r,maskInputFn:this.maskInputFn})}if(It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let o=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Ju(e))return;n="rr_src"}if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Mh(e.tagName,n)&&(o.attributes[n]=Ah(this.doc,Cn(e.tagName),Cn(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||i!==n.style.getPropertyPriority(t)?o.styleDiff[t]=""===i?r:[r,i]:o._unchangedStyles[t]=[r,i]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(o.styleDiff[t]=!1)}break}case"childList":if(It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=ui(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);It(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ha(e,this.mirror)||!Bw(e,this.mirror)||(this.addedSet.has(e)?(_u(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Fh(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[vd(n,r)]?_u(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!ui(t.target)||!ci(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ha(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[vd(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);It(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),gu(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function _u(t,e){t.delete(e),e.childNodes.forEach((e=>_u(t,e)))}function Sd(t,e,n){return 0!==t.length&&Kw(t,e,n)}function Kw(t,e,n){let r=e.parentNode;for(;r;){const e=n.getId(r);if(t.some((t=>t.id===e)))return!0;r=r.parentNode}return!1}function Ed(t,e){return 0!==t.size&&zh(t,e)}function zh(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||zh(t,n))}let li;function Jw(t){li=t}function Xw(){li=void 0}const Ce=t=>li?(...e)=>{try{return t(...e)}catch(t){if(li&&!0===li(t))return()=>{};throw t}}:t;function zt(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}const bn=[];function Ti(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function $h(t,e){const n=new Vw;bn.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const o=zt([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(Ce((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Zw({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const o="number"==typeof e.mousemove?e.mousemove:50,i="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let s,a=[];const u=_i(Ce((e=>{const n=Date.now()-s;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],s=null})),i),c=Ce(_i(Ce((t=>{const e=Ti(t),{clientX:n,clientY:o}=mu(t)?t.changedTouches[0]:t;s||(s=Yo()),a.push({x:n,y:o,id:r.getId(e),timeOffset:Yo()-s}),u(typeof DragEvent<"u"&&t instanceof DragEvent?ue.Drag:t instanceof MouseEvent?ue.MouseMove:ue.TouchMove)})),o,{trailing:!1})),l=[dt("mousemove",c,n),dt("touchmove",c,n),dt("drag",c,n)];return Ce((()=>{l.forEach((t=>t()))}))}function Qw({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];let c=null;return Object.keys(ft).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((s=>{let a=Cn(s);const l=(e=>s=>{const a=Ti(s);if(It(a,r,o,i,!0))return;let u=null,l=e;if("pointerType"in s){switch(s.pointerType){case"mouse":u=cr.Mouse;break;case"touch":u=cr.Touch;break;case"pen":u=cr.Pen}u===cr.Touch?ft[e]===ft.MouseDown?l="TouchStart":ft[e]===ft.MouseUp&&(l="TouchEnd"):cr.Pen}else mu(s)&&(u=cr.Touch);null!==u?(c=u,(l.startsWith("Touch")&&u===cr.Touch||l.startsWith("Mouse")&&u===cr.Mouse)&&(u=null)):ft[e]===ft.Click&&(u=c,c=null);const f=mu(s)?s.changedTouches[0]:s;if(!f)return;const d=n.getId(a),{clientX:h,clientY:p}=f;Ce(t)({type:ft[l],id:d,x:h,y:p,...null!==u&&{pointerType:u}})})(s);if(window.PointerEvent)switch(ft[s]){case ft.MouseDown:case ft.MouseUp:a=a.replace("mouse","pointer");break;case ft.TouchStart:case ft.TouchEnd:return}u.push(dt(a,l,e))})),Ce((()=>{u.forEach((t=>t()))}))}function Hh({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return dt("scroll",Ce(_i(Ce((s=>{const a=Ti(s);if(!a||It(a,r,o,i,!0))return;const u=n.getId(a);if(a===e&&e.defaultView){const n=Dh(e.defaultView);t({id:u,x:n.left,y:n.top})}else t({id:u,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),e)}function eI({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return dt("resize",Ce(_i(Ce((()=>{const e=Nh(),o=Lh();(n!==e||r!==o)&&(t({width:Number(o),height:Number(e)}),n=e,r=o)})),200)),e)}const tI=["INPUT","TEXTAREA","SELECT"],bd=new WeakMap;function rI({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:f,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function y(t){let n=Ti(t);const l=t.isTrusted,y=n&&hu(n.tagName);if("OPTION"===y&&(n=n.parentElement),!n||!y||tI.indexOf(y)<0||It(n,r,o,i,!0))return;const _=n;if(_.classList.contains(s)||a&&_.matches(a))return;const v=Gu(n);let b=qo(_,y,v),k=!1;const w=cs({maskInputOptions:u,tagName:y,type:v}),S=xn(n,d,p,h,m,w);("radio"===v||"checkbox"===v)&&(k=n.checked),b=mi({isMasked:S,element:n,value:b,maskInputFn:c}),g(n,f?{text:b,isChecked:k,userTriggered:l}:{text:b,isChecked:k});const E=n.name;"radio"===v&&E&&k&&e.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((t=>{if(t!==n){const e=mi({isMasked:S,element:t,value:qo(t,y,v),maskInputFn:c});g(t,f?{text:e,isChecked:!k,userTriggered:!1}:{text:e,isChecked:!k})}}))}function g(e,r){const o=bd.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){bd.set(e,r);const o=n.getId(e);Ce(t)({...r,id:o})}}const _=("last"===l.input?["change"]:["input","change"]).map((t=>dt(t,Ce(y),e))),v=e.defaultView;if(!v)return()=>{_.forEach((t=>t()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),k=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...k.map((t=>Oh(t[0],t[1],{set(){Ce(y)({target:this,isTrusted:!1})}},!1,v)))),Ce((()=>{_.forEach((t=>t()))}))}function Vo(t){return function(t,e){if(Oo("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Oo("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Oo("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Oo("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Tr(t,e,n){let r,o;return t?(t.ownerNode?r=e.getId(t.ownerNode):o=n.getId(t),{styleId:o,id:r}):{}}function nI({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ce(((r,o,i)=>{const[s,a]=i,{id:u,styleId:c}=Tr(o,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,replaceSync:s}),r.apply(o,i)}))}));const u={};Do("CSSGroupingRule")?u.CSSGroupingRule=r.CSSGroupingRule:(Do("CSSMediaRule")&&(u.CSSMediaRule=r.CSSMediaRule),Do("CSSConditionRule")&&(u.CSSConditionRule=r.CSSConditionRule),Do("CSSSupportsRule")&&(u.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(u).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:Ce(((r,o,i)=>{const[s,a]=i,{id:u,styleId:c}=Tr(o.parentStyleSheet,e,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&t({id:u,styleId:c,adds:[{rule:s,index:[...Vo(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:Ce(((r,o,i)=>{const[s]=i,{id:a,styleId:u}=Tr(o.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||u&&-1!==u)&&t({id:a,styleId:u,removes:[{index:[...Vo(o),s]}]}),r.apply(o,i)}))})})),Ce((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(u).forEach((([t,e])=>{e.prototype.insertRule=c[t].insertRule,e.prototype.deleteRule=c[t].deleteRule}))}))}function qh({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const o="#document"===n.nodeName?zt([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):zt([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),i=zt([o,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(zt([o,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return zt([i,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=zt([i,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch{}return n}}),Ce((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function iI({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ce(((o,s,a)=>{const[u,c,l]=a;if(n.has(u))return i.apply(s,[u,c,l]);const{id:f,styleId:d}=Tr(zt([s,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(f&&-1!==f||d&&-1!==d)&&t({id:f,styleId:d,set:{property:u,value:c,priority:l},index:Vo(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ce(((o,i,a)=>{const[u]=a;if(n.has(u))return s.apply(i,[u]);const{id:c,styleId:l}=Tr(zt([i,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(c&&-1!==c||l&&-1!==l)&&t({id:c,styleId:l,remove:{property:u},index:Vo(i.parentRule)}),o.apply(i,a)}))}),Ce((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}function oI({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Ce((s=>_i(Ce((i=>{const a=Ti(i);if(!a||It(a,e,n,r,!0))return;const{currentTime:u,volume:c,muted:l,playbackRate:f}=a;t({type:s,id:o.getId(a),currentTime:u,volume:c,muted:l,playbackRate:f})})),i.media||500))),u=[dt("play",a(0),s),dt("pause",a(1),s),dt("seeked",a(2),s),dt("volumechange",a(3),s),dt("ratechange",a(4),s)];return Ce((()=>{u.forEach((t=>t()))}))}function sI({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(t,e,n){const r=new i(t,e,n);return o.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const s=Vu(e.fonts,"add",(function(e){return function(n){return fs(Ce((()=>{const e=o.get(n);e&&(t(e),o.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),Ce((()=>{r.forEach((t=>t()))}))}function aI(t){const{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=t;let a=!0;const u=Ce((()=>{const t=e.getSelection();if(!t||a&&zt([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const u=[],c=t.rangeCount||0;for(let e=0;e<c;e++){const s=t.getRangeAt(e),{startContainer:a,startOffset:c,endContainer:l,endOffset:f}=s;It(a,r,o,i,!0)||It(l,r,o,i,!0)||u.push({start:n.getId(a),startOffset:c,end:n.getId(l),endOffset:f})}s({ranges:u})}));return u(),dt("selectionchange",u)}function uI({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?Vu(n.customElements,"define",(function(t){return function(n,r,o){try{e({define:{name:n}})}catch{}return t.apply(this,[n,r,o])}})):()=>{}}function cI(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=$h(t,t.doc));const o=Zw(t),i=Qw(t),s=Hh(t),a=eI(t,{win:n}),u=rI(t),c=oI(t);let l=()=>{},f=()=>{},d=()=>{},h=()=>{};t.recordDOM&&(l=nI(t,{win:n}),f=qh(t,t.doc),d=iI(t,{win:n}),t.collectFonts&&(h=sI(t)));const p=aI(t),m=uI(t),y=[];for(const e of t.plugins)y.push(e.observer(e.callback,n,e.options));return Ce((()=>{bn.forEach((t=>t.reset())),zt([r,"optionalAccess",t=>t.disconnect,"call",t=>t()]),o(),i(),s(),a(),u(),c(),l(),f(),d(),h(),p(),m(),y.forEach((t=>t()))}))}function Oo(t){return typeof window[t]<"u"}function Do(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class yu{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const o=n||this.getIdToRemoteIdMap(t),i=r||this.getRemoteIdToIdMap(t);let s=o.get(e);return s||(s=this.generateIdFn(),o.set(e,s),i.set(s,e)),s}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;return r.get(e)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function wd(t){let e,n=t[0],r=1;for(;r<t.length;){const o=t[r],i=t[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(e=n,n=i(n)):("call"===o||"optionalCall"===o)&&(n=i(((...t)=>n.call(e,...t))),e=void 0)}return n}class lI{constructor(){this.crossOriginIframeMirror=new yu(Yu),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class fI{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new yu(Yu),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new yu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),wd([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]);const n=Ju(t);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin||!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case me.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:me.IncrementalSnapshot,data:{source:ue.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case me.Meta:case me.Load:case me.DomContentLoaded:return!1;case me.Plugin:return e;case me.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case me.IncrementalSnapshot:switch(e.data.source){case ue.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.Drag:case ue.TouchMove:case ue.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case ue.ViewportResize:return!1;case ue.MediaInteraction:case ue.MouseInteraction:case ue.Scroll:case ue.CanvasMutation:case ue.Input:return this.replaceIds(e.data,t,["id"]),e;case ue.StyleSheetRule:case ue.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case ue.Font:return e;case ue.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case ue.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),wd([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const o of r)!Array.isArray(e[o])&&"number"!=typeof e[o]||(Array.isArray(e[o])?e[o]=t.getIds(n,e[o]):e[o]=t.getId(n,e[o]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type!==Qe.Document&&!t.rootId&&(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class dI{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class hI{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!ci(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const n=$h({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Hh({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),fs((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(qh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){const e=Ju(t),n=qw(t);!e||!n||this.patchAttachShadow(n.Element,e)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(Vu(t.prototype,"attachShadow",(function(t){return function(r){const o=t.call(this,r);return this.shadowRoot&&Wh(this)&&n.addShadowRoot(this.shadowRoot,e),o}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch{}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Id{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class pI{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Uw,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:Ih(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class mI{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.active||(this.active=!0,$w((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}destroy(){}}let Ve,Ko;try{if(2!==Array.from([1],(t=>2*t))[0]){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=jo([t,"access",t=>t.contentWindow,"optionalAccess",t=>t.Array,"access",t=>t.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Wt=pw();function mr(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:f=null,maskTextSelector:d=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:k=null,packFn:w,sampling:S={},dataURLOptions:E={},mousemoveWait:x,recordDOM:I=!0,recordCanvas:C=!1,recordCrossOriginIframes:T=!1,recordAfter:R=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:M=!1,inlineImages:O=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:j,onMutation:P,getCanvasManager:F}=t;Jw(j);const U=!T||window.parent===window;let W=!1;if(!U)try{window.parent.document&&(W=!1)}catch{W=!0}if(U&&!e)throw new Error("emit function is required");if(!U&&!W)return()=>{};void 0!==x&&void 0===S.mousemove&&(S.mousemove=x),Wt.reset();const B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},z=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};jw();let $,H=0;const q=t=>{for(const e of D||[])e.eventProcessor&&(t=e.eventProcessor(t));return w&&!W&&(t=w(t)),t};Ve=(t,o)=>{const i=t;if(i.timestamp=Yo(),jo([bn,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])&&i.type!==me.FullSnapshot&&!(i.type===me.IncrementalSnapshot&&i.data.source===ue.Mutation)&&bn.forEach((t=>t.unfreeze())),U)jo([e,"optionalCall",t=>t(q(i),o)]);else if(W){const t={type:"rrweb",event:q(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(i.type===me.FullSnapshot)$=i,H=0;else if(i.type===me.IncrementalSnapshot){if(i.data.source===ue.Mutation&&i.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&$&&i.timestamp-$.timestamp>n;(t||e)&&tt(!0)}};const V=t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.Mutation,...t}})},K=t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Scroll,...t}}),Y=t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),G=new pI({mutationCb:V,adoptedStyleSheetCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.AdoptedStyleSheet,...t}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new lI:new fI({mirror:Wt,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:T,wrappedEmit:Ve});for(const t of D||[])t.getMirror&&t.getMirror({nodeMirror:Wt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new mI,Q=_I(F,{mirror:Wt,win:window,mutationCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.CanvasMutation,...t}}),recordCanvas:C,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:k,sampling:S.canvas,dataURLOptions:E,errorHandler:j}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new dI:new hI({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:P,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:B,dataURLOptions:E,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:C,inlineImages:O,sampling:S,slimDOMOptions:z,iframeManager:J,stylesheetManager:G,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:X},mirror:Wt}),tt=(t=!1)=>{if(!I)return;Ve({type:me.Meta,data:{href:window.location.href,width:Lh(),height:Nh()}},t),G.reset(),Z.init(),bn.forEach((t=>t.lock()));const e=Fw(document,{mirror:Wt,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:B,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:z,dataURLOptions:E,recordCanvas:C,inlineImages:O,onSerialize:t=>{Bh(t,Wt)&&J.addIframe(t),jh(t,Wt)&&G.trackLinkElement(t),gu(t)&&Z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{J.attachIframe(t,e),t.contentWindow&&Q.addWindow(t.contentWindow),Z.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{G.attachLinkElement(t,e)},keepIframeSrcFn:N});if(!e)return console.warn("Failed to snapshot the document");Ve({type:me.FullSnapshot,data:{node:e,initialOffset:Dh(window)}}),bn.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,Wt.getId(document))};Ko=tt;try{const t=[],e=t=>Ce(cI)({onMutation:P,mutationCb:V,mousemoveCb:(t,e)=>Ve({type:me.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.MouseInteraction,...t}}),scrollCb:K,viewportResizeCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.ViewportResize,...t}}),inputCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Input,...t}}),mediaInteractionCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.MediaInteraction,...t}}),styleSheetRuleCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.StyleSheetRule,...t}}),styleDeclarationCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.StyleDeclaration,...t}}),canvasMutationCb:Y,fontCb:t=>Ve({type:me.IncrementalSnapshot,data:{source:ue.Font,...t}}),selectionCb:t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.Selection,...t}})},customElementCb:t=>{Ve({type:me.IncrementalSnapshot,data:{source:ue.CustomElement,...t}})},blockClass:o,ignoreClass:a,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:h,maskInputOptions:B,inlineStylesheet:p,sampling:S,recordDOM:I,recordCanvas:C,inlineImages:O,userTriggeredOnInput:A,collectFonts:M,doc:t,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:N,blockSelector:i,unblockSelector:s,slimDOMOptions:z,dataURLOptions:E,mirror:Wt,iframeManager:J,stylesheetManager:G,shadowDomManager:Z,processedNodeManager:X,canvasManager:Q,ignoreCSSAttributes:L,plugins:jo([D,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>Ve({type:me.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});J.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{tt(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(dt("DOMContentLoaded",(()=>{Ve({type:me.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),t.push(dt("load",(()=>{Ve({type:me.Load,data:{}}),"load"===R&&n()}),window))),()=>{t.forEach((t=>t())),X.destroy(),Ko=void 0,Xw()}}catch(t){console.warn(t)}}function gI(t){if(!Ko)throw new Error("please take full snapshot after start recording");Ko(t)}function _I(t,e){try{return t?t(e):new Id}catch{return console.warn("Unable to initialize CanvasManager"),new Id}}mr.mirror=Wt,mr.takeFullSnapshot=gI;const yI=3,vI=5;function Xu(t){return t>9999999999?t:1e3*t}function qa(t){return t>9999999999?t/1e3:t}function Ai(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:me.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:fr(e,10,1e3)}}),"console"===e.category))))}const SI="button,a";function Gh(t){return t.closest(SI)||t}function Yh(t){const e=Vh(t);return e&&e instanceof Element?Gh(e):e}function Vh(t){return EI(t)?t.target:t}function EI(t){return"object"==typeof t&&!!t&&"target"in t}let Ar;function bI(t){return Ar||(Ar=[],wI()),Ar.push(t),()=>{const e=Ar?Ar.indexOf(t):-1;e>-1&&Ar.splice(e,1)}}function wI(){Pt(Ue,"open",(function(t){return function(...e){if(Ar)try{Ar.forEach((t=>t()))}catch{}return t.apply(Ue,e)}}))}const II=new Set([ue.Mutation,ue.StyleSheetRule,ue.StyleDeclaration,ue.AdoptedStyleSheet,ue.CanvasMutation,ue.Selection,ue.MediaInteraction]);function kI(t,e,n){t.handleClick(e,n)}class CI{constructor(t,e,n=Ai){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scrollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=bI((()=>{this._lastMutation=kd()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(RI(e,this._ignoreSelector)||!TI(t))return;const n={timestamp:qa(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=qa(t)}registerScroll(t=Date.now()){this._lastScroll=qa(t)}registerClick(t){const e=Gh(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=kd();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<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=t;if(o){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:Ue.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(e,o)}else if(i>1){const t={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Ue.location.href,route:e.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=kn((()=>this._checkClicks()),1e3)}}const xI=["A","BUTTON","INPUT"];function RI(t,e){return!!(!xI.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||e&&t.matches(e))}function TI(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}function kd(){return Date.now()/1e3}function AI(t,e){try{if(!MI(e))return;const{source:n}=e.data;if(II.has(n)&&t.registerMutation(e.timestamp),n===ue.Scroll&&t.registerScroll(e.timestamp),OI(e)){const{type:n,id:r}=e.data,o=mr.mirror.getNode(r);o instanceof HTMLElement&&n===ft.Click&&t.registerClick(o)}}catch{}}function MI(t){return 3===t.type}function OI(t){return t.data.source===ue.MouseInteraction}function Xt(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Jo;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Jo||(Jo={}));const DI=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function NI(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(DI.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),e[r]=t[n]}return e}const LI=t=>e=>{if(!t.isEnabled())return;const n=PI(e);if(!n)return;const r="click"===e.name,o=r?e.event:void 0;r&&t.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&kI(t.clickDetector,n,Yh(e.event)),Ai(t,n)};function Kh(t,e){const n=mr.mirror.getId(t),r=n&&mr.mirror.getNode(n),o=r&&mr.mirror.getMeta(r),i=o&&BI(o)?o:null;return{message:e,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((t=>t.type===Jo.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:NI(i.attributes)}}:{}}}function PI(t){const{target:e,message:n}=FI(t);return Xt({category:`ui.${t.name}`,...Kh(e,n)})}function FI(t){const e="click"===t.name;let n,r=null;try{r=e?Yh(t.event):Vh(t.event),n=Fu(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function BI(t){return t.type===Jo.Element}function jI(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=UI(e);n&&Ai(t,n)}function UI(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=t;if(!s||WI(s)||!i)return null;const a=e||r||o,u=1===i.length;if(!a&&u)return null;const c=Fu(s,{maxStringLength:200})||"<unknown>";return Xt({category:"ui.keyDown",message:c,data:{...Kh(s,c).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function WI(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}const zI={resource:YI,paint:qI,navigation:GI};function No(t,e){return({metric:n})=>{e.replayPerformanceEntries.push(t(n))}}function $I(t){return t.map(HI).filter(Boolean)}function HI(t){const e=zI[t.entryType];return e?e(t):null}function Rn(t){return((bE||Ue.performance.timeOrigin)+t)/1e3}function qI(t){const{duration:e,entryType:n,name:r,startTime:o}=t,i=Rn(o);return{type:n,name:r,start:i,end:i+e,data:void 0}}function GI(t){const{entryType:e,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:f,redirectCount:d,startTime:h,transferSize:p,type:m}=t;return 0===o?null:{type:`${e}.${m}`,start:Rn(h),end:Rn(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:c,domContentLoadedEventStart:a,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:f,domComplete:i,redirectCount:d}}}function YI(t){const{entryType:e,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:u,transferSize:c}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Rn(i),end:Rn(o),name:r,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:a}}}function VI(t){const e=t.entries[t.entries.length-1];return ds(t,"largest-contentful-paint",e&&e.element?[e.element]:void 0)}function KI(t){return void 0!==t.sources}function JI(t){const e=[],n=[];for(const r of t.entries)if(KI(r)){const t=[];for(const e of r.sources)if(e.node){n.push(e.node);const r=mr.mirror.getId(e.node);r&&t.push(r)}e.push({value:r.value,nodeIds:t.length?t:void 0})}return ds(t,"cumulative-layout-shift",n,e)}function XI(t){const e=t.entries[t.entries.length-1];return ds(t,"first-input-delay",e&&e.target?[e.target]:void 0)}function ZI(t){const e=t.entries[t.entries.length-1];return ds(t,"interaction-to-next-paint",e&&e.target?[e.target]:void 0)}function ds(t,e,n,r){const o=t.value,i=t.rating,s=Rn(o);return{type:"web-vital",name:e,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((t=>mr.mirror.getId(t))):void 0,attributions:r}}}function QI(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(k1(t,n))})),r.push(b1(No(VI,t)),E1(No(JI,t)),w1(No(XI,t)),I1(No(ZI,t))),()=>{r.forEach((t=>t()))}}const oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ek='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 tk(){const t=new Blob([ek]);return URL.createObjectURL(t)}const Cd=["info","warn","error","log"],Uo="[Replay] ";function Ga(t,e="info"){Pb({category:"console",data:{logger:"replay"},level:e,message:`${Uo}${t}`},{level:e})}function rk(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{t=n.captureExceptions,e=n.traceInternals}};return oe?(Cd.forEach((t=>{n[t]=(...n)=>{ht[t](Uo,...n),e&&Ga(n.join(""),Fb(t))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),ht.error(Uo,r),t?Uu(r):e&&Ga(r,"error")},n.infoTick=(...t)=>{ht.info(Uo,...t),e&&setTimeout((()=>Ga(t[0])),0)}):Cd.forEach((t=>{n[t]=()=>{}})),n}const ae=rk();class Zu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${qu}.`)}}class Jh{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>qu)throw new Zu;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Xu(t):null}}class nk{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){oe&&ae.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:e})=>{const s=e;if(s.method===t&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return oe&&ae.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class ik{constructor(t){this._worker=new nk(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=Xu(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>qu?Promise.reject(new Zu):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{oe&&ae.exception(t,'Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class ok{constructor(t){this._fallback=new Jh,this._compression=new ik(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(oe&&ae.exception(t,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e,waitForCheckout:n}=this._fallback,r=[];for(const e of t)r.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(t){oe&&ae.exception(t,"Failed to add events when switching buffers.")}}}function sk({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=ak(e);if(t)return t}return oe&&ae.info("Using simple buffer"),new Jh}function ak(t){try{const e=t||uk();if(!e)return;oe&&ae.info("Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new ok(n)}catch(t){oe&&ae.exception(t,"Failed to create compression worker")}}function uk(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?tk():""}function Qu(){try{return"sessionStorage"in Ue&&!!Ue.sessionStorage}catch{return!1}}function ck(t){lk(),t.session=void 0}function lk(){if(Qu())try{Ue.sessionStorage.removeItem($u)}catch{}}function Xh(t){return void 0!==t&&Math.random()<t}function Zh(t){const e=Date.now();return{id:t.id||pr(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function ec(t){if(Qu())try{Ue.sessionStorage.setItem($u,JSON.stringify(t))}catch{}}function fk(t,e){return Xh(t)?"session":!!e&&"buffer"}function xd({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const o=Zh({sampled:fk(t,e),previousSessionId:r});return n&&ec(o),o}function dk(){if(!Qu())return null;try{const t=Ue.sessionStorage.getItem($u);if(!t)return null;const e=JSON.parse(t);return oe&&ae.infoTick("Loading existing session"),Zh(e)}catch{return null}}function vu(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Qh(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return vu(t.started,e,r)||vu(t.lastActivity,n,r)}function ep(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!Qh(t,{sessionIdleExpire:e,maxReplayDuration:n})||"buffer"===t.sampled&&0===t.segmentId)}function Ya({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const o=r.stickySession&&dk();return o?ep(o,{sessionIdleExpire:t,maxReplayDuration:e})?(oe&&ae.infoTick("Session in sessionStorage is expired, creating new one..."),xd(r,{previousSessionId:o.id})):o:(oe&&ae.infoTick("Creating new session"),xd(r,{previousSessionId:n}))}function hk(t){return t.type===me.Custom}function tc(t,e,n){return!!rp(t,e)&&(tp(t,e,n),!0)}function pk(t,e,n){return rp(t,e)?tp(t,e,n):Promise.resolve(null)}async function tp(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===t.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=mk(e,t.getOptions().beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(e){const n=e&&e instanceof Zu,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;t.handleException(e),await t.stop({reason:i});const s=Zt();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function rp(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=Xu(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now())&&(!(n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration)||(oe&&ae.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function mk(t,e){try{if("function"==typeof e&&hk(t))return e(t)}catch(t){return oe&&ae.exception(t,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function rc(t){return!t.type}function Su(t){return"transaction"===t.type}function gk(t){return"replay_event"===t.type}function Rd(t){return"feedback"===t.type}function _k(t){return(e,n)=>{if(!t.isEnabled()||!rc(e)&&!Su(e))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Su(e))return void yk(t,e);vk(t,e)}}}function yk(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function vk(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();"function"==typeof r&&!r(e)||kn((async()=>{try{await t.sendBufferedReplayOrFlush()}catch(e){t.handleException(e)}}))}function Sk(t){return e=>{!t.isEnabled()||!rc(e)||Ek(t,e)}}function Ek(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.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))){Ai(t,Xt({category:"replay.hydrate-error",data:{url:gE()}}))}}function bk(t){const e=Zt();e&&e.on("beforeAddBreadcrumb",(e=>wk(t,e)))}function wk(t,e){if(!t.isEnabled()||!np(e))return;const n=Ik(e);n&&Ai(t,n)}function Ik(t){return!np(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?kk(t):Xt(t)}function kk(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Xt(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>Mo?(n=!0,`${t.slice(0,Mo)}…`):t;if("object"==typeof t)try{const e=fr(t,7);return JSON.stringify(e).length>Mo?(n=!0,`${JSON.stringify(e,null,2).slice(0,Mo)}…`):e}catch{}return t}));return Xt({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function np(t){return!!t.category}function Ck(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&!(!e.originalException||!e.originalException.__rrweb__)}function ip(){const t=Mn().getPropagationContext().dsc;t&&delete t.replay_id;const e=ch();if(e){delete fh(e).replay_id}}function xk(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:me.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}function Rk(t,e){return!("buffer"!==t.recordingMode||e.message===Hu||!e.exception||e.type)&&Xh(t.getOptions().errorSampleRate)}function Tk(t){return Object.assign(((e,n)=>!t.isEnabled()||t.isPaused()?e:gk(e)?(delete e.breadcrumbs,e):rc(e)||Su(e)||Rd(e)?t.checkAndHandleExpiredSession()?Rd(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),xk(t,e),e):Ck(e,n)&&!t.getOptions()._experiments.captureExceptions?(oe&&ae.log("Ignoring error from rrweb internals",e),null):((Rk(t,e)||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e):(ip(),e):e),{id:"Replay"})}function hs(t,e){return e.map((({type:e,start:n,end:r,name:o,data:i})=>{const s=t.throttledAddEvent({type:me.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function Ak(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function Mk(t){return e=>{if(!t.isEnabled())return;const n=Ak(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(hs(t,[n]),!1))))}}function Ok(t,e){return(!oe||!t.getOptions()._experiments.traceInternals)&&Ob(e,Zt())}function op(t,e){t.isEnabled()&&null!==e&&(Ok(t,e.name)||t.addUpdate((()=>(hs(t,[e]),!0))))}function ps(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=cp(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function sp(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function ap(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[cp(t)];if(!t)return[void 0]}catch(e){return oe&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return oe&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xo(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function up(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:u}=e;return{type:t,start:n/1e3,end:r/1e3,name:o,data:Ht({method:i,statusCode:s,request:a,response:u})}}function yi(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Or(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:o,warnings:i}=Dk(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Eu(t,e){return Object.entries(t).reduce(((n,[r,o])=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=o),n}),{})}function cp(t){return new URLSearchParams(t).toString()}function Dk(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>ud,n=Nk(t);if(e){const e=t.slice(0,ud);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function Nk(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}function Zo(t,e){return yE(Lk(t),e)}function Lk(t,e=Ue.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ue.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Pk(t,e,n){try{const r=up("resource.fetch",await Bk(t,e,n));op(n.replay,r)}catch(t){oe&&ae.exception(t,"Failed to capture fetch breadcrumb")}}function Fk(t,e){const{input:n,response:r}=e,o=ps(n?lp(n):void 0),i=r?sp(r.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==i&&(t.data.response_body_size=i)}async function Bk(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=e,{url:s,method:a,status_code:u=0,request_body_size:c,response_body_size:l}=t.data,f=Zo(s,n.networkDetailAllowUrls)&&!Zo(s,n.networkDetailDenyUrls);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:u,request:f?jk(n,e.input,c):yi(c),response:await Uk(f,n,e.response,l)}}function jk({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const o=n?$k(n,e):{};if(!t)return Or(o,r,void 0);const i=lp(n),[s,a]=ap(i),u=Or(o,r,s);return a?Xo(u,a):u}async function Uk(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,o){if(!t&&void 0!==o)return yi(o);const i=r?fp(r.headers,n):{};if(!r||!e&&void 0!==o)return Or(i,o,void 0);const[s,a]=await zk(r),u=Wk(s,{networkCaptureBodies:e,responseBodySize:o,captureDetails:t,headers:i});return a?Xo(u,a):u}function Wk(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:o}){try{const i=t&&t.length&&void 0===n?ps(t):n;return r?Or(o,i,e?t:void 0):yi(i)}catch(t){return oe&&ae.exception(t,"Failed to serialize response body"),Or(o,n,void 0)}}async function zk(t){const e=Hk(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await qk(e)]}catch(t){return t instanceof Error&&t.message.indexOf("Timeout")>-1?(oe&&ae.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(oe&&ae.exception(t,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function lp(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function fp(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function $k(t,e){return 1===t.length&&"string"!=typeof t[0]?Td(t[0],e):2===t.length?Td(t[1],e):{}}function Td(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?fp(n,e):Array.isArray(n)?{}:Eu(n,e):{}}function Hk(t){try{return t.clone()}catch(t){oe&&ae.exception(t,"Failed to clone response body")}}function qk(t){return new Promise(((e,n)=>{const r=kn((()=>n(new Error("Timeout while trying to read response body"))),500);Gk(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}async function Gk(t){return await t.text()}async function Yk(t,e,n){try{const r=up("resource.xhr",Kk(t,e,n));op(n.replay,r)}catch(t){oe&&ae.exception(t,"Failed to capture xhr breadcrumb")}}function Vk(t,e){const{xhr:n,input:r}=e;if(!n)return;const o=ps(r),i=n.getResponseHeader("content-length")?sp(n.getResponseHeader("content-length")):Qk(n.response,n.responseType);void 0!==o&&(t.data.request_body_size=o),void 0!==i&&(t.data.response_body_size=i)}function Kk(t,e,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=e,{url:u,method:c,status_code:l=0,request_body_size:f,response_body_size:d}=t.data;if(!u)return null;if(!a||!Zo(u,n.networkDetailAllowUrls)||Zo(u,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:l,request:yi(f),response:yi(d)}}const h=a[U1],p=h?Eu(h.request_headers,n.networkRequestHeaders):{},m=Eu(Jk(a),n.networkResponseHeaders),[y,g]=n.networkCaptureBodies?ap(s):[void 0],[_,v]=n.networkCaptureBodies?Xk(a):[void 0],b=Or(p,f,y),k=Or(m,d,_);return{startTimestamp:o,endTimestamp:i,url:u,method:c,statusCode:l,request:g?Xo(b,g):b,response:v?Xo(k,v):k}}function Jk(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return r&&(t[n.toLowerCase()]=r),t}),{}):{}}function Xk(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return Zk(t.response,t.responseType)}catch(t){e.push(t)}return oe&&ae.warn("Failed to get xhr response body",...e),[void 0]}function Zk(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(e){return oe&&ae.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return oe&&ae.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Qk(t,e){try{return ps("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch{return}}function eC(t){const e=Zt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};e&&e.on("beforeAddBreadcrumb",((t,e)=>tC(a,t,e)))}catch{}}function tC(t,e,n){if(e.data)try{rC(e)&&iC(n)&&(Vk(e,n),Yk(e,n,t)),nC(e)&&oC(n)&&(Fk(e,n),Pk(e,n,t))}catch(t){oe&&ae.exception(t,"Error when enriching network breadcrumb")}}function rC(t){return"xhr"===t.category}function nC(t){return"fetch"===t.category}function iC(t){return t&&t.xhr}function oC(t){return t&&t.response}function sC(t){const e=Zt();O1(LI(t)),F1(Mk(t)),bk(t),eC(t);Cb(Tk(t)),e&&(e.on("beforeSendEvent",Sk(t)),e.on("afterSendEvent",_k(t)),e.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),e.on("spanStart",(e=>{t.lastActiveSpan=e})),e.on("spanEnd",(e=>{t.lastActiveSpan=e})),e.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}async function aC(t){try{return Promise.all(hs(t,[uC(Ue.performance.memory)]))}catch{return[]}}function uC(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function cC(t,e,n){let r,o,i;const s=n.maxWait?Math.max(n.maxWait,e):0;function a(){return u(),r=t(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=kn(a,e),s&&void 0===i&&(i=kn(a,s)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==i?a():r},c}function lC(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(oe&&ae.warn("Received replay event after session expired."));const o=r||!e;e=!0,t.clickDetector&&AI(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&o&&t.setInitialState(),!tc(t,n,o))return!0;if(!o)return!1;const e=t.session;if(dC(t,o),"buffer"===t.recordingMode&&e&&t.eventBuffer){const n=t.eventBuffer.getEarliestTimestamp();n&&(oe&&ae.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),e.started=n,t.getOptions().stickySession&&ec(e))}return e&&e.previousSessionId||"session"===t.recordingMode&&t.flush(),!0}))}}function fC(t){const e=t.getOptions();return{type:me.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function dC(t,e){!e||!t.session||0!==t.session.segmentId||tc(t,fC(t),!1)}function hC(t,e,n,r){return sb(ub(t,ab(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}function pC({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}async function mC({client:t,scope:e,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,o);const i=await gb(t.getOptions(),r,o,e,t,Ii());if(!i)return null;i.platform=i.platform||"javascript";const s=t.getSdkMetadata(),{name:a,version:u}=s&&s.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:u||"0.0.0"},i}async function gC({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=pC({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:u,traceIds:c,initialTimestamp:l}=r,f=Zt(),d=Mn(),h=f&&f.getTransport(),p=f&&f.getDsn();if(!(f&&h&&p&&i.sampled))return qf({});const m={type:K1,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:u,trace_ids:c,urls:a,replay_id:e,segment_id:n,replay_type:i.sampled},y=await mC({scope:d,client:f,replayId:e,event:m});if(!y)return f.recordDroppedEvent("event_processor","replay",m),oe&&ae.info("An event processor returned `null`, will not send event."),qf({});delete y.sdkProcessingMetadata;const g=hC(y,s,p,f.getOptions().tunnel);let _;try{_=await h.send(g)}catch(t){const e=new Error(Hu);try{e.cause=t}catch{}throw e}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new dp(_.statusCode);const v=Mb({},_);if(Ab(v,"replay"))throw new nc(v);return _}class dp extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class nc extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function hp(t,e={count:0,interval:tw}){const{recordingData:n,onError:r}=t;if(n.length)try{return await gC(t),!0}catch(n){if(n instanceof dp||n instanceof nc)throw n;if(Ib("Replays",{_retryCount:e.count}),r&&r(n),e.count>=3){const t=new Error(`${Hu} - max retries exceeded`);try{t.cause=n}catch{}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{kn((async()=>{try{await hp(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const pp="__THROTTLED",_C="__SKIPPED";function yC(t,e,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(s),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=o;return o=!0,t?_C:pp}o=!1;const a=r.get(s)||0;return r.set(s,a+1),t(...i)}}class Mr{constructor({options:t,recordingOptions:e}){Mr.prototype.__init.call(this),Mr.prototype.__init2.call(this),Mr.prototype.__init3.call(this),Mr.prototype.__init4.call(this),Mr.prototype.__init5.call(this),Mr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:J1,sessionIdleExpire:X1},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=e,this._options=t,this._debouncedFlush=cC((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=yC(((t,e)=>pk(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(nw,n),timeout:n,scrollTimeout:iw,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new CI(this,o)),oe){const e=t._experiments;ae.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){oe&&ae.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options,r=e<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(t),!this.session)return void(oe&&ae.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",oe&&ae.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(oe&&ae.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(oe&&ae.info("Buffering is in progress, call `flush()` to save the replay"));oe&&ae.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Ya({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(oe&&ae.info("Buffering is in progress, call `flush()` to save the replay"));oe&&ae.infoTick("Starting replay in buffer mode");const t=Ya({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=mr({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:ew}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:lC(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{oe&&ae.info("Stopping Replay"+(e?` triggered by ${e}`:"")),ip(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,ck(this)}catch(t){this.handleException(t)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),oe&&ae.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),oe&&ae.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();oe&&ae.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();!t||!n||"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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&&vu(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${Ue.location.pathname}${Ue.location.hash}${Ue.location.search}`,e=`${Ue.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===pp){const t=Xt({category:"replay.throttled"});this.addUpdate((()=>!tc(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||ch(),e=t&&ju(t),n=(e&&hi(e).data||{})[uh];if(e&&n&&["route","custom"].includes(n))return hi(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=sk({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=Ya({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!ep(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ue.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ue.addEventListener("blur",this._handleWindowBlur),Ue.addEventListener("focus",this._handleWindowFocus),Ue.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sC(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=QI(this)}_removeListeners(){try{Ue.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ue.removeEventListener("blur",this._handleWindowBlur),Ue.removeEventListener("focus",this._handleWindowFocus),Ue.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===Ue.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Xt({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Xt({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{jI(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Qh(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):oe&&ae.info("Document has become active, but session has expired"))}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:me.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){let t=$I(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const e=this._context.initialTimestamp/1e3;t=t.filter((t=>t.start>=e))}return Promise.all(hs(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e||this._requiresManualStart||t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await aC(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await hp({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:t=>this.handleException(t)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});const e=Zt();if(e){const n=t instanceof nc?"ratelimit_backoff":"send_error";e.recordDroppedEvent(n,"replay")}}}else oe&&ae.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(oe&&ae.error("Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return oe&&ae.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&oe&&ae.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(t){this.handleException(t)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&ec(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Xt({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ri(t,e){return[...t,...e].join(",")}function vC({mask:t,unmask:e,block:n,unblock:r,ignore:o}){return{maskTextSelector:ri(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ri(e,[]),blockSelector:ri(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:ri(r,[]),ignoreSelector:ri(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function SC({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?i:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Ad='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',EC=["content-length","content-type","accept"];let Md=!1;const bC=t=>new ms(t);class ms{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=Z1,flushMaxDelay:e=Q1,minReplayDuration:n=ow,maxReplayDuration:r=cd,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:f=750,mutationLimit:d=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:k=["title","placeholder"],unmask:w=[],block:S=[],unblock:E=[],ignore:x=[],maskFn:I,beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R}={}){this.name=ms.id;const A=vC({mask:b,unmask:w,block:S,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(t,e,n)=>SC({maskAttributes:k,maskAllText:u,privacyOptions:A,key:t,value:e,el:n}),...A,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,sw),maxReplayDuration:Math.min(r,cd),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:l,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:d,slowClickTimeout:h,slowClickIgnoreSelectors:p,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Od(_),networkResponseHeaders:Od(v),beforeAddRecordingEvent:C,beforeErrorSampling:T,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ad}`:Ad),this._isInitialized&&nd())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Md}set _isInitialized(t){Md=t}afterAllSetup(t){!nd()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const e=wC(this._initialOptions,t);this._replay=new Mr({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const e=t.getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch{}}}function wC(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ht(t)},o=Zf(n.replaysSessionSampleRate),i=Zf(n.replaysOnErrorSampleRate);return null==o&&null==i&&Ou((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=i&&(r.errorSampleRate=i),r}function Od(t){return[...EC,...t.map((t=>t.toLowerCase()))]}ms.__initStatic();var at=Zd();const mp=()=>"object"!=typeof window;var IC={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"97cf47b3e9c701aee56eb0f587f592580a450114",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/16263",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/70fcd8585843667f",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",BUILD_VCS_NUMBER_WebApps:"97cf47b3e9c701aee56eb0f587f592580a450114",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1297",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.2 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:9533",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.2",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",rvm_bin_path:"/home/teamcity/.rvm/bin",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.7/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.7",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme0n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/70fcd8585843667f/packages/error-kit/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.14.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.14.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.14.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.14.0/bin",INVOCATION_ID:"bf0f84ab1c314eab8d883b140417d45b",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.14.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-21-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2024.12-174504-jar-with-dependencies.jar"',TURBO_HASH:"70c9f4881909ef89",npm_package_name:"@wellesley/error-kit",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.7",TEAMCITY_VERSION:"2024.12.2 (build 174504)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"2216",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",USE_NPM_VENDOR:"false",npm_lifecycle_event:"build",npm_package_version:"1.0.10",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.7",TURBO_INVOCATION_DIR:"/mnt/agent/work/70fcd8585843667f",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.14.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.7:/home/teamcity/.rvm/gems/ruby-3.3.7@global",JAVA_HOME:"/usr/lib/jvm/java-21-amazon-corretto",PWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.14.0",TEAMCITY_PROCESS_FLOW_ID:"513689168158",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",USE_PACKAGES_FROM_NPM:"false",rvm_ruby_string:"ruby-3.3.7",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/70fcd8585843667f/packages/error-kit",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/error-kit"};function kC(t){if("object"!=typeof t||null===t)return!1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}function CC(t){return kC(t)&&"type"in t&&"string"==typeof t.type}mp()||(window.build=IC.BUILD_NUMBER),bC(),H1(),Ub();var gp=Symbol.for("immer-nothing"),Dd=Symbol.for("immer-draftable"),Ct=Symbol.for("immer-state");function $t(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Tn=Object.getPrototypeOf;function Dr(t){return!!t&&!!t[Ct]}function _r(t){var e;return!!t&&(_p(t)||Array.isArray(t)||!!t[Dd]||!(null==(e=t.constructor)||!e[Dd])||_s(t)||ys(t))}var xC=Object.prototype.constructor.toString();function _p(t){if(!t||"object"!=typeof t)return!1;const e=Tn(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===xC}function vi(t,e){0===gs(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function gs(t){const e=t[Ct];return e?e.type_:Array.isArray(t)?1:_s(t)?2:ys(t)?3:0}function bu(t,e){return 2===gs(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yp(t,e,n){const r=gs(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function RC(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function _s(t){return t instanceof Map}function ys(t){return t instanceof Set}function Gr(t){return t.copy_||t.base_}function wu(t,e){if(_s(t))return new Map(t);if(ys(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&_p(t))return Tn(t)?{...t}:Object.assign(Object.create(null),t);const n=Object.getOwnPropertyDescriptors(t);delete n[Ct];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const o=r[e],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Tn(t),n)}function ic(t,e=!1){return vs(t)||Dr(t)||!_r(t)||(gs(t)>1&&(t.set=t.add=t.clear=t.delete=TC),Object.freeze(t),e&&vi(t,((t,e)=>ic(e,!0)))),t}function TC(){$t(2)}function vs(t){return Object.isFrozen(t)}var Si,AC={};function Kr(t){const e=AC[t];return e||$t(0,t),e}function vp(){return Si}function MC(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nd(t,e){e&&(Kr("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Iu(t){ku(t),t.drafts_.forEach(OC),t.drafts_=null}function ku(t){t===Si&&(Si=t.parent_)}function Ld(t){return Si=MC(Si,t)}function OC(t){const e=t[Ct];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function Pd(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Ct].modified_&&(Iu(e),$t(4)),_r(t)&&(t=Qo(e,t),e.parent_||es(e,t)),e.patches_&&Kr("Patches").generateReplacementPatches_(n[Ct].base_,t,e.patches_,e.inversePatches_)):t=Qo(e,n,[]),Iu(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==gp?t:void 0}function Qo(t,e,n){if(vs(e))return e;const r=e[Ct];if(!r)return vi(e,((o,i)=>Fd(t,r,e,o,i,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return es(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let o=e,i=!1;3===r.type_&&(o=new Set(e),e.clear(),i=!0),vi(o,((o,s)=>Fd(t,r,e,o,s,n,i))),es(t,e,!1),n&&t.patches_&&Kr("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Fd(t,e,n,r,o,i,s){if(Dr(o)){const s=Qo(t,o,i&&e&&3!==e.type_&&!bu(e.assigned_,r)?i.concat(r):void 0);if(yp(n,r,s),!Dr(s))return;t.canAutoFreeze_=!1}else s&&n.add(o);if(_r(o)&&!vs(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Qo(t,o),(!e||!e.scope_.parent_)&&es(t,o)}}function es(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ic(e,n)}function DC(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:vp(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=oc;n&&(o=[r],i=Ei);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var oc={get(t,e){if(e===Ct)return t;const n=Gr(t);if(!bu(n,e))return NC(t,n,e);const r=n[e];return t.finalized_||!_r(r)?r:r===Va(t.base_,e)?(Ka(t),t.copy_[e]=xu(r,t)):r},has:(t,e)=>e in Gr(t),ownKeys:t=>Reflect.ownKeys(Gr(t)),set(t,e,n){const r=Sp(Gr(t),e);if(null!=r&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Va(Gr(t),e),o=null==r?void 0:r[Ct];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(RC(n,r)&&(void 0!==n||bu(t.base_,e)))return!0;Ka(t),Cu(t)}return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==Va(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Ka(t),Cu(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=Gr(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}},defineProperty(){$t(11)},getPrototypeOf:t=>Tn(t.base_),setPrototypeOf(){$t(12)}},Ei={};function Va(t,e){const n=t[Ct];return(n?Gr(n):t)[e]}function NC(t,e,n){var r;const o=Sp(e,n);return o?"value"in o?o.value:null==(r=o.get)?void 0:r.call(t.draft_):void 0}function Sp(t,e){if(!(e in t))return;let n=Tn(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Tn(n)}}function Cu(t){t.modified_||(t.modified_=!0,t.parent_&&Cu(t.parent_))}function Ka(t){t.copy_||(t.copy_=wu(t.base_,t.scope_.immer_.useStrictShallowCopy_))}vi(oc,((t,e)=>{Ei[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ei.deleteProperty=function(t,e){return Ei.set.call(this,t,e,void 0)},Ei.set=function(t,e,n){return oc.set.call(this,t[0],e,n,t[0])};var LC=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...o){return r.produce(t,(t=>e.call(this,t,...o)))}}let r;if("function"!=typeof e&&$t(6),void 0!==n&&"function"!=typeof n&&$t(7),_r(t)){const o=Ld(this),i=xu(t,void 0);let s=!0;try{r=e(i),s=!1}finally{s?Iu(o):ku(o)}return Nd(o,n),Pd(r,o)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===gp&&(r=void 0),this.autoFreeze_&&ic(r,!0),n){const e=[],o=[];Kr("Patches").generateReplacementPatches_(t,r,e,o),n(e,o)}return r}$t(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;return[this.produce(t,e,((t,e)=>{n=t,r=e})),n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){_r(t)||$t(8),Dr(t)&&(t=Ep(t));const e=Ld(this),n=xu(t,void 0);return n[Ct].isManual_=!0,ku(e),n}finishDraft(t,e){const n=t&&t[Ct];(!n||!n.isManual_)&&$t(9);const{scope_:r}=n;return Nd(r,e),Pd(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=Kr("Patches").applyPatches_;return Dr(t)?r(t,e):this.produce(t,(t=>r(t,e)))}};function xu(t,e){const n=_s(t)?Kr("MapSet").proxyMap_(t,e):ys(t)?Kr("MapSet").proxySet_(t,e):DC(t,e);return(e?e.scope_:vp()).drafts_.push(n),n}function Ep(t){return Dr(t)||$t(10,t),bp(t)}function bp(t){if(!_r(t)||vs(t))return t;const e=t[Ct];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=wu(t,e.scope_.immer_.useStrictShallowCopy_)}else n=wu(t,!0);return vi(n,((t,e)=>{yp(n,t,bp(e))})),e&&(e.finalized_=!1),n}var xt=new LC,wp=xt.produce;function PC(t,e="expected a function, instead received "+typeof t){if("function"!=typeof t)throw new TypeError(e)}function FC(t,e="expected an object, instead received "+typeof t){if("object"!=typeof t)throw new TypeError(e)}function BC(t,e="expected all items to be functions, instead received the following types: "){if(!t.every((t=>"function"==typeof t))){const n=t.map((t=>"function"==typeof t?`function ${t.name||"unnamed"}()`:typeof t)).join(", ");throw new TypeError(`${e}[${n}]`)}}xt.produceWithPatches.bind(xt),xt.setAutoFreeze.bind(xt),xt.setUseStrictShallowCopy.bind(xt),xt.applyPatches.bind(xt),xt.createDraft.bind(xt),xt.finishDraft.bind(xt);var Bd=t=>Array.isArray(t)?t:[t];function jC(t){const e=Array.isArray(t[0])?t[0]:t;return BC(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function UC(t,e){const n=[],{length:r}=t;for(let o=0;o<r;o++)n.push(t[o].apply(null,e));return n}var WC=class{constructor(t){this.value=t}deref(){return this.value}},zC=typeof WeakRef<"u"?WeakRef:WC,$C=0,jd=1;function Lo(){return{s:$C,v:void 0,o:null,p:null}}function sc(t,e={}){let n=Lo();const{resultEqualityCheck:r}=e;let o,i=0;function s(){var e;let s=n;const{length:a}=arguments;for(let t=0,e=a;t<e;t++){const e=arguments[t];if("function"==typeof e||"object"==typeof e&&null!==e){let t=s.o;null===t&&(s.o=t=new WeakMap);const n=t.get(e);void 0===n?(s=Lo(),t.set(e,s)):s=n}else{let t=s.p;null===t&&(s.p=t=new Map);const n=t.get(e);void 0===n?(s=Lo(),t.set(e,s)):s=n}}const u=s;let c;if(s.s===jd?c=s.v:(c=t.apply(null,arguments),i++),u.s=jd,r){const t=(null==(e=null==o?void 0:o.deref)?void 0:e.call(o))??o;null!=t&&r(t,c)&&(c=t,0!==i&&i--),o="object"==typeof c&&null!==c||"function"==typeof c?new zC(c):c}return u.v=c,c}return s.clearCache=()=>{n=Lo(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Ip(t,...e){const n="function"==typeof t?{memoize:t,memoizeOptions:e}:t,r=(...t)=>{let e,r=0,o=0,i={},s=t.pop();"object"==typeof s&&(i=s,s=t.pop()),PC(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const a={...n,...i},{memoize:u,memoizeOptions:c=[],argsMemoize:l=sc,argsMemoizeOptions:f=[],devModeChecks:d={}}=a,h=Bd(c),p=Bd(f),m=jC(t),y=u((function(){return r++,s.apply(null,arguments)}),...h),g=l((function(){o++;const t=UC(m,arguments);return e=y.apply(null,t),e}),...p);return Object.assign(g,{resultFunc:s,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>e,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:u,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var HC=Ip(sc),qC=Object.assign(((t,e=HC)=>{FC(t,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);const n=Object.keys(t);return e(n.map((e=>t[e])),((...t)=>t.reduce(((t,e,r)=>(t[n[r]]=e,t)),{})))}),{withTypes:()=>qC}),GC=(...t)=>{const e=Ip(...t),n=Object.assign(((...t)=>{const n=e(...t),r=(t,...e)=>n(Dr(t)?Ep(t):t,...e);return Object.assign(r,n),r}),{withTypes:()=>n});return n};function An(t,e){function n(...n){if(e){let r=e(...n);if(!r)throw new Error(kt(0));return{type:t,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:t,payload:n[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=e=>CC(e)&&e.type===t,n}function Ud(t){return _r(t)?wp(t,(()=>{})):t}function Wd(t,e,n){if(t.has(e)){let r=t.get(e);return n.update&&(r=n.update(r,e,t),t.set(e,r)),r}if(!n.insert)throw new Error(kt(10));const r=n.insert(e,t);return t.set(e,r),r}function kp(t){const e={},n=[];let r;const o={addCase(t,n){const r="string"==typeof t?t:t.type;if(!r)throw new Error(kt(28));if(r in e)throw new Error(kt(29));return e[r]=n,o},addMatcher:(t,e)=>(n.push({matcher:t,reducer:e}),o),addDefaultCase:t=>(r=t,o)};return t(o),[e,n,r]}function YC(t){return"function"==typeof t}function VC(t,e){let n,[r,o,i]=kp(e);if(YC(t))n=()=>Ud(t());else{const e=Ud(t);n=()=>e}function s(t=n(),e){let s=[r[e.type],...o.filter((({matcher:t})=>t(e))).map((({reducer:t})=>t))];return 0===s.filter((t=>!!t)).length&&(s=[i]),s.reduce(((t,n)=>{if(n){if(Dr(t)){const r=n(t,e);return void 0===r?t:r}if(_r(t))return wp(t,(t=>n(t,e)));{const r=n(t,e);if(void 0===r){if(null===t)return t;throw new Error(kt(9))}return r}}return t}),t)}return s.getInitialState=n,s}GC(sc);var KC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",JC=(t=21)=>{let e="",n=t;for(;n--;)e+=KC[64*Math.random()|0];return e},XC=Symbol.for("rtk-slice-createasyncthunk");function ZC(t,e){return`${t}/${e}`}function QC({creators:t}={}){var e;const n=null==(e=null==t?void 0:t.asyncThunk)?void 0:e[XC];return function(t){const{name:e,reducerPath:r=e}=t;if(!e)throw new Error(kt(11));const o=("function"==typeof t.reducers?t.reducers(rx()):t.reducers)||{},i=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},a={addCase(t,e){const n="string"==typeof t?t:t.type;if(!n)throw new Error(kt(12));if(n in s.sliceCaseReducersByType)throw new Error(kt(13));return s.sliceCaseReducersByType[n]=e,a},addMatcher:(t,e)=>(s.sliceMatchers.push({matcher:t,reducer:e}),a),exposeAction:(t,e)=>(s.actionCreators[t]=e,a),exposeCaseReducer:(t,e)=>(s.sliceCaseReducersByName[t]=e,a)};function u(){const[e={},n=[],r]="function"==typeof t.extraReducers?kp(t.extraReducers):[t.extraReducers],o={...e,...s.sliceCaseReducersByType};return VC(t.initialState,(t=>{for(let e in o)t.addCase(e,o[e]);for(let e of s.sliceMatchers)t.addMatcher(e.matcher,e.reducer);for(let e of n)t.addMatcher(e.matcher,e.reducer);r&&t.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],s={reducerName:r,type:ZC(e,r),createNotation:"function"==typeof t.reducers};ix(i)?sx(s,i,a,n):nx(s,i,a)}));const c=t=>t,l=new Map;let f;function d(t,e){return f||(f=u()),f(t,e)}function h(){return f||(f=u()),f.getInitialState()}function p(e,n=!1){function r(t){let r=t[e];return typeof r>"u"&&n&&(r=h()),r}function o(e=c){const r=Wd(l,n,{insert:()=>new WeakMap});return Wd(r,e,{insert:()=>{const r={};for(const[o,i]of Object.entries(t.selectors??{}))r[o]=ex(i,e,h,n);return r}})}return{reducerPath:e,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const m={name:e,reducer:d,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:h,...p(r),injectInto(t,{reducerPath:e,...n}={}){const o=e??r;return t.inject({reducerPath:o,reducer:d},n),{...m,...p(o,!0)}}};return m}}function ex(t,e,n,r){function o(o,...i){let s=e(o);return typeof s>"u"&&r&&(s=n()),t(s,...i)}return o.unwrapped=t,o}var tx=QC();function rx(){function t(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return t.withTypes=()=>t,{reducer:t=>Object.assign({[t.name]:(...e)=>t(...e)}[t.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(t,e)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}),asyncThunk:t}}function nx({type:t,reducerName:e,createNotation:n},r,o){let i,s;if("reducer"in r){if(n&&!ox(r))throw new Error(kt(17));i=r.reducer,s=r.prepare}else i=r;o.addCase(t,i).exposeCaseReducer(e,i).exposeAction(e,s?An(t,s):An(t))}function ix(t){return"asyncThunk"===t._reducerDefinitionType}function ox(t){return"reducerWithPrepare"===t._reducerDefinitionType}function sx({type:t,reducerName:e},n,r,o){if(!o)throw new Error(kt(18));const{payloadCreator:i,fulfilled:s,pending:a,rejected:u,settled:c,options:l}=n,f=o(t,i,l);r.exposeAction(e,f),s&&r.addCase(f.fulfilled,s),a&&r.addCase(f.pending,a),u&&r.addCase(f.rejected,u),c&&r.addMatcher(f.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Po,pending:a||Po,rejected:u||Po,settled:c||Po})}function Po(){}var ax=(t,e)=>{if("function"!=typeof t)throw new Error(kt(32))},ac="listenerMiddleware",ux=t=>{let{type:e,actionCreator:n,matcher:r,predicate:o,effect:i}=t;if(e)o=An(e).match;else if(n)e=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(kt(21));return ax(i),{predicate:o,type:e,effect:i}},cx=Object.assign((t=>{const{type:e,predicate:n,effect:r}=ux(t);return{id:JC(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(kt(22))}}}),{withTypes:()=>cx}),lx=Object.assign(An(`${ac}/add`),{withTypes:()=>lx});An(`${ac}/removeAll`);var fx=Object.assign(An(`${ac}/remove`),{withTypes:()=>fx});function kt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const zd={data:null,isError:!1,isPending:!1,isSuccess:!1};tx({name:"user",initialState:zd,reducers:{reset:t=>{Object.assign(t,zd)},setData:(t,{payload:e})=>{t.data=e},updateData:(t,{payload:e})=>{t.data&&Object.assign(t.data,e)},setSuccess:(t,{payload:e})=>{t.isSuccess=e},setPending:(t,{payload:e})=>{t.isPending=e},setIsError:(t,{payload:e})=>{t.isError=e},setError:(t,{payload:e})=>{t.error=e},updateUser:(t,{payload:e})=>{var n;null!=(n=t.data)&&n.users&&(t.data.users=t.data.users.map((t=>e.id===t.id?e:t)))}},selectors:{selectIsError:t=>t.isError,selectError:t=>t.error,selectPending:t=>t.isPending,selectData:t=>t.data,selectAccount:t=>{var e;return null==(e=t.data)?void 0:e.account},selectUsers:t=>{var e;return null==(e=t.data)?void 0:e.users},selectUserById:(t,e)=>{var n;return null==(n=t.data)?void 0:n.users.find((({id:t})=>t===e))},selectCurrentUser:t=>{var e;return null==(e=t.data)?void 0:e.users.find((({id:e})=>{var n;return e===(null==(n=t.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:t=>{var e;return null==(e=t.data)?void 0:e.selectedUserId},selectSuccess:t=>t.isSuccess,selectIsAdmin:t=>{var e;return"ADMIN"===(null==(e=t.data)?void 0:e.account.role)}}});const dx=(...t)=>{let e="";for(const n of t){if(n instanceof Error){const t=n;return kb("exceptionMessage",e),void Uu(t)}if("object"!=typeof n)e+=n;else try{e+=" "+JSON.stringify(n)}catch{e+=" "+n}}wb(e)},$d=["debug","info","warn","error"],hx=(t,e)=>{const n=$d.indexOf(t);return $d.indexOf(e)>=n},Fo=(t,e,n,...r)=>{hx(e,t)&&console.log(`[${t}] ${n}`,...r)},px=()=>null==window?void 0:window.localStorage.getItem("logger_lvl"),mx=(t=!mp()&&px()||"warn")=>{let e=t;return{debug:(t,...n)=>Fo("debug",e,t,...n),info:(t,...n)=>Fo("info",e,t,...n),warn:(t,...n)=>Fo("warn",e,t,...n),error:(t,...n)=>(dx(t,...n),Fo("error",e,t,...n)),setLevel:t=>{e=t},getLevel:()=>e}},Ru=mx(),gx="https://cdn.jsdelivr.net/npm/@wellesley/error-kit/ooopsIcon.svg?no-inline";var Hd,ii={exports:{}},_x=ii.exports;
20
20
  /**
21
21
  * @license
22
22
  * Lodash <https://lodash.com/>
@@ -24,7 +24,7 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
24
24
  * Released under MIT license <https://lodash.com/license>
25
25
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
26
26
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
27
- */function yC(){return Hd||(Hd=1,t=ii,e=ii.exports,function(){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function i(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function o(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function a(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function u(t,e){return!(null==t||!t.length)&&g(t,e,0)>-1}function c(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function l(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function f(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function d(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function h(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function p(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function y(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function g(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):y(t,v,n)}function _(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function v(t){return t!=t}function b(t,e){var n=null==t?0:t.length;return n?E(t,e)/n:Q}function k(t){return function(e){return null==e?B:e[t]}}function w(t){return function(e){return null==t?B:t[e]}}function S(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function E(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==B&&(n=n===B?o:n+o)}return n}function x(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t){return t&&t.slice(0,W(t)+1).replace(qt,"")}function C(t){return function(e){return t(e)}}function T(t,e){return l(e,(function(e){return t[e]}))}function R(t,e){return t.has(e)}function A(t,e){for(var n=-1,r=t.length;++n<r&&g(e,t[n],0)>-1;);return n}function M(t,e){for(var n=t.length;n--&&g(e,t[n],0)>-1;);return n}function O(t){return"\\"+Ge[t]}function D(t){return $e.test(t)}function N(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t,e){return function(n){return t(e(n))}}function j(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==H||(t[n]=H,o[i++]=n)}return o}function P(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function F(t){return D(t)?function(t){for(var e=Be.lastIndex=0;Be.test(t);)++e;return e}(t):hn(t)}function U(t){return D(t)?function(t){return t.match(Be)||[]}(t):function(t){return t.split("")}(t)}function W(t){for(var e=t.length;e--&&Vt.test(t.charAt(e)););return e}var B,z="Expected a function",$="__lodash_hash_undefined__",H="__lodash_placeholder__",q=16,V=32,Y=64,K=128,G=256,J=1/0,X=9007199254740991,Q=NaN,Z=4294967295,tt=Z-1,et=Z>>>1,nt=[["ary",K],["bind",1],["bindKey",2],["curry",8],["curryRight",q],["flip",512],["partial",V],["partialRight",Y],["rearg",G]],rt="[object Arguments]",it="[object Array]",ot="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Function]",ct="[object GeneratorFunction]",lt="[object Map]",ft="[object Number]",dt="[object Object]",ht="[object Promise]",pt="[object RegExp]",mt="[object Set]",yt="[object String]",gt="[object Symbol]",_t="[object WeakMap]",vt="[object ArrayBuffer]",bt="[object DataView]",kt="[object Float32Array]",wt="[object Float64Array]",St="[object Int8Array]",Et="[object Int16Array]",xt="[object Int32Array]",It="[object Uint8Array]",Ct="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Rt="[object Uint32Array]",At=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dt=/&(?:amp|lt|gt|quot|#39);/g,Nt=/[&<>"']/g,Lt=RegExp(Dt.source),jt=RegExp(Nt.source),Pt=/<%-([\s\S]+?)%>/g,Ft=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,Ht=RegExp($t.source),qt=/^\s+/,Vt=/\s/,Yt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,oe=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ae=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,ce="\\ud800-\\udfff",le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\u2700-\\u27bf",de="a-z\\xdf-\\xf6\\xf8-\\xff",he="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ye="['’]",ge="["+ce+"]",_e="["+me+"]",ve="["+le+"]",be="\\d+",ke="["+fe+"]",we="["+de+"]",Se="[^"+ce+me+be+fe+de+he+"]",Ee="\\ud83c[\\udffb-\\udfff]",xe="[^"+ce+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="["+he+"]",Re="\\u200d",Ae="(?:"+we+"|"+Se+")",Me="(?:"+Te+"|"+Se+")",Oe="(?:['’](?:d|ll|m|re|s|t|ve))?",De="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ne="(?:"+ve+"|"+Ee+")?",Le="["+pe+"]?",je=Le+Ne+"(?:"+Re+"(?:"+[xe,Ie,Ce].join("|")+")"+Le+Ne+")*",Pe="(?:"+[ke,Ie,Ce].join("|")+")"+je,Fe="(?:"+[xe+ve+"?",ve,Ie,Ce,ge].join("|")+")",Ue=RegExp(ye,"g"),We=RegExp(ve,"g"),Be=RegExp(Ee+"(?="+Ee+")|"+Fe+je,"g"),ze=RegExp([Te+"?"+we+"+"+Oe+"(?="+[_e,Te,"$"].join("|")+")",Me+"+"+De+"(?="+[_e,Te+Ae,"$"].join("|")+")",Te+"?"+Ae+"+"+Oe,Te+"+"+De,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,Pe].join("|"),"g"),$e=RegExp("["+Re+ce+le+pe+"]"),He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Ye={};Ye[kt]=Ye[wt]=Ye[St]=Ye[Et]=Ye[xt]=Ye[It]=Ye[Ct]=Ye[Tt]=Ye[Rt]=!0,Ye[rt]=Ye[it]=Ye[vt]=Ye[ot]=Ye[bt]=Ye[st]=Ye[at]=Ye[ut]=Ye[lt]=Ye[ft]=Ye[dt]=Ye[pt]=Ye[mt]=Ye[yt]=Ye[_t]=!1;var Ke={};Ke[rt]=Ke[it]=Ke[vt]=Ke[bt]=Ke[ot]=Ke[st]=Ke[kt]=Ke[wt]=Ke[St]=Ke[Et]=Ke[xt]=Ke[lt]=Ke[ft]=Ke[dt]=Ke[pt]=Ke[mt]=Ke[yt]=Ke[gt]=Ke[It]=Ke[Ct]=Ke[Tt]=Ke[Rt]=!0,Ke[at]=Ke[ut]=Ke[_t]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=parseFloat,Xe=parseInt,Qe="object"==typeof ws&&ws&&ws.Object===Object&&ws,Ze="object"==typeof self&&self&&self.Object===Object&&self,tn=Qe||Ze||Function("return this")(),en=e&&!e.nodeType&&e,nn=en&&t&&!t.nodeType&&t,rn=nn&&nn.exports===en,on=rn&&Qe.process,sn=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),an=sn&&sn.isArrayBuffer,un=sn&&sn.isDate,cn=sn&&sn.isMap,ln=sn&&sn.isRegExp,fn=sn&&sn.isSet,dn=sn&&sn.isTypedArray,hn=k("length"),pn=w({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=w({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),yn=w({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function t(e){function w(t){if(Pi(t)&&!Ta(t)&&!(t instanceof le)){if(t instanceof ce)return t;if(To.call(t,"__wrapped__"))return ci(t)}return new ce(t)}function Vt(){}function ce(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=B}function le(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function fe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pe(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new he;++e<n;)this.add(t[e])}function me(t){this.size=(this.__data__=new de(t)).size}function ye(t,e){var n=Ta(t),r=!n&&Ca(t),i=!n&&!r&&Aa(t),o=!n&&!r&&!i&&La(t),s=n||r||i||o,a=s?x(t.length,ko):[],u=a.length;for(var c in t)!e&&!To.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Kr(c,u))||a.push(c);return a}function ge(t){var e=t.length;return e?t[Dn(0,e-1)]:B}function _e(t,e){return si(lr(t),Ce(e,0,t.length))}function ve(t){return si(lr(t))}function be(t,e,n){(n===B||Ri(t[e],n))&&(n!==B||e in t)||xe(t,e,n)}function ke(t,e,n){var r=t[e];To.call(t,e)&&Ri(r,n)&&(n!==B||e in t)||xe(t,e,n)}function we(t,e){for(var n=t.length;n--;)if(Ri(t[n][0],e))return n;return-1}function Se(t,e,n,r){return Is(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Ee(t,e){return t&&fr(e,Xi(e),t)}function xe(t,e,n){"__proto__"==e&&Vo?Vo(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ie(t,e){for(var n=-1,r=e.length,i=po(r),o=null==t;++n<r;)i[n]=o?B:Gi(t,e[n]);return i}function Ce(t,e,n){return t==t&&(n!==B&&(t=t<=n?t:n),e!==B&&(t=t>=e?t:e)),t}function Te(t,e,n,r,o,s){var a,u=1&e,c=2&e,l=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==B)return a;if(!ji(t))return t;var f=Ta(t);if(f){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&To.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return lr(t,a)}else{var d=Fs(t),h=d==ut||d==ct;if(Aa(t))return ir(t,u);if(d==dt||d==rt||h&&!o){if(a=c||h?{}:Vr(t),!u)return c?function(t,e){return fr(t,Ps(t),e)}(t,function(t,e){return t&&fr(e,Qi(e),t)}(a,t)):function(t,e){return fr(t,js(t),e)}(t,Ee(a,t))}else{if(!Ke[d])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case vt:return or(t);case ot:case st:return new r(+t);case bt:return function(t,e){return new t.constructor(e?or(t.buffer):t.buffer,t.byteOffset,t.byteLength)}(t,n);case kt:case wt:case St:case Et:case xt:case It:case Ct:case Tt:case Rt:return sr(t,n);case lt:return new r;case ft:case yt:return new r(t);case pt:return function(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}(t);case mt:return new r;case gt:return function(t){return Ss?vo(Ss.call(t)):{}}(t)}}(t,d,u)}}s||(s=new me);var p=s.get(t);if(p)return p;s.set(t,a),Na(t)?t.forEach((function(r){a.add(Te(r,e,n,r,t,s))})):Oa(t)&&t.forEach((function(r,i){a.set(i,Te(r,e,n,i,t,s))}));var m=f?B:(l?c?Fr:Pr:c?Qi:Xi)(t);return i(m||t,(function(r,i){m&&(r=t[i=r]),ke(a,i,Te(r,e,n,i,t,s))})),a}function Re(t,e,n){var r=n.length;if(null==t)return!r;for(t=vo(t);r--;){var i=n[r],o=e[i],s=t[i];if(s===B&&!(i in t)||!o(s))return!1}return!0}function Ae(t,e,n){if("function"!=typeof t)throw new wo(z);return Bs((function(){t.apply(B,n)}),e)}function Me(t,e,n,r){var i=-1,o=u,s=!0,a=t.length,f=[],d=e.length;if(!a)return f;n&&(e=l(e,C(n))),r?(o=c,s=!1):e.length>=200&&(o=R,s=!1,e=new pe(e));t:for(;++i<a;){var h=t[i],p=null==n?h:n(h);if(h=r||0!==h?h:0,s&&p==p){for(var m=d;m--;)if(e[m]===p)continue t;f.push(h)}else o(e,p,r)||f.push(h)}return f}function Oe(t,e){var n=!0;return Is(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function De(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],s=e(o);if(null!=s&&(a===B?s==s&&!Bi(s):n(s,a)))var a=s,u=o}return u}function Ne(t,e){var n=[];return Is(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Le(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=Yr),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?Le(a,e-1,n,r,i):f(i,a):r||(i[i.length]=a)}return i}function je(t,e){return t&&Ts(t,e,Xi)}function Pe(t,e){return t&&Rs(t,e,Xi)}function Fe(t,e){return a(e,(function(e){return Di(t[e])}))}function Be(t,e){for(var n=0,r=(e=nr(e,t)).length;null!=t&&n<r;)t=t[ai(e[n++])];return n&&n==r?t:B}function $e(t,e,n){var r=e(t);return Ta(t)?r:f(r,n(t))}function Ge(t){return null==t?t===B?"[object Undefined]":"[object Null]":qo&&qo in vo(t)?function(t){var e=To.call(t,qo),n=t[qo];try{t[qo]=B;var r=!0}catch{}var i=Mo.call(t);return r&&(e?t[qo]=n:delete t[qo]),i}(t):function(t){return Mo.call(t)}(t)}function Qe(t,e){return t>e}function Ze(t,e){return null!=t&&To.call(t,e)}function en(t,e){return null!=t&&e in vo(t)}function nn(t,e,n){for(var r=n?c:u,i=t[0].length,o=t.length,s=o,a=po(o),f=1/0,d=[];s--;){var h=t[s];s&&e&&(h=l(h,C(e))),f=is(h.length,f),a[s]=!n&&(e||i>=120&&h.length>=120)?new pe(s&&h):B}h=t[0];var p=-1,m=a[0];t:for(;++p<i&&d.length<f;){var y=h[p],g=e?e(y):y;if(y=n||0!==y?y:0,!(m?R(m,g):r(d,g,n))){for(s=o;--s;){var _=a[s];if(!(_?R(_,g):r(t[s],g,n)))continue t}m&&m.push(g),d.push(y)}}return d}function on(t,e,r){var i=null==(t=ni(t,e=nr(e,t)))?t:t[ai(pi(e))];return null==i?B:n(i,t,r)}function sn(t){return Pi(t)&&Ge(t)==rt}function hn(t,e,n,r,i){return t===e||(null==t||null==e||!Pi(t)&&!Pi(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var s=Ta(t),a=Ta(e),u=s?it:Fs(t),c=a?it:Fs(e),l=(u=u==rt?dt:u)==dt,f=(c=c==rt?dt:c)==dt,d=u==c;if(d&&Aa(t)){if(!Aa(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new me),s||La(t)?Lr(t,e,n,r,i,o):function(t,e,n,r,i,o,s){switch(n){case bt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vt:return!(t.byteLength!=e.byteLength||!o(new Po(t),new Po(e)));case ot:case st:case ft:return Ri(+t,+e);case at:return t.name==e.name&&t.message==e.message;case pt:case yt:return t==e+"";case lt:var a=N;case mt:var u=1&r;if(a||(a=P),t.size!=e.size&&!u)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Lr(a(t),a(e),r,i,o,s);return s.delete(t),l;case gt:if(Ss)return Ss.call(t)==Ss.call(e)}return!1}(t,e,u,n,r,i,o);if(!(1&n)){var h=l&&To.call(t,"__wrapped__"),p=f&&To.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,y=p?e.value():e;return o||(o=new me),i(m,y,n,r,o)}}return!!d&&(o||(o=new me),function(t,e,n,r,i,o){var s=1&n,a=Pr(t),u=a.length;if(u!=Pr(e).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in e:To.call(e,l)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var h=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<u;){var m=t[l=a[c]],y=e[l];if(r)var g=s?r(y,m,l,e,t,o):r(m,y,l,t,e,o);if(!(g===B?m===y||i(m,y,n,r,o):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var _=t.constructor,v=e.constructor;_!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v)&&(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o))}(t,e,n,r,hn,i))}function _n(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=vo(t);i--;){var a=n[i];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){var u=(a=n[i])[0],c=t[u],l=a[1];if(s&&a[2]){if(c===B&&!(u in t))return!1}else{var f=new me;if(r)var d=r(c,l,u,t,e,f);if(!(d===B?hn(l,c,3,r,f):d))return!1}}return!0}function vn(t){return!(!ji(t)||function(t){return!!Ao&&Ao in t}(t))&&(Di(t)?No:re).test(ui(t))}function bn(t){return"function"==typeof t?t:null==t?oo:"object"==typeof t?Ta(t)?In(t[0],t[1]):xn(t):co(t)}function kn(t){if(!Qr(t))return ns(t);var e=[];for(var n in vo(t))To.call(t,n)&&"constructor"!=n&&e.push(n);return e}function wn(t){if(!ji(t))return function(t){var e=[];if(null!=t)for(var n in vo(t))e.push(n);return e}(t);var e=Qr(t),n=[];for(var r in t)("constructor"!=r||!e&&To.call(t,r))&&n.push(r);return n}function Sn(t,e){return t<e}function En(t,e){var n=-1,r=Ai(t)?po(t.length):[];return Is(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function xn(t){var e=$r(t);return 1==e.length&&e[0][2]?ti(e[0][0],e[0][1]):function(n){return n===t||_n(n,t,e)}}function In(t,e){return Jr(t)&&Zr(e)?ti(ai(t),e):function(n){var r=Gi(n,t);return r===B&&r===e?Ji(n,t):hn(e,r,3)}}function Cn(t,e,n,r,i){t!==e&&Ts(e,(function(o,s){if(i||(i=new me),ji(o))!function(t,e,n,r,i,o,s){var a=ri(t,n),u=ri(e,n),c=s.get(u);if(c)return be(t,n,c),B;var l=o?o(a,u,n+"",t,e,s):B,f=l===B;if(f){var d=Ta(u),h=!d&&Aa(u),p=!d&&!h&&La(u);l=u,d||h||p?Ta(a)?l=a:Mi(a)?l=lr(a):h?(f=!1,l=ir(u,!0)):p?(f=!1,l=sr(u,!0)):l=[]:Ui(u)||Ca(u)?(l=a,Ca(a)?l=Yi(a):ji(a)&&!Di(a)||(l=Vr(u))):f=!1}f&&(s.set(u,l),i(l,u,r,o,s),s.delete(u)),be(t,n,l)}(t,e,s,n,Cn,r,i);else{var a=r?r(ri(t,s),o,s+"",t,e,i):B;a===B&&(a=o),be(t,s,a)}}),Qi)}function Tn(t,e){var n=t.length;if(n)return Kr(e+=e<0?n:0,n)?t[e]:B}function Rn(t,e,n){e=e.length?l(e,(function(t){return Ta(t)?function(e){return Be(e,1===t.length?t[0]:t)}:t})):[oo];var r=-1;return e=l(e,C(Br())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(En(t,(function(t,n,i){return{criteria:l(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;++r<s;){var u=ar(i[r],o[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function An(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Be(t,s);n(a,s)&&Fn(o,nr(s,t),a)}return o}function Mn(t,e,n,r){var i=r?_:g,o=-1,s=e.length,a=t;for(t===e&&(e=lr(e)),n&&(a=l(t,C(n)));++o<s;)for(var u=0,c=e[o],f=n?n(c):c;(u=i(a,f,u,r))>-1;)a!==t&&zo.call(a,u,1),zo.call(t,u,1);return t}function On(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Kr(i)?zo.call(t,i,1):Kn(t,i)}}return t}function Dn(t,e){return t+Xo(as()*(e-t+1))}function Nn(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Xo(e/2))&&(t+=t)}while(e);return n}function Ln(t,e){return zs(ei(t,e,oo),t+"")}function jn(t){return ge(to(t))}function Pn(t,e){var n=to(t);return si(n,Ce(e,0,n.length))}function Fn(t,e,n,r){if(!ji(t))return t;for(var i=-1,o=(e=nr(e,t)).length,s=o-1,a=t;null!=a&&++i<o;){var u=ai(e[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var l=a[u];(c=r?r(l,u,a):B)===B&&(c=ji(l)?l:Kr(e[i+1])?[]:{})}ke(a,u,c),a=a[u]}return t}function Un(t){return si(to(t))}function Wn(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=po(i);++r<i;)o[r]=t[r+e];return o}function Bn(t,e){var n;return Is(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function zn(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=et){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!Bi(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return $n(t,e,oo,n)}function $n(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!=e,a=null===e,u=Bi(e),c=e===B;i<o;){var l=Xo((i+o)/2),f=n(t[l]),d=f!==B,h=null===f,p=f==f,m=Bi(f);if(s)var y=r||p;else y=c?p&&(r||d):a?p&&d&&(r||!h):u?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=e:f<e);y?i=l+1:o=l}return is(o,tt)}function Hn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Ri(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function qn(t){return"number"==typeof t?t:Bi(t)?Q:+t}function Vn(t){if("string"==typeof t)return t;if(Ta(t))return l(t,Vn)+"";if(Bi(t))return Es?Es.call(t):"";var e=t+"";return"0"==e&&1/t==-J?"-0":e}function Yn(t,e,n){var r=-1,i=u,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=c;else if(o>=200){var f=e?null:Ns(t);if(f)return P(f);s=!1,i=R,l=new pe}else l=e?[]:a;t:for(;++r<o;){var d=t[r],h=e?e(d):d;if(d=n||0!==d?d:0,s&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue t;e&&l.push(h),a.push(d)}else i(l,h,n)||(l!==a&&l.push(h),a.push(d))}return a}function Kn(t,e){return null==(t=ni(t,e=nr(e,t)))||delete t[ai(pi(e))]}function Gn(t,e,n,r){return Fn(t,e,n(Be(t,e)),r)}function Jn(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Wn(t,r?0:o,r?o+1:i):Wn(t,r?o+1:0,r?i:o)}function Xn(t,e){var n=t;return n instanceof le&&(n=n.value()),d(e,(function(t,e){return e.func.apply(e.thisArg,f([t],e.args))}),n)}function Qn(t,e,n){var r=t.length;if(r<2)return r?Yn(t[0]):[];for(var i=-1,o=po(r);++i<r;)for(var s=t[i],a=-1;++a<r;)a!=i&&(o[i]=Me(o[i]||s,t[a],e,n));return Yn(Le(o,1),e,n)}function Zn(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;)n(s,t[r],r<o?e[r]:B);return s}function tr(t){return Mi(t)?t:[]}function er(t){return"function"==typeof t?t:oo}function nr(t,e){return Ta(t)?t:Jr(t,e)?[t]:$s(Ki(t))}function rr(t,e,n){var r=t.length;return n=n===B?r:n,!e&&n>=r?t:Wn(t,e,n)}function ir(t,e){if(e)return t.slice();var n=t.length,r=Fo?Fo(n):new t.constructor(n);return t.copy(r),r}function or(t){var e=new t.constructor(t.byteLength);return new Po(e).set(new Po(t)),e}function sr(t,e){return new t.constructor(e?or(t.buffer):t.buffer,t.byteOffset,t.length)}function ar(t,e){if(t!==e){var n=t!==B,r=null===t,i=t==t,o=Bi(t),s=e!==B,a=null===e,u=e==e,c=Bi(e);if(!a&&!c&&!o&&t>e||o&&s&&u&&!a&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&t<e||c&&n&&i&&!r&&!o||a&&n&&i||!s&&i||!u)return-1}return 0}function ur(t,e,n,r){for(var i=-1,o=t.length,s=n.length,a=-1,u=e.length,c=rs(o-s,0),l=po(u+c),f=!r;++a<u;)l[a]=e[a];for(;++i<s;)(f||i<o)&&(l[n[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function cr(t,e,n,r){for(var i=-1,o=t.length,s=-1,a=n.length,u=-1,c=e.length,l=rs(o-a,0),f=po(l+c),d=!r;++i<l;)f[i]=t[i];for(var h=i;++u<c;)f[h+u]=e[u];for(;++s<a;)(d||i<o)&&(f[h+n[s]]=t[i++]);return f}function lr(t,e){var n=-1,r=t.length;for(e||(e=po(r));++n<r;)e[n]=t[n];return e}function fr(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],u=r?r(n[a],t[a],a,n,t):B;u===B&&(u=t[a]),i?xe(n,a,u):ke(n,a,u)}return n}function dr(t,e){return function(n,i){var o=Ta(n)?r:Se,s=e?e():{};return o(n,t,Br(i,2),s)}}function hr(t){return Ln((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:B,s=i>2?n[2]:B;for(o=t.length>3&&"function"==typeof o?(i--,o):B,s&&Gr(n[0],n[1],s)&&(o=i<3?B:o,i=1),e=vo(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e}))}function pr(t,e){return function(n,r){if(null==n)return n;if(!Ai(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=vo(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function mr(t){return function(e,n,r){for(var i=-1,o=vo(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}function yr(t){return function(e){var n=D(e=Ki(e))?U(e):B,r=n?n[0]:e.charAt(0),i=n?rr(n,1).join(""):e.slice(1);return r[t]()+i}}function gr(t){return function(e){return d(ro(no(e).replace(Ue,"")),t,"")}}function _r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=xs(t.prototype),r=t.apply(n,e);return ji(r)?r:n}}function vr(t){return function(e,n,r){var i=vo(e);if(!Ai(e)){var o=Br(n,3);e=Xi(e),n=function(t){return o(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[o?e[s]:s]:B}}function br(t){return jr((function(e){var n=e.length,r=n,i=ce.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new wo(z);if(i&&!s&&"wrapper"==Ur(o))var s=new ce([],!0)}for(r=s?r:n;++r<n;){var a=Ur(o=e[r]),u="wrapper"==a?Ls(o):B;s=u&&Xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Ur(u[0])].apply(s,u[3]):1==o.length&&Xr(o)?s[a]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ta(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function kr(t,e,n,r,i,o,s,a,u,c){var l=e&K,f=1&e,d=2&e,h=24&e,p=512&e,m=d?B:_r(t);return function y(){for(var g=arguments.length,_=po(g),v=g;v--;)_[v]=arguments[v];if(h)var b=Wr(y),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(r&&(_=ur(_,r,i,h)),o&&(_=cr(_,o,s,h)),g-=k,h&&g<c)return Tr(t,e,kr,y.placeholder,n,_,j(_,b),a,u,c-g);var w=f?n:this,S=d?w[t]:t;return g=_.length,a?_=function(t,e){for(var n=t.length,r=is(e.length,n),i=lr(t);r--;){var o=e[r];t[r]=Kr(o,n)?i[o]:B}return t}(_,a):p&&g>1&&_.reverse(),l&&u<g&&(_.length=u),this&&this!==tn&&this instanceof y&&(S=m||_r(S)),S.apply(w,_)}}function wr(t,e){return function(n,r){return function(t,e,n,r){return je(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Sr(t,e){return function(n,r){var i;if(n===B&&r===B)return e;if(n!==B&&(i=n),r!==B){if(i===B)return r;"string"==typeof n||"string"==typeof r?(n=Vn(n),r=Vn(r)):(n=qn(n),r=qn(r)),i=t(n,r)}return i}}function Er(t){return jr((function(e){return e=l(e,C(Br())),Ln((function(r){var i=this;return t(e,(function(t){return n(t,i,r)}))}))}))}function xr(t,e){var n=(e=e===B?" ":Vn(e)).length;if(n<2)return n?Nn(e,t):e;var r=Nn(e,Jo(t/F(e)));return D(e)?rr(U(r),0,t).join(""):r.slice(0,t)}function Ir(t){return function(e,n,r){return r&&"number"!=typeof r&&Gr(e,n,r)&&(n=r=B),e=$i(e),n===B?(n=e,e=0):n=$i(n),function(t,e,n,r){for(var i=-1,o=rs(Jo((e-t)/(n||1)),0),s=po(o);o--;)s[r?o:++i]=t,t+=n;return s}(e,n,r=r===B?e<n?1:-1:$i(r),t)}}function Cr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vi(e),n=Vi(n)),t(e,n)}}function Tr(t,e,n,r,i,o,s,a,u,c){var l=8&e;e|=l?V:Y,4&(e&=~(l?Y:V))||(e&=-4);var f=[t,e,i,l?o:B,l?s:B,l?B:o,l?B:s,a,u,c],d=n.apply(B,f);return Xr(t)&&Ws(d,f),d.placeholder=r,ii(d,t,e)}function Rr(t){var e=_o[t];return function(t,n){if(t=Vi(t),(n=null==n?0:is(Hi(n),292))&&ts(t)){var r=(Ki(t)+"e").split("e");return+((r=(Ki(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}function Ar(t){return function(e){var n=Fs(e);return n==lt?N(e):n==mt?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return l(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Mr(t,e,r,i,o,s,a,u){var c=2&e;if(!c&&"function"!=typeof t)throw new wo(z);var l=i?i.length:0;if(l||(e&=-97,i=o=B),a=a===B?a:rs(Hi(a),0),u=u===B?u:Hi(u),l-=o?o.length:0,e&Y){var f=i,d=o;i=o=B}var h=c?B:Ls(t),p=[t,e,r,i,o,f,d,s,a,u];if(h&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==K&&8==n||r==K&&n==G&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var a=e[3];if(a){var u=t[3];t[3]=u?ur(u,a,e[4]):a,t[4]=u?j(t[3],H):e[4]}(a=e[5])&&(u=t[5],t[5]=u?cr(u,a,e[6]):a,t[6]=u?j(t[5],H):e[6]),(a=e[7])&&(t[7]=a),r&K&&(t[8]=null==t[8]?e[8]:is(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(p,h),t=p[0],e=p[1],r=p[2],i=p[3],o=p[4],!(u=p[9]=p[9]===B?c?0:t.length:rs(p[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)m=8==e||e==q?function(t,e,r){var i=_r(t);return function o(){for(var s=arguments.length,a=po(s),u=s,c=Wr(o);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:j(a,c);return(s-=l.length)<r?Tr(t,e,kr,o.placeholder,B,a,l,B,B,r-s):n(this&&this!==tn&&this instanceof o?i:t,this,a)}}(t,e,u):e!=V&&33!=e||o.length?kr.apply(B,p):function(t,e,r,i){var o=1&e,s=_r(t);return function e(){for(var a=-1,u=arguments.length,c=-1,l=i.length,f=po(l+u),d=this&&this!==tn&&this instanceof e?s:t;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++a];return n(d,o?r:this,f)}}(t,e,r,i);else var m=function(t,e,n){var r=1&e,i=_r(t);return function e(){return(this&&this!==tn&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,r);return ii((h?As:Ws)(m,p),t,e)}function Or(t,e,n,r){return t===B||Ri(t,xo[n])&&!To.call(r,n)?e:t}function Dr(t,e,n,r,i,o){return ji(t)&&ji(e)&&(o.set(e,t),Cn(t,e,B,Dr,o),o.delete(e)),t}function Nr(t){return Ui(t)?B:t}function Lr(t,e,n,r,i,o){var s=1&n,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,h=2&n?new pe:B;for(o.set(t,e),o.set(e,t);++f<a;){var m=t[f],y=e[f];if(r)var g=s?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(g!==B){if(g)continue;d=!1;break}if(h){if(!p(e,(function(t,e){if(!R(h,e)&&(m===t||i(m,t,n,r,o)))return h.push(e)}))){d=!1;break}}else if(m!==y&&!i(m,y,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function jr(t){return zs(ei(t,B,di),t+"")}function Pr(t){return $e(t,Xi,js)}function Fr(t){return $e(t,Qi,Ps)}function Ur(t){for(var e=t.name+"",n=ys[e],r=To.call(ys,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Wr(t){return(To.call(w,"placeholder")?w:t).placeholder}function Br(){var t=w.iteratee||so;return t=t===so?bn:t,arguments.length?t(arguments[0],arguments[1]):t}function zr(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function $r(t){for(var e=Xi(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Zr(i)]}return e}function Hr(t,e){var n=function(t,e){return null==t?B:t[e]}(t,e);return vn(n)?n:B}function qr(t,e,n){for(var r=-1,i=(e=nr(e,t)).length,o=!1;++r<i;){var s=ai(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Li(i)&&Kr(s,i)&&(Ta(t)||Ca(t))}function Vr(t){return"function"!=typeof t.constructor||Qr(t)?{}:xs(Uo(t))}function Yr(t){return Ta(t)||Ca(t)||!!($o&&t&&t[$o])}function Kr(t,e){var n=typeof t;return!!(e=e??X)&&("number"==n||"symbol"!=n&&oe.test(t))&&t>-1&&t%1==0&&t<e}function Gr(t,e,n){if(!ji(n))return!1;var r=typeof e;return!!("number"==r?Ai(n)&&Kr(e,n.length):"string"==r&&e in n)&&Ri(n[e],t)}function Jr(t,e){if(Ta(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Bi(t))||Bt.test(t)||!Wt.test(t)||null!=e&&t in vo(e)}function Xr(t){var e=Ur(t),n=w[e];if("function"!=typeof n||!(e in le.prototype))return!1;if(t===n)return!0;var r=Ls(n);return!!r&&t===r[0]}function Qr(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xo)}function Zr(t){return t==t&&!ji(t)}function ti(t,e){return function(n){return null!=n&&n[t]===e&&(e!==B||t in vo(n))}}function ei(t,e,r){return e=rs(e===B?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=rs(i.length-e,0),a=po(s);++o<s;)a[o]=i[e+o];o=-1;for(var u=po(e+1);++o<e;)u[o]=i[o];return u[e]=r(a),n(t,this,u)}}function ni(t,e){return e.length<2?t:Be(t,Wn(e,0,-1))}function ri(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function ii(t,e,n){var r=e+"";return zs(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Yt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return i(nt,(function(n){var r="_."+n[0];e&n[1]&&!u(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Kt);return e?e[1].split(Gt):[]}(r),n)))}function oi(t){var e=0,n=0;return function(){var r=os(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(B,arguments)}}function si(t,e){var n=-1,r=t.length,i=r-1;for(e=e===B?r:e;++n<e;){var o=Dn(n,i),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}function ai(t){if("string"==typeof t||Bi(t))return t;var e=t+"";return"0"==e&&1/t==-J?"-0":e}function ui(t){if(null!=t){try{return Co.call(t)}catch{}try{return t+""}catch{}}return""}function ci(t){if(t instanceof le)return t.clone();var e=new ce(t.__wrapped__,t.__chain__);return e.__actions__=lr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function li(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Hi(n);return i<0&&(i=rs(r+i,0)),y(t,Br(e,3),i)}function fi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==B&&(i=Hi(n),i=n<0?rs(r+i,0):is(i,r-1)),y(t,Br(e,3),i,!0)}function di(t){return null!=t&&t.length?Le(t,1):[]}function hi(t){return t&&t.length?t[0]:B}function pi(t){var e=null==t?0:t.length;return e?t[e-1]:B}function mi(t,e){return t&&t.length&&e&&e.length?Mn(t,e):t}function yi(t){return null==t?t:us.call(t)}function gi(t){if(!t||!t.length)return[];var e=0;return t=a(t,(function(t){if(Mi(t))return e=rs(t.length,e),!0})),x(e,(function(e){return l(t,k(e))}))}function _i(t,e){if(!t||!t.length)return[];var r=gi(t);return null==e?r:l(r,(function(t){return n(e,B,t)}))}function vi(t){var e=w(t);return e.__chain__=!0,e}function bi(t,e){return e(t)}function ki(t,e){return(Ta(t)?i:Is)(t,Br(e,3))}function wi(t,e){return(Ta(t)?o:Cs)(t,Br(e,3))}function Si(t,e){return(Ta(t)?l:En)(t,Br(e,3))}function Ei(t,e,n){return e=n?B:e,e=t&&null==e?t.length:e,Mr(t,K,B,B,B,B,e)}function xi(t,e){var n;if("function"!=typeof e)throw new wo(z);return t=Hi(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=B),n}}function Ii(t,e,n){function r(e){var n=u,r=c;return u=c=B,p=e,f=t.apply(r,n)}function i(t){var n=t-h;return h===B||n>=e||n<0||y&&t-p>=l}function o(){var t=ya();return i(t)?s(t):(d=Bs(o,function(t){var n=e-(t-h);return y?is(n,l-(t-p)):n}(t)),B)}function s(t){return d=B,g&&u?r(t):(u=c=B,f)}function a(){var t=ya(),n=i(t);if(u=arguments,c=this,h=t,n){if(d===B)return function(t){return p=t,d=Bs(o,e),m?r(t):f}(h);if(y)return Ds(d),d=Bs(o,e),r(h)}return d===B&&(d=Bs(o,e)),f}var u,c,l,f,d,h,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new wo(z);return e=Vi(e)||0,ji(n)&&(m=!!n.leading,l=(y="maxWait"in n)?rs(Vi(n.maxWait)||0,e):l,g="trailing"in n?!!n.trailing:g),a.cancel=function(){d!==B&&Ds(d),p=0,u=h=c=d=B},a.flush=function(){return d===B?f:s(ya())},a}function Ci(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new wo(z);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ci.Cache||he),n}function Ti(t){if("function"!=typeof t)throw new wo(z);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ri(t,e){return t===e||t!=t&&e!=e}function Ai(t){return null!=t&&Li(t.length)&&!Di(t)}function Mi(t){return Pi(t)&&Ai(t)}function Oi(t){if(!Pi(t))return!1;var e=Ge(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ui(t)}function Di(t){if(!ji(t))return!1;var e=Ge(t);return e==ut||e==ct||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ni(t){return"number"==typeof t&&t==Hi(t)}function Li(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X}function ji(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pi(t){return null!=t&&"object"==typeof t}function Fi(t){return"number"==typeof t||Pi(t)&&Ge(t)==ft}function Ui(t){if(!Pi(t)||Ge(t)!=dt)return!1;var e=Uo(t);if(null===e)return!0;var n=To.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Co.call(n)==Oo}function Wi(t){return"string"==typeof t||!Ta(t)&&Pi(t)&&Ge(t)==yt}function Bi(t){return"symbol"==typeof t||Pi(t)&&Ge(t)==gt}function zi(t){if(!t)return[];if(Ai(t))return Wi(t)?U(t):lr(t);if(Ho&&t[Ho])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ho]());var e=Fs(t);return(e==lt?N:e==mt?P:to)(t)}function $i(t){return t?(t=Vi(t))===J||t===-J?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Hi(t){var e=$i(t),n=e%1;return e==e?n?e-n:e:0}function qi(t){return t?Ce(Hi(t),0,Z):0}function Vi(t){if("number"==typeof t)return t;if(Bi(t))return Q;if(ji(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ji(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||ie.test(t)?Xe(t.slice(2),n?2:8):ee.test(t)?Q:+t}function Yi(t){return fr(t,Qi(t))}function Ki(t){return null==t?"":Vn(t)}function Gi(t,e,n){var r=null==t?B:Be(t,e);return r===B?n:r}function Ji(t,e){return null!=t&&qr(t,e,en)}function Xi(t){return Ai(t)?ye(t):kn(t)}function Qi(t){return Ai(t)?ye(t,!0):wn(t)}function Zi(t,e){if(null==t)return{};var n=l(Fr(t),(function(t){return[t]}));return e=Br(e),An(t,n,(function(t,n){return e(t,n[0])}))}function to(t){return null==t?[]:T(t,Xi(t))}function eo(t){return au(Ki(t).toLowerCase())}function no(t){return(t=Ki(t))&&t.replace(se,pn).replace(We,"")}function ro(t,e,n){return t=Ki(t),(e=n?B:e)===B?function(t){return He.test(t)}(t)?function(t){return t.match(ze)||[]}(t):function(t){return t.match(Jt)||[]}(t):t.match(e)||[]}function io(t){return function(){return t}}function oo(t){return t}function so(t){return bn("function"==typeof t?t:Te(t,1))}function ao(t,e,n){var r=Xi(e),o=Fe(e,r);null!=n||ji(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Fe(e,Xi(e)));var s=!(ji(n)&&"chain"in n&&!n.chain),a=Di(t);return i(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=lr(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,f([this.value()],arguments))})})),t}function uo(){}function co(t){return Jr(t)?k(ai(t)):function(t){return function(e){return Be(e,t)}}(t)}function lo(){return[]}function fo(){return!1}var ho,po=(e=null==e?tn:gn.defaults(tn.Object(),e,gn.pick(tn,qe))).Array,mo=e.Date,yo=e.Error,go=e.Function,_o=e.Math,vo=e.Object,bo=e.RegExp,ko=e.String,wo=e.TypeError,So=po.prototype,Eo=go.prototype,xo=vo.prototype,Io=e["__core-js_shared__"],Co=Eo.toString,To=xo.hasOwnProperty,Ro=0,Ao=(ho=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||""))?"Symbol(src)_1."+ho:"",Mo=xo.toString,Oo=Co.call(vo),Do=tn._,No=bo("^"+Co.call(To).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lo=rn?e.Buffer:B,jo=e.Symbol,Po=e.Uint8Array,Fo=Lo?Lo.allocUnsafe:B,Uo=L(vo.getPrototypeOf,vo),Wo=vo.create,Bo=xo.propertyIsEnumerable,zo=So.splice,$o=jo?jo.isConcatSpreadable:B,Ho=jo?jo.iterator:B,qo=jo?jo.toStringTag:B,Vo=function(){try{var t=Hr(vo,"defineProperty");return t({},"",{}),t}catch{}}(),Yo=e.clearTimeout!==tn.clearTimeout&&e.clearTimeout,Ko=mo&&mo.now!==tn.Date.now&&mo.now,Go=e.setTimeout!==tn.setTimeout&&e.setTimeout,Jo=_o.ceil,Xo=_o.floor,Qo=vo.getOwnPropertySymbols,Zo=Lo?Lo.isBuffer:B,ts=e.isFinite,es=So.join,ns=L(vo.keys,vo),rs=_o.max,is=_o.min,os=mo.now,ss=e.parseInt,as=_o.random,us=So.reverse,cs=Hr(e,"DataView"),ls=Hr(e,"Map"),fs=Hr(e,"Promise"),ds=Hr(e,"Set"),hs=Hr(e,"WeakMap"),ps=Hr(vo,"create"),ms=hs&&new hs,ys={},gs=ui(cs),_s=ui(ls),vs=ui(fs),bs=ui(ds),ks=ui(hs),ws=jo?jo.prototype:B,Ss=ws?ws.valueOf:B,Es=ws?ws.toString:B,xs=function(){function t(){}return function(e){if(!ji(e))return{};if(Wo)return Wo(e);t.prototype=e;var n=new t;return t.prototype=B,n}}();w.templateSettings={escape:Pt,evaluate:Ft,interpolate:Ut,variable:"",imports:{_:w}},w.prototype=Vt.prototype,w.prototype.constructor=w,ce.prototype=xs(Vt.prototype),ce.prototype.constructor=ce,le.prototype=xs(Vt.prototype),le.prototype.constructor=le,fe.prototype.clear=function(){this.__data__=ps?ps(null):{},this.size=0},fe.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe.prototype.get=function(t){var e=this.__data__;if(ps){var n=e[t];return n===$?B:n}return To.call(e,t)?e[t]:B},fe.prototype.has=function(t){var e=this.__data__;return ps?e[t]!==B:To.call(e,t)},fe.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ps&&e===B?$:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=we(e,t);return!(n<0||(n==e.length-1?e.pop():zo.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=we(e,t);return n<0?B:e[n][1]},de.prototype.has=function(t){return we(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,r=we(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ls||de),string:new fe}},he.prototype.delete=function(t){var e=zr(this,t).delete(t);return this.size-=e?1:0,e},he.prototype.get=function(t){return zr(this,t).get(t)},he.prototype.has=function(t){return zr(this,t).has(t)},he.prototype.set=function(t,e){var n=zr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},pe.prototype.add=pe.prototype.push=function(t){return this.__data__.set(t,$),this},pe.prototype.has=function(t){return this.__data__.has(t)},me.prototype.clear=function(){this.__data__=new de,this.size=0},me.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},me.prototype.get=function(t){return this.__data__.get(t)},me.prototype.has=function(t){return this.__data__.has(t)},me.prototype.set=function(t,e){var n=this.__data__;if(n instanceof de){var r=n.__data__;if(!ls||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(t,e),this.size=n.size,this};var Is=pr(je),Cs=pr(Pe,!0),Ts=mr(),Rs=mr(!0),As=ms?function(t,e){return ms.set(t,e),t}:oo,Ms=Vo?function(t,e){return Vo(t,"toString",{configurable:!0,enumerable:!1,value:io(e),writable:!0})}:oo,Os=Ln,Ds=Yo||function(t){return tn.clearTimeout(t)},Ns=ds&&1/P(new ds([,-0]))[1]==J?function(t){return new ds(t)}:uo,Ls=ms?function(t){return ms.get(t)}:uo,js=Qo?function(t){return null==t?[]:(t=vo(t),a(Qo(t),(function(e){return Bo.call(t,e)})))}:lo,Ps=Qo?function(t){for(var e=[];t;)f(e,js(t)),t=Uo(t);return e}:lo,Fs=Ge;(cs&&Fs(new cs(new ArrayBuffer(1)))!=bt||ls&&Fs(new ls)!=lt||fs&&Fs(fs.resolve())!=ht||ds&&Fs(new ds)!=mt||hs&&Fs(new hs)!=_t)&&(Fs=function(t){var e=Ge(t),n=e==dt?t.constructor:B,r=n?ui(n):"";if(r)switch(r){case gs:return bt;case _s:return lt;case vs:return ht;case bs:return mt;case ks:return _t}return e});var Us=Io?Di:fo,Ws=oi(As),Bs=Go||function(t,e){return tn.setTimeout(t,e)},zs=oi(Ms),$s=function(t){var e=Ci(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zt,(function(t,n,r,i){e.push(r?i.replace(Qt,"$1"):n||t)})),e})),Hs=Ln((function(t,e){return Mi(t)?Me(t,Le(e,1,Mi,!0)):[]})),qs=Ln((function(t,e){var n=pi(e);return Mi(n)&&(n=B),Mi(t)?Me(t,Le(e,1,Mi,!0),Br(n,2)):[]})),Vs=Ln((function(t,e){var n=pi(e);return Mi(n)&&(n=B),Mi(t)?Me(t,Le(e,1,Mi,!0),B,n):[]})),Ys=Ln((function(t){var e=l(t,tr);return e.length&&e[0]===t[0]?nn(e):[]})),Ks=Ln((function(t){var e=pi(t),n=l(t,tr);return e===pi(n)?e=B:n.pop(),n.length&&n[0]===t[0]?nn(n,Br(e,2)):[]})),Gs=Ln((function(t){var e=pi(t),n=l(t,tr);return(e="function"==typeof e?e:B)&&n.pop(),n.length&&n[0]===t[0]?nn(n,B,e):[]})),Js=Ln(mi),Xs=jr((function(t,e){var n=null==t?0:t.length,r=Ie(t,e);return On(t,l(e,(function(t){return Kr(t,n)?+t:t})).sort(ar)),r})),Qs=Ln((function(t){return Yn(Le(t,1,Mi,!0))})),Zs=Ln((function(t){var e=pi(t);return Mi(e)&&(e=B),Yn(Le(t,1,Mi,!0),Br(e,2))})),ta=Ln((function(t){var e=pi(t);return e="function"==typeof e?e:B,Yn(Le(t,1,Mi,!0),B,e)})),ea=Ln((function(t,e){return Mi(t)?Me(t,e):[]})),na=Ln((function(t){return Qn(a(t,Mi))})),ra=Ln((function(t){var e=pi(t);return Mi(e)&&(e=B),Qn(a(t,Mi),Br(e,2))})),ia=Ln((function(t){var e=pi(t);return e="function"==typeof e?e:B,Qn(a(t,Mi),B,e)})),oa=Ln(gi),sa=Ln((function(t){var e=t.length,n=e>1?t[e-1]:B;return n="function"==typeof n?(t.pop(),n):B,_i(t,n)})),aa=jr((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Ie(e,t)};return!(e>1||this.__actions__.length)&&r instanceof le&&Kr(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:bi,args:[i],thisArg:B}),new ce(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(B),t}))):this.thru(i)})),ua=dr((function(t,e,n){To.call(t,n)?++t[n]:xe(t,n,1)})),ca=vr(li),la=vr(fi),fa=dr((function(t,e,n){To.call(t,n)?t[n].push(e):xe(t,n,[e])})),da=Ln((function(t,e,r){var i=-1,o="function"==typeof e,s=Ai(t)?po(t.length):[];return Is(t,(function(t){s[++i]=o?n(e,t,r):on(t,e,r)})),s})),ha=dr((function(t,e,n){xe(t,n,e)})),pa=dr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ma=Ln((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gr(t,e[0],e[1])?e=[]:n>2&&Gr(e[0],e[1],e[2])&&(e=[e[0]]),Rn(t,Le(e,1),[])})),ya=Ko||function(){return tn.Date.now()},ga=Ln((function(t,e,n){var r=1;if(n.length){var i=j(n,Wr(ga));r|=V}return Mr(t,r,e,n,i)})),_a=Ln((function(t,e,n){var r=3;if(n.length){var i=j(n,Wr(_a));r|=V}return Mr(e,r,t,n,i)})),va=Ln((function(t,e){return Ae(t,1,e)})),ba=Ln((function(t,e,n){return Ae(t,Vi(e)||0,n)}));Ci.Cache=he;var ka=Os((function(t,e){var r=(e=1==e.length&&Ta(e[0])?l(e[0],C(Br())):l(Le(e,1),C(Br()))).length;return Ln((function(i){for(var o=-1,s=is(i.length,r);++o<s;)i[o]=e[o].call(this,i[o]);return n(t,this,i)}))})),wa=Ln((function(t,e){return Mr(t,V,B,e,j(e,Wr(wa)))})),Sa=Ln((function(t,e){return Mr(t,Y,B,e,j(e,Wr(Sa)))})),Ea=jr((function(t,e){return Mr(t,G,B,B,B,e)})),xa=Cr(Qe),Ia=Cr((function(t,e){return t>=e})),Ca=sn(function(){return arguments}())?sn:function(t){return Pi(t)&&To.call(t,"callee")&&!Bo.call(t,"callee")},Ta=po.isArray,Ra=an?C(an):function(t){return Pi(t)&&Ge(t)==vt},Aa=Zo||fo,Ma=un?C(un):function(t){return Pi(t)&&Ge(t)==st},Oa=cn?C(cn):function(t){return Pi(t)&&Fs(t)==lt},Da=ln?C(ln):function(t){return Pi(t)&&Ge(t)==pt},Na=fn?C(fn):function(t){return Pi(t)&&Fs(t)==mt},La=dn?C(dn):function(t){return Pi(t)&&Li(t.length)&&!!Ye[Ge(t)]},ja=Cr(Sn),Pa=Cr((function(t,e){return t<=e})),Fa=hr((function(t,e){if(Qr(e)||Ai(e))return fr(e,Xi(e),t),B;for(var n in e)To.call(e,n)&&ke(t,n,e[n])})),Ua=hr((function(t,e){fr(e,Qi(e),t)})),Wa=hr((function(t,e,n,r){fr(e,Qi(e),t,r)})),Ba=hr((function(t,e,n,r){fr(e,Xi(e),t,r)})),za=jr(Ie),$a=Ln((function(t,e){t=vo(t);var n=-1,r=e.length,i=r>2?e[2]:B;for(i&&Gr(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=Qi(o),a=-1,u=s.length;++a<u;){var c=s[a],l=t[c];(l===B||Ri(l,xo[c])&&!To.call(t,c))&&(t[c]=o[c])}return t})),Ha=Ln((function(t){return t.push(B,Dr),n(Ga,B,t)})),qa=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mo.call(e)),t[e]=n}),io(oo)),Va=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mo.call(e)),To.call(t,e)?t[e].push(n):t[e]=[n]}),Br),Ya=Ln(on),Ka=hr((function(t,e,n){Cn(t,e,n)})),Ga=hr((function(t,e,n,r){Cn(t,e,n,r)})),Ja=jr((function(t,e){var n={};if(null==t)return n;var r=!1;e=l(e,(function(e){return e=nr(e,t),r||(r=e.length>1),e})),fr(t,Fr(t),n),r&&(n=Te(n,7,Nr));for(var i=e.length;i--;)Kn(n,e[i]);return n})),Xa=jr((function(t,e){return null==t?{}:function(t,e){return An(t,e,(function(e,n){return Ji(t,n)}))}(t,e)})),Qa=Ar(Xi),Za=Ar(Qi),tu=gr((function(t,e,n){return e=e.toLowerCase(),t+(n?eo(e):e)})),eu=gr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nu=gr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),ru=yr("toLowerCase"),iu=gr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),ou=gr((function(t,e,n){return t+(n?" ":"")+au(e)})),su=gr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),au=yr("toUpperCase"),uu=Ln((function(t,e){try{return n(t,B,e)}catch(t){return Oi(t)?t:new yo(t)}})),cu=jr((function(t,e){return i(e,(function(e){e=ai(e),xe(t,e,ga(t[e],t))})),t})),lu=br(),fu=br(!0),du=Ln((function(t,e){return function(n){return on(n,t,e)}})),hu=Ln((function(t,e){return function(n){return on(t,n,e)}})),pu=Er(l),mu=Er(s),yu=Er(p),gu=Ir(),_u=Ir(!0),vu=Sr((function(t,e){return t+e}),0),bu=Rr("ceil"),ku=Sr((function(t,e){return t/e}),1),wu=Rr("floor"),Su=Sr((function(t,e){return t*e}),1),Eu=Rr("round"),xu=Sr((function(t,e){return t-e}),0);return w.after=function(t,e){if("function"!=typeof e)throw new wo(z);return t=Hi(t),function(){if(--t<1)return e.apply(this,arguments)}},w.ary=Ei,w.assign=Fa,w.assignIn=Ua,w.assignInWith=Wa,w.assignWith=Ba,w.at=za,w.before=xi,w.bind=ga,w.bindAll=cu,w.bindKey=_a,w.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ta(t)?t:[t]},w.chain=vi,w.chunk=function(t,e,n){e=(n?Gr(t,e,n):e===B)?1:rs(Hi(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,s=po(Jo(r/e));i<r;)s[o++]=Wn(t,i,i+=e);return s},w.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},w.concat=function(){var t=arguments.length;if(!t)return[];for(var e=po(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return f(Ta(n)?lr(n):[n],Le(e,1))},w.cond=function(t){var e=null==t?0:t.length,r=Br();return t=e?l(t,(function(t){if("function"!=typeof t[1])throw new wo(z);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var i=-1;++i<e;){var o=t[i];if(n(o[0],this,r))return n(o[1],this,r)}}))},w.conforms=function(t){return function(t){var e=Xi(t);return function(n){return Re(n,t,e)}}(Te(t,1))},w.constant=io,w.countBy=ua,w.create=function(t,e){var n=xs(t);return null==e?n:Ee(n,e)},w.curry=function t(e,n,r){var i=Mr(e,8,B,B,B,B,B,n=r?B:n);return i.placeholder=t.placeholder,i},w.curryRight=function t(e,n,r){var i=Mr(e,q,B,B,B,B,B,n=r?B:n);return i.placeholder=t.placeholder,i},w.debounce=Ii,w.defaults=$a,w.defaultsDeep=Ha,w.defer=va,w.delay=ba,w.difference=Hs,w.differenceBy=qs,w.differenceWith=Vs,w.drop=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=n||e===B?1:Hi(e))<0?0:e,r):[]},w.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,0,(e=r-(e=n||e===B?1:Hi(e)))<0?0:e):[]},w.dropRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0,!0):[]},w.dropWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0):[]},w.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Gr(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=Hi(n))<0&&(n=-n>i?0:i+n),(r=r===B||r>i?i:Hi(r))<0&&(r+=i),r=n>r?0:qi(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},w.filter=function(t,e){return(Ta(t)?a:Ne)(t,Br(e,3))},w.flatMap=function(t,e){return Le(Si(t,e),1)},w.flatMapDeep=function(t,e){return Le(Si(t,e),J)},w.flatMapDepth=function(t,e,n){return n=n===B?1:Hi(n),Le(Si(t,e),n)},w.flatten=di,w.flattenDeep=function(t){return null!=t&&t.length?Le(t,J):[]},w.flattenDepth=function(t,e){return null!=t&&t.length?Le(t,e=e===B?1:Hi(e)):[]},w.flip=function(t){return Mr(t,512)},w.flow=lu,w.flowRight=fu,w.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},w.functions=function(t){return null==t?[]:Fe(t,Xi(t))},w.functionsIn=function(t){return null==t?[]:Fe(t,Qi(t))},w.groupBy=fa,w.initial=function(t){return null!=t&&t.length?Wn(t,0,-1):[]},w.intersection=Ys,w.intersectionBy=Ks,w.intersectionWith=Gs,w.invert=qa,w.invertBy=Va,w.invokeMap=da,w.iteratee=so,w.keyBy=ha,w.keys=Xi,w.keysIn=Qi,w.map=Si,w.mapKeys=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,i){xe(n,e(t,r,i),t)})),n},w.mapValues=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,i){xe(n,r,e(t,r,i))})),n},w.matches=function(t){return xn(Te(t,1))},w.matchesProperty=function(t,e){return In(t,Te(e,1))},w.memoize=Ci,w.merge=Ka,w.mergeWith=Ga,w.method=du,w.methodOf=hu,w.mixin=ao,w.negate=Ti,w.nthArg=function(t){return t=Hi(t),Ln((function(e){return Tn(e,t)}))},w.omit=Ja,w.omitBy=function(t,e){return Zi(t,Ti(Br(e)))},w.once=function(t){return xi(2,t)},w.orderBy=function(t,e,n,r){return null==t?[]:(Ta(e)||(e=null==e?[]:[e]),Ta(n=r?B:n)||(n=null==n?[]:[n]),Rn(t,e,n))},w.over=pu,w.overArgs=ka,w.overEvery=mu,w.overSome=yu,w.partial=wa,w.partialRight=Sa,w.partition=pa,w.pick=Xa,w.pickBy=Zi,w.property=co,w.propertyOf=function(t){return function(e){return null==t?B:Be(t,e)}},w.pull=Js,w.pullAll=mi,w.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,Br(n,2)):t},w.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,B,n):t},w.pullAt=Xs,w.range=gu,w.rangeRight=_u,w.rearg=Ea,w.reject=function(t,e){return(Ta(t)?a:Ne)(t,Ti(Br(e,3)))},w.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Br(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return On(t,i),n},w.rest=function(t,e){if("function"!=typeof t)throw new wo(z);return Ln(t,e=e===B?e:Hi(e))},w.reverse=yi,w.sampleSize=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:Hi(e),(Ta(t)?_e:Pn)(t,e)},w.set=function(t,e,n){return null==t?t:Fn(t,e,n)},w.setWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Fn(t,e,n,r)},w.shuffle=function(t){return(Ta(t)?ve:Un)(t)},w.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Gr(t,e,n)?(e=0,n=r):(e=null==e?0:Hi(e),n=n===B?r:Hi(n)),Wn(t,e,n)):[]},w.sortBy=ma,w.sortedUniq=function(t){return t&&t.length?Hn(t):[]},w.sortedUniqBy=function(t,e){return t&&t.length?Hn(t,Br(e,2)):[]},w.split=function(t,e,n){return n&&"number"!=typeof n&&Gr(t,e,n)&&(e=n=B),(n=n===B?Z:n>>>0)?(t=Ki(t))&&("string"==typeof e||null!=e&&!Da(e))&&!(e=Vn(e))&&D(t)?rr(U(t),0,n):t.split(e,n):[]},w.spread=function(t,e){if("function"!=typeof t)throw new wo(z);return e=null==e?0:rs(Hi(e),0),Ln((function(r){var i=r[e],o=rr(r,0,e);return i&&f(o,i),n(t,this,o)}))},w.tail=function(t){var e=null==t?0:t.length;return e?Wn(t,1,e):[]},w.take=function(t,e,n){return t&&t.length?Wn(t,0,(e=n||e===B?1:Hi(e))<0?0:e):[]},w.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=r-(e=n||e===B?1:Hi(e)))<0?0:e,r):[]},w.takeRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!1,!0):[]},w.takeWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3)):[]},w.tap=function(t,e){return e(t),t},w.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new wo(z);return ji(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ii(t,e,{leading:r,maxWait:e,trailing:i})},w.thru=bi,w.toArray=zi,w.toPairs=Qa,w.toPairsIn=Za,w.toPath=function(t){return Ta(t)?l(t,ai):Bi(t)?[t]:lr($s(Ki(t)))},w.toPlainObject=Yi,w.transform=function(t,e,n){var r=Ta(t),o=r||Aa(t)||La(t);if(e=Br(e,4),null==n){var s=t&&t.constructor;n=o?r?new s:[]:ji(t)&&Di(s)?xs(Uo(t)):{}}return(o?i:je)(t,(function(t,r,i){return e(n,t,r,i)})),n},w.unary=function(t){return Ei(t,1)},w.union=Qs,w.unionBy=Zs,w.unionWith=ta,w.uniq=function(t){return t&&t.length?Yn(t):[]},w.uniqBy=function(t,e){return t&&t.length?Yn(t,Br(e,2)):[]},w.uniqWith=function(t,e){return e="function"==typeof e?e:B,t&&t.length?Yn(t,B,e):[]},w.unset=function(t,e){return null==t||Kn(t,e)},w.unzip=gi,w.unzipWith=_i,w.update=function(t,e,n){return null==t?t:Gn(t,e,er(n))},w.updateWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Gn(t,e,er(n),r)},w.values=to,w.valuesIn=function(t){return null==t?[]:T(t,Qi(t))},w.without=ea,w.words=ro,w.wrap=function(t,e){return wa(er(e),t)},w.xor=na,w.xorBy=ra,w.xorWith=ia,w.zip=oa,w.zipObject=function(t,e){return Zn(t||[],e||[],ke)},w.zipObjectDeep=function(t,e){return Zn(t||[],e||[],Fn)},w.zipWith=sa,w.entries=Qa,w.entriesIn=Za,w.extend=Ua,w.extendWith=Wa,ao(w,w),w.add=vu,w.attempt=uu,w.camelCase=tu,w.capitalize=eo,w.ceil=bu,w.clamp=function(t,e,n){return n===B&&(n=e,e=B),n!==B&&(n=(n=Vi(n))==n?n:0),e!==B&&(e=(e=Vi(e))==e?e:0),Ce(Vi(t),e,n)},w.clone=function(t){return Te(t,4)},w.cloneDeep=function(t){return Te(t,5)},w.cloneDeepWith=function(t,e){return Te(t,5,e="function"==typeof e?e:B)},w.cloneWith=function(t,e){return Te(t,4,e="function"==typeof e?e:B)},w.conformsTo=function(t,e){return null==e||Re(t,e,Xi(e))},w.deburr=no,w.defaultTo=function(t,e){return null==t||t!=t?e:t},w.divide=ku,w.endsWith=function(t,e,n){t=Ki(t),e=Vn(e);var r=t.length,i=n=n===B?r:Ce(Hi(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},w.eq=Ri,w.escape=function(t){return(t=Ki(t))&&jt.test(t)?t.replace(Nt,mn):t},w.escapeRegExp=function(t){return(t=Ki(t))&&Ht.test(t)?t.replace($t,"\\$&"):t},w.every=function(t,e,n){var r=Ta(t)?s:Oe;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.find=ca,w.findIndex=li,w.findKey=function(t,e){return m(t,Br(e,3),je)},w.findLast=la,w.findLastIndex=fi,w.findLastKey=function(t,e){return m(t,Br(e,3),Pe)},w.floor=wu,w.forEach=ki,w.forEachRight=wi,w.forIn=function(t,e){return null==t?t:Ts(t,Br(e,3),Qi)},w.forInRight=function(t,e){return null==t?t:Rs(t,Br(e,3),Qi)},w.forOwn=function(t,e){return t&&je(t,Br(e,3))},w.forOwnRight=function(t,e){return t&&Pe(t,Br(e,3))},w.get=Gi,w.gt=xa,w.gte=Ia,w.has=function(t,e){return null!=t&&qr(t,e,Ze)},w.hasIn=Ji,w.head=hi,w.identity=oo,w.includes=function(t,e,n,r){t=Ai(t)?t:to(t),n=n&&!r?Hi(n):0;var i=t.length;return n<0&&(n=rs(i+n,0)),Wi(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&g(t,e,n)>-1},w.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Hi(n);return i<0&&(i=rs(r+i,0)),g(t,e,i)},w.inRange=function(t,e,n){return e=$i(e),n===B?(n=e,e=0):n=$i(n),function(t,e,n){return t>=is(e,n)&&t<rs(e,n)}(t=Vi(t),e,n)},w.invoke=Ya,w.isArguments=Ca,w.isArray=Ta,w.isArrayBuffer=Ra,w.isArrayLike=Ai,w.isArrayLikeObject=Mi,w.isBoolean=function(t){return!0===t||!1===t||Pi(t)&&Ge(t)==ot},w.isBuffer=Aa,w.isDate=Ma,w.isElement=function(t){return Pi(t)&&1===t.nodeType&&!Ui(t)},w.isEmpty=function(t){if(null==t)return!0;if(Ai(t)&&(Ta(t)||"string"==typeof t||"function"==typeof t.splice||Aa(t)||La(t)||Ca(t)))return!t.length;var e=Fs(t);if(e==lt||e==mt)return!t.size;if(Qr(t))return!kn(t).length;for(var n in t)if(To.call(t,n))return!1;return!0},w.isEqual=function(t,e){return hn(t,e)},w.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:B)?n(t,e):B;return r===B?hn(t,e,B,n):!!r},w.isError=Oi,w.isFinite=function(t){return"number"==typeof t&&ts(t)},w.isFunction=Di,w.isInteger=Ni,w.isLength=Li,w.isMap=Oa,w.isMatch=function(t,e){return t===e||_n(t,e,$r(e))},w.isMatchWith=function(t,e,n){return n="function"==typeof n?n:B,_n(t,e,$r(e),n)},w.isNaN=function(t){return Fi(t)&&t!=+t},w.isNative=function(t){if(Us(t))throw new yo("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vn(t)},w.isNil=function(t){return null==t},w.isNull=function(t){return null===t},w.isNumber=Fi,w.isObject=ji,w.isObjectLike=Pi,w.isPlainObject=Ui,w.isRegExp=Da,w.isSafeInteger=function(t){return Ni(t)&&t>=-X&&t<=X},w.isSet=Na,w.isString=Wi,w.isSymbol=Bi,w.isTypedArray=La,w.isUndefined=function(t){return t===B},w.isWeakMap=function(t){return Pi(t)&&Fs(t)==_t},w.isWeakSet=function(t){return Pi(t)&&"[object WeakSet]"==Ge(t)},w.join=function(t,e){return null==t?"":es.call(t,e)},w.kebabCase=eu,w.last=pi,w.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==B&&(i=(i=Hi(n))<0?rs(r+i,0):is(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):y(t,v,i,!0)},w.lowerCase=nu,w.lowerFirst=ru,w.lt=ja,w.lte=Pa,w.max=function(t){return t&&t.length?De(t,oo,Qe):B},w.maxBy=function(t,e){return t&&t.length?De(t,Br(e,2),Qe):B},w.mean=function(t){return b(t,oo)},w.meanBy=function(t,e){return b(t,Br(e,2))},w.min=function(t){return t&&t.length?De(t,oo,Sn):B},w.minBy=function(t,e){return t&&t.length?De(t,Br(e,2),Sn):B},w.stubArray=lo,w.stubFalse=fo,w.stubObject=function(){return{}},w.stubString=function(){return""},w.stubTrue=function(){return!0},w.multiply=Su,w.nth=function(t,e){return t&&t.length?Tn(t,Hi(e)):B},w.noConflict=function(){return tn._===this&&(tn._=Do),this},w.noop=uo,w.now=ya,w.pad=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return xr(Xo(i),n)+t+xr(Jo(i),n)},w.padEnd=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;return e&&r<e?t+xr(e-r,n):t},w.padStart=function(t,e,n){t=Ki(t);var r=(e=Hi(e))?F(t):0;return e&&r<e?xr(e-r,n)+t:t},w.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),ss(Ki(t).replace(qt,""),e||0)},w.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Gr(t,e,n)&&(e=n=B),n===B&&("boolean"==typeof e?(n=e,e=B):"boolean"==typeof t&&(n=t,t=B)),t===B&&e===B?(t=0,e=1):(t=$i(t),e===B?(e=t,t=0):e=$i(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=as();return is(t+i*(e-t+Je("1e-"+((i+"").length-1))),e)}return Dn(t,e)},w.reduce=function(t,e,n){var r=Ta(t)?d:S,i=arguments.length<3;return r(t,Br(e,4),n,i,Is)},w.reduceRight=function(t,e,n){var r=Ta(t)?h:S,i=arguments.length<3;return r(t,Br(e,4),n,i,Cs)},w.repeat=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:Hi(e),Nn(Ki(t),e)},w.replace=function(){var t=arguments,e=Ki(t[0]);return t.length<3?e:e.replace(t[1],t[2])},w.result=function(t,e,n){var r=-1,i=(e=nr(e,t)).length;for(i||(i=1,t=B);++r<i;){var o=null==t?B:t[ai(e[r])];o===B&&(r=i,o=n),t=Di(o)?o.call(t):o}return t},w.round=Eu,w.runInContext=t,w.sample=function(t){return(Ta(t)?ge:jn)(t)},w.size=function(t){if(null==t)return 0;if(Ai(t))return Wi(t)?F(t):t.length;var e=Fs(t);return e==lt||e==mt?t.size:kn(t).length},w.snakeCase=iu,w.some=function(t,e,n){var r=Ta(t)?p:Bn;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.sortedIndex=function(t,e){return zn(t,e)},w.sortedIndexBy=function(t,e,n){return $n(t,e,Br(n,2))},w.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=zn(t,e);if(r<n&&Ri(t[r],e))return r}return-1},w.sortedLastIndex=function(t,e){return zn(t,e,!0)},w.sortedLastIndexBy=function(t,e,n){return $n(t,e,Br(n,2),!0)},w.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=zn(t,e,!0)-1;if(Ri(t[n],e))return n}return-1},w.startCase=ou,w.startsWith=function(t,e,n){return t=Ki(t),n=null==n?0:Ce(Hi(n),0,t.length),e=Vn(e),t.slice(n,n+e.length)==e},w.subtract=xu,w.sum=function(t){return t&&t.length?E(t,oo):0},w.sumBy=function(t,e){return t&&t.length?E(t,Br(e,2)):0},w.template=function(t,e,n){var r=w.templateSettings;n&&Gr(t,e,n)&&(e=B),t=Ki(t),e=Wa({},e,r,Or);var i,o,s=Wa({},e.imports,r.imports,Or),a=Xi(s),u=T(s,a),c=0,l=e.interpolate||ae,f="__p += '",d=bo((e.escape||ae).source+"|"+l.source+"|"+(l===Ut?Zt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(To.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";t.replace(d,(function(e,n,r,s,a,u){return r||(r=s),f+=t.slice(c,u).replace(ue,O),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var p=To.call(e,"variable")&&e.variable;if(p){if(Xt.test(p))throw new yo("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(At,""):f).replace(Mt,"$1").replace(Ot,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=uu((function(){return go(a,h+"return "+f).apply(B,u)}));if(m.source=f,Oi(m))throw m;return m},w.times=function(t,e){if((t=Hi(t))<1||t>X)return[];var n=Z,r=is(t,Z);e=Br(e),t-=Z;for(var i=x(r,e);++n<t;)e(n);return i},w.toFinite=$i,w.toInteger=Hi,w.toLength=qi,w.toLower=function(t){return Ki(t).toLowerCase()},w.toNumber=Vi,w.toSafeInteger=function(t){return t?Ce(Hi(t),-X,X):0===t?t:0},w.toString=Ki,w.toUpper=function(t){return Ki(t).toUpperCase()},w.trim=function(t,e,n){if((t=Ki(t))&&(n||e===B))return I(t);if(!t||!(e=Vn(e)))return t;var r=U(t),i=U(e);return rr(r,A(r,i),M(r,i)+1).join("")},w.trimEnd=function(t,e,n){if((t=Ki(t))&&(n||e===B))return t.slice(0,W(t)+1);if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,0,M(r,U(e))+1).join("")},w.trimStart=function(t,e,n){if((t=Ki(t))&&(n||e===B))return t.replace(qt,"");if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,A(r,U(e))).join("")},w.truncate=function(t,e){var n=30,r="...";if(ji(e)){var i="separator"in e?e.separator:i;n="length"in e?Hi(e.length):n,r="omission"in e?Vn(e.omission):r}var o=(t=Ki(t)).length;if(D(t)){var s=U(t);o=s.length}if(n>=o)return t;var a=n-F(r);if(a<1)return r;var u=s?rr(s,0,a).join(""):t.slice(0,a);if(i===B)return u+r;if(s&&(a+=u.length-a),Da(i)){if(t.slice(a).search(i)){var c,l=u;for(i.global||(i=bo(i.source,Ki(te.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,f===B?a:f)}}else if(t.indexOf(Vn(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},w.unescape=function(t){return(t=Ki(t))&&Lt.test(t)?t.replace(Dt,yn):t},w.uniqueId=function(t){var e=++Ro;return Ki(t)+e},w.upperCase=su,w.upperFirst=au,w.each=ki,w.eachRight=wi,w.first=hi,ao(w,function(){var t={};return je(w,(function(e,n){To.call(w.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),w.VERSION="4.17.21",i(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){w[t].placeholder=w})),i(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===B?1:rs(Hi(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=is(n,r.__takeCount__):r.__views__.push({size:is(n,Z),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),i(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;le.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Br(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),i(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),i(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");le.prototype[t]=function(){return this.__filtered__?new le(this):this[n](1)}})),le.prototype.compact=function(){return this.filter(oo)},le.prototype.find=function(t){return this.filter(t).head()},le.prototype.findLast=function(t){return this.reverse().find(t)},le.prototype.invokeMap=Ln((function(t,e){return"function"==typeof t?new le(this):this.map((function(n){return on(n,t,e)}))})),le.prototype.reject=function(t){return this.filter(Ti(Br(t)))},le.prototype.slice=function(t,e){t=Hi(t);var n=this;return n.__filtered__&&(t>0||e<0)?new le(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==B&&(n=(e=Hi(e))<0?n.dropRight(-e):n.take(e-t)),n)},le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},le.prototype.toArray=function(){return this.take(Z)},je(le.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=w[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(w.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof le,u=s[0],c=a||Ta(e),l=function(t){var e=i.apply(w,f([t],s));return r&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(a=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,m=a&&!h;if(!o&&c){e=m?e:new le(this);var y=t.apply(e,s);return y.__actions__.push({func:bi,args:[l],thisArg:B}),new ce(y,d)}return p&&m?t.apply(this,s):(y=this.thru(l),p?r?y.value()[0]:y.value():y)})})),i(["pop","push","shift","sort","splice","unshift"],(function(t){var e=So[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ta(i)?i:[],t)}return this[n]((function(n){return e.apply(Ta(n)?n:[],t)}))}})),je(le.prototype,(function(t,e){var n=w[e];if(n){var r=n.name+"";To.call(ys,r)||(ys[r]=[]),ys[r].push({name:e,func:n})}})),ys[kr(B,2).name]=[{name:"wrapper",func:B}],le.prototype.clone=function(){var t=new le(this.__wrapped__);return t.__actions__=lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=lr(this.__views__),t},le.prototype.reverse=function(){if(this.__filtered__){var t=new le(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},le.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ta(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=is(e,t+s);break;case"takeRight":t=rs(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,h=is(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return Xn(t,this.__actions__);var p=[];t:for(;u--&&d<h;){for(var m=-1,y=t[c+=e];++m<f;){var g=l[m],_=g.iteratee,v=g.type,b=_(y);if(2==v)y=b;else if(!b){if(1==v)continue t;break t}}p[d++]=y}return p},w.prototype.at=aa,w.prototype.chain=function(){return vi(this)},w.prototype.commit=function(){return new ce(this.value(),this.__chain__)},w.prototype.next=function(){this.__values__===B&&(this.__values__=zi(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?B:this.__values__[this.__index__++]}},w.prototype.plant=function(t){for(var e,n=this;n instanceof Vt;){var r=ci(n);r.__index__=0,r.__values__=B,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},w.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof le){var e=t;return this.__actions__.length&&(e=new le(this)),(e=e.reverse()).__actions__.push({func:bi,args:[yi],thisArg:B}),new ce(e,this.__chain__)}return this.thru(yi)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,Ho&&(w.prototype[Ho]=function(){return this}),w}();nn?((nn.exports=gn)._=gn,en._=gn):tn._=gn}.call(_C)),ii.exports;var t,e}var qd,Ja,Gd,Za,Vd,Qa,Yd,Xa={};function vC(){return qd||(qd=1,(t=Xa).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),Xa;var t}function SC(){return Gd||(Gd=1,Ja={}),Ja}function EC(){if(Vd)return Za;Vd=1;var t=vC(),e=SC(),n=Array.prototype.push;function r(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function i(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function o(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=e.apply(void 0,r);return t.apply(void 0,r),i}}}return Za=function s(a,u,c,l){var f="function"==typeof u,d=u===Object(u);if(d&&(l=c,c=u,u=void 0),null==c)throw new TypeError;l||(l={});var h=!("cap"in l)||l.cap,p=!("curry"in l)||l.curry,m=!("fixed"in l)||l.fixed,y=!("immutable"in l)||l.immutable,g=!("rearg"in l)||l.rearg,_=f?c:e,v="curry"in l&&l.curry,b="fixed"in l&&l.fixed,k="rearg"in l&&l.rearg,w=f?c.runInContext():void 0,S=f?c:{ary:a.ary,assign:a.assign,clone:a.clone,curry:a.curry,forEach:a.forEach,isArray:a.isArray,isError:a.isError,isFunction:a.isFunction,isWeakMap:a.isWeakMap,iteratee:a.iteratee,keys:a.keys,rearg:a.rearg,toInteger:a.toInteger,toPath:a.toPath},E=S.ary,x=S.assign,I=S.clone,C=S.curry,T=S.forEach,R=S.isArray,A=S.isError,M=S.isFunction,O=S.isWeakMap,D=S.keys,N=S.rearg,L=S.toInteger,j=S.toPath,P=D(t.aryMethod),F={castArray:function(t){return function(){var e=arguments[0];return R(e)?t(i(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),i=n.length;return h&&"number"==typeof e?(e=e>2?e-2:1,i&&i<=e?n:r(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!M(n))return t(n,Object(e));var r=[];return T(D(e),(function(t){M(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),T(r,(function(t){var e=t[1];M(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:L(e)+1;return C(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return C(t(e,n),r)}},runInContext:function(t){return function(e){return s(a,t(e),l)}}};function U(e,n){if(h){var i=t.iterateeRearg[e];if(i)return function(t,e){return H(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(N(r(t,n),e),n)}))}(n,i);var o=!f&&t.iterateeAry[e];if(o)return function(t,e){return H(t,(function(t){return"function"==typeof t?r(t,e):t}))}(n,o)}return n}function W(e,r,i){if(m&&(b||!t.skipFixed[e])){var o=t.methodSpread[e],s=o&&o.start;return void 0===s?E(r,i):function(t,e){return function(){for(var r=arguments.length,i=r-1,o=Array(r);r--;)o[r]=arguments[r];var s=o[e],a=o.slice(0,e);return s&&n.apply(a,s),e!=i&&n.apply(a,o.slice(e+1)),t.apply(this,a)}}(r,s)}return r}function B(e,n,r){return g&&r>1&&(k||!t.skipRearg[e])?N(n,t.methodRearg[e]||t.aryRearg[r]):n}function z(t,e){for(var n=-1,r=(e=j(e)).length,i=r-1,o=I(Object(t)),s=o;null!=s&&++n<r;){var a=e[n],u=s[a];null!=u&&!(M(u)||A(u)||O(u))&&(s[a]=I(n==i?u:Object(u))),s=s[a]}return o}function $(e,n){var r=t.aliasToReal[e]||e,i=t.remap[r]||r,o=l;return function(t){var e=f?w:S,a=f?w[i]:n,u=x(x({},o),t);return s(e,r,a,u)}}function H(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var i=g?0:n-1;return r[i]=e(r[i]),t.apply(void 0,r)}}function q(e,n,r){var s,a=t.aliasToReal[e]||e,u=n,c=F[a];return c?u=c(n):y&&(t.mutate.array[a]?u=o(n,i):t.mutate.object[a]?u=o(n,function(t){return function(e){return t({},e)}}(n)):t.mutate.set[a]&&(u=o(n,z))),T(P,(function(e){return T(t.aryMethod[e],(function(n){if(a==n){var r=t.methodSpread[a],i=r&&r.afterRearg;return s=i?W(a,B(a,u,e),e):B(a,W(a,u,e),e),s=function(t,e,n){return v||p&&n>1?C(e,n):e}(0,s=U(a,s),e),!1}})),!s})),s||(s=u),s==n&&(s=v?C(s,1):function(){return n.apply(this,arguments)}),s.convert=$(a,n),s.placeholder=n.placeholder=r,s}if(!d)return q(u,c,_);var V=c,Y=[];return T(P,(function(e){T(t.aryMethod[e],(function(e){var n=V[t.remap[e]||e];n&&Y.push([e,q(e,n,V)])}))})),T(D(V),(function(t){var e=V[t];if("function"==typeof e){for(var n=Y.length;n--;)if(Y[n][0]==t)return;e.convert=$(t,e),Y.push([t,e])}})),T(Y,(function(t){V[t[0]]=t[1]})),V.convert=function(t){return V.runInContext.convert(t)(void 0)},V.placeholder=V,T(D(V),(function(e){T(t.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V},Za}function bC(){if(Yd)return Qa;Yd=1;var t=yC().runInContext();return Qa=EC()(t,t)}var eu=bC();const Tu={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},wC=t=>{const{title:e,description:n,links:r}=t||{};return!!(e||n||r)},kC=t=>Object.keys(Tu).some((e=>e==t)),fi=t=>Tu[t]||Tu[500],Kd=t=>{var e,n;if(!t)return fi(500).description;if(eu.isString(t))return t;if("data"in t&&eu.isString(t.data))return t.data;if("data"in t&&null!=(e=t.data)&&e.errorCode)return null==(n=t.data)?void 0:n.message;if("isUnhandledError"in t&&!t.isUnhandledError){const{status:e,data:n}=null==t?void 0:t.error;return(eu.isString(n)?n:null==n?void 0:n.message)||fi(e||500).description}return"message"in t&&t.message?t.message:"error"in t?t.error:"status"in t?fi(t.status).description:void 0},IC="data:image/svg+xml,%3csvg%20width='33'%20height='41'%20viewBox='0%200%2033%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.5%201.96817C16.0263%20-2.16393%201.10522%207.69272%201.10522%2017.1195C1.10522%2026.5897%2013.5526%2033.3672%2024.7349%2033.3672'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M18.7097%2024.4653C19.0081%2028.8324%2022.5093%2032.5599%2027.7506%2034.751C30.1263%2035.7443%2032.1733%2035.7395%2030.152%2033.6683C28.0252%2031.489%2022.4828%2034.5238%2020.4755%2035.5385C16.906%2037.3428%2011.1341%2039.0819%206.63159%2039.0819'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",xC=({linksList:t})=>St.jsxs("div",{className:" relative text-slate-700",children:[St.jsx("h5",{className:"text-sm",children:"Maybe try these instead"}),St.jsx("img",{className:"absolute right-[100%] top-2 mr-1",src:IC}),St.jsx("div",{className:"mt-2",children:t.map((({text:t,link:e})=>St.jsx("a",{className:"mr-6 text-lg underline",href:e,children:t},e)))})]})
27
+ */function yx(){return Hd||(Hd=1,t=ii,e=ii.exports,function(){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var s=t[o];e(r,s,n(s),t)}return r}function o(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function i(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function a(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function u(t,e){return!(null==t||!t.length)&&g(t,e,0)>-1}function c(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function l(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function f(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function d(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function h(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function p(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function y(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function g(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):y(t,v,n)}function _(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function v(t){return t!=t}function b(t,e){var n=null==t?0:t.length;return n?E(t,e)/n:Q}function k(t){return function(e){return null==e?B:e[t]}}function w(t){return function(e){return null==t?B:t[e]}}function S(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function E(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==B&&(n=n===B?i:n+i)}return n}function x(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t){return t&&t.slice(0,W(t)+1).replace(qt,"")}function C(t){return function(e){return t(e)}}function T(t,e){return l(e,(function(e){return t[e]}))}function R(t,e){return t.has(e)}function A(t,e){for(var n=-1,r=t.length;++n<r&&g(e,t[n],0)>-1;);return n}function M(t,e){for(var n=t.length;n--&&g(e,t[n],0)>-1;);return n}function O(t){return"\\"+Ge[t]}function D(t){return $e.test(t)}function N(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t,e){return function(n){return t(e(n))}}function j(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n];s!==e&&s!==H||(t[n]=H,i[o++]=n)}return i}function P(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function F(t){return D(t)?function(t){for(var e=Be.lastIndex=0;Be.test(t);)++e;return e}(t):hn(t)}function U(t){return D(t)?function(t){return t.match(Be)||[]}(t):function(t){return t.split("")}(t)}function W(t){for(var e=t.length;e--&&Vt.test(t.charAt(e)););return e}var B,z="Expected a function",$="__lodash_hash_undefined__",H="__lodash_placeholder__",q=16,V=32,K=64,Y=128,G=256,J=1/0,X=9007199254740991,Q=NaN,Z=4294967295,tt=Z-1,et=Z>>>1,nt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",q],["flip",512],["partial",V],["partialRight",K],["rearg",G]],rt="[object Arguments]",ot="[object Array]",it="[object Boolean]",st="[object Date]",at="[object Error]",ut="[object Function]",ct="[object GeneratorFunction]",lt="[object Map]",ft="[object Number]",dt="[object Object]",ht="[object Promise]",pt="[object RegExp]",mt="[object Set]",yt="[object String]",gt="[object Symbol]",_t="[object WeakMap]",vt="[object ArrayBuffer]",bt="[object DataView]",kt="[object Float32Array]",wt="[object Float64Array]",St="[object Int8Array]",Et="[object Int16Array]",xt="[object Int32Array]",It="[object Uint8Array]",Ct="[object Uint8ClampedArray]",Tt="[object Uint16Array]",Rt="[object Uint32Array]",At=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dt=/&(?:amp|lt|gt|quot|#39);/g,Nt=/[&<>"']/g,Lt=RegExp(Dt.source),jt=RegExp(Nt.source),Pt=/<%-([\s\S]+?)%>/g,Ft=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Wt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,Ht=RegExp($t.source),qt=/^\s+/,Vt=/\s/,Kt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ie=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ae=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,ce="\\ud800-\\udfff",le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\u2700-\\u27bf",de="a-z\\xdf-\\xf6\\xf8-\\xff",he="A-Z\\xc0-\\xd6\\xd8-\\xde",pe="\\ufe0e\\ufe0f",me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ye="['’]",ge="["+ce+"]",_e="["+me+"]",ve="["+le+"]",be="\\d+",ke="["+fe+"]",we="["+de+"]",Se="[^"+ce+me+be+fe+de+he+"]",Ee="\\ud83c[\\udffb-\\udfff]",xe="[^"+ce+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="["+he+"]",Re="\\u200d",Ae="(?:"+we+"|"+Se+")",Me="(?:"+Te+"|"+Se+")",Oe="(?:['’](?:d|ll|m|re|s|t|ve))?",De="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ne="(?:"+ve+"|"+Ee+")?",Le="["+pe+"]?",je=Le+Ne+"(?:"+Re+"(?:"+[xe,Ie,Ce].join("|")+")"+Le+Ne+")*",Pe="(?:"+[ke,Ie,Ce].join("|")+")"+je,Fe="(?:"+[xe+ve+"?",ve,Ie,Ce,ge].join("|")+")",Ue=RegExp(ye,"g"),We=RegExp(ve,"g"),Be=RegExp(Ee+"(?="+Ee+")|"+Fe+je,"g"),ze=RegExp([Te+"?"+we+"+"+Oe+"(?="+[_e,Te,"$"].join("|")+")",Me+"+"+De+"(?="+[_e,Te+Ae,"$"].join("|")+")",Te+"?"+Ae+"+"+Oe,Te+"+"+De,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,Pe].join("|"),"g"),$e=RegExp("["+Re+ce+le+pe+"]"),He=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Ke={};Ke[kt]=Ke[wt]=Ke[St]=Ke[Et]=Ke[xt]=Ke[It]=Ke[Ct]=Ke[Tt]=Ke[Rt]=!0,Ke[rt]=Ke[ot]=Ke[vt]=Ke[it]=Ke[bt]=Ke[st]=Ke[at]=Ke[ut]=Ke[lt]=Ke[ft]=Ke[dt]=Ke[pt]=Ke[mt]=Ke[yt]=Ke[_t]=!1;var Ye={};Ye[rt]=Ye[ot]=Ye[vt]=Ye[bt]=Ye[it]=Ye[st]=Ye[kt]=Ye[wt]=Ye[St]=Ye[Et]=Ye[xt]=Ye[lt]=Ye[ft]=Ye[dt]=Ye[pt]=Ye[mt]=Ye[yt]=Ye[gt]=Ye[It]=Ye[Ct]=Ye[Tt]=Ye[Rt]=!0,Ye[at]=Ye[ut]=Ye[_t]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=parseFloat,Xe=parseInt,Qe="object"==typeof Io&&Io&&Io.Object===Object&&Io,Ze="object"==typeof self&&self&&self.Object===Object&&self,tn=Qe||Ze||Function("return this")(),en=e&&!e.nodeType&&e,nn=en&&t&&!t.nodeType&&t,rn=nn&&nn.exports===en,on=rn&&Qe.process,sn=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),an=sn&&sn.isArrayBuffer,un=sn&&sn.isDate,cn=sn&&sn.isMap,ln=sn&&sn.isRegExp,fn=sn&&sn.isSet,dn=sn&&sn.isTypedArray,hn=k("length"),pn=w({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=w({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),yn=w({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function t(e){function w(t){if(Fo(t)&&!Ta(t)&&!(t instanceof le)){if(t instanceof ce)return t;if(Ti.call(t,"__wrapped__"))return co(t)}return new ce(t)}function Vt(){}function ce(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=B}function le(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function fe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pe(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new he;++e<n;)this.add(t[e])}function me(t){this.size=(this.__data__=new de(t)).size}function ye(t,e){var n=Ta(t),r=!n&&Ca(t),o=!n&&!r&&Aa(t),i=!n&&!r&&!o&&La(t),s=n||r||o||i,a=s?x(t.length,ki):[],u=a.length;for(var c in t)!e&&!Ti.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Yr(c,u))||a.push(c);return a}function ge(t){var e=t.length;return e?t[Dn(0,e-1)]:B}function _e(t,e){return so(lr(t),Ce(e,0,t.length))}function ve(t){return so(lr(t))}function be(t,e,n){(n===B||Ao(t[e],n))&&(n!==B||e in t)||xe(t,e,n)}function ke(t,e,n){var r=t[e];Ti.call(t,e)&&Ao(r,n)&&(n!==B||e in t)||xe(t,e,n)}function we(t,e){for(var n=t.length;n--;)if(Ao(t[n][0],e))return n;return-1}function Se(t,e,n,r){return Is(t,(function(t,o,i){e(r,t,n(t),i)})),r}function Ee(t,e){return t&&fr(e,Qo(e),t)}function xe(t,e,n){"__proto__"==e&&Vi?Vi(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ie(t,e){for(var n=-1,r=e.length,o=pi(r),i=null==t;++n<r;)o[n]=i?B:Jo(t,e[n]);return o}function Ce(t,e,n){return t==t&&(n!==B&&(t=t<=n?t:n),e!==B&&(t=t>=e?t:e)),t}function Te(t,e,n,r,i,s){var a,u=1&e,c=2&e,l=4&e;if(n&&(a=i?n(t,r,i,s):n(t)),a!==B)return a;if(!Po(t))return t;var f=Ta(t);if(f){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ti.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return lr(t,a)}else{var d=Fs(t),h=d==ut||d==ct;if(Aa(t))return or(t,u);if(d==dt||d==rt||h&&!i){if(a=c||h?{}:Vr(t),!u)return c?function(t,e){return fr(t,Ps(t),e)}(t,function(t,e){return t&&fr(e,Zo(e),t)}(a,t)):function(t,e){return fr(t,js(t),e)}(t,Ee(a,t))}else{if(!Ye[d])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case vt:return ir(t);case it:case st:return new r(+t);case bt:return function(t,e){return new t.constructor(e?ir(t.buffer):t.buffer,t.byteOffset,t.byteLength)}(t,n);case kt:case wt:case St:case Et:case xt:case It:case Ct:case Tt:case Rt:return sr(t,n);case lt:return new r;case ft:case yt:return new r(t);case pt:return function(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}(t);case mt:return new r;case gt:return function(t){return Ss?vi(Ss.call(t)):{}}(t)}}(t,d,u)}}s||(s=new me);var p=s.get(t);if(p)return p;s.set(t,a),Na(t)?t.forEach((function(r){a.add(Te(r,e,n,r,t,s))})):Oa(t)&&t.forEach((function(r,o){a.set(o,Te(r,e,n,o,t,s))}));var m=f?B:(l?c?Fr:Pr:c?Zo:Qo)(t);return o(m||t,(function(r,o){m&&(r=t[o=r]),ke(a,o,Te(r,e,n,o,t,s))})),a}function Re(t,e,n){var r=n.length;if(null==t)return!r;for(t=vi(t);r--;){var o=n[r],i=e[o],s=t[o];if(s===B&&!(o in t)||!i(s))return!1}return!0}function Ae(t,e,n){if("function"!=typeof t)throw new wi(z);return Bs((function(){t.apply(B,n)}),e)}function Me(t,e,n,r){var o=-1,i=u,s=!0,a=t.length,f=[],d=e.length;if(!a)return f;n&&(e=l(e,C(n))),r?(i=c,s=!1):e.length>=200&&(i=R,s=!1,e=new pe(e));t:for(;++o<a;){var h=t[o],p=null==n?h:n(h);if(h=r||0!==h?h:0,s&&p==p){for(var m=d;m--;)if(e[m]===p)continue t;f.push(h)}else i(e,p,r)||f.push(h)}return f}function Oe(t,e){var n=!0;return Is(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function De(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],s=e(i);if(null!=s&&(a===B?s==s&&!zo(s):n(s,a)))var a=s,u=i}return u}function Ne(t,e){var n=[];return Is(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function Le(t,e,n,r,o){var i=-1,s=t.length;for(n||(n=Kr),o||(o=[]);++i<s;){var a=t[i];e>0&&n(a)?e>1?Le(a,e-1,n,r,o):f(o,a):r||(o[o.length]=a)}return o}function je(t,e){return t&&Ts(t,e,Qo)}function Pe(t,e){return t&&Rs(t,e,Qo)}function Fe(t,e){return a(e,(function(e){return No(t[e])}))}function Be(t,e){for(var n=0,r=(e=nr(e,t)).length;null!=t&&n<r;)t=t[ao(e[n++])];return n&&n==r?t:B}function $e(t,e,n){var r=e(t);return Ta(t)?r:f(r,n(t))}function Ge(t){return null==t?t===B?"[object Undefined]":"[object Null]":qi&&qi in vi(t)?function(t){var e=Ti.call(t,qi),n=t[qi];try{t[qi]=B;var r=!0}catch{}var o=Mi.call(t);return r&&(e?t[qi]=n:delete t[qi]),o}(t):function(t){return Mi.call(t)}(t)}function Qe(t,e){return t>e}function Ze(t,e){return null!=t&&Ti.call(t,e)}function en(t,e){return null!=t&&e in vi(t)}function nn(t,e,n){for(var r=n?c:u,o=t[0].length,i=t.length,s=i,a=pi(i),f=1/0,d=[];s--;){var h=t[s];s&&e&&(h=l(h,C(e))),f=os(h.length,f),a[s]=!n&&(e||o>=120&&h.length>=120)?new pe(s&&h):B}h=t[0];var p=-1,m=a[0];t:for(;++p<o&&d.length<f;){var y=h[p],g=e?e(y):y;if(y=n||0!==y?y:0,!(m?R(m,g):r(d,g,n))){for(s=i;--s;){var _=a[s];if(!(_?R(_,g):r(t[s],g,n)))continue t}m&&m.push(g),d.push(y)}}return d}function on(t,e,r){var o=null==(t=no(t,e=nr(e,t)))?t:t[ao(mo(e))];return null==o?B:n(o,t,r)}function sn(t){return Fo(t)&&Ge(t)==rt}function hn(t,e,n,r,o){return t===e||(null==t||null==e||!Fo(t)&&!Fo(e)?t!=t&&e!=e:function(t,e,n,r,o,i){var s=Ta(t),a=Ta(e),u=s?ot:Fs(t),c=a?ot:Fs(e),l=(u=u==rt?dt:u)==dt,f=(c=c==rt?dt:c)==dt,d=u==c;if(d&&Aa(t)){if(!Aa(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new me),s||La(t)?Lr(t,e,n,r,o,i):function(t,e,n,r,o,i,s){switch(n){case bt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vt:return!(t.byteLength!=e.byteLength||!i(new Pi(t),new Pi(e)));case it:case st:case ft:return Ao(+t,+e);case at:return t.name==e.name&&t.message==e.message;case pt:case yt:return t==e+"";case lt:var a=N;case mt:var u=1&r;if(a||(a=P),t.size!=e.size&&!u)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Lr(a(t),a(e),r,o,i,s);return s.delete(t),l;case gt:if(Ss)return Ss.call(t)==Ss.call(e)}return!1}(t,e,u,n,r,o,i);if(!(1&n)){var h=l&&Ti.call(t,"__wrapped__"),p=f&&Ti.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,y=p?e.value():e;return i||(i=new me),o(m,y,n,r,i)}}return!!d&&(i||(i=new me),function(t,e,n,r,o,i){var s=1&n,a=Pr(t),u=a.length;if(u!=Pr(e).length&&!s)return!1;for(var c=u;c--;){var l=a[c];if(!(s?l in e:Ti.call(e,l)))return!1}var f=i.get(t),d=i.get(e);if(f&&d)return f==e&&d==t;var h=!0;i.set(t,e),i.set(e,t);for(var p=s;++c<u;){var m=t[l=a[c]],y=e[l];if(r)var g=s?r(y,m,l,e,t,i):r(m,y,l,t,e,i);if(!(g===B?m===y||o(m,y,n,r,i):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var _=t.constructor,v=e.constructor;_!=v&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v)&&(h=!1)}return i.delete(t),i.delete(e),h}(t,e,n,r,o,i))}(t,e,n,r,hn,o))}function _n(t,e,n,r){var o=n.length,i=o,s=!r;if(null==t)return!i;for(t=vi(t);o--;){var a=n[o];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var u=(a=n[o])[0],c=t[u],l=a[1];if(s&&a[2]){if(c===B&&!(u in t))return!1}else{var f=new me;if(r)var d=r(c,l,u,t,e,f);if(!(d===B?hn(l,c,3,r,f):d))return!1}}return!0}function vn(t){return!(!Po(t)||function(t){return!!Ai&&Ai in t}(t))&&(No(t)?Ni:re).test(uo(t))}function bn(t){return"function"==typeof t?t:null==t?si:"object"==typeof t?Ta(t)?In(t[0],t[1]):xn(t):li(t)}function kn(t){if(!Qr(t))return ns(t);var e=[];for(var n in vi(t))Ti.call(t,n)&&"constructor"!=n&&e.push(n);return e}function wn(t){if(!Po(t))return function(t){var e=[];if(null!=t)for(var n in vi(t))e.push(n);return e}(t);var e=Qr(t),n=[];for(var r in t)("constructor"!=r||!e&&Ti.call(t,r))&&n.push(r);return n}function Sn(t,e){return t<e}function En(t,e){var n=-1,r=Mo(t)?pi(t.length):[];return Is(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}function xn(t){var e=$r(t);return 1==e.length&&e[0][2]?to(e[0][0],e[0][1]):function(n){return n===t||_n(n,t,e)}}function In(t,e){return Jr(t)&&Zr(e)?to(ao(t),e):function(n){var r=Jo(n,t);return r===B&&r===e?Xo(n,t):hn(e,r,3)}}function Cn(t,e,n,r,o){t!==e&&Ts(e,(function(i,s){if(o||(o=new me),Po(i))!function(t,e,n,r,o,i,s){var a=ro(t,n),u=ro(e,n),c=s.get(u);if(c)return be(t,n,c),B;var l=i?i(a,u,n+"",t,e,s):B,f=l===B;if(f){var d=Ta(u),h=!d&&Aa(u),p=!d&&!h&&La(u);l=u,d||h||p?Ta(a)?l=a:Oo(a)?l=lr(a):h?(f=!1,l=or(u,!0)):p?(f=!1,l=sr(u,!0)):l=[]:Wo(u)||Ca(u)?(l=a,Ca(a)?l=Yo(a):Po(a)&&!No(a)||(l=Vr(u))):f=!1}f&&(s.set(u,l),o(l,u,r,i,s),s.delete(u)),be(t,n,l)}(t,e,s,n,Cn,r,o);else{var a=r?r(ro(t,s),i,s+"",t,e,o):B;a===B&&(a=i),be(t,s,a)}}),Zo)}function Tn(t,e){var n=t.length;if(n)return Yr(e+=e<0?n:0,n)?t[e]:B}function Rn(t,e,n){e=e.length?l(e,(function(t){return Ta(t)?function(e){return Be(e,1===t.length?t[0]:t)}:t})):[si];var r=-1;return e=l(e,C(Br())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(En(t,(function(t,n,o){return{criteria:l(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,s=o.length,a=n.length;++r<s;){var u=ar(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function An(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var s=e[r],a=Be(t,s);n(a,s)&&Fn(i,nr(s,t),a)}return i}function Mn(t,e,n,r){var o=r?_:g,i=-1,s=e.length,a=t;for(t===e&&(e=lr(e)),n&&(a=l(t,C(n)));++i<s;)for(var u=0,c=e[i],f=n?n(c):c;(u=o(a,f,u,r))>-1;)a!==t&&zi.call(a,u,1),zi.call(t,u,1);return t}function On(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Yr(o)?zi.call(t,o,1):Yn(t,o)}}return t}function Dn(t,e){return t+Xi(as()*(e-t+1))}function Nn(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Xi(e/2))&&(t+=t)}while(e);return n}function Ln(t,e){return zs(eo(t,e,si),t+"")}function jn(t){return ge(ei(t))}function Pn(t,e){var n=ei(t);return so(n,Ce(e,0,n.length))}function Fn(t,e,n,r){if(!Po(t))return t;for(var o=-1,i=(e=nr(e,t)).length,s=i-1,a=t;null!=a&&++o<i;){var u=ao(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var l=a[u];(c=r?r(l,u,a):B)===B&&(c=Po(l)?l:Yr(e[o+1])?[]:{})}ke(a,u,c),a=a[u]}return t}function Un(t){return so(ei(t))}function Wn(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=pi(o);++r<o;)i[r]=t[r+e];return i}function Bn(t,e){var n;return Is(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function zn(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=et){for(;r<o;){var i=r+o>>>1,s=t[i];null!==s&&!zo(s)&&(n?s<=e:s<e)?r=i+1:o=i}return o}return $n(t,e,si,n)}function $n(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var s=(e=n(e))!=e,a=null===e,u=zo(e),c=e===B;o<i;){var l=Xi((o+i)/2),f=n(t[l]),d=f!==B,h=null===f,p=f==f,m=zo(f);if(s)var y=r||p;else y=c?p&&(r||d):a?p&&d&&(r||!h):u?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=e:f<e);y?o=l+1:i=l}return os(i,tt)}function Hn(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Ao(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function qn(t){return"number"==typeof t?t:zo(t)?Q:+t}function Vn(t){if("string"==typeof t)return t;if(Ta(t))return l(t,Vn)+"";if(zo(t))return Es?Es.call(t):"";var e=t+"";return"0"==e&&1/t==-J?"-0":e}function Kn(t,e,n){var r=-1,o=u,i=t.length,s=!0,a=[],l=a;if(n)s=!1,o=c;else if(i>=200){var f=e?null:Ns(t);if(f)return P(f);s=!1,o=R,l=new pe}else l=e?[]:a;t:for(;++r<i;){var d=t[r],h=e?e(d):d;if(d=n||0!==d?d:0,s&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue t;e&&l.push(h),a.push(d)}else o(l,h,n)||(l!==a&&l.push(h),a.push(d))}return a}function Yn(t,e){return null==(t=no(t,e=nr(e,t)))||delete t[ao(mo(e))]}function Gn(t,e,n,r){return Fn(t,e,n(Be(t,e)),r)}function Jn(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Wn(t,r?0:i,r?i+1:o):Wn(t,r?i+1:0,r?o:i)}function Xn(t,e){var n=t;return n instanceof le&&(n=n.value()),d(e,(function(t,e){return e.func.apply(e.thisArg,f([t],e.args))}),n)}function Qn(t,e,n){var r=t.length;if(r<2)return r?Kn(t[0]):[];for(var o=-1,i=pi(r);++o<r;)for(var s=t[o],a=-1;++a<r;)a!=o&&(i[o]=Me(i[o]||s,t[a],e,n));return Kn(Le(i,1),e,n)}function Zn(t,e,n){for(var r=-1,o=t.length,i=e.length,s={};++r<o;)n(s,t[r],r<i?e[r]:B);return s}function tr(t){return Oo(t)?t:[]}function er(t){return"function"==typeof t?t:si}function nr(t,e){return Ta(t)?t:Jr(t,e)?[t]:$s(Go(t))}function rr(t,e,n){var r=t.length;return n=n===B?r:n,!e&&n>=r?t:Wn(t,e,n)}function or(t,e){if(e)return t.slice();var n=t.length,r=Fi?Fi(n):new t.constructor(n);return t.copy(r),r}function ir(t){var e=new t.constructor(t.byteLength);return new Pi(e).set(new Pi(t)),e}function sr(t,e){return new t.constructor(e?ir(t.buffer):t.buffer,t.byteOffset,t.length)}function ar(t,e){if(t!==e){var n=t!==B,r=null===t,o=t==t,i=zo(t),s=e!==B,a=null===e,u=e==e,c=zo(e);if(!a&&!c&&!i&&t>e||i&&s&&u&&!a&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&t<e||c&&n&&o&&!r&&!i||a&&n&&o||!s&&o||!u)return-1}return 0}function ur(t,e,n,r){for(var o=-1,i=t.length,s=n.length,a=-1,u=e.length,c=rs(i-s,0),l=pi(u+c),f=!r;++a<u;)l[a]=e[a];for(;++o<s;)(f||o<i)&&(l[n[o]]=t[o]);for(;c--;)l[a++]=t[o++];return l}function cr(t,e,n,r){for(var o=-1,i=t.length,s=-1,a=n.length,u=-1,c=e.length,l=rs(i-a,0),f=pi(l+c),d=!r;++o<l;)f[o]=t[o];for(var h=o;++u<c;)f[h+u]=e[u];for(;++s<a;)(d||o<i)&&(f[h+n[s]]=t[o++]);return f}function lr(t,e){var n=-1,r=t.length;for(e||(e=pi(r));++n<r;)e[n]=t[n];return e}function fr(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],u=r?r(n[a],t[a],a,n,t):B;u===B&&(u=t[a]),o?xe(n,a,u):ke(n,a,u)}return n}function dr(t,e){return function(n,o){var i=Ta(n)?r:Se,s=e?e():{};return i(n,t,Br(o,2),s)}}function hr(t){return Ln((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:B,s=o>2?n[2]:B;for(i=t.length>3&&"function"==typeof i?(o--,i):B,s&&Gr(n[0],n[1],s)&&(i=o<3?B:i,o=1),e=vi(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e}))}function pr(t,e){return function(n,r){if(null==n)return n;if(!Mo(n))return t(n,r);for(var o=n.length,i=e?o:-1,s=vi(n);(e?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function mr(t){return function(e,n,r){for(var o=-1,i=vi(e),s=r(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===n(i[u],u,i))break}return e}}function yr(t){return function(e){var n=D(e=Go(e))?U(e):B,r=n?n[0]:e.charAt(0),o=n?rr(n,1).join(""):e.slice(1);return r[t]()+o}}function gr(t){return function(e){return d(oi(ri(e).replace(Ue,"")),t,"")}}function _r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=xs(t.prototype),r=t.apply(n,e);return Po(r)?r:n}}function vr(t){return function(e,n,r){var o=vi(e);if(!Mo(e)){var i=Br(n,3);e=Qo(e),n=function(t){return i(o[t],t,o)}}var s=t(e,n,r);return s>-1?o[i?e[s]:s]:B}}function br(t){return jr((function(e){var n=e.length,r=n,o=ce.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new wi(z);if(o&&!s&&"wrapper"==Ur(i))var s=new ce([],!0)}for(r=s?r:n;++r<n;){var a=Ur(i=e[r]),u="wrapper"==a?Ls(i):B;s=u&&Xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Ur(u[0])].apply(s,u[3]):1==i.length&&Xr(i)?s[a]():s.thru(i)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ta(r))return s.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}function kr(t,e,n,r,o,i,s,a,u,c){var l=e&Y,f=1&e,d=2&e,h=24&e,p=512&e,m=d?B:_r(t);return function y(){for(var g=arguments.length,_=pi(g),v=g;v--;)_[v]=arguments[v];if(h)var b=Wr(y),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(r&&(_=ur(_,r,o,h)),i&&(_=cr(_,i,s,h)),g-=k,h&&g<c)return Tr(t,e,kr,y.placeholder,n,_,j(_,b),a,u,c-g);var w=f?n:this,S=d?w[t]:t;return g=_.length,a?_=function(t,e){for(var n=t.length,r=os(e.length,n),o=lr(t);r--;){var i=e[r];t[r]=Yr(i,n)?o[i]:B}return t}(_,a):p&&g>1&&_.reverse(),l&&u<g&&(_.length=u),this&&this!==tn&&this instanceof y&&(S=m||_r(S)),S.apply(w,_)}}function wr(t,e){return function(n,r){return function(t,e,n,r){return je(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Sr(t,e){return function(n,r){var o;if(n===B&&r===B)return e;if(n!==B&&(o=n),r!==B){if(o===B)return r;"string"==typeof n||"string"==typeof r?(n=Vn(n),r=Vn(r)):(n=qn(n),r=qn(r)),o=t(n,r)}return o}}function Er(t){return jr((function(e){return e=l(e,C(Br())),Ln((function(r){var o=this;return t(e,(function(t){return n(t,o,r)}))}))}))}function xr(t,e){var n=(e=e===B?" ":Vn(e)).length;if(n<2)return n?Nn(e,t):e;var r=Nn(e,Ji(t/F(e)));return D(e)?rr(U(r),0,t).join(""):r.slice(0,t)}function Ir(t){return function(e,n,r){return r&&"number"!=typeof r&&Gr(e,n,r)&&(n=r=B),e=Ho(e),n===B?(n=e,e=0):n=Ho(n),function(t,e,n,r){for(var o=-1,i=rs(Ji((e-t)/(n||1)),0),s=pi(i);i--;)s[r?i:++o]=t,t+=n;return s}(e,n,r=r===B?e<n?1:-1:Ho(r),t)}}function Cr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Ko(e),n=Ko(n)),t(e,n)}}function Tr(t,e,n,r,o,i,s,a,u,c){var l=8&e;e|=l?V:K,4&(e&=~(l?K:V))||(e&=-4);var f=[t,e,o,l?i:B,l?s:B,l?B:i,l?B:s,a,u,c],d=n.apply(B,f);return Xr(t)&&Ws(d,f),d.placeholder=r,oo(d,t,e)}function Rr(t){var e=_i[t];return function(t,n){if(t=Ko(t),(n=null==n?0:os(qo(n),292))&&ts(t)){var r=(Go(t)+"e").split("e");return+((r=(Go(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}function Ar(t){return function(e){var n=Fs(e);return n==lt?N(e):n==mt?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return l(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Mr(t,e,r,o,i,s,a,u){var c=2&e;if(!c&&"function"!=typeof t)throw new wi(z);var l=o?o.length:0;if(l||(e&=-97,o=i=B),a=a===B?a:rs(qo(a),0),u=u===B?u:qo(u),l-=i?i.length:0,e&K){var f=o,d=i;o=i=B}var h=c?B:Ls(t),p=[t,e,r,o,i,f,d,s,a,u];if(h&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,s=r==Y&&8==n||r==Y&&n==G&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!s)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var a=e[3];if(a){var u=t[3];t[3]=u?ur(u,a,e[4]):a,t[4]=u?j(t[3],H):e[4]}(a=e[5])&&(u=t[5],t[5]=u?cr(u,a,e[6]):a,t[6]=u?j(t[5],H):e[6]),(a=e[7])&&(t[7]=a),r&Y&&(t[8]=null==t[8]?e[8]:os(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(p,h),t=p[0],e=p[1],r=p[2],o=p[3],i=p[4],!(u=p[9]=p[9]===B?c?0:t.length:rs(p[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)m=8==e||e==q?function(t,e,r){var o=_r(t);return function i(){for(var s=arguments.length,a=pi(s),u=s,c=Wr(i);u--;)a[u]=arguments[u];var l=s<3&&a[0]!==c&&a[s-1]!==c?[]:j(a,c);return(s-=l.length)<r?Tr(t,e,kr,i.placeholder,B,a,l,B,B,r-s):n(this&&this!==tn&&this instanceof i?o:t,this,a)}}(t,e,u):e!=V&&33!=e||i.length?kr.apply(B,p):function(t,e,r,o){var i=1&e,s=_r(t);return function e(){for(var a=-1,u=arguments.length,c=-1,l=o.length,f=pi(l+u),d=this&&this!==tn&&this instanceof e?s:t;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++a];return n(d,i?r:this,f)}}(t,e,r,o);else var m=function(t,e,n){var r=1&e,o=_r(t);return function e(){return(this&&this!==tn&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,r);return oo((h?As:Ws)(m,p),t,e)}function Or(t,e,n,r){return t===B||Ao(t,xi[n])&&!Ti.call(r,n)?e:t}function Dr(t,e,n,r,o,i){return Po(t)&&Po(e)&&(i.set(e,t),Cn(t,e,B,Dr,i),i.delete(e)),t}function Nr(t){return Wo(t)?B:t}function Lr(t,e,n,r,o,i){var s=1&n,a=t.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var f=-1,d=!0,h=2&n?new pe:B;for(i.set(t,e),i.set(e,t);++f<a;){var m=t[f],y=e[f];if(r)var g=s?r(y,m,f,e,t,i):r(m,y,f,t,e,i);if(g!==B){if(g)continue;d=!1;break}if(h){if(!p(e,(function(t,e){if(!R(h,e)&&(m===t||o(m,t,n,r,i)))return h.push(e)}))){d=!1;break}}else if(m!==y&&!o(m,y,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d}function jr(t){return zs(eo(t,B,ho),t+"")}function Pr(t){return $e(t,Qo,js)}function Fr(t){return $e(t,Zo,Ps)}function Ur(t){for(var e=t.name+"",n=ys[e],r=Ti.call(ys,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Wr(t){return(Ti.call(w,"placeholder")?w:t).placeholder}function Br(){var t=w.iteratee||ai;return t=t===ai?bn:t,arguments.length?t(arguments[0],arguments[1]):t}function zr(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function $r(t){for(var e=Qo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Zr(o)]}return e}function Hr(t,e){var n=function(t,e){return null==t?B:t[e]}(t,e);return vn(n)?n:B}function qr(t,e,n){for(var r=-1,o=(e=nr(e,t)).length,i=!1;++r<o;){var s=ao(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&jo(o)&&Yr(s,o)&&(Ta(t)||Ca(t))}function Vr(t){return"function"!=typeof t.constructor||Qr(t)?{}:xs(Ui(t))}function Kr(t){return Ta(t)||Ca(t)||!!($i&&t&&t[$i])}function Yr(t,e){var n=typeof t;return!!(e=e??X)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t<e}function Gr(t,e,n){if(!Po(n))return!1;var r=typeof e;return!!("number"==r?Mo(n)&&Yr(e,n.length):"string"==r&&e in n)&&Ao(n[e],t)}function Jr(t,e){if(Ta(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!zo(t))||Bt.test(t)||!Wt.test(t)||null!=e&&t in vi(e)}function Xr(t){var e=Ur(t),n=w[e];if("function"!=typeof n||!(e in le.prototype))return!1;if(t===n)return!0;var r=Ls(n);return!!r&&t===r[0]}function Qr(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||xi)}function Zr(t){return t==t&&!Po(t)}function to(t,e){return function(n){return null!=n&&n[t]===e&&(e!==B||t in vi(n))}}function eo(t,e,r){return e=rs(e===B?t.length-1:e,0),function(){for(var o=arguments,i=-1,s=rs(o.length-e,0),a=pi(s);++i<s;)a[i]=o[e+i];i=-1;for(var u=pi(e+1);++i<e;)u[i]=o[i];return u[e]=r(a),n(t,this,u)}}function no(t,e){return e.length<2?t:Be(t,Wn(e,0,-1))}function ro(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function oo(t,e,n){var r=e+"";return zs(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Kt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return o(nt,(function(n){var r="_."+n[0];e&n[1]&&!u(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Yt);return e?e[1].split(Gt):[]}(r),n)))}function io(t){var e=0,n=0;return function(){var r=is(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(B,arguments)}}function so(t,e){var n=-1,r=t.length,o=r-1;for(e=e===B?r:e;++n<e;){var i=Dn(n,o),s=t[i];t[i]=t[n],t[n]=s}return t.length=e,t}function ao(t){if("string"==typeof t||zo(t))return t;var e=t+"";return"0"==e&&1/t==-J?"-0":e}function uo(t){if(null!=t){try{return Ci.call(t)}catch{}try{return t+""}catch{}}return""}function co(t){if(t instanceof le)return t.clone();var e=new ce(t.__wrapped__,t.__chain__);return e.__actions__=lr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function lo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:qo(n);return o<0&&(o=rs(r+o,0)),y(t,Br(e,3),o)}function fo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==B&&(o=qo(n),o=n<0?rs(r+o,0):os(o,r-1)),y(t,Br(e,3),o,!0)}function ho(t){return null!=t&&t.length?Le(t,1):[]}function po(t){return t&&t.length?t[0]:B}function mo(t){var e=null==t?0:t.length;return e?t[e-1]:B}function yo(t,e){return t&&t.length&&e&&e.length?Mn(t,e):t}function go(t){return null==t?t:us.call(t)}function _o(t){if(!t||!t.length)return[];var e=0;return t=a(t,(function(t){if(Oo(t))return e=rs(t.length,e),!0})),x(e,(function(e){return l(t,k(e))}))}function vo(t,e){if(!t||!t.length)return[];var r=_o(t);return null==e?r:l(r,(function(t){return n(e,B,t)}))}function bo(t){var e=w(t);return e.__chain__=!0,e}function ko(t,e){return e(t)}function wo(t,e){return(Ta(t)?o:Is)(t,Br(e,3))}function So(t,e){return(Ta(t)?i:Cs)(t,Br(e,3))}function Eo(t,e){return(Ta(t)?l:En)(t,Br(e,3))}function xo(t,e,n){return e=n?B:e,e=t&&null==e?t.length:e,Mr(t,Y,B,B,B,B,e)}function Io(t,e){var n;if("function"!=typeof e)throw new wi(z);return t=qo(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=B),n}}function Co(t,e,n){function r(e){var n=u,r=c;return u=c=B,p=e,f=t.apply(r,n)}function o(t){var n=t-h;return h===B||n>=e||n<0||y&&t-p>=l}function i(){var t=ya();return o(t)?s(t):(d=Bs(i,function(t){var n=e-(t-h);return y?os(n,l-(t-p)):n}(t)),B)}function s(t){return d=B,g&&u?r(t):(u=c=B,f)}function a(){var t=ya(),n=o(t);if(u=arguments,c=this,h=t,n){if(d===B)return function(t){return p=t,d=Bs(i,e),m?r(t):f}(h);if(y)return Ds(d),d=Bs(i,e),r(h)}return d===B&&(d=Bs(i,e)),f}var u,c,l,f,d,h,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new wi(z);return e=Ko(e)||0,Po(n)&&(m=!!n.leading,l=(y="maxWait"in n)?rs(Ko(n.maxWait)||0,e):l,g="trailing"in n?!!n.trailing:g),a.cancel=function(){d!==B&&Ds(d),p=0,u=h=c=d=B},a.flush=function(){return d===B?f:s(ya())},a}function To(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new wi(z);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(To.Cache||he),n}function Ro(t){if("function"!=typeof t)throw new wi(z);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ao(t,e){return t===e||t!=t&&e!=e}function Mo(t){return null!=t&&jo(t.length)&&!No(t)}function Oo(t){return Fo(t)&&Mo(t)}function Do(t){if(!Fo(t))return!1;var e=Ge(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Wo(t)}function No(t){if(!Po(t))return!1;var e=Ge(t);return e==ut||e==ct||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Lo(t){return"number"==typeof t&&t==qo(t)}function jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X}function Po(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Fo(t){return null!=t&&"object"==typeof t}function Uo(t){return"number"==typeof t||Fo(t)&&Ge(t)==ft}function Wo(t){if(!Fo(t)||Ge(t)!=dt)return!1;var e=Ui(t);if(null===e)return!0;var n=Ti.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ci.call(n)==Oi}function Bo(t){return"string"==typeof t||!Ta(t)&&Fo(t)&&Ge(t)==yt}function zo(t){return"symbol"==typeof t||Fo(t)&&Ge(t)==gt}function $o(t){if(!t)return[];if(Mo(t))return Bo(t)?U(t):lr(t);if(Hi&&t[Hi])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Hi]());var e=Fs(t);return(e==lt?N:e==mt?P:ei)(t)}function Ho(t){return t?(t=Ko(t))===J||t===-J?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function qo(t){var e=Ho(t),n=e%1;return e==e?n?e-n:e:0}function Vo(t){return t?Ce(qo(t),0,Z):0}function Ko(t){if("number"==typeof t)return t;if(zo(t))return Q;if(Po(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Po(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||oe.test(t)?Xe(t.slice(2),n?2:8):ee.test(t)?Q:+t}function Yo(t){return fr(t,Zo(t))}function Go(t){return null==t?"":Vn(t)}function Jo(t,e,n){var r=null==t?B:Be(t,e);return r===B?n:r}function Xo(t,e){return null!=t&&qr(t,e,en)}function Qo(t){return Mo(t)?ye(t):kn(t)}function Zo(t){return Mo(t)?ye(t,!0):wn(t)}function ti(t,e){if(null==t)return{};var n=l(Fr(t),(function(t){return[t]}));return e=Br(e),An(t,n,(function(t,n){return e(t,n[0])}))}function ei(t){return null==t?[]:T(t,Qo(t))}function ni(t){return au(Go(t).toLowerCase())}function ri(t){return(t=Go(t))&&t.replace(se,pn).replace(We,"")}function oi(t,e,n){return t=Go(t),(e=n?B:e)===B?function(t){return He.test(t)}(t)?function(t){return t.match(ze)||[]}(t):function(t){return t.match(Jt)||[]}(t):t.match(e)||[]}function ii(t){return function(){return t}}function si(t){return t}function ai(t){return bn("function"==typeof t?t:Te(t,1))}function ui(t,e,n){var r=Qo(e),i=Fe(e,r);null!=n||Po(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Fe(e,Qo(e)));var s=!(Po(n)&&"chain"in n&&!n.chain),a=No(t);return o(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=lr(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,f([this.value()],arguments))})})),t}function ci(){}function li(t){return Jr(t)?k(ao(t)):function(t){return function(e){return Be(e,t)}}(t)}function fi(){return[]}function di(){return!1}var hi,pi=(e=null==e?tn:gn.defaults(tn.Object(),e,gn.pick(tn,qe))).Array,mi=e.Date,yi=e.Error,gi=e.Function,_i=e.Math,vi=e.Object,bi=e.RegExp,ki=e.String,wi=e.TypeError,Si=pi.prototype,Ei=gi.prototype,xi=vi.prototype,Ii=e["__core-js_shared__"],Ci=Ei.toString,Ti=xi.hasOwnProperty,Ri=0,Ai=(hi=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+hi:"",Mi=xi.toString,Oi=Ci.call(vi),Di=tn._,Ni=bi("^"+Ci.call(Ti).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Li=rn?e.Buffer:B,ji=e.Symbol,Pi=e.Uint8Array,Fi=Li?Li.allocUnsafe:B,Ui=L(vi.getPrototypeOf,vi),Wi=vi.create,Bi=xi.propertyIsEnumerable,zi=Si.splice,$i=ji?ji.isConcatSpreadable:B,Hi=ji?ji.iterator:B,qi=ji?ji.toStringTag:B,Vi=function(){try{var t=Hr(vi,"defineProperty");return t({},"",{}),t}catch{}}(),Ki=e.clearTimeout!==tn.clearTimeout&&e.clearTimeout,Yi=mi&&mi.now!==tn.Date.now&&mi.now,Gi=e.setTimeout!==tn.setTimeout&&e.setTimeout,Ji=_i.ceil,Xi=_i.floor,Qi=vi.getOwnPropertySymbols,Zi=Li?Li.isBuffer:B,ts=e.isFinite,es=Si.join,ns=L(vi.keys,vi),rs=_i.max,os=_i.min,is=mi.now,ss=e.parseInt,as=_i.random,us=Si.reverse,cs=Hr(e,"DataView"),ls=Hr(e,"Map"),fs=Hr(e,"Promise"),ds=Hr(e,"Set"),hs=Hr(e,"WeakMap"),ps=Hr(vi,"create"),ms=hs&&new hs,ys={},gs=uo(cs),_s=uo(ls),vs=uo(fs),bs=uo(ds),ks=uo(hs),ws=ji?ji.prototype:B,Ss=ws?ws.valueOf:B,Es=ws?ws.toString:B,xs=function(){function t(){}return function(e){if(!Po(e))return{};if(Wi)return Wi(e);t.prototype=e;var n=new t;return t.prototype=B,n}}();w.templateSettings={escape:Pt,evaluate:Ft,interpolate:Ut,variable:"",imports:{_:w}},w.prototype=Vt.prototype,w.prototype.constructor=w,ce.prototype=xs(Vt.prototype),ce.prototype.constructor=ce,le.prototype=xs(Vt.prototype),le.prototype.constructor=le,fe.prototype.clear=function(){this.__data__=ps?ps(null):{},this.size=0},fe.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe.prototype.get=function(t){var e=this.__data__;if(ps){var n=e[t];return n===$?B:n}return Ti.call(e,t)?e[t]:B},fe.prototype.has=function(t){var e=this.__data__;return ps?e[t]!==B:Ti.call(e,t)},fe.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ps&&e===B?$:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=we(e,t);return!(n<0||(n==e.length-1?e.pop():zi.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=we(e,t);return n<0?B:e[n][1]},de.prototype.has=function(t){return we(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,r=we(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},he.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ls||de),string:new fe}},he.prototype.delete=function(t){var e=zr(this,t).delete(t);return this.size-=e?1:0,e},he.prototype.get=function(t){return zr(this,t).get(t)},he.prototype.has=function(t){return zr(this,t).has(t)},he.prototype.set=function(t,e){var n=zr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},pe.prototype.add=pe.prototype.push=function(t){return this.__data__.set(t,$),this},pe.prototype.has=function(t){return this.__data__.has(t)},me.prototype.clear=function(){this.__data__=new de,this.size=0},me.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},me.prototype.get=function(t){return this.__data__.get(t)},me.prototype.has=function(t){return this.__data__.has(t)},me.prototype.set=function(t,e){var n=this.__data__;if(n instanceof de){var r=n.__data__;if(!ls||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(t,e),this.size=n.size,this};var Is=pr(je),Cs=pr(Pe,!0),Ts=mr(),Rs=mr(!0),As=ms?function(t,e){return ms.set(t,e),t}:si,Ms=Vi?function(t,e){return Vi(t,"toString",{configurable:!0,enumerable:!1,value:ii(e),writable:!0})}:si,Os=Ln,Ds=Ki||function(t){return tn.clearTimeout(t)},Ns=ds&&1/P(new ds([,-0]))[1]==J?function(t){return new ds(t)}:ci,Ls=ms?function(t){return ms.get(t)}:ci,js=Qi?function(t){return null==t?[]:(t=vi(t),a(Qi(t),(function(e){return Bi.call(t,e)})))}:fi,Ps=Qi?function(t){for(var e=[];t;)f(e,js(t)),t=Ui(t);return e}:fi,Fs=Ge;(cs&&Fs(new cs(new ArrayBuffer(1)))!=bt||ls&&Fs(new ls)!=lt||fs&&Fs(fs.resolve())!=ht||ds&&Fs(new ds)!=mt||hs&&Fs(new hs)!=_t)&&(Fs=function(t){var e=Ge(t),n=e==dt?t.constructor:B,r=n?uo(n):"";if(r)switch(r){case gs:return bt;case _s:return lt;case vs:return ht;case bs:return mt;case ks:return _t}return e});var Us=Ii?No:di,Ws=io(As),Bs=Gi||function(t,e){return tn.setTimeout(t,e)},zs=io(Ms),$s=function(t){var e=To(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zt,(function(t,n,r,o){e.push(r?o.replace(Qt,"$1"):n||t)})),e})),Hs=Ln((function(t,e){return Oo(t)?Me(t,Le(e,1,Oo,!0)):[]})),qs=Ln((function(t,e){var n=mo(e);return Oo(n)&&(n=B),Oo(t)?Me(t,Le(e,1,Oo,!0),Br(n,2)):[]})),Vs=Ln((function(t,e){var n=mo(e);return Oo(n)&&(n=B),Oo(t)?Me(t,Le(e,1,Oo,!0),B,n):[]})),Ks=Ln((function(t){var e=l(t,tr);return e.length&&e[0]===t[0]?nn(e):[]})),Ys=Ln((function(t){var e=mo(t),n=l(t,tr);return e===mo(n)?e=B:n.pop(),n.length&&n[0]===t[0]?nn(n,Br(e,2)):[]})),Gs=Ln((function(t){var e=mo(t),n=l(t,tr);return(e="function"==typeof e?e:B)&&n.pop(),n.length&&n[0]===t[0]?nn(n,B,e):[]})),Js=Ln(yo),Xs=jr((function(t,e){var n=null==t?0:t.length,r=Ie(t,e);return On(t,l(e,(function(t){return Yr(t,n)?+t:t})).sort(ar)),r})),Qs=Ln((function(t){return Kn(Le(t,1,Oo,!0))})),Zs=Ln((function(t){var e=mo(t);return Oo(e)&&(e=B),Kn(Le(t,1,Oo,!0),Br(e,2))})),ta=Ln((function(t){var e=mo(t);return e="function"==typeof e?e:B,Kn(Le(t,1,Oo,!0),B,e)})),ea=Ln((function(t,e){return Oo(t)?Me(t,e):[]})),na=Ln((function(t){return Qn(a(t,Oo))})),ra=Ln((function(t){var e=mo(t);return Oo(e)&&(e=B),Qn(a(t,Oo),Br(e,2))})),oa=Ln((function(t){var e=mo(t);return e="function"==typeof e?e:B,Qn(a(t,Oo),B,e)})),ia=Ln(_o),sa=Ln((function(t){var e=t.length,n=e>1?t[e-1]:B;return n="function"==typeof n?(t.pop(),n):B,vo(t,n)})),aa=jr((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Ie(e,t)};return!(e>1||this.__actions__.length)&&r instanceof le&&Yr(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ko,args:[o],thisArg:B}),new ce(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(B),t}))):this.thru(o)})),ua=dr((function(t,e,n){Ti.call(t,n)?++t[n]:xe(t,n,1)})),ca=vr(lo),la=vr(fo),fa=dr((function(t,e,n){Ti.call(t,n)?t[n].push(e):xe(t,n,[e])})),da=Ln((function(t,e,r){var o=-1,i="function"==typeof e,s=Mo(t)?pi(t.length):[];return Is(t,(function(t){s[++o]=i?n(e,t,r):on(t,e,r)})),s})),ha=dr((function(t,e,n){xe(t,n,e)})),pa=dr((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ma=Ln((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gr(t,e[0],e[1])?e=[]:n>2&&Gr(e[0],e[1],e[2])&&(e=[e[0]]),Rn(t,Le(e,1),[])})),ya=Yi||function(){return tn.Date.now()},ga=Ln((function(t,e,n){var r=1;if(n.length){var o=j(n,Wr(ga));r|=V}return Mr(t,r,e,n,o)})),_a=Ln((function(t,e,n){var r=3;if(n.length){var o=j(n,Wr(_a));r|=V}return Mr(e,r,t,n,o)})),va=Ln((function(t,e){return Ae(t,1,e)})),ba=Ln((function(t,e,n){return Ae(t,Ko(e)||0,n)}));To.Cache=he;var ka=Os((function(t,e){var r=(e=1==e.length&&Ta(e[0])?l(e[0],C(Br())):l(Le(e,1),C(Br()))).length;return Ln((function(o){for(var i=-1,s=os(o.length,r);++i<s;)o[i]=e[i].call(this,o[i]);return n(t,this,o)}))})),wa=Ln((function(t,e){return Mr(t,V,B,e,j(e,Wr(wa)))})),Sa=Ln((function(t,e){return Mr(t,K,B,e,j(e,Wr(Sa)))})),Ea=jr((function(t,e){return Mr(t,G,B,B,B,e)})),xa=Cr(Qe),Ia=Cr((function(t,e){return t>=e})),Ca=sn(function(){return arguments}())?sn:function(t){return Fo(t)&&Ti.call(t,"callee")&&!Bi.call(t,"callee")},Ta=pi.isArray,Ra=an?C(an):function(t){return Fo(t)&&Ge(t)==vt},Aa=Zi||di,Ma=un?C(un):function(t){return Fo(t)&&Ge(t)==st},Oa=cn?C(cn):function(t){return Fo(t)&&Fs(t)==lt},Da=ln?C(ln):function(t){return Fo(t)&&Ge(t)==pt},Na=fn?C(fn):function(t){return Fo(t)&&Fs(t)==mt},La=dn?C(dn):function(t){return Fo(t)&&jo(t.length)&&!!Ke[Ge(t)]},ja=Cr(Sn),Pa=Cr((function(t,e){return t<=e})),Fa=hr((function(t,e){if(Qr(e)||Mo(e))return fr(e,Qo(e),t),B;for(var n in e)Ti.call(e,n)&&ke(t,n,e[n])})),Ua=hr((function(t,e){fr(e,Zo(e),t)})),Wa=hr((function(t,e,n,r){fr(e,Zo(e),t,r)})),Ba=hr((function(t,e,n,r){fr(e,Qo(e),t,r)})),za=jr(Ie),$a=Ln((function(t,e){t=vi(t);var n=-1,r=e.length,o=r>2?e[2]:B;for(o&&Gr(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],s=Zo(i),a=-1,u=s.length;++a<u;){var c=s[a],l=t[c];(l===B||Ao(l,xi[c])&&!Ti.call(t,c))&&(t[c]=i[c])}return t})),Ha=Ln((function(t){return t.push(B,Dr),n(Ga,B,t)})),qa=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mi.call(e)),t[e]=n}),ii(si)),Va=wr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mi.call(e)),Ti.call(t,e)?t[e].push(n):t[e]=[n]}),Br),Ka=Ln(on),Ya=hr((function(t,e,n){Cn(t,e,n)})),Ga=hr((function(t,e,n,r){Cn(t,e,n,r)})),Ja=jr((function(t,e){var n={};if(null==t)return n;var r=!1;e=l(e,(function(e){return e=nr(e,t),r||(r=e.length>1),e})),fr(t,Fr(t),n),r&&(n=Te(n,7,Nr));for(var o=e.length;o--;)Yn(n,e[o]);return n})),Xa=jr((function(t,e){return null==t?{}:function(t,e){return An(t,e,(function(e,n){return Xo(t,n)}))}(t,e)})),Qa=Ar(Qo),Za=Ar(Zo),tu=gr((function(t,e,n){return e=e.toLowerCase(),t+(n?ni(e):e)})),eu=gr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nu=gr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),ru=yr("toLowerCase"),ou=gr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),iu=gr((function(t,e,n){return t+(n?" ":"")+au(e)})),su=gr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),au=yr("toUpperCase"),uu=Ln((function(t,e){try{return n(t,B,e)}catch(t){return Do(t)?t:new yi(t)}})),cu=jr((function(t,e){return o(e,(function(e){e=ao(e),xe(t,e,ga(t[e],t))})),t})),lu=br(),fu=br(!0),du=Ln((function(t,e){return function(n){return on(n,t,e)}})),hu=Ln((function(t,e){return function(n){return on(t,n,e)}})),pu=Er(l),mu=Er(s),yu=Er(p),gu=Ir(),_u=Ir(!0),vu=Sr((function(t,e){return t+e}),0),bu=Rr("ceil"),ku=Sr((function(t,e){return t/e}),1),wu=Rr("floor"),Su=Sr((function(t,e){return t*e}),1),Eu=Rr("round"),xu=Sr((function(t,e){return t-e}),0);return w.after=function(t,e){if("function"!=typeof e)throw new wi(z);return t=qo(t),function(){if(--t<1)return e.apply(this,arguments)}},w.ary=xo,w.assign=Fa,w.assignIn=Ua,w.assignInWith=Wa,w.assignWith=Ba,w.at=za,w.before=Io,w.bind=ga,w.bindAll=cu,w.bindKey=_a,w.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ta(t)?t:[t]},w.chain=bo,w.chunk=function(t,e,n){e=(n?Gr(t,e,n):e===B)?1:rs(qo(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,s=pi(Ji(r/e));o<r;)s[i++]=Wn(t,o,o+=e);return s},w.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},w.concat=function(){var t=arguments.length;if(!t)return[];for(var e=pi(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return f(Ta(n)?lr(n):[n],Le(e,1))},w.cond=function(t){var e=null==t?0:t.length,r=Br();return t=e?l(t,(function(t){if("function"!=typeof t[1])throw new wi(z);return[r(t[0]),t[1]]})):[],Ln((function(r){for(var o=-1;++o<e;){var i=t[o];if(n(i[0],this,r))return n(i[1],this,r)}}))},w.conforms=function(t){return function(t){var e=Qo(t);return function(n){return Re(n,t,e)}}(Te(t,1))},w.constant=ii,w.countBy=ua,w.create=function(t,e){var n=xs(t);return null==e?n:Ee(n,e)},w.curry=function t(e,n,r){var o=Mr(e,8,B,B,B,B,B,n=r?B:n);return o.placeholder=t.placeholder,o},w.curryRight=function t(e,n,r){var o=Mr(e,q,B,B,B,B,B,n=r?B:n);return o.placeholder=t.placeholder,o},w.debounce=Co,w.defaults=$a,w.defaultsDeep=Ha,w.defer=va,w.delay=ba,w.difference=Hs,w.differenceBy=qs,w.differenceWith=Vs,w.drop=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=n||e===B?1:qo(e))<0?0:e,r):[]},w.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,0,(e=r-(e=n||e===B?1:qo(e)))<0?0:e):[]},w.dropRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0,!0):[]},w.dropWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!0):[]},w.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Gr(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=qo(n))<0&&(n=-n>o?0:o+n),(r=r===B||r>o?o:qo(r))<0&&(r+=o),r=n>r?0:Vo(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},w.filter=function(t,e){return(Ta(t)?a:Ne)(t,Br(e,3))},w.flatMap=function(t,e){return Le(Eo(t,e),1)},w.flatMapDeep=function(t,e){return Le(Eo(t,e),J)},w.flatMapDepth=function(t,e,n){return n=n===B?1:qo(n),Le(Eo(t,e),n)},w.flatten=ho,w.flattenDeep=function(t){return null!=t&&t.length?Le(t,J):[]},w.flattenDepth=function(t,e){return null!=t&&t.length?Le(t,e=e===B?1:qo(e)):[]},w.flip=function(t){return Mr(t,512)},w.flow=lu,w.flowRight=fu,w.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},w.functions=function(t){return null==t?[]:Fe(t,Qo(t))},w.functionsIn=function(t){return null==t?[]:Fe(t,Zo(t))},w.groupBy=fa,w.initial=function(t){return null!=t&&t.length?Wn(t,0,-1):[]},w.intersection=Ks,w.intersectionBy=Ys,w.intersectionWith=Gs,w.invert=qa,w.invertBy=Va,w.invokeMap=da,w.iteratee=ai,w.keyBy=ha,w.keys=Qo,w.keysIn=Zo,w.map=Eo,w.mapKeys=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,o){xe(n,e(t,r,o),t)})),n},w.mapValues=function(t,e){var n={};return e=Br(e,3),je(t,(function(t,r,o){xe(n,r,e(t,r,o))})),n},w.matches=function(t){return xn(Te(t,1))},w.matchesProperty=function(t,e){return In(t,Te(e,1))},w.memoize=To,w.merge=Ya,w.mergeWith=Ga,w.method=du,w.methodOf=hu,w.mixin=ui,w.negate=Ro,w.nthArg=function(t){return t=qo(t),Ln((function(e){return Tn(e,t)}))},w.omit=Ja,w.omitBy=function(t,e){return ti(t,Ro(Br(e)))},w.once=function(t){return Io(2,t)},w.orderBy=function(t,e,n,r){return null==t?[]:(Ta(e)||(e=null==e?[]:[e]),Ta(n=r?B:n)||(n=null==n?[]:[n]),Rn(t,e,n))},w.over=pu,w.overArgs=ka,w.overEvery=mu,w.overSome=yu,w.partial=wa,w.partialRight=Sa,w.partition=pa,w.pick=Xa,w.pickBy=ti,w.property=li,w.propertyOf=function(t){return function(e){return null==t?B:Be(t,e)}},w.pull=Js,w.pullAll=yo,w.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,Br(n,2)):t},w.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Mn(t,e,B,n):t},w.pullAt=Xs,w.range=gu,w.rangeRight=_u,w.rearg=Ea,w.reject=function(t,e){return(Ta(t)?a:Ne)(t,Ro(Br(e,3)))},w.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Br(e,3);++r<i;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return On(t,o),n},w.rest=function(t,e){if("function"!=typeof t)throw new wi(z);return Ln(t,e=e===B?e:qo(e))},w.reverse=go,w.sampleSize=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:qo(e),(Ta(t)?_e:Pn)(t,e)},w.set=function(t,e,n){return null==t?t:Fn(t,e,n)},w.setWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Fn(t,e,n,r)},w.shuffle=function(t){return(Ta(t)?ve:Un)(t)},w.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Gr(t,e,n)?(e=0,n=r):(e=null==e?0:qo(e),n=n===B?r:qo(n)),Wn(t,e,n)):[]},w.sortBy=ma,w.sortedUniq=function(t){return t&&t.length?Hn(t):[]},w.sortedUniqBy=function(t,e){return t&&t.length?Hn(t,Br(e,2)):[]},w.split=function(t,e,n){return n&&"number"!=typeof n&&Gr(t,e,n)&&(e=n=B),(n=n===B?Z:n>>>0)?(t=Go(t))&&("string"==typeof e||null!=e&&!Da(e))&&!(e=Vn(e))&&D(t)?rr(U(t),0,n):t.split(e,n):[]},w.spread=function(t,e){if("function"!=typeof t)throw new wi(z);return e=null==e?0:rs(qo(e),0),Ln((function(r){var o=r[e],i=rr(r,0,e);return o&&f(i,o),n(t,this,i)}))},w.tail=function(t){var e=null==t?0:t.length;return e?Wn(t,1,e):[]},w.take=function(t,e,n){return t&&t.length?Wn(t,0,(e=n||e===B?1:qo(e))<0?0:e):[]},w.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Wn(t,(e=r-(e=n||e===B?1:qo(e)))<0?0:e,r):[]},w.takeRightWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3),!1,!0):[]},w.takeWhile=function(t,e){return t&&t.length?Jn(t,Br(e,3)):[]},w.tap=function(t,e){return e(t),t},w.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new wi(z);return Po(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Co(t,e,{leading:r,maxWait:e,trailing:o})},w.thru=ko,w.toArray=$o,w.toPairs=Qa,w.toPairsIn=Za,w.toPath=function(t){return Ta(t)?l(t,ao):zo(t)?[t]:lr($s(Go(t)))},w.toPlainObject=Yo,w.transform=function(t,e,n){var r=Ta(t),i=r||Aa(t)||La(t);if(e=Br(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Po(t)&&No(s)?xs(Ui(t)):{}}return(i?o:je)(t,(function(t,r,o){return e(n,t,r,o)})),n},w.unary=function(t){return xo(t,1)},w.union=Qs,w.unionBy=Zs,w.unionWith=ta,w.uniq=function(t){return t&&t.length?Kn(t):[]},w.uniqBy=function(t,e){return t&&t.length?Kn(t,Br(e,2)):[]},w.uniqWith=function(t,e){return e="function"==typeof e?e:B,t&&t.length?Kn(t,B,e):[]},w.unset=function(t,e){return null==t||Yn(t,e)},w.unzip=_o,w.unzipWith=vo,w.update=function(t,e,n){return null==t?t:Gn(t,e,er(n))},w.updateWith=function(t,e,n,r){return r="function"==typeof r?r:B,null==t?t:Gn(t,e,er(n),r)},w.values=ei,w.valuesIn=function(t){return null==t?[]:T(t,Zo(t))},w.without=ea,w.words=oi,w.wrap=function(t,e){return wa(er(e),t)},w.xor=na,w.xorBy=ra,w.xorWith=oa,w.zip=ia,w.zipObject=function(t,e){return Zn(t||[],e||[],ke)},w.zipObjectDeep=function(t,e){return Zn(t||[],e||[],Fn)},w.zipWith=sa,w.entries=Qa,w.entriesIn=Za,w.extend=Ua,w.extendWith=Wa,ui(w,w),w.add=vu,w.attempt=uu,w.camelCase=tu,w.capitalize=ni,w.ceil=bu,w.clamp=function(t,e,n){return n===B&&(n=e,e=B),n!==B&&(n=(n=Ko(n))==n?n:0),e!==B&&(e=(e=Ko(e))==e?e:0),Ce(Ko(t),e,n)},w.clone=function(t){return Te(t,4)},w.cloneDeep=function(t){return Te(t,5)},w.cloneDeepWith=function(t,e){return Te(t,5,e="function"==typeof e?e:B)},w.cloneWith=function(t,e){return Te(t,4,e="function"==typeof e?e:B)},w.conformsTo=function(t,e){return null==e||Re(t,e,Qo(e))},w.deburr=ri,w.defaultTo=function(t,e){return null==t||t!=t?e:t},w.divide=ku,w.endsWith=function(t,e,n){t=Go(t),e=Vn(e);var r=t.length,o=n=n===B?r:Ce(qo(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},w.eq=Ao,w.escape=function(t){return(t=Go(t))&&jt.test(t)?t.replace(Nt,mn):t},w.escapeRegExp=function(t){return(t=Go(t))&&Ht.test(t)?t.replace($t,"\\$&"):t},w.every=function(t,e,n){var r=Ta(t)?s:Oe;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.find=ca,w.findIndex=lo,w.findKey=function(t,e){return m(t,Br(e,3),je)},w.findLast=la,w.findLastIndex=fo,w.findLastKey=function(t,e){return m(t,Br(e,3),Pe)},w.floor=wu,w.forEach=wo,w.forEachRight=So,w.forIn=function(t,e){return null==t?t:Ts(t,Br(e,3),Zo)},w.forInRight=function(t,e){return null==t?t:Rs(t,Br(e,3),Zo)},w.forOwn=function(t,e){return t&&je(t,Br(e,3))},w.forOwnRight=function(t,e){return t&&Pe(t,Br(e,3))},w.get=Jo,w.gt=xa,w.gte=Ia,w.has=function(t,e){return null!=t&&qr(t,e,Ze)},w.hasIn=Xo,w.head=po,w.identity=si,w.includes=function(t,e,n,r){t=Mo(t)?t:ei(t),n=n&&!r?qo(n):0;var o=t.length;return n<0&&(n=rs(o+n,0)),Bo(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&g(t,e,n)>-1},w.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:qo(n);return o<0&&(o=rs(r+o,0)),g(t,e,o)},w.inRange=function(t,e,n){return e=Ho(e),n===B?(n=e,e=0):n=Ho(n),function(t,e,n){return t>=os(e,n)&&t<rs(e,n)}(t=Ko(t),e,n)},w.invoke=Ka,w.isArguments=Ca,w.isArray=Ta,w.isArrayBuffer=Ra,w.isArrayLike=Mo,w.isArrayLikeObject=Oo,w.isBoolean=function(t){return!0===t||!1===t||Fo(t)&&Ge(t)==it},w.isBuffer=Aa,w.isDate=Ma,w.isElement=function(t){return Fo(t)&&1===t.nodeType&&!Wo(t)},w.isEmpty=function(t){if(null==t)return!0;if(Mo(t)&&(Ta(t)||"string"==typeof t||"function"==typeof t.splice||Aa(t)||La(t)||Ca(t)))return!t.length;var e=Fs(t);if(e==lt||e==mt)return!t.size;if(Qr(t))return!kn(t).length;for(var n in t)if(Ti.call(t,n))return!1;return!0},w.isEqual=function(t,e){return hn(t,e)},w.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:B)?n(t,e):B;return r===B?hn(t,e,B,n):!!r},w.isError=Do,w.isFinite=function(t){return"number"==typeof t&&ts(t)},w.isFunction=No,w.isInteger=Lo,w.isLength=jo,w.isMap=Oa,w.isMatch=function(t,e){return t===e||_n(t,e,$r(e))},w.isMatchWith=function(t,e,n){return n="function"==typeof n?n:B,_n(t,e,$r(e),n)},w.isNaN=function(t){return Uo(t)&&t!=+t},w.isNative=function(t){if(Us(t))throw new yi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return vn(t)},w.isNil=function(t){return null==t},w.isNull=function(t){return null===t},w.isNumber=Uo,w.isObject=Po,w.isObjectLike=Fo,w.isPlainObject=Wo,w.isRegExp=Da,w.isSafeInteger=function(t){return Lo(t)&&t>=-X&&t<=X},w.isSet=Na,w.isString=Bo,w.isSymbol=zo,w.isTypedArray=La,w.isUndefined=function(t){return t===B},w.isWeakMap=function(t){return Fo(t)&&Fs(t)==_t},w.isWeakSet=function(t){return Fo(t)&&"[object WeakSet]"==Ge(t)},w.join=function(t,e){return null==t?"":es.call(t,e)},w.kebabCase=eu,w.last=mo,w.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==B&&(o=(o=qo(n))<0?rs(r+o,0):os(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):y(t,v,o,!0)},w.lowerCase=nu,w.lowerFirst=ru,w.lt=ja,w.lte=Pa,w.max=function(t){return t&&t.length?De(t,si,Qe):B},w.maxBy=function(t,e){return t&&t.length?De(t,Br(e,2),Qe):B},w.mean=function(t){return b(t,si)},w.meanBy=function(t,e){return b(t,Br(e,2))},w.min=function(t){return t&&t.length?De(t,si,Sn):B},w.minBy=function(t,e){return t&&t.length?De(t,Br(e,2),Sn):B},w.stubArray=fi,w.stubFalse=di,w.stubObject=function(){return{}},w.stubString=function(){return""},w.stubTrue=function(){return!0},w.multiply=Su,w.nth=function(t,e){return t&&t.length?Tn(t,qo(e)):B},w.noConflict=function(){return tn._===this&&(tn._=Di),this},w.noop=ci,w.now=ya,w.pad=function(t,e,n){t=Go(t);var r=(e=qo(e))?F(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return xr(Xi(o),n)+t+xr(Ji(o),n)},w.padEnd=function(t,e,n){t=Go(t);var r=(e=qo(e))?F(t):0;return e&&r<e?t+xr(e-r,n):t},w.padStart=function(t,e,n){t=Go(t);var r=(e=qo(e))?F(t):0;return e&&r<e?xr(e-r,n)+t:t},w.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),ss(Go(t).replace(qt,""),e||0)},w.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Gr(t,e,n)&&(e=n=B),n===B&&("boolean"==typeof e?(n=e,e=B):"boolean"==typeof t&&(n=t,t=B)),t===B&&e===B?(t=0,e=1):(t=Ho(t),e===B?(e=t,t=0):e=Ho(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=as();return os(t+o*(e-t+Je("1e-"+((o+"").length-1))),e)}return Dn(t,e)},w.reduce=function(t,e,n){var r=Ta(t)?d:S,o=arguments.length<3;return r(t,Br(e,4),n,o,Is)},w.reduceRight=function(t,e,n){var r=Ta(t)?h:S,o=arguments.length<3;return r(t,Br(e,4),n,o,Cs)},w.repeat=function(t,e,n){return e=(n?Gr(t,e,n):e===B)?1:qo(e),Nn(Go(t),e)},w.replace=function(){var t=arguments,e=Go(t[0]);return t.length<3?e:e.replace(t[1],t[2])},w.result=function(t,e,n){var r=-1,o=(e=nr(e,t)).length;for(o||(o=1,t=B);++r<o;){var i=null==t?B:t[ao(e[r])];i===B&&(r=o,i=n),t=No(i)?i.call(t):i}return t},w.round=Eu,w.runInContext=t,w.sample=function(t){return(Ta(t)?ge:jn)(t)},w.size=function(t){if(null==t)return 0;if(Mo(t))return Bo(t)?F(t):t.length;var e=Fs(t);return e==lt||e==mt?t.size:kn(t).length},w.snakeCase=ou,w.some=function(t,e,n){var r=Ta(t)?p:Bn;return n&&Gr(t,e,n)&&(e=B),r(t,Br(e,3))},w.sortedIndex=function(t,e){return zn(t,e)},w.sortedIndexBy=function(t,e,n){return $n(t,e,Br(n,2))},w.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=zn(t,e);if(r<n&&Ao(t[r],e))return r}return-1},w.sortedLastIndex=function(t,e){return zn(t,e,!0)},w.sortedLastIndexBy=function(t,e,n){return $n(t,e,Br(n,2),!0)},w.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=zn(t,e,!0)-1;if(Ao(t[n],e))return n}return-1},w.startCase=iu,w.startsWith=function(t,e,n){return t=Go(t),n=null==n?0:Ce(qo(n),0,t.length),e=Vn(e),t.slice(n,n+e.length)==e},w.subtract=xu,w.sum=function(t){return t&&t.length?E(t,si):0},w.sumBy=function(t,e){return t&&t.length?E(t,Br(e,2)):0},w.template=function(t,e,n){var r=w.templateSettings;n&&Gr(t,e,n)&&(e=B),t=Go(t),e=Wa({},e,r,Or);var o,i,s=Wa({},e.imports,r.imports,Or),a=Qo(s),u=T(s,a),c=0,l=e.interpolate||ae,f="__p += '",d=bi((e.escape||ae).source+"|"+l.source+"|"+(l===Ut?Zt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(Ti.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";t.replace(d,(function(e,n,r,s,a,u){return r||(r=s),f+=t.slice(c,u).replace(ue,O),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(i=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),f+="';\n";var p=Ti.call(e,"variable")&&e.variable;if(p){if(Xt.test(p))throw new yi("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(At,""):f).replace(Mt,"$1").replace(Ot,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=uu((function(){return gi(a,h+"return "+f).apply(B,u)}));if(m.source=f,Do(m))throw m;return m},w.times=function(t,e){if((t=qo(t))<1||t>X)return[];var n=Z,r=os(t,Z);e=Br(e),t-=Z;for(var o=x(r,e);++n<t;)e(n);return o},w.toFinite=Ho,w.toInteger=qo,w.toLength=Vo,w.toLower=function(t){return Go(t).toLowerCase()},w.toNumber=Ko,w.toSafeInteger=function(t){return t?Ce(qo(t),-X,X):0===t?t:0},w.toString=Go,w.toUpper=function(t){return Go(t).toUpperCase()},w.trim=function(t,e,n){if((t=Go(t))&&(n||e===B))return I(t);if(!t||!(e=Vn(e)))return t;var r=U(t),o=U(e);return rr(r,A(r,o),M(r,o)+1).join("")},w.trimEnd=function(t,e,n){if((t=Go(t))&&(n||e===B))return t.slice(0,W(t)+1);if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,0,M(r,U(e))+1).join("")},w.trimStart=function(t,e,n){if((t=Go(t))&&(n||e===B))return t.replace(qt,"");if(!t||!(e=Vn(e)))return t;var r=U(t);return rr(r,A(r,U(e))).join("")},w.truncate=function(t,e){var n=30,r="...";if(Po(e)){var o="separator"in e?e.separator:o;n="length"in e?qo(e.length):n,r="omission"in e?Vn(e.omission):r}var i=(t=Go(t)).length;if(D(t)){var s=U(t);i=s.length}if(n>=i)return t;var a=n-F(r);if(a<1)return r;var u=s?rr(s,0,a).join(""):t.slice(0,a);if(o===B)return u+r;if(s&&(a+=u.length-a),Da(o)){if(t.slice(a).search(o)){var c,l=u;for(o.global||(o=bi(o.source,Go(te.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;u=u.slice(0,f===B?a:f)}}else if(t.indexOf(Vn(o),a)!=a){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},w.unescape=function(t){return(t=Go(t))&&Lt.test(t)?t.replace(Dt,yn):t},w.uniqueId=function(t){var e=++Ri;return Go(t)+e},w.upperCase=su,w.upperFirst=au,w.each=wo,w.eachRight=So,w.first=po,ui(w,function(){var t={};return je(w,(function(e,n){Ti.call(w.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),w.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){w[t].placeholder=w})),o(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===B?1:rs(qo(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=os(n,r.__takeCount__):r.__views__.push({size:os(n,Z),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),o(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;le.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Br(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),o(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");le.prototype[t]=function(){return this.__filtered__?new le(this):this[n](1)}})),le.prototype.compact=function(){return this.filter(si)},le.prototype.find=function(t){return this.filter(t).head()},le.prototype.findLast=function(t){return this.reverse().find(t)},le.prototype.invokeMap=Ln((function(t,e){return"function"==typeof t?new le(this):this.map((function(n){return on(n,t,e)}))})),le.prototype.reject=function(t){return this.filter(Ro(Br(t)))},le.prototype.slice=function(t,e){t=qo(t);var n=this;return n.__filtered__&&(t>0||e<0)?new le(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==B&&(n=(e=qo(e))<0?n.dropRight(-e):n.take(e-t)),n)},le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},le.prototype.toArray=function(){return this.take(Z)},je(le.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=w[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(w.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof le,u=s[0],c=a||Ta(e),l=function(t){var e=o.apply(w,f([t],s));return r&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(a=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=i&&!d,m=a&&!h;if(!i&&c){e=m?e:new le(this);var y=t.apply(e,s);return y.__actions__.push({func:ko,args:[l],thisArg:B}),new ce(y,d)}return p&&m?t.apply(this,s):(y=this.thru(l),p?r?y.value()[0]:y.value():y)})})),o(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Si[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);w.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Ta(o)?o:[],t)}return this[n]((function(n){return e.apply(Ta(n)?n:[],t)}))}})),je(le.prototype,(function(t,e){var n=w[e];if(n){var r=n.name+"";Ti.call(ys,r)||(ys[r]=[]),ys[r].push({name:e,func:n})}})),ys[kr(B,2).name]=[{name:"wrapper",func:B}],le.prototype.clone=function(){var t=new le(this.__wrapped__);return t.__actions__=lr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=lr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=lr(this.__views__),t},le.prototype.reverse=function(){if(this.__filtered__){var t=new le(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},le.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ta(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=os(e,t+s);break;case"takeRight":t=rs(t,e-s)}}return{start:t,end:e}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,c=r?a:s-1,l=this.__iteratees__,f=l.length,d=0,h=os(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return Xn(t,this.__actions__);var p=[];t:for(;u--&&d<h;){for(var m=-1,y=t[c+=e];++m<f;){var g=l[m],_=g.iteratee,v=g.type,b=_(y);if(2==v)y=b;else if(!b){if(1==v)continue t;break t}}p[d++]=y}return p},w.prototype.at=aa,w.prototype.chain=function(){return bo(this)},w.prototype.commit=function(){return new ce(this.value(),this.__chain__)},w.prototype.next=function(){this.__values__===B&&(this.__values__=$o(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?B:this.__values__[this.__index__++]}},w.prototype.plant=function(t){for(var e,n=this;n instanceof Vt;){var r=co(n);r.__index__=0,r.__values__=B,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},w.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof le){var e=t;return this.__actions__.length&&(e=new le(this)),(e=e.reverse()).__actions__.push({func:ko,args:[go],thisArg:B}),new ce(e,this.__chain__)}return this.thru(go)},w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=function(){return Xn(this.__wrapped__,this.__actions__)},w.prototype.first=w.prototype.head,Hi&&(w.prototype[Hi]=function(){return this}),w}();nn?((nn.exports=gn)._=gn,en._=gn):tn._=gn}.call(_x)),ii.exports;var t,e}var qd,Xa,Gd,Za,Yd,Qa,Vd,Ja={};function vx(){return qd||(qd=1,(t=Ja).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),Ja;var t}function Sx(){return Gd||(Gd=1,Xa={}),Xa}function Ex(){if(Yd)return Za;Yd=1;var t=vx(),e=Sx(),n=Array.prototype.push;function r(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function i(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}return Za=function s(a,u,c,l){var f="function"==typeof u,d=u===Object(u);if(d&&(l=c,c=u,u=void 0),null==c)throw new TypeError;l||(l={});var h=!("cap"in l)||l.cap,p=!("curry"in l)||l.curry,m=!("fixed"in l)||l.fixed,y=!("immutable"in l)||l.immutable,g=!("rearg"in l)||l.rearg,_=f?c:e,v="curry"in l&&l.curry,b="fixed"in l&&l.fixed,k="rearg"in l&&l.rearg,w=f?c.runInContext():void 0,S=f?c:{ary:a.ary,assign:a.assign,clone:a.clone,curry:a.curry,forEach:a.forEach,isArray:a.isArray,isError:a.isError,isFunction:a.isFunction,isWeakMap:a.isWeakMap,iteratee:a.iteratee,keys:a.keys,rearg:a.rearg,toInteger:a.toInteger,toPath:a.toPath},E=S.ary,x=S.assign,I=S.clone,C=S.curry,T=S.forEach,R=S.isArray,A=S.isError,M=S.isFunction,O=S.isWeakMap,D=S.keys,N=S.rearg,L=S.toInteger,j=S.toPath,P=D(t.aryMethod),F={castArray:function(t){return function(){var e=arguments[0];return R(e)?t(o(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),o=n.length;return h&&"number"==typeof e?(e=e>2?e-2:1,o&&o<=e?n:r(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!M(n))return t(n,Object(e));var r=[];return T(D(e),(function(t){M(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),T(r,(function(t){var e=t[1];M(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:L(e)+1;return C(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return C(t(e,n),r)}},runInContext:function(t){return function(e){return s(a,t(e),l)}}};function U(e,n){if(h){var o=t.iterateeRearg[e];if(o)return function(t,e){return H(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(N(r(t,n),e),n)}))}(n,o);var i=!f&&t.iterateeAry[e];if(i)return function(t,e){return H(t,(function(t){return"function"==typeof t?r(t,e):t}))}(n,i)}return n}function W(e,r,o){if(m&&(b||!t.skipFixed[e])){var i=t.methodSpread[e],s=i&&i.start;return void 0===s?E(r,o):function(t,e){return function(){for(var r=arguments.length,o=r-1,i=Array(r);r--;)i[r]=arguments[r];var s=i[e],a=i.slice(0,e);return s&&n.apply(a,s),e!=o&&n.apply(a,i.slice(e+1)),t.apply(this,a)}}(r,s)}return r}function B(e,n,r){return g&&r>1&&(k||!t.skipRearg[e])?N(n,t.methodRearg[e]||t.aryRearg[r]):n}function z(t,e){for(var n=-1,r=(e=j(e)).length,o=r-1,i=I(Object(t)),s=i;null!=s&&++n<r;){var a=e[n],u=s[a];null!=u&&!(M(u)||A(u)||O(u))&&(s[a]=I(n==o?u:Object(u))),s=s[a]}return i}function $(e,n){var r=t.aliasToReal[e]||e,o=t.remap[r]||r,i=l;return function(t){var e=f?w:S,a=f?w[o]:n,u=x(x({},i),t);return s(e,r,a,u)}}function H(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=e(r[o]),t.apply(void 0,r)}}function q(e,n,r){var s,a=t.aliasToReal[e]||e,u=n,c=F[a];return c?u=c(n):y&&(t.mutate.array[a]?u=i(n,o):t.mutate.object[a]?u=i(n,function(t){return function(e){return t({},e)}}(n)):t.mutate.set[a]&&(u=i(n,z))),T(P,(function(e){return T(t.aryMethod[e],(function(n){if(a==n){var r=t.methodSpread[a],o=r&&r.afterRearg;return s=o?W(a,B(a,u,e),e):B(a,W(a,u,e),e),s=function(t,e,n){return v||p&&n>1?C(e,n):e}(0,s=U(a,s),e),!1}})),!s})),s||(s=u),s==n&&(s=v?C(s,1):function(){return n.apply(this,arguments)}),s.convert=$(a,n),s.placeholder=n.placeholder=r,s}if(!d)return q(u,c,_);var V=c,K=[];return T(P,(function(e){T(t.aryMethod[e],(function(e){var n=V[t.remap[e]||e];n&&K.push([e,q(e,n,V)])}))})),T(D(V),(function(t){var e=V[t];if("function"==typeof e){for(var n=K.length;n--;)if(K[n][0]==t)return;e.convert=$(t,e),K.push([t,e])}})),T(K,(function(t){V[t[0]]=t[1]})),V.convert=function(t){return V.runInContext.convert(t)(void 0)},V.placeholder=V,T(D(V),(function(e){T(t.realToAlias[e]||[],(function(t){V[t]=V[e]}))})),V},Za}function bx(){if(Vd)return Qa;Vd=1;var t=yx().runInContext();return Qa=Ex()(t,t)}var eu=bx();const Tu={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},wx=t=>{const{title:e,description:n,links:r}=t||{};return!!(e||n||r)},Ix=t=>Object.keys(Tu).some((e=>e==t)),fi=t=>Tu[t]||Tu[500],Kd=t=>{var e,n;if(!t)return fi(500).description;if(eu.isString(t))return t;if("data"in t&&eu.isString(t.data))return t.data;if("data"in t&&null!=(e=t.data)&&e.errorCode)return null==(n=t.data)?void 0:n.message;if("isUnhandledError"in t&&!t.isUnhandledError){const{status:e,data:n}=null==t?void 0:t.error;return(eu.isString(n)?n:null==n?void 0:n.message)||fi(e||500).description}return"message"in t&&t.message?t.message:"error"in t?t.error:"status"in t?fi(t.status).description:void 0},kx="data:image/svg+xml,%3csvg%20width='33'%20height='41'%20viewBox='0%200%2033%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M31.5%201.96817C16.0263%20-2.16393%201.10522%207.69272%201.10522%2017.1195C1.10522%2026.5897%2013.5526%2033.3672%2024.7349%2033.3672'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3cpath%20d='M18.7097%2024.4653C19.0081%2028.8324%2022.5093%2032.5599%2027.7506%2034.751C30.1263%2035.7443%2032.1733%2035.7395%2030.152%2033.6683C28.0252%2031.489%2022.4828%2034.5238%2020.4755%2035.5385C16.906%2037.3428%2011.1341%2039.0819%206.63159%2039.0819'%20stroke='%23E2E8F0'%20stroke-width='2'%20stroke-linecap='round'/%3e%3c/svg%3e",Cx=({linksList:t})=>St.jsxs("div",{className:" relative text-slate-700",children:[St.jsx("h5",{className:"text-sm",children:"Maybe try these instead"}),St.jsx("img",{className:"absolute right-[100%] top-2 mr-1",src:kx}),St.jsx("div",{className:"mt-2",children:t.map((({text:t,link:e})=>St.jsx("a",{className:"mr-6 text-lg underline",href:e,children:t},e)))})]})
28
28
  /**
29
29
  * @remix-run/router v1.15.2
30
30
  *
@@ -34,4 +34,4 @@ var Lf,Pf,Ff,Bf,ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typ
34
34
  * LICENSE.md file in the root directory of this source tree.
35
35
  *
36
36
  * @license MIT
37
- */;var Xd,Jd;function uc(t,e){throw new Error(e)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(Xd||(Xd={})),function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(Jd||(Jd={}));const xp=["post","put","patch","delete"];new Set(xp);const CC=["get",...xp];new Set(CC);const RC=at.createContext(null),TC=at.createContext(null),Cp=at.createContext({outlet:null,matches:[],isDataRoute:!1}),AC=at.createContext(null);function MC(){return at.useContext(TC).navigationType}const OC=at.createContext(null);function DC(t){let e=at.useContext(Cp).outlet;return e&&at.createElement(OC.Provider,{value:t},e)}var Au=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Au||{});function NC(t){let e=at.useContext(RC);return e||uc(),e}function LC(t){let e=at.useContext(Cp);return e||uc(),e}function PC(t){let e=LC(),n=e.matches[e.matches.length-1];return n.route.id||uc(),n.route.id}function FC(){var t;let e=at.useContext(AC),n=NC(Au.UseRouteError),r=PC(Au.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[r]}function BC(t){return DC(t.context)}new Promise((()=>{}));const UC=(t="")=>{const e=/No route matches/gi.test(t);try{const t=MC();e&&"PUSH"===t&&location.reload()}catch(t){Ru.warn("useRoute404Refresh: ",t)}},jC=t=>{switch(!0){case wC(t):return t;case kC(t):return 500===t&&Ru.error("ErrorPage: ",t),fi(t);case t&&!!Kd(t):return{title:Kd(t)};default:return Ru.error("ErrorPage: ",t),fi(500)}},Rp=({error:t})=>{UC(null==t?void 0:t.data);const{title:e,description:n,links:r}=jC(t);return console.trace("Error",t),St.jsx("div",{className:"relative flex min-h-[100vh] items-center justify-center",children:St.jsxs("div",{className:"absolute max-w-[580px] translate-y-[-10%]",children:[St.jsx("img",{className:"mb-3",src:gC}),e&&St.jsx("h1",{className:"mb-[8px] text-[24px] font-bold leading-normal text-slate-700",children:e}),n&&St.jsx("p",{className:"mb-[8px] text-[20px] leading-normal text-slate-700",children:n}),null!=r&&r.length?St.jsx(xC,{linksList:r}):null]})})},HC=()=>{const t=FC();return St.jsx(Rp,{error:t})},WC=at.createContext(null),tu={didCatch:!1,error:null};class zC extends at.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=tu}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:i,reason:"imperative-api"}),this.setState(tu)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==e.error&&$C(t.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(tu))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let s=t;if(i){const t={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)s=e(t);else if(n)s=at.createElement(n,t);else{if(null!==r&&!at.isValidElement(r))throw o;s=r}}return at.createElement(WC.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function $C(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}const qC=()=>St.jsx(zC,{FallbackComponent:Rp,children:St.jsx(BC,{})}),GC=t=>{throw t},VC=t=>{var e;return t&&(null==(e=null==t?void 0:t.data)?void 0:e.errorCode)};export{qC as ErrorBoundaryLayout,Rp as ErrorPage,HC as RouterErrorPage,fi as getErrorByStatusCode,Kd as getErrorMsg,VC as getServerApiErrorCode,GC as throwError};
37
+ */;var Jd,Xd;function uc(t,e){throw new Error(e)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(Jd||(Jd={})),function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(Xd||(Xd={}));const Cp=["post","put","patch","delete"];new Set(Cp);const xx=["get",...Cp];new Set(xx);const Rx=at.createContext(null),Tx=at.createContext(null),xp=at.createContext({outlet:null,matches:[],isDataRoute:!1}),Ax=at.createContext(null);function Mx(){return at.useContext(Tx).navigationType}const Ox=at.createContext(null);function Dx(t){let e=at.useContext(xp).outlet;return e&&at.createElement(Ox.Provider,{value:t},e)}var Au=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Au||{});function Nx(t){let e=at.useContext(Rx);return e||uc(),e}function Lx(t){let e=at.useContext(xp);return e||uc(),e}function Px(t){let e=Lx(),n=e.matches[e.matches.length-1];return n.route.id||uc(),n.route.id}function Fx(){var t;let e=at.useContext(Ax),n=Nx(Au.UseRouteError),r=Px(Au.UseRouteError);return void 0!==e?e:null==(t=n.errors)?void 0:t[r]}function Bx(t){return Dx(t.context)}new Promise((()=>{}));const jx=(t="")=>{const e=/No route matches/gi.test(t);try{const t=Mx();e&&"PUSH"===t&&location.reload()}catch(t){Ru.warn("useRoute404Refresh: ",t)}},Ux=t=>{switch(!0){case wx(t):return t;case Ix(t):return 500===t&&Ru.error("ErrorPage: ",t),fi(t);case t&&!!Kd(t):return{title:Kd(t)};default:return Ru.error("ErrorPage: ",t),fi(500)}},Rp=({error:t})=>{jx(null==t?void 0:t.data);const{title:e,description:n,links:r}=Ux(t);return console.trace("Error",t),St.jsx("div",{className:"relative flex min-h-[100vh] items-center justify-center",children:St.jsxs("div",{className:"absolute max-w-[580px] translate-y-[-10%]",children:[St.jsx("img",{className:"mb-3",src:gx}),e&&St.jsx("h1",{className:"mb-2 text-lg font-semibold leading-normal text-slate-700",children:e}),n&&St.jsx("p",{className:"mb-2 text-xl leading-normal text-slate-700",children:n}),null!=r&&r.length?St.jsx(Cx,{linksList:r}):null]})})},Hx=()=>{const t=Fx();return St.jsx(Rp,{error:t})},Wx=at.createContext(null),tu={didCatch:!1,error:null};class zx extends at.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=tu}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:o,reason:"imperative-api"}),this.setState(tu)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==e.error&&$x(t.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(tu))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let s=t;if(o){const t={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)s=e(t);else if(n)s=at.createElement(n,t);else{if(null!==r&&!at.isValidElement(r))throw i;s=r}}return at.createElement(Wx.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}}function $x(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}const qx=()=>St.jsx(zx,{FallbackComponent:Rp,children:St.jsx(Bx,{})}),Gx=t=>{throw t},Yx=t=>{var e;return t&&(null==(e=null==t?void 0:t.data)?void 0:e.errorCode)};export{qx as ErrorBoundaryLayout,Rp as ErrorPage,Hx as RouterErrorPage,fi as getErrorByStatusCode,Kd as getErrorMsg,Yx as getServerApiErrorCode,Gx as throwError};