/*! For license information please see 702.56f00483cd24eadf4784.js.LICENSE.txt */ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e6601ee-ed00-43db-9e83-5e55c98f95cc",e._sentryDebugIdIdentifier="sentry-dbid-2e6601ee-ed00-43db-9e83-5e55c98f95cc")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"b9199a8ea725324f74fc9eb2517ece585802cf36"},(self.webpackChunktadaam_tenant_v3=self.webpackChunktadaam_tenant_v3||[]).push([[702],{8100:(e,t,n)=>{"use strict";n.d(t,{D3:()=>be,tw:()=>ve});var r=n(7294),o=n(5108),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?setTimeout(n,t):n()}}window.addEventListener("storage",a),e.addToWaiting(a);var s=setTimeout(a,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(a=n.getItem(i))?[2]:(a=JSON.parse(a)).id!==this.id?[3,2]:[4,f.default().lock(a.iat)];case 1:r.sent(),this.acquiredIatSet.delete(a.iat),n.removeItem(i),f.default().unlock(a.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,a=0;aDate.now();class v extends Error{constructor(e,t){super(t),this.error=e,this.error_description=t,Object.setPrototypeOf(this,v.prototype)}static fromPayload({error:e,error_description:t}){return new v(e,t)}}class b extends v{constructor(e,t,n,r=null){super(e,t),this.state=n,this.appState=r,Object.setPrototypeOf(this,b.prototype)}}class x extends v{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,x.prototype)}}class w extends x{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,w.prototype)}}class k extends v{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,k.prototype)}}class S extends v{constructor(e,t,n){super(e,t),this.mfa_token=n,Object.setPrototypeOf(this,S.prototype)}}class C extends v{constructor(e,t){super("missing_refresh_token",`Missing Refresh Token (audience: '${A(e,["default"])}', scope: '${A(t)}')`),this.audience=e,this.scope=t,Object.setPrototypeOf(this,C.prototype)}}function A(e,t=[]){return e&&!t.includes(e)?e:""}const E=()=>window.crypto,T=()=>{let e="";return Array.from(E().getRandomValues(new Uint8Array(43))).forEach((t=>e+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~."[t%66])),e},$=e=>btoa(e),P=e=>{var{clientId:t}=e,n=c(e,["clientId"]);return new URLSearchParams((e=>Object.keys(e).filter((t=>void 0!==e[t])).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{}))(Object.assign({client_id:t},n))).toString()},O=e=>(e=>decodeURIComponent(atob(e).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),I=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},R=async(e,t,n,r,o,i,a=1e4)=>o?(async(e,t,n,r,o,i,a)=>{return s={auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:a},l=i,new Promise((function(e,t){const n=new MessageChannel;n.port1.onmessage=function(r){r.data.error?t(new Error(r.data.error)):e(r.data),n.port1.close()},l.postMessage(s,[n.port2])}));var s,l})(e,t,n,r,a,o,i):(async(e,t,n)=>{const r=new AbortController;let o;return t.signal=r.signal,Promise.race([I(e,t),new Promise(((e,t)=>{o=setTimeout((()=>{r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((()=>{clearTimeout(o)}))})(e,r,a);async function M(e,t){var{baseUrl:n,timeout:r,audience:o,scope:i,auth0Client:a,useFormData:s}=e,l=c(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?P(l):JSON.stringify(l);return await async function(e,t,n,r,o,i,a){let s,l=null;for(let c=0;c<3;c++)try{s=await R(e,n,r,o,i,a,t),l=null;break}catch(e){l=e}if(l)throw l;const u=s.json,{error:d,error_description:h}=u,f=c(u,["error","error_description"]),{ok:p}=s;if(!p){const t=h||`HTTP error. Unable to fetch ${e}`;if("mfa_required"===d)throw new S(d,t,f.mfa_token);if("missing_refresh_token"===d)throw new C(n,r);throw new v(d||"request_error",t)}return f}(`${n}/oauth/token`,r,o||"default",i,{method:"POST",body:u,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||m))}},t,s)}const L=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class _{constructor(e,t="@@auth0spajs@@",n){this.prefix=t,this.suffix=n,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[t,n,r,o]=e.split("::");return new _({clientId:n,scope:o,audience:r},t)}static fromCacheEntry(e){const{scope:t,audience:n,client_id:r}=e;return new _({scope:t,audience:n,clientId:r})}}class D{set(e,t){localStorage.setItem(e,JSON.stringify(t))}get(e){const t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter((e=>e.startsWith("@@auth0spajs@@")))}}class N{constructor(){this.enclosedCache=function(){let e={};return{set(t,n){e[t]=n},get(t){const n=e[t];if(n)return n},remove(t){delete e[t]},allKeys:()=>Object.keys(e)}}()}}class F{constructor(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n||y}async setIdToken(e,t,n){var r;const o=this.getIdTokenCacheKey(e);await this.cache.set(o,{id_token:t,decodedToken:n}),await(null===(r=this.keyManifest)||void 0===r?void 0:r.add(o))}async getIdToken(e){const t=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!t&&e.scope&&e.audience){const t=await this.get(e);if(!t)return;if(!t.id_token||!t.decodedToken)return;return{id_token:t.id_token,decodedToken:t.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(e,t=0){var n;let r=await this.cache.get(e.toKey());if(!r){const t=await this.getCacheKeys();if(!t)return;const n=this.matchExistingCacheKey(e,t);n&&(r=await this.cache.get(n))}if(!r)return;const o=await this.nowProvider(),i=Math.floor(o/1e3);return r.expiresAt-t!e||t.includes(e))).reduce((async(e,t)=>{await e,await this.cache.remove(t)}),Promise.resolve()),await(null===(t=this.keyManifest)||void 0===t?void 0:t.clear()))}async wrapCacheEntry(e){const t=await this.nowProvider();return{body:e,expiresAt:Math.floor(t/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?null===(e=await this.keyManifest.get())||void 0===e?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new _({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,t){return t.filter((t=>{var n;const r=_.fromKey(t),o=new Set(r.scope&&r.scope.split(" ")),i=(null===(n=e.scope)||void 0===n?void 0:n.split(" "))||[],a=r.scope&&i.reduce(((e,t)=>e&&o.has(t)),!0);return"@@auth0spajs@@"===r.prefix&&r.clientId===e.clientId&&r.audience===e.audience&&a}))[0]}}class j{constructor(e,t,n){this.storage=e,this.clientId=t,this.cookieDomain=n,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const B=e=>"number"==typeof e,z=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var V=h((function(e,t){var n=u&&u.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;nG.get(e)||G.get(`_legacy_${e}`),save(e,t,n){let r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),W(`_legacy_${e}`,JSON.stringify(t),r),G.save(e,t,n)},remove(e,t){let n={};(null==t?void 0:t.cookieDomain)&&(n.domain=t.cookieDomain),H(e,n),G.remove(e,t),G.remove(`_legacy_${e}`,t)}},Y={get(e){if("undefined"==typeof sessionStorage)return;const t=sessionStorage.getItem(e);return null!=t?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var K,Z=function(e){return K=K||function(e,t,n){var r=function(e,t){var n=atob(e);return n}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg=="),o=r.indexOf("\n",10)+1,i=r.substring(o)+"",a=new Blob([i],{type:"application/javascript"});return URL.createObjectURL(a)}(),new Worker(K,e)};const X={};class J{constructor(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var t;const n=new Set((null===(t=await this.cache.get(this.manifestKey))||void 0===t?void 0:t.keys)||[]);n.add(e),await this.cache.set(this.manifestKey,{keys:[...n]})}async remove(e){const t=await this.cache.get(this.manifestKey);if(t){const n=new Set(t.keys);return n.delete(e),n.size>0?await this.cache.set(this.manifestKey,{keys:[...n]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const Q={memory:()=>(new N).enclosedCache,localstorage:()=>new D},ee=e=>Q[e],te=e=>{const{openUrl:t,onRedirect:n}=e,r=c(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:!1===t||t?t:n})},ne=new p;class re{constructor(e){let t,n;if(this.userCache=(new N).enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await ne.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),"undefined"!=typeof window&&(()=>{if(!E())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===E().subtle)throw new Error("\n auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.\n ")})(),e.cache&&e.cacheLocation&&o.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)n=e.cache;else{if(t=e.cacheLocation||"memory",!ee(t))throw new Error(`Invalid cache location "${t}"`);n=ee(t)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?G:q,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(e=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const r=e.useCookiesForTransactions?this.cookieStorage:Y;var i;this.scope=L("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new j(r,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||y,this.cacheManager=new F(n,n.allKeys?void 0:new J(n,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((e,t)=>e?e.startsWith("https://")?e:`https://${e}/`:`${t}/`)(this.options.issuer,this.domainUrl),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===t&&(this.worker=new Z)}_url(e){const t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||m)));return`${this.domainUrl}${e}&auth0Client=${t}`}_authorizeUrl(e){return this._url(`/authorize?${P(e)}`)}async _verifyIdToken(e,t,n){const r=await this.nowProvider();return(e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(e=>{const t=e.split("."),[n,r,o]=t;if(3!==t.length||!n||!r||!o)throw new Error("ID token could not be decoded");const i=JSON.parse(O(r)),a={__raw:e},s={};return Object.keys(i).forEach((e=>{a[e]=i[e],z.includes(e)||(s[e]=i[e])})),{encoded:{header:n,payload:r,signature:o},header:JSON.parse(O(n)),claims:a,user:s}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!B(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(null==t.claims.exp||!B(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!B(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0);if(o.setUTCSeconds(t.claims.exp+n),r>o)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${o})`);if(null!=t.claims.nbf&&B(t.claims.nbf)){const e=new Date(0);if(e.setUTCSeconds(t.claims.nbf-n),ro)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${o}`)}if(e.organization){const n=e.organization.trim();if(n.startsWith("org_")){const e=n;if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e!==t.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${e}", found "${t.claims.org_id}"`)}else{const e=n.toLowerCase();if(!t.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(e!==t.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${e}", found "${t.claims.org_name}"`)}}return t})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:t,organization:n,leeway:this.options.leeway,max_age:(o=this.options.authorizationParams.max_age,"string"!=typeof o?o:parseInt(o,10)||void 0),now:r});var o}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,t,n){const r=$(T()),o=$(T()),i=T(),a=(e=>{const t=new Uint8Array(e);return(e=>{const t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(e=>t[e]))})(window.btoa(String.fromCharCode(...Array.from(t))))})(await(async e=>{const t=E().subtle.digest({name:"SHA-256"},(new TextEncoder).encode(e));return await t})(i)),s=((e,t,n,r,o,i,a,s)=>Object.assign(Object.assign(Object.assign({client_id:e.clientId},e.authorizationParams),n),{scope:L(t,n.scope),response_type:"code",response_mode:s||"query",state:r,nonce:o,redirect_uri:a||e.authorizationParams.redirect_uri,code_challenge:i,code_challenge_method:"S256"}))(this.options,this.scope,e,r,o,a,e.redirect_uri||this.options.authorizationParams.redirect_uri||n,null==t?void 0:t.response_mode),l=this._authorizeUrl(s);return{nonce:o,code_verifier:i,scope:s.scope,audience:s.audience||"default",redirect_uri:s.redirect_uri,state:r,url:l}}async loginWithPopup(e,t){var n;if(e=e||{},!(t=t||{}).popup&&(t.popup=(e=>{const t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${t},top=${n},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const r=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=r.url;const o=await(e=>new Promise(((t,n)=>{let r;const o=setInterval((()=>{e.popup&&e.popup.closed&&(clearInterval(o),clearTimeout(i),window.removeEventListener("message",r,!1),n(new k(e.popup)))}),1e3),i=setTimeout((()=>{clearInterval(o),n(new w(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(a){if(a.data&&"authorization_response"===a.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),a.data.response.error)return n(v.fromPayload(a.data.response));t(a.data.response)}},window.addEventListener("message",r)})))(Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(r.state!==o.state)throw new v("state_mismatch","Invalid state");const i=(null===(n=e.authorizationParams)||void 0===n?void 0:n.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:r.redirect_uri},{nonceIn:r.nonce,organization:i})}async getUser(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.user}async getIdTokenClaims(){var e;const t=await this._getIdTokenFromCache();return null===(e=null==t?void 0:t.decodedToken)||void 0===e?void 0:e.claims}async loginWithRedirect(e={}){var t;const n=te(e),{openUrl:r,fragment:o,appState:i}=n,a=c(n,["openUrl","fragment","appState"]),s=(null===(t=a.authorizationParams)||void 0===t?void 0:t.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:u}=l,d=c(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:i}),s&&{organization:s}));const h=o?`${u}#${o}`:u;r?await r(h):window.location.assign(h)}async handleRedirectCallback(e=window.location.href){const t=e.split("?").slice(1);if(0===t.length)throw new Error("There are no query params available for parsing.");const{state:n,code:r,error:o,error_description:i}=(e=>{e.indexOf("#")>-1&&(e=e.substring(0,e.indexOf("#")));const t=new URLSearchParams(e);return{state:t.get("state"),code:t.get("code")||void 0,error:t.get("error")||void 0,error_description:t.get("error_description")||void 0}})(t.join("")),a=this.transactionManager.get();if(!a)throw new v("missing_transaction","Invalid state");if(this.transactionManager.remove(),o)throw new b(o,i||o,n,a.appState);if(!a.code_verifier||a.state&&a.state!==n)throw new v("state_mismatch","Invalid state");const s=a.organization,l=a.nonce,c=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:r},c?{redirect_uri:c}:{}),{nonceIn:l,organization:s}),{appState:a.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch(e){}}async getTokenSilently(e={}){var t;const n=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:L(this.scope,null===(t=e.authorizationParams)||void 0===t?void 0:t.scope)})}),r=await((e,t)=>{let n=X[t];return n||(n=e().finally((()=>{delete X[t],n=null})),X[t]=n),n})((()=>this._getTokenSilently(n)),`${this.options.clientId}::${n.authorizationParams.audience}::${n.authorizationParams.scope}`);return e.detailedResponse?r:null==r?void 0:r.access_token}async _getTokenSilently(e){const{cacheMode:t}=e,n=c(e,["cacheMode"]);if("off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}if("cache-only"!==t){if(!await(async(e,t=3)=>{for(let n=0;nne.acquireLock("auth0.lock.getTokenSilently",5e3)),10))throw new x;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),"off"!==t){const e=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(e)return e}const e=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(n):await this._getTokenFromIFrame(n),{id_token:r,access_token:o,oauthTokenScope:i,expires_in:a}=e;return Object.assign(Object.assign({id_token:r,access_token:o},i?{scope:i}:null),{expires_in:a})}finally{await ne.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},t={}){var n;const r=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:L(this.scope,null===(n=e.authorizationParams)||void 0===n?void 0:n.scope)})});return t=Object.assign(Object.assign({},g),t),await this.loginWithPopup(r,t),(await this.cacheManager.get(new _({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){null!==e.clientId?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const t=e.logoutParams||{},{federated:n}=t,r=c(t,["federated"]),o=n?"&federated":"";return this._url(`/v2/logout?${P(Object.assign({clientId:e.clientId},r))}`)+o}async logout(e={}){const t=te(e),{openUrl:n}=t,r=c(t,["openUrl"]);null===e.clientId?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const o=this._buildLogoutUrl(r);n?await n(o):!1!==n&&window.location.assign(o)}async _getTokenFromIFrame(e){const t=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),n=this.cookieStorage.get(this.orgHintCookieName);n&&!t.organization&&(t.organization=n);const{url:r,state:o,nonce:i,code_verifier:a,redirect_uri:s,scope:l,audience:c}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new v("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const n=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((e,t,n=60)=>new Promise(((r,o)=>{const i=window.document.createElement("iframe");i.setAttribute("width","0"),i.setAttribute("height","0"),i.style.display="none";const a=()=>{window.document.body.contains(i)&&(window.document.body.removeChild(i),window.removeEventListener("message",s,!1))};let s;const l=setTimeout((()=>{o(new x),a()}),1e3*n);s=function(e){if(e.origin!=t)return;if(!e.data||"authorization_response"!==e.data.type)return;const n=e.source;n&&n.close(),e.data.response.error?o(v.fromPayload(e.data.response)):r(e.data.response),clearTimeout(l),window.removeEventListener("message",s,!1),setTimeout(a,2e3)},window.addEventListener("message",s,!1),window.document.body.appendChild(i),i.setAttribute("src",e)})))(r,this.domainUrl,n);if(o!==u.state)throw new v("state_mismatch","Invalid state");const d=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:a,code:u.code,grant_type:"authorization_code",redirect_uri:s,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:t.organization});return Object.assign(Object.assign({},d),{scope:l,oauthTokenScope:d.scope,audience:c})}catch(e){throw"login_required"===e.error&&this.logout({openUrl:!1}),e}}async _getTokenUsingRefreshToken(e){const t=await this.cacheManager.get(new _({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new C(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const n=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,r="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null;try{const o=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),r&&{timeout:r}));return Object.assign(Object.assign({},o),{scope:e.authorizationParams.scope,oauthTokenScope:o.scope,audience:e.authorizationParams.audience||"default"})}catch(t){if((t.message.indexOf("Missing Refresh Token")>-1||t.message&&t.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw t}}async _saveEntryInCache(e){const{id_token:t,decodedToken:n}=e,r=c(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:n}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(r)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",t=await this.cacheManager.getIdToken(new _({clientId:this.options.clientId,audience:e,scope:this.scope})),n=this.userCache.get("@@user@@");return t&&t.id_token===(null==n?void 0:n.id_token)?n:(this.userCache.set("@@user@@",t),t)}async _getEntryFromCache({scope:e,audience:t,clientId:n}){const r=await this.cacheManager.get(new _({scope:e,audience:t,clientId:n}),60);if(r&&r.access_token){const{access_token:e,oauthTokenScope:t,expires_in:n}=r,o=await this._getIdTokenFromCache();return o&&Object.assign(Object.assign({id_token:o.id_token,access_token:e},t?{scope:t}:null),{expires_in:n})}}async _requestToken(e,t){const{nonceIn:n,organization:r}=t||{},o=await M(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),i=await this._verifyIdToken(o.id_token,n,r);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:i,scope:e.scope,audience:e.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(r||i.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:i})}}var oe={isAuthenticated:!1,isLoading:!0},ie=function(){throw new Error("You forgot to wrap your component in .")},ae=a(a({},oe),{buildAuthorizeUrl:ie,buildLogoutUrl:ie,getAccessTokenSilently:ie,getAccessTokenWithPopup:ie,getIdTokenClaims:ie,loginWithRedirect:ie,loginWithPopup:ie,logout:ie,handleRedirectCallback:ie}),se=(0,r.createContext)(ae),le=function(e){function t(n,r){var o=e.call(this,r||n)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),ce=/[?&]code=[^&]+/,ue=/[?&]state=[^&]+/,de=/[?&]error=[^&]+/,he=function(e){return function(t){return t instanceof Error?t:null!==t&&"object"==typeof t&&"error"in t&&"string"==typeof t.error?"error_description"in t&&"string"==typeof t.error_description?new le(t.error,t.error_description):new le(t.error):new Error(e)}},fe=he("Login failed"),pe=he("Get access token failed"),ge=function(e){var t;(null==e?void 0:e.redirectUri)&&(o.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),(null===(t=null==e?void 0:e.authorizationParams)||void 0===t?void 0:t.redirectUri)&&(o.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},me=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return a(a({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return a(a({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:a(a({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return a(a({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return a(a({},e),{isLoading:!1,error:t.error})}},ye=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},ve=function(e){var t=e.children,n=e.skipRedirectCallback,o=e.onRedirectCallback,i=void 0===o?ye:o,c=e.context,u=void 0===c?se:c,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>i});var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},2599:(e,t,n)=>{"use strict";n.d(t,{Ep:()=>h,J0:()=>l,LX:()=>T,RQ:()=>M,WK:()=>F,X3:()=>N,Zn:()=>P,Zq:()=>I,aU:()=>r,cP:()=>f,fp:()=>g,lX:()=>s,pC:()=>R});var r,o=n(5108);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.removeEventListener(a,v),g=null}},createHref:e=>t(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=r.Push;let o=d(x.location,e,t);n&&n(o,e),m=y()+1;let i=u(o,m),a=x.createHref(o);try{f.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(a)}c&&g&&g({action:p,location:x.location,delta:1})},replace:function(e,t){p=r.Replace;let o=d(x.location,e,t);n&&n(o,e),m=y();let i=u(o,m),a=x.createHref(o);f.replaceState(i,"",a),c&&g&&g({action:p,location:x.location,delta:0})},go:e=>f.go(e)};return x}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return d("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){void 0!==o&&o.warn(t);try{throw new Error(t)}catch(e){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,r){return void 0===n&&(n=null),i({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?f(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var p;function g(e,t,n){void 0===n&&(n="/");let r=P(("string"==typeof t?f(t):t).pathname||"/",n);if(null==r)return null;let o=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(l(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=M([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),m(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:A(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))o(e,t,n);else o(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=y(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const v=/^:\w+$/,b=3,x=2,w=1,k=10,S=-2,C=e=>"*"===e;function A(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=S),t&&(r+=x),n.filter((e=>!C(e))).reduce(((e,t)=>e+(v.test(t)?b:""===t?w:k)),r)}function E(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return c(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l||"",r),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function $(e){try{return decodeURI(e)}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function O(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function R(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=f(e):(o=i({},e),l(!o.pathname||!o.pathname.includes("?"),O("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),O("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),O("#","search","hash",o)));let a,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(r||null==c)a=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?f(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:_(r),hash:D(o)}}(o,a),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const M=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class N extends Error{}function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const j=["post","put","patch","delete"],B=(new Set(j),["get",...j]);new Set(B),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},5363:(e,t,n)=>{"use strict";n.d(t,{PR:()=>S,to:()=>A,$A:()=>C,_j:()=>E});var r=n(2343),o=n(1738),i=n(7513);const a=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}};var s=n(3821);const l=()=>s.WINDOW.__WEB_VITALS_POLYFILL__?s.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=s.WINDOW.performance.timing,t=s.WINDOW.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):s.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],c=()=>{const e=l();return e&&e.activationStart||0},u=(e,t)=>{const n=l();let r="navigate";return n&&(r=s.WINDOW.document.prerendering||c()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},d=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}};var h=n(188);const f=e=>{const t=u("CLS",0);let n,r=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const i=o[0],a=o[o.length-1];r&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-i.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e]),r>t.value&&(t.value=r,t.entries=o,n&&n())}}))},s=d("layout-shift",i);if(s){n=a(e,t);const r=()=>{i(s.takeRecords()),n(!0)};return(0,h.u)(r),r}};var p=n(5029);const g=e=>{const t=(0,p.Y)(),n=u("FID");let r;const o=e=>{e.startTime{e.forEach(o)},s=d("first-input",i);r=a(e,n),s&&(0,h.u)((()=>{i(s.takeRecords()),s.disconnect()}),!0)},m={},y=e=>{const t=(0,p.Y)(),n=u("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-c(),0);e{m[n.id]||(o(i.takeRecords()),i.disconnect(),m[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),(0,h.u)(t,!0),t}},v={},b={};let x,w,k;function S(e,t=!1){return I("cls",e,$,x,t)}function C(e,t=!1){return I("lcp",e,O,k,t)}function A(e){return I("fid",e,P,w)}function E(e,t){return R(e,t),b[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),d(e,(t=>{T(e,{entries:t})}),t)}(e),b[e]=!0),M(e,t)}function T(e,t){const n=v[e];if(n&&n.length)for(const a of n)try{a(t)}catch(t){i.X&&r.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.$P)(a)}\nError:`,t)}}function $(){return f((e=>{T("cls",{metric:e}),x=e}))}function P(){return g((e=>{T("fid",{metric:e}),w=e}))}function O(){return y((e=>{T("lcp",{metric:e}),k=e}))}function I(e,t,n,r,o=!1){let i;return R(e,t),b[e]||(i=n(),b[e]=!0),r&&t({metric:r}),M(e,t,o?i:void 0)}function R(e,t){v[e]=v[e]||[],v[e].push(t)}function M(e,t,n){return()=>{n&&n();const r=v[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}},3821:(e,t,n)=>{"use strict";n.d(t,{WINDOW:()=>r});const r=n(1235).GLOBAL_OBJ},5029:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var r=n(3821),o=n(188);let i=-1;const a=()=>(i<0&&(i="hidden"!==r.WINDOW.document.visibilityState||r.WINDOW.document.prerendering?1/0:0,(0,o.u)((({timeStamp:e})=>{i=e}),!0)),{get firstHiddenTime(){return i}})},188:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(3821);const o=(e,t)=>{const n=o=>{"pagehide"!==o.type&&"hidden"!==r.WINDOW.document.visibilityState||(e(o),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}},7513:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},6891:(e,t,n)=>{"use strict";n.d(t,{Wz:()=>c,m9:()=>s,re:()=>u});var r=n(4487),o=n(1235),i=n(535),a=n(2844);const s=o.GLOBAL_OBJ;let l=0;function c(){return l>0}function u(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,i.HK)(e))return e}catch(t){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const r=o.map((e=>u(e,t)));return e.apply(this,r)}catch(e){throw l++,setTimeout((()=>{l--})),(0,r.$e)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,r.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,i.$Q)(o,e),(0,i.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}},807:(e,t,n)=>{"use strict";n.d(t,{W:()=>b,Q:()=>k});var r=n(292),o=n(2343),i=n(2844),a=n(7597),s=n(6893),l=n(8725),c=n(409),u=n(535);var d=n(1703),h=n(4487),f=n(5659),p=n(2967);var g=n(9015),m=n(454),y=n(8942);const v="Not capturing exception because it's already been captured.";class b{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,r.vK)(e.dsn):d.X&&o.kg.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,u._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,i.YO)(e))return void(d.X&&o.kg.log(v));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=(0,a.Le)(e)?e:String(e),s=(0,a.pt)(e)?this.eventFromMessage(i,t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&(0,i.YO)(t.originalException))return void(d.X&&o.kg.log(v));let r=t&&t.event_id;const a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,a||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?d.X&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,g.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,s.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return d.X&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];(0,p.m7)(this,e,this._integrations),t||(0,p.uf)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=(0,l.HY)(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=(0,l.Cd)(e,o,r,t);delete e.sdkProcessingMetadata;const s=[{type:i},e];return(0,l.Jd)(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,l.BO)(n,(0,l.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,o){const i=(0,l.HY)(n),a={sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!o&&t&&{dsn:(0,r.RA)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,l.Jd)(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;d.X&&o.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){d.X&&o.kg.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,o){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),o&&t&&(i.dsn=(0,r.RA)(t));const a=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return(0,l.Jd)(i,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,p.q4)(this,e),(0,p.uf)(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,g.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new s.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,f.aF)()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(0,y.R)(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const s=a||(0,m._)(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(d.X){const t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=w(e),l=x(e),u=e.type||"error",d=`before send for type \`${u}\``;if(l&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),(0,s.$2)(new c.b(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const h="replay_event"===u?"replay":u,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",h,e),new c.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return x(t)&&r?r(t,n):w(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,a.J8)(e))return e.then((e=>{if(!(0,a.PO)(e)&&null!==e)throw new c.b(n);return e}),(e=>{throw new c.b(`${t} rejected with ${e}`)}));if(!(0,a.PO)(e)&&null!==e)throw new c.b(n);return e}(o,d)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",h,e),new c.b(`${d} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof c.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new c.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{d.X&&o.kg.error("Error while sending event:",e)}));d.X&&o.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function x(e){return void 0===e.type}function w(e){return"transaction"===e.type}function k(e){const t=(0,h.s3)();t&&t.addEventProcessor&&t.addEventProcessor(e)}},1131:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="production"},1703:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},1195:(e,t,n)=>{"use strict";n.d(t,{RP:()=>u,cc:()=>c,fH:()=>l});var r=n(1235),o=n(6893),i=n(2343),a=n(7597),s=n(1703);function l(){return(0,r.Y)("globalEventProcessors",(()=>[]))}function c(e){l().push(e)}function u(e,t,n,r=0){return new o.cW(((o,l)=>{const c=e[r];if(null===t||"function"!=typeof c)o(t);else{const d=c({...t},n);s.X&&c.id&&null===d&&i.kg.log(`Event processor "${c.id}" dropped event`),(0,a.J8)(d)?d.then((t=>u(e,t,n,r+1).then(o))).then(null,l):u(e,d,n,r+1).then(o).then(null,l)}}))}},4487:(e,t,n)=>{"use strict";n.d(t,{$e:()=>h,Tb:()=>l,cg:()=>v,eN:()=>c,nZ:()=>p,n_:()=>u,s3:()=>f,v:()=>d,yj:()=>g});var r=n(1235),o=n(1131),i=n(5659),a=n(9015),s=n(8942);function l(e,t){return(0,i.Gd)().captureException(e,(0,s.U0)(t))}function c(e,t){return(0,i.Gd)().captureEvent(e,t)}function u(e,t){(0,i.Gd)().addBreadcrumb(e,t)}function d(e,t){(0,i.Gd)().setContext(e,t)}function h(...e){const t=(0,i.Gd)();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function f(){return(0,i.Gd)().getClient()}function p(){return(0,i.Gd)().getScope()}function g(e){const t=f(),n=(0,i.aF)(),s=p(),{release:l,environment:c=o.J}=t&&t.getOptions()||{},{userAgent:u}=r.GLOBAL_OBJ.navigator||{},d=(0,a.Hv)({release:l,environment:c,user:s.getUser()||n.getUser(),...u&&{userAgent:u},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,a.CT)(h,{status:"exited"}),m(),n.setSession(d),s.setSession(d),d}function m(){const e=(0,i.aF)(),t=p(),n=t.getSession()||e.getSession();n&&(0,a.RJ)(n),y(),e.setSession(),t.setSession()}function y(){const e=(0,i.aF)(),t=p(),n=f(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function v(e=!1){e?m():y()}},5659:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>v,aF:()=>b,cu:()=>m});var r=n(7597),o=n(2844),i=n(1170),a=n(2343),s=n(1235),l=n(1131),c=n(1703),u=n(350),d=n(9015),h=n(105);const f=parseFloat(h.J),p=100;class g{constructor(e,t,n,r=f){let o,i;this._version=r,t?o=t:(o=new u.sX,o.setClient(e)),n?i=n:(i=new u.sX,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.DM)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.DM)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=p}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const l={timestamp:(0,i.yW)(),...e},c=o?(0,a.Cf)((()=>o(l,t))):l;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=y(this);try{e(this)}finally{y(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return c.X&&a.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return c.X&&!n&&(this.getClient()?a.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,d.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=l.J}=n&&n.getOptions()||{},{userAgent:i}=s.GLOBAL_OBJ.navigator||{},a=(0,d.Hv)({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,d.CT)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=m().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);c.X&&a.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function m(){return s.GLOBAL_OBJ.__SENTRY__=s.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},s.GLOBAL_OBJ}function y(e){const t=m(),n=x(t);return w(t,e),n}function v(){const e=m();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=m()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!x(e).isOlderThan(f)||w(e,new g),x(e);var t}(e)}function b(){return v().getIsolationScope()}function x(e){return(0,s.Y)("hub",(()=>new g),e)}function w(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},2967:(e,t,n)=>{"use strict";n.d(t,{RN:()=>f,_I:()=>p,m7:()=>h,m8:()=>c,q4:()=>u,uf:()=>d});var r=n(2844),o=n(2343),i=n(1703),a=n(1195),s=n(5659);const l=[];function c(e){const t=e.defaultIntegrations||[],n=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,r.lE)(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(o),a=function(e,t){for(let t=0;t{t&&h(e,t,n)})),n}function d(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function h(e,t,n){if(n[t.name])i.X&&o.kg.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===l.indexOf(t.name)&&(t.setupOnce(a.cc,s.Gd),l.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}i.X&&o.kg.log(`Integration installed: ${t.name}`)}}function f(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}function p(e){return e}},350:(e,t,n)=>{"use strict";n.d(t,{lW:()=>h,sX:()=>d});var r=n(7597),o=n(1170),i=n(2844),a=n(2343),s=n(1195),l=n(9015),c=n(3379);let u;class d{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=f()}static clone(e){return e?e.clone():new d}clone(){const e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof d?t:this}return e instanceof d?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=f(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,o.yW)(),...e},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(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:h}}applyToEvent(e,t={},n=[]){(0,c.gi)(e,this.getScopeData());const r=[...n,...(0,s.fH)(),...this._eventProcessors];return(0,s.RP)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,i.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,i.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,i.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(a.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function h(){return u||(u=new d),u}function f(){return{traceId:(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}},6754:(e,t,n)=>{"use strict";n.d(t,{$J:()=>i,S3:()=>a,TE:()=>o,Zj:()=>r});const r="sentry.source",o="sentry.sample_rate",i="sentry.op",a="sentry.origin"},9015:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>l});var r=n(1170),o=n(2844),i=n(535);function a(e){const t=(0,r.ph)(),n={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},454:(e,t,n)=>{"use strict";n.d(t,{_:()=>l,j:()=>c});var r=n(535),o=n(1131),i=n(4487),a=n(5102),s=n(3371);function l(e,t,n){const i=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},l=(0,r.Jr)({environment:i.environment||o.J,release:i.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function c(e){const t=(0,i.s3)();if(!t)return{};const n=l((0,s.XU)(e).trace_id||"",t,(0,i.nZ)()),r=(0,a.G)(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:c,source:u}=r.metadata;null!=c&&(n.sample_rate=`${c}`);const d=(0,s.XU)(r);return u&&"url"!==u&&(n.transaction=d.description),n.sampled=String((0,s.Tt)(r)),t.emit&&t.emit("createDsc",n),n}},3379:(e,t,n)=>{"use strict";n.d(t,{gi:()=>l,yo:()=>c});var r=n(535),o=n(2844),i=n(454),a=n(5102),s=n(3371);function l(e,t){const{fingerprint:n,span:l,breadcrumbs:c,sdkProcessingMetadata:u}=t;!function(e,t){const{extra:n,tags:o,user:i,contexts:a,level:s,transactionName:l}=t,c=(0,r.Jr)(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=(0,r.Jr)(o);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=(0,r.Jr)(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const h=(0,r.Jr)(a);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),s&&(e.level=s),l&&(e.transaction=l)}(e,t),l&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts};const n=(0,a.G)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.j)(t),...e.sdkProcessingMetadata};const r=(0,s.XU)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,l),function(e,t){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,c),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,u)}function c(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:f,transactionName:p,span:g}=t;u(e,"extra",n),u(e,"tags",r),u(e,"user",o),u(e,"contexts",i),u(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...f}}function u(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}},5102:(e,t,n)=>{"use strict";function r(e){return e.transaction}n.d(t,{G:()=>r})},8942:(e,t,n)=>{"use strict";n.d(t,{R:()=>f,U0:()=>g});var r=n(2844),o=n(1170),i=n(7321),a=n(1235),s=n(8007),l=n(1131),c=n(1195),u=n(350),d=n(3379),h=n(3371);function f(e,t,n,f,g,m){const{normalizeDepth:y=3,normalizeMaxBreadth:v=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,o.yW)()},x=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=(0,i.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,i.$G)(s.value,a));const c=e.request;c&&c.url&&(c.url=(0,i.$G)(c.url,a))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,x),void 0===t.type&&function(e,t){const n=a.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let r;const o=p.get(t);o?r=o:(r=new Map,p.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(b,e.stackParser);const w=function(e,t){if(!t)return e;const n=e?e.clone():new u.sX;return n.update(t),n}(f,n.captureContext);n.mechanism&&(0,r.EG)(b,n.mechanism);const k=g&&g.getEventProcessors?g.getEventProcessors():[],S=(0,u.lW)().getScopeData();if(m){const e=m.getScopeData();(0,d.yo)(S,e)}if(w){const e=w.getScopeData();(0,d.yo)(S,e)}const C=[...n.attachments||[],...S.attachments];C.length&&(n.attachments=C),(0,d.gi)(b,S);const A=[...k,...(0,c.fH)(),...S.eventProcessors];return(0,c.RP)(A,b,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof y&&y>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=(0,h.XU)(e).data;return r&&(e.data=(0,s.Fv)(r,t,n)),e}))),r}(e,y,v):e)))}const p=new WeakMap;function g(e){if(e)return function(e){return e instanceof u.sX||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>m.includes(e)))}(e)?{captureContext:e}:e}const m=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},3371:(e,t,n)=>{"use strict";n.d(t,{$k:()=>u,Hb:()=>c,Tt:()=>f,XU:()=>h,i0:()=>s,ve:()=>a,wy:()=>l});var r=n(535),o=n(7638),i=n(1170);const a=0,s=1;function l(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:i,parent_span_id:a,status:s,tags:l,origin:c}=h(e);return(0,r.Jr)({data:o,op:i,parent_span_id:a,span_id:t,status:s,tags:l,trace_id:n,origin:c})}function c(e){const{traceId:t,spanId:n}=e.spanContext(),r=f(e);return(0,o.$p)(t,n,r)}function u(e){return"number"==typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,i.ph)()}function d(e){return e>9999999999?e/1e3:e}function h(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function f(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},105:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r="7.100.1"},223:(e,t,n)=>{"use strict";n.d(t,{g3:()=>Re,H0:()=>_e});var r,o=n(2343),i=n(1170),a=n(1703),s=n(3371),l=n(2844),c=n(535),u=n(6754),d=n(5102);function h(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={}));class f{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class p{constructor(e={}){this._traceId=e.traceId||(0,l.DM)(),this._spanId=e.spanId||(0,l.DM)().substring(16),this._startTime=e.startTimestamp||(0,i.ph)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[u.S3]:e.origin||"manual",[u.$J]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[u.$J]}set op(e){this.setAttribute(u.$J,e)}get origin(){return this._attributes[u.S3]}set origin(e){this.setAttribute(u.S3,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?s.i0:s.ve}}startChild(e){const t=new p({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=(0,d.G)(this);if(t.transaction=n,a.X&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${(0,s.XU)(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;o.kg.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return h(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=(0,d.G)(this);if(a.X&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&o.kg.log(e.replace("Starting","Finishing"))}this._endTime=(0,s.$k)(e)}toTraceparent(){return(0,s.Hb)(this)}toContext(){return(0,c.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,s.wy)(this)}getSpanJSON(){return(0,c.Jr)({data:this._getData(),description:this._name,op:this._attributes[u.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[u.S3]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}var g=n(5659),m=n(454),y=n(4487);function v(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,y.s3)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function b(e){if(!v())return;const t=function(e){if(e.startTime){const t={...e};return t.startTimestamp=(0,s.$k)(e.startTime),delete t.startTime,t}return e}(e),n=(0,g.Gd)(),r=e.scope?e.scope.getSpan():x();if(e.onlyIfParent&&!r)return;const o=(0,g.aF)(),i=(0,y.nZ)();let a;if(r)a=r.startChild(t);else{const{traceId:e,dsc:r,parentSpanId:s,sampled:l}={...o.getPropagationContext(),...i.getPropagationContext()};a=n.startTransaction({traceId:e,parentSpanId:s,parentSampled:l,...t,metadata:{dynamicSamplingContext:r,...t.metadata}})}return function(e,t,n){e&&((0,c.xp)(e,k,n),(0,c.xp)(e,w,t))}(a,i,o),a}function x(){return(0,y.nZ)().getSpan()}const w="_sentryScope",k="_sentryIsolationScope";class S extends p{constructor(e,t){super(e),this._measurements={},this._contexts={},this._hub=t||(0,g.Gd)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[u.Zj]&&{source:this._attributes[u.Zj]},...this._attributes[u.TE]&&{sampleRate:this._attributes[u.TE]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(u.Zj,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new f(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=(0,s.$k)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return(0,c.Jr)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,m.j)(this)}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(a.X&&o.kg.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return a.X&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&(0,s.XU)(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>(0,s.XU)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:i}={scope:this[w],isolationScope:this[k]};const{metadata:l}=this,{source:c}=l,u={contexts:{...this._contexts,trace:(0,s.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...l,capturedSpanScope:r,capturedSpanIsolationScope:i,dynamicSamplingContext:(0,m.j)(this)},...c&&{transaction_info:{source:c}}};return Object.keys(this._measurements).length>0&&(a.X&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),u.measurements=this._measurements),a.X&&o.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),u}}const C={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},A=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class E extends f{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===(0,s.XU)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class T extends S{constructor(e,t,n=C.idleTimeout,r=C.finalTimeout,i=C.heartbeatInterval,s=!1,l=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=A[4],this._autoFinishAllowed=!l,s&&(a.X&&o.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),l||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=A[3],this.end())}),this._finalTimeout)}end(e){const t=(0,s.$k)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){a.X&&o.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;(0,s.XU)(e).timestamp||(e.setStatus("cancelled"),e.end(t),a.X&&o.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=(0,s.XU)(e),i=n&&n{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new E(t,n,this.spanContext().spanId,e),a.X&&o.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=A[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(a.X&&o.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=A[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),a.X&&o.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,a.X&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(a.X&&o.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],a.X&&o.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,i.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=A[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(a.X&&o.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=A[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){a.X&&o.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}var $=n(1674),P=n(7373);function O(e){return(e||(0,g.Gd)()).getScope().getTransaction()}let I=!1;function R(){const e=O();if(e){const t="internal_error";a.X&&o.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}R.tag="sentry_tracingErrorCallback";var M=n(7597);function L(e,t,n){if(!v(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(u.TE,Number(e.sampled)),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(u.TE,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(u.TE,Number(r))):(r=1,e.setAttribute(u.TE,r)),i=r,((0,M.i2)(i)||"number"!=typeof i&&"boolean"!=typeof i?(a.X&&o.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),0):!(i<0||i>1)||(a.X&&o.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${i}.`),0))?r?(e.sampled=Math.random()t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Y=2147483647;function K(e){return e/1e3}function Z(){return V.WINDOW&&V.WINDOW.addEventListener&&V.WINDOW.performance}let X,J,Q=0,ee={};function te(e,t,n,r,o,i){const a=i?t[i]:t[`${n}End`],s=t[`${n}Start`];s&&a&&q(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+K(s),endTimestamp:r+K(a)})}function ne(e,t,n,r){const o=t[n];null!=o&&o!0,c=e=>function(e,t){return(0,ie.U0)(e,t||se)}(e,r||o),d={};t&&(0,re.U)((e=>{const t=function(e,t,n,r,o="auto.http.browser"){if(!v()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];if(n){if(e.response){h(n,e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){const e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete r[t]}return}const a=(0,y.nZ)(),l=(0,y.s3)(),{method:c,url:d}=e.fetchData,f=i?b({name:`${c} ${d}`,onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":c,[u.S3]:o},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&l){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const i=o||n.getSpan(),a=(0,g.aF)(),{traceId:l,spanId:c,sampled:u,dsc:d}={...a.getPropagationContext(),...n.getPropagationContext()},h=i?(0,s.Hb)(i):(0,F.$p)(l,c,u),f=(0,ae.IQ)(d||(i?(0,m.j)(i):(0,m._)(l,t,n))),p=r.headers||("undefined"!=typeof Request&&(0,M.V9)(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&(0,M.V9)(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",h),f&&e.append(ae.bU,f),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",h]];return f&&e.push([ae.bU,f]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),f&&t.push(f),{...p,"sentry-trace":h,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":h,baggage:f}}(t,l,a,n,f)}return f}(e,l,c,d);a&&t&&ue(t)})),n&&(0,oe.UK)((e=>{const t=function(e,t,n,r){const o=e.xhr,i=o&&o[oe.xU];if(!v()||!o||o.__sentry_own_request__||!i)return;const a=t(i.url);if(e.endTimestamp&&a){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&(h(t,i.status_code),t.end(),delete r[e]))}const l=(0,y.nZ)(),c=(0,g.aF)(),d=a?b({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,url:i.url,[u.S3]:"auto.http.browser"},op:"http.client"}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);const f=(0,y.s3)();if(o.setRequestHeader&&n(i.url)&&f){const{traceId:e,spanId:t,sampled:n,dsc:r}={...c.getPropagationContext(),...l.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ae.bU,n)}catch(e){}}(o,d?(0,s.Hb)(d):(0,F.$p)(e,t,n),(0,ae.IQ)(r||(d?(0,m.j)(d):(0,m._)(e,f,l))))}return d}(e,l,c,d);a&&t&&ue(t)}))}function ue(e){const{url:t}=(0,s.XU)(e).data||{};if(!t||"string"!=typeof t)return;const n=(0,W._j)("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),i.Z1?[...r,["http.request.redirect_start",de(e.redirectStart)],["http.request.fetch_start",de(e.fetchStart)],["http.request.domain_lookup_start",de(e.domainLookupStart)],["http.request.domain_lookup_end",de(e.domainLookupEnd)],["http.request.connect_start",de(e.connectStart)],["http.request.secure_connection_start",de(e.secureConnectionStart)],["http.request.connection_end",de(e.connectEnd)],["http.request.request_start",de(e.requestStart)],["http.request.response_start",de(e.responseStart)],["http.request.response_end",de(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function de(e=0){return((i.Z1||performance.timeOrigin)+e)/1e3}const he={...C,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...le},fe=(e={})=>{const t=!(!z.X||!e.tracePropagationTargets&&!e.tracingOrigins);(function(){const e=(0,g.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=D),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=_),I||(I=!0,(0,$.V)(R),(0,P.h)(R)))})(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...he,...e},r=function(){const e=Z();if(e&&i.Z1){e.mark&&V.WINDOW.performance.mark("sentry-tracing-init");const t=(0,W.to)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=K(i.Z1),r=K(t.startTime);z.X&&o.kg.log("[Measurements] Adding FID"),ee.fid={value:e.value,unit:"millisecond"},ee["mark.fid"]={value:n+r,unit:"second"}})),n=(0,W.PR)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(z.X&&o.kg.log("[Measurements] Adding CLS"),ee.cls={value:e.value,unit:""},J=t)}),!0),r=(0,W.$A)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(z.X&&o.kg.log("[Measurements] Adding LCP"),ee.lcp={value:e.value,unit:"millisecond"},X=t)}),!0);return()=>{t(),n(),r()}}return()=>{}}();let a,l;function c(e){const t=(0,g.Gd)(),{beforeStartSpan:c,idleTimeout:d,finalTimeout:h,heartbeatInterval:f}=n,p="pageload"===e.op;let m;if(p){const t=p?me("sentry-trace"):"",n=p?me("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:a}=(0,F.pT)(t,n);m={traceId:r,parentSpanId:i,parentSampled:a,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else m={trimEnd:!0,...e};const y=c?c(m):m;y.metadata=y.name!==m.name?{...y.metadata,source:"custom"}:y.metadata,a=y.name,l=function(e){const t=e.attributes&&e.attributes[u.Zj],n=e.data&&e.data[u.Zj],r=e.metadata&&e.metadata.source;return t||n||r}(y),!1===y.sampled&&z.X&&o.kg.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),z.X&&o.kg.log(`[Tracing] Starting ${y.op} transaction on scope`);const{location:v}=V.WINDOW,b=N(t,y,d,h,!0,{location:v},f,p);return p&&(V.WINDOW.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(V.WINDOW.document.readyState)&&b.sendAutoFinishSignal()})),["interactive","complete"].includes(V.WINDOW.document.readyState)&&b.sendAutoFinishSignal()),b.registerBeforeFinishCallback((e=>{r(),function(e){const t=Z();if(!t||!V.WINDOW.performance.getEntries||!i.Z1)return;z.X&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=K(i.Z1),r=t.getEntries();let a,l;const{op:c,start_timestamp:u}=(0,s.XU)(e);if(r.slice(Q).forEach((t=>{const r=K(t.startTime),i=K(t.duration);if(!("navigation"===e.op&&u&&n+r{te(e,t,r,n)})),te(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),te(e,t,"fetch",n,"cache","domainLookupStart"),te(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(q(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+K(t.requestStart),endTimestamp:n+K(t.responseEnd)}),q(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+K(t.responseStart),endTimestamp:n+K(t.responseEnd)}))}(e,t,n)}(e,t,n),a=n+K(t.responseStart),l=n+K(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=o+n,a=i+r;q(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(e,t,r,i,n);const a=(0,H.Y)(),s=t.startTime{if(!ee[e]||!u||n>=u)return;const t=ee[e].value,r=n+K(t),i=Math.abs(1e3*(r-u)),a=i-t;z.X&&o.kg.log(`[Measurements] Normalized ${e} from ${t} to ${i} (${a})`),ee[e].value=i}));const t=ee["mark.fid"];t&&ee.fid&&(q(e,{description:"first input delay",endTimestamp:t.value+K(ee.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete ee["mark.fid"]),"fcp"in ee||delete ee.cls,Object.keys(ee).forEach((e=>{!function(e,t,n){const r=O();r&&r.setMeasurement(e,t,n)}(e,ee[e].value,ee[e].unit)})),function(e){X&&(z.X&&o.kg.log("[Measurements] Adding LCP Data"),X.element&&e.setTag("lcp.element",(0,B.Rt)(X.element)),X.id&&e.setTag("lcp.id",X.id),X.url&&e.setTag("lcp.url",X.url.trim().slice(0,200)),e.setTag("lcp.size",X.size)),J&&J.sources&&(z.X&&o.kg.log("[Measurements] Adding CLS Data"),J.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,B.Rt)(t.node)))))}(e)}X=void 0,J=void 0,ee={}}(e)})),b}return n.enableLongTask&&(0,W._j)("longtask",(({entries:e})=>{for(const t of e){const e=O();if(!e)return;const n=K(i.Z1+t.startTime),r=K(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),n._experiments.enableInteractions&&(0,W._j)("event",(({entries:e})=>{for(const t of e){const e=O();if(!e)return;if("click"===t.name){const n=K(i.Z1+t.startTime),r=K(t.duration),o={description:(0,B.Rt)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},a=(0,B.iY)(t.target);a&&(o.attributes={"ui.component_name":a}),e.startChild(o)}}})),{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:d,traceFetch:h,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:m,_experiments:y}=n,v=r&&r.tracePropagationTargets,b=v||n.tracePropagationTargets;let x;z.X&&t&&v&&o.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let w=V.WINDOW.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{x&&(z.X&&o.kg.log(`[Tracing] Finishing current transaction with op: ${(0,s.XU)(x).op}`),x.end()),x=c(e)})),e.on("startPageLoadSpan",(e=>{x&&(z.X&&o.kg.log(`[Tracing] Finishing current transaction with op: ${(0,s.XU)(x).op}`),x.end()),x=c(e)}))),n.instrumentPageLoad&&e.emit){const t={name:V.WINDOW.location.pathname,startTimestamp:i.Z1?i.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",attributes:{[u.Zj]:"url"}};pe(e,t)}n.instrumentNavigation&&e.emit&&(0,j.a)((({to:t,from:n})=>{if(void 0===n&&w&&-1!==w.indexOf(t))w=void 0;else if(n!==t){w=void 0;const t={name:V.WINDOW.location.pathname,op:"navigation",origin:"auto.navigation.browser",attributes:{[u.Zj]:"url"}};ge(e,t)}})),d&&(V.WINDOW&&V.WINDOW.document?V.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=O();if(V.WINDOW.document.hidden&&e){const t="cancelled",{op:n,status:r}=(0,s.XU)(e);z.X&&o.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):z.X&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),y.enableInteractions&&function(e,t,n){let r;const i=()=>{const{idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=e,l="ui.action.click",c=O();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(z.X&&o.kg.warn(`[Tracing] Did not create ${l} transaction because a pageload or navigation transaction is in progress.`));if(r&&(r.setFinishReason("interactionInterrupted"),r.end(),r=void 0),!t)return void(z.X&&o.kg.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`));const{location:d}=V.WINDOW,h={name:t,op:l,trimEnd:!0,data:{[u.Zj]:n||"url"}};r=N((0,g.Gd)(),h,i,a,!0,{location:d},s)};["click"].forEach((e=>{addEventListener(e,i,{once:!1,capture:!0})}))}(n,a,l),ce({traceFetch:h,traceXHR:f,tracePropagationTargets:b,shouldCreateSpanForRequest:p,enableHTTPTimings:m})},options:n}};function pe(e,t){e.emit&&e.emit("startPageLoadSpan",t)}function ge(e,t){e.emit&&e.emit("startNavigationSpan",t)}function me(e){const t=(0,B.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var ye=n(6891),ve=n(8679),be=n.n(ve),xe=n(7294);const we="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ke="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Se,Ce,Ae,Ee,Te,$e,Pe,Oe,Ie=!1;function Re(e){const t=fe({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:a,stripBasename:s,instrumentPageLoad:l=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e);const d=ye.m9&&ye.m9.location&&ye.m9.location.pathname;l&&d&&pe(e,{name:d,attributes:{[u.Zj]:"url",[u.$J]:"pageload",[u.S3]:"auto.pageload.react.reactrouter_v6"}}),Ce=n,Ae=r,Ee=o,$e=a,Te=i,Ie=s||!1,Pe=t=>{ge(e,t)},Oe=c}}}function Me(e,t){if(!t||"/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}function Le(e,t,n,r=""){if(!e||0===e.length)return[Ie?Me(t.pathname,r):t.pathname,"url"];let o="";if(n)for(let e=0;e{const r=Ae(),o=Ee();return Ce((()=>{const e=Te(n.children);t?(function(e,t,n,r,o){const i=Array.isArray(r)?r:$e(n,t,o);if(e&&i){const[r,a]=Le(n,t,i,o);e.updateName(r),e.setAttribute(u.Zj,a)}}(function(){if(Se)return Se;const e=x(),t=e?(0,d.G)(e):void 0;if(!t)return;const n=(0,s.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}(),r,e),t=!1):function(e,t,n,r,o){const i=Array.isArray(r)?r:$e(t,e,o);if(Oe&&("PUSH"===n||"POP"===n)&&i){Se&&Se.end();const[n,r]=Le(t,e,i,o);Se=Pe({name:n,attributes:{[u.Zj]:r,[u.$J]:"navigation",[u.S3]:"auto.navigation.react.reactrouter_v6"}})}}(r,e,o)}),[r,o]),xe.createElement(e,{...n,__self:this,__source:{fileName:ke,lineNumber:329}})};return be()(n,e),n}},5682:(e,t,n)=>{"use strict";n.d(t,{S:()=>Xe});var r=n(2343),o=n(2844),i=n(7321),a=n(1703),s=n(2967);const l=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],c=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],u="InboundFilters",d=(0,s._I)(((e={})=>({name:u,setupOnce(){},processEvent(t,n,s){const u=s.getOptions(),d=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:l],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:c],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,u);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(a.X&&r.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,o.jH)(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),a.X&&0===t.length&&r.kg.error(`Could not extract message for event ${(0,o.jH)(e)}`),t}(e).some((e=>(0,i.U0)(e,t)))}(e,t.ignoreErrors)?(a.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,o.jH)(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,i.U0)(n,t)}(e,t.ignoreTransactions)?(a.X&&r.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,o.jH)(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=h(e);return!!n&&(0,i.U0)(n,t)}(e,t.denyUrls)?(a.X&&r.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${h(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=h(e);return!n||(0,i.U0)(n,t)}(e,t.allowUrls)&&(a.X&&r.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${h(e)}`),!0)}(t,d)?null:t}})));function h(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return a.X&&r.kg.error(`Cannot extract url for event ${(0,o.jH)(e)}`),null}}(0,s.RN)(u,d);var f=n(535),p=n(4487);let g;const m="FunctionToString",y=new WeakMap,v=(0,s._I)((()=>({name:m,setupOnce(){g=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,f.HK)(this),n=y.has((0,p.s3)())&&void 0!==t?t:this;return g.apply(n,e)}}catch(e){}},setup(e){y.set(e,!0)}})));(0,s.RN)(m,v);var b=n(5659),x=n(5108);var w=n(1738),k=n(8823),S=n(734),C=n(807),A=n(105);function E(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:A.J}))),version:A.J}),e._metadata=o}var T=n(8518),$=n(8725),P=n(1170),O=n(292);const I="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var R=n(7597),M=n(8007),L=n(6893);function _(e,t){const n=N(e,t),r={type:t&&t.name,value:j(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function D(e,t){return{exception:{values:[_(e,t)]}}}function N(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(F.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const F=/Minified React error #\d+;/i;function j(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function B(e,t,n,r,i){let a;if((0,R.VW)(t)&&t.error)return D(e,t.error);if((0,R.TX)(t)||(0,R.fm)(t)){const i=t;if("stack"in t)a=D(e,t);else{const t=i.name||((0,R.TX)(i)?"DOMError":"DOMException"),s=i.message?`${t}: ${i.message}`:t;a=z(e,s,n,r),(0,o.Db)(a,s)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return(0,R.VZ)(t)?D(e,t):(0,R.PO)(t)||(0,R.cO)(t)?(a=function(e,t,n,r){const o=(0,p.s3)(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:(0,R.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:V(t,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,M.Qy)(t,i)}};if(n){const t=N(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),(0,o.EG)(a,{synthetic:!0}),a):(a=z(e,t,n,r),(0,o.Db)(a,`${t}`,void 0),(0,o.EG)(a,{synthetic:!0}),a)}function z(e,t,n,r){const o={};if(r&&n){const r=N(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,R.Le)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function V(e,{isUnhandledRejection:t}){const n=(0,f.zf)(e),r=t?"promise rejection":"exception";return(0,R.VW)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,R.cO)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var U=n(6891);class W extends C.W{constructor(e){E(e,"browser",["browser"],U.m9.SENTRY_SDK_SOURCE||(0,T.S)()),super(e),e.sendClientReports&&U.m9.document&&U.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===U.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=B(e,t,n&&n.syntheticException||void 0,r);return(0,o.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,L.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=z(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,L.WD)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(I&&r.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,O.RA)(r)}},i=function(e){return[{type:"user_report"},e]}(e);return(0,$.Jd)(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(I&&r.kg.log("No outcomes to send"));if(!this._dsn)return void(I&&r.kg.log("No dsn provided, will not send outcomes"));I&&r.kg.log("Sending outcomes:",e);const t=function(e,t,n){const r=[{type:"client_report"},{timestamp:(0,P.yW)(),discarded_events:e}];return(0,$.Jd)(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&(0,O.RA)(this._dsn));this._sendEnvelope(t)}}var H=n(1235),G=n(9729);function q(){"console"in H.GLOBAL_OBJ&&r.RU.forEach((function(e){e in H.GLOBAL_OBJ.console&&(0,f.hl)(H.GLOBAL_OBJ.console,e,(function(t){return r.LD[e]=t,function(...t){const n={args:t,level:e};(0,G.rK)("console",n);const o=r.LD[e];o&&o.apply(H.GLOBAL_OBJ.console,t)}}))}))}var Y=n(5316),K=n(5322),Z=n(1394),X=n(8464);const J=["fatal","error","warning","log","info","debug"];var Q=n(6956);const ee="Breadcrumbs",te=(0,s._I)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ee,setupOnce(){},setup(e){t.console&&function(e){const t="console";(0,G.Hj)(t,e),(0,G.D2)(t,q)}(function(e){return function(t){if((0,p.s3)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":J.includes(r)?r:"log"),message:(0,i.nK)(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,i.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,p.n_)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,Y.O)(function(e,t){return function(n){if((0,p.s3)()!==e)return;let o,i,a="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>1024&&(I&&r.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof a&&(a=[a]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;o=(0,X.Rt)(t,{keyAttrs:a,maxStringLength:s}),i=(0,X.iY)(t)}catch(e){o=""}if(0===o.length)return;const l={category:`ui.${n.name}`,message:o};i&&(l.data={"ui.component_name":i}),(0,p.n_)(l,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,K.UK)(function(e){return function(t){if((0,p.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[K.xU];if(!n||!r||!o)return;const{method:i,url:a,status_code:s,body:l}=o,c={method:i,url:a,status_code:s},u={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};(0,p.n_)({category:"xhr",data:c,type:"http"},u)}}(e)),t.fetch&&(0,Z.U)(function(e){return function(t){if((0,p.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,p.n_)({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,p.n_)({category:"fetch",data:o,type:"http"},i)}}}(e)),t.history&&(0,S.a)(function(e){return function(t){if((0,p.s3)()!==e)return;let n=t.from,r=t.to;const o=(0,Q.en)(U.m9.location.href);let i=n?(0,Q.en)(n):void 0;const a=(0,Q.en)(r);i&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),(0,p.n_)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){(0,p.s3)()===e&&(0,p.n_)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,o.jH)(t)},{event:t})}}(e))}}}));(0,s.RN)(ee,te);const ne="Dedupe",re=(0,s._I)((()=>{let e;return{name:ne,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!ie(e,t)&&!!oe(e,t))))}(e,t)||!!function(e,t){const n=ae(t),r=ae(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!ie(e,t)&&!!oe(e,t)))}(e,t))}(t,e))return I&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function oe(e,t){let n=se(e),r=se(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ue,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){(0,le.V)((t=>{const{stackParser:n,attachStacktrace:r}=pe();if((0,p.s3)()!==e||(0,U.Wz)())return;const{msg:o,url:i,line:a,column:s,error:l}=t,c=void 0===l&&(0,R.HD)(o)?function(e,t,n,r){let o=(0,R.VW)(e)?e.message:e,i="Error";const a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2]);return he({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,s):he(B(n,l||o,void 0,r,!1),i,a,s);c.level="error",(0,p.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}))}(e),fe("onerror")),t.onunhandledrejection&&(function(e){(0,ce.h)((t=>{const{stackParser:n,attachStacktrace:r}=pe();if((0,p.s3)()!==e||(0,U.Wz)())return;const o=function(e){if((0,R.pt)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),i=(0,R.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:B(n,o,void 0,r,!0);i.level="error",(0,p.eN)(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),fe("onunhandledrejection"))}}}));function he(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,R.HD)(t)&&t.length>0?t:(0,X.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function fe(e){I&&r.kg.log(`Global Handler attached: ${e}`)}function pe(){const e=(0,p.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}(0,s.RN)(ue,de);const ge="HttpContext",me=(0,s._I)((()=>({name:ge,setupOnce(){},preprocessEvent(e){if(!U.m9.navigator&&!U.m9.location&&!U.m9.document)return;const t=e.request&&e.request.url||U.m9.location&&U.m9.location.href,{referrer:n}=U.m9.document||{},{userAgent:r}=U.m9.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}})));function ye(e,t,n=250,r,o,a,s){if(!(a.exception&&a.exception.values&&s&&(0,R.V9)(s.originalException,Error)))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,u;l&&(a.exception.values=(c=ve(e,t,o,s.originalException,r,a.exception.values,l,0),u=n,c.map((e=>(e.value&&(e.value=(0,i.$G)(e.value,u)),e)))))}function ve(e,t,n,r,o,i,a,s){if(i.length>=n+1)return i;let l=[...i];if((0,R.V9)(r[o],Error)){be(a,s);const i=e(t,r[o]),c=l.length;xe(i,o,c,s),l=ve(e,t,n,r[o],o,[i,...l],i,c)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if((0,R.V9)(r,Error)){be(a,s);const c=e(t,r),u=l.length;xe(c,`errors[${i}]`,u,s),l=ve(e,t,n,r,o,[c,...l],c,u)}})),l}function be(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function xe(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}(0,s.RN)(ge,me);const we="LinkedErrors",ke=(0,s._I)(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:we,setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();ye(_,i.stackParser,i.maxValueLength,n,t,e,r)}}})),Se=((0,s.RN)(we,ke),["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"]),Ce="TryCatch",Ae=(0,s._I)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Ce,setupOnce(){t.setTimeout&&(0,f.hl)(U.m9,"setTimeout",Ee),t.setInterval&&(0,f.hl)(U.m9,"setInterval",Ee),t.requestAnimationFrame&&(0,f.hl)(U.m9,"requestAnimationFrame",Te),t.XMLHttpRequest&&"XMLHttpRequest"in U.m9&&(0,f.hl)(XMLHttpRequest.prototype,"send",$e);const e=t.eventTarget;e&&(Array.isArray(e)?e:Se).forEach(Pe)}}}));function Ee(e){return function(...t){const n=t[0];return t[0]=(0,U.re)(n,{mechanism:{data:{function:(0,w.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Te(e){return function(t){return e.apply(this,[(0,U.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,w.$P)(e)},handled:!1,type:"instrument"}})])}}function $e(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,f.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,w.$P)(t)},handled:!1,type:"instrument"}},r=(0,f.HK)(t);return r&&(n.mechanism.data.handler=(0,w.$P)(r)),(0,U.re)(t,n)}))})),e.apply(this,t)}}function Pe(e){const t=U.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,f.hl)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,U.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,w.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,(0,U.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,w.$P)(r),target:e},handled:!1,type:"instrument"}}),o])}})),(0,f.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,o,r)}})))}(0,s.RN)(Ce,Ae);const Oe="?";function Ie(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Re=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Me=/\((\S*)(?::(\d+))(?::(\d+))\)/,Le=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,De=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ne=[[30,e=>{const t=Re.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Me.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=je(t[1]||Oe,t[2]);return Ie(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Le.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=_e.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Oe;return[n,e]=je(n,e),Ie(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=De.exec(e);return t?Ie(t[2],t[1]||Oe,+t[3],t[4]?+t[4]:void 0):void 0}]],Fe=(0,w.pE)(...Ne),je=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Oe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var Be=n(409);var ze=n(228);const Ve=30;function Ue(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new L.cW(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,L.WD)(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||Ve)){let o={};function i(i){const s=[];if((0,$.gv)(i,((t,n)=>{const r=(0,$.mL)(n);if((0,ze.Q)(o,r)){const o=We(t,n);e.recordDroppedEvent("ratelimit_backoff",r,o)}else s.push(t)})),0===s.length)return(0,L.WD)();const l=(0,$.Jd)(i[0],s),c=t=>{(0,$.gv)(l,((n,r)=>{const o=We(n,r);e.recordDroppedEvent(t,(0,$.mL)(r),o)}))};return n.add((()=>t({body:(0,$.V$)(l,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&a.X&&r.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),o=(0,ze.WG)(o,e),e)),(e=>{throw c("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Be.b)return a.X&&r.kg.error("Skipped sending event because buffer is full."),c("queue_overflow"),(0,L.WD)();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function We(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let He;function Ge(e,t=function(){if(He)return He;if((0,k.Du)(U.m9.fetch))return He=U.m9.fetch.bind(U.m9);const e=U.m9.document;let t=U.m9.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){I&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return He=t.bind(U.m9)}()){let n=0,o=0;return Ue(e,(function(r){const i=r.body.length;n+=i,o++;const a={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,o--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return He=void 0,n-=i,o--,(0,L.$2)(e)}}))}const qe=4;function Ye(e){return Ue(e,(function(t){return new L.cW(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{o.readyState===qe&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const Ke=[d(),v(),Ae(),te(),de(),ke(),re(),me()];function Ze(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...Ke]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),U.m9.SENTRY_RELEASE&&U.m9.SENTRY_RELEASE.id&&(e.release=U.m9.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,w.Sq)(e.stackParser||Fe),integrations:(0,s.m8)(e),transport:e.transport||((0,k.Ak)()?Ge:Ye)};(function(e,t){!0===t.debug&&(a.X?r.kg.enable():(0,r.Cf)((()=>{x.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),(0,p.nZ)().update(t.initialScope);const n=new e(t);!function(e){const t=(0,b.Gd)().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)})(W,t),e.autoSessionTracking&&(void 0!==U.m9.document?((0,p.yj)({ignoreDuration:!0}),(0,p.cg)(),(0,S.a)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,p.yj)({ignoreDuration:!0}),(0,p.cg)())}))):I&&r.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}function Xe(e){const t={...e};E(t,"react"),Ze(t)}},1165:(e,t,n)=>{"use strict";function r(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}n.d(t,{G:()=>Qn});var o=n(4487);function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var a=n(807),s=n(8942),l=n(5659),c=n(3371),u=n(6754),d=n(1235),h=n(8007),f=n(535),p=n(8464),g=n(1170),m=n(2343),y=n(2844),v=n(5322),b=n(7321),x=n(1394),w=n(5316),k=n(734),S=n(8725),C=n(228),A=n(1422);function E(){return"undefined"!=typeof window&&(!(0,A.KV)()||void 0!==d.GLOBAL_OBJ.process&&"renderer"===d.GLOBAL_OBJ.process.type)}var T=n(5363),$=n(5108);const P=d.GLOBAL_OBJ,O="sentryReplaySession",I="replay_event",R="Unable to send Replay",M=15e4,L=5e3,_=2e7;function D(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var N;function F(e){const t=D([e,"optionalAccess",e=>e.host]);return Boolean(D([t,"optionalAccess",e=>e.shadowRoot])===e)}function j(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function B(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,z).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function z(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=B(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(N||(N={}));class V{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return()=>-1,null!=(t=D([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:-1;var t}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function U({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function W({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function H(e){return e.toLowerCase()}function G(e){return e.toUpperCase()}const q="__rrweb_original__";function Y(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?H(t):null}function K(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let Z=1;const X=new RegExp("[^a-z0-9-_:]"),J=-2;function Q(){return Z++}let ee,te;const ne=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,re=/^(?:[a-z+]+:)?\/\//i,oe=/^www\..*/i,ie=/^(data:)([^,]*),(.*)/i;function ae(e,t){return(e||"").replace(ne,((e,n,r,o,i,a)=>{const s=r||i||a,l=n||o||"";if(!s)return e;if(re.test(s)||oe.test(s))return`url(${l}${s}${l})`;if(ie.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+s}${l})`;const c=t.split("/"),u=s.split("/");c.pop();for(const e of u)"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`}))}const se=/^[^ \t\n\r\u000c]+/,le=/^[, \t\n\r\u000c]+/;function ce(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function ue(){const e=document.createElement("a");return e.href="",e.href}function de(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?ce(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(le),!(n>=t.length);){let i=r(se);if(","===i.slice(-1))i=ce(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=ce(e,i);let a=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?ae(r,ue()):"object"===t&&"data"===n?ce(e,r):"function"==typeof i?i(n,r,o):r:ce(e,r):r}function he(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function fe(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fe(e.parentNode,t,n,r+1):-1}function pe(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function ge(e,t,n,r,o,i){try{const a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){const e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if(l=fe(a,pe(r,o)),l<0)return!0;s=fe(a,pe(t,n),l>=0?l:1/0)}else{if(s=fe(a,pe(t,n)),s<0)return!1;l=fe(a,pe(r,o),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0||!i)}catch(e){}return!!i}function me(e){return null==e?"":e.toLowerCase()}function ye(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:h=!1,inlineStylesheet:f=!0,maskInputOptions:p={},maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:x=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:C=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:P=!1}=t;let{preserveWhiteSpace:O=!0}=t;const I=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:p={},maskTextFn:g,maskInputFn:m,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:w=!1}=t,k=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:N.Document,childNodes:[],compatMode:e.compatMode}:{type:N.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:N.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:p=!1,rootId:g,maskAllText:m,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:x}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),k=function(e){if(e instanceof HTMLFormElement)return"form";const t=H(e.tagName);return X.test(t)?"div":t}(e);let S={};const C=e.attributes.length;for(let t=0;tt.href===e.href));let r=null;t&&(r=B(t)),r&&(delete S.rel,delete S.href,S._cssText=ae(r,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=B(e.sheet);t&&(S._cssText=ae(t,ue()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const t=e,n=Y(t),r=K(t,G(k),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=ge(t,y,b,v,x,U({type:n,tagName:G(k),maskInputOptions:s}));S.value=W({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(S.checked=o)}if("option"===k&&(e.selected&&!s.select?S.selected=!0:delete S.selected),"canvas"===k&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(u.type,u.quality)&&(S.rr_dataURL=t)}if("img"===k&&d){ee||(ee=n.createElement("canvas"),te=ee.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const o=()=>{t.removeEventListener("load",o);try{ee.width=t.naturalWidth,ee.height=t.naturalHeight,te.drawImage(t,0,0),S.rr_dataURL=ee.toDataURL(u.type,u.quality)}catch(e){$.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?S.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==k&&"video"!==k||(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}let A;"iframe"!==k||f(S.src)||(e.contentDocument||(S.rr_src=S.src),delete S.src);try{customElements.get(k)&&(A=!0)}catch(e){}return{type:N.Element,tagName:k,attributes:S,childNodes:[],isSVG:(E=e,Boolean("svg"===E.tagName||E.ownerSVGElement)||void 0),needBlock:w,rootId:g,isCustom:A};var E}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:p,maskInputFn:m,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:w,rootId:k,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const f="STYLE"===d||void 0,p="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&h){try{e.nextSibling||e.previousSibling||D([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=B(e.parentNode.sheet))}catch(t){$.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=ae(h,ue())}p&&(h="SCRIPT_PLACEHOLDER");const m=ge(e,r,i,o,a,n);return f||p||g||!h||!m||(h=s?s(h):h.replace(/[\S]/g,"*")),g&&h&&(l.textarea||m)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=W({isMasked:ge(e,r,i,o,a,U({type:null,tagName:d,maskInputOptions:l})),element:e,value:h,maskInputFn:c})),{type:N.Text,textContent:h||"",isStyle:f,rootId:u}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:g,maskInputOptions:p,maskInputFn:m,rootId:k});case e.CDATA_SECTION_NODE:return{type:N.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:N.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,dataURLOptions:b,inlineImages:x,recordCanvas:w,keepIframeSrcFn:T,newlyAddedElement:P});if(!I)return $.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===N.Comment)return!0;if(e.type===N.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(me(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===me(e.attributes.name)||"icon"===me(e.attributes.rel)||"apple-touch-icon"===me(e.attributes.rel)||"shortcut icon"===me(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&me(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(me(e.attributes.property).match(/^(og|twitter|fb):/)||me(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===me(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===me(e.attributes.name)||"googlebot"===me(e.attributes.name)||"bingbot"===me(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===me(e.attributes.name)||"generator"===me(e.attributes.name)||"framework"===me(e.attributes.name)||"publisher"===me(e.attributes.name)||"progid"===me(e.attributes.name)||me(e.attributes.property).match(/^article:/)||me(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===me(e.attributes.name)||"yandex-verification"===me(e.attributes.name)||"csrf-token"===me(e.attributes.name)||"p:domain_verify"===me(e.attributes.name)||"verify-v1"===me(e.attributes.name)||"verification"===me(e.attributes.name)||"shopify-checkout-api-token"===me(e.attributes.name)))return!0}}return!1}(I,v)&&(O||I.type!==N.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?Q():J;const M=Object.assign(I,{id:R});if(r.add(e,M),R===J)return null;k&&k(e);let L=!h;if(M.type===N.Element){L=L&&!M.needBlock,delete M.needBlock;const t=e.shadowRoot;t&&j(t)&&(M.isShadowHost=!0)}if((M.type===N.Document||M.type===N.Element)&&L){v.headWhitespace&&M.type===N.Element&&"head"===M.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:h,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:x,recordCanvas:w,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=ye(n,t);e&&M.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ye(n,t);r&&(j(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}return e.parentNode&&F(e.parentNode)&&j(e.parentNode)&&(M.isShadow=!0),M.type===N.Element&&"iframe"===M.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=setTimeout((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&S){const n=ye(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:x,recordCanvas:w,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T});n&&S(e,n)}}),C),M.type===N.Element&&"link"===M.tagName&&"stylesheet"===M.attributes.rel&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(i),o=!0,t()}))}(e,(()=>{if(A){const t=ye(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:p,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:x,recordCanvas:w,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:E,keepIframeSrcFn:T});t&&A(e,t)}}),E),M}function ve(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function be(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const xe="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 we={map:{},getId:()=>($.error(xe),-1),getNode:()=>($.error(xe),null),removeNodeFromMap(){$.error(xe)},has:()=>($.error(xe),!1),reset(){$.error(xe)}};function ke(e,t,n={}){let r=null,o=0;return function(...i){const a=Date.now();o||!1!==n.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(r&&(clearTimeout(r),r=null),o=a,e.apply(l,i)):r||!1===n.trailing||(r=setTimeout((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,i)}),s))}}function Se(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Se(e,t,i||{},!0)}function Ce(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(we=new Proxy(we,{get:(e,t,n)=>("map"===t&&$.error(xe),Reflect.get(e,t,n))}));let Ae,Ee=Date.now;function Te(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:ve([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:ve([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ve([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function $e(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Pe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Oe(e,t,n,r,o){if(!e)return!1;const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;const a=pe(t,n);if(!o){const e=r&&i.matches(r);return a(i)&&!e}const s=fe(i,a);let l=-1;return!(s<0)&&(r&&(l=fe(i,pe(null,r))),s>-1&&l<0||se.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ee=()=>(new Date).getTime());class Ne{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return()=>-1,null!=(t=this.styleIDMap.get(e))?t:-1;var t}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Fe(e){let t=null;return ve([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function je(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Fe(n);)n=t;return n}(e);return t.contains(n)}(e))}var Be=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Be||{}),ze=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ze||{}),Ve=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ve||{}),Ue=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ue||{});function We(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}function He(e){return"__ln"in e}class Ge{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&He(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&He(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const qe=(e,t)=>`${e}@${t}`;class Ye{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ge,r=e=>{let t=e,n=J;for(;n===J;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!je(o))return;const i=F(o.parentNode)?this.mirror.getId(Fe(o)):this.mirror.getId(o.parentNode),a=r(o);if(-1===i||-1===a)return n.addNode(o);const s=ye(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Le(e,this.mirror)&&this.iframeManager.addIframe(e),_e(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),De(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Ze(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Je(this.droppedSet,e)||Ze(this.removes,e,this.mirror)?Je(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(Ie(e.target,this.mirror))return;let t;try{t=document.implementation.createHTMLDocument()}catch(e){t=this.doc}switch(e.type){case"characterData":{const t=e.target.textContent;Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,o=e.target.getAttribute(r);if("value"===r){const t=Y(n),r=n.tagName;o=K(n,r,t);const i=U({maskInputOptions:this.maskInputOptions,tagName:r,type:t});o=W({isMasked:ge(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:n,value:o,maskInputFn:this.maskInputFn})}if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===e.oldValue)return;let i=this.attributes.find((t=>t.node===e.target));if("IFRAME"===n.tagName&&"src"===r&&!this.keepIframeSrcFn(o)){if(n.contentDocument)return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i)),"type"===r&&"INPUT"===n.tagName&&"password"===(e.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!he(n.tagName,r)&&(i.attributes[r]=de(this.doc,H(n.tagName),H(r),o,n,this.maskAttributeFn),"style"===r)){const r=t.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(n.style)){const t=n.style.getPropertyValue(e),o=n.style.getPropertyPriority(e);t!==r.style.getPropertyValue(e)||o!==r.style.getPropertyPriority(e)?i.styleDiff[e]=""===o?t:[t,o]:i._unchangedStyles[e]=[t,o]}for(const e of Array.from(r.style))""===n.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=F(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Oe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ie(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Ke(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Re(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[qe(n,r)]?Ke(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!F(e.target)||!j(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ie(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[qe(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Oe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),De(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ke(e,t){e.delete(t),t.childNodes.forEach((t=>Ke(e,t)))}function Ze(e,t,n){return 0!==e.length&&Xe(e,t,n)}function Xe(e,t,n){const{parentNode:r}=t;if(!r)return!1;const o=n.getId(r);return!!e.some((e=>e.id===o))||Xe(e,r,n)}function Je(e,t){return 0!==e.size&&Qe(e,t)}function Qe(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Qe(e,n))}let et;function tt(e){et=e}function nt(){et=void 0}const rt=e=>et?(...t)=>{try{return e(...t)}catch(e){if(et&&!0===et(e))return()=>{};throw e}}:e;function ot(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}const it=[];function at(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function st(e,t){const n=new Ye;it.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=ot([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);o&&window[o]&&(r=window[o]);const i=new r(rt((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function lt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:a}){return be("scroll",rt(ke(rt((a=>{const s=at(a);if(!s||Oe(s,r,o,i,!0))return;const l=n.getId(s);if(s===t&&t.defaultView){const n=Te(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})})),a.scroll||100)),t)}const ct=["INPUT","TEXTAREA","SELECT"],ut=new WeakMap;function dt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:f,maskTextSelector:p,unmaskTextSelector:g}){function m(e){let n=at(e);const u=e.isTrusted,m=n&&G(n.tagName);if("OPTION"===m&&(n=n.parentElement),!n||!m||ct.indexOf(m)<0||Oe(n,r,o,i,!0))return;const v=n;if(v.classList.contains(a)||s&&v.matches(s))return;const b=Y(n);let x=K(v,m,b),w=!1;const k=U({maskInputOptions:l,tagName:m,type:b}),S=ge(n,h,p,f,g,k);"radio"!==b&&"checkbox"!==b||(w=n.checked),x=W({isMasked:S,element:n,value:x,maskInputFn:c}),y(n,d?{text:x,isChecked:w,userTriggered:u}:{text:x,isChecked:w});const C=n.name;"radio"===b&&C&&w&&t.querySelectorAll(`input[type="radio"][name="${C}"]`).forEach((e=>{if(e!==n){const t=W({isMasked:S,element:e,value:K(e,m,b),maskInputFn:c});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}}))}function y(t,r){const o=ut.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){ut.set(t,r);const o=n.getId(t);rt(e)({...r,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>be(e,rt(m),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const x=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&v.push(...w.map((e=>Se(e[0],e[1],{set(){rt(m)({target:this,isTrusted:!1})}},!1,b)))),rt((()=>{v.forEach((e=>e()))}))}function ht(e){return function(e,t){if(mt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||mt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||mt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||mt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function ft(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function pt({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?ot([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):ot([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=ot([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(ot([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return ot([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=ot([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),rt((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function gt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=st(e,e.doc),o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=ke(rt((t=>{const n=Date.now()-a;e(s.map((e=>(e.timeOffset-=n,e))),t),s=[],a=null})),i),c=rt(ke(rt((e=>{const t=at(e),{clientX:n,clientY:o}=Me(e)?e.changedTouches[0]:e;a||(a=Ee()),s.push({x:n,y:o,id:r.getId(t),timeOffset:Ee()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?ze.Drag:e instanceof MouseEvent?ze.MouseMove:ze.TouchMove)})),o,{trailing:!1})),u=[be("mousemove",c,n),be("touchmove",c,n),be("drag",c,n)];return rt((()=>{u.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[];let c=null;return Object.keys(Ve).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e])).forEach((a=>{let s=H(a);const u=(t=>a=>{const s=at(a);if(Oe(s,r,o,i,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=Ue.Mouse;break;case"touch":l=Ue.Touch;break;case"pen":l=Ue.Pen}l===Ue.Touch?Ve[t]===Ve.MouseDown?u="TouchStart":Ve[t]===Ve.MouseUp&&(u="TouchEnd"):Ue.Pen}else Me(a)&&(l=Ue.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===Ue.Touch||u.startsWith("Mouse")&&l===Ue.Mouse)&&(l=null)):Ve[t]===Ve.Click&&(l=c,c=null);const d=Me(a)?a.changedTouches[0]:a;if(!d)return;const h=n.getId(s),{clientX:f,clientY:p}=d;rt(e)({type:Ve[u],id:h,x:f,y:p,...null!==l&&{pointerType:l}})})(a);if(window.PointerEvent)switch(Ve[a]){case Ve.MouseDown:case Ve.MouseUp:s=s.replace("mouse","pointer");break;case Ve.TouchStart:case Ve.TouchEnd:return}l.push(be(s,u,t))})),rt((()=>{l.forEach((e=>e()))}))}(e),a=lt(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return be("resize",rt(ke(rt((()=>{const t=$e(),o=Pe();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),l=dt(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:a}){const s=rt((a=>ke(rt((i=>{const s=at(i);if(!s||Oe(s,t,n,r,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})})),i.media||500))),l=[be("play",s(0),a),be("pause",s(1),a),be("seeked",s(2),a),be("volumechange",s(3),a),be("ratechange",s(4),a)];return rt((()=>{l.forEach((e=>e()))}))}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:rt(((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=ft(o,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let a,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:rt(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=ft(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:rt(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=ft(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:rt(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=ft(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(o,i)}))}));const l={};yt("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(yt("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),yt("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),yt("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach((([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:rt(((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=ft(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...ht(o),s||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:rt(((r,o,i)=>{const[a]=i,{id:s,styleId:l}=ft(o.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...ht(o),a]}]}),r.apply(o,i)}))})})),rt((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach((([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule}))}))}(e,{win:n}),d=pt(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:rt(((o,a,s)=>{const[l,c,u]=s;if(n.has(l))return i.apply(a,[l,c,u]);const{id:d,styleId:h}=ft(ot([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:l,value:c,priority:u},index:ht(a.parentRule)}),o.apply(a,s)}))});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:rt(((o,i,s)=>{const[l]=s;if(n.has(l))return a.apply(i,[l]);const{id:c,styleId:u}=ft(ot([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:ht(i.parentRule)}),o.apply(i,s)}))}),rt((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a}))}(e,{win:n}),f=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=Ce(t.fonts,"add",(function(t){return function(n){return setTimeout(rt((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(a),rt((()=>{r.forEach((e=>e()))}))}(e):()=>{},p=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:a}=e;let s=!0;const l=rt((()=>{const e=t.getSelection();if(!e||s&&ot([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;const l=[],c=e.rangeCount||0;for(let t=0;t{}}(e),m=[];for(const t of e.plugins)m.push(t.observer(t.callback,n,t.options));return rt((()=>{it.forEach((e=>e.reset())),r.disconnect(),o(),i(),a(),s(),l(),c(),u(),d(),h(),f(),p(),g(),m.forEach((e=>e()))}))}function mt(e){return void 0!==window[e]}function yt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class vt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function bt(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}class xt{constructor(){this.crossOriginIframeMirror=new vt(Q),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class wt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new vt(Q),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new vt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),bt([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Be.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Be.IncrementalSnapshot,data:{source:ze.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Be.Meta:case Be.Load:case Be.DomContentLoaded:return!1;case Be.Plugin:return t;case Be.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Be.IncrementalSnapshot:switch(t.data.source){case ze.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case ze.Drag:case ze.TouchMove:case ze.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case ze.ViewportResize:return!1;case ze.MediaInteraction:case ze.MouseInteraction:case ze.Scroll:case ze.CanvasMutation:case ze.Input:return this.replaceIds(t.data,e,["id"]),t;case ze.StyleSheetRule:case ze.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ze.Font:return t;case ze.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case ze.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),bt([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===N.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class kt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class St{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!j(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=st({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(lt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(pt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ce(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&je(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Ct{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class At{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ne,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:z(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Et{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){(function(){if(Ae)return Ae;const e=window.document;let t=window.requestAnimationFrame;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch(e){}return Ae=t.bind(window)})()(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function Tt(e){const t=e;return t.timestamp=Ee(),t}let $t;const Pt=new V;function Ot(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:o,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:g=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:b,maskInputFn:x,maskTextFn:w,packFn:k,sampling:S={},dataURLOptions:C={},mousemoveWait:A,recordCanvas:E=!1,recordCrossOriginIframes:T=!1,recordAfter:P=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:I=!1,inlineImages:R=!1,plugins:M,keepIframeSrcFn:L=(()=>!1),ignoreCSSAttributes:_=new Set([]),errorHandler:D,onMutation:N,getCanvasManager:F}=e;tt(D);const j=!T||window.parent===window;let B=!1;if(!j)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(j&&!t)throw new Error("emit function is required");void 0!==A&&void 0===S.mousemove&&(S.mousemove=A),Pt.reset();const z=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},U=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let W;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let H=0;const G=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!B&&(e=k(e)),e},q=(e,i)=>{if(!r([it,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||e.type===Be.FullSnapshot||e.type===Be.IncrementalSnapshot&&e.data.source===ze.Mutation||it.forEach((e=>e.unfreeze())),j)r([t,"optionalCall",t=>t(G(e),i)]);else if(B){const t={type:"rrweb",event:G(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===Be.FullSnapshot)W=e,H=0;else if(e.type===Be.IncrementalSnapshot){if(e.data.source===ze.Mutation&&e.data.isAttachIframe)return;H++;const t=o&&H>=o,r=n&&e.timestamp-W.timestamp>n;(t||r)&&ne(!0)}},Y=e=>{q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.Mutation,...e}}))},K=e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.Scroll,...e}})),Z=e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.CanvasMutation,...e}})),X=new At({mutationCb:Y,adoptedStyleSheetCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.AdoptedStyleSheet,...e}}))}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new xt:new wt({mirror:Pt,mutationCb:Y,stylesheetManager:X,recordCrossOriginIframes:T,wrappedEmit:q});for(const e of M||[])e.getMirror&&e.getMirror({nodeMirror:Pt,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const Q=new Et,ee=function(e,t){try{return e?e(t):new Ct}catch(e){return $.warn("Unable to initialize CanvasManager"),new Ct}}(F,{mirror:Pt,win:window,mutationCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.CanvasMutation,...e}})),recordCanvas:E,blockClass:i,blockSelector:a,unblockSelector:s,sampling:S.canvas,dataURLOptions:C,errorHandler:D}),te="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new kt:new St({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:N,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:z,dataURLOptions:C,maskAttributeFn:b,maskTextFn:w,maskInputFn:x,recordCanvas:E,inlineImages:R,sampling:S,slimDOMOptions:U,iframeManager:J,stylesheetManager:X,canvasManager:ee,keepIframeSrcFn:L,processedNodeManager:Q},mirror:Pt}),ne=(e=!1)=>{q(Tt({type:Be.Meta,data:{href:window.location.href,width:Pe(),height:$e()}}),e),X.reset(),te.init(),it.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new V,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:f=!1,maskAllInputs:p=!1,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:x,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:E=(()=>!1)}=t||{};return ye(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,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:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:h,recordCanvas:f,preserveWhiteSpace:x,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:C,stylesheetLoadTimeout:A,keepIframeSrcFn:E,newlyAddedElement:!1})}(document,{mirror:Pt,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:g,maskAllInputs:z,maskAttributeFn:b,maskInputFn:x,maskTextFn:w,slimDOM:U,dataURLOptions:C,recordCanvas:E,inlineImages:R,onSerialize:e=>{Le(e,Pt)&&J.addIframe(e),_e(e,Pt)&&X.trackLinkElement(e),De(e)&&te.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),te.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:L});if(!t)return $.warn("Failed to snapshot the document");q(Tt({type:Be.FullSnapshot,data:{node:t,initialOffset:Te(window)}})),it.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,Pt.getId(document))};$t=ne;try{const e=[],t=e=>rt(gt)({onMutation:N,mutationCb:Y,mousemoveCb:(e,t)=>q(Tt({type:Be.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.MouseInteraction,...e}})),scrollCb:K,viewportResizeCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.ViewportResize,...e}})),inputCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.Input,...e}})),mediaInteractionCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.MediaInteraction,...e}})),styleSheetRuleCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.StyleSheetRule,...e}})),styleDeclarationCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.StyleDeclaration,...e}})),canvasMutationCb:Z,fontCb:e=>q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.Font,...e}})),selectionCb:e=>{q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.Selection,...e}}))},customElementCb:e=>{q(Tt({type:Be.IncrementalSnapshot,data:{source:ze.CustomElement,...e}}))},blockClass:i,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:z,inlineStylesheet:g,sampling:S,recordCanvas:E,inlineImages:R,userTriggeredOnInput:O,collectFonts:I,doc:e,maskAttributeFn:b,maskInputFn:x,maskTextFn:w,keepIframeSrcFn:L,blockSelector:a,unblockSelector:s,slimDOMOptions:U,dataURLOptions:C,mirror:Pt,iframeManager:J,stylesheetManager:X,shadowDomManager:te,processedNodeManager:Q,canvasManager:ee,ignoreCSSAttributes:_,plugins:r([M,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>q(Tt({type:Be.Plugin,data:{plugin:e.name,payload:t}}))})))])||[]},{});J.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){$.warn(e)}}));const n=()=>{ne(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(be("DOMContentLoaded",(()=>{q(Tt({type:Be.DomContentLoaded,data:{}})),"DOMContentLoaded"===P&&n()}))),e.push(be("load",(()=>{q(Tt({type:Be.Load,data:{}})),"load"===P&&n()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),$t=void 0,nt()}}catch(e){$.warn(e)}}Ot.mirror=Pt,Ot.takeFullSnapshot=function(e){if(!$t)throw new Error("please take full snapshot after start recording");$t(e)};const It=3;function Rt(e){return e>9999999999?e:1e3*e}function Mt(e){return e>9999999999?e/1e3:e}function Lt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Be.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,h.Fv)(t,10,1e3)}}),"console"===t.category))))}const _t="button,a";function Dt(e){return e.closest(_t)||e}function Nt(e){const t=Ft(e);return t&&t instanceof Element?Dt(t):t}function Ft(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let jt;class Bt{constructor(e,t,n=Lt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Vt()},jt||(jt=[],(0,f.hl)(P,"open",(function(e){return function(...t){if(jt)try{jt.forEach((e=>e()))}catch(e){}return e.apply(P,t)}}))),jt.push(t),()=>{const e=jt?jt.indexOf(t):-1;e>-1&&jt.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!zt.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Mt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Mt(e)}registerScroll(e=Date.now()){this._lastScroll=Mt(e)}registerClick(e){const t=Dt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Vt();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:a}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:P.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:P.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const zt=["A","BUTTON","INPUT"];function Vt(){return Date.now()/1e3}function Ut(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Wt;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Wt||(Wt={}));const Ht=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Gt(e){const t={};for(const n in e)if(Ht.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function qt(e,t){const n=Ot.mirror.getId(e),r=n&&Ot.mirror.getNode(n),o=r&&Ot.mirror.getMeta(r),i=o&&function(e){return e.type===Wt.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===Wt.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Gt(i.attributes)}}:{}}}const Yt={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Zt(i),end:Zt(o),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Zt(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:f,transferSize:p,type:g}=e;return 0===o?null:{type:`${t}.${g}`,start:Zt(f),end:Zt(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:a,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:h}}}};function Kt(e){return Yt[e.entryType]?Yt[e.entryType](e):null}function Zt(e){return((g.Z1||P.performance.timeOrigin)+e)/1e3}const Xt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Jt(e,t){Xt&&(m.kg.info(e),t&&en(e))}function Qt(e,t){Xt&&(m.kg.info(e),t&&setTimeout((()=>{en(e)}),0))}function en(e){(0,o.n_)({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class tn extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class nn{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>_)throw new tn;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Rt(e):null}}class rn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Jt("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const a=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",i),!a.success)return Xt&&m.kg.error("[Replay]",a.response),void o(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class on{constructor(e){this._worker=new rn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Rt(e.timestamp);(!this._earliestTimestamp||t_?Promise.reject(new tn):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Xt&&m.kg.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class an{constructor(e){this._fallback=new nn,this._compression=new on(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void Jt("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){Xt&&m.kg.warn("[Replay] Failed to add events when switching buffers.",e)}}}function sn(){try{return"sessionStorage"in P&&!!P.sessionStorage}catch(e){return!1}}function ln(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Jt(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),1))}function bn(e){return!e.type}function xn(e){return"transaction"===e.type}function wn(e){return"feedback"===e.type}function kn(e){const t=function(){const e=(0,o.s3)();if(!e)return!1;const t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!e.isEnabled()||!bn(n)&&!xn(n))return;const o=r&&r.statusCode;t&&(!o||o<200||o>=300)||(xn(n)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function Sn(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const a=e.throttledAddEvent({type:Be.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof a?Promise.resolve(null):a}))}function Cn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Xt||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=t&&function(e){return void 0!==e.getClient}(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){return!!t&&i(e)===i(t)}(e,o)}(t,(0,o.s3)())}(e,t.name)||e.addUpdate((()=>(Sn(e,[t]),!0))))}function An(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Mn(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function En(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Tn(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Mn(e)];if(!e)return[void 0]}catch(t){return Xt&&m.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Xt&&m.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $n(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Pn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:(0,f.Jr)({method:i,statusCode:a,request:s,response:l})}}function On(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function In(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>M,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,M);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function Rn(e,t){return Object.keys(e).reduce(((n,r)=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n}),{})}function Mn(e){return new URLSearchParams(e).toString()}function Ln(e,t){const n=function(e,t=P.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(P.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,b.U0)(n,t)}function _n(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Dn(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Nn(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Dn(n,t):Array.isArray(n)?{}:Rn(n,t):{}}function Fn(e){const t=(0,o.s3)();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t,n){const{xhr:r,input:o}=t;if(!r)return;const i=An(o,n.textEncoder),a=r.getResponseHeader("content-length")?En(r.getResponseHeader("content-length")):function(e,t,n){try{return An("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!s||!Ln(l,n.networkDetailAllowUrls)||Ln(l,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:On(d),response:On(h)};const f=s[v.xU],p=f?Rn(f.request_headers,n.networkRequestHeaders):{},g=Rn(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e}),{}):{}}(s),n.networkResponseHeaders),[y,b]=n.networkCaptureBodies?Tn(a):[void 0],[x,w]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Xt&&m.kg.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Xt&&m.kg.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Xt&&m.kg.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(s):[void 0],k=In(p,d,y),S=In(g,h,x);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:b?$n(k,b):k,response:w?$n(S,w):S}}(e,t,n),o=Pn("resource.xhr",r);Cn(n.replay,o)}catch(e){Xt&&m.kg.error("[Replay] Failed to capture xhr breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t,n){const{input:r,response:o}=t,i=An(r?_n(r):void 0,n.textEncoder),a=o?En(o.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=Ln(a,n.networkDetailAllowUrls)&&!Ln(a,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(a=t,1===(i=n).length&&"string"!=typeof i[0]?Nn(i[0],a):2===i.length?Nn(i[1],a):{}):{};var i,a;if(!e)return In(o,r,void 0);const s=_n(n),[l,c]=Tn(s),u=In(o,r,l);return c?$n(u,c):u}(n,t.input,c):On(c),f=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&void 0!==i)return On(i);const a=o?Dn(o.headers,r):{};if(!o||!t&&void 0!==i)return In(a,i,void 0);const[s,l]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Xt&&m.kg.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return Xt&&m.kg.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(o),c=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{const a=e&&e.length&&void 0===r?An(e,n):r;return o?In(i,a,t?e:void 0):On(a)}catch(e){return Xt&&m.kg.warn("[Replay] Failed to serialize response body",e),In(i,r,void 0)}}(s,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:a});return l?$n(c,l):c}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:a,method:s,statusCode:l,request:h,response:f}}(e,t,n),o=Pn("resource.fetch",r);Cn(n.replay,o)}catch(e){Xt&&m.kg.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){Xt&&m.kg.warn("Error when enriching network breadcrumb")}}(l,e,t))):((0,x.U)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;const{method:i,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:i,statusCode:o?o.status:void 0}}}(t);Cn(e,n)}}(e)),(0,v.UK)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[v.xU];if(!t||!n||!o)return null;const{method:i,url:a,status_code:s}=o;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:i,statusCode:s}}}(t);Cn(e,n)}}(e)))}catch(e){}}let jn=null;function Bn(e){return!(!e||!e.on)}function zn(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Vn(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Xt&&m.kg.warn("[Replay] Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return e.type===It}(t))return;const{source:n}=t.data;if(n===ze.Mutation&&e.registerMutation(t.timestamp),n===ze.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===ze.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=Ot.mirror.getNode(r);o instanceof HTMLElement&&n===Ve.Click&&e.registerClick(o)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!mn(e,n,o))return!0;if(!o)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&mn(e,function(e){const t=e.getOptions();return{type:Be.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(Jt(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&un(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}function Un(e,t,n,r){return(0,S.Jd)((0,S.Cd)(e,(0,S.HY)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}class Wn extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Hn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Gn(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){const c=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:d,traceIds:h,initialTimestamp:f}=r,p=(0,o.s3)(),g=(0,o.nZ)(),m=p&&p.getTransport(),y=p&&p.getDsn();if(!(p&&m&&y&&a.sampled))return;const v={type:I,replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:d,trace_ids:h,urls:u,replay_id:t,segment_id:n,replay_type:a.sampled},b=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",r,o);const i=await(0,s.R)(e.getOptions(),r,o,t,e,(0,l.aF)());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}({scope:g,client:p,replayId:t,event:v});if(!b)return p.recordDroppedEvent("event_processor","replay",v),void Jt("An event processor returned `null`, will not send event.");delete b.sdkProcessingMetadata;const x=Un(b,c,y,p.getOptions().tunnel);let w;try{w=await m.send(x)}catch(e){const t=new Error(R);try{t.cause=e}catch(e){}throw t}if(!w)return w;if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new Wn(w.statusCode);const k=(0,C.WG)({},w);if((0,C.Q)(k,"replay"))throw new Hn(k);return w}(e),!0}catch(n){if(n instanceof Wn||n instanceof Hn)throw n;if((0,o.v)("Replays",{_retryCount:t.count}),Xt&&r._experiments&&r._experiments.captureExceptions&&(0,o.Tb)(n),t.count>=3){const e=new Error(`${R} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await Gn(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const qn="__THROTTLED";class Yn{constructor({options:e,recordingOptions:t}){Yn.prototype.__init.call(this),Yn.prototype.__init2.call(this),Yn.prototype.__init3.call(this),Yn.prototype.__init4.call(this),Yn.prototype.__init5.call(this),Yn.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e(),r}function l(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=setTimeout(s,t),a&&void 0===i&&(i=setTimeout(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==o||void 0!==i?s():r},c}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...i)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":qn}o=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...i)}}(((e,t)=>function(e,t,n){return vn(e,t)?yn(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;o&&(this.clickDetector=new Bt(this,o))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Qt(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Qt("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=gn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Qt("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=gn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Ot({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Vn(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Jt("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(sn())try{P.sessionStorage.removeItem(O)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Jt("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Jt("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Jt("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&hn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${P.location.pathname}${P.location.hash}${P.location.search}`,t=`${P.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===qn){const e=Ut({category:"replay.throttled"});this.addUpdate((()=>!mn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||(0,o.nZ)().getTransaction(),t=(e&&(0,c.XU)(e).data||{})[u.Zj];if(e&&t&&["route","custom"].includes(t))return(0,c.XU)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['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<>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>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;Jt("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new an(n)}catch(e){Jt("[Replay] Failed to create compression worker")}}(t);if(e)return e}return Jt("[Replay] Using simple buffer"),new nn}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Xt&&m.kg.error("[Replay]",e),Xt&&this._options._experiments&&this._options._experiments.captureExceptions&&(0,o.Tb)(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=gn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!pn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{P.document.addEventListener("visibilitychange",this._handleVisibilityChange),P.addEventListener("blur",this._handleWindowBlur),P.addEventListener("focus",this._handleWindowFocus),P.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=(0,o.nZ)(),n=(0,o.s3)();t.addScopeListener((e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return jn!==t&&t?(jn=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ut(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>L?(n=!0,`${e.slice(0,L)}…`):e;if("object"==typeof e)try{const t=(0,h.Fv)(e,7);return JSON.stringify(t).length>L?(n=!0,`${JSON.stringify(t,null,2).slice(0,L)}…`):t}catch(e){}return e}));return Ut({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Ut(t)):null}(t);n&&Lt(e,n)})(e)),(0,w.O)((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Nt(e.event):Ft(e.event),n=(0,p.Rt)(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return Ut({category:`ui.${e.name}`,...qt(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,Nt(t.event)),Lt(e,n)})(e)),(0,k.a)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Sn(e,[n]),!1))))}}(e)),Fn(e);const r=function(e,t=!1){const n=t?kn(e):void 0;return Object.assign(((t,r)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!bn(t)&&!xn(t)&&!wn(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(wn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Be.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Xt&&m.kg.log("[Replay] Ignoring error from rrweb internals",t),null;const o=function(e,t){return"buffer"===e.recordingMode&&t.message!==R&&!(!t.exception||t.type)&&ln(e.getOptions().errorSampleRate)}(e,t);return(o||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}),{id:"Replay"})}(e,!Bn(n));n&&n.addEventProcessor?n.addEventProcessor(r):(0,a.Q)(r),Bn(n)&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&bn(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0].value;"string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Lt(e,Ut({category:"replay.hydrate-error"}))}(e,t)}}(e)),n.on("afterSendEvent",kn(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})),n.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&(e.flush(),t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r))})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push((0,T._j)(e,n))})),r.push((0,T.$A)((({metric:t})=>{e.replayPerformanceEntries.push(function(e){const t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=Zt(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?Ot.mirror.getId(r):void 0}}}(t))}))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{P.document.removeEventListener("visibilitychange",this._handleVisibilityChange),P.removeEventListener("blur",this._handleWindowBlur),P.removeEventListener("focus",this._handleWindowFocus),P.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===P.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ut({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ut({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const s=t||r||o,l=1===i.length;if(!s&&l)return null;const c=(0,p.Rt)(a,{maxStringLength:200})||"";return Ut({category:"ui.keyDown",message:c,data:{...qt(a,c).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&Lt(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(fn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Jt("[Replay] Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Be.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Kt).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Sn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._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 Gn({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=(0,o.s3)();t&&t.recordDroppedEvent("send_error","replay")}}else Xt&&m.kg.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Xt&&m.kg.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||o)return Jt(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const i=this.eventBuffer;if(i&&0===this.session.segmentId&&!i.hasCheckout&&Jt("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){Xt&&m.kg.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&un(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Ut({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Kn(e,t,n,r){const o=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&o.push(`.${n}`),(0,m.Cf)((()=>{$.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")}))),o.join(",")}const Zn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Xn=["content-length","content-type","accept"];let Jn=!1;const Qn=e=>new er(e);class er{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:s={},sessionSampleRate:l,errorSampleRate:c,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:g=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:b=!0,networkRequestHeaders:x=[],networkResponseHeaders:w=[],mask:k=[],maskAttributes:S=["title","placeholder"],unmask:C=[],block:A=[],unblock:T=[],ignore:P=[],maskFn:O,beforeAddRecordingEvent:I,beforeErrorSampling:R,blockClass:M,blockSelector:L,maskInputOptions:_,maskTextClass:D,maskTextSelector:N,ignoreClass:F}={}){this.name=er.id;const j=function({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:a,maskTextClass:s,maskTextSelector:l,ignoreClass:c}){const u={maskTextSelector:Kn(e,[".sentry-mask","[data-sentry-mask]"],s,l),unmaskTextSelector:Kn(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:Kn(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],i,a),unblockSelector:Kn(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Kn(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return i instanceof RegExp&&(u.blockClass=i),s instanceof RegExp&&(u.maskTextClass=s),u}({mask:k,unmask:C,block:A,unblock:T,ignore:P,blockClass:M,blockSelector:L,maskTextClass:D,maskTextSelector:N,ignoreClass:F});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{..._||{},password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:u,privacyOptions:j,key:e,value:t,el:n}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,sessionSampleRate:l,errorSampleRate:c,useCompression:i,workerUrl:a,blockAllMedia:h,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:g,slowClickIgnoreSelectors:m,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:b,networkRequestHeaders:tr(x),networkResponseHeaders:tr(w),beforeAddRecordingEvent:I,beforeErrorSampling:R,_experiments:s},"number"==typeof l&&($.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),"number"==typeof c&&($.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Zn}`:Zn),this._isInitialized&&E())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Jn}set _isInitialized(e){Jn=e}setupOnce(){E()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=function(e){const t=(0,o.s3)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,f.Jr)(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,m.Cf)((()=>{$.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):((0,m.Cf)((()=>{$.warn("SDK client is not available.")})),r)}(this._initialOptions);this._replay=new Yn({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const e=(0,o.s3)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function tr(e){return[...Xn,...e.map((e=>e.toLowerCase()))]}er.__initStatic()},9181:(e,t,n)=>{"use strict";n.d(t,{EN:()=>u,IQ:()=>d,bU:()=>a});var r=n(3897),o=n(7597),i=n(2343);const a="baggage",s="sentry-",l=/^sentry-/,c=8192;function u(e){if(!(0,o.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=h(t);for(const t of Object.keys(n))e[t]=n[t];return e}),{});else{if(!e)return;t=h(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(l)&&(e[t.slice(s.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function d(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],o)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===o?a:`${e},${a}`;return s.length>c?(r.X&&i.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e)),{}))}function h(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}},8464:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,iY:()=>u,l4:()=>l,qT:()=>c});var r=n(7597);const o=(0,n(1235).R)(),i=80;function a(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let a=0,l=0;const c=" > ",u=c.length;let d;const h=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;n&&a++1&&l+o.length*u+d.length>=f));)o.push(d),l+=d.length,n=n.parentNode;return o.reverse().join(c)}catch(e){return""}}function s(e,t){const n=e,i=[];let a,s,l,c,u;if(!n||!n.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const d=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(d&&d.length)d.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),a=n.className,a&&(0,r.HD)(a))for(s=a.split(/\s+/),u=0;u{"use strict";n.d(t,{X:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},292:(e,t,n)=>{"use strict";n.d(t,{RA:()=>s,vK:()=>c});var r=n(3897),o=n(2343),i=n(5108);const a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){const t="string"==typeof e?function(e){const t=a.exec(e);if(!t)return void(0,o.Cf)((()=>{i.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,s="",c,u="",d]=t.slice(1);let h="",f=d;const p=f.split("/");if(p.length>1&&(h=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return l({host:c,pass:s,path:h,projectId:f,port:u,protocol:n,publicKey:r})}(e):l(e);if(t&&function(e){if(!r.X)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(o.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.kg.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},8518:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{S:()=>o,n:()=>r})},8725:(e,t,n)=>{"use strict";n.d(t,{BO:()=>s,Cd:()=>g,HY:()=>p,Jd:()=>a,V$:()=>u,gv:()=>l,mL:()=>f,zQ:()=>d});var r=n(292),o=n(8007),i=n(535);function a(e,t=[]){return[e,t]}function s(e,t){const[n,r]=e;return[n,[...r,t]]}function l(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function c(e,t){return(t||new TextEncoder).encode(e)}function u(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[c(i,t),e]:i.push("string"==typeof e?c(e,t):e)}for(const e of r){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,o.Fv)(n))}a(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function d(e,t){const n="string"==typeof e.data?c(e.data,t):e.data;return[(0,i.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const h={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function f(e){return h[e]}function p(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function g(e,t,n,o){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&o&&{dsn:(0,r.RA)(o)},...a&&{trace:(0,i.Jr)({...a})}}}},409:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},9729:(e,t,n)=>{"use strict";n.d(t,{D2:()=>c,Hj:()=>l,rK:()=>u});var r=n(3897),o=n(2343),i=n(1738);const a={},s={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function c(e,t){s[e]||(t(),s[e]=!0)}function u(e,t){const n=e&&a[e];if(n)for(const a of n)try{a(t)}catch(t){r.X&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.$P)(a)}\nError:`,t)}}},5316:(e,t,n)=>{"use strict";n.d(t,{O:()=>h});var r=n(2844),o=n(535),i=n(1235),a=n(9729);const s=i.GLOBAL_OBJ,l=1e3;let c,u,d;function h(e){(0,a.Hj)("dom",e),(0,a.D2)("dom",f)}function f(){if(!s.document)return;const e=a.rK.bind(null,"dom"),t=p(e,!0);s.document.addEventListener("click",t,!1),s.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=s[t]&&s[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){const r=p(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch(e){}return t.call(this,n,r,o)}})),(0,o.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;(0,o.xp)(n,"_sentryCaptured",!0),i&&!i._sentryId&&(0,o.xp)(i,"_sentryId",(0,r.DM)());const a="keypress"===n.type?"input":n.type;(function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==d)return!1}catch(e){}return!0})(n)||(e({event:n,name:a,global:t}),u=n.type,d=i?i._sentryId:void 0),clearTimeout(c),c=s.setTimeout((()=>{d=void 0,u=void 0}),l)}}},1394:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var r=n(535),o=n(8823),i=n(1235),a=n(9729);function s(e){const t="fetch";(0,a.Hj)(t,e),(0,a.D2)(t,l)}function l(){(0,o.t$)()&&(0,r.hl)(i.GLOBAL_OBJ,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:u(t),method:c(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:u(t),method:c(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return(0,a.rK)("fetch",{...o}),e.apply(i.GLOBAL_OBJ,t).then((e=>{const t={...o,endTimestamp:Date.now(),response:e};return(0,a.rK)("fetch",t),e}),(e=>{const t={...o,endTimestamp:Date.now(),error:e};throw(0,a.rK)("fetch",t),e}))}}))}function c(e,t){return!!e&&"object"==typeof e&&!!e[t]}function u(e){return"string"==typeof e?e:e?c(e,"url")?e.url:e.toString?e.toString():"":""}},1674:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(1235),o=n(9729);let i=null;function a(e){const t="error";(0,o.Hj)(t,e),(0,o.D2)(t,s)}function s(){i=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,a){const s={column:r,error:a,line:n,msg:e,url:t};return(0,o.rK)("error",s),!(!i||i.__SENTRY_LOADER__)&&i.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},7373:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(1235),o=n(9729);let i=null;function a(e){const t="unhandledrejection";(0,o.Hj)(t,e),(0,o.D2)(t,s)}function s(){i=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,o.rK)("unhandledrejection",t),!(i&&!i.__SENTRY_LOADER__)||i.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},734:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var r=n(535),o=n(1235);const i=(0,o.R)();var a=n(9729);const s=o.GLOBAL_OBJ;let l;function c(e){const t="history";(0,a.Hj)(t,e),(0,a.D2)(t,u)}function u(){if(!function(){const e=i.chrome,t=e&&e.app&&e.app.runtime,n="history"in i&&!!i.history.pushState&&!!i.history.replaceState;return!t&&n}())return;const e=s.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=l,t=String(n);l=t;const r={from:e,to:t};(0,a.rK)("history",r)}return e.apply(this,t)}}s.onpopstate=function(...t){const n=s.location.href,r=l;l=n;const o={from:r,to:n};if((0,a.rK)("history",o),e)try{return e.apply(this,t)}catch(e){}},(0,r.hl)(s.history,"pushState",t),(0,r.hl)(s.history,"replaceState",t)}},5322:(e,t,n)=>{"use strict";n.d(t,{UK:()=>c,xU:()=>l});var r=n(7597),o=n(535),i=n(1235),a=n(9729);const s=i.GLOBAL_OBJ,l="__sentry_xhr_v3__";function c(e){(0,a.Hj)("xhr",e),(0,a.D2)("xhr",u)}function u(){if(!s.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,o.hl)(e,"open",(function(e){return function(...t){const n=Date.now(),i=(0,r.HD)(t[0])?t[0].toUpperCase():void 0,s=function(e){if((0,r.HD)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!i||!s)return e.apply(this,t);this[l]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const c=()=>{const e=this[l];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}const t={args:[i,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this};(0,a.rK)("xhr",t)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,o.hl)(this,"onreadystatechange",(function(e){return function(...t){return c(),e.apply(this,t)}})):this.addEventListener("readystatechange",c),(0,o.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,o]=t,i=this[l];return i&&(0,r.HD)(n)&&(0,r.HD)(o)&&(i.request_headers[n.toLowerCase()]=o),e.apply(this,t)}})),e.apply(this,t)}})),(0,o.hl)(e,"send",(function(e){return function(...t){const n=this[l];if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);const r={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return(0,a.rK)("xhr",r),e.apply(this,t)}}))}},7597:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>y,HD:()=>c,J8:()=>m,Kj:()=>g,Le:()=>u,PO:()=>h,TX:()=>s,V9:()=>b,VW:()=>a,VZ:()=>o,cO:()=>f,fm:()=>l,i2:()=>v,kK:()=>p,pt:()=>d,y1:()=>x});const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function a(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function c(e){return i(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return i(e,"Object")}function f(e){return"undefined"!=typeof Event&&b(e,Event)}function p(e){return"undefined"!=typeof Element&&b(e,Element)}function g(e){return i(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}function x(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},2343:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>s,LD:()=>a,RU:()=>i,kg:()=>l});var r=n(3897),o=n(1235);const i=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in o.GLOBAL_OBJ))return e();const t=o.GLOBAL_OBJ.console,n={},r=Object.keys(a);r.forEach((e=>{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const l=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?i.forEach((n=>{t[n]=(...t)=>{e&&s((()=>{o.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}()},2844:(e,t,n)=>{"use strict";n.d(t,{DM:()=>i,Db:()=>l,EG:()=>c,YO:()=>u,jH:()=>s,lE:()=>d});var r=n(535),o=n(1235);function i(){const e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function l(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},1422:(e,t,n)=>{"use strict";n.d(t,{KV:()=>i});var r=n(8518);e=n.hmd(e);var o=n(4155);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==o?o:0)}},8007:(e,t,n)=>{"use strict";n.d(t,{Fv:()=>a,Qy:()=>s});var r=n(7597),o=n(535),i=n(1738);function a(e,t=100,n=1/0){try{return l("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function s(e,t=3,n=102400){const r=a(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?s(e,t-1,n):r;var o}function l(e,t,a=1/0,s=1/0,c=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=s){g[e]="[MaxProperties ~]";break}const t=y[e];g[e]=l(e,t,f-1,s,c),m++}return d(t),g}},535:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>u,HK:()=>d,Jr:()=>y,Sh:()=>f,_j:()=>h,hl:()=>l,xp:()=>c,zf:()=>m});var r=n(8464),o=n(3897),i=n(7597),a=n(2343),s=n(7321);function l(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&u(o,r),e[t]=o}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){o.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function f(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...g(e)};if((0,i.cO)(e)){const t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...g(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function p(e){try{return(0,i.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return""}}function g(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function m(e,t=40){const n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,s.$G)(r,t)}return""}function y(e){return v(e,new Map)}function v(e,t){if(function(e){if(!(0,i.PO)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=v(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(v(e,t))})),r}return e}},228:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,WG:()=>i});const r=6e4;function o(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function i(e,{statusCode:t,headers:n},o=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),r=parseInt(t,10),a=1e3*(isNaN(r)?60:r);if(n)for(const e of n.split(";"))i[e]=o+a;else i.all=o+a}else s?i.all=o+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const o=Date.parse(`${e}`);return isNaN(o)?r:o-t}(s,o):429===t&&(i.all=o+6e4);return i}},1738:(e,t,n)=>{"use strict";n.d(t,{$P:()=>c,Sq:()=>s,pE:()=>a});const r=50,o=/\(error: (.*)\)/,i=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const a=[],s=e.split("\n");for(let e=n;e1024)continue;const i=o.test(n)?n.replace(o,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){a.push(t);break}}if(a.length>=r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),i.test(t[t.length-1].function||"")&&(t.pop(),i.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,r).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(a)}}function s(e){return Array.isArray(e)?a(...e):e}const l="";function c(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}}},7321:(e,t,n)=>{"use strict";n.d(t,{$G:()=>o,U0:()=>a,nK:()=>i});var r=n(7597);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;tfunction(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},8823:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>a,Du:()=>s,t$:()=>l});var r=n(3897),o=n(2343);const i=(0,n(1235).R)();function a(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function l(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(s(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.X&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},6893:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>i,cW:()=>s});var r,o=n(7597);function i(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,o.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},1170:(e,t,n)=>{"use strict";n.d(t,{Z1:()=>l,ph:()=>a,yW:()=>i});var r=n(1235);const o=1e3;function i(){return Date.now()/o}const a=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/o}();let s;const l=(()=>{const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return void(s="none");const t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i{"use strict";n.d(t,{$p:()=>s,pT:()=>a});var r=n(9181),o=n(2844);const i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){const n=function(e){if(!e)return;const t=e.match(i);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),a=(0,r.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,o.DM)(),parentSpanId:l||(0,o.DM)().substring(16),spanId:(0,o.DM)().substring(16),sampled:c,dsc:a||{}}:{traceId:s||(0,o.DM)(),spanId:(0,o.DM)().substring(16)}}function s(e=(0,o.DM)(),t=(0,o.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},6956:(e,t,n)=>{"use strict";function r(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function o(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}n.d(t,{$A:()=>o,en:()=>r})},1235:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{GLOBAL_OBJ:()=>o,R:()=>i,Y:()=>a});const o="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return o}function a(e,t,n){const r=n||o,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},9845:(e,t,n)=>{"use strict";n.d(t,{bZj:()=>KO,XaZ:()=>_v,zMQ:()=>Dv,K1F:()=>VV,Cts:()=>mC,$Qs:()=>MB,xuv:()=>dC,zxk:()=>m_,XZJ:()=>SV,W20:()=>bC,YcB:()=>UV,Rp9:()=>YL,ubH:()=>DB,Y5v:()=>d_,kCb:()=>wC,rjZ:()=>XS,Ugi:()=>sC,X6q:()=>LB,hU:()=>Cx,Eep:()=>rx,hWs:()=>BV,rUS:()=>US,aVo:()=>GS,HCh:()=>KS,TKf:()=>VR,TLV:()=>FR,Qy5:()=>WV,v2r:()=>wE,j2t:()=>IE,sNh:()=>AE,qyq:()=>$E,u_l:()=>XE,fef:()=>jT,olH:()=>BT,hzk:()=>$T,mzw:()=>_T,xBx:()=>DT,ZAr:()=>FT,s_4:()=>XV,Nak:()=>JV,V9q:()=>eU,alg:()=>HV,Ilp:()=>aU,Exd:()=>R$,Y8K:()=>B$,hen:()=>GV,FXm:()=>D$,AUA:()=>WB,MIq:()=>eC,OdW:()=>UR,Kqy:()=>iC,Rap:()=>KL,rsf:()=>rO,iA_:()=>rW,EST:()=>xH,xvT:()=>tC,YIq:()=>qV,ua7:()=>YO,gCW:()=>aC,m$N:()=>hd,ajc:()=>eW,lzp:()=>wH,k0J:()=>ao,SRG:()=>UL,Ehq:()=>XL,h_N:()=>YR,o9Y:()=>ZR,ktP:()=>$S,Sx0:()=>kC,ZRo:()=>KR,qY0:()=>TS,bNU:()=>JL,yln:()=>QL,HX$:()=>e_,rbp:()=>t_,pmc:()=>Yv});var r=n(7294),o=n(5893),i=n(8100),a=n(1257),s=n(7536),l=n(2161),c=n(819),u=n(81),d=n(2379),h=n(9643);class f extends h.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||c._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,l.oE)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(l.ZT).catch(l.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,l.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const i=(0,l.G9)(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn")};var u;s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=c.fetchOptions)?void 0:u.meta});const h=e=>{var t,n,r,o;(0,d.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,d.DV)(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,d.Mz)({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):h(new Error(this.queryHash+" data is undefined"))},onError:h,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,d.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return(0,d.DV)(o)&&o.revert&&this.revertState?{...this.revertState}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),u.V.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}var p=n(3989);class g extends p.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,i=null!=(r=t.queryHash)?r:(0,l.Rm)(o,t);let a=this.get(i);return a||(a=new f({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){u.V.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,l.I6)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,l._x)(n,e)))}findAll(e,t){const[n]=(0,l.I6)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,l._x)(n,e))):this.queries}notify(e){u.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){u.V.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){u.V.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}var m=n(9886);class y extends p.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new m.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){u.V.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,l.X7)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,l.X7)(e,t)))}notify(e){u.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return u.V.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(l.ZT)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}var v=n(5761),b=n(6474),x=n(9499),w=n(5945),k=n(9250),S=n(9655),C=n(6606),A=n.n(C),E=n(405),T=n(6310),$=n(5108),P=n(4155),O=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t2||se(Q)>3?"":" "}function he(e,t){for(;--t&&re()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return ae(e,ie()+(t<6&&32==oe()&&32==re()))}function fe(e){for(;re();)switch(Q){case e:return J;case 34:case 39:34!==e&&39!==e&&fe(Q);break;case 40:41===e&&fe(e);break;case 92:re()}return J}function pe(e,t){for(;re()&&e+Q!==57&&(e+Q!==84||47!==oe()););return"/*"+ae(t,J-1)+"*"+j(47===e?e:re())}function ge(e){for(;!se(oe());)re();return ae(e,J)}function me(e){return ce(ye("",null,null,null,[""],e=le(e),0,[0],e))}function ye(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,p=0,g=1,m=1,y=1,v=0,b="",x=o,w=i,k=r,S=b;m;)switch(p=v,v=re()){case 40:if(108!=p&&58==W(S,d-1)){-1!=U(S+=V(ue(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=ue(v);break;case 9:case 10:case 13:case 32:S+=de(p);break;case 92:S+=he(ie()-1,7);continue;case 47:switch(oe()){case 42:case 47:Y(be(pe(re(),ie()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=G(S)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==y&&(S=V(S,/\f/g,"")),f>0&&G(S)-d&&Y(f>32?xe(S+";",r,n,d-1):xe(V(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Y(k=ve(S,t,n,c,u,o,s,b,x=[],w=[],d),i),123===v)if(0===u)ye(S,t,k,k,x,i,d,s,w);else switch(99===h&&110===W(S,3)?100:h){case 100:case 108:case 109:case 115:ye(e,k,k,r&&Y(ve(e,k,k,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ye(S,k,k,k,[""],w,0,s,w)}}c=u=f=0,g=y=1,b=S="",d=a;break;case 58:d=1+G(S),f=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Q=J>0?W(ee,--J):0,Z--,10===Q&&(Z=1,K--),Q))continue;switch(S+=j(v),v*g){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(G(S)-1)*y,y=1;break;case 64:45===oe()&&(S+=ue(re())),h=oe(),u=d=G(b=S+=ge(ie())),v++;break;case 45:45===p&&2==G(S)&&(g=0)}}return i}function ve(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,h=0===o?i:[""],f=q(h),p=0,g=0,m=0;p0?h[y]+" "+v:V(v,/&\f/g,h[y])))&&(l[m++]=b);return te(e,t,n,0===o?_:s,l,c,u)}function be(e,t,n){return te(e,t,n,L,j(Q),H(e,2,-2),0)}function xe(e,t,n,r){return te(e,t,n,D,H(e,0,r),H(e,r+1,-1),r)}function we(e,t){for(var n="",r=q(e),o=0;o6)switch(W(e,t+1)){case 109:if(45!==W(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+R+(108==W(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch")?Ie(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==W(e,t+1))break;case 6444:switch(W(e,G(e)-3-(~U(e,"!important")&&10))){case 107:return V(e,":",":"+M)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(45===W(e,14)?"inline-":"")+"box$3$1"+M+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(W(e,t+11)){case 114:return M+e+I+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+I+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+I+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+I+e+e}return e}var Re="undefined"!=typeof document,Me=Re?void 0:Ae((function(){return Ee((function(){var e={};return function(t){return e[t]}}))})),Le=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case D:e.return=Ie(e.value,e.length);break;case N:return we([ne(e,{value:V(e.value,"@","@"+M)})],r);case _:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return we([ne(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return we([ne(e,{props:[V(t,/:(plac\w+)/,":"+M+"input-$1")]}),ne(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]}),ne(e,{props:[V(t,/:(plac\w+)/,I+"input-$1")]})],r)}return""}))}}],_e=function(e){var t=e.key;if(Re&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Le,a={},s=[];Re&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ft}},mt="undefined"!=typeof document,yt=!!r.useInsertionEffect&&r.useInsertionEffect,vt=mt&&yt||function(e){return e()},bt=yt||r.useLayoutEffect,xt="undefined"!=typeof document,wt={}.hasOwnProperty,kt=r.createContext("undefined"!=typeof HTMLElement?_e({key:"css"}):null);kt.Provider;var St=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(kt);return e(t,o,n)}))};xt||(St=function(e){return function(t){var n=(0,r.useContext)(kt);return null===n?(n=_e({key:"css"}),r.createElement(kt.Provider,{value:n},e(t,n))):e(t,n)}});var Ct=r.createContext({}),At=Ae((function(e){return Ae((function(t){return function(e,t){return"function"==typeof t?t(e):De({},e,t)}(e,t)}))})),Et=function(e){var t=r.useContext(Ct);return e.theme!==t&&(t=At(t)(e.theme)),r.createElement(Ct.Provider,{value:t},e.children)},Tt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$t=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;rt(t,n,o);var i=vt((function(){return ot(t,n,o)}));if(!xt&&void 0!==i){for(var a,s=n.name,l=n.next;void 0!==l;)s+=" "+l.name,l=l.next;return r.createElement("style",((a={})["data-emotion"]=t.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},Pt=(St((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[Tt],a=[o],s="";"string"==typeof e.className?s=nt(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=gt(a,void 0,r.useContext(Ct));s+=t.key+"-"+l.name;var c={};for(var u in e)!wt.call(e,u)||"css"===u||u===Tt||(c[u]=e[u]);return c.ref=n,c.className=s,r.createElement(r.Fragment,null,r.createElement($t,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r.createElement(i,c))})),St((function(e,t){var n=e.styles,o=gt([n],void 0,r.useContext(Ct));if(!xt){for(var i,a=o.name,s=o.styles,l=o.next;void 0!==l;)a+=" "+l.name,s+=l.styles,l=l.next;var c=!0===t.compat,u=t.insert("",{name:a,styles:s},t.sheet,c);return c?null:r.createElement("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var d=r.useRef();return bt((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,r],function(){n.flush()}}),[t]),bt((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&ot(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null})));function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.jsx)(Pt,{styles:_t}),Nt=({scope:e=""})=>(0,o.jsx)(Pt,{styles:Lt` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${_t} `});function Ft(e={}){const{name:t,strict:n=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;const s=(0,r.useContext)(l);if(!s&&n){const n=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},l]}var[jt,Bt]=Ft({strict:!1,name:"PortalManagerContext"});function zt(e){const{children:t,zIndex:n}=e;return(0,o.jsx)(jt,{value:{zIndex:n},children:t})}zt.displayName="PortalManager";var Vt,Ut,Wt=Boolean(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect,Ht={exports:{}},Gt={exports:{}},qt={};function Yt(){return Ut||(Ut=1,Gt.exports=(Vt||(Vt=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(l,n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,b(e),!p)if(null!==n(l))p=!0,M(w);else{var t=n(c);null!==t&&L(x,t.startTime-e)}}function w(t,o){p=!1,g&&(g=!1,y(A),A=-1),f=!0;var i=h;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&L(x,m.startTime-o),u=!1}return u}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,A=-1,E=5,T=-1;function P(){return!(e.unstable_now()-Te||125a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(y(A),A=-1):g=!0,L(x,i-a))):(r.sortIndex=s,t(l,r),p||f||(p=!0,M(w))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(qt)),qt)),Gt.exports}var Kt,Zt={};(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){$.error(e)}})(),Ht.exports=function(){if(Kt)return Zt;Kt=1;var e=r,t=Yt();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n