PageSourceSearch

https://wagmo.io/_cms/_next/static/chunks/pages/_app-324b6cc1863b74d3.js

js wagmo.io collected 2026-09-28 10:36:47 UTC 438,276 bytes, 26 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{79:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=r||"";return i&&(a=r.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&0>r.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),s&&(a="string"==typeof(t=e=a)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),a};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},129:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{BY:()=>a,OW:()=>i,VZ:()=>s});let i="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 s(){return i}function a(e,t,n){let r=n||i,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}},489:(e,t,n)=>{"use strict";n.d(t,{AH:()=>g,iC:()=>m,vN:()=>v,V_:()=>_});var r=n(7876),i=n(4232),s=n(9099),a=n.n(s),o=n(4260),l=n(1602),c=n(8992),u=n(4500);let h=async e=>{let t=await (0,u.Vc)("".concat(u.tf,"/zip_codes/").concat(e,"/"))();if(!t||!t.ok)throw Error("Failed to fetch lead by id");return null==t?void 0:t.json()},d={staleTime:(0,c.n)({minutes:1})};var p=n(1595),f=n(518),m=function(e){return e.BLUR="Blur",e.CHANGE="Change",e.CLICK="Click",e.CLOSE="Close",e.FOCUS="Focus",e.HOVER="Hover",e.OPEN="Open",e.SUBMIT="Submit",e.PAGE_LOAD="Page load",e}({}),g=function(e){return e.CTA_EVENT="CTA Event",e.QUIZ_EVENT="Quiz Event",e.MODAL_EVENT="Modal Event",e.FORM_EVENT="Form Event",e.INFO_EVENT="Info Event",e.CHECKOUT_EVENT="Checkout Event",e}({});let y=(0,i.createContext)({}),v=e=>{let{children:t}=e,[n,c]=(0,i.useState)({isInitialized:!1,hasUser:!1,trackers:[{trackingId:"G-1E23GKYVZ7"}]}),u={userId:null,logEvent:e=>{let{category:t,screen:r,section:i,label:s,type:a}=e;(null==n?void 0:n.isInitialized)&&o.Ay.event({category:t,action:[r,i].join(": "),label:[s,a].join(": ")},null==n?void 0:n.trackers)},analytics:n};return(()=>{let{lid:e}=(0,s.useRouter)().query,{data:t,error:n}=(e=>(0,l.I)(["getLeadInfo",e],()=>h(e),{...d,enabled:null!==e&&e.length>0}))("string"==typeof e&&e.length>0?e:null);(0,i.useEffect)(()=>{t&&!n&&((e=>{let t={$email:e.email,$first_name:e.firstName,$last_name:e.lastName,$city:e.city,$region:e.state,$zip:e.zipCode,"Uncapped Lead":e.isUncapped,"Newsletter Subscriber":e.newsletterSubscriber,"Contact Type":"Lead"};try{window.klaviyo.push(["identify",t])}catch(t){let e=Error(t);p.Cp(e,{level:"error"})}})(t),(e=>{p.NA("userLeadId",e.id.toString()),p.gV({email:e.email})})(t))},[t,n])})(),(()=>{let{query:e}=(0,s.useRouter)(),t=(0,f.R)(e.utm_source),n=(0,f.R)(e.utm_medium),r=(0,f.R)(e.utm_campaign),a=(0,f.R)(e.utm_content),o=(0,f.R)(e.utm_term),l=(0,i.useMemo)(()=>({utmSource:t,utmMedium:n,utmCampaign:r,utmContent:a,utmTerm:o}),[r,a,n,t,o]);return(0,i.useEffect)(()=>{Object.values(l).some(e=>null!==e)&&window.localStorage.setItem("marketingSource",JSON.stringify(l,(e,t)=>{if(null!==t)return t}))},[l])})(),(()=>{let{query:e}=(0,s.useRouter)(),t=(0,f.R)(e.rpc),n=(0,f.R)(e.ri),r=(0,f.R)(e.rt),a=(0,i.useMemo)(()=>({rpc:t,ri:n,rt:r}),[n,t,r]);return(0,i.useEffect)(()=>{let e={rpc:localStorage.getItem("PROMO"),ri:localStorage.getItem("REFERRER_ID"),rt:localStorage.getItem("REFERRER_TYPE")};a.rpc&&a.rpc!==e.rpc&&localStorage.setItem("PROMO",a.rpc),a.ri&&a.ri!==e.ri&&localStorage.setItem("REFERRER_ID",a.ri),a.rt&&a.rt!==e.rt&&localStorage.setItem("REFERRER_TYPE",a.rt)},[a])})(),(0,i.useEffect)(()=>{let{isInitialized:e,hasUser:t,trackers:r}=n,i=u.userId,s=e=>{o.Ay.set({page:e}),o.Ay.send({hitType:"pageview",page:e})};return e?e&&!t&&i&&(o.Ay.set({userId:i}),c(e=>({...e,hasUser:!!i}))):(o.Ay.initialize(r),a().events.on("routeChangeComplete",s),c(e=>({...e,isInitialized:!0,hasUser:!!i}))),()=>{a().events.off("routeChangeComplete",s)}},[n,u.userId]),(0,r.jsx)(y.Provider,{value:u,children:t})},_=()=>(0,i.useContext)(y)},518:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});let r=e=>"string"==typeof e?e:Array.isArray(e)&&e.length>0?e[0]:null},735:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(7440)}])},851:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"undefined"!=typeof window&&(void 0===window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(e=window).gtag.apply(e,n))}},965:(e,t,n)=>{"use strict";n.d(t,{Rg:()=>c,e2:()=>l});var r=n(7453),i=n(8086),s=n(3080),a=n(6126),o=n(7975);function l(e,t){var n,l,c,u;let{fingerprint:h,span:d,breadcrumbs:p,sdkProcessingMetadata:f}=t;(function(e,t){let{extra:n,tags:i,user:s,contexts:a,level:o,transactionName:l}=t,c=(0,r.Ce)(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=(0,r.Ce)(i);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let h=(0,r.Ce)(s);h&&Object.keys(h).length&&(e.user={...h,...e.user});let d=(0,r.Ce)(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),l&&(e.transaction=l)})(e,t),d&&function(e,t){e.contexts={trace:(0,o.kX)(t),...e.contexts};let n=(0,a.z)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,s.k)(t),...e.sdkProcessingMetadata};let r=(0,o.et)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,d),n=e,l=h,n.fingerprint=n.fingerprint?(0,i.k9)(n.fingerprint):[],l&&(n.fingerprint=n.fingerprint.concat(l)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,p),c=e,u=f,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function c(e,t){let{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:h,attachments:d,propagationContext:p,transactionName:f,span:m}=t;u(e,"extra",n),u(e,"tags",r),u(e,"user",i),u(e,"contexts",s),u(e,"sdkProcessingMetadata",o),a&&(e.level=a),f&&(e.transactionName=f),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),h.length&&(e.eventProcessors=[...e.eventProcessors,...h]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function u(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}},1004:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},1226:(e,t,n)=>{"use strict";n.d(t,{wD:()=>s});var r=n(4213);e=n.hmd(e);var i=n(5364);function s(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}},1595:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>l,J0:()=>y,J5:()=>b,KU:()=>m,NA:()=>d,ZQ:()=>u,gV:()=>p,o:()=>h,o5:()=>g,r:()=>c,v4:()=>f});var r=n(129),i=n(7989),s=n(6139),a=n(6136),o=n(7819);function l(e,t){return(0,s.BF)().captureException(e,(0,o.li)(t))}function c(e,t){return(0,s.BF)().captureEvent(e,t)}function u(e,t){(0,s.BF)().addBreadcrumb(e,t)}function h(e,t){(0,s.BF)().setContext(e,t)}function d(e,t){(0,s.BF)().setTag(e,t)}function p(e){(0,s.BF)().setUser(e)}function f(...e){let t=(0,s.BF)();if(2===e.length){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function m(){return(0,s.BF)().getClient()}function g(){return(0,s.BF)().getScope()}function y(e){let t=m(),n=(0,s.rm)(),o=g(),{release:l,environment:c=i.U}=t&&t.getOptions()||{},{userAgent:u}=r.OW.navigator||{},h=(0,a.fj)({release:l,environment:c,user:o.getUser()||n.getUser(),...u&&{userAgent:u},...e}),d=n.getSession();return d&&"ok"===d.status&&(0,a.qO)(d,{status:"exited"}),v(),n.setSession(h),o.setSession(h),h}function v(){let e=(0,s.rm)(),t=g(),n=t.getSession()||e.getSession();n&&(0,a.Vu)(n),_(),e.setSession(),t.setSession()}function _(){let e=(0,s.rm)(),t=g(),n=m(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function b(e=!1){if(e)return void v();_()}},1602:(e,t,n)=>{"use strict";n.d(t,{I:()=>_});var r=n(5154),i=n(8941),s=n(1860),a=n(9382),o=n(4650);class l extends a.Q{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,r.f8)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let s=this.hasListeners();s&&h(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let a=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(e){var t,n,i;let s=this.client.getQueryCache().build(this.client,e),a=this.createResult(s,e);return t=this,n=a,(i=e).keepPreviousData||(void 0!==i.placeholderData?!n.isPlaceholderData:(0,r.f8)(t.getCurrentResult(),n))||(this.currentResult=a,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),a}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.lQ)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.S$||this.currentResult.isStale||!(0,r.gn)(this.options.staleTime))return;let e=(0,r.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.S$&&!1!==this.options.enabled&&(0,r.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>
1{(this.options.refetchIntervalInBackground||s.m.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n,i=this.currentQuery,s=this.options,a=this.currentResult,l=this.currentResultState,u=this.currentResultOptions,p=e!==i,f=p?e.state:this.currentQueryInitialState,m=p?this.currentResult:this.previousQueryResult,{state:g}=e,{dataUpdatedAt:y,error:v,errorUpdatedAt:_,fetchStatus:b,status:S}=g,w=!1,E=!1;if(t._optimisticResults){let n=this.hasListeners(),r=!n&&c(e,t),a=n&&h(e,i,t,s);(r||a)&&(b=(0,o.v_)(e.options.networkMode)?"fetching":"paused",y||(S="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!g.dataUpdatedAt&&null!=m&&m.isSuccess&&"error"!==S)n=m.data,y=m.dataUpdatedAt,S=m.status,w=!0;else if(t.select&&void 0!==g.data)if(a&&g.data===(null==l?void 0:l.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(g.data),n=(0,r.pl)(null==a?void 0:a.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&"loading"===S){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(S="success",n=(0,r.pl)(null==a?void 0:a.data,e,t),E=!0)}this.selectError&&(v=this.selectError,n=this.selectResult,_=Date.now(),S="error");let I="fetching"===b,T="loading"===S,k="error"===S;return{status:S,fetchStatus:b,isLoading:T,isSuccess:"success"===S,isError:k,isInitialLoading:T&&I,data:n,dataUpdatedAt:y,error:v,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:I,isRefetching:I&&!T,isLoadingError:k&&0===g.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:E,isPreviousData:w,isRefetchError:k&&0!==g.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,r.f8)(n,t))return;this.currentResult=n;let i={cache:!0},s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>this.currentResult[e]!==t[e]&&r.has(e))};(null==e?void 0:e.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,o.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){i.j.batch(()=>{var t,n,r,i,s,a,o,l;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null)):e.onError&&(null==(s=(a=this.options).onError)||s.call(a,this.currentResult.error),null==(o=(l=this.options).onSettled)||o.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function c(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&("error"!==e.state.status||!1!==t.retryOn
1Mount)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,n){if(!1!==t.enabled){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&d(e,t)}return!1}function h(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&d(e,n)}function d(e,t){return e.isStaleByTime(t.staleTime)}var p=n(4232),f=n(5379);let m=p.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());var g=n(5461);let y=p.createContext(!1);y.Provider;var v=n(7192);function _(e,t,n){return function(e,t){let n=(0,g.jE)({context:e.context}),r=p.useContext(y),s=p.useContext(m),a=n.defaultQueryOptions(e);a._optimisticResults=r?"isRestoring":"optimistic",a.onError&&(a.onError=i.j.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=i.j.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=i.j.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),"number"==typeof a.cacheTime&&(a.cacheTime=Math.max(a.cacheTime,1e3))),(a.suspense||a.useErrorBoundary)&&!s.isReset()&&(a.retryOnMount=!1),p.useEffect(()=>{s.clearReset()},[s]);let[o]=p.useState(()=>new t(n,a)),l=o.getOptimisticResult(a);if((0,f.r)(p.useCallback(e=>{let t=r?()=>void 0:o.subscribe(i.j.batchCalls(e));return o.updateResult(),t},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),(null==a?void 0:a.suspense)&&l.isLoading&&l.isFetching&&!r)throw o.fetchOptimistic(a).then(({data:e})=>{null==a.onSuccess||a.onSuccess(e),null==a.onSettled||a.onSettled(e,null)}
1).catch(e=>{s.clearReset(),null==a.onError||a.onError(e),null==a.onSettled||a.onSettled(void 0,e)});if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,v.G)(n,[e.error,r]))({result:l,errorResetBoundary:s,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:o.trackResult(l)}((0,r.vh)(e,t,n),l)}},1672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=l(n(851)),i=l(n(79)),s=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],o=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}var v=function(){var e;function t(){var e=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");g(this,"reset",function(){e.isInitialized=!1,e._testMode=!1,e._currentMeasurementId,e._hasLoadedGA=!1,e._isQueuing=!1,e._queueGtag=[]}),g(this,"_gtag",function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e._testMode||e._isQueuing?e._queueGtag.push(n):r.default.apply(void 0,n)}),g(this,"_loadGA",function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!e._hasLoadedGA){var i=document.createElement("script");i.async=!0,i.src="".concat(r,"?id=").concat(t),n&&i.setAttribute("nonce",n),document.body.appendChild(i),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),g(this,"_toGtagOptions",function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce(function(e,n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;
1try{s=(n=n.call(e)).next,!1;for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(n,2)||f(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=r[0],s=r[1];return t[i]?e[t[i]]=s:e[i]=s,e},{})}}),g(this,"initialize",function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw Error("Require GA_MEASUREMENT_ID");var r="string"==typeof t?[{trackingId:t}]:t;e._currentMeasurementId=r[0].trackingId;var i=n.gaOptions,s=n.gtagOptions,a=n.nonce,o=n.testMode,l=void 0!==o&&o,c=n.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,a,c),e.isInitialized||(e._gtag("js",new Date),r.forEach(function(t){var n=p(p(p({},e._toGtagOptions(p(p({},i),t.gaOptions))),s),t.gtagOptions);Object.keys(n).length?e._gtag("config",t.trackingId,n):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){var u=h(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;u.length;){var d=u.shift();e._gtag.apply(e,h(d)),"get"===d[0]&&(e._isQueuing=!0)}}}),g(this,"set",function(t){return t?"object"!==u(t)?void console.warn("Expected `fieldsObject` arg to be an Object"):void(0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)):void console.warn("`fieldsObject` is required in .set()")}),g(this,"_gaCommandSendEvent",function(t,n,r,i,s){e._gtag("event",n,p(p({event_category:t,event_label:r,value:i},s&&{non_interaction:s.nonInteraction}),e._toGtagOptions(s)))}),g(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommandSendEvent.apply(e,h(n.slice(1)));else{var i=n[0],a=i.eventCategory,o=i.eventAction,l=i.eventLabel,u=i.eventValue,d=(i.hitType,c(i,s));e._gaCommandSendEvent(a,o,l,u,d)}}),g(this,"_gaCommandSendTiming",function(t,n,r,i){e._gtag("event","timing_complete",{name:n,value:r,event_category:t,event_label:i})}),g(this,"_gaCommandSendPageview",function(t,n){if(n&&Object.keys(n).length){var r=e._toGtagOptions(n),i=r.title,s=r.location,o=c(r,a);e._gtag("event","page_view",p(p(p(p({},t&&{page_path:t}),i&&{page_title:i}),s&&{page_location:s}),o))}else t?e._gtag("event","page_view",{page_path:t}):e._gtag("event","page_view")}),g(this,"_gaCommandSendPageviewParameters",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommandSendPageview.apply(e,h(n.slice(1)));else{var i=n[0],s=i.page,a=(i.hitType,c(i,o));e._gaCommandSendPageview(s,a)}}),g(this,"_gaCommandSend",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="string"==typeof n[0]?n[0]:n[0].hitType;switch(i){case"event":e._gaCommandSendEventParameters.apply(e,n);break;case"pageview":e._gaCommandSendPageviewParameters.apply(e,n);break;case"timing":e._gaCommandSendTiming.apply(e,h(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(i));break;default:console.warn("Send command doesn't exist: ".concat(i))}}),g(this,"_gaCommandSet",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]=g({},n[0],n[1])),e._gtag("set",e._toGtagOptions(n[0]))}),g(this,"_gaCommand",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];switch(t){case"send":e._gaCommandSend.apply(e,r);break;case"set":e._gaCommandSet.apply(e,r);break;default:console.warn("Command doesn't exist: ".concat(t))}}),g(this,"ga",function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if("string"==typeof n[0])e._gaCommand.apply(e,n);else{var i=n[0];e._gtag("get",e._currentMeasurementId,"client_id",function(t){e._isQueuing=!1;var n=e._queueGtag;for(i({get:function(n){return"clientId"===n?t:"trackingId"===n?e._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();e._gtag.apply(e,h(r))}}),e._isQueuing=!0}return e.ga}),g(this,"event",function(t,n){if("string"==typeof t)e._gtag("event",t,e._toGtagOptions(n));else{var r=t.action,s=t.category,a=t.label,o=t.value,l=t.nonInteraction,c=t.transport;if(!s||!r)return void console.warn("args.category AND args.action are required in event()");var u={hitType:"event",eventCategory:(0,i.default)(s),eventAction:(0,i.default)(r)};a&&(u.eventLabel=(0,i.default)(a)),void 0!==o&&("number"!=typeof o?console.warn("Expected `args.value` arg to be a Number."):u.eventValue=o),void 0!==l&&("boolean"!=typeof l?console.warn("`args.nonInteraction` must be a boolean."):u.nonInteraction=l),void 0!==c&&("string"!=typeof c?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(c)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=c)),e._gaCommand("send",u)}}),g(this,"send",function(t){e._gaCommand("send",t)}),this.reset()}return e=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();
1t.GA4=v,t.default=new v},1860:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(9382),i=n(5154);class s extends r.Q{constructor(){super(),this.setup=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let a=new s},2331:(e,t,n)=>{"use strict";let r,i;n.d(t,{G:()=>eA,C:()=>eM});var s=n(7876),a=n(4232),o=n(3093),l=n(9207),c=n(8308),u=n(6525);let h=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,g={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return d.get(e);if("objectStoreNames"===t)return e.objectStoreNames||p.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return y(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function y(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(y(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&h.set(t,e)}).catch(()=>{}),m.set(t,e),t}if(f.has(e))return f.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(v(this),t),y(h.get(this))}:function(...t){return y(e.apply(v(this),t))}:function(t,...n){let r=e.call(v(this),t,...n);return p.set(r,t.sort?t.sort():[t]),y(r)};return e instanceof IDBTransaction&&function(e){if(d.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});d.set(e,t)}(e),(r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,g):e}(e);return t!==e&&(f.set(e,t),m.set(t,e)),t}let v=e=>m.get(e),_=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],S=new Map;function w(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(S.get(t))return S.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||_.includes(n)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&s.done]))[0]};return S.set(t,s),s}g=(e=>({...e,get:(t,n,r)=>w(t,n)||e.get(t,n,r),has:(t,n)=>!!w(t,n)||e.has(t,n)}))(g);let E="@firebase/installations",I="0.6.4",T=`w:${I}`,k="FIS_v2",C=new l.FA("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function O(e){return e instanceof l.g&&e.code.includes("request-failed")}function R({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
1function x(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function A(e,t){let n=(await t.json()).error;return C.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function M({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function D(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function P({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=R(e),i=M(e),s=t.getImmediate({optional:!0});if(s){let e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:k,appId:e.appId,sdkVersion:T})},o=await D(()=>fetch(r,a));if(o.ok){let e=await o.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:x(e.authToken)}}throw await A("Create Installation",o)}function N(e){return new Promise(t=>{setTimeout(t,e)})}let L=/^[cdef][\w-]{21}$/;function F(e){return`${e.appName}!${e.appId}`}let j=new Map;function U(e,t){let n=F(e);$(n,t),function(e,t){let n=(!B&&"BroadcastChannel"in self&&((B=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{$(e.data.key,e.data.fid)}),B);n&&n.postMessage({key:e,fid:t}),0===j.size&&B&&(B.close(),B=null)}(n,t)}function $(e,t){let n=j.get(e);if(n)for(let e of n)e(t)}let B=null,H="firebase-installations-store",q=null;function z(){return q||(q=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let a=indexedDB.open(e,1),o=y(a);return r&&a.addEventListener("upgradeneeded",e=>{r(y(a.result),e.oldVersion,e.newVersion,y(a.transaction))}),n&&a.addEventListener("blocked",()=>n()),o.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",()=>i())}).catch(()=>{}),o}("firebase-installations-database",0,{upgrade:(e,t)=>{0===t&&e.createObjectStore(H)}})),q}async function W(e,t){let n=F(e),r=(await z()).transaction(H,"readwrite"),i=r.objectStore(H),s=await i.get(n);return await i.put(t,n),await r.done,s&&s.fid===t.fid||U(e,t.fid),t}async function K(e){let t=F(e),n=(await z()).transaction(H,"readwrite");await n.objectStore(H).delete(t),await n.done}async function V(e,t){let n=F(e),r=(await z()).transaction(H,"readwrite"),i=r.objectStore(H),s=await i.get(n),a=t(s);return void 0===a?await i.delete(n):await i.put(a,n),await r.done,a&&(!s||s.fid!==a.fid)&&U(e,a.fid),a}async function G(e){let t,n=await V(e.appConfig,n=>{let r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(C.create("app-offline"))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=Q(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:J(e)}:{installationEntry:t}}(e,X(n||{fid:function(){try{var e;let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let n=(e=t,btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return L.test(n)?n:""}catch(e){return""}}(),registrationStatus:0}));return t=r.registrationPromise,r.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function Q(e,t){try{let n=await P(e,t);return W(e.appConfig,n)}catch(n){throw O(n)&&409===n.customData.serverCode?await K(e.appConfig):await W(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function J(e){let t=await Y(e.appConfig);for(;1===t.registrationStatus;)await N(100),t=await Y(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await G(e);return n||t}return t}function Y(e){return V(e,e=>{if(!e)throw C.create("installation-not-found");return X(e)})}function X(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function Z({appConfig:e,heartbeatServiceProvider:t},n){let r=function(e,{fid:t}){return`${R(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){var n;let r=M(e);return r.append("Authorization",(n=t,`${k} ${n}`)),r}(e,n),s=t.getImmediate({optional:!0});if(s){let e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:T,appId:e.appId}})},o=await D(()=>fetch(r,a));if(o.ok)return x(await o.json());throw await A("Generate Auth Token",o)}async function ee(e,t=!1){let n,r=await V(e.appConfig,r=>{var i;if(!ei(r))throw C.create("not-registered");let s=r.authToken;if(!t&&2===(i=s).requestStatus&&!function(e){let t=Date.now();
1return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===s.requestStatus)return n=et(e,t),r;{if(!navigator.onLine)throw C.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=er(e,t),t}});return n?await n:r.authToken}async function et(e,t){let n=await en(e.appConfig);for(;1===n.authToken.requestStatus;)await N(100),n=await en(e.appConfig);let r=n.authToken;return 0===r.requestStatus?ee(e,t):r}function en(e){return V(e,e=>{var t;if(!ei(e))throw C.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function er(e,t){try{let n=await Z(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await W(e.appConfig,r),n}catch(n){if(O(n)&&(401===n.customData.serverCode||404===n.customData.serverCode))await K(e.appConfig);else{let n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await W(e.appConfig,n)}throw n}}function ei(e){return void 0!==e&&2===e.registrationStatus}async function es(e){let{installationEntry:t,registrationPromise:n}=await G(e);return n?n.catch(console.error):ee(e).catch(console.error),t.fid}async function ea(e,t=!1){return await eo(e),(await ee(e,t)).token}async function eo(e){let{registrationPromise:t}=await G(e);t&&await t}function el(e){return C.create("missing-app-config-values",{valueName:e})}let ec="installations";(0,o.om)(new c.uA(ec,e=>{let t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw el("App Configuration");if(!e.name)throw el("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw el(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,o.j6)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,o.om)(new c.uA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),n=(0,o.j6)(t,ec).getImmediate();return{getId:()=>es(n),getToken:e=>ea(n,e)}},"PRIVATE")),(0,o.KO)(E,I),(0,o.KO)(E,I,"esm2017");let eu="@firebase/remote-config",eh="0.4.4";class ed{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let ep="remote-config",ef=new l.FA("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"}),em=["1","true","t","yes","y","on"];class eg{constructor(e,t=""){this._source=e,this._value=t}asString(){return this._value}asBoolean(){return"static"!==this._source&&em.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let e=Number(this._value);return isNaN(e)&&(e=0),e}getSource(){return this._source}}async function ey(e){let t=(0,l.Ku)(e),[n,r]=await Promise.all([t._storage.getLastSuccessfulFetchResponse(),t._storage.getActiveConfigEtag()]);return!!n&&!!n.config&&!!n.eTag&&n.eTag!==r&&(await Promise.all([t._storageCache.setActiveConfig(n.config),t._storage.setActiveConfigEtag(n.eTag)]),!0)}async function ev(e){let t=(0,l.Ku)(e),n=new ed;setTimeout(async()=>{n.abort()},t.settings.fetchTimeoutMillis);try{await t._client.fetch({cacheMaxAgeMillis:t.settings.minimumFetchIntervalMillis,signal:n}),await t._storageCache.setLastFetchStatus("success")}catch(n){let e=n instanceof l.g&&-1!==n.code.indexOf("fetch-throttle")?"throttle":"failure";throw await t._storageCache.setLastFetchStatus(e),n}}class e_{constructor(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}
1isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let n=Date.now()-t,r=n<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${n}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${r}.`),r}async fetch(e){let[t,n]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(n&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return n;e.eTag=n&&n.eTag;let r=await this.client.fetch(e),i=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===r.status&&i.push(this.storage.setLastSuccessfulFetchResponse(r)),await Promise.all(i),r}}class eb{constructor(e,t,n,r,i,s){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=s}async fetch(e){let t,n,r,[i,s]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),a=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o=`${a}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,l=fetch(o,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},body:JSON.stringify({sdk_version:this.sdkVersion,app_instance_id:i,app_instance_id_token:s,app_id:this.appId,language_code:function(e=navigator){return e.languages&&e.languages[0]||e.language}()})}),c=new Promise((t,n)=>{e.signal.addEventListener(()=>{let e=Error("The operation was aborted.");e.name="AbortError",n(e)})});try{await Promise.race([l,c]),t=await l}catch(t){let e="fetch-client-network";throw(null==t?void 0:t.name)==="AbortError"&&(e="fetch-timeout"),ef.create(e,{originalErrorMessage:null==t?void 0:t.message})}let u=t.status,h=t.headers.get("ETag")||void 0;if(200===t.status){let e;try{e=await t.json()}catch(e){throw ef.create("fetch-client-parse",{originalErrorMessage:null==e?void 0:e.message})}n=e.entries,r=e.state}if("INSTANCE_STATE_UNSPECIFIED"===r?u=500:"NO_CHANGE"===r?u=304:("NO_TEMPLATE"===r||"EMPTY_CONFIG"===r)&&(n={}),304!==u&&200!==u)throw ef.create("fetch-status",{httpStatus:u});return{status:u,eTag:h,config:n}}}class eS{constructor(e,t){this.client=e,this.storage=t}async fetch(e){let t=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)}async attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:n}){var r;await (r=e.signal,new Promise((e,n)=>{let i=setTimeout(e,Math.max(t-Date.now(),0));r.addEventListener(()=>{clearTimeout(i),n(ef.create("fetch-throttle",{throttleEndTimeMillis:t}))})}));try{let t=await this.client.fetch(e);return await this.storage.deleteThrottleMetadata(),t}catch(r){if(!function(e){if(!(e instanceof l.g)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(r))throw r;let t={throttleEndTimeMillis:Date.now()+(0,l.p9)(n),backoffCount:n+1};return await this.storage.setThrottleMetadata(t),this.attemptFetch(e,t)}}}class ew{constructor(e,t,n,r,i){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function eE(e,t){let n=e.target.error||void 0;return ef.create(t,{originalErrorMessage:n&&(null==n?void 0:n.message)})}let eI="app_namespace_store";class eT{constructor(e,t,n,r=new Promise((e,t)=>{try{let n=indexedDB.open("firebase_remote_config",1);n.onerror=e=>{t(eE(e,"storage-open"))},n.onsuccess=t=>{e(t.target.result)},n.onupgradeneeded=e=>{let t=e.target.result;0===e.oldVersion&&t.createObjectStore(eI,{keyPath:"compositeKey"})}}catch(e){t(ef.create("storage-open",{originalErrorMessage:null==e?void 0:e.message}))}})){this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}async get(e){let t=await this.openDbPromise;return new Promise((n,r)=>{let i=t.transaction([eI],"readonly").objectStore(eI),s=this.createCompositeKey(e);try{let e=i.get(s);e.onerror=e=>{r(eE(e,"storage-get"))},e.onsuccess=e=>{let t=e.target.result;t?n(t.value):n(void 0)}}catch(e){r(ef.create("storage-get",{originalErrorMessage:null==e?void 0:e.message}))}})}async set(e,t){let n=await this.openDbPromise;return new Promise((r,i)=>{let s=n.transaction([eI],"readwrite").objectStore(eI),a=this.createCompositeKey(e);try{let e=s.put({compositeKey:a,value:t});e.onerror=e=>{i(eE(e,"storage-set"))},e.onsuccess=()=>{r()}}catch(e){i(ef.create("storage-set",{originalErrorMessage:null==e?void 0:e.message}))}})}async delete(e){let t=await this.openDbPromise;return new Promise((n,r)=>{let i=t.transaction([eI],"readwrite").objectStore(eI),s=this.createCompositeKey(e);try{let e=i.delete(s);e.onerror=e=>{r(eE(e,"storage-delete"))},e.onsuccess=()=>{n()}}catch(e){r(ef.create("storage-delete",{originalErrorMessage:null==e?void 0:e.message}))}})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class ek{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}async loadFromStorage(){let e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),r=await e;r&&(this.lastFetchStatus=r);let i=await t;i&&(this.lastSuccessfulFetchTimestampMillis=i);let s=await n;s&&(this.activeConfig=s)}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}}async function eC(e){return e=(0,l.Ku)(e),await ev(e),ey(e)}(0,o.om)(new c.uA(ep,function(e,{instanceIdentifier:t}){let n=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw ef.create("registration-window");if(!(0,l.zW)())throw ef.create("indexed-db-unavailable");
1let{projectId:i,apiKey:s,appId:a}=n.options;if(!i)throw ef.create("registration-project-id");if(!s)throw ef.create("registration-api-key");if(!a)throw ef.create("registration-app-id");t=t||"firebase";let c=new eT(a,n.name,t),h=new ek(c),d=new u.Vy(eu);d.logLevel=u.$b.ERROR;let p=new ew(n,new e_(new eS(new eb(r,o.MF,t,i,s,a),c),c,h,d),h,c,d);return!function(e){let t=(0,l.Ku)(e);t._initializePromise||(t._initializePromise=t._storageCache.loadFromStorage().then(()=>{t._isInitializationComplete=!0})),t._initializePromise}(p),p},"PUBLIC").setMultipleInstances(!0)),(0,o.KO)(eu,eh),(0,o.KO)(eu,eh,"esm2017");let eO={forcedUpgradeVersions:"[]",smsNumber:"",phoneNumber:"",customerServiceHours:"Wagmo Support Representatives are available:\nMonday-Friday 9am-6pm EST\nSaturday 11am-7:30pm EST",supportFAQs:"[]",staticInsuranceDocuments:"[]",staticWellnessDocuments:"[]",vetalkEnabled:!1,isPromoQuizCheckoutEnabled:!1,acaEnabled:!1,isNewLayoutEnabled:!1,adpSSOEnabled:!1,wellnessOfferingsPromoQuiz:"[]",wellnessOfferingsStartQuiz:"[]",defaultWellnessOfferingStartQuiz:"classic"};class eR{constructor(e){this._value="",this._source="default",this.asBoolean=()=>!!this._value,this.asNumber=()=>{let e=Number(this._value);return isNaN(e)&&(e=0),e},this.asString=()=>this._value.toString(),this.getSource=()=>this._source,this._value=e}}let ex=(0,a.createContext)({}),eA=e=>{let{firebaseApp:t,children:n}=e,{remoteConfig:r,getValue:i}=(e=>{let[t,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{(()=>{if(!t){let t=function(e=(0,o.Sx)()){return e=(0,l.Ku)(e),(0,o.j6)(e,ep).getImmediate()}(e);t.settings.minimumFetchIntervalMillis=1e3,t.settings.fetchTimeoutMillis=1e4,t.defaultConfig=eO,n(t)}})()},[e,t]),{remoteConfig:t,getValue:e=>t?function(e,t){let n=(0,l.Ku)(e);n._isInitializationComplete||n._logger.debug(`A value was requested for key "${t}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let r=n._storageCache.getActiveConfig();return r&&void 0!==r[t]?new eg("remote",r[t]):n.defaultConfig&&void 0!==n.defaultConfig[t]?new eg("default",String(n.defaultConfig[t])):(n._logger.debug(`Returning static value for key "${t}". Define a default or remote value if this is unintentional.`),new eg("static"))}(t,e):new eR(eO[e])}})(t),[c,u]=(0,a.useState)(!1);return r&&!c&&eC(r).then(()=>{u(!0)}),(0,s.jsx)(ex.Provider,{value:{remoteActivated:c,getValue:i},children:n})},eM=()=>(0,a.useContext)(ex)},2800:(e,t,n)=>{"use strict";n.d(t,{E0:()=>o,TC:()=>c,kM:()=>l});var r=n(4504),i=n(8086);let s=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){let t;if(!e)return;let n=e.match(s);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function o(e,t){let n=a(e),s=(0,r.yD)(t),{traceId:o,parentSpanId:l,parentSampled:c}=n||{};return n?{traceparentData:n,dynamicSamplingContext:s||{},propagationContext:{traceId:o||(0,i.eJ)(),parentSpanId:l||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:c,dsc:s||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}}function l(e,t){let n=a(e),s=(0,r.yD)(t),{traceId:o,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:o||(0,i.eJ)(),parentSpanId:l||(0,i.eJ)().substring(16),spanId:(0,i.eJ)().substring(16),sampled:c,dsc:s||{}}:{traceId:o||(0,i.eJ)(),spanId:(0,i.eJ)().substring(16)}}function c(e=(0,i.eJ)(),t=(0,i.eJ)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},3080:(e,t,n)=>{"use strict";n.d(t,{k:()=>c,l:()=>l});var r=n(7453),i=n(7989),s=n(1595),a=n(6126),o=n(7975);function l(e,t,n){let s=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},l=(0,r.Ce)({environment:s.environment||i.U,release:s.release,user_segment:o,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function c(e){let t=(0,s.KU)();if(!t)return{};let n=l((0,o.et)(e).trace_id||"",t,(0,s.o5)()),r=(0,a.z)(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:c,source:u}=r.metadata;null!=c&&(n.sample_rate=`${c}`);let h=(0,o.et)(r);return u&&"url"!==u&&(n.transaction=h.description),n.sampled=String((0,o.pK)(r)),t.emit&&t.emit("createDsc",n),n}}
1,3093:(e,t,n)=>{"use strict";let r,i;n.d(t,{MF:()=>M,j6:()=>R,om:()=>O,Sx:()=>P,Wp:()=>D,KO:()=>N});var s=n(8308),a=n(6525),o=n(9207);let l=new WeakMap,c=new WeakMap,u=new WeakMap,h=new WeakMap,d=new WeakMap,p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return f(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(f(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&l.set(t,e)}).catch(()=>{}),d.set(t,e),t}if(h.has(e))return h.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),f(l.get(this))}:function(...t){return f(e.apply(m(this),t))}:function(t,...n){let r=e.call(m(this),t,...n);return u.set(r,t.sort?t.sort():[t]),f(r)};return e instanceof IDBTransaction&&function(e){if(c.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});c.set(e,t)}(e),(r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,p):e}(e);return t!==e&&(h.set(e,t),d.set(t,e)),t}let m=e=>d.get(e),g=["get","getKey","getAll","getAllKeys","count"],y=["put","add","delete","clear"],v=new Map;function _(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(v.get(t))return v.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=y.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||g.includes(n)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&s.done]))[0]};return v.set(t,s),s}p=(e=>({...e,get:(t,n,r)=>_(t,n)||e.get(t,n,r),has:(t,n)=>!!_(t,n)||e.has(t,n)}))(p);class b{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let S="@firebase/app",w="0.9.13",E=new a.Vy("@firebase/app"),I="[DEFAULT]",T={[S]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},k=new Map,C=new Map;function O(e){let t=e.name;if(C.has(t))return E.debug(`There were multiple attempts to register component ${t}.`),!1;
1for(let n of(C.set(t,e),k.values()))try{n.container.addComponent(e)}catch(t){E.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`,t)}return!0}function R(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}let x=new o.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class A{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new s.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw x.create("app-deleted",{appName:this._name})}}let M="9.23.0";function D(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});let r=Object.assign({name:I,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw x.create("bad-app-name",{appName:String(i)});if(n||(n=(0,o.T9)()),!n)throw x.create("no-options");let a=k.get(i);if(a)if((0,o.bD)(n,a.options)&&(0,o.bD)(r,a.config))return a;else throw x.create("duplicate-app",{appName:i});let l=new s.h1(i);for(let e of C.values())l.addComponent(e);let c=new A(n,r,l);return k.set(i,c),c}function P(e=I){let t=k.get(e);if(!t&&e===I&&(0,o.T9)())return D();if(!t)throw x.create("no-app",{appName:e});return t}function N(e,t,n){var r;let i=null!=(r=T[e])?r:e;n&&(i+=`-${n}`);let a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){let e=[`Unable to register library "${i}" with version "${t}":`];a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),E.warn(e.join(" "));return}O(new s.uA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let L="firebase-heartbeat-store",F=null;function j(){return F||(F=(function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let a=indexedDB.open(e,1),o=f(a);return r&&a.addEventListener("upgradeneeded",e=>{r(f(a.result),e.oldVersion,e.newVersion,f(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),o.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{0===t&&e.createObjectStore(L)}}).catch(e=>{throw x.create("idb-open",{originalErrorMessage:e.message})})),F}async function U(e){try{let t=await j();return await t.transaction(L).objectStore(L).get(B(e))}catch(e){if(e instanceof o.g)E.warn(e.message);else{let t=x.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});E.warn(t.message)}}}async function $(e,t){try{let n=(await j()).transaction(L,"readwrite"),r=n.objectStore(L);await r.put(t,B(e)),await n.done}catch(e){if(e instanceof o.g)E.warn(e.message);else{let t=x.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});E.warn(t.message)}}}function B(e){return`${e.name}!${e.options.appId}`}class H{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new z(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=q();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))?void 0:(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}
1async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let e=q(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),W(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),W(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=(0,o.Uj)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function q(){return new Date().toISOString().substring(0,10)}class z{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,o.zW)()&&(0,o.eX)().then(()=>!0).catch(()=>!1)}async read(){return await this._canUseIndexedDBPromise&&await U(this.app)||{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return $(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return $(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function W(e){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:e})).length}O(new s.uA("platform-logger",e=>new b(e),"PRIVATE")),O(new s.uA("heartbeat",e=>new H(e),"PRIVATE")),N(S,w,""),N(S,w,"esm2017"),N("fire-js","")},3247:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,n:()=>o});var r=n(7876),i=n(4232);let s=(0,i.createContext)({}),a=e=>{var t,n,i,a,o,l,c;let{children:u,data:h}=e,d={variant:null!=(t=null==h?void 0:h.variant)?t:"d2c",pageBackgroun
1d:null!=(n=null==h?void 0:h.pageBackground)?n:"paper",hasFooterCta:null==(i=null==h?void 0:h.hasFooterCta)||i,hasCustomFooter:null!=(a=null==h?void 0:h.hasCustomFooter)&&a,hasCustomHeader:null!=(o=null==h?void 0:h.hasCustomHeader)&&o,supplementaryLegal:null!=(l=null==h?void 0:h.supplementaryLegal)?l:void 0,coBranding:null!=(c=null==h?void 0:h.coBranding)?c:void 0};return(0,r.jsx)(s.Provider,{value:d,children:u})},o=()=>(0,i.useContext)(s)},3449:(e,t,n)=>{"use strict";n.d(t,{d:()=>d,n:()=>h});var r=n(7876),i=n(4232),s=n(9995);let a={error:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"error"}),warning:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"warning"}),info:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"info"}),success:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"check_circle"})},o={success:"bg-emerald-500",info:"bg-sky-500",warning:"bg-orange-400",error:"bg-red-500"},l=(0,i.createContext)({}),c=e=>{let{children:t,onClose:n,autoHideDuration:s}=e;return(0,i.useEffect)(()=>{let e=setTimeout(()=>{n()},s);return()=>{clearTimeout(e)}},[s,n]),(0,r.jsx)("div",{className:"fixed inset-x-0 top-5 z-snackbar mx-auto  max-w-3xl  text-center text-sm",children:t})},u=e=>{let{severity:t,message:n,onClose:i}=e;return(0,r.jsxs)("div",{className:(0,s.$)("relative  inline-block rounded-sm px-10 py-3 text-white [&_.absolute]:top-[.5rem] [&_.absolute]:grid [&_.absolute]:items-center [&_.material-symbols-outlined]:text-lg",o[t]),children:[(0,r.jsx)("span",{className:"absolute left-2",children:a[t]}),n,(0,r.jsx)("button",{className:"absolute right-2",onClick:i,children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"close"})})]})},h=e=>{let{children:t}=e,[n,s]=(0,i.useState)(null);return(0,r.jsxs)(l.Provider,{value:{snackbar:n,setSnackbar:s},children:[n?(0,r.jsx)(c,{onClose:()=>s(null),autoHideDuration:6e3,children:(0,r.jsx)(u,{onClose:()=>s(null),severity:n.severity,message:n.message})}):null,t]})},d=()=>(0,i.useContext)(l)},3653:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r=console},3928:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r="7.120.4"}
1,4049:(e,t,n)=>{"use strict";let r,i,s,a,o,l,c,u,h,d,p,f,m,g,y,v,_,b,S,w,E,I,T;var k,C,O,R={};n.r(R),n.d(R,{FunctionToString:()=>G,InboundFilters:()=>ee,LinkedErrors:()=>el});var x={};n.r(x),n.d(x,{Breadcrumbs:()=>tl,Dedupe:()=>ty,GlobalHandlers:()=>eF,HttpContext:()=>tf,LinkedErrors:()=>th,TryCatch:()=>eq});var A=n(3928);function M(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:A.M})),version:A.M}),e._metadata=i}var D=n(1595);function P(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,D.KU)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var N=n(7453),L=n(8086),F=n(8706),j=n(6938),U=n(8237),$=n(6139);let B=[];function H(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function q(e,t,n){if(n[t.name]){j.T&&F.vF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===B.indexOf(t.name)&&(t.setupOnce(U.lb,$.BF),B.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=(t,r)=>n(t,r,e);r.id=t.name,e.addEventProcessor(r)}j.T&&F.vF.log(`Integration installed: ${t.name}`)}function z(e,t){let n=function(...e){return t(...e)};return n.id=e,n}let W="FunctionToString",K=new WeakMap,V=()=>({name:W,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,N.sp)(this),n=K.has((0,D.KU)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){K.set(e,!0)}}),G=z(W,V);var Q=n(5519);let J=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Y=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],X="InboundFilters",Z=(e={})=>({name:X,setupOnce(){},processEvent:(t,n,r)=>!function(e,t){var n,r;return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(j.T&&F.vF.warn(`Event dropped due to being internal Sentry Error.
2Event: ${(0,L.$X)(e)}`),!0):(n=e,r=t.ignoreErrors,!n.type&&r&&r.length&&(function(e){let t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),j.T&&0===n.length&&F.vF.error(`Could not extract message for event ${(0,L.$X)(e)}`),n})(n).some(e=>(0,Q.Xr)(e,r)))?(j.T&&F.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
3Event: ${(0,L.$X)(e)}`),!0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,Q.Xr)(n,t)}(e,t.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=et(e);return!!n&&(0,Q.Xr)(n,t)}(e,t.denyUrls)?!function(e,t){if(!t||!t.length)return!0;let n=et(e);return!n||(0,Q.Xr)(n,t)}(e,t.allowUrls)&&(j.T&&F.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
4Event: ${(0,L.$X)(e)}.
5Url: ${et(e)}`),!0):(j.T&&F.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.
6Event: ${(0,L.$X)(e)}.
7Url: ${et(e)}`),!0):(j.T&&F.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8Event: ${(0,L.$X)(e)}`),!0)}(t,function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:J],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Y],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions()))?t:null}),ee=z(X,Z);function et(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--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return j.T&&F.vF.error(`Cannot extract url for event ${(0,L.$X)(e)}`),null}}var en=n(6713);function er(e,t,n=250,r,i,s,a){var o,l;if(!s.exception||!s.exception.values||!a||!(0,en.tH)(a.originalException,Error))return;let c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=(o=function e(t,n,r,i,s,a,o,l){if(a.length>=r+1)return a;let c=[...a];if((0,en.tH)(i[s],Error)){ei(o,l);let a=t(n,i[s]),u=c.length;es(a,s,u,l),c=e(t,n,r,i[s],s,[a,...c],a,u)}
8return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,en.tH)(i,Error)){ei(o,l);let u=t(n,i),h=c.length;es(u,`errors[${a}]`,h,l),c=e(t,n,r,i,s,[u,...c],u,h)}}),c}(e,t,i,a.originalException,r,s.exception.values,c,0),l=n,o.map(e=>(e.value&&(e.value=(0,Q.xv)(e.value,l)),e))))}function ei(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function es(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}}function ea(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=e(t.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let eo="LinkedErrors",el=z(eo,(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:eo,setupOnce(){},preprocessEvent(e,r,i){let s=i.getOptions();er(ea,s.stackParser,s.maxValueLength,n,t,e,r)}}});var ec=n(129);let eu=ec.OW,eh=0;function ed(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,N.sp)(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>ed(e,t));return e.apply(this,i)}catch(e){throw eh++,setTimeout(()=>{eh--}),(0,D.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,L.gO)(e,void 0,void 0),(0,L.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,D.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,N.pO)(r,e),(0,N.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}var ep=n(1004),ef=n(8423);let em={},eg={};function ey(e,t){em[e]=em[e]||[],em[e].push(t)}function ev(e,t){eg[e]||(t(),eg[e]=!0)}function e_(e,t){let n=e&&em[e];if(n)for(let r of n)try{r(t)}catch(t){ep.T&&F.vF.error(`Error while triggering instrumentation handler.
9Type: ${e}
10Name: ${(0,ef.qQ)(r)}
11Error:`,t)}}let eb=null;function eS(e){let t="error";ey(t,e),ev(t,ew)}function ew(){eb=ec.OW.onerror,ec.OW.onerror=function(e,t,n,r,i){return e_("error",{column:r,error:i,line:n,msg:e,url:t}),!!eb&&!eb.__SENTRY_LOADER__&&eb.apply(this,arguments)},ec.OW.onerror.__SENTRY_INSTRUMENTED__=!0}let eE=null;function eI(e){let t="unhandledrejection";ey(t,e),ev(t,eT)}function eT(){eE=ec.OW.onunhandledrejection,ec.OW.onunhandledrejection=function(e){return e_("unhandledrejection",e),!eE||!!eE.__SENTRY_LOADER__||eE.apply(this,arguments)},ec.OW.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ek=n(8310),eC=n(9312),eO=n(4678);function eR(e,t){let n=eA(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ex(e,t){return{exception:{values:[eR(e,t)]}}}function eA(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(eM.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let eM=/Minified React error #\d+;/i;function eD(e,t,n,r,i){let s;if((0,en.T2)(t)&&t.error)return ex(e,t.error);if((0,en.BD)(t)||(0,en.W6)(t)){if("stack"in t)s=ex(e,t);else{let i=t.name||((0,en.BD)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;s=eP(e,a,n,r),(0,L.gO)(s,a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,en.bJ)(t)?ex(e,t):((0,en.Qd)(t)||(0,en.xH)(t)?s=function(e,t,n,r){let i=(0,D.KU)(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,en.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,N.HF)(e),r=t?"promise rejection":"exception";if((0,en.T2)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,en.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]}
11,extra:{__serialized__:(0,eC.cd)(t,s)}};if(n){let t=eA(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i):(s=eP(e,t,n,r),(0,L.gO)(s,`${t}`,void 0)),(0,L.M6)(s,{synthetic:!0}),s)}function eP(e,t,n,r){let i={};if(r&&n){let r=eA(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,en.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let eN="GlobalHandlers",eL=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:eN,setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,eS(e=>{let{stackParser:t,attachStacktrace:r}=eU();if((0,D.KU)()!==n||eh>0)return;let{msg:i,url:s,line:a,column:o,error:l}=e,c=void 0===l&&(0,en.Kg)(i)?function(e,t,n,r){let i=(0,en.T2)(e)?e.message:e,s="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(s=a[1],i=a[2]),ej({exception:{values:[{type:s,value:i}]}},t,n,r)}(i,s,a,o):ej(eD(t,l||i,void 0,r,!1),s,a,o);c.level="error",(0,D.r)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})),t.onunhandledrejection&&(r=e,eI(e=>{var t;let{stackParser:n,attachStacktrace:i}=eU();if((0,D.KU)()!==r||eh>0)return;let s=function(e){if((0,en.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(e),a=(0,en.sO)(s)?(t=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):eD(n,s,void 0,i,!0);a.level="error",(0,D.r)(a,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}}},eF=z(eN,eL);function ej(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,h=(0,en.Kg)(t)&&t.length>0?t:(0,ek.$N)();return 0===l.length&&l.push({colno:c,filename:h,function:"?",in_app:!0,lineno:u}),e}function eU(){let e=(0,D.KU)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let e$=["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"],eB="TryCatch",eH=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:eB,setupOnce(){t.setTimeout&&(0,N.GS)(eu,"setTimeout",ez),t.setInterval&&(0,N.GS)(eu,"setInterval",ez),t.requestAnimationFrame&&(0,N.GS)(eu,"requestAnimationFrame",eW),t.XMLHttpRequest&&"XMLHttpRequest"in eu&&(0,N.GS)(XMLHttpRequest.prototype,"send",eK);let e=t.eventTarget;e&&(Array.isArray(e)?e:e$).forEach(eV)}}},eq=z(eB,eH);function ez(e){return function(...t){let n=t[0];return t[0]=ed(n,{mechanism:{data:{function:(0,ef.qQ)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function eW(e){return function(t){return e.apply(this,[ed(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,ef.qQ)(e)},handled:!1,type:"instrument"}})])}}function eK(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,N.GS)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,ef.qQ)(t)},handled:!1,type:"instrument"}},r=(0,N.sp)(t);return r&&(n.mechanism.data.handler=(0,ef.qQ)(r)),ed(t,n)})}),e.apply(this,t)}}function eV(e){let t=eu[e]&&eu[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,N.GS)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=ed(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,ef.qQ)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ed(r,{mechanism:{data:{function:"addEventListener",handler:(0,ef.qQ)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,N.GS)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}
11function eG(){"console"in ec.OW&&F.Ow.forEach(function(e){e in ec.OW.console&&(0,N.GS)(ec.OW.console,e,function(t){return F.Z9[e]=t,function(...t){e_("console",{args:t,level:e});let n=F.Z9[e];n&&n.apply(ec.OW.console,t)}})})}let eQ=ec.OW;function eJ(e){ey("dom",e),ev("dom",eY)}function eY(){if(!eQ.document)return;let e=e_.bind(null,"dom"),t=eX(e,!0);eQ.document.addEventListener("click",t,!1),eQ.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=eQ[t]&&eQ[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,N.GS)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=eX(e);s.handler=r,t.call(this,n,r,i)}s.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,N.GS)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function eX(e,t=!1){return n=>{var r;if(!n||n._sentryCaptured)return;let o=function(e){try{return e.target}catch(e){return null}}(n);if(r=n.type,"keypress"===r&&(!o||!o.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;(0,N.my)(n,"_sentryCaptured",!0),o&&!o._sentryId&&(0,N.my)(o,"_sentryId",(0,L.eJ)());let l="keypress"===n.type?"input":n.type;!function(e){if(e.type!==s)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}(n)&&(e({event:n,name:l,global:t}),s=n.type,a=o?o._sentryId:void 0),clearTimeout(i),i=eQ.setTimeout(()=>{a=void 0,s=void 0},1e3)}}let eZ=ec.OW,e0="__sentry_xhr_v3__";function e1(e){ey("xhr",e),ev("xhr",e2)}function e2(){if(!eZ.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,N.GS)(e,"open",function(e){return function(...t){let n=Date.now(),r=(0,en.Kg)(t[0])?t[0].toUpperCase():void 0,i=function(e){if((0,en.Kg)(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[e0]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let e=this[e0];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}e_("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,N.GS)(this,"onreadystatechange",function(e){return function(...t){return s(),e.apply(this,t)}}):this.addEventListener("readystatechange",s),(0,N.GS)(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[e0];return i&&(0,en.Kg)(n)&&(0,en.Kg)(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),(0,N.GS)(e,"send",function(e){return function(...t){let n=this[e0];return n&&(void 0!==t[0]&&(n.body=t[0]),e_("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this})),e.apply(this,t)}})}let e3=(0,ec.VZ)();function e5(){if(!("fetch"in e3))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function e6(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function e4(e){let t="fetch";ey(t,e),ev(t,e8)}function e8(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!e5())return!1;if(e6(e3.fetch))return!0;let e=!1,t=e3.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
11n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=e6(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){ep.T&&F.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&(0,N.GS)(ec.OW,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:e7(t),method:e9(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:e7(t),method:e9(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return e_("fetch",{...i}),e.apply(ec.OW,t).then(e=>(e_("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw e_("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}})}function e9(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e7(e){return"string"==typeof e?e:e?e9(e,"url")?e.url:e.toString?e.toString():"":""}let te=(0,ec.VZ)(),tt=ec.OW;function tn(e){let t="history";ey(t,e),ev(t,tr)}function tr(){if(!function(){let e=te.chrome,t=e&&e.app&&e.app.runtime,n="history"in te&&!!te.history.pushState&&!!te.history.replaceState;return!t&&n}())return;let e=tt.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=o,t=String(n);o=t,e_("history",{from:e,to:t})}return e.apply(this,t)}}tt.onpopstate=function(...t){let n=tt.location.href,r=o;if(o=n,e_("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,N.GS)(tt.history,"pushState",t),(0,N.GS)(tt.history,"replaceState",t)}let ti=["fatal","error","warning","log","info","debug"];function ts(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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}}let ta="Breadcrumbs",to=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ta,setupOnce(){},setup(e){var n,r,i,s,a,o,l;t.console&&function(e){let t="console";ey(t,e),ev(t,eG)}((n=e,function(e){var t;if((0,D.KU)()!==n)return;let r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":ti.includes(t)?t:"log",message:(0,Q.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else r.message=`Assertion failed: ${(0,Q.gt)(e.args.slice(1)," ")||"console.assert"}`,r.data.arguments=e.args.slice(1);(0,D.ZQ)(r,{input:e.args,level:e.level})})),t.dom&&eJ((r=e,i=t.dom,function(e){let t,n;if((0,D.KU)()!==r)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof s&&(s=[s]);try{var o;let r=e.event,i=(o=r)&&o.target?r.target:r;t=(0,ek.Hd)(i,{keyAttrs:s,maxStringLength:a}),n=(0,ek.xE)(i)}catch(e){t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),(0,D.ZQ)(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&e1((s=e,function(e){if((0,D.KU)()!==s)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[e0];if(!t||!n||!r)return;let{method:i,url:a,status_code:o,body:l}=r,c={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n};(0,D.ZQ)({category:"xhr",data:{method:i,url:a,status_code:o},type:"http"},c)})),t.fetch&&e4((a=e,function(e){if((0,D.KU)()!==a)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};(0,D.ZQ)({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=e.response,i={...e.fetchData,status_code:r&&r.status},s={input:e.args,response:r,startTimestamp:t,endTimestamp:n};(0,D.ZQ)({category:"fetch",data:i,type:"http"},s)}})),t.history&&tn((o=e,function(e){if((0,D.KU)()!==o)return;let t=e.from,n=e.to,r=ts(eu.location.href),i=t?ts(t):void 0,s=ts(n);i&&i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),(0,D.ZQ)({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on&&e.on("beforeSendEvent",(l=e,function(e){(0,D.KU)()===l&&(0,D.ZQ)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,L.$X)(e)},{event:e})}))}}},tl=z(ta,to),tc="LinkedErrors",tu=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:tc,setupOnce(){},preprocessEvent(e,r,i){let s=i.getOptions();er(eR,s.stackParser,s.maxValueLength,n,t,e,r)}}},th=z(tc,tu),td="HttpContext",tp=()=>({name:td,setupOnce(){},preprocessEvent(e){if(!eu.navigator&&!eu.location&&!eu.document)return;let t=e.request&&e.request.url||eu.location&&eu.location.href,{referrer:n}=eu.document||{},{userAgent:r}=eu.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...e.request,...t&&{url:t},headers:i};e.request=s}}),tf=z(td,tp),tm="Dedupe",tg=()=>{let e;return{name:tm,setupOnce(){},processEvent(t){if(t.type)return t;try{var n,r;if(n=t,(r=e)&&(function(e,t){let n=e.message,r=t.message;return(!!n||!!r)&&(!n||!!r)&&(!!n||!r)&&n===r&&!!t_(e,t)&&!!tv(e,t)&&!0}(n,r)||function(e,t){let n=tb(t),r=tb(e);return!!n&&!!r&&n.type===r.type&&n.value===r.value&&!!t_(e,t)&&!!tv(e,t)}(n,r)))return null}catch(e){}return e=t}}},ty=z(tm,tg);function tv(e,t){let n=tS(e),r=tS(t);if(!n&&!r)return!0;
11if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function t_(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch(e){return!1}}function tb(e){return e.exception&&e.exception.values&&e.exception.values[0]}function tS(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}let tw={};eu.Sentry&&eu.Sentry.Integrations&&(tw=eu.Sentry.Integrations);let tE={...tw,...R,...x},tI=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tT(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function tk(e){let t=tI.exec(e);if(!t)return void(0,F.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[n,r,i="",s,a="",o]=t.slice(1),l="",c=o,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return tC({host:s,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function tC(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tO(e,t=[]){return[e,t]}function tR(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function tx(e,t){return(t||new TextEncoder).encode(e)}let tA={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",span:"span",statsd:"metric_bucket"};function tM(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tD(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tT(r)},...i&&{trace:(0,N.Ce)({...i})}}}class tP 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}}var tN=n(6136),tL=n(3080),tF=n(7819);let tj="Not capturing exception because it's already been captured.";class tU{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?tk(e):tC(e);if(t&&function(e){if(!ep.T)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(F.vF.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(F.vF.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(t&&isNaN(parseInt(t,10)))||(F.vF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(F.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):j.T&&F.vF.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){let n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${(0,N.u4)({sentry_key:e.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`}(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,L.GR)(e)){j.T&&F.vF.log(tj);return}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 i=n&&n.event_id,s=(0,en.NF)(e)?e:String(e),a=(0,en.sO)(e)?this.eventFromMessage(s,t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,L.GR)(t.originalException)){j.T&&F.vF.log(tj);return}let r=t&&t.event_id,i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?j.T&&F.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,tN.qO)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isCl
11ientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,eO.XW)(!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 j.T&&F.vF.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){let t=this._integrations[e.name];q(this,e,this._integrations),t||H(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let s=tM(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let o=tD(e,s,r,t);return delete e.sdkProcessingMetadata,tO(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?tx(e.data,t):e.data;return[(0,N.Ce)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=tM(n);return tO({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tT(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i=`${e}:${t}`;j.T&&F.vF.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){j.T&&F.vF.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);let t=function(e,t,n,r){let i={sent_at:new Date().toISOString()};return n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=tT(t)),tO(i,[function(e){let t=function(e){let t="";for(let n of e){let 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}
12`}return t}(e);return[{type:"statsd",length:t.length},t]}(e)])}(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(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&q(e,t,n)}),n}(this,e),H(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,tN.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new eO.T2(t=>{let n=0,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,$.rm)()){let i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),(0,tF.mG)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:s,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:a||(0,tL.l)(r,this,n),...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{j.T&&("log"===e.logLevel?F.vF.log(e.message):F.vF.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=tB(e),a=t$(e),o=e.type||"error",l=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,eO.xg)(new tP(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===o?"replay":o,u=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,u).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new tP("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,en.Qg)(e))return e.then(e=>{if(!(0,en.Qd)(e)&&null!==e)throw new tP(n);return e},e=>{throw new tP(`${t} rejected with ${e}`)});if(!(0,en.Qd)(e)&&null!==e)throw new tP(n);return e}(function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;if(t$(t)&&r)return r(t,n);if(tB(t)&&i){if(t.spans){let e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new tP(`${l} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!s&&i&&this._updateSessionFromEvent(i,r),s){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let a=r.transaction_info;return s&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof tP)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new tP(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}
13_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{j.T&&F.vF.error("Error while sending event:",e)});j.T&&F.vF.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function t$(e){return void 0===e.type}function tB(e){return"transaction"===e.type}var tH=n(4213),tq=n(6991);class tz extends tU{constructor(e){M(e,"browser",["browser"],eu.SENTRY_SDK_SOURCE||(0,tH.e)()),super(e),e.sendClientReports&&eu.document&&eu.document.addEventListener("visibilitychange",()=>{"hidden"===eu.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=eD(e,t,n&&n.syntheticException||void 0,r);return(0,L.M6)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,eO.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=eP(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,eO.XW)(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){return tO({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:tT(r)}},[[{type:"user_report"},e]])}(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(){var e;let t=this._clearOutcomes();if(0===t.length||!this._dsn)return;let n=tO((e=this._options.tunnel&&tT(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,tq.lu)(),discarded_events:t}]]);this._sendEnvelope(n)}}function tW(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tK=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tV=/\((\S*)(?::(\d+))(?::(\d+))\)/,tG=[30,e=>{let t=tK.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=tV.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=t1(t[1]||"?",t[2]);return tW(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],tQ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tJ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tY=[50,e=>{let t=tQ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tJ.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]||"?";return[n,e]=t1(n,e),tW(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tX=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,tZ=[40,e=>{let t=tX.exec(e);return t?tW(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],t0=(0,ef.gd)(tG,tY,tZ),t1=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function t2(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function t3(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=r+o):i[e]=r+o;else i.all=r+o}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function t5(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,eO.xg)(new tP("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new eO.T2((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout(()=>{e&&e>0&&n(!1)},e);
13t.forEach(e=>{(0,eO.XW)(e).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let s=[];if(tR(i,(t,n)=>{let i=tA[n];if(t2(r,i)){let r=t6(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)}),0===s.length)return(0,eO.XW)();let a=tO(i[0],s),o=t=>{tR(a,(n,r)=>{let i=t6(n,r);e.recordDroppedEvent(t,tA[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[tx(i,t),e]:i.push("string"==typeof e?tx(e,t):e)}for(let e of r){let[t,n]=e;if(s(`
14${JSON.stringify(t)}
15`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,eC.S8)(n))}s(e)}}return"string"==typeof i?i:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(i)}(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&j.T&&F.vF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=t3(r,e),e),e=>{throw o("network_error"),e})).then(e=>e,e=>{if(e instanceof tP)return j.T&&F.vF.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,eO.XW)();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function t6(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function t4(e,t=function(){if(E)return E;if(e6(eu.fetch))return E=eu.fetch.bind(eu);let e=eu.document,t=eu.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){}return E=t.bind(eu)}()){let n=0,r=0;return t5(e,function(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return E=void 0,n-=s,r--,(0,eO.xg)(e)}})}function t8(e){return t5(e,function(t){return new eO.T2((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let t9=[Z(),V(),eH(),to(),eL(),tu(),tg(),tp()];var t7=n(5364),ne=n(7975);function nt(e){let t=l?l.get(e):void 0;if(!t)return;let n={};for(let[,[e,r]]of t)n[e]||(n[e]=[]),n[e].push((0,N.Ce)(r));return n}let nn="sentry.source",nr="sentry.sample_rate",ni="sentry.op",ns="sentry.origin";var na=n(6126);function no(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let 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"}(k||(k={}));class nl{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class nc{constructor(e={}){this._traceId=e.traceId||(0,L.eJ)(),this._spanId=e.spanId||(0,L.eJ)().substring(16),this._startTime=e.startTimestamp||(0,tq.zf)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[ns]:e.origin||"manual",[ni]: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),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}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[ni]}set op(e){this.setAttribute(ni,e)}get origin(){return this._attributes[ns]}set origin(e){this.setAttribute(ns,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?ne.aO:ne.CC}}startChild(e){let t=new nc({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);let n=(0,na.z)(this);if(t.transaction=n,j.T&&n){let r=e&&e.op||"< unknown op >",i=(0,ne.et)(t).description||"< unknown name >",s=n.spanContext().spanId,a=`[Tracing] Starting '${r}' span on transaction '${i}' (${s}).`;F.vF.log(a),this._logMessage=a}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 no(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;let t=(0,na.z)(this);if(j.T&&t&&t.spanContext().spanId!==this._spanId){let e=this._logMessage;e&&F.vF.log(e.replace("Starting","Finishing"))}this._endTime=(0,ne.cI)(e)}toTraceparent(){return(0,ne.Qh)(this)}toContext(){return(0,N.Ce)({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,ne.kX)(this)}getSpanJSON(){return(0,N.Ce)({data:this._getData(),description:this._name,op:this._attributes[ni],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[ns],_metrics_summary:nt(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
15toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}function nu(e){if(!P())return;let t=function(e){if(e.startTime){let t={...e};return t.startTimestamp=(0,ne.cI)(e.startTime),delete t.startTime,t}return e}(e),n=(0,$.BF)(),r=e.scope?e.scope.getSpan():nh();if(e.onlyIfParent&&!r)return;let i=(e.scope||(0,D.o5)()).clone();return function(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){var s,a,o;let l;if(!P())return;let c=(0,$.rm)();if(t&&!r)l=t.startChild(n);else if(t){let r=(0,tL.k)(t),{traceId:i,spanId:s}=t.spanContext(),a=(0,ne.pK)(t);l=e.startTransaction({traceId:i,parentSpanId:s,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}else{let{traceId:t,dsc:r,parentSpanId:s,sampled:a}={...c.getPropagationContext(),...i.getPropagationContext()};l=e.startTransaction({traceId:t,parentSpanId:s,parentSampled:a,...n,metadata:{dynamicSamplingContext:r,...n.metadata}})}return i.setSpan(l),s=l,a=i,o=c,s&&((0,N.my)(s,np,o),(0,N.my)(s,nd,a)),l}(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:i})}function nh(){return(0,D.o5)().getSpan()}let nd="_sentryScope",np="_sentryIsolationScope";class nf extends nc{constructor(e,t){super(e),this._contexts={},this._hub=t||(0,$.BF)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let 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[nn]&&{source:this._attributes[nn]},...this._attributes[nr]&&{sampleRate:this._attributes[nr]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(nn,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new nl(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){let t=(0,ne.cI)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){let e=super.toContext();return(0,N.Ce)({...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,tL.k)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(j.T&&F.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled){j.T&&F.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&(0,ne.et)(e).timestamp):[];if(this._trimEnd&&n.length>0){let e=n.map(e=>(0,ne.et)(e).timestamp).filter(Boolean);this._endTime=e.reduce((e,t)=>e>t?e:t)}let{scope:r,isolationScope:i}={scope:this[nd],isolationScope:this[np]},{metadata:s}=this,{source:a}=s,o={contexts:{...this._contexts,trace:(0,ne.kX)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:r,capturedSpanIsolationScope:i,...(0,N.Ce)({dynamicSamplingContext:(0,tL.k)(this)})},_metrics_summary:nt(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(j.T&&F.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),j.T&&F.vF.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),o}}let nm={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class ng extends nl{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){let t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===(0,ne.et)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class ny extends nf{constructor(e,t,n=nm.idleTimeout,r=nm.finalTimeout,i=nm.heartbeatInterval,s=!1,a=!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="externalFinish",this._autoFinishAllowed=!a,s&&(j.T&&F.vF.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}end(e){let t=(0,ne.cI)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let e of(j.T&&F.vF.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;!(0,ne.et)(e).timestamp&&(e.setStatus("cancelled"),e.end(t),j.T&&F.vF.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,ne.et)(e),i=n&&n<t,s=(this._finalTimeout+this._idleTimeout)/1e3,a=r&&n&&r-n<s;if(j.T){let t=JSON.stringify(e,void 0,2);i?a||F.vF.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):F.vF.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return i&&a}),j.T&&F.vF.log("[Tracing] flushing IdleTransaction")}else j.T&&F.vF.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new ng(t,n,this.spanContext().spanId,e),j.T&&F.vF.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="cancelled",this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(j.T&&F.vF.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="idleTimeout",this.end(e))},this._idleTimeout)}
15_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),j.T&&F.vF.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,j.T&&F.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(j.T&&F.vF.log(`[Tracing] popActivity ${e}`),delete this.activities[e],j.T&&F.vF.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=(0,tq.zf)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(j.T&&F.vF.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){j.T&&F.vF.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nv(e){return(e||(0,$.BF)()).getScope().getTransaction()}let n_=!1;function nb(){let e=nv();if(e){let t="internal_error";j.T&&F.vF.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function nS(e,t,n){let r;return P(t)?void 0!==e.sampled?e.setAttribute(nr,Number(e.sampled)):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(nr,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(nr,Number(r))):(r=1,e.setAttribute(nr,r)),nw(r))?r?(e.sampled=Math.random()<r,e.sampled)?j.T&&F.vF.log(`[Tracing] starting ${e.op} transaction - ${(0,ne.et)(e).description}`):j.T&&F.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`):(j.T&&F.vF.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1):(j.T&&F.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):e.sampled=!1,e}function nw(e){return(0,en.yr)(e)||"number"!=typeof e&&"boolean"!=typeof e?(j.T&&F.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0)&&!(e>1)||(j.T&&F.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}function nE(){let e=this.getScope().getSpan();return e?{"sentry-trace":(0,ne.Qh)(e)}:{}}function nI(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=e.instrumenter||"sentry";i!==s&&(j.T&&F.vF.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter.
16The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new nf(e,this);return(a=nS(a,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t})).isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function nT(e,t,n,r,i,s,a,o=!1){let l=e.getClient(),c=l&&l.getOptions()||{},u=new ny(t,e,n,r,a,i,o);return(u=nS(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...s})).isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function nk(){let e=(0,$.EU)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nI),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nE),n_||(n_=!0,eS(nb),eI(nb)))}nb.tag="sentry_tracingErrorCallback";var nC=n(2800);let nO=ec.OW;function nR(){nO.document&&nO.document.addEventListener("visibilitychange",()=>{let e=nv();if(nO.document.hidden&&e){let{op:t,status:n}=(0,ne.et)(e);
16n||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.end()}})}let nx=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nA=()=>nO.__WEB_VITALS_POLYFILL__?nO.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{let e=nO.performance.timing,t=nO.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):nO.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nM=()=>{let e=nA();return e&&e.activationStart||0},nD=(e,t)=>{let n=nA(),r="navigate";return n&&(r=nO.document&&nO.document.prerendering||nM()>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(Math.random()*(9e12-1))+1e12}`,navigationType:r}},nP=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe({type:e,buffered:!0,...n}),r}}catch(e){}},nN=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===nO.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nO.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},nL=-1,nF=()=>(nL<0&&(nO.document&&nO.document.visibilityState&&(nL="hidden"!==nO.document.visibilityState||nO.document.prerendering?1/0:0),nN(({timeStamp:e})=>{nL=e},!0)),{get firstHiddenTime(){return nL}}),nj=0,nU=1/0,n$=0,nB=e=>{e.forEach(e=>{e.interactionId&&(nU=Math.min(nU,e.interactionId),nj=(n$=Math.max(n$,e.interactionId))?(n$-nU)/7+1:0)})},nH=()=>c?nj:performance.interactionCount||0,nq=[],nz={},nW=e=>{let t=nq[nq.length-1],n=nz[e.interactionId];if(n||nq.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};nz[t.id]=t,nq.push(t)}nq.sort((e,t)=>t.latency-e.latency),nq.splice(10).forEach(e=>{delete nz[e.id]})}},nK={},nV=e=>{nO.document&&(nO.document.prerendering?addEventListener("prerenderingchange",()=>nV(e),!0):"complete"!==nO.document.readyState?addEventListener("load",()=>nV(e),!0):setTimeout(e,0))},nG={},nQ={};function nJ(e,t=!1){return n5("lcp",e,n1,d,t)}function nY(e,t){return n6(e,t),nQ[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),nP(e,t=>{nX(e,{entries:t})},t)}(e),nQ[e]=!0),n4(e,t)}function nX(e,t){let n=nG[e];if(n&&n.length)for(let e of n)try{e(t)}catch(e){}}function nZ(){return((e,t={})=>{let n,r=nD("CLS",0),i=0,s=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=s[0],a=s[s.length-1];i&&0!==s.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>r.value&&(r.value=i,r.entries=s,n&&n())}})},o=nP("layout-shift",a);if(o){n=nx(e,r,t.reportAllChanges);let i=()=>{a(o.takeRecords()),n(!0)};return nN(i),i}})(e=>{nX("cls",{metric:e}),u=e},{reportAllChanges:!0})}function n0(){return(e=>{let t,n=nF(),r=nD("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},s=e=>{e.forEach(i)},a=nP("first-input",s);t=nx(e,r),a&&nN(()=>{s(a.takeRecords()),a.disconnect()},!0)})(e=>{nX("fid",{metric:e}),h=e})}function n1(){return(e=>{let t,n=nF(),r=nD("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-nM(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},s=nP("largest-contentful-paint",i);if(s){t=nx(e,r);let n=()=>{nK[r.id]||(i(s.takeRecords()),s.disconnect(),nK[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{nO.document&&addEventListener(e,n,{once:!0,capture:!0})}),nN(n,!0),n}})(e=>{nX("lcp",{metric:e}),d=e})}function n2(){return((e,t)=>{t=t||{};let n=nD("TTFB"),r=nx(e,n,t.reportAllChanges);nV(()=>{let e=nA();if(e){if(n.value=Math.max(e.responseStart-nM(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}})})(e=>{nX("ttfb",{metric:e}),p=e})}function n3(){return((e,t)=>{let n;t=t||{},"interactionCount"in performance||c||(c=nP("event",nB,{type:"event",buffered:!0,durationThreshold:0}));let r=nD("INP"),i=e=>
16{e.forEach(e=>{e.interactionId&&nW(e),"first-input"===e.entryType&&(nq.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||nW(e))});let t=(()=>{let e=Math.min(nq.length-1,Math.floor(nH()/50));return nq[e]})();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},s=nP("event",i,{durationThreshold:t.durationThreshold||40});n=nx(e,r,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),nN(()=>{i(s.takeRecords()),r.value<0&&nH()>0&&(r.value=0,r.entries=[]),n(!0)}))})(e=>{nX("inp",{metric:e}),f=e})}function n5(e,t,n,r,i=!1){let s;return n6(e,t),nQ[e]||(s=n(),nQ[e]=!0),r&&t({metric:r}),n4(e,t,i?s:void 0)}function n6(e,t){nG[e]=nG[e]||[],nG[e].push(t)}function n4(e,t,n){return()=>{n&&n();let r=nG[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function n8(e){return[{type:"span"},e]}function n9(e){return"number"==typeof e&&isFinite(e)}function n7(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function re(e){return e/1e3}function rt(){return nO&&nO.addEventListener&&nO.performance}let rn=0,rr={};function ri(){let e=rt();if(e&&tq.k3){e.mark&&nO.performance.mark("sentry-tracing-init");let t=n5("fid",({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=re(tq.k3),r=re(t.startTime);rr.fid={value:e.value,unit:"millisecond"},rr["mark.fid"]={value:n+r,unit:"second"}},n0,h),n=function(e,t=!1){return n5("cls",e,nZ,u,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rr.cls={value:e.value,unit:""},g=t)},!0),r=nJ(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rr.lcp={value:e.value,unit:"millisecond"},m=t)},!0),i=n5("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rr.ttfb={value:e.value,unit:"millisecond"})},n2,p);return()=>{t(),n(),r(),i()}}return()=>void 0}function rs(){nY("longtask",({entries:e})=>{for(let t of e){let e=nv();if(!e)return;let n=re(tq.k3+t.startTime),r=re(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})}function ra(){nY("event",({entries:e})=>{for(let t of e){let e=nv();if(!e)return;if("click"===t.name){let n=re(tq.k3+t.startTime),r=re(t.duration),i={description:(0,ek.Hd)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},s=(0,ek.xE)(t.target);s&&(i.attributes={"ui.component_name":s}),e.startChild(i)}}})}function ro(e,t){if(rt()&&tq.k3){var n,r;let i=(n=e,r=t,n5("inp",({metric:e})=>{var t,i,s;let a;if(void 0===e.value)return;let o=e.entries.find(t=>t.duration===e.value&&void 0!==rl[t.name]),l=(0,D.KU)();if(!o||!l)return;let c=rl[o.name],u=l.getOptions(),h=re(tq.k3+o.startTime),d=re(e.value),p=void 0!==o.interactionId?n[o.interactionId]:void 0;if(void 0===p)return;let{routeName:f,parentContext:m,activeTransaction:g,user:y,replayId:v}=p,_=void 0!==y?y.email||y.id||y.ip_address:void 0,b=void 0!==g?g.getProfileId():void 0,S=new nc({startTimestamp:h,endTimestamp:h+d,op:`ui.interaction.${c}`,name:(0,ek.Hd)(o.target),attributes:{release:u.release,environment:u.environment,transaction:f,...void 0!==_&&""!==_?{user:_}:{},...void 0!==b?{profile_id:b}:{},...void 0!==v?{replay_id:v}:{}},exclusiveTime:e.value,measurements:{inp:{value:e.value,unit:"millisecond"}}}),w=(t=m,i=u,s=r,!!P(i)&&!!nw(a=void 0!==t&&"function"==typeof i.tracesSampler?i.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:{...t.data,...t.attributes},location:nO.location}):void 0!==t&&void 0!==t.sampled?t.sampled:void 0!==i.tracesSampleRate?i.tracesSampleRate:1)&&(!0===a?s:!1===a?0:a*s));if(w&&Math.random()<w){let e=S?function(e,t){let n={sent_at:new Date().toISOString()};return t&&(n.dsn=tT(t)),tO(n,e.map(n8))}([S],l.getDsn()):void 0,t=l&&l.getTransport();t&&e&&t.send(e).then(null,e=>{});return}},n3,f));return()=>{i()}}return()=>void 0}let rl={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function rc(e){let t=rt();if(!t||!nO.performance.getEntries||!tq.k3)return;let n=re(tq.k3),r=t.getEntries(),{op:i,start_timestamp:s}=(0,ne.et)(e);
16if(r.slice(rn).forEach(t=>{let r=re(t.startTime),i=re(t.duration);if("navigation"!==e.op||!s||!(n+r<s))switch(t.entryType){case"navigation":var a,o,l,c,u,h;a=e,o=t,l=n,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{ru(a,o,e,l)}),ru(a,o,"secureConnection",l,"TLS/SSL","connectEnd"),ru(a,o,"fetch",l,"cache","domainLookupStart"),ru(a,o,"domainLookup",l,"DNS"),c=a,u=o,h=l,u.responseEnd&&(n7(c,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:h+re(u.requestStart),endTimestamp:h+re(u.responseEnd)}),n7(c,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:h+re(u.responseStart),endTimestamp:h+re(u.responseEnd)}));break;case"mark":case"paint":case"measure":{var d=e,p=t,f=r,m=i,g=n;let s=g+f;n7(d,{description:p.name,endTimestamp:s+m,op:p.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s});let a=nF(),o=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&o&&(rr.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(rr.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=ts(n),o={};rh(o,t,"transferSize","http.response_transfer_size"),rh(o,t,"encodedBodySize","http.response_content_length"),rh(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(o["url.scheme"]=a.protocol.split(":").pop()),a.host&&(o["server.address"]=a.host),o["url.same_origin"]=n.includes(nO.location.origin);let l=s+r;n7(e,{description:n.replace(nO.location.origin,""),endTimestamp:l+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}(e,t,t.name,r,i,n)}}),rn=Math.max(r.length-1,0),function(e){let t=nO.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),n9(n.rtt)&&(rr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),n9(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),n9(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){var a;(function(e){let t=nA();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(rr),["fcp","fp","lcp"].forEach(e=>{if(!rr[e]||!s||n>=s)return;let t=rr[e].value,r=Math.abs((n+re(t)-s)*1e3);rr[e].value=r});let t=rr["mark.fid"];t&&rr.fid&&(n7(e,{description:"first input delay",endTimestamp:t.value+re(rr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete rr["mark.fid"]),"fcp"in rr||delete rr.cls,Object.keys(rr).forEach(e=>{!function(e,t,n){let r=nv();r&&r.setMeasurement(e,t,n)}(e,rr[e].value,rr[e].unit)}),a=e,m&&(m.element&&a.setTag("lcp.element",(0,ek.Hd)(m.element)),m.id&&a.setTag("lcp.id",m.id),m.url&&a.setTag("lcp.url",m.url.trim().slice(0,200)),a.setTag("lcp.size",m.size)),g&&g.sources&&g.sources.forEach((e,t)=>a.setTag(`cls.source.${t+1}`,(0,ek.Hd)(e.node)))}m=void 0,g=void 0,rr={}}function ru(e,t,n,r,i,s){let a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];o&&a&&n7(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+re(o),endTimestamp:r+re(a)})}function rh(e,t,n,r){let i=t[n];null!=i&&i<0x7fffffff&&(e[r]=i)}var rd=n(4504);let rp=["localhost",/^\/(?!\/)/],rf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:rp,tracePropagationTargets:rp};function rm(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}={traceFetch:rf.traceFetch,traceXHR:rf.traceXHR,...e},o="function"==typeof s?s:e=>!0,l=e=>{var t,n;return t=e,n=r||i,(0,Q.Xr)(t,n||rp)},c={};t&&e4(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!P()||!e.fetchData)return;let s=t(e.fetchData.url);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){no(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus("internal_error");e.end()}(n,e),delete r[t]);return}let a=(0,D.o5)(),o=(0,D.KU)(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(c),h=u?ts(u).host:void 0,d=s?nu({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":h,[ns]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let s=i||n.getSpan(),{traceId:a,spanId:o,sampled:l,dsc:c}={...(0,$.rm)().getPropagationContext(),...n.getPropagationContext()}
16,u=s?(0,ne.Qh)(s):(0,nC.TC)(a,o,l),h=(0,rd.De)(c||(s?(0,tL.k)(s):(0,tL.l)(a,t,n))),d=r.headers||("undefined"!=typeof Request&&(0,en.tH)(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":u,baggage:h};if("undefined"!=typeof Headers&&(0,en.tH)(d,Headers)){let e=new Headers(d);return e.append("sentry-trace",u),h&&e.append(rd.hF,h),e}if(Array.isArray(d)){let e=[...d,["sentry-trace",u]];return h&&e.push([rd.hF,h]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),h&&t.push(h),{...d,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}(t,o,a,n,d)}return d}(e,o,l,c);if(t){let n=rv(e.fetchData.url),r=n?ts(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}a&&t&&rg(t)}),n&&e1(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[e0];if(!P()||!i||i.__sentry_own_request__||!s)return;let a=t(s.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==s.status_code&&(no(t,s.status_code),t.end(),delete r[e]);return}let o=(0,D.o5)(),l=(0,$.rm)(),c=rv(s.url),u=c?ts(c).host:void 0,h=a?nu({name:`${s.method} ${s.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":s.method,"http.url":c,url:s.url,"server.address":u,[ns]:"auto.http.browser"},op:"http.client"}):void 0;h&&(i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h);let d=(0,D.KU)();if(i.setRequestHeader&&n(s.url)&&d){let{traceId:e,spanId:t,sampled:n,dsc:r}={...l.getPropagationContext(),...o.getPropagationContext()},s=h?(0,ne.Qh)(h):(0,nC.TC)(e,t,n);var p=i,f=s,m=(0,rd.De)(r||(h?(0,tL.k)(h):(0,tL.l)(e,d,o)));try{p.setRequestHeader("sentry-trace",f),m&&p.setRequestHeader(rd.hF,m)}catch(e){}}return h}(e,o,l,c);a&&t&&rg(t)})}function rg(e){let{url:t}=(0,ne.et)(e).data||{};if(!t||"string"!=typeof t)return;let n=nY("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),tq.k3)?[...r,["http.request.redirect_start",ry(e.redirectStart)],["http.request.fetch_start",ry(e.fetchStart)],["http.request.domain_lookup_start",ry(e.domainLookupStart)],["http.request.domain_lookup_end",ry(e.domainLookupEnd)],["http.request.connect_start",ry(e.connectStart)],["http.request.secure_connection_start",ry(e.secureConnectionStart)],["http.request.connection_end",ry(e.connectEnd)],["http.request.request_start",ry(e.requestStart)],["http.request.response_start",ry(e.responseStart)],["http.request.response_end",ry(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function ry(e=0){return((tq.k3||performance.timeOrigin)+e)/1e3}function rv(e){try{return new URL(e,nO.location.origin).href}catch(e){return}}let r_={...nm,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!nO||!nO.location)return;let i=nO.location.href;t&&(r=e({name:nO.location.pathname,startTimestamp:tq.k3?tq.k3/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&tn(({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&r.end(),r=e({name:nO.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rf};class rb{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,nk(),this.options={...r_,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=ri(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&ro(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&rs(),this.options._experiments.enableInteractions&&ra(),this._latestRoute={name:void 0,context:void 0}}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:a,markBackgroun
16dTransactions:o,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:u,enableHTTPTimings:h,_experiments:d}=this.options,p=r&&r.tracePropagationTargets||this.options.tracePropagationTargets;i(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},a,s),o&&nR(),d.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),rm({traceFetch:l,traceXHR:c,tracePropagationTargets:p,shouldCreateSpanForRequest:u,enableHTTPTimings:h})}_createRouteTransaction(e){let t;if(!this._getCurrentHub)return;let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:s,heartbeatInterval:a}=this.options,o="pageload"===e.op;if(o){let n=o?rS("sentry-trace"):"",r=o?rS("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:a,sampled:l}=(0,nC.kM)(n,r);t={traceId:i,parentSpanId:a,parentSampled:l,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else t={trimEnd:!0,...e};let l="function"==typeof r?r(t):t,c=void 0===l?{...t,sampled:!1}:l;c.metadata=c.name!==t.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRoute.name=c.name,this._latestRoute.context=c,c.sampled;let{location:u}=nO,h=nT(n,c,i,s,!0,{location:u},a,o);return o&&nO.document&&(nO.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nO.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(nO.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(e=>{this._collectWebVitals(),rc(e)}),h}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i=nv();if(i&&i.op&&["navigation","pageload"].includes(i.op)||(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)||!this._latestRoute.name)return;let s=this._getCurrentHub(),{location:a}=nO;e=nT(s,{name:this._latestRoute.name,op:"ui.action.click",trimEnd:!0,data:{[nn]:this._latestRoute.context?function(e){let t=e.attributes&&e.attributes[nn],n=e.data&&e.data[nn],r=e.metadata&&e.metadata.source;return t||n||r}(this._latestRoute.context):"url"}},t,n,!0,{location:a},r)};["click"].forEach(e=>{nO.document&&addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=({entries:e})=>{let t=(0,D.KU)(),n=void 0!==t&&void 0!==t.getIntegrationByName?t.getIntegrationByName("Replay"):void 0,r=void 0!==n?n.getReplayId():void 0,i=nv(),s=(0,D.o5)(),a=void 0!==s?s.getUser():void 0;e.forEach(e=>{if("duration"in e){let t=e.interactionId;if(void 0===t)return;let n=this._interactionIdToRouteNameMapping[t],s=e.duration,o=e.startTime,l=Object.keys(this._interactionIdToRouteNameMapping),c=l.length>0?l.reduce((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t):void 0;if(!("first-input"===e.entryType&&l.map(e=>this._interactionIdToRouteNameMapping[e]).some(e=>e.duration===s&&e.startTime===o))&&t){if(n)n.duration=Math.max(n.duration,s);else if(l.length<10||void 0===c||s>this._interactionIdToRouteNameMapping[c].duration){let e=this._latestRoute.name,n=this._latestRoute.context;e&&n&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[t]={routeName:e,duration:s,parentContext:n,user:a,activeTransaction:i,replayId:r,startTime:o})}}}})};nY("event",e),nY("first-input",e)}}function rS(e){let t=(0,ek.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let rw={...nm,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rf};function rE(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let n=nh();return"pageload"===(n&&(0,ne.et)(n).op)?n:void 0}function rI(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=nh();return"navigation"===(n&&(0,ne.et)(n).op)?n:void 0}function rT(e){let t=(0,ek.NX)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let rk={"routing.instrumentation":"next-app-router"};var rC=n(9099),rO=n.n(rC);
16let rR={"routing.instrumentation":"next-pages-router"},rx=(0,D.KU)();function rA(e,t=!0,n=!0,r,i){eu.document.getElementById("__NEXT_DATA__")?function(e,t=!0,n=!0,r,i){let{route:s,params:a,sentryTrace:o,baggage:l}=function(){let e,t=eu.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){}if(!e)return{};let n={},{page:r,query:i,props:s}=e;return n.route=r,n.params=i,s&&s.pageProps&&(n.sentryTrace=s.pageProps._sentryTraceData,n.baggage=s.pageProps._sentryBaggage),n}(),{traceparentData:c,dynamicSamplingContext:u,propagationContext:h}=(0,nC.E0)(o,l);if((0,D.o5)().setPropagationContext(h),T=s||eu.location.pathname,t){let t={name:T,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rR,startTimestamp:tq.k3?tq.k3/1e3:void 0,...a&&rx&&rx.getOptions().sendDefaultPii&&{data:a},...c,metadata:{source:s?"route":"url",dynamicSamplingContext:c&&!u?{}:u}};I=e(t),r(t)}n&&rO().events.on("routeChangeStart",t=>{let n,r,s=t.split(/[\?#]/,1)[0],a=function(e){let t=(eu.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(s);a?(n=a,r="route"):(n=s,r="url");let o={...rR,from:T};T=n,I&&I.end();let l={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:o,metadata:{source:r}},c=e(l);if(i(l),c){let e=c.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.end(),rO().events.off("routeChangeComplete",t)};rO().events.on("routeChangeComplete",t)}})}(e,t,n,r||(()=>void 0),i||(()=>void 0)):function(e,t=!0,n=!0,r,i){let s,a=eu.location.pathname;if(t){let t={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:rk,startTimestamp:tq.k3?tq.k3/1e3:void 0,metadata:{source:"url"}};s=e(t),r(t)}n&&e4(t=>{if(void 0!==t.endTimestamp||"GET"!==t.fetchData.method)return;let n=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1]))return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(e){return null}}(t.args);if(null===n)return;let r=n.targetPathname,o={...rk,from:a};a=r,s&&s.end();let l={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:o,metadata:{source:"url"}};e(l),i(l)})}(e,t,n,r||(()=>void 0),i||(()=>void 0))}class rM extends rb{constructor(e){super({tracingOrigins:[...rf.tracingOrigins,/^(api\/)/],routingInstrumentation:rA,...e})}}function rD(e){let t=((e={})=>{nk(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let t={...rw,...e},n=ri(),r={};t.enableInp&&ro(r,t.interactionsSampleRate),t.enableLongTask&&rs(),t._experiments.enableInteractions&&ra();let i={name:void 0,context:void 0};function s(e){let r,s=(0,$.BF)(),{beforeStartSpan:a,idleTimeout:o,finalTimeout:l,heartbeatInterval:c}=t,u="pageload"===e.op;if(u){let t=u?rT("sentry-trace"):"",n=u?rT("baggage"):void 0,{traceId:i,dsc:s,parentSpanId:a,sampled:o}=(0,nC.kM)(t,n);r={traceId:i,parentSpanId:a,parentSampled:o,...e,metadata:{...e.metadata,dynamicSamplingContext:s},trimEnd:!0}}else r={trimEnd:!0,...e};let h=a?a(r):r;h.metadata=h.name!==r.name?{...h.metadata,source:"custom"}:h.metadata,i.name=h.name,i.context=h,h.sampled;let{location:d}=nO,p=nT(s,h,o,l,!0,{location:d},c,u);return u&&nO.document&&(nO.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nO.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(nO.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(e=>{n(),rc(e)}),p}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){let n,a=e.getOptions(),{markBackgroundSpan:o,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:u,enableHTTPTimings:h,_experiments:d}=t,p=a&&a.tracePropagationTargets||t.tracePropagationTargets,f=nO.location&&nO.location.href;e.on&&(e.on("startNavigationSpan",e=>{n&&n.end(),n=s({op:"navigation",...e})}),e.on("startPageLoadSpan",e=>{n&&n.end(),n=s({op:"pageload",...e})})),t.instrumentPageLoad&&e.emit&&nO.location&&rE(e,{name:nO.location.pathname,startTimestamp:tq.k3?tq.k3/1e3:void 0,origin:"auto.pageload.browser",attributes:{[nn]:"url"}}),t.instrumentNavigation&&e.emit&&nO.location&&tn(({to:t,from:n})=>{if(void 0===n&&f&&-1!==f.indexOf(t)){f=void 0;return}n!==t&&(f=void 0,rI(e,{name:nO.location.pathname,origin:"auto.navigation.browser",attributes:{[nn]:"url"}}))}),o&&nR(),d.enableInteractions&&function(e,t){let n,r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=e,a=nv();if(a&&a.op&&["navigation","pageload"].includes(a.op)||(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name))return;let{location:o}=nO,l={name:t.name,op:"ui.action.click",trimEnd:!0,data:{[nn]:t.context?function(e){let t=e.attributes&&e.attributes[nn],n=e.data&&e.data[nn],r=e.metadata&&e.metadata.source;return t||n||r}(t.context):"url"}};n=nT((0,$.BF)(),l,r,i,!0,{location:o},s)};
16["click"].forEach(e=>{nO.document&&addEventListener(e,r,{once:!1,capture:!0})})}(t,i),t.enableInp&&function(e,t){let n=({entries:n})=>{let r=(0,D.KU)(),i=void 0!==r&&void 0!==r.getIntegrationByName?r.getIntegrationByName("Replay"):void 0,s=void 0!==i?i.getReplayId():void 0,a=nv(),o=(0,D.o5)(),l=void 0!==o?o.getUser():void 0;n.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=e[r],o=n.duration,c=n.startTime,u=Object.keys(e),h=u.length>0?u.reduce((t,n)=>e[t].duration<e[n].duration?t:n):void 0;if(!("first-input"===n.entryType&&u.map(t=>e[t]).some(e=>e.duration===o&&e.startTime===c))&&r){if(i)i.duration=Math.max(i.duration,o);else if(u.length<10||void 0===h||o>e[h].duration){let n=t.name,i=t.context;n&&i&&(h&&Object.keys(e).length>=10&&delete e[h],e[r]={routeName:n,duration:o,parentContext:i,user:l,activeTransaction:a,replayId:s,startTime:c})}}}})};nY("event",n),nY("first-input",n)}(r,i),rm({traceFetch:l,traceXHR:c,tracePropagationTargets:p,shouldCreateSpanForRequest:u,enableHTTPTimings:h})},options:t}})({tracingOrigins:[...rf.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1}),n={...t.options,instrumentPageLoad:!0,instrumentNavigation:!0,...e};return{...t,options:n,afterAllSetup(e){let r=t=>{rE(e,t)},i=t=>{rI(e,t)};rA(()=>void 0,!1,n.instrumentNavigation,r,i),t.afterAllSetup(e),rA(()=>void 0,n.instrumentPageLoad,!1,r,i)}}}function rP(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}let rN=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rL(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function rF(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let rj="RewriteFrames",rU=(e={})=>{let t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;let r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(r||i){let i=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,s=t?function(e,t){e=rL(e).slice(1),t=rL(t).slice(1);let n=rF(e.split("/")),r=rF(t.split("/")),i=Math.min(n.length,r.length),s=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){s=e;break}let a=[];for(let e=s;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(s))).join("/")}(t,i):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=rN.exec(t);return n?n.slice(1):[]}(i)[2];e.filename=`${n}${s}`}return e});return{name:rj,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>r(e))}}}})}}}catch(t){return e}}(t)),t}}};z(rj,rU);let r$=ec.OW,rB=ec.OW;function rH(e){let t=e.find(e=>"BrowserTracing"===e.name);if(!t)return e;if(t.afterAllSetup&&t.options){let{options:n}=t;e[e.indexOf(t)]=rD(n)}if(!(t instanceof rM)){let n=t.options;delete n.routingInstrumentation,delete n.tracingOrigins,e[e.indexOf(t)]=new rM(n)}return e}function rq(e){return"/"===e[e.length-1]?e.slice(0,-1):e}({...tE,BrowserTracing:rM});var rz=n(1226);function rW(){return"undefined"!=typeof window&&(!(0,rz.wD)()||void 0!==ec.OW.process&&"renderer"===ec.OW.process.type)}let rK=ec.OW,rV="sentryReplaySession",rG="Unable to send Replay";function rQ(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function rJ(e){let t=rQ([e,"optionalAccess",e=>e.host]);return rQ([t,"optionalAccess",e=>e.shadowRoot])===e}function rY(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function rX(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,rZ).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}}function rZ(e){let t;if("styleSheet"in e)try{t=rX(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let 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("selectorText"in 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"}(C||(C={}));class r0{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){var t,n;return e?(n=()=>-1,null!=(t=rQ([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:n()):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
16this.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){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let 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 r1({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function r2({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function r3(e){return e.toLowerCase()}function r5(e){return e.toUpperCase()}let r6="__rrweb_original__";function r4(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?r3(t):null}function r8(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}let r9=1,r7=RegExp("[^a-z0-9-_:]");function ie(){return r9++}let it=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ir=/^(?:[a-z+]+:)?\/\//i,ii=/^www\..*/i,is=/^(data:)([^,]*),(.*)/i;function ia(e,t){return(e||"").replace(it,(e,n,r,i,s,a)=>{let o=r||s||a,l=n||i||"";if(!o)return e;if(ir.test(o)||ii.test(o)||is.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let c=t.split("/"),u=o.split("/");for(let e of(c.pop(),u))if("."===e)continue;else".."===e?c.pop():c.push(e);return`url(${l}${c.join("/")}${l})`})}let io=/^[^ \t\n\r\u000c]+/,il=/^[, \t\n\r\u000c]+/;function ic(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function iu(){let e=document.createElement("a");return e.href="",e.href}function ih(e,t,n,r,i,s){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return ic(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return ic(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(il),!(n>=t.length);){let s=r(io);if(","===s.slice(-1))s=ic(e,s.substring(0,s.length-1)),i.push(s);else{let r="";s=ic(e,s);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((s+r).trim());break}if(a)")"===e&&(a=!1);else if(","===e){n+=1,i.push((s+r).trim());break}else"("===e&&(a=!0);r+=e,n+=1}}}return i.join(", ")}(e,r);if("style"===n)return ia(r,iu());else if("object"===t&&"data"===n)return ic(e,r);return"function"==typeof s?s(n,r,i):r}function id(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ip(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ip(e.parentNode,t,n,r+1)}function im(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function ig(e,t,n,r,i,s){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let 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 o=-1,l=-1;if(s){if((l=ip(a,im(r,i)))<0)return!0;o=ip(a,im(t,n),l>=0?l:1/0)}else{if((o=ip(a,im(t,n)))<0)return!1;l=ip(a,im(r,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!s}catch(e){}return!!s}function iy(e){return null==e?"":e.toLowerCase()}function iv(e,t){let n,{doc:r,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={}
16,inlineImages:E=!1,recordCanvas:I=!1,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:O=5e3,onStylesheetLoad:R,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:M=!1}=t,{preserveWhiteSpace:D=!0}=t,P=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E=!1}=t,I=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:C.Document,childNodes:[],compatMode:e.compatMode};return{type:C.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:C.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:h={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,maskAllText:_,maskTextClass:b,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:E}=t,I=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--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,s,a),T=function(e){if(e instanceof HTMLFormElement)return"form";let t=r3(e.tagName);return r7.test(t)?"div":t}(e),k={},O=e.attributes.length;for(let t=0;t<O;t++){let n=e.attributes[t];n.name&&!id(T,n.name,n.value)&&(k[n.name]=ih(r,T,r3(n.name),n.value,e,c))}if("link"===T&&o){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rX(t)),n&&(delete k.rel,delete k.href,k._cssText=ia(n,t.href))}if("style"===T&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rX(e.sheet);t&&(k._cssText=ia(t,iu()))}if("input"===T||"textarea"===T||"select"===T||"option"===T){let t=r4(e),n=r8(e,r5(T),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=ig(e,b,w,S,E,r1({type:t,tagName:r5(T),maskInputOptions:l}));k.value=r2({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(k.checked=r)}if("option"===T&&(e.selected&&!l.select?k.selected=!0:delete k.selected),"canvas"===T&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((r6 in i?i[r6]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(k.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(h.type,h.quality)&&(k.rr_dataURL=t)}}if("img"===T&&d){y||(v=(y=r.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let n=()=>{e.removeEventListener("load",n);try{y.width=e.naturalWidth,y.height=e.naturalHeight,v.drawImage(e,0,0),k.rr_dataURL=y.toDataURL(h.type,h.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?k.crossOrigin=t:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?n():e.addEventListener("load",n)}if(("audio"===T||"video"===T)&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),I){let{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==T||f(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(T)&&(n=!0)}catch(e){}return{type:C.Element,tagName:T,attributes:k,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:g,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:E,rootId:I,maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:c,rootId:u}=t,h=e.parentNode&&e.parentNode.tagName,d=e.textContent,p="STYLE"===h||void 0,f="SCRIPT"===h||void 0,m="TEXTAREA"===h||void 0;if(p&&d){try{e.nextSibling||e.previousSibling||rQ([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=rX(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=ia(d,iu())}f&&(d="SCRIPT_PLACEHOLDER");let g=ig(e,r,s,i,a,n);return p||f||m||!d||!g||(d=o?o(d,e.parentElement):d.replace(/[\S]/g,"*")),m&&d&&(l.textarea||g)&&(d=c?c(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===h&&d&&(d=r2({isMasked:ig(e,r,s,i,a,r1({type:null,tagName:h,maskInputOptions:l})),element:e,value:d,maskInputFn:c})),{type:C.Text,textContent:d||"",isStyle:p,rootId:u}}(e,{maskAllText:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:I});case e.CDATA_SECTION_NODE:return{type:C.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:C.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,dataURLOptions:w,inlineImages:E,recordCanvas:I,keepIframeSrcFn:A,newlyAddedElement:M});if(!P)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===C.Comment)return!0;
16if(e.type===C.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;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iy(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iy(e.attributes.name)||"icon"===iy(e.attributes.rel)||"apple-touch-icon"===iy(e.attributes.rel)||"shortcut icon"===iy(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&iy(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(iy(e.attributes.property).match(/^(og|twitter|fb):/)||iy(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iy(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===iy(e.attributes.name)||"googlebot"===iy(e.attributes.name)||"bingbot"===iy(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iy(e.attributes.name)||"generator"===iy(e.attributes.name)||"framework"===iy(e.attributes.name)||"publisher"===iy(e.attributes.name)||"progid"===iy(e.attributes.name)||iy(e.attributes.property).match(/^article:/)||iy(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iy(e.attributes.name)||"yandex-verification"===iy(e.attributes.name)||"csrf-token"===iy(e.attributes.name)||"p:domain_verify"===iy(e.attributes.name)||"verify-v1"===iy(e.attributes.name)||"verification"===iy(e.attributes.name)||"shopify-checkout-api-token"===iy(e.attributes.name)))return!0}}return!1}(P,S)&&(D||P.type!==C.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?ie():-2;let N=Object.assign(P,{id:n});if(i.add(e,N),-2===n)return null;T&&T(e);let L=!p;if(N.type===C.Element){L=L&&!N.needBlock,delete N.needBlock;let t=e.shadowRoot;t&&rY(t)&&(N.isShadowHost=!0)}if((N.type===C.Document||N.type===C.Element)&&L){S.headWhitespace&&N.type===C.Element&&"head"===N.tagName&&(D=!1);let t={doc:r,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:I,preserveWhiteSpace:D,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:R,stylesheetLoadTimeout:x,keepIframeSrcFn:A};for(let n of Array.from(e.childNodes)){let e=iv(n,t);e&&N.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=iv(n,t);r&&(rY(e.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return e.parentNode&&rJ(e.parentNode)&&rY(e.parentNode)&&(N.isShadow=!0),N.type===C.Element&&"iframe"===N.tagName&&function(e,t,n){let r,i=e.contentWindow;if(!i)return;let s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=setTimeout(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{clearTimeout(r),s=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&k){let n=iv(t,{doc:t,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:I,preserveWhiteSpace:D,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:R,stylesheetLoadTimeout:x,keepIframeSrcFn:A});n&&k(e,n)}},O),N.type===C.Element&&"link"===N.tagName&&"stylesheet"===N.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let s=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),i=!0,t()})}(e,()=>{if(R){let t=iv(e,{doc:r,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:h,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:E,recordCanvas:I,preserveWhiteSpace:D,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:R,stylesheetLoadTimeout:x,keepIframeSrcFn:A});t&&R(e,t)}},x),N}function i_(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function ib(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let iS="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.",iw={map:{},getId:()=>(console.error(iS),-1),getNode:()=>(console.error(iS),null),removeNodeFromMap(){console.error(iS)},has:()=>(console.error(iS),!1),reset(){console.error(iS)}};function iE(e,t,n={}){let r=null,i=0;return function(...s){let a=Date.now();i||!1!==n.leading||(i=a);let o=t-(a-i),l=this;o<=0||o>t?(r&&(function(...e){i$("clearTimeout")(...e)}
16(r),r=null),i=a,e.apply(l,s)):r||!1===n.trailing||(r=iB(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},o))}}function iI(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(iw=new Proxy(iw,{get:(e,t,n)=>("map"===t&&console.error(iS),Reflect.get(e,t,n))}));let iT=Date.now;function ik(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i_([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||i_([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||i_([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:i_([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||i_([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||i_([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function iC(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iO(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iR(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ix(e,t,n,r,i){if(!e)return!1;let s=iR(e);if(!s)return!1;let a=im(t,n);if(!i){let e=r&&s.matches(r);return a(s)&&!e}let o=ip(s,a),l=-1;return!(o<0)&&(r&&(l=ip(s,im(null,r))),o>-1&&l<0||o<l)}function iA(e,t){return -2===t.getId(e)}function iM(e){return!!e.changedTouches}function iD(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iP(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iN(e){return!!i_([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(iT=()=>new Date().getTime());class iL{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t,n;return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n()}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(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 iF(e){let t=null;return i_([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 ij(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=iF(n);)n=t;return n}(e);return t.contains(n)}(e))}let iU={};function i$(e){let t=iU[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return iU[e]=r.bind(window)}function iB(...e){return i$("setTimeout")(...e)}var iH=(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))(iH||{}),iq=(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))(iq||{}),iz=(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))(iz||{}),iW=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(iW||{});class iK{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
16(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let 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){let 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--)}}let iV=(e,t)=>`${e}@${t}`;class iG{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new iK,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!ij(i))return;let s=rJ(i.parentNode)?this.mirror.getId(iF(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===s||-1===a)return n.addNode(i);let o=iv(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{iD(e,this.mirror)&&this.iframeManager.addIframe(e),iP(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iN(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:s,nextId:a,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iJ(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)iY(this.droppedSet,e)||iJ(this.removes,e,this.mirror)?iY(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),i(e.value)}let 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=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!iA(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ig(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iR(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=r4(t),i=t.tagName;r=r8(t,i,n);let s=r1({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=r2({isMasked:ig(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
16if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r))if(t.contentDocument)return;else n="rr_src";if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!id(t.tagName,n)&&(i.attributes[n]=ih(this.doc,r3(t.tagName),r3(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?i.styleDiff[r]=e:i.styleDiff[r]=[e,s]:i._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rJ(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iA(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iQ(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rJ(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iV(n,r)]?iQ(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(rJ(e.target)&&rY(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(iA(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[iV(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ix(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),iN(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 iQ(e,t){e.delete(t),t.childNodes.forEach(t=>iQ(e,t))}function iJ(e,t,n){return 0!==e.length&&function e(t,n,r){let{parentNode:i}=n;if(!i)return!1;let s=r.getId(i);return!!t.some(e=>e.id===s)||e(t,i,r)}(e,t,n)}function iY(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let iX=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}:e;function iZ(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}let i0=[];function i1(e){try{if("composedPath"in e){let 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 i2(e,t){let n=new iG;i0.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=iZ([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let s=new r(iX(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function i3({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){return ib("scroll",iX(iE(iX(a=>{let o=i1(a);if(!o||ix(o,r,i,s,!0))return;let l=n.getId(o);if(o===t&&t.defaultView){let n=ik(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}let i5=["INPUT","TEXTAREA","SELECT"],i6=new WeakMap;function i4(e){var t=[];if(se("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||se("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||se("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||se("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function i8(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function i9({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?iZ([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):iZ([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=iZ([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(iZ([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return iZ([s,"access",e=>
16e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=iZ([s,"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}}),iX(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function i7(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r=i2(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=iE(iX(t=>{let n=Date.now()-i;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],i=null}),a),c=iX(iE(iX(e=>{let t=i1(e),{clientX:n,clientY:s}=iM(e)?e.changedTouches[0]:e;i||(i=iT()),o.push({x:n,y:s,id:r.getId(t),timeOffset:iT()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?iq.Drag:e instanceof MouseEvent?iq.MouseMove:iq.TouchMove)}),s,{trailing:!1})),u=[ib("mousemove",c,n),ib("touchmove",c,n),ib("drag",c,n)];return iX(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],c=null;return Object.keys(iz).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(a=>{let o=r3(a),u=t=>{let o=i1(t);if(ix(o,r,i,s,!0))return;let l=null,u=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=iW.Mouse;break;case"touch":l=iW.Touch;break;case"pen":l=iW.Pen}l===iW.Touch?iz[a]===iz.MouseDown?u="TouchStart":iz[a]===iz.MouseUp&&(u="TouchEnd"):iW.Pen}else iM(t)&&(l=iW.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===iW.Touch||u.startsWith("Mouse")&&l===iW.Mouse)&&(l=null)):iz[a]===iz.Click&&(l=c,c=null);let h=iM(t)?t.changedTouches[0]:t;if(!h)return;let d=n.getId(o),{clientX:p,clientY:f}=h;iX(e)({type:iz[u],id:d,x:p,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(iz[a]){case iz.MouseDown:case iz.MouseUp:o=o.replace("mouse","pointer");break;case iz.TouchStart:case iz.TouchEnd:return}l.push(ib(o,u,t))}),iX(()=>{l.forEach(e=>e())})}(e),a=i3(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ib("resize",iX(iE(iX(()=>{let t=iC(),i=iO();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:h,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=i1(e),u=e.isTrusted,g=n&&r5(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>i5.indexOf(g)||ix(n,r,i,s,!0))return;let v=n;if(v.classList.contains(a)||o&&v.matches(o))return;let _=r4(n),b=r8(v,g,_),S=!1,w=r1({maskInputOptions:l,tagName:g,type:_}),E=ig(n,d,f,p,m,w);("radio"===_||"checkbox"===_)&&(S=n.checked),b=r2({isMasked:E,element:n,value:b,maskInputFn:c}),y(n,h?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});let I=n.name;"radio"===_&&I&&S&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==n){let t=r2({isMasked:E,element:e,value:r8(e,g,_),maskInputFn:c});y(e,h?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=i6.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){i6.set(t,r);let i=n.getId(t);iX(e)({...r,id:i})}}let v=("last"===u.input?["change"]:["input","change"]).map(e=>ib(e,iX(g),t)),_=t.defaultView;if(!_)return()=>{v.forEach(e=>e())};let b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),S=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...S.map(e=>(function e(t,n,r,i,s=window){let a=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,i?r:{set(e){iB(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){iX(g)({target:this,isTrusted:!1})}},!1,_))),iX(()=>
16{v.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:a}){let o=iX(a=>iE(iX(s=>{let o=i1(s);if(!o||ix(o,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:h}=o;e({type:a,id:i.getId(o),currentTime:l,volume:c,muted:u,playbackRate:h})}),s.media||500)),l=[ib("play",o(0),a),ib("pause",o(1),a),ib("seeked",o(2),a),ib("volumechange",o(3),a),ib("ratechange",o(4),a)];return iX(()=>{l.forEach(e=>e())})}(e),u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:iX((r,i,s)=>{let[a,o]=s,{id:l,styleId:c}=i8(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:o}]}),r.apply(i,s)})});let o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:iX((r,i,s)=>{let[a]=s,{id:o,styleId:l}=i8(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:a}]}),r.apply(i,s)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:iX((r,i,s)=>{let[a]=s,{id:o,styleId:l}=i8(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:a}),r.apply(i,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:iX((r,i,s)=>{let[a]=s,{id:o,styleId:l}=i8(i,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:a}),r.apply(i,s)})}));let l={};st("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(st("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),st("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),st("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:iX((r,i,s)=>{let[a,o]=s,{id:l,styleId:c}=i8(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...i4(i),o||0]}]}),r.apply(i,s)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:iX((r,i,s)=>{let[a]=s,{id:o,styleId:l}=i8(i.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...i4(i),a]}]}),r.apply(i,s)})})}),iX(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),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}),h=i9(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:iX((i,a,o)=>{let[l,c,u]=o;if(n.has(l))return s.apply(a,[l,c,u]);let{id:h,styleId:d}=i8(iZ([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(h&&-1!==h||d&&-1!==d)&&e({id:h,styleId:d,set:{property:l,value:c,priority:u},index:i4(a.parentRule)}),i.apply(a,o)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:iX((i,s,o)=>{let[l]=o;if(n.has(l))return a.apply(s,[l]);let{id:c,styleId:u}=i8(iZ([s,"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:i4(s.parentRule)}),i.apply(s,o)})}),iX(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=iI(t.fonts,"add",function(t){return function(n){return iB(iX(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(a),iX(()=>
16{r.forEach(e=>e())})}(e):()=>{},f=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:a}=e,o=!0,l=iX(()=>{let e=t.getSelection();if(!e||o&&iZ([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:o,endContainer:c,endOffset:u}=e.getRangeAt(t);ix(a,r,i,s,!0)||ix(c,r,i,s,!0)||l.push({start:n.getId(a),startOffset:o,end:n.getId(c),endOffset:u})}a({ranges:l})});return l(),ib("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?iI(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return iX(()=>{i0.forEach(e=>e.reset()),r.disconnect(),i(),s(),a(),o(),l(),c(),u(),h(),d(),p(),f(),m(),g.forEach(e=>e())})}function se(e){return void 0!==window[e]}function st(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class sn{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),s.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
16getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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 sr(e){let t,n=e[0],r=1;for(;r<e.length;){let i=e[r],s=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=s(n)):("call"===i||"optionalCall"===i)&&(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}class si{constructor(){this.crossOriginIframeMirror=new sn(ie),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ss{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new sn(ie),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new sn(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}),sr([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){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iH.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:iH.IncrementalSnapshot,data:{source:iq.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iH.Meta:case iH.Load:case iH.DomContentLoaded:break;case iH.Plugin:return t;case iH.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iH.IncrementalSnapshot:switch(t.data.source){case iq.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let 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 iq.Drag:case iq.TouchMove:case iq.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iq.ViewportResize:return!1;case iq.MediaInteraction:case iq.MouseInteraction:case iq.Scroll:case iq.CanvasMutation:case iq.Input:return this.replaceIds(t.data,e,["id"]),t;case iq.StyleSheetRule:case iq.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iq.Font:return t;case iq.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iq.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),sr([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(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));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.forEac
16h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===C.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class sa{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class so{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(!rY(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=i2({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(i3({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iB(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(i9({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){let n=this;this.restoreHandlers.push(iI(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&ij(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class sl{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class sc{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new iL,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;let n={id:t,styleIds:[]},r=[];for(let 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:rZ(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 su{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){i$("requestAnimationFrame")(...e)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let 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}}let sh=new r0;function sd(e={}){let t,{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:h="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:w,maskInputFn:E,maskTextFn:I,maxCanvasSize:T=null,packFn:k,sampling:C={},dataURLOptions:O={},mousemoveWait:R,recordCanvas:x=!1,recordCrossOriginIframes:A=!1,recordAfter:M="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:D=!1,collectFonts:P=!1,inlineImages:N=!1,plugins:L,keepIframeSrcFn:F=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:U,onMutation:$,getCanvasManager:B}=e;_=U;let H=!A||window.parent===window,q=!1;if(!H)try{window.parent.document&&(q=!1)}catch(e){q=!0}if(H&&!n)throw Error("emit function is required");void 0!==R&&void 0===C.mousemove&&(C.mousemove=R),sh.reset();let z=!0===g?{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:{},W=!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||{};!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 TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let K=0,V=e=>{for(let t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!q&&(e=k(e)),e};b=(e,s)=>{if(e.timestamp=iT(),rP([i0,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==iH.FullSnapshot&&(e.type!==iH.IncrementalSnapshot||e.data.source!==iq.Mutation)&&i0.forEach(e
16=>e.unfreeze()),H)rP([n,"optionalCall",t=>t(V(e),s)]);else if(q){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===iH.FullSnapshot)t=e,K=0;else if(e.type===iH.IncrementalSnapshot){if(e.data.source===iq.Mutation&&e.data.isAttachIframe)return;K++;let n=i&&K>=i,s=r&&t&&e.timestamp-t.timestamp>r;(n||s)&&en(!0)}};let G=e=>{b({type:iH.IncrementalSnapshot,data:{source:iq.Mutation,...e}})},Q=e=>b({type:iH.IncrementalSnapshot,data:{source:iq.Scroll,...e}}),J=e=>b({type:iH.IncrementalSnapshot,data:{source:iq.CanvasMutation,...e}}),Y=new sc({mutationCb:G,adoptedStyleSheetCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new si:new ss({mirror:sh,mutationCb:G,stylesheetManager:Y,recordCrossOriginIframes:A,wrappedEmit:b});for(let e of L||[])e.getMirror&&e.getMirror({nodeMirror:sh,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});let Z=new su,ee=function(e,t){try{return e?e(t):new sl}catch(e){return console.warn("Unable to initialize CanvasManager"),new sl}}(B,{mirror:sh,win:window,mutationCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.CanvasMutation,...e}}),recordCanvas:x,blockClass:s,blockSelector:a,unblockSelector:o,maxCanvasSize:T,sampling:C.canvas,dataURLOptions:O,errorHandler:U}),et="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new sa:new so({mutationCb:G,scrollCb:Q,bypassOptions:{onMutation:$,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:h,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:z,dataURLOptions:O,maskAttributeFn:w,maskTextFn:I,maskInputFn:E,recordCanvas:x,inlineImages:N,sampling:C,slimDOMOptions:W,iframeManager:X,stylesheetManager:Y,canvasManager:ee,keepIframeSrcFn:F,processedNodeManager:Z},mirror:sh}),en=(e=!1)=>{b({type:iH.Meta,data:{href:window.location.href,width:iO(),height:iC()}},e),Y.reset(),et.init(),i0.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new r0,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:h=!0,inlineImages:d=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:k=()=>!1}=t||{};return iv(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:!0===f?{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===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:_,inlineImages:d,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:E,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:sh,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:u,maskTextClass:h,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:z,maskAttributeFn:w,maskInputFn:E,maskTextFn:I,slimDOM:W,dataURLOptions:O,recordCanvas:x,inlineImages:N,onSerialize:e=>{iD(e,sh)&&X.addIframe(e),iP(e,sh)&&Y.trackLinkElement(e),iN(e)&&et.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),et.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:F});if(!t)return console.warn("Failed to snapshot the document");b({type:iH.FullSnapshot,data:{node:t,initialOffset:ik(window)}}
16),i0.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,sh.getId(document))};S=en;try{let e=[],t=e=>iX(i7)({onMutation:$,mutationCb:G,mousemoveCb:(e,t)=>b({type:iH.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.MouseInteraction,...e}}),scrollCb:Q,viewportResizeCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.ViewportResize,...e}}),inputCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.Input,...e}}),mediaInteractionCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.MediaInteraction,...e}}),styleSheetRuleCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.StyleSheetRule,...e}}),styleDeclarationCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>b({type:iH.IncrementalSnapshot,data:{source:iq.Font,...e}}),selectionCb:e=>{b({type:iH.IncrementalSnapshot,data:{source:iq.Selection,...e}})},customElementCb:e=>{b({type:iH.IncrementalSnapshot,data:{source:iq.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:h,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:z,inlineStylesheet:m,sampling:C,recordCanvas:x,inlineImages:N,userTriggeredOnInput:D,collectFonts:P,doc:e,maskAttributeFn:w,maskInputFn:E,maskTextFn:I,keepIframeSrcFn:F,blockSelector:a,unblockSelector:o,slimDOMOptions:W,dataURLOptions:O,mirror:sh,iframeManager:X,stylesheetManager:Y,shadowDomManager:et,processedNodeManager:Z,canvasManager:ee,ignoreCSSAttributes:j,plugins:rP([L,"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=>b({type:iH.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});X.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ib("DOMContentLoaded",()=>{b({type:iH.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()})),e.push(ib("load",()=>{b({type:iH.Load,data:{}}),"load"===M&&n()},window))),()=>{e.forEach(e=>e()),Z.destroy(),S=void 0,_=void 0}}catch(e){console.warn(e)}}function sp(e){return e>0x2540be3ff?e:1e3*e}function sf(e){return e>0x2540be3ff?e/1e3:e}function sm(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iH.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eC.S8)(t,10,1e3)}}),"console"===t.category)))}function sg(e){return e.closest("button,a")||e}function sy(e){let t=sv(e);return t&&t instanceof Element?sg(t):t}function sv(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}sd.mirror=sh,sd.takeFullSnapshot=function(e){if(!S)throw Error("please take full snapshot after start recording");S(e)};class s_{constructor(e,t,n=sm){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(){var e;let t=(e=()=>{this._lastMutation=sS()},w||(w=[],(0,N.GS)(rK,"open",function(e){return function(...t){if(w)try{w.forEach(e=>e())}catch(e){}return e.apply(rK,t)}})),w.push(e),()=>{let t=w?w.indexOf(e):-1;t>-1&&w.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,i;if(n=t,r=this._ignoreSelector,!sb.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:sf(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>
16Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=sf(e)}registerScroll(e=Date.now()){this._lastScroll=sf(e)}registerClick(e){let t=sg(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=sS();for(let n of(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)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:rK.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:rK.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)}}let sb=["A","BUTTON","INPUT"];function sS(){return Date.now()/1e3}function sw(e){return{timestamp:Date.now()/1e3,type:"default",...e}}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(O||(O={}));let sE=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function sI(e,t){let n=sd.mirror.getId(e),r=n&&sd.mirror.getNode(n),i=r&&sd.mirror.getMeta(r),s=i&&i.type===O.Element?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===O.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in e)if(sE.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let sT={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:sC(s),end:sC(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,s=sC(i);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:h,redirectCount:d,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:sC(p),end:sC(s),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:h,domComplete:s,redirectCount:d}}}};function sk(e){return sT[e.entryType]?sT[e.entryType](e):null}function sC(e){return((tq.k3||rK.performance.timeOrigin)+e)/1e3}function sO(e,t){}function sR(e,t){}class sx extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sA{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){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new sx;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?sp(e):null}}class sM{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>
16{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let s=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",s),!t.success)return void i(Error("Error in compression worker"));r(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class sD{constructor(e){this._worker=new sM(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){let t=sp(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new sx):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class sP{constructor(e){this._fallback=new sA,this._compression=new sD(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}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){}}}function sN(){try{return"sessionStorage"in rK&&!!rK.sessionStorage}catch(e){return!1}}function sL(e){return void 0!==e&&Math.random()<e}function sF(e){let t=Date.now(),n=e.id||(0,L.eJ)(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:e.sampled,previousSessionId:e.previousSessionId}}function sj(e){if(sN())try{rK.sessionStorage.setItem(rV,JSON.stringify(e))}catch(e){}}function sU({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=sF({sampled:sL(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&sj(i),i}function s$(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function sB(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return s$(e.started,t,r)||s$(e.lastActivity,n,r)}function sH(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!sB(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function sq({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let s=i.stickySession&&function(e){if(!sN())return null;try{let t=rK.sessionStorage.getItem(rV);if(!t)return null;let n=JSON.parse(t);return sR("[Replay] Loading existing session",e),sF(n)}catch(e){return null}}(e);return s?sH(s,{sessionIdleExpire:t,maxReplayDuration:n})?(sR("[Replay] Session in sessionStorage is expired, creating new one..."),sU(i,{previousSessionId:s.id})):s:(sR("[Replay] Creating new session",e),sU(i,{previousSessionId:r}))}function sz(e,t,n){return!!sK(e,t)&&(sW(e,t,n),!0)}async function sW(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===iH.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(n){await e.stop({reason:n&&n instanceof sx?"addEventSizeExceeded":"addEvent"});let t=(0,D.KU)();t&&t.recordDroppedEvent("internal_sdk_error","replay")}}
16function sK(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=sp(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(sO(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function sV(e){return"transaction"===e.type}function sG(e){return"feedback"===e.type}function sQ(e){let t=function(){let e=(0,D.KU)();if(!e)return!1;let t=e.getTransport();return!!t&&(t.send.__sentry__baseTransport__||!1)}();return(n,r)=>{if(!e.isEnabled()||n.type&&!sV(n))return;let i=r&&r.statusCode;if(!t||i&&!(i<200)&&!(i>=300)){if(sV(n))return void function(e,t){let 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){let 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;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,n)}}}function sJ(e,t){return t.map(({type:t,start:n,end:r,name:i,data:s})=>{let a=e.throttledAddEvent({type:iH.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof a?Promise.resolve(null):a})}function sY(e,t){e.isEnabled()&&null!==t&&!function(e,t){var n,r,i,s;let a=t&&void 0!==t.getClient?t.getClient():t,o=a&&a.getDsn(),l=a&&a.getOptions().tunnel;return n=e,!!(r=o)&&n.includes(r.host)||(i=e,!!(s=l)&&rq(i)===rq(s))}(t.name,(0,D.KU)())&&e.addUpdate(()=>(sJ(e,[t]),!0))}function sX(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){let n=s4(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function sZ(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function s0(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[s4(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function s1(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function s2(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:a,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,N.Ce)({method:s,statusCode:a,request:o,response:l})}}function s3(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function s5(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);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=i,s&&s.length>0&&(r._meta={warnings:s}),r}function s6(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function s4(e){return new URLSearchParams(e).toString()}function s8(e,t){let n=function(e,t=rK.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rK.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,Q.Xr)(n,t)}async function s9(e,t,n){try{let r=await s7(e,t,n),i=s2("resource.fetch",r);sY(n.replay,i)}catch(e){}}
16async function s7(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:a,method:o,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,h=s8(a,n.networkDetailAllowUrls)&&!s8(a,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:a,method:o,statusCode:l,request:h?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var i,s;let a=n?(i=n,s=t,1===i.length&&"string"!=typeof i[0]?ai(i[0],s):2===i.length?ai(i[1],s):{}):{};if(!e)return s5(a,r,void 0);let[o,l]=s0(an(n)),c=s5(a,r,o);return l?s1(c,l):c}(n,t.input,c):s3(c),response:await ae(h,n,t.response,u)}}async function ae(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,s){if(!e&&void 0!==s)return s3(s);let a=i?ar(i.headers,r):{};if(!i||!t&&void 0!==s)return s5(a,s,void 0);let[o,l]=await at(i),c=function(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:i,headers:s}){try{let a=e&&e.length&&void 0===r?sX(e,n):r;if(!i)return s3(a);if(t)return s5(s,a,e);return s5(s,a,void 0)}catch(e){return s5(s,r,void 0)}}(o,{networkCaptureBodies:t,textEncoder:n,responseBodySize:s,captureDetails:e,headers:a});return l?s1(c,l):c}async function at(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>{let r=setTimeout(()=>t(Error("Timeout while trying to read response body")),500);as(n).then(t=>e(t),e=>
16t(e)).finally(()=>clearTimeout(r))}))]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}}function an(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ar(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ai(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?ar(n,t):Array.isArray(n)?{}:s6(n,t):{}}async function as(e){return await e.text()}async function aa(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:a,xhr:o}=t,{url:l,method:c,status_code:u=0,request_body_size:h,response_body_size:d}=e.data;if(!l)return null;if(!o||!s8(l,n.networkDetailAllowUrls)||s8(l,n.networkDetailDenyUrls)){let e=s3(h);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:e,response:s3(d)}}let p=o[e0],f=p?s6(p.request_headers,n.networkRequestHeaders):{},m=s6(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{}):{}}(o),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?s0(a):[void 0],[v,_]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&n&&"object"==typeof n)return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(o):[void 0],b=s5(f,h,g),S=s5(m,d,v);return{startTimestamp:i,endTimestamp:s,url:l,method:c,statusCode:u,request:y?s1(b,y):b,response:_?s1(S,_):S}}(e,t,n),i=s2("resource.xhr",r);sY(n.replay,i)}catch(e){}}let ao=null;async function al(e){try{return Promise.all(sJ(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(rK.performance.memory)]))}catch(e){return[]}}async function ac({client:e,scope:t,replayId:n,event:r}){let i={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,i);let s=await (0,tF.mG)(e.getOptions(),r,i,t,e,(0,$.rm)());if(!s)return null;s.platform=s.platform||"javascript";let a=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:l}=a&&a.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function au({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){var a;let o,l=function({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
17`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:h,initialTimestamp:d}=r,p=(0,D.KU)(),f=(0,D.o5)(),m=p&&p.getTransport(),g=p&&p.getDsn();if(!p||!m||!g||!s.sampled)return;let y={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:u,trace_ids:h,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},v=await ac({scope:f,client:p,replayId:t,event:y});if(!v)return void p.recordDroppedEvent("event_processor","replay",y);delete v.sdkProcessingMetadata;let _=(a=p.getOptions().tunnel,tO(tD(v,tM(v),a,g),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await m.send(_)}catch(t){let e=Error(rG);try{e.cause=t}catch(e){}throw e}if(!o)return o;if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new ah(o.statusCode);let b=t3({},o);if(t2(b,"replay"))throw new ad(b);return o}class ah extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ad extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function ap(e,t={count:0,interval:5e3}){let{recordingData:n,options:r}=e;if(n.length)try{return await au(e),!0}catch(n){if(n instanceof ah||n instanceof ad)throw n;if((0,D.o)("Replays",{_retryCount:t.count}),t.count>=3){let e=Error(`${rG} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{setTimeout(async()=>{try{await ap(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let af="__THROTTLED";class am{constructor({options:e,recordingOptions:t}){am.prototype.__init.call(this),am.prototype.__init2.call(this),am.prototype.__init3.call(this),am.prototype.__init4.call(this),am.prototype.__init5.call(this),am.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,i,s,a=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(o,t),a&&void 0===s&&(s=setTimeout(o,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==s?o():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3),s=n-5;if(r.forEach((e,t)=>{t<s&&r.delete(t)}),[...r.values()].reduce((e,t)=>
17e+t,0)>=300){let e=i;return i=!0,e?"__SKIPPED":af}i=!1;let a=r.get(n)||0;return r.set(n,a+1),e(...t)}}((e,t)=>(function(e,t,n){return sK(e,t)?sW(e,t,n):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new s_(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0)||!(n<=0)){if(this._initializeSessionForSampling(e),!this.session)return void this._handleException(Error("Unable to initialize and create session"));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals,this._updateUserActivity();let e=sq({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 Error("Replay recording is already in progress");this._options._experiments.traceInternals;let e=sq({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{var e;let t,n=this._canvas;this._stopRecording=sd({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(r===iq.Mutation&&e.registerMutation(t.timestamp),r===iq.Scroll&&e.registerScroll(t.timestamp),t.data.source===iq.MouseInteraction){let{type:n,id:r}=t.data,i=sd.mirror.getNode(r);i instanceof HTMLElement&&n===iz.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{var t;if("buffer"===e.recordingMode&&i&&e.setInitialState(),!sz(e,n,i))return!0;if(!i)return!1;if(t=e,i&&t.session&&0===t.session.segmentId&&sz(t,function(e){let t=e.getOptions();return{type:iH.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}}}}(t),!1),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&sj(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.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{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,function(){if(sN())try{rK.sessionStorage.removeItem(rV)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let 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){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"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}
17checkAndHandleExpiredSession(){return this._lastActivity&&s$(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${rK.location.pathname}${rK.location.hash}${rK.location.search}`,t=`${rK.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){let n=this._throttledAddEvent(e,t);if(n===af){let e=sw({category:"replay.throttled"});this.addUpdate(()=>!sz(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||(0,D.o5)().getTransaction(),t=(e&&(0,ne.et)(e).data||{})[nn];if(e&&t&&["route","custom"].includes(t))return(0,ne.et)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let 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<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 17
17,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
17++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}return""}();if(!t)return;let n=new Worker(t);return new sP(n)}catch(e){}}(t);if(e)return e}return sO("[Replay] Using simple buffer"),new sA}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=sq({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;let e=this.session;return!sH(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{rK.document.addEventListener("visibilitychange",this._handleVisibilityChange),rK.addEventListener("blur",this._handleWindowBlur),rK.addEventListener("focus",this._handleWindowFocus),rK.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){var t,n;let r=(0,D.o5)(),i=(0,D.KU)();r.addScopeListener(t=>{if(!e.isEnabled())return;let n=function(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return ao!==t&&t?(ao=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return sw(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;
17if("object"==typeof e)try{let t=(0,eC.S8)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return sw({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):sw(t):null}(t);n&&sm(e,n)}),eJ(t=>{var n,r;if(!e.isEnabled())return;let i=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?sy(e.event):sv(e.event),t=(0,ek.Hd)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return sw({category:`ui.${e.name}`,...sI(t,n)})}(t);if(!i)return;let s="click"===t.name,a=s?t.event:void 0;s&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(n=e.clickDetector,r=sy(t.event),n.handleClick(i,r)),sm(e,i)}),tn(t=>{if(!e.isEnabled())return;let n=function(e){let{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(()=>(sJ(e,[n]),!1)))}),function(e){let t=(0,D.KU)();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:s,networkRequestHeaders:a,networkResponseHeaders:o};if(t&&t.on)t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i,s,a;if(r=t,"xhr"===r.category&&(i=n)&&i.xhr&&(!function(e,t,n){let{xhr:r,input:i}=t;if(!r)return;let s=sX(i,n.textEncoder),a=r.getResponseHeader("content-length")?sZ(r.getResponseHeader("content-length")):function(e,t,n){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sX(r,n)}catch(e){return}}(r.response,r.responseType,n.textEncoder);void 0!==s&&(e.data.request_body_size=s),void 0!==a&&(e.data.response_body_size=a)}(t,n,e),aa(t,n,e)),s=t,"fetch"===s.category&&(a=n)&&a.response){let{input:r,response:i}=n,s=sX(r?an(r):void 0,e.textEncoder),a=i?sZ(i.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==a&&(t.data.response_body_size=a),s9(t,n,e)}}catch(e){}})(l,e,t));else e4(t=>{e.isEnabled()&&sY(e,function(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;let{method:s,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:s,statusCode:i?i.status:void 0}}}(t))}),e1(t=>{e.isEnabled()&&sY(e,function(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[e0];if(!t||!n||!i)return null;let{method:s,url:a,status_code:o}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:s,statusCode:o}}}(t))})}catch(e){}}(e);let s=function(e,t=!1){let n=t?sQ(e):void 0;return Object.assign((t,r)=>e.isEnabled()?"replay_event"===t.type?(delete t.breadcrumbs,t):(!t.type||sV(t)||sG(t))&&e.checkAndHandleExpiredSession()?sG(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iH.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&r.originalException&&r.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==rG&&t.exception&&!t.type&&sL(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t):t:t,{id:"Replay"})}(e,!((t=i)&&t.on));if(i&&i.addEventProcessor)i.addEventProcessor(s);else{let e=(0,D.KU)();e&&e.addEventProcessor&&e.addEventProcessor(s)}(n=i)&&n.on&&(i.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let 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))&&sm(e,sw({category:"replay.hydrate-error"}))}(e,t)}),i.on("afterSendEvent",sQ(e)),i.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),i.on("startTransaction",t=>{e.lastTransaction=t}),i.on("finishTransaction",t=>{e.lastTransaction=t}),i.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&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)}let r=[];
17return["navigation","paint","resource"].forEach(e=>{r.push(nY(e,n))}),r.push(nJ(({metric:t})=>{e.replayPerformanceEntries.push(function(e){let t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,s=sC(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:s,end:s,data:{value:i,size:i,nodeId:r?sd.mirror.getId(r):void 0}}}(t))})),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{rK.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rK.removeEventListener("blur",this._handleWindowBlur),rK.removeEventListener("focus",this._handleWindowFocus),rK.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rK.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=sw({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=sw({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||s,c=1===a.length;if(!l&&c)return null;let u=(0,ek.Hd)(o,{maxStringLength:200})||"<unknown>",h=sI(o,u);return sw({category:"ui.keyDown",message:u,data:{...h.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:s,key:a}})}(t);n&&sm(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(sB(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(this.checkAndHandleExpiredSession())e&&this._createCustomBreadcrumb(e)}}_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:iH.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(sk).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(sJ(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
17_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)){if((await al(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await ap({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});let e=(0,D.KU)();e&&e.recordDroppedEvent("send_error","replay")}}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){n/1e3,r,this._options._experiments.traceInternals,r&&this._debouncedFlush();return}let s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&sO("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&sj(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=sw({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ag(e,t,n,r){let i=[...e,..."string"==typeof r?r.split(","):[],...t];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),(0,F.pq)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}let ay='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',av=["content-length","content-type","accept"],a_=!1;class ab{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:o={},sessionSampleRate:l,errorSampleRate:c,maskAllText:u=!0,maskAllInputs:h=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:w=[],maskAttributes:E=["title","placeholder"],unmask:I=[],block:T=[],unblock:k=[],ignore:C=[],maskFn:O,beforeAddRecordingEvent:R,beforeErrorSampling:x,blockClass:A,blockSelector:M,maskInputOptions:D,maskTextClass:P,maskTextSelector:N,ignoreClass:L}={}){this.name=ab.id;let F=function({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:s,blockSelector:a,maskTextClass:o,maskTextSelector:l,ignoreClass:c}){let u={maskTextSelector:ag(e,[".sentry-mask","[data-sentry-mask]"],o,l),unmaskTextSelector:ag(t,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:ag(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],s,a),unblockSelector:ag(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ag(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return s instanceof RegExp&&(u.blockClass=s),o instanceof RegExp&&(u.maskTextClass=o),u}({mask:w,unmask:I,block:T,unblock:k,ignore:C,blockClass:A,blockSelector:M,maskTextClass:P,maskTextSelector:N,ignoreClass:L});if(this._recordingOptions={maskAllInputs:h,maskAllText:u,maskInputOptions:{...D||{},password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:E,maskAllText:u,privacyOptions:F,key:e,value:t,el:n}),...F,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,3
176e5),stickySession:i,sessionSampleRate:l,errorSampleRate:c,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:h,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:aS(b),networkResponseHeaders:aS(S),beforeAddRecordingEvent:R,beforeErrorSampling:x,_experiments:o},"number"==typeof l&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
18This option is deprecated and will be removed soon.
19Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
20Sentry.init({ replaysSessionSampleRate: ${l} })`),this._initialOptions.sessionSampleRate=l),"number"==typeof c&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
21This option is deprecated and will be removed soon.
22Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
23Sentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${ay}`:ay),this._isInitialized&&rW())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return a_}set _isInitialized(e){a_=e}setupOnce(){rW()&&(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(){let e=function(e){let t=(0,D.KU)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,N.Ce)(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,F.pq)(()=>{console.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)):(0,F.pq)(()=>{console.warn("SDK client is not available.")}),r}(this._initialOptions);this._replay=new am({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let e=(0,D.KU)().getIntegrationByName("ReplayCanvas");if(!e)return;this._replay._canvas=e.getOptions()}catch(e){}}}function aS(e){return[...av,...e.map(e=>e.toLowerCase())]}ab.__initStatic();var aw=window;aw.__sentryRewritesTunnelPath__="/monitoring",aw.SENTRY_RELEASE={id:"v1.2.0"},aw.__sentryBasePath=void 0,aw.__rewriteFramesAssetPrefixPath__="/_cms",!function(e){let t={environment:function(e){let t=e?t7.env.NEXT_PUBLIC_VERCEL_ENV:t7.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=[...t9,(e=>{let t=r$.__rewriteFramesAssetPrefixPath__||"";return rU({iteratee:e=>{try{let{origin:n}=new URL(e.filename);e.filename=rP([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})})()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&P(e)&&t.push(rD()),t}(e),...e};(function(e){let{integrations:t}=e;t&&(Array.isArray(t)?e.integrations=rH(t):e.integrations=e=>rH(t(e)))})(t),function(e){let t=rB.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=tk(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],s=r[2],a=`${t}?o=${i}&p=${n.projectId}`;s&&(a+=`&r=${s}`),e.tunnel=a}}}(t),M(t,"nextjs",["nextjs","react"]);let n={...t};M(n,"react"),function(e={}){var t;void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...t9]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),eu.SENTRY_RELEASE&&eu.SENTRY_RELEASE.id&&(e.release=eu.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let n={...e,stackParser:(0,ef.vk)(e.stackParser||t0),integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;
23t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,L.k9)(n(t)):t),i=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(r,e=>"Debug"===e.name);if(-1!==i){let[e]=r.splice(i,1);r.push(e)}return r}(e),transport:e.transport||(e5()?t4:t8)};!0===n.debug&&(j.T?F.vF.enable():(0,F.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,D.o5)().update(n.initialScope);let r=new tz(n);(function(e){let t=(0,$.BF)().getStackTop();t.client=e,t.scope.setClient(e)})(r),(t=r).init?t.init():t.setupIntegrations&&t.setupIntegrations(),e.autoSessionTracking&&void 0!==eu.document&&((0,D.J0)({ignoreDuration:!0}),(0,D.J5)(),tn(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,D.J0)({ignoreDuration:!0}),(0,D.J5)())}))}(n);let r=(0,D.o5)();r.setTag("runtime","browser");let i=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;i.id="NextClient404Filter",r.addEventProcessor(i)}({dsn:"https://4a878907b5e0e429b1604ce7cdf7f287@o4506904369037312.ingest.us.sentry.io/4506904449253376",environment:"prod",sampleRate:.1,tracesSampleRate:.1,debug:!1,replaysSessionSampleRate:.01,replaysOnErrorSampleRate:1,integrations:[new ab({maskAllText:!0,blockAllMedia:!0})]})},4123:(e,t,n)=>{"use strict";n.d(t,{_:()=>i,q:()=>s});let r="business",i="".concat("/_cms","/route-manifest.json");var s=function(e){return e.ABOUT_US="/about-us",e.CAREERS="/careers",e.CONTACT="/contact",e.DISCLOSURE_CA="/disclosure/ca",e.FOR_PET_PARENTS="/for-pet-parents",e.GET_STARTED="/get-started",e.HOME="/",e.INSURANCE_PRODUCT="/pet-insurance",e.PRIVACY_POLICY="/privacy_policy",e.PRODUCT_UNAVAILABLE="/product/unavailable",e.REVIEWS="/reviews",e.TERMS="/terms",e.VETALK="/vetalk",e.WELLNESS_PRODUCT="/pet-wellness",e.WORK_WITH_US="/work-with-us",e.BLOG_D2C="/blog",e.BLOG_D2C_TAG="/blog/tag",e.BLOG_D2C_AUTHOR="/blog/author",e[e.BLOG_B2B="/".concat(r,"/blog")]="BLOG_B2B",e[e.BLOG_B2B_TAG="".concat(e.BLOG_B2B,"/tag")]="BLOG_B2B_TAG",e[e.BLOG_B2B_AUTHOR="".concat(e.BLOG_B2B,"/author")]="BLOG_B2B_AUTHOR",e[e.B2B_BROKERS="/".concat(r,"/brokers")]="B2B_BROKERS",e[e.B2B_CONTACT="/".concat(r,"/contact")]="B2B_CONTACT",e[e.B2B_FAQ="/".concat(r,"/faq")]="B2B_FAQ",e[e.B2B_HOME="/".concat(r)]="B2B_HOME",e[e.B2B_HR="/".concat(r,"/hr")]="B2B_HR",e.DOWNLOAD_APP_APPLE="https://apps.apple.com/us/app/wagmo/id1556734051",e.DOWNLOAD_APP_GOOGLE="https://play.google.com/store/apps/details?id=io.wagmo.wagmo_mobile",e.SOCIAL_FACEBOOK="https://www.facebook.com/meetwagmo",e.SOCIAL_INSTAGRAM="https://www.instagram.com/meetwagmo",e.SOCIAL_TWITTER="https://twitter.com/meetwagmo",e.SUPPORT_HUB="https://help.wagmo.io/hc/en-us",e.DASHBOARD="/dashboard",e.DASHBOARD_CLAIMS="/dashboard/claims",e.DASHBOARD_PETS="/dashboard/pets",e.DASHBOARD_PROFILE="/dashboard/profile",e.DASHBOARD_REFER="/dashboard/refer",e.QUIZ_ONBOARD="/onboard",e.QUIZ_ONBOARD_CHECKOUT="/onboard/checkout",e.QUIZ_PROMO="/promo",e.QUIZ_PROMO_CHECKOUT="/promo/checkout",e.QUIZ_START="/start",e.QUIZ_START_CHECKOUT="/start/checkout",e.NEW_REGISTRATION_ENROLL="/benefits/enroll",e.SSO_LOGIN="/app/sso/login",e}({})},4213:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{Z:()=>r,e:()=>i})},4260:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Ay=void 0;var i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=a?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}(n(1672));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}i.GA4,t.Ay=i.default},4500:(e,t,n)=>{"use strict";n.d(t,{Vc:()=>l,tf:()=>a,vv:()=>c});var r=n(1595),i=n(5282),s=n(9703);let a="/api/1.0",o=e=>t=>async function(){let n,{body:a,searchParams:o,isFormData:l=!1,headers:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=null;try{let e=(0,i.xI)();u=e.currentUser?await e.currentUser.getIdToken():null}catch(e){}let h=new URL("/"==t.charAt(0)?window.location.protocol+window.location.host+t:t);
23o&&Object.keys(o).forEach(e=>h.searchParams.append((0,s.decamelize)(e),o[e]));try{let i={method:e,headers:new Headers({...l?{}:{"Content-Type":"application/json"},...u?{Authorization:"Token ".concat(u)}:{},...c}),...a?{body:l?a:JSON.stringify(a)}:{}};if((n=await fetch(h.toString(),i)).ok||n.status,!n.ok&&n.status<500&&r.r({level:"info",breadcrumbs:[{data:{response:n}}]}),!n.ok&&n.status>=500){let r=Error("Failed ".concat(e,": ").concat(t));throw r.status=n.status,r.response=n,r}}catch(e){r.Cp(e)}return n},l=o("GET");o("PUT");let c=o("POST");o("PATCH"),o("DELETE")},4504:(e,t,n)=>{"use strict";n.d(t,{De:()=>u,hF:()=>a,yD:()=>c});var r=n(1004),i=n(6713),s=n(8706);let a="baggage",o="sentry-",l=/^sentry-/;function c(e){if(!(0,i.Kg)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=h(t);for(let t of Object.keys(n))e[t]=n[t];return e},{});else{if(!e)return;t=h(e)}let n=Object.entries(t).reduce((e,[t,n])=>(t.match(l)&&(e[t.slice(o.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function u(e){if(e){var t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===i?a:`${e},${a}`;return o.length>8192?(r.T&&s.vF.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},""):void 0}}function h(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}},4650:(e,t,n)=>{"use strict";n.d(t,{II:()=>u,v_:()=>o,wm:()=>c});var r=n(1860),i=n(7555),s=n(5154);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(null!=e?e:"online")!=="online"||i.t.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof l}function u(e){let t,n,c,u=!1,h=0,d=!1,p=new Promise((e,t)=>{n=e,c=t}),f=()=>!r.m.isFocused()||"always"!==e.networkMode&&!i.t.isOnline(),m=r=>{d||(d=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},g=n=>{d||(d=!0,null==e.onError||e.onError(n),null==t||t(),c(n))},y=()=>new Promise(n=>{t=e=>{let t=d||!f();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,d||null==e.onContinue||e.onContinue()}),v=()=>{let t;if(!d){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{var n,r;if(d)return;let i=null!=(n=e.retry)?n:3,o=null!=(r=e.retryDelay)?r:a,l="function"==typeof o?o(h,t):o,c=!0===i||"number"==typeof i&&h<i||"function"==typeof i&&i(h,t);if(u||!c)return void g(t);h++,null==e.onFail||e.onFail(h,t),(0,s.yy)(l).then(()=>{if(f())return y()}).then(()=>{u?g(t):v()})})}};return o(e.networkMode)?v():y().then(v),{promise:p,cancel:t=>{d||(g(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},4678:(e,t,n)=>{"use strict";n.d(t,{T2:()=>o,XW:()=>s,xg:()=>a});var r,i=n(6713);function s(e){return new o(t=>{t(e)})}function a(e){return new o((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class o{constructor(e){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.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 o((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 o((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i)return void 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)=>{if(this._state===r.PENDING){if((0,i.Qg)(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>
23{if(this._state===r.PENDING)return;let 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)})}}}},5154:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>m,F$:()=>p,G6:()=>E,GR:()=>c,MK:()=>h,Od:()=>f,S$:()=>r,Zw:()=>s,b_:()=>u,f8:()=>y,gn:()=>a,j3:()=>o,jY:()=>I,lQ:()=>i,nJ:()=>d,pl:()=>T,vh:()=>l,yy:()=>w});let r="undefined"==typeof window||"Deno"in window;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return S(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function c(e,t,n){return S(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function u(e,t,n){return S(e)?[{...t,queryKey:e},n]:[e||{},t]}function h(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(S(a))if(r){if(t.queryHash!==p(a,t.options))return!1}else{var l;if(l=t.queryKey,!g(l,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(void 0===i||i===t.state.fetchStatus)&&(!s||!!s(t))}function d(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(S(s)){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(s))return!1}else{var a;if(a=t.options.mutationKey,!g(a,s))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>_(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function m(e,t){return g(e,t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!g(e[n],t[n]))}function y(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!b(n)&&!!n.hasOwnProperty("isPrototypeOf")}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return Array.isArray(e)}function w(e){return new Promise(t=>{setTimeout(t,e)})}function E(e){w(0).then(e)}function I(){if("function"==typeof AbortController)return new AbortController}function T(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let i=v(t)&&v(n);if(i||_(t)&&_(n)){let s=i?t.length:Object.keys(t).length,a=i?n:Object.keys(n),o=a.length,l=i?[]:{},c=0;for(let s=0;s<o;s++){let o=i?s:a[s];l[o]=e(t[o],n[o],r+1),l[o]===t[o]&&c++}return s===o&&c===s?t:l}return n}(e,t):t}},5282:(e,t,n)=>{"use strict";n.d(t,{sk:()=>eB,HF:()=>eH,LD:()=>e$,xI:()=>t8,x9:()=>e2,df:()=>tw});var r=n(9207),i=n(3093);function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,n(6525)),o=n(8308);function l(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}let c=new r.FA("auth","Firebase",l()),u=new a.Vy("@firebase/auth");function h(e,...t){u.logLevel<=a.$b.ERROR&&u.error(`Auth (${i.MF}): ${e}`,...t)}function d(e,...t){throw m(e,...t)}function p(e,...t){return m(e,...t)}function f(e,t,n){let i=Object.assign(Object.assign({},l()),{[t]:n});
23return new r.FA("auth","Firebase",i).create(t,{appName:e.name})}function m(e,...t){if("string"!=typeof e){let n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return c.create(e,...t)}function g(e,t,...n){if(!e)throw m(t,...n)}function y(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}function v(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.href)||""}function _(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.protocol)||null}class b{constructor(e,t){var n;this.shortDelay=e,this.longDelay=t,n="Short delay should be less than long delay!",t>e||y(n),this.isMobile=(0,r.jZ)()||(0,r.lV)()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===_()||"https:"===_()||(0,r.sr)()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function S(e,t){var n,r;n=e.emulator,r="Emulator should always be set here",n||y(r);let{url:i}=e.emulator;return t?`${i}${t.startsWith("/")?t.slice(1):t}`:i}class w{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void y("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void y("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void y("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}let E={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},I=new b(3e4,6e4);function T(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function k(e,t,n,i,s={}){return C(e,s,async()=>{let s={},a={};i&&("GET"===t?a=i:s={body:JSON.stringify(i)});let o=(0,r.Am)(Object.assign({key:e.config.apiKey},a)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),w.fetch()(R(e,e.config.apiHost,n,o),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},s))})}
23async function C(e,t,n){e._canInitEmulator=!1;let i=Object.assign(Object.assign({},E),t);try{let t=new x(e),r=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let s=await r.json();if("needConfirmation"in s)throw A(e,"account-exists-with-different-credential",s);if(r.ok&&!("errorMessage"in s))return s;{let[t,n]=(r.ok?s.errorMessage:s.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw A(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===t)throw A(e,"email-already-in-use",s);if("USER_DISABLED"===t)throw A(e,"user-disabled",s);let a=i[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(n)throw f(e,a,n);d(e,a)}}catch(t){if(t instanceof r.g)throw t;d(e,"network-request-failed",{message:String(t)})}}async function O(e,t,n,r,i={}){let s=await k(e,t,n,r,i);return"mfaPendingCredential"in s&&d(e,"multi-factor-auth-required",{_serverResponse:s}),s}function R(e,t,n,r){let i=`${t}${n}?${r}`;return e.config.emulator?S(e.config,i):`${e.config.apiScheme}://${i}`}class x{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(p(this.auth,"network-request-failed")),I.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function A(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=p(e,t,r);return i.customData._tokenResponse=n,i}async function M(e,t){return k(e,"POST","/v1/accounts:delete",t)}async function D(e,t){return k(e,"POST","/v1/accounts:lookup",t)}function P(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function N(e,t=!1){let n=(0,r.Ku)(e),i=await n.getIdToken(t),s=F(i);g(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");let a="object"==typeof s.firebase?s.firebase:void 0,o=null==a?void 0:a.sign_in_provider;return{claims:s,token:i,authTime:P(L(s.auth_time)),issuedAtTime:P(L(s.iat)),expirationTime:P(L(s.exp)),signInProvider:o||null,signInSecondFactor:(null==a?void 0:a.sign_in_second_factor)||null}}function L(e){return 1e3*Number(e)}function F(e){let[t,n,i]=e.split(".");if(void 0===t||void 0===n||void 0===i)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=(0,r.u)(n);if(!e)return h("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return h("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}async function j(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof r.g&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class U{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(!e)return this.errorBackoff=3e4,Math.max(0,(null!=(t=this.user.stsTokenManager.expirationTime)?t:0)-Date.now()-3e5);{let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class ${constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=P(this.lastLoginAt),this.creationTime=P(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function B(e){var t,n,r;let i=e.auth,a=await e.getIdToken(),o=await j(e,D(i,{idToken:a}));g(null==o?void 0:o.users.length,i,"internal-error");let l=o.users[0];e._notifyReloadListener(l);let c=(null==(t=l.providerUserInfo)?void 0:t.length)?l.providerUserInfo.map(e=>{var{providerId:t}=e,n=s(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}):[],u=(n=e.providerData,r=c,[...n.filter(e=>!r.some(t=>t.providerId===e.providerId)),...r]),h=e.isAnonymous,d=!(e.email&&l.passwordHash)&&!(null==u?void 0:u.length);Object.assign(e,{uid:l.localId,displayName:l.displayName||null,photoURL:l.photoUrl||null,email:l.email||null,emailVerified:l.emailVerified||!1,phoneNumber:l.phoneNumber||null,tenantId:l.tenantId||null,providerData:u,metadata:new $(l.createdAt,l.lastLoginAt),isAnonymous:!!h&&d})}async function H(e){let t=(0,r.Ku)(e);await B(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}async function q(e,t){let n=await C(e,{},async()=>{let n=(0,r.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:s}=e.config,a=R(e,i,"/v1/token",`key=${s}`),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/x-www-form-urlencoded",w.fetch()(a,{method:"POST",headers:o,body:n})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}class z{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){g(e.idToken,"internal-error"),g(void 0!==e.idToken,"internal-error"),g(void 0!==e.refreshToken,"internal-error");
23let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){let t=F(e);return g(t,"internal-error"),g(void 0!==t.exp,"internal-error"),g(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=!1){return(g(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired)?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await q(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){let{refreshToken:n,accessToken:r,expirationTime:i}=t,s=new z;return n&&(g("string"==typeof n,"internal-error",{appName:e}),s.refreshToken=n),r&&(g("string"==typeof r,"internal-error",{appName:e}),s.accessToken=r),i&&(g("number"==typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new z,this.toJSON())}_performRefresh(){return y("not implemented")}}function W(e,t){g("string"==typeof e||void 0===e,"internal-error",{appName:t})}class K{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=s(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new U(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new $(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await j(this,this.stsTokenManager.getToken(this.auth,e));return g(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return N(this,e)}reload(){return H(this)}_assign(e){this!==e&&(g(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new K(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){g(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await B(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){let e=await this.getIdToken();return await j(this,M(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,s,a,o,l,c;let u=null!=(n=t.displayName)?n:void 0,h=null!=(r=t.email)?r:void 0,d=null!=(i=t.phoneNumber)?i:void 0,p=null!=(s=t.photoURL)?s:void 0,f=null!=(a=t.tenantId)?a:void 0,m=null!=(o=t._redirectEventId)?o:void 0,y=null!=(l=t.createdAt)?l:void 0,v=null!=(c=t.lastLoginAt)?c:void 0,{uid:_,emailVerified:b,isAnonymous:S,providerData:w,stsTokenManager:E}=t;g(_&&E,e,"internal-error");let I=z.fromJSON(this.name,E);g("string"==typeof _,e,"internal-error"),W(u,e.name),W(h,e.name),g("boolean"==typeof b,e,"internal-error"),g("boolean"==typeof S,e,"internal-error"),W(d,e.name),W(p,e.name),W(f,e.name),W(m,e.name),W(y,e.name),W(v,e.name);let T=new K({uid:_,auth:e,email:h,emailVerified:b,displayName:u,isAnonymous:S,photoURL:p,phoneNumber:d,tenantId:f,stsTokenManager:I,createdAt:y,lastLoginAt:v});return w&&Array.isArray(w)&&(T.providerData=w.map(e=>Object.assign({},e))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t,n=!1){let r=new z;r.updateFromServerResponse(t);let i=new K({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await B(i),i}}let V=new Map;function G(e){var t,n;t="Expected a class definition",e instanceof Function||y(t);let r=V.get(e);return r?(n="Instance stored in cache mismatched with class",r instanceof e||y(n)):(r=new e,V.set(e,r)),r}class Q{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}function J(e,t,n){return`firebase:${e}:${t}:${n}`}Q.type="NONE";class Y{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=J(this.userKey,r.apiKey,i),this.fullPersistenceKey=J("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?K._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new Y(G(Q),e,n);let r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=r[0]||G(Q),s=J(n,e.config.apiKey,e.name),a=null;for(let n of t)try{let t=await n._get(s);if(t){let r=K._fromJSON(e,t);n!==i&&(a=r),i=n;break}}catch(e){}let o=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length&&(i=o[0],a&&await i._set(s,a.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(s)}catch(e){}}))),new Y(i,e,n)}}function X(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";{if(en(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(Z(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(ei(t))return"Blackberry";if(es(t))return"Webos";if(ee(t))return"Safari";if((t.includes("chrome/")||et(t))&&!t.includes("edge/"))return"Chrome";if(er(t))return"Android";let n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==n?void 0:n.length)===2)return n[1]}return"Other"}function Z(e=(0,r.ZQ)()){return/firefox\//i.test(e)}function ee(e=(0,r.ZQ)()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function et(e=(0,r.ZQ)()){return/crios\//i.test(e)}function en(e=(0,r.ZQ)()){return/iemobile/i.test(e)}function er(e=(0,r.ZQ)()){return/android/i.test(e)}function ei(e=(0,r.ZQ)()){return/blackberry/i.test(e)}function es(e=(0,r.ZQ)()){return/webos/i.test(e)}function ea(e=(0,r.ZQ)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function eo(e=(0,r.ZQ)()){return ea(e)||er(e)||es(e)||ei(e)||/windows phone/i.test(e)||en(e)}function el(e,t=[]){let n;switch(e){case"Browser":n=X((0,r.ZQ)());break;case"Worker":n=`${X((0,r.ZQ)())}-${e}`;break;default:n=e}let s=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${i.MF}/${s}`}async function ec(e,t){return k(e,"GET","/v2/recaptchaConfig",T(e,t))}function eu(e){return void 0!==e&&void 0!==e.enterprise}class eh{constructor(e){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.emailPasswordEnabled=e.recaptchaEnforcementState.some(e=>"EMAIL_PASSWORD_PROVIDER"===e.provider&&"OFF"!==e.enforcementState)}}function ed(e){return new Promise((t,n)=>{var r,i;let s=document.createElement("script");s.setAttribute("src",e),s.onload=t,s.onerror=e=>{let t=p("internal-error");t.customData=e,n(t)},s.type="text/javascript",s.charset="UTF-8",(null!=(i=null==(r=document.getElementsByTagName("head"))?void 0:r[0])?i:document).appendChild(s)})}function ep(e){return`__${e}${Math.floor(1e6*Math.random())}`}class ef{constructor(e){this.type="recaptcha-enterprise",this.auth=ev
23(e)}async verify(e="verify",t=!1){async function n(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>{ec(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0===r.recaptchaKey)n(Error("recaptcha Enterprise site key undefined"));else{let n=new eh(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}}).catch(e=>{n(e)})})}function r(t,n,r){let i=window.grecaptcha;eu(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n("NO_RECAPTCHA")})}):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&eu(window.grecaptcha))r(n,e,i);else{if("undefined"==typeof window)return void i(Error("RecaptchaVerifier is only supported in browser"));ed("https://www.google.com/recaptcha/enterprise.js?render="+n).then(()=>{r(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function em(e,t,n,r=!1){let i,s=new ef(e);try{i=await s.verify(n)}catch(e){i=await s.verify(n,!0)}let a=Object.assign({},t);return r?Object.assign(a,{captchaResp:i}):Object.assign(a,{captchaResponse:i}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}class eg{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=t=>new Promise((n,r)=>{try{let r=e(t);n(r)}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}class ey{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new e_(this),this.idTokenSubscription=new e_(this),this.beforeStateQueue=new eg(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=c,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=G(t)),this._initializationPromise=this.queue(async()=>{var n,r;if(!this._deleted){if(this.persistenceManager=await Y.create(this,e),!this._deleted){if(null==(n=this._popupRedirectResolver)?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null==(r=this.currentUser)?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var t;let n=await this.assertedPersistence.getCurrentUser(),r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let n=null==(t=this.redirectUser)?void 0:t._redirectEventId,s=null==r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);(!n||n===s)&&(null==a?void 0:a.user)&&(r=a.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return(g(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId)?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await B(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}
23async updateCurrentUser(e){let t=e?(0,r.Ku)(e):null;return t&&g(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&g(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(G(e))})}async initializeRecaptchaConfig(){let e=new eh(await ec(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}));null==this.tenantId?this._agentRecaptchaConfig=e:this._tenantRecaptchaConfigs[this.tenantId]=e,e.emailPasswordEnabled&&new ef(this).verify()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new r.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null==(e=this._currentUser)?void 0:e.toJSON()}}async _setRedirectUser(e,t){let n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&G(e)||this._popupRedirectResolver;g(t,this,"argument-error"),this.redirectPersistenceManager=await Y.create(this,[G(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return(this._isInitialized&&await this.queue(async()=>{}),(null==(t=this._currentUser)?void 0:t._redirectEventId)===e)?this._currentUser:(null==(n=this.redirectUser)?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let n=null!=(t=null==(e=this.currentUser)?void 0:e.uid)?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),s=this._isInitialized?Promise.resolve():this._initializationPromise;return(g(s,this,"internal-error"),s.then(()=>i(this.currentUser)),"function"==typeof t)?e.addObserver(t,n,r):e.addObserver(t)}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return g(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=el(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let n=await (null==(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);let r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;let t=await (null==(e=this.appCheckServiceProvider.getImmediate({optional:!0}))?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){u.logLevel<=a.$b.WARN&&u.warn(`Auth (${i.MF}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function ev(e){return(0,r.Ku)(e)}class e_{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,r.tD)(e=>this.observer=e)}get next(){return g(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function eb(e){let t=e.indexOf(":");
23return t<0?"":e.substr(0,t+1)}function eS(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}class ew{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return y("not implemented")}_getIdTokenResponse(e){return y("not implemented")}_linkToIdToken(e,t){return y("not implemented")}_getReauthenticationResolver(e){return y("not implemented")}}async function eE(e,t){return k(e,"POST","/v1/accounts:update",t)}async function eI(e,t){return O(e,"POST","/v1/accounts:signInWithPassword",T(e,t))}async function eT(e,t){return O(e,"POST","/v1/accounts:signInWithEmailLink",T(e,t))}async function ek(e,t){return O(e,"POST","/v1/accounts:signInWithEmailLink",T(e,t))}class eC extends ew{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new eC(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new eC(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);else if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){var t;switch(this.signInMethod){case"password":let n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(null==(t=e._getRecaptchaConfig())||!t.emailPasswordEnabled)return eI(e,n).catch(async t=>{if("auth/missing-recaptcha-token"!==t.code)return Promise.reject(t);{console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");let t=await em(e,n,"signInWithPassword");return eI(e,t)}});{let t=await em(e,n,"signInWithPassword");return eI(e,t)}case"emailLink":return eT(e,{email:this._email,oobCode:this._password});default:d(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return eE(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return ek(e,{idToken:t,email:this._email,oobCode:this._password});default:d(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function eO(e,t){return O(e,"POST","/v1/accounts:signInWithIdp",T(e,t))}class eR extends ew{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new eR(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):d("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
23once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=s(t,["providerId","signInMethod"]);if(!n||!r)return null;let a=new eR(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){return eO(e,this.buildRequest())}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,eO(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,eO(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,r.Am)(t)}return e}}async function ex(e,t){return k(e,"POST","/v1/accounts:sendVerificationCode",T(e,t))}async function eA(e,t){return O(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,t))}async function eM(e,t){let n=await O(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,t));if(n.temporaryProof)throw A(e,"account-exists-with-different-credential",n);return n}let eD={USER_NOT_FOUND:"user-not-found"};async function eP(e,t){return O(e,"POST","/v1/accounts:signInWithPhoneNumber",T(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),eD)}class eN extends ew{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eN({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eN({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return eA(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return eM(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eP(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));let{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new eN({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class eL{constructor(e){var t,n,i,s,a,o;let l=(0,r.I9)((0,r.hp)(e)),c=null!=(t=l.apiKey)?t:null,u=null!=(n=l.oobCode)?n:null,h=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!=(i=l.mode)?i:null);g(c&&u&&h,"argument-error"),this.apiKey=c,this.operation=h,this.code=u,this.continueUrl=null!=(s=l.continueUrl)?s:null,this.languageCode=null!=(a=l.languageCode)?a:null,this.tenantId=null!=(o=l.tenantId)?o:null}static parseLink(e){let t=function(e){let t=(0,r.I9)((0,r.hp)(e)).link,n=t?(0,r.I9)((0,r.hp)(t)).deep_link_id:null,i=(0,r.I9)((0,r.hp)(e)).deep_link_id;return(i?(0,r.I9)((0,r.hp)(i)).link:null)||i||n||t||e}(e);try{return new eL(t)}catch(e){return null}}}class eF{constructor(){this.providerId=eF.PROVIDER_ID}static credential(e,t){return eC._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let n=eL.parseLink(t);return g(n,"argument-error"),eC._fromEmailAndCode(e,n.code,n.tenantId)}}eF.PROVIDER_ID="password",eF.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eF.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class ej{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class eU extends ej{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class e$ extends eU{static credentialFromJSON(e){let t="string"==typeof e?JSON.parse(e):e;return g("providerId"in t&&"signInMethod"in t,"argument-error"),eR._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return g(e.idToken||e.accessToken,"argument-error"),eR._fromParams(Object.assign(Object.assign({}
23,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return e$.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return e$.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:s,providerId:a}=e;if(!n&&!r&&!t&&!i||!a)return null;try{return new e$(a)._credential({idToken:t,accessToken:n,nonce:s,pendingToken:i})}catch(e){return null}}}class eB extends eU{constructor(){super("facebook.com")}static credential(e){return eR._fromParams({providerId:eB.PROVIDER_ID,signInMethod:eB.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eB.credentialFromTaggedObject(e)}static credentialFromError(e){return eB.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eB.credential(e.oauthAccessToken)}catch(e){return null}}}eB.FACEBOOK_SIGN_IN_METHOD="facebook.com",eB.PROVIDER_ID="facebook.com";class eH extends eU{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return eR._fromParams({providerId:eH.PROVIDER_ID,signInMethod:eH.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return eH.credentialFromTaggedObject(e)}static credentialFromError(e){return eH.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return eH.credential(t,n)}catch(e){return null}}}eH.GOOGLE_SIGN_IN_METHOD="google.com",eH.PROVIDER_ID="google.com";class eq extends eU{constructor(){super("github.com")}static credential(e){return eR._fromParams({providerId:eq.PROVIDER_ID,signInMethod:eq.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return eq.credentialFromTaggedObject(e)}static credentialFromError(e){return eq.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return eq.credential(e.oauthAccessToken)}catch(e){return null}}}eq.GITHUB_SIGN_IN_METHOD="github.com",eq.PROVIDER_ID="github.com";class ez extends eU{constructor(){super("twitter.com")}static credential(e,t){return eR._fromParams({providerId:ez.PROVIDER_ID,signInMethod:ez.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return ez.credentialFromTaggedObject(e)}static credentialFromError(e){return ez.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return ez.credential(t,n)}catch(e){return null}}}ez.TWITTER_SIGN_IN_METHOD="twitter.com",ez.PROVIDER_ID="twitter.com";class eW{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){return new eW({user:await K._fromIdTokenResponse(e,n,r),providerId:eK(n),_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){return await e._updateTokensIfNecessary(n,!0),new eW({user:e,providerId:eK(n),_tokenResponse:n,operationType:t})}}function eK(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class eV extends r.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,eV.prototype),this.customData={appName:e.name,tenantId:null!=(i=e.tenantId)?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new eV(e,t,n,r)}}function eG(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw eV._fromErrorAndOperation(e,n,t,r);throw n})}async function eQ(e,t,n=!1){let r=await j(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return eW._forOperation(e,"link",r)}async function eJ(e,t,n=!1){let{auth:r}=e,i="reauthenticate";try{let s=await j(e,eG(r,i,t,e),n);g(s.idToken,r,"internal-error");let a=F(s.idToken);g(a,r,"internal-error");let{sub:o}=a;return g(e.uid===o,r,"user-mismatch"),eW._forOperation(e,i,s)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&d(r,"user-mismatch"),e}}async function eY(e,t,n=!1){let r="signIn",i=await eG(e,r,t),s=await eW._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(s.user),s}async function eX(e,t){return eY(ev(e),t)}class eZ{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?e0._fromServerResponse(e,t):"totpInfo"in t?e1._fromServerResponse(e,t):d(e,"internal-error")}}class e0 extends eZ{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new e0(t)}}class e1 extends eZ{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new e1(t)}}function e2(e,t,n){return eX((0,r.Ku)(e),eF.credential(t,n))}new WeakMap;let e3="__sak";class e5{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(e3,"1"),this.storage.removeItem(e3),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class e6 extends e5{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){let e=(0,r.ZQ)();return ee(e)||ea(e)}()&&function(){try{return!!(window&&window!==window.top)}catch(e){return!1}}(),this.fallbackToPolling=eo(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}
23onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});let n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){let r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}let i=()=>{let e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},s=this.storage.getItem(n);(0,r.lT)()&&10===document.documentMode&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,10):i()}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}e6.type="LOCAL";class e4 extends e5{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}e4.type="SESSION";class e8{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let n=new e8(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:n,data:r}=e.data,i=this.handlersMap[n];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:n});let s=Array.from(i).map(async t=>t(e.origin,r)),a=await Promise.all(s.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:n,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function e9(e="",t=10){let n="";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}e8.receivers=[];class e7{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){let r,i,s="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!s)throw Error("connection_unavailable");return new Promise((a,o)=>{let l=e9("",20);s.port1.start();let c=setTimeout(()=>{o(Error("unsupported_event"))},n);i={messageChannel:s,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(c),r=setTimeout(()=>{o(Error("timeout"))},3e3);break;case"done":clearTimeout(r),a(e.data.response);break;default:clearTimeout(c),clearTimeout(r),o(Error("invalid_response"))}}},this.handlers.add(i),s.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[s.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function te(){return window}
23function tt(){return void 0!==te().WorkerGlobalScope&&"function"==typeof te().importScripts}async function tn(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}let tr="firebaseLocalStorageDb",ti="firebaseLocalStorage",ts="fbase_key";class ta{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function to(e,t){return e.transaction([ti],t?"readwrite":"readonly").objectStore(ti)}function tl(){let e=indexedDB.open(tr,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(ti,{keyPath:ts})}catch(e){n(e)}}),e.addEventListener("success",async()=>{let n=e.result;n.objectStoreNames.contains(ti)?t(n):(n.close(),await new ta(indexedDB.deleteDatabase(tr)).toPromise(),t(await tl()))})})}async function tc(e,t,n){return new ta(to(e,!0).put({[ts]:t,value:n})).toPromise()}async function tu(e,t){let n=to(e,!1).get(t),r=await new ta(n).toPromise();return void 0===r?null:r.value}function th(e,t){return new ta(to(e,!0).delete(t)).toPromise()}class td{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await tl()),this.db}async _withRetries(e){let t=0;for(;;)try{let t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return tt()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=e8._getInstance(tt()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await tn(),!this.activeServiceWorker)return;this.sender=new e7(this.activeServiceWorker);let n=await this.sender._send("ping",{},800);n&&(null==(e=n[0])?void 0:e.fulfilled)&&(null==(t=n[0])?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null==(t=null==navigator?void 0:navigator.serviceWorker)?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await tl();return await tc(e,e3,"1"),await th(e,e3),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>tc(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>tu(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>th(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new ta(to(e,!1).getAll()).toPromise());if(!e||0!==this.pendingWrites)return[];let t=[],n=new Set;for(let{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(let e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}async function tp(e,t,n){var r,i,s;let a=await n.verify();try{let o;if(g("string"==typeof a,e,"argument-error"),g("recaptcha"===n.type,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}
23:t,"session"in o){let t=o.session;if("phoneNumber"in o)return g("enroll"===t.type,e,"internal-error"),(await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:a}},k(e,"POST","/v2/accounts/mfaEnrollment:start",T(e,i)))).phoneSessionInfo.sessionInfo;{g("signin"===t.type,e,"internal-error");let n=(null==(r=o.multiFactorHint)?void 0:r.uid)||o.multiFactorUid;return g(n,e,"missing-multi-factor-info"),(await (s={mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:a}},k(e,"POST","/v2/accounts/mfaSignIn:start",T(e,s)))).phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await ex(e,{phoneNumber:o.phoneNumber,recaptchaToken:a});return t}}finally{n._reset()}}td.type="LOCAL",ep("rcb"),new b(3e4,6e4);class tf{constructor(e){this.providerId=tf.PROVIDER_ID,this.auth=ev(e)}verifyPhoneNumber(e,t){return tp(this.auth,e,(0,r.Ku)(t))}static credential(e,t){return eN._fromVerification(e,t)}static credentialFromResult(e){return tf.credentialFromTaggedObject(e)}static credentialFromError(e){return tf.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:n}=e;return t&&n?eN._fromTokenResponse(t,n):null}}function tm(e,t){return t?G(t):(g(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}tf.PROVIDER_ID="phone",tf.PHONE_SIGN_IN_METHOD="phone";class tg extends ew{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return eO(e,this._buildIdpRequest())}_linkToIdToken(e,t){return eO(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return eO(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function ty(e){return eY(e.auth,new tg(e),e.bypassAuthState)}function tv(e){let{auth:t,user:n}=e;return g(n,t,"internal-error"),eJ(n,new tg(e),e.bypassAuthState)}async function t_(e){let{auth:t,user:n}=e;return g(n,t,"internal-error"),eQ(n,new tg(e),e.bypassAuthState)}class tb{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:s,type:a}=e;if(s)return void this.reject(s);let o={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return ty;case"linkViaPopup":case"linkViaRedirect":return t_;case"reauthViaPopup":case"reauthViaRedirect":return tv;default:d(this.auth,"internal-error")}}resolve(e){var t,n;t=this.pendingPromise,n="Pending promise was never set",t||y(n),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){var t,n;t=this.pendingPromise,n="Pending promise was never set",t||y(n),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}let tS=new b(2e3,1e4);async function tw(e,t,n){let r=ev(e);if(!(t instanceof ej))throw ej.name!==t.constructor.name&&d(e,"argument-error"),f(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`);let i=tm(r,n);return new tE(r,"signInViaPopup",t,i).executeNotNull()}class tE extends tb{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,tE.currentPopupAction&&tE.currentPopupAction.cancel(),tE.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return g(e,this.auth,"internal-error"),e}async onExecution(){var e,t;e=1===this.filter.length,t="Popup operations only handle one event",e||y(t);let n=e9();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],n),this.authWindow.associatedEvent=n,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(p(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null==(e=this.authWindow)?void 0:e.associatedEvent)||null}cancel(){this.reject(p(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,t
23E.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,n;if(null==(n=null==(t=this.authWindow)?void 0:t.window)?void 0:n.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,tS.get())};e()}}tE.currentPopupAction=null;let tI=new Map;class tT extends tb{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=tI.get(this.auth._key());if(!e){try{let t=await tk(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}tI.set(this.auth._key(),e)}return this.bypassAuthState||tI.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"===e.type)return void this.resolve(null);if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function tk(e,t){var n;let r=J("pendingRedirect",(n=t).config.apiKey,n.name),i=G(e._redirectPersistence);if(!await i._isAvailable())return!1;let s=await i._get(r)==="true";return await i._remove(r),s}function tC(e,t){tI.set(e._key(),t)}async function tO(e,t,n=!1){let r=ev(e),i=tm(r,t),s=new tT(r,i,n),a=await s.execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,t)),a}class tR{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return tA(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!tA(e)){let r=(null==(n=e.error.code)?void 0:n.split("auth/")[1])||"internal-error";t.onError(p(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(tx(e))}saveEventToCache(e){this.cachedEventUids.add(tx(e)),this.lastProcessedEventTime=Date.now()}}function tx(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function tA({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}async function tM(e,t={}){return k(e,"GET","/v1/projects",t)}let tD=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,tP=/^https?/;async function tN(e){if(e.config.emulator)return;let{authorizedDomains:t}=await tM(e);for(let e of t)try{if(function(e){let t=v(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!tP.test(n))return!1;if(tD.test(e))return r===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}(e))return}catch(e){}d(e,"unauthorized-domain")}let tL=new b(3e4,6e4);function tF(){let e=te().___jsl;if(null==e?void 0:e.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}let tj=null,tU=new b(5e3,15e3),t$={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},tB=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function tH(e){let t=await (tj=tj||new Promise((t,n)=>{var r,i,s;function a(){tF(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{tF(),n(p(e,"network-request-failed"))},timeout:tL.get()})}if(null==(i=null==(r=te().gapi)?void 0:r.iframes)?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null==(s=te().gapi)?void 0:s.load)a();else{let t=ep("iframefcb");return te()[t]=()=>{gapi.load?a():n(p(e,"network-request-failed"))},ed(`https://apis.google.com/js/api.js?onload=${t}`).catch(e=>n(e))}}).catch(e=>{throw tj=null,e})),n=te().gapi;return g(n,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;g(t.authDomain,e,"auth-domain-config-required");let n=t.emulator?S(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
23/__/auth/iframe`,s={apiKey:t.apiKey,appName:e.name,v:i.MF},a=tB.get(e.config.apiHost);a&&(s.eid=a);let o=e._getFrameworks();return o.length&&(s.fw=o.join(",")),`${n}?${(0,r.Am)(s).slice(1)}`}(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:t$,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});let i=p(e,"network-request-failed"),s=te().setTimeout(()=>{r(i)},tU.get());function a(){te().clearTimeout(s),n(t)}t.ping(a).then(a,()=>{r(i)})}))}let tq={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class tz{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let tW=encodeURIComponent("fac");async function tK(e,t,n,s,a,o){g(e.config.authDomain,e,"auth-domain-config-required"),g(e.config.apiKey,e,"invalid-api-key");let l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:s,v:i.MF,eventId:a};if(t instanceof ej)for(let[n,i]of(t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,r.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(o||{})))l[n]=i;if(t instanceof eU){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(l.scopes=e.join(","))}for(let t of(e.tenantId&&(l.tid=e.tenantId),Object.keys(l)))void 0===l[t]&&delete l[t];let c=await e._getAppCheckToken(),u=c?`#${tW}=${encodeURIComponent(c)}`:"";return`${function({config:e}){return e.emulator?S(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,r.Am)(l).slice(1)}${u}`}let tV="webStorageSupport";class tG{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=e4,this._completeRedirectFn=tO,this._overrideRedirectResult=tC}async _openPopup(e,t,n,i){var s,a,o;a=null==(s=this.eventManagers[e._key()])?void 0:s.manager,o="_initialize() not called before _openPopup()",a||y(o);let l=await tK(e,t,n,v(),i);return function(e,t,n,i=500,s=600){let a=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-i)/2,0).toString(),l="",c=Object.assign(Object.assign({},tq),{width:i.toString(),height:s.toString(),top:a,left:o}),u=(0,r.ZQ)().toLowerCase();n&&(l=et(u)?"_blank":n),Z(u)&&(t=t||"http://localhost",c.scrollbars="yes");let h=Object.entries(c).reduce((e,[t,n])=>`${e}${t}=${n},`,"");if(function(e=(0,r.ZQ)()){var t;return ea(e)&&!!(null==(t=window.navigator)?void 0:t.standalone)}(u)&&"_self"!==l)return function(e,t){let n=document.createElement("a");n.href=e,n.target=t;let r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",l),new tz(null);let d=window.open(t||"",l,h);g(d,e,"popup-blocked");try{d.focus()}catch(e){}return new tz(d)}(e,l,e9())}async _openRedirect(e,t,n,r){var i;return await this._originValidation(e),i=await tK(e,t,n,v(),r),te().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){var n;let{manager:e,promise:r}=this.eventManagers[t];return e?Promise.resolve(e):(n="If manager is not set, promise should be",r||y(n),r)}let r=this.initAndGetManager(e);return this.eventManagers[t]={promise:r},r.catch(()=>{delete this.eventManagers[t]}),r}async initAndGetManager(e){let t=await tH(e),n=new tR(e);return t.register("authEvent",t=>(g(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(tV,{type:tV},n=>{var r;let i=null==(r=null==n?void 0:n[0])?void 0:r[tV];void 0!==i&&t(!!i),d(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=tN(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return eo()||ee()||ea()}}class tQ{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return y("unexpected MultiFactorSessionType")}}}class tJ extends tQ{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new tJ(e)}_finalizeEnroll(e,t,n){return k(e,"POST","/v2/accounts/mfaEnrollment:finalize",T(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return k(e,"POST","/v2/accounts/mfaSignIn:finalize",T(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class tY{constructor(){}static assertion(e){return tJ._fromCredential(e)}}tY.FACTOR_ID="phone";class tX{static assertionForEnrollment(e,t){return tZ._fromSecret(e,t)}static assertionForSignIn(e,t){return tZ._fromEnrollmentId(e,t)}static async generateSecret(e){var t;g(void 0!==e.auth,"internal-error");let n=await k(t=e.auth,"POST","/v2/accounts/mfaEnrollment:start",T(t,{idToken:e.credential,totpEnrollmentInfo:{}}));return t0._fromStartTotpMfaEnrollmentResponse(n,e.auth)}}tX.FACTOR_ID="totp";class tZ extends tQ{constructor(e,t,n){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(e,t){return new tZ(t,void 0,e)}static _fromEnrollmentId(e,t){return new tZ(t,e)}async _finalizeEnroll(e,t,n){return g(void 0!==this.secret,e,"argument-error"),k(e,"POST","/v2/accounts/mfaEnrollment:finalize",T(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){g(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let n={verificationCode:this.otp};return k(e,"POST","/v2/accounts/mfaSignIn:finalize",T(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n}))}}class t0{constructor(e,t,n,r,i,s,a){this.sessionInfo=s,this.auth=a,this.secretKey=e,this.hashingAlgorithm=t,this.co
23deLength=n,this.codeIntervalSeconds=r,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new t0(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var n;let r=!1;return(t1(e)||t1(t))&&(r=!0),r&&(t1(e)&&(e=(null==(n=this.auth.currentUser)?void 0:n.email)||"unknownuser"),t1(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function t1(e){return void 0===e||(null==e?void 0:e.length)===0}var t2="@firebase/auth",t3="0.23.2";class t5{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null==(e=this.auth.currentUser)?void 0:e.uid)||null}async getToken(e){return(this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser)?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){g(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let t6=(0,r.XA)("authIdTokenMaxAge")||300,t4=null;function t8(e=(0,i.Sx)()){let t=(0,i.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();let n=function(e,t){let n=(0,i.j6)(e,"auth");if(n.isInitialized()){let e=n.getImmediate(),i=n.getOptions();if((0,r.bD)(i,null!=t?t:{}))return e;d(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:tG,persistence:[td,e6,e4]}),s=(0,r.XA)("authTokenSyncURL");if(s){let e=async e=>{let t=e&&await e.getIdTokenResult(),n=t&&(new Date().getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>t6)return;let r=null==t?void 0:t.token;t4!==r&&(t4=r,await fetch(s,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))};(0,r.Ku)(n).beforeAuthStateChanged(e,()=>e(n.currentUser)),(0,r.Ku)(n).onIdTokenChanged(t=>e(t),void 0,void 0)}let a=(0,r.Tj)("auth");return a&&function(e,t,n){let r=ev(e);g(r._canInitEmulator,r,"emulator-config-failed"),g(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");let i=eb(t),{host:s,port:a}=function(e){let t=eb(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};let r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){let e=i[1];return{host:e,port:eS(r.substr(e.length+1))}}{let[e,t]=r.split(":");return{host:e,port:eS(t)}}}(t),o=null===a?"":`:${a}`;r.config.emulator={url:`${i}//${s}${o}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:!1})}),function(){function e(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(n,`http://${a}`),n}!function(e){(0,i.om)(new o.uA("auth",(t,{options:n})=>{let r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),s=t.getProvider("app-check-internal"),{apiKey:a,authDomain:o}=r.options;g(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});
23let l=new ey(r,i,s,{apiKey:a,authDomain:o,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:el(e)}),c=(null==n?void 0:n.persistence)||[],u=(Array.isArray(c)?c:[c]).map(G);return(null==n?void 0:n.errorMap)&&l._updateErrorMap(n.errorMap),l._initializeWithPersistence(u,null==n?void 0:n.popupRedirectResolver),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),(0,i.om)(new o.uA("auth-internal",e=>new t5(ev(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,i.KO)(t2,t3,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(e)),(0,i.KO)(t2,t3,"esm2017")}("Browser")},5364:(e,t,n)=>{"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(5861)},5379:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});let r=n(8806).useSyncExternalStore},5461:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>l,jE:()=>o});var r=n(4232);let i=r.createContext(void 0),s=r.createContext(!1);function a(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let o=({context:e}={})=>{let t=r.useContext(a(e,r.useContext(s)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:n,contextSharing:i=!1})=>{r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let o=a(n,i);return r.createElement(s.Provider,{value:!n&&i},r.createElement(o.Provider,{value:e},t))}},5519:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>a,gt:()=>s,xv:()=>i});var r=n(6713);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.L2)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},5640:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,s:()=>o});var r=n(3653),i=n(8941),s=n(5966),a=n(4650);class o extends s.k{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r.U,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,s,o,l,c,u,h,d,p,f,m,g,y,v,_,b;let S=()=>{var e;return this.retryer=(0,a.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(c=(u=this.mutationCache.config).onMutate)?void 0:c.call(u,this.state.variables,this));let e=await (null==(h=(d=this.options).onMutate)?void 0:h.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let a=await S();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,a,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,a,this.state.variables,this.state.context)),await (null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,a,null,this.state.variables,this.state.context,this)),await (null==(o=(l=this.options).onSettled)?void 0:o.call(l,a,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:a}),a}catch(e){try{throw await (null==(p=(f=this.mutationCache.config).onError)?void 0:p.call(f,e,this.state.variables,this.state.context,this)),await (null==(m=(g=this.options).onError)?void 0:m.call(g,e,this.state.variables,this.state.context)),await (null==(y=(v=this.mutationCache.config).onSettled)?void 0:y.call(v,void 0,e,this.state.variables,this.state.context,this)),await (null==(_=(b=this.options).onSettled)?void 0:_.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){let t=t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,a.v_)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
23sed:!1,status:"error"};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.j.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},5861:e=>{!function(){var t={229:function(e){var t,n,r,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}var l=[],c=!1,u=-1;function h(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&d())}function d(){if(!c){var e=o(h);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}},a=!0;try{t[e](s,s.exports,r),a=!1}finally{a&&delete n[e]}return s.exports}r.ab="//",e.exports=r(229)}()},5966:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(5154);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.S$?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},6126:(e,t,n)=>{"use strict";function r(e){return e.transaction}n.d(t,{z:()=>r})},6136:(e,t,n)=>{"use strict";n.d(t,{Vu:()=>l,fj:()=>a,qO:()=>o});var r=n(6991),i=n(8086),s=n(7453);function a(e){let t=(0,r.zf)(),n={sid:(0,i.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=n,(0,s.Ce)({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}})}};return e&&o(n,e),n}function o(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.zf)(),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,i.eJ)()),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{let 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"}),o(e,n)}}
23,6139:(e,t,n)=>{"use strict";n.d(t,{BF:()=>g,EU:()=>f,rm:()=>y});var r=n(6713),i=n(8086),s=n(6991),a=n(8706),o=n(129),l=n(7989),c=n(6938),u=n(6576),h=n(6136);let d=parseFloat(n(3928).M);class p{constructor(e,t,n,r=d){let i,s;this._version=r,t?i=t:(i=new u.HG).setClient(e),n?s=n:(s=new u.HG).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t,n=this.pushScope();try{t=e(n)}catch(e){throw this.popScope(),e}return(0,r.Qg)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}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){let n=this._lastEventId=t&&t.event_id?t.event_id:(0,i.eJ)(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.eJ)(),s=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,i.eJ)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let l={timestamp:(0,s.lu)(),...e},c=i?(0,a.pq)(()=>i(l,t)):l;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,o))}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){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=m(this);try{e(this)}finally{m(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return c.T&&a.vF.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return c.T&&!n&&(this.getClient()?a.vF.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
24Sentry.addTracingExtensions();
25Sentry.init({...});
26`):a.vF.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(){let e=this.getStackTop().scope,t=e.getSession();t&&(0,h.Vu)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=l.U}=n&&n.getOptions()||{},{userAgent:s}=o.OW.navigator||{},a=(0,h.fj)({release:r,environment:i,user:t.getUser(),...s&&{userAgent:s},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,h.qO)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){let n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);c.T&&a.vF.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return o.OW.__SENTRY__=o.OW.__SENTRY__||{extensions:{},hub:void 0},o.OW}function m(e){let t=f(),n=v(t);return _(t,e),n}function g(){let e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=f()){var t;return(!((t=e)&&t.__SENTRY__&&t.__SENTRY__.hub)||v(e).isOlderThan(d))&&_(e,new p),v(e)}(e)}function y(){return g().getIsolationScope()}function v(e){return(0,o.BY)("hub",()=>new p,e)}function _(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},6525:(e,t,n)=>{"use strict";var r;n.d(t,{$b:()=>r,Vy:()=>c});let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
26RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));let s={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},a=r.INFO,o={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},l=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=o[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,r.DEBUG,...e),this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e),this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e),this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e),this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e),this._logHandler(this,r.ERROR,...e)}}},6576:(e,t,n)=>{"use strict";let r;n.d(t,{HG:()=>h,m6:()=>d});var i=n(6713),s=n(6991),a=n(8086),o=n(8706),l=n(8237),c=n(6136),u=n(965);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(e){return e?e.clone():new h}clone(){let e=new h;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,c.qO)(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(){let 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;let t="function"==typeof e?e(this):e;if(t instanceof h){let e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else(0,i.Qd)(t)&&(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));return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,s.lu)(),...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}
26getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:s,_level:a,_fingerprint:o,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:h,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:s,level:a,fingerprint:o||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:h,span:d}}applyToEvent(e,t={},n=[]){(0,u.e2)(e,this.getScopeData());let r=[...n,...(0,l.lG)(),...this._eventProcessors];return(0,l.jB)(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){let n=t&&t.event_id?t.event_id:(0,a.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,a.eJ)();if(!this._client)return o.vF.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):o.vF.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 d(){return r||(r=new h),r}function p(){return{traceId:(0,a.eJ)(),spanId:(0,a.eJ)().substring(16)}}},6713:(e,t,n)=>{"use strict";n.d(t,{BD:()=>o,Kg:()=>c,L2:()=>b,NF:()=>u,Qd:()=>d,Qg:()=>g,T2:()=>a,W6:()=>l,bJ:()=>i,gd:()=>m,mE:()=>y,sO:()=>h,tH:()=>_,vq:()=>f,xH:()=>p,yr:()=>v});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function s(e,t){return r.call(e)===`[object ${t}]`}function a(e){return s(e,"ErrorEvent")}function o(e){return s(e,"DOMError")}function l(e){return s(e,"DOMException")}function c(e){return s(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function h(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return s(e,"Object")}function p(e){return"undefined"!=typeof Event&&_(e,Event)}function f(e){return"undefined"!=typeof Element&&_(e,Element)}function m(e){return s(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},6884:(e,t,n)=>{"use strict";n.d(t,{i:()=>u,c:()=>h});var r=n(7876),i=n(4232),s=n(9099);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basePath:n,staticRoutes:r,dynamicPatterns:i}=t;if(!e||e.includes("://"))return!1;let s=e.split(/[?#]/)[0];return!!(n&&s.startsWith(n)||(null==r?void 0:r.has(s)))||null!=i&&!!i.length&&i.some(e=>e.test(s))},o=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2?arguments[2]:void 0,[r,i]=e.split("?"),s=t&&1?new URLSearchParams(window.location.search):new URLSearchParams;i&&new URLSearchParams(i).forEach((e,t)=>s.set(t,e)),n&&Object.entries(n).forEach(e=>{let[t,n]=e;s.set(t,String(n))});let a=s.toString();return a?"".concat(r,"?").concat(a):r},l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{basePath:r,staticRoutes:i,dynamicPatterns:s,persistQuery:l=!0,additionalParams:c}=n,u=o(e,l,c);if(t&&a(e,{basePath:r,staticRoutes:i,dynamicPatterns:s}))if(r&&e.startsWith(r)){let[n]=e.split("?"),i=o(n.replace(r,"")||"/",l,c);t.push(i)}else t.push(u);else window.location.href=u},c=(0,i.createContext)(null),u=e=>{var t,n;let{children:o,basePath:u,staticRoutes:h,dynamicPatterns:d,manifestUrl:p}=e,f=(0,s.useRouter)(),[m,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{p&&fetch(p).then(e=>e.json()).then(e=>{g({staticRoutes:new Set(e.staticRoutes.flatMap(e=>e.split(",").map(e=>e.trim()))),dynamicPatterns:e.dynamicPatterns.map(e=>new RegExp(e))})}).catch(()=>{})},[p]);let y=null!=(t=null==m?void 0:m.staticRoutes)?t:h,v=null!=(n=null==m?void 0:m.dynamicPatterns)?n:d,_=(0,i.useMemo)(()=>({basePath:u,staticRoutes:y,dynamicPatterns:v}),[u,y,v]),b=(0,i.useCallback)(e=>a(e,_),[_]),S=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(e,f,{..._,persistQuery:t.persistQuery,additionalParams:t.additionalParams})},[f,_]),w=(0,i.useMemo)(()=>({navigate:S,isInternalRoute:b,routeConfig:_}),[S,b,_]);return(0,r.jsx)(c.Provider,{value:w,children:o})},h=()=>{let e=(0,i.useContext)(c);if(!e)throw Error("useNavigation must be used within a NavigationProvider");return e}},6927:(e,t,n)=>{"use strict";n.d(t,{O:()=>m,_:()=>g});var r=n(7876),i=n(4232),s=n(3449),a=n(1595),o=n(1602),l=n(8992),c=n(4500),u=function(e){return e._401="Unable to locate an active account for the email address provided",e.DEFAULT='Failed to fetch "me"',e}({});let h=async()=>{let e=await (0,c.Vc)("".concat(c.tf,"/me/"))();if(e&&401===e.status){let e=Error("Unable to locate an active account for the email address provided");throw a.Cp(e,{level:"info"}),e}if(!e||!e.ok){let e=Error('Failed to fetch "me"');throw a.Cp(e,{level:"error"}),e}return null==e?void 0:e.json()},d={staleTime:(0,l.n)({minutes:1})};var p=n(5282);let f=(0,i.createContext)({}),m=e=>{let{firebaseApp:t,children:n}=e,{setSnackbar:a}=(0,s.d)(),{auth:l,user:c}=(e=>{let[t,n]=(0,i.useState)(null),[r,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>{n((0,p.xI)(e))},[e]),(0,i.useEffect)(()=>
26{if(t)return t.onAuthStateChanged(e=>{s(e)})},[t]),{auth:t,user:r}})(t),{data:m,isLoading:g,error:y}=(e=>(0,o.I)(["getMeInfo",null==e?void 0:e.email],()=>h(),{...d,enabled:!!e}))(c),{isLoading:v}=((e,t,n,r)=>{let[s,a]=(0,i.useState)(!0),o=null!==e&&!(t&&r);return(0,i.useEffect)(()=>{let e=setTimeout(()=>{a(!o)},500*!!o);return()=>{clearTimeout(e)}},[o]),{isLoading:!n&&s}})(l,c,m,g),[_,b]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{!v&&c&&!m&&y&&(y instanceof Error&&y.message===u._401&&a({message:y.message,severity:"error"}),null==l||l.signOut())},[v,m,y,c,a,l]),(0,r.jsx)(f.Provider,{value:{me:m,user:c,isLoading:v,openLoginModal:_,setOpenLoginModal:b},children:n})},g=()=>(0,i.useContext)(f)},6938:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=!1},6991:(e,t,n)=>{"use strict";n.d(t,{k3:()=>a,lu:()=>i,zf:()=>s});var r=n(129);function i(){return Date.now()/1e3}let s=function(){let{performance:e}=r.OW;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),a=(()=>{let{performance:e}=r.OW;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+t-n):36e5;if(i<36e5||a<36e5)if(i<=a)return e.timeOrigin;else return s;return n})()},7192:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}n.d(t,{G:()=>r})},7440:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(7876);n(8874);var i=n(5154),s=n(3653),a=n(8941),o=n(4650),l=n(5966);class c extends l.k{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||s.U,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let 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){let n=(0,i.pl)(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;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.lQ).catch(i.lQ):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,i.j3)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(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,s,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let l=(0,i.jY)(),c={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>
26{if(l)return this.abortSignalConsumed=!0,l.signal}})};u(c);let h=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(c)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),d={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:h};u(d),null==(n=this.options.behavior)||n.onFetch(d),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=d.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(a=d.fetchOptions)?void 0:a.meta});let p=e=>{if((0,o.wm)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,o.wm)(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,o.II)({fn:d.fetchFn,abort:null==l?void 0:l.abort.bind(l),onSuccess:e=>{var t,n,r,i;if(void 0===e)return void p(Error(this.queryHash+" data is undefined"));this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){let t=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,o.v_)(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":let i=e.error;if((0,o.wm)(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),a.j.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var u=n(9382);class h extends u.Q{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let s=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.F$)(s,t),o=this.get(a);return o||(o=new c({cache:this,logger:e.getLogger(),queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let 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(){a.j.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=(0,i.b_)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>(0,i.MK)(n,e))}findAll(e,t){let[n]=(0,i.b_)(e,t);return Object.keys(n).length>0?this.queries.filter(e=>(0,i.MK)(n,e)):this.queries}notify(e){a.j.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){a.j.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){a.j.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var d=n(5640);class p extends u.Q{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new d.s({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(){a.j.batch(()=>
26{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,i.nJ)(e,t))}findAll(e){return this.mutations.filter(t=>(0,i.nJ)(e,t))}notify(e){a.j.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return a.j.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(i.lQ)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var f=n(1860),m=n(7555);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class y{constructor(e={}){this.queryCache=e.queryCache||new h,this.mutationCache=e.mutationCache||new p,this.logger=e.logger||s.U,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=f.m.subscribe(()=>{f.m.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=m.t.subscribe(()=>{m.t.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=(0,i.b_)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=(0,i.vh)(e,t,n),s=this.getQueryData(r.queryKey);return s?Promise.resolve(s):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.queryCache.find(e),s=null==r?void 0:r.state.data,a=(0,i.Zw)(t,s);if(void 0===a)return;let o=(0,i.vh)(e),l=this.defaultQueryOptions(o);return this.queryCache.build(this,l).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return a.j.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=(0,i.b_)(e,t),r=this.queryCache;a.j.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,s]=(0,i.b_)(e,t,n),o=this.queryCache,l={type:"active",...r};return a.j.batch(()=>(o.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(l,s)))}cancelQueries(e,t,n){let[r,s={}]=(0,i.b_)(e,t,n);return void 0===s.revert&&(s.revert=!0),Promise.all(a.j.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(s)))).then(i.lQ).catch(i.lQ)}invalidateQueries(e,t,n){let[r,s]=(0,i.b_)(e,t,n);return a.j.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,s)})}refetchQueries(e,t,n){let[r,s]=(0,i.b_)(e,t,n),o=Promise.all(a.j.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))).then(i.lQ);return null!=s&&s.throwOnError||(o=o.catch(i.lQ)),o}fetchQuery(e,t,n){let r=(0,i.vh)(e,t,n),s=this.defaultQueryOptions(r);void 0===s.retry&&(s.retry=!1);let a=this.queryCache.build(this,s);return a.isStaleByTime(s.staleTime)?a.fetch(s):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(e,t,n){let r=(0,i.vh)(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,a,o,l;let c,u=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,h=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,d=null==h?void 0:h.pageParam,p=(null==h?void 0:h.direction)==="forward",f=(null==h?void 0:h.direction)==="backward",m=(null==(s=e.state.data)?void 0:s.pages)||[],y=(null==(a=e.state.data)?void 0:a.pageParams)||[],v=y,_=!1,b=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),S=(e,t,n,r)=>(v=r?[t,...v]:[...v,t],r?[n,...e]:[...e,n]),w=(t,n,r,i)=>{if(_)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let s={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};return Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?_=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{_=!0}),e.signal}}),Promise.resolve(b(s)).then(e=>S(t,r,e,i))};if(m.length)if(p){let t=void 0!==d,n=t?d:g(e.options,m);
26c=w(m,t,n)}else if(f){let t=void 0!==d,n=t?d:(o=e.options,l=m,null==o.getPreviousPageParam?void 0:o.getPreviousPageParam(l[0],l));c=w(m,t,n,!0)}else{v=[];let t=void 0===e.options.getNextPageParam;c=!u||!m[0]||u(m[0],0,m)?w([],t,y[0]):Promise.resolve(S([],y[0],m[0]));for(let n=1;n<m.length;n++)c=c.then(r=>{if(!u||!m[n]||u(m[n],n,m)){let i=t?y[n]:g(e.options,r);return w(r,t,i)}return Promise.resolve(S(r,y[n],m[n]))})}else c=w([]);return c.then(e=>({pages:e,pageParams:v}))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.lQ).catch(i.lQ)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>(0,i.Od)(e)===(0,i.Od)(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,i.Cp)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>(0,i.Od)(e)===(0,i.Od)(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,i.Cp)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var v=n(5461),_=n(3093);(0,_.KO)("firebase","9.23.0","app");var b=n(4123),S=n(6927),w=n(3247),E=n(6884),I=n(2331),T=n(3449),k=n(489);let C=new y,O=(0,_.Wp)({apiKey:"AIzaSyDNzmpDN8E5ALYl2Rn-WZ6Hu_wwBCB1B1c",authDomain:"auth.wagmo.io",databaseURL:"https://able-marking-233814.firebaseio.com",projectId:"able-marking-233814",storageBucket:"able-marking-233814.appspot.com",messagingSenderId:"258774904579",appId:"1:258774904579:web:74cff35de5b5c851e9c336",measurementId:"G-LBBV4M131P"});function R(e){var t,n,i;let{Component:s,pageProps:a}=e,o={...a};(null==o||null==(n=o.page)||null==(t=n.data)?void 0:t.coBranding)&&(Object.keys(o.page.data.coBranding).length>0&&o.page.data.coBranding.src&&o.page.data.coBranding.alt||(o.page.data.coBranding=void 0));let l=null==o||null==(i=o.page)?void 0:i.data;
26return(0,r.jsx)(T.n,{children:(0,r.jsx)(v.Ht,{client:C,children:(0,r.jsx)(E.i,{manifestUrl:b._,children:(0,r.jsx)(k.vN,{children:(0,r.jsx)(S.O,{firebaseApp:O,children:(0,r.jsx)(I.G,{firebaseApp:O,children:(0,r.jsx)(w.J,{data:l,children:(0,r.jsx)(s,{...o})})})})})})})})}},7453:(e,t,n)=>{"use strict";n.d(t,{Ce:()=>y,GS:()=>l,HF:()=>g,W4:()=>p,my:()=>c,pO:()=>u,sp:()=>h,u4:()=>d});var r=n(8310),i=n(1004),s=n(6713),a=n(8706),o=n(5519);function l(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&u(i,r),e[t]=i}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.T&&a.vF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function h(e){return e.__sentry_original__}function d(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function p(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,s.xH)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,s.vq)(e)?(0,r.Hd)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.xv)(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,o.xv)(r,t)}}return""}function y(e){return function e(t,n){if(function(e){if(!(0,s.Qd)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},7555:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(9382),i=n(5154);let s=["online","offline"];class a extends r.Q{constructor(){super(),this.setup=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return s.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{s.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let o=new a},7819:(e,t,n)=>{"use strict";n.d(t,{li:()=>m,mG:()=>p});var r=n(8086),i=n(6991),s=n(5519),a=n(129),o=n(9312),l=n(7989),c=n(8237),u=n(6576),h=n(965),d=n(7975);function p(e,t,n,p,m,g){var y,v;let{normalizeDepth:_=3,normalizeMaxBreadth:b=1e3}=e,S={...t,event_id:t.event_id||n.event_id||(0,r.eJ)(),timestamp:t.timestamp||(0,i.lu)()},w=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.U),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,s.xv)(e.message,a));let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,s.xv)(o.value,a));let c=e.request;c&&c.url&&(c.url=(0,s.xv)(c.url,a))})(S,e),y=S,(v=w).length>0&&(y.sdk=y.sdk||{},y.sdk.integrations=[...y.sdk.integrations||[],...v]),void 0===t.type&&function(e,t){let n,r=a.OW._sentryDebugIds;if(!r)return;let i=f.get(t);i?n=i:(n=new Map,f.set(t,n));let s=Object.keys(r).reduce((e,i)=>{let s,a=n.get(i);a?s=a:(s=t(i),n.set(i,s));for(let t=s.length-1;t>=0;t--){let n=s[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});
26try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=s[e.filename])})})}catch(e){}}(S,e.stackParser);let E=function(e,t){if(!t)return e;let n=e?e.clone():new u.HG;return n.update(t),n}(p,n.captureContext);n.mechanism&&(0,r.M6)(S,n.mechanism);let I=m&&m.getEventProcessors?m.getEventProcessors():[],T=(0,u.m6)().getScopeData();if(g){let e=g.getScopeData();(0,h.Rg)(T,e)}if(E){let e=E.getScopeData();(0,h.Rg)(T,e)}let k=[...n.attachments||[],...T.attachments];k.length&&(n.attachments=k),(0,h.e2)(S,T);let C=[...I,...(0,c.lG)(),...T.eventProcessors];return(0,c.jB)(C,S,n).then(e=>(e&&function(e){let 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||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof _&&_>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,o.S8)(e.data,t,n)}}))},...e.user&&{user:(0,o.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,o.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,o.S8)(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,o.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=(0,d.et)(e).data;return r&&(e.data=(0,o.S8)(r,t,n)),e})),r}(e,_,b):e)}let f=new WeakMap;function m(e){if(e){var t;return(t=e)instanceof u.HG||"function"==typeof t||Object.keys(e).some(e=>g.includes(e))?{captureContext:e}:e}}let g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},7975:(e,t,n)=>{"use strict";n.d(t,{CC:()=>a,Qh:()=>c,aO:()=>o,cI:()=>u,et:()=>d,kX:()=>l,pK:()=>p});var r=n(7453),i=n(2800),s=n(6991);let a=0,o=1;function l(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:s,parent_span_id:a,status:o,tags:l,origin:c}=d(e);return(0,r.Ce)({data:i,op:s,parent_span_id:a,span_id:t,status:o,tags:l,trace_id:n,origin:c})}function c(e){let{traceId:t,spanId:n}=e.spanContext(),r=p(e);return(0,i.TC)(t,n,r)}function u(e){return"number"==typeof e?h(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?h(e.getTime()):(0,s.zf)()}function h(e){return e>0x2540be3ff?e/1e3:e}function d(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function p(e){let{traceFlags:t}=e.spanContext();return!!(t&o)}},7989:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});let r="production"},8086:(e,t,n)=>{"use strict";n.d(t,{$X:()=>o,GR:()=>u,M6:()=>c,eJ:()=>s,gO:()=>l,k9:()=>h});var r=n(7453),i=n(129);function s(){let e=i.OW,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".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 o(e){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function c(e,t){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch(e){}return!1}function h(e){return Array.isArray(e)?e:[e]}},8237:(e,t,n)=>{"use strict";n.d(t,{jB:()=>function e(t,n,r,l=0){return new i.T2((i,c)=>{let u=t[l];if(null===n||"function"!=typeof u)i(n);else{let h=u({...n},r);o.T&&u.id&&null===h&&s.vF.log(`Event processor "${u.id}
26" dropped event`),(0,a.Qg)(h)?h.then(n=>e(t,n,r,l+1).then(i)).then(null,c):e(t,h,r,l+1).then(i).then(null,c)}})},lG:()=>l,lb:()=>c});var r=n(129),i=n(4678),s=n(8706),a=n(6713),o=n(6938);function l(){return(0,r.BY)("globalEventProcessors",()=>[])}function c(e){l().push(e)}},8308:(e,t,n)=>{"use strict";n.d(t,{h1:()=>o,uA:()=>i});var r=n(9207);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let s="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=s){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=s){return this.instances.has(e)}getOptions(e=s){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){var n;let r=this.normalizeInstanceIdentifier(t),i=null!=(n=this.onInitCallbacks.get(r))?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var n;let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e)===s?void 0:n,options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=s){return this.component?this.component.multipleInstances?e:s:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class o{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},8310:(e,t,n)=>{"use strict";n.d(t,{$N:()=>a,Hd:()=>s,NX:()=>o,xE:()=>l});var r=n(6713);let i=(0,n(129).VZ)();function s(e,t={}){if(!e)return"<unknown>";try{let n,s=e,a=[],o=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;s&&o++<5&&(n=function(e,t){let n,s,a,o,l,c=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;c.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;
26if(u&&u.length)u.forEach(e=>{c.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&c.push(`#${e.id}`),(n=e.className)&&(0,r.Kg)(n))for(l=0,s=n.split(/\s+/);l<s.length;l++)c.push(`.${s[l]}`);let h=["aria-label","type","name","title","alt"];for(l=0;l<h.length;l++)a=h[l],(o=e.getAttribute(a))&&c.push(`[${a}="${o}"]`);return c.join("")}(s,c),"html"!==n&&(!(o>1)||!(l+3*a.length+n.length>=u)));)a.push(n),l+=n.length,s=s.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(){try{return i.document.location.href}catch(e){return""}}function o(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},8423:(e,t,n)=>{"use strict";n.d(t,{gd:()=>s,qQ:()=>l,vk:()=>a});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let s=[],a=e.split("\n");for(let e=n;e<a.length;e++){let n=a[e];if(n.length>1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let e of t){let t=e(i);if(t){s.push(t);break}}if(s.length>=50)break}}var o=s;if(!o.length)return[];let l=Array.from(o);return/sentryWrapped/.test(l[l.length-1].function||"")&&l.pop(),l.reverse(),i.test(l[l.length-1].function||"")&&(l.pop(),i.test(l[l.length-1].function||"")&&l.pop()),l.slice(0,50).map(e=>({...e,filename:e.filename||l[l.length-1].filename,function:e.function||"?"}))}}function a(e){return Array.isArray(e)?s(...e):e}let o="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return o;return e.name||o}catch(e){return o}}},8706:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>s,Z9:()=>a,pq:()=>o,vF:()=>l});var r=n(1004),i=n(129);let s=["debug","info","warn","error","log","assert","trace"],a={};function o(e){if(!("console"in i.OW))return e();let t=i.OW.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.T?s.forEach(n=>{t[n]=(...t)=>{e&&o(()=>{i.OW.console[n](`Sentry Logger [${n}]:`,...t)})}}):s.forEach(e=>{t[e]=()=>void 0}),t}()},8806:(e,t,n)=>{"use strict";e.exports=n(9429)},8874:()=>{},8941:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(5154);let i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},s=i=>{t?e.push(i):(0,r.G6)(()=>{n(i)})};return{batch:s=>{let a;t++;try{a=s()}finally{--t||(()=>{let t=e;e=[],t.length&&(0,r.G6)(()=>{i(()=>{t.forEach(e=>{n(e)})})})})()}return a},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e}}}()},8992:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r=e=>{let{minutes:t,seconds:n}=e;return(t?60*t*1e3:0)+(n?1e3*n:0)}},9099:(e,t,n)=>{e.exports=n(6296)},9207:(e,t,n)=>{"use strict";n.d(t,{Am:()=>O,FA:()=>I,I9:()=>R,Im:()=>k,Ku:()=>N,T9:()=>p,Tj:()=>d,Uj:()=>c,XA:()=>f,ZQ:()=>g,bD:()=>function e(t,n){if(t===n)return!0;let r=Object.keys(t),i=Object.keys(n);for(let s of r){if(!i.includes(s))return!1;let r=t[s],a=n[s];if(C(r)&&C(a)){if(!e(r,a))return!1}else if(r!==a)return!1}for(let e of i)if(!r.includes(e))return!1;return!0},cY:()=>m,eX:()=>w,g:()=>E,hp:()=>x,jZ:()=>y,lT:()=>b,lV:()=>_,p9:()=>P,sr:()=>v,tD:()=>A,u:()=>u,zW:()=>S});var r=n(5364);let i=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},s=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=e[n++],a=((7&i)<<18|(63&s)<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{let s=e[n++],a=e[n++];
26t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")},a={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){let i=e[t],s=t+1<e.length,a=s?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,c=i>>2,u=(3&i)<<4|a>>4,h=(15&a)<<2|l>>6,d=63&l;!o&&(d=64,s||(h=64)),r.push(n[c],n[u],n[h],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):s(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],s=t<e.length?n[e.charAt(t)]:0,a=++t<e.length?n[e.charAt(t)]:64,l=++t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==a||null==l)throw new o;let c=i<<2|s>>4;if(r.push(c),64!==a){let e=s<<4&240|a>>2;if(r.push(e),64!==l){let e=a<<6&192|l;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(e){let t=i(e);return a.encodeByteArray(t,!0)},c=function(e){return l(e).replace(/\./g,"")},u=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},h=()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(void 0===r||void 0===r.env)return;let e=r.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},d=e=>{var t,n;return null==(n=null==(t=h())?void 0:t.emulatorHosts)?void 0:n[e]},p=()=>{var e;return null==(e=h())?void 0:e.config},f=e=>{var t;return null==(t=h())?void 0:t[`_${e}`]};class m{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function g(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function y(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function v(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function _(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function b(){let e=g();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function S(){try{return"object"==typeof indexedDB}catch(e){return!1}}function w(){return new Promise((e,t)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}
26class E extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,E.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,I.prototype.create)}}class I{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){var n,r;let i=t[0]||{},s=`${this.service}/${e}`,a=this.errors[e],o=a?(n=a,r=i,n.replace(T,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`})):"Error",l=`${this.serviceName}: ${o} (${s}).`;return new E(s,l,i)}}let T=/\{\$([^}]+)}/g;function k(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function C(e){return null!==e&&"object"==typeof e}function O(e){let t=[];for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function R(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function x(e){let t=e.indexOf("?");if(!t)return"";let n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function A(e,t){let n=new M(e,t);return n.subscribe.bind(n)}class M{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw Error("Missing Observer.");void 0===(r=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:n}:e).next&&(r.next=D),void 0===r.error&&(r.error=D),void 0===r.complete&&(r.complete=D);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function D(){}function P(e,t=1e3,n=2){let r=t*Math.pow(n,e),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+i)}function N(e){return e&&e._delegate?e._delegate:e}},9312:(e,t,n)=>{"use strict";n.d(t,{S8:()=>a,cd:()=>function e(t,n=3,r=102400){let i=a(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}});var r=n(6713),i=n(7453),s=n(8423);function a(e,t=100,o=Infinity){try{return function e(t,a,o=Infinity,l=Infinity,c=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[u,h]=c;if(null==a||["number","boolean","string"].includes(typeof a)&&!(0,r.yr)(a))return a;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return"[VueViewModel]";if((0,r.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let i=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(t,a);if(!d.startsWith("[object "))return d;if(a.__sentry_skip_normalization__)return a;let p="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:o;if(0===p)return d.replace("object ","");if(u(a))return"[Circular ~]";if(a&&"function"==typeof a.toJSON)try{let t=a.toJSON();return e("",t,p-1,l,c)}catch(e){}let f=Array.isArray(a)?[]:{},m=0,g=(0,i.W4)(a);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=l){f[t]="[MaxProperties ~]";break}let n=g[t];f[t]=e(t,n,p-1,l,c),m++}return h(a),f}("",e,t,o)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},9382:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});
26class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},9429:(e,t,n)=>{"use strict";var r=n(4232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=r.useState,a=r.useEffect,o=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return o(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9703:function(e,t,n){var r,i,s,a,o,l,c,u,h,d,p,f,m,g,y,v;s=function(e,t,n){if(!d(t)||f(t)||m(t)||g(t)||h(t))return t;var r,i=0,a=0;if(p(t))for(r=[],a=t.length;i<a;i++)r.push(s(e,t[i],n));else for(var o in r={},t)Object.prototype.hasOwnProperty.call(t,o)&&(r[e(o,n)]=s(e,t[o],n));return r},a=function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)},o=function(e){return y(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},l=function(e){var t=o(e);return t.substr(0,1).toUpperCase()+t.substr(1)},c=function(e,t){return a(e,t).toLowerCase()},u=Object.prototype.toString,h=function(e){return"function"==typeof e},d=function(e){return e===Object(e)},p=function(e){return"[object Array]"==u.call(e)},f=function(e){return"[object Date]"==u.call(e)},m=function(e){return"[object RegExp]"==u.call(e)},g=function(e){return"[object Boolean]"==u.call(e)},y=function(e){return(e-=0)==e},v=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},void 0===(i="function"==typeof(r={camelize:o,decamelize:c,pascalize:l,depascalize:c,camelizeKeys:function(e,t){return s(v(o,t),e)},decamelizeKeys:function(e,t){return s(v(c,t),e,t)},pascalizeKeys:function(e,t){return s(v(l,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}})?r.call(t,n,t,e):r)||(e.exports=i)},9995:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{$:()=>r})}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(4049),t(735),t(6296))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.