1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4b6d17cf-473d-4c04-9fe6-55f1d3b23e0b",e._sentryDebugIdIdentifier="sentry-dbid-4b6d17cf-473d-4c04-9fe6-55f1d3b23e0b")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return i.RedirectType},forbidden:function(){return s.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return a.unauthorized},unstable_isUnrecognizedActionError:function(){return h},unstable_rethrow:function(){return c.unstable_rethrow}});let n=r(55380),i=r(74707),o=r(92688),s=r(30678),a=r(13910),c=r(64558);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}function h(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},596:e=>{e.exports={style:{fontFamily:"'aeonikMono', 'aeonikMono Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_8e48ea"}},1164:(e,t,r)=>{"use strict";r.d(t,{H:()=>p});var n=r(39766),i=r(6172),o=r(53032),s=r(97270),a=r(9898),c=r(43590),u=r(9887),l=r(32109),h=r(31823),d=r(53375);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:Math.random()}}clone(){let e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,l.r)(e,(0,l.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=(t instanceof p?t.getScopeData():(0,s.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,l.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,d.lu)(),...e,message:e.message?(0,h.xv)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l.f)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
1captureException(e,t){let r=t?.event_id||(0,c.eJ)();if(!this._client)return n.T&&o.Yz.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,c.eJ)();if(!this._client)return n.T&&o.Yz.warn("No client configured on scope - will not capture message!"),i;let s=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,t){let r=t?.event_id||(0,c.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.T&&o.Yz.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},1518:(e,t,r)=>{"use strict";r.d(t,{$_:()=>c,Fh:()=>l,KV:()=>d,R2:()=>u,mo:()=>h,zx:()=>a});var n=r(91788),i=r(92626),o=r(84671),s=r(50713);function a(){return navigator.userAgent.toLowerCase().indexOf("macintosh")>-1}function c(e){return e?"".concat("https://api.mimo.org/v1","/preview"):"https://api.mimo.org/v1"}function u(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function l(e){let t="string"!=typeof e?JSON.stringify(e):e;try{t=JSON.parse(t)}catch(e){return!1}return"object"==typeof t&&null!==t}async function h(e,t,r){var a;(0,n.Ak)(),(0,n.Ki)(o.yh),(0,n.Ki)(s.sR),(0,i.WC)(),t.reset(),(null==(a=window._cio)?void 0:a.reset)&&window._cio.reset(),await e.signOut(),r.clear()}function d(e){let t=e%10,r=e%100;return 1===t&&11!==r?e+"st":2===t&&12!==r?e+"nd":3===t&&13!==r?e+"rd":e+"th"}r(72076).Buffer},1639:(e,t,r)=>{"use strict";r.d(t,{AO:()=>m,DY:()=>u,I5:()=>d,Md:()=>n,SN:()=>f,X8:()=>h,e3:()=>s,eQ:()=>l,pL:()=>p,q$:()=>o,ui:()=>i,w4:()=>c,zd:()=>a});let n=["web-projects"],i="web-project",o="web-shared-project",s="web-project-save",a="mimo-projects-tooltip",c="run-and-save-project";function u(e){return["user-rewards",e]}let l="authorize-discord",h="trackCompletion",d="tracksMap",p="leaderboard",f="leaderboard-user-rank",m="subscriber-info"},2272:e=>{var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var c=[],u=!1,l=-1;function h(){u&&n&&(u=!1,n.length?c=n.concat(c):l=-1,c.length&&d())}function d(){if(!u){var e=a(h);u=!0;for(var t=c.length;t;){for(n=c,c=[];++l<t;)n&&n[l].run();l=-1,t=c.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.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 r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||a(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}},2891:(e,t,r)=>{"use strict";r.d(t,{UF:()=>a,kq:()=>u,o$:()=>c});var n=r(21462),i=r(1518),o=r(83241),s=r(89240);let a=(0,n.createContext)(null),c=()=>(0,n.useContext)(a);async function u(e){let t=await (0,s.vq)(e);if(!t)return;let r="".concat((0,i.$_)(!1),"/user/visits");await (0,o.l)(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({appName:"web"})})}},5123:(e,t,r)=>{"use strict";var n;r.d(t,{$b:()=>n,Vy:()=>u});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
1RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(n||(n={}));let o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},s=n.INFO,a={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},c=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=a[t];if(i)console[i](`[${n}] ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class u{constructor(e){this.name=e,this._logLevel=s,this._logHandler=c,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in n))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?o[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,n.DEBUG,...e),this._logHandler(this,n.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,n.VERBOSE,...e),this._logHandler(this,n.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,n.INFO,...e),this._logHandler(this,n.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,n.WARN,...e),this._logHandler(this,n.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,n.ERROR,...e),this._logHandler(this,n.ERROR,...e)}}},5377:function(e){e.exports=function(){"use strict";var e,t,r=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,i={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(e){return e instanceof h},s=function(e,t,r){return new h(e,r,t.$l)},a=function(e){return t.p(e)+"s"},c=function(e){return e<0},u=function(e){return c(e)?Math.ceil(e):Math.floor(e)},l=function(e,t){return e?c(e)?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},h=function(){function c(e,t,r){var o=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return s(e*i[a(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){o.$d[a(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var c=e.match(n);if(c){var u=c.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=u[0],this.$d.months=u[1],this.$d.weeks=u[2],this.$d.days=u[3],this.$d.hours=u[4],this.$d.minutes=u[5],this.$d.seconds=u[6],this.calMilliseconds(),this}}return this}var h=c.prototype;return h.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,r){return t+(e.$d[r]||0)*i[r]},0)},h.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=u(e/31536e6),e%=31536e6,this.$d.months=u(e/2628e6),e%=2628e6,this.$d.days=u(e/864e5),e%=864e5,this.$d.hours=u(e/36e5),e%=36e5,this.$d.minutes=u(e/6e4),e%=6e4,this.$d.seconds=u(e/1e3),e%=1e3,this.$d.milliseconds=e},h.toISOString=function(){var e=l(this.$d.years,"Y"),t=l(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=l(r,"D"),i=l(this.$d.hours,"H"),o=l(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var a=l(s,"S"),c=e.negative||t.negative||n.negative||i.negative||o.negative||a.negative,u=i.format||o.format||a.format?"T":"",h=(c?"-":"")+"P"+e.format+t.format+n.format+u+i.format+o.format+a.format;return"P"===h||"-P"===h?"P0D":h},h.toJSON=function(){return this.toISOString()},h.format=function(e){var n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return(e||"YYYY-MM-DDTHH:mm:ss").replace(r,function(e,t){return t||String(n[e])})},h.as=function(e){return this.$ms/i[a(e)]},h.get=function(e){var t=this.$ms,r=a(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?u(t/i[r]):this.$d[r],t||0},h.add=function(e,t,r){var n;return n=t?e*i[a(t)]:o(e)?e.$ms:s(e,this).$ms,s(this.$ms+n*(r?-1:1),this)},h.subtract=function(e,t){return this.add(e,t,!0)},h.locale=function(e){var t=this.clone();return t.$l=e,t},h.clone=function(){return s(this.$ms,this)},h.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},h.valueOf=function(){return this.asMilliseconds()},h.milliseconds=function(){return this.get("milliseconds")},h.asMilliseconds=function(){return this.as("milliseconds")},h.seconds=function(){return this.get("seconds")},h.asSeconds=function(){return this.as("seconds")},h.minutes=function(){return this.get("minutes")},h.asMinutes=function(){return this.as("minutes")},h.hours=function(){return this.get("hours")},h.asHours=function(){return this.as("hours")},h.days=function(){return this.get("days")},h.asDays=function(){return this.as("days")},h.weeks=function(){return this.get("weeks")},h.asWeeks=function(){return this.as("weeks")},h.months=function(){return this.get("months")},h.asMonths=function(){return this.as("months")},h.years=function(){return this.get("years")},h.asYears=function(){return this.as("years")},c}(),d=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")};return function(r,n,i){e=i,t=i().$utils(),i.duration=function(e,t){return s(e,{$l:i.locale()},t)},i.isDuration=o;var a=n.prototype.add,c=n.prototype.subtract;n.prototype.add=function(e,t){return o(e)?d(this,e,1):a.bind(this)(e,t)},n.prototype.subtract=function(e,t){return o(e)?d(this,e,-1):c.bind(this)(e,t)}}}()},6172:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>a,fj:()=>o,qO:()=>s});var n=r(43590),i=r(53375);function o(e){let t=(0,i.zf)(),r={sid:(0,n.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{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&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.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,n.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 a(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},6759:(e,t,r)=>{"use strict";r.d(t,{RV:()=>h,gd:()=>s,nY:()=>d,qQ:()=>l,vk:()=>a,yF:()=>n});let n="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function s(...e){let t=e.sort((e,t)=>
1e[0]-t[0]).map(e=>e[1]);return(e,r=0,s=0)=>{let a=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];r.length>1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){a.push(t);break}}if(a.length>=50+s)break}}var l=a.slice(s);if(!l.length)return[];let h=Array.from(l);return/sentryWrapped/.test(c(h).function||"")&&h.pop(),h.reverse(),o.test(c(h).function||"")&&(h.pop(),o.test(c(h).function||"")&&h.pop()),h.slice(0,50).map(e=>({...e,filename:e.filename||c(h).filename,function:e.function||n}))}}function a(e){return Array.isArray(e)?s(...e):e}function c(e){return e[e.length-1]||{}}let u="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function h(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function d(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}},6896:(e,t,r)=>{"use strict";r.d(t,{Iy:()=>u,MI:()=>s,TC:()=>c,kM:()=>a});var n=r(30872),i=r(88453),o=r(9887);let s=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let r=function(e){let t;if(!e)return;let r=e.match(s);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),a=(0,n.yD)(t);if(!r?.traceId)return{traceId:(0,o.e)(),sampleRand:Math.random()};let c=function(e,t){let r=(0,i.i)(t?.sample_rand);if(void 0!==r)return r;let n=(0,i.i)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*n:n+Math.random()*(1-n):Math.random()}(r,a);a&&(a.sample_rand=c.toString());let{traceId:u,parentSpanId:l,parentSampled:h}=r;return{traceId:u,parentSpanId:l,sampled:h,dsc:a||{},sampleRand:c}}function c(e=(0,o.e)(),t=(0,o.Z)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function u(e=(0,o.e)(),t=(0,o.Z)(),r){return`00-${e}-${t}-${r?"01":"00"}`}},6941:(e,t,r)=>{"use strict";r.d(t,{E1:()=>d,Ef:()=>o,JD:()=>a,Lc:()=>f,Le:()=>h,Sn:()=>u,fs:()=>c,i_:()=>n,jG:()=>p,sy:()=>i,uT:()=>s,xc:()=>l});let n="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",s="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",h="sentry.custom_span_name",d="sentry.profile_id",p="sentry.exclusive_time",f="sentry.link.type"},8032:(e,t,r)=>{var n=r(2272);(()=>{"use strict";var t={281:(e,t,r)=>{var n=r(469),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var s=l(r);h&&(s=s.concat(h(r)));for(var a=c(t),m=c(r),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||n&&n[y]||m&&m[y]||a&&a[y])){var v=d(r,y);try{u(t,y,v)}catch(e){}}}}return t}},355:(e,t,r)=>{r.d(t,{S:()=>i,Z:()=>o});var n=r(689),i=(0,n.createContext)(void 0);let o=function(){var e=(0,n.useContext)(i);if(!e)throw Error("When using `useUser`, the page must be wrapped in `withUser`.");return e}},324:e=>{e.exports=r(72926)},610:e=>{e.exports=r(41091)},853:e=>{e.exports=r(11522)},689:e=>{e.exports=r(21462)},469:e=>{e.exports=r(28153)}},i={};function o(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}};return t[e](n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{o.r(s),o.d(s,{AuthAction:()=>e,getUserFromCookies:()=>N,init:()=>M,setAuthCookies:()=>L,unsetAuthCookies:()=>D,useUser:()=>m.Z,verifyIdToken:()=>U,withUser:()=>P,withUserSSR:()=>j,withUserTokenSSR:()=>F});var e,t=o(324),r=o(610);let i=function(){return"undefined"!=typeof window};var a=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},c=!1;let u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(c){var r=i()?["%cnext-firebase-auth","background: #ffa000; color: #fff; border-radius: 2px; padding: 2px 6px"]:["next-firebase-auth:"];console.log.apply(console,a(a([],r,!1),e,!1))}};var l,h={debug:!1,onVerifyTokenError:function(e){},onTokenRefreshError:function(e){},cookies:{httpOnly:!0,maxAge:6048e5,overwrite:!0,path:"/",sameSite:"strict",secure:!0,signed:!0}},d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=function(e){u("[init] Setting config with provided value:",d(d(d({},e),{cookies:d(d({},e.cookies),{keys:["hidden"]})}),e.firebaseAdminInitConfig&&{firebaseAdminInitConfig:d(d({},e.firebaseAdminInitConfig),e.firebaseAdminInitConfig.credential&&{credential:d(d({},e.firebaseAdminInitConfig.credential),{privateKey:"hidden",clientEmail:"hidden"})})}));var t,r,o,s,a=e.cookies,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["cookies"]),p=d(d(d({},h),c),{cookies:d(d({},h.cookies),a||{})}),f=(t=[],p.tokenChangedHandler&&(p.loginAPIEndpoint&&t.push('The "loginAPIEndpoint" setting should not be set if you are using a "tokenChangedHandler".'),p.logoutAPIEndpoint&&t.push('The "logoutAPIEndpoint" setting should not be set if you are using a "tokenChangedHandler".'),p.onLoginRequestError&&t.push('The "onLoginRequestError" setting should not be set if you are using a "tokenChangedHandler".'),p.onLogoutRequestError&&t.push('The "onLogoutRequestError" setting should not be set if you are using a "tokenChangedHandler".')),p.firebaseClientInitConfig&&p.firebaseClientInitConfig.apiKey||t.push('The "firebaseClientInitConfig.apiKey" value is required.'),p.firebaseAuthEmulatorHost&&p.firebaseAuthEmulatorHost.startsWith("http")&&t.push("The firebaseAuthEmulatorHost should be set without a prefix (e.g., localhost:9099)"),0>(r=["function","undefined"]).indexOf(typeof p.onVerifyTokenError)&&t.push('Invalid next-firebase-auth options: The "onVerifyTokenError" setting must be a function.'),0>r.indexOf(typeof p.onTokenRefreshError)&&t.push('Invalid next-firebase-auth options: The "onTokenRefreshError" setting must be a function.'),0>r.indexOf(typeof p.onLoginRequestError)&&t.push('Invalid next-firebase-auth options: The "onLoginRequestError" setting must be a function.'),0>r.indexOf(typeof p.onLogoutRequestError)&&t.push('Invalid next-firebase-auth options: The "onLogoutRequestError" setting must be a function.'),s=Array.isArray(o=p.cookies.keys)?o.length&&(!o.filter||o.filter(function(e){return void 0!==e}).length):!!o,i()?(p.tokenChangedHandler||(p.loginAPIEndpoint||t.push('The "loginAPIEndpoint" setting is required.'),p.logoutAPIEndpoint||t.push('The "logoutAPIEndpoint" setting is required.')),p.firebaseAdminInitConfig&&p.firebaseAdminInitConfig.credential&&p.firebaseAdminInitConfig.credential.privateKey&&t.push('The "firebaseAdminInitConfig" private key setting should not be available on the client side.'),s&&t.push('The "cookies.keys" setting should not be available on the client side.')):(p.cookies.name||t.push('The "cookies.name" setting is required on the server side.'),p.firebaseAuthEmulatorHost&&(n.env.FIREBASE_AUTH_EMULATOR_HOST?n.env.FIREBASE_AUTH_EMULATOR_HOST!==p.firebaseAuthEmulatorHost&&t.push('The "FIREBASE_AUTH_EMULATOR_HOST" environment variable should be the same as the host set in the config'):t.push('The "FIREBASE_AUTH_EMULATOR_HOST" environment variable should be set if you are using the "firebaseAuthEmulatorHost" option')),(!p.cookies.maxAge||p.cookies.maxAge>12096e5)&&t.push('The "cookies.maxAge" setting must be less than two weeks ('.concat(12096e5," ms)."))),{isValid:0===t.length,errors:t}),m=f.isValid,g=f.errors;if(!m)throw Error("Invalid next-firebase-auth options: ".concat(g.join(" ")));l=p},f=function(){if(!l)throw Error("next-firebase-auth must be initialized before rendering.");return l};!function(e){e.RENDER="render",e.SHOW_LOADER="showLoader",e.RETURN_NULL="returnNull",e.REDIRECT_TO_LOGIN="redirectToLogin",e.REDIRECT_TO_APP
1="redirectToApp"}(e||(e={}));var m=o(355),g=o(281),y=o.n(g),v=["aud","auth_time","email","email_verified","exp","firebase","iat","iss","name","phone_number","picture","sub","uid","user_id"],_=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(r){v.includes(r)||(t[r]=e[r])}),t},b=function(){return(b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},w=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},S=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var u=[a,c];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}};let E=function(e){var t=void 0===e?{}:e,r=t.firebaseUserClientSDK,n=t.firebaseUserAdminSDK,s=t.serializedUser,a=t.clientInitialized,c=void 0!==a&&a,u=t.token,l=void 0===u?null:u,h=t.claims;if([r,n,s].reduce(function(e,t){return t?e+1:e},0)>1)throw Error('createUser cannot receive more than one of the following properties: "firebaseUserClientSDK", "firebaseUserAdminSDK", "serializedUser"');if(c&&(n||s))throw Error('The "clientInitialized" value can only be true when called with the "firebaseUserClientSDK" property or no user.');if(h&&(n||s))throw Error('The "claims" value can only be set in conjunction with the "firebaseUserClientSDK" property.');if(l&&!n)throw Error('The "token" value can only be set if the "firebaseUserAdminSDK" property is defined.');var d={},p=null,m=null,g=!1,y=null,v=null,E=null,k=null,I=function(){return w(void 0,void 0,void 0,function(){return S(this,function(e){return[2,null]})})},C=function(){return w(void 0,void 0,void 0,function(){return S(this,function(e){return[2]})})},T=null;if(r){if(i()){var x=o(324).getApp,A=o(610),O=A.getAuth,R=A.signOut,P=f().firebaseClientAppName;C=function(){return w(void 0,void 0,void 0,function(){return S(this,function(e){return[2,R(O(x(P)))]})})}}d=_(h),p=r.uid,m=r.email,g=r.emailVerified,v=r.phoneNumber,E=r.displayName,k=r.photoURL,y=r.tenantId,I=function(e){return w(void 0,void 0,void 0,function(){return S(this,function(t){return[2,r.getIdToken(e)]})})},T=null}else if(n)d=_(n),p=n.uid,m=n.email||null,g=n.email_verified||!1,v=n.phone_number||null,E=n.name,y=n.firebase&&n.firebase.tenant||null,k=n.picture||null,I=function(){return w(void 0,void 0,void 0,function(){return S(this,function(e){return[2,l]})})},T=l;else if(s){var M=JSON.parse(s);d=M.claims||{},p=M.id||null,m=M.email||null,g=M.emailVerified,y=M.tenantId||null,v=M.phoneNumber||null,E=M.displayName||null,k=M.photoURL||null,I=function(){return w(void 0,void 0,void 0,function(){return S(this,function(e){return[2,M._token||null]})})},T=M._token||null}return{id:p,email:m,emailVerified:g,tenantId:y,phoneNumber:v,displayName:E,photoURL:k,claims:d,getIdToken:I,clientInitialized:c,firebaseUser:r||null,signOut:C,serialize:function(e){var t=(void 0===e?{}:e).includeToken;return JSON.stringify(b({id:p,claims:d,email:m,emailVerified:g,tenantId:y,phoneNumber:v,displayName:E,photoURL:k,clientInitialized:c},(void 0===t||t)&&{_token:T}))}}};var k=o(689),I=function(){return(I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},C=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})},T=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){var u=[a,c];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},x=function(){return(x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},A=function(e){var t=e.ctx,r=e.user,n=e.redirectDestination;if("function"==typeof n){var i=n({ctx:t,user:r});return A({ctx:t,user:r,redirectDestination:i})}return"string"==typeof n?{destination:n,permanent:!1}:"object"==typeof n?x({permanent:!1},n):void 0},O=function(e){var t=e.redirectConfigName,r=e.redirectURL,n=A({ctx:e.ctx,user:e.user,redirectDestination:r||f()[t]});if(!n||"string"!=typeof n&&!("destination"in n))throw Error('The "'.concat(t,'" must be set to a non-empty string, an object literal containing "destination", or a function that returns either.'));return n},R=function(){return(R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let P=function(n){var s=void 0===n?{}:n,a=s.whenAuthed,c=void 0===a?e.RENDER:a,l=s.whenUnauthedBeforeInit,h=void 0===l?e.RENDER:l,d=s.whenUnauthedAfterInit,p=void 0===d?e.RENDER:d,m=s.whenAuthedBeforeRedirect,g=void 0===m?e.RETURN_NULL:m,v=s.appPageURL,b=s.authPageURL,w=s.LoaderComponent,S=void 0===w?null:w;return function(n){u('[withUser] Calling "withUser".');try{var s=o(689),a=o(689),l=a.useEffect,d=a.useCallback,m=a.useMemo,w=o(853).useRouter,x=o(355).S}catch(e){throw"MODULE_NOT_FOUND"===e.code?Error('The dependencies "react" and "next" are required when calling `withUser`.'):e}var A=function(o){var a=o.userSerialized,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(o,["userSerialized"]),A=m(function(){return E({serializedUser:a})},[a]),P=(J=(K=(0,k.useState)({user:null,claims:{},initialized:!1}
1))[0],X=K[1],Z=(Q=(0,k.useState)(!1))[0],ee=Q[1],(0,k.useEffect)(function(){var e=!1,n=f().firebaseClientAppName,i=(0,t.getApp)(n),o=(0,r.onIdTokenChanged)((0,r.getAuth)(i),function(t){return C(void 0,void 0,void 0,function(){var n;return T(this,function(i){switch(i.label){case 0:return u("[withUser] The Firebase ID token changed. New Firebase user:",t),ee(!1),n={},t?[4,(0,r.getIdTokenResult)(t)]:[3,2];case 1:n=_(i.sent().claims),i.label=2;case 2:var o;return X({user:t,claims:n,initialized:!0}),[4,(o=t||void 0,C(void 0,void 0,void 0,function(){var e,t;return T(this,function(r){return e=f().tokenChangedHandler,t=E({firebaseUserClientSDK:o,clientInitialized:!0}),e?(u('[withUser] Calling the custom "tokenChangedHandler" provided in the config.'),[2,e(t)]):[2,C(void 0,void 0,void 0,function(){var e,r,n,i,o,s,a,c,l,h;return T(this,function(d){switch(d.label){case 0:return r=(e=f()).loginAPIEndpoint,n=e.logoutAPIEndpoint,i=e.onLoginRequestError,o=e.onLogoutRequestError,t.id?(u("[withUser] Calling the login endpoint."),[4,t.getIdToken()]):[3,11];case 1:if(a=d.sent(),!r)throw Error("Invalid config.");d.label=2;case 2:return d.trys.push([2,6,,10]),[4,fetch(r,{method:"POST",headers:{Authorization:a||void 0},credentials:"include"})];case 3:return(s=d.sent()).ok?[3,5]:[4,s.json()];case 4:throw l=d.sent(),u("[withUser] The call to the login endpoint failed with status ".concat(s.status," and response: ").concat(JSON.stringify(l))),Error("Received ".concat(s.status," response from login API endpoint: ").concat(JSON.stringify(l)));case 5:case 9:return[3,10];case 6:return c=d.sent(),i&&c instanceof Error?[4,i(c)]:[3,8];case 7:return d.sent(),[3,9];case 8:throw c;case 10:return[3,20];case 11:if(u("[withUser] Calling the logout endpoint."),!n)throw Error("Invalid config.");d.label=12;case 12:return d.trys.push([12,16,,20]),[4,fetch(n,{method:"POST",credentials:"include"})];case 13:return(s=d.sent()).ok?[3,15]:[4,s.json()];case 14:throw l=d.sent(),u("[withUser] The call to the logout endpoint failed with status ".concat(s.status," and response: ").concat(JSON.stringify(l))),Error("Received ".concat(s.status," response from logout API endpoint: ").concat(JSON.stringify(l)));case 15:case 19:return[3,20];case 16:return h=d.sent(),o&&h instanceof Error?[4,o(h)]:[3,18];case 17:return d.sent(),[3,19];case 18:throw h;case 20:return[2,s]}})})]})}))];case 3:return i.sent(),e?u("[withUser] Component unmounted before completing the auth API request."):(ee(!0),u("[withUser] Completed the auth API request.")),[2]}})})});return function(){o(),e=!0}},[]),I(I({},J),{authRequestCompleted:Z})),M=P.user,N=P.claims,L=P.initialized,D=P.authRequestCompleted,U=m(function(){return E({firebaseUserClientSDK:M||void 0,clientInitialized:L,claims:N})},[M,L,N]),j=L?U:A,F=!!j.id,B=j.clientInitialized,H=F&&c===e.REDIRECT_TO_APP,z=H&&i()&&D,$=!F&&(!B&&h===e.REDIRECT_TO_LOGIN||B&&p===e.REDIRECT_TO_LOGIN),q=$&&i()&&(h===e.REDIRECT_TO_LOGIN||D),V=w(),G=d(function(e){var t=e.basePath,r=e.destination;!1===t?window.location.replace(r):V.replace(r)},[V]),W=d(function(){var e;u("[withUser] Redirecting to app."),G(O({redirectConfigName:"appPageURL",redirectURL:(e={user:j,redirectURL:v}).redirectURL,user:e.user,ctx:e.ctx}))},[j,G]),Y=d(function(){var e;u("[withUser] Redirecting to login."),G(O({redirectConfigName:"authPageURL",redirectURL:(e={user:j,redirectURL:b}).redirectURL,user:e.user,ctx:e.ctx}))},[j,G]);l(function(){i()&&(z?W():q&&Y())},[z,q,W,Y]);var K,J,X,Q,Z,ee,et,er=S?s.createElement(S,null):null,en=s.createElement(x.Provider,{value:j},s.createElement(n,R({},y)));return et=H?g===e.RENDER?en:g===e.SHOW_LOADER?er:null:$?h===e.RETURN_NULL?null:h===e.SHOW_LOADER?er:en:F||D?en:h===e.SHOW_LOADER?er:h===e.RETURN_NULL?null:en,u("[withUser] Set user to:",j),et};return A.displayName="WithUserHOC",y()(A,n),A}};var M=function(e){c=!0===(null==e?void 0:e.debug),p(e),i()&&function(){var e=f(),n=e.firebaseClientInitConfig,i=e.firebaseAuthEmulatorHost,o=e.tenantId,s=e.firebaseClientAppName;if((0,t.getApps)().length)u("[init] Did not initialize the Firebase JS SDK because an app already exists.");else{if(!n)throw Error('If not initializing the Firebase JS SDK elsewhere, you must provide "firebaseClientInitConfig" to next-firebase-auth.');(0,t.initializeApp)(n,s),o&&((0,r.getAuth)().tenantId=o),u("[init] Initialized the Firebase JS SDK.")}i&&(0,r.connectAuthEmulator)((0,r.getAuth)((0,t.getApp)(s)),"http://".concat(i))}()},N=function(){throw Error('"getUserFromCookies" can only be called server-side.')},L=function(){throw Error('"setAuthCookies" can only be called server-side.')},D=function(){throw Error('"unsetAuthCookies" can only be called server-side.')},U=function(){throw Error('"verifyIdToken" can only be called server-side.')},j=function(){throw Error('"withUserSSR" can only be called server-side.')},F=function(){throw Error('"withUserTokenSSR" can only be called server-side.')}})(),e.exports=s})()},9536:(e,t,r)=>{"use strict";r.d(t,{A:()=>aD});var n,i,o,s=r(72076).Buffer,a=r(2272);if("undefined"==typeof window){var c={hostname:""};n6={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c,referrer:""},screen:{width:0,height:0},location:c,addEventListener:function(){},removeEventListener:function(){}}}else n6=window;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){l(o,n,i,s,a,"next",e)}function a(e){l(o,n,i,s,a,"throw",e)}s(void 0)})}}function d(e,t,r){return(d=S()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_(i,r.prototype),i}).apply(null,arguments)}function p(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function y(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function v(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function E(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var c=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function I(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var C=Object.defineProperty,T=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?C(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},x=Object.defineProperty,A=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},O=function(e){return 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",e}(O||{}),R={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},P={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},M={};function N(e){if(M[e])return M[e];var t=globalThis[e],r=t.prototype,n=e in R?R[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in P?P[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return M[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return M[e]=u}catch(e){return r}}var L={};function D(e,t,r){var n,i=e+"."+String(r);if(L[i])return L[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(N(e),r))?void 0:n.get;return o?(L[i]=o,o.call(t)):t[r]}var U={childNodes:function(e){return D("Node",e,"childNodes")},parentNode:function(e){return D("Node",e,"parentNode")},parentElement:function(e){return D("Node",e,"parentElement")},textContent:function(e){return D("Node",e,"textContent")},host:function(e){return e&&"host"in e?D("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?D("Element",e,"shadowRoot"):null}};
1function j(e){return e.nodeType===e.ELEMENT_NODE}function F(e){var t=e&&"host"in e&&"mode"in e&&U.host(e)||null;return!!(t&&"shadowRoot"in t&&U.shadowRoot(t)===e)}function B(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function H(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return z(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function z(e,t){if("styleSheet"in e){var r;try{r=H(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?Z(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?Z(n,t):n}var $=function(){function e(){A(this,"idNodeMap",new Map),A(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function q(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&V(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function V(e){return e.toLowerCase()}var G="__rrweb_original__";function W(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?V(t):null}function Y(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var K=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,J=/^(?:[a-z+]+:)?\/\//i,X=/^www\..*/i,Q=/^(data:)([^,]*),(.*)/i;function Z(e,t){return(e||"").replace(K,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;if(J.test(a)||X.test(a)||Q.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,d,p=E(l);!(d=p()).done;){var f=d.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function ee(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var et=1,er=RegExp("[^a-z0-9-_:]");function en(){return et++}var ei=/^[^ \t\n\r\u000c]+/,eo=/^[, \t\n\r\u000c]+/,es=new WeakMap;function ea(e,t){return t&&""!==t.trim()?ec(e,t):t}function ec(e,t){var r=es.get(e);if(r||(r=e.createElement("a"),es.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eu(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ea(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return ea(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eo),!(r>=t.length);
1){var o=n(ei);if(","===o.slice(-1))o=ea(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ea(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else if(","===c){r+=1,i.push((o+s).trim());break}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return Z(n,ec(e));else if("object"===t&&"data"===r)return ea(e,n);return n}function el(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eh(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eh(U.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eh(U.parentNode(e),t,r)}function ed(e,t,r,n){var i;if(j(e)){if(i=e,!U.childNodes(i).length)return!1}else{if(null===U.parentElement(e))return!1;i=U.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eh(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function ep(e){return null==e?"":e.toLowerCase()}function ef(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,d=t.maskInputOptions,p=void 0===d?{}:d,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,_=void 0===v?{}:v,b=t.inlineImages,w=void 0!==b&&b,S=t.recordCanvas,k=void 0!==S&&S,I=t.onSerialize,C=t.onIframeLoad,T=t.iframeLoadTimeout,x=void 0===T?5e3:T,A=t.onStylesheetLoad,R=t.stylesheetLoadTimeout,P=void 0===R?5e3:R,M=t.keepIframeSrcFn,N=void 0===M?function(){return!1}:M,L=t.newlyAddedElement,D=t.cssCaptured,z=t.needsMask,$=t.preserveWhiteSpace,K=void 0===$||$;z||(z=ed(e,s,a,void 0===z));var J=function(e,t){var r,n,i,o,s,a,c,u,l,h,d,p=t.doc,f=t.mirror,m=t.blockClass,g=t.blockSelector,v=t.needsMask,_=t.inlineStylesheet,b=t.maskInputOptions,w=t.maskTextFn,S=t.maskInputFn,E=t.dataURLOptions,k=t.inlineImages,I=t.recordCanvas,C=t.keepIframeSrcFn,T=t.newlyAddedElement,x=t.cssCaptured,A=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(p,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:O.Document,childNodes:[],compatMode:e.compatMode};return{type:O.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:O.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,d=t.inlineImages,p=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=t.rootId,v=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),_=function(e){if(y(e,HTMLFormElement))return"form";var t=V(e.tagName);return er.test(t)?"div":t}(e),b={},w=e.attributes.length,S=0;S<w;S++){var E=e.attributes[S];el(_,E.name,E.value)||(b[E.name]=eu(n,_,V(E.name),E.value))}if("link"===_&&s){var k=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),I=null;k&&(I=H(k)),I&&(delete b.rel,delete b.href,b._cssText=I)}if("style"===_&&e.sheet){var C=H(e.sheet);C&&(e.childNodes.length>1&&(C=(function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=ee(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=ee(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),d=s.split(h),p=-1;if(2===d.length)p=d[0].length;else if(d.length>2&&""===d[0]&&""!==n[c-1].textContent)p=s.indexOf(h,1);else if(1===d.length){if(h=h.substring(0,h.length-1),(d=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(p=s.indexOf(h));if(d.length>=2&&l>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var m=ee(f).length;p=s.indexOf(h,m)}-1===p&&(p=d[0].length)}if(-1!==p){for(var g=Math.floor(p/a);g>0&&g<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var y=ee(e.substring(0,g),r);if(y.length===p){i.push(e.substring(0,g)),e=e.substring(g),s=s.substring(p);break}y.length<p?g+=Math.max(1,Math.floor((p-y.length)/a)):g-=Math.max(1,Math.floor((y.length-p)*a))}break}}}}return i.push(e),i})(C,e).join("/* rr_split */")),b._cssText=C)}if("input"===_||"textarea"===_||"select"===_){var T=e.value,x=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&T?b.value=q({element:e,type:W(e),tagName:_,value:T,maskInputOptions:c,maskInputFn:u}):x&&(b.checked=x)}if("option"===_&&(e.selected&&!c.select?b.selected=!0:delete b.selected),"dialog"===_&&e.o
1pen&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===_&&p){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;if(new Uint32Array((G in i?i[G]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var A=e.toDataURL(h.type,h.quality),R=n.createElement("canvas");R.width=e.width,R.height=e.height,A!==R.toDataURL(h.type,h.quality)&&(b.rr_dataURL=A)}}if("img"===_&&d){n4||(n5=(n4=n.createElement("canvas")).getContext("2d"));var P=e.currentSrc||e.getAttribute("src")||"<unknown-src>",M=e.crossOrigin,N=function(){e.removeEventListener("load",N);try{n4.width=e.naturalWidth,n4.height=e.naturalHeight,n5.drawImage(e,0,0),b.rr_dataURL=n4.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?N():e.addEventListener("load",N);return}console.warn("Cannot inline img src="+P+"! Error: "+t)}"anonymous"===e.crossOrigin&&(M?b.crossOrigin=M:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?N():e.addEventListener("load",N)}if("audio"===_||"video"===_){var L=b;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(!(void 0!==m&&m)&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),U=D.width,j=D.height;b={class:b.class,rr_width:""+U+"px",rr_height:""+j+"px"}}"iframe"!==_||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:O.Element,tagName:_,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:v,rootId:g,isCustom:r}}(e,{doc:p,blockClass:m,blockSelector:g,inlineStylesheet:_,maskInputOptions:void 0===b?{}:b,maskInputFn:S,dataURLOptions:void 0===E?{}:E,inlineImages:k,recordCanvas:I,keepIframeSrcFn:C,newlyAddedElement:void 0!==T&&T,rootId:A});case e.TEXT_NODE:return r=e,i=(n={doc:p,needsMask:v,maskTextFn:w,rootId:A,cssCaptured:void 0!==x&&x}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,u=(c=U.parentNode(r))&&c.tagName,l="",h="STYLE"===u||void 0,(d="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=U.textContent(r),h&&l&&(l=Z(l,ec(n.doc)))),!h&&!d&&l&&i&&(l=o?o(l,U.parentElement(r)):l.replace(/[\S]/g,"*")),{type:O.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:O.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:O.Comment,textContent:U.textContent(e)||"",rootId:A};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,dataURLOptions:_,inlineImages:w,recordCanvas:k,keepIframeSrcFn:N,newlyAddedElement:void 0!==L&&L,cssCaptured:void 0!==D&&D});if(!J)return console.warn(e,"not serialized"),null;eo=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===O.Comment)return!0;if(e.type===O.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Y(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ep(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ep(e.attributes.name)||"icon"===ep(e.attributes.rel)||"apple-touch-icon"===ep(e.attributes.rel)||"shortcut icon"===ep(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ep(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ep(e.attributes.property).match(/^(og|twitter|fb):/)||ep(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ep(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ep(e.attributes.name)||"googlebot"===ep(e.attributes.name)||"bingbot"===ep(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ep(e.attributes.name)||"generator"===ep(e.attributes.name)||"framework"===ep(e.attributes.name)||"publisher"===ep(e.attributes.name)||"progid"===ep(e.attributes.name)||ep(e.attributes.property).match(/^article:/)||ep(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ep(e.attributes.name)||"yandex-verification"===ep(e.attributes.name)||"csrf-token"===ep(e.attributes.name)||"p:domain_verify"===ep(e.attributes.name)||"verify-v1"===ep(e.attributes.name)||"verification"===ep(e.attributes.name)||"shopify-checkout-api-token"===ep(e.attributes.name)))return!0}}return!1}(J,g)&&(K||J.type!==O.Text||J.textContent.replace(/^\s+|\s+$/gm,"").length)?en():-2;var X=Object.assign(J,{id:eo});if(n.add(e,X),-2===eo)return null;I&&I(e);var Q=!u;if(X.type===O.Element){Q=Q&&!X.needBlock,delete X.needBlock;var et=U.shadowRoot(e);et&&B(et)&&(X.isShadowHost=!0)}if((X.type===O.Document||X.type===O.Element)&&Q){g.headWhitespace&&X.type===O.Element&&"head"===X.tagName&&(K=!1);var ei={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:k,preserveWhiteSpace:K,onSerialize:I,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:N,cssCaptured:!1};if(X.type===O.Element&&"textarea"===X.tagName&&void 0!==X.attributes.value);else{X.type===O.Element&&void 0!==X.attributes._cssText&&"string"==typeof X.attributes._cssText&&(ei.cssCaptured=!0);for(var eo,es,ea=E(Array.from(U.childNodes(e)));!(es=ea()).done;){var eh=ef(es.value,ei);eh&&X.childNodes.push(eh)}}var em=null;if(j(e)&&(em=U.shadowRoot(e)))for(var eg,ey=E(Array.from(U.childNodes(em)));!(eg=ey()).done;){var ev=ef(eg.value,ei);ev&&(B(em)&&(ev.isShadow=!0),X.childNodes.push(ev))}}var e_=U.parentNode(e);return e_&&F(e_)&&B(e_)&&(X.isShadow=!0),X.type===O.Element&&"iframe"===X.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var 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,function(){var t=e.contentDocument;if(t&&C){var r=ef(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:k,preserveWhiteSpace:K,onSerialize:I,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:N});r&&C(e,r)}},x),X.type===O.Element&&"link"===X.tagName&&"string"==typeof X.attributes.rel&&("stylesheet"===X.attributes.rel||"preload"===X.attributes.rel&&"string"==typeof X.attributes.href&&"css"===Y(X.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(A){var t=ef(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:_,inlineImages:w,recordCanvas:k,preserveWhiteSpace:K,onSerialize:I,onIframeLoad:C,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:P,keepIframeSrcFn:N});t&&A(e,t)}},P),X}var em={exports:{}},eg=String,ey=function(){return{isColorSupported:!1,reset:eg,bold:eg,dim:eg,italic:eg,underline:eg,inverse:eg,hidden:eg,strikethrough:eg,black:eg,red:eg,green:eg,yellow:eg,blue:eg,magenta:eg,cyan:eg,white:eg,gray:eg,bgBlack:eg,bgRed:eg,bgGreen:eg,bgYellow:eg,bgBlue:eg,bgMagenta:eg,bgCyan:eg,bgWhite:eg}};em.exports=ey(),em.exports.createColors=ey;var ev=em.exports,e_=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return y(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
1return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eb=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}g(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=ev.isColorSupported),e_&&e&&(i=e_(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=ev.createColors(!0),l=u.bold,h=u.gray,d=u.red;t=function(e){return l(d(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));eb.default=eb;var ew={};ew.isClean=Symbol("isClean"),ew.my=Symbol("my");var eS={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eE=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return eS[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=eS[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function ek(e,t){new eE(t).stringify(e)}eE.default=eE,ek.default=ek;var eI=ew.isClean,eC=ew.my,eT=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eI]=!1,this[eC]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=E(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eb(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[eI]){this[eI]=!1;for(var e=this;e=e.parent;)e[eI]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new eE().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=E(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":b(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ek),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},p(e,[{key:"proxyOf",get:function(){return this}}]),e}();eT.default=eT;var ex=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return g(t,e),p(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(eT);ex.default=ex;var eA=e_.SourceMapConsumer,eO=e_.SourceMapGenerator,eR=e_.existsSync,eP=e_.readFileSync,eM=e_.dirname,eN=e_.join,eL=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eM(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eA(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),s?s.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":b(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=eM(e),eR(e))return this.mapFile=e,eP(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(y(t,eA))return eO.fromSourceMap(t).toString();else if(y(t,eO))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=eN(eM(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();eL.default=eL;var eD=e_.SourceMapConsumer,eU=e_.SourceMapGenerator,ej=e_.fileURLToPath,eF=e_.pathToFileURL,eB=e_.isAbsolute,eH=e_.resolve,ez=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,e$=Symbol("fromOffsetCache"),eq=!!(eD&&eU),eV=!!(eH&&eB),eG=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!eV||/^\w+:\/\//.test(t.from)||eB(t.from)?this.file=t.from:this.file=eH(t.from)),eV&&eq){var r=new eL(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ez(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new eb(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new eb(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(eF&&(i.input.url=eF(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[e$])a=this[e$];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[e$]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:eH(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=eB(a.source)?eF(a.source):new URL(a.source,this.map.consumer().sourceRoot||eF(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(ej)c.file=ej(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},p(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();eG.default=eG,e_&&e_.registerInput&&e_.registerInput(eG);var eW=e_.SourceMapConsumer,eY=e_.SourceMapGenerator,eK=e_.dirname,eJ=e_.relative,eX=e_.resolve,eQ=e_.sep,eZ=e_.pathToFileURL,e0=!!(eW&&eY),e1=!!(eK&&eX&&eJ&&eQ),e2=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=E(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||eK(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new eW(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),e1&&e0&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=eY.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new eY({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new eY({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?eK(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eK(eX(r,this.mapOpts.annotation)));var n=eJ(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new eG(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(eZ){var r=eZ(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===eQ&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),e3=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return g(t,e),t}(eT);e3.default=e3;var e6=ew.isClean,e8=ew.my,e4=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=E(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=E(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=E(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=E(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=E(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(n9(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=E(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=E(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ex(e)]}else if(e.selector)e=[new n7(e)];else if(e.name)e=[new ie(e)];else if(e.text)e=[new e3(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[e8]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[e6]&&function e(t){if(t[e6]=!1,t.proxyOf.nodes)for(var r,n=E(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=E(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=E(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=E(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},p(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(eT);e4.registerParse=function(e){n9=e},e4.registerRule=function(e){n7=e},e4.registerAtRule=function(e){ie=e},e4.registerRoot=function(e){it=e},e4.default=e4,e4.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ie.prototype):"rule"===e.type?Object.setPrototypeOf(e,n7.prototype):"decl"===e.type?Object.setPrototypeOf(e,ex.prototype):"comment"===e.type?Object.setPrototypeOf(e,e3.prototype):"root"===e.type&&Object.setPrototypeOf(e,it.prototype),e[e8]=!0,e.nodes&&e.nodes.forEac
1h(function(e){e4.rebuild(e)})};var e5=function(e){function t(t){var r;return(r=e.call(this,f({type:"document"},t))||this).nodes||(r.nodes=[]),r}return g(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ir(new ii,this,e).stringify()},t}(e4);e5.registerLazyResult=function(e){ir=e},e5.registerProcessor=function(e){ii=e},e5.default=e5;var e9=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();e9.default=e9;var e7=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new e9(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},p(e,[{key:"content",get:function(){return this.css}}]),e}();e7.default=e7;var te=/[\t\n\f\r "#'()/;[\\\]{}]/g,tt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tr=/.[\r\n"'(/\\]/,tn=/[\da-f]/i,ti=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}g(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(e4);ti.default=ti,e4.registerAtRule(ti);var to=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}g(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=E(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new io(new is,this,e).stringify()},t}(e4);to.registerLazyResult=function(e){io=e},to.registerProcessor=function(e){is=e},to.default=to,e4.registerRoot(to);var ts={comma:function(e){return ts.split(e,[","],!0)},space:function(e){return ts.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=E(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}};ts.default=ts;var ta=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return g(t,e),p(t,[{key:"selectors",get:function(){return ts.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(e4);ta.default=ta,e4.registerRule(ta);var tc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=d.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",d.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,m];break;
1case 40:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=d.indexOf(")",n+1)))if(p||t){n=m;break}else v("bracket");for(c=n;92===d.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||tr.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=d.indexOf(i,n+1)))if(p||t){n=m+1;break}else v("string");for(c=n;92===d.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case 64:te.lastIndex=m+1,te.test(d),n=0===te.lastIndex?d.length-1:te.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===d.charCodeAt(n+1);)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tn.test(d.charAt(n)))){for(;tn.test(d.charAt(n+1));)n+=1;32===d.charCodeAt(n+1)&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:47===r&&42===d.charCodeAt(m+1)?(0===(n=d.indexOf("*/",m+2)+1)&&(p||t?n=d.length:v("comment")),h=["comment",d.slice(m,n+1),m,n]):(tt.lastIndex=m+1,tt.test(d),n=0===tt.lastIndex?d.length-1:tt.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h)),m=n}return m++,h}},position:function(){return m}}},tu={empty:!0,space:!0},tl=function(){function e(e){this.input=e,this.root=new to,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new ti;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=E(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new e3;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=tc(this.input)},t.decl=function(e,t){var r,n,i=new ex;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new ta;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tu[a]||tu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new ta;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function th(e,t){var r=new tl(new eG(e,t));try{r.parse()}catch(e){throw e}return r.root}th.default=th,e4.registerParse(th);var td=ew.isClean,tp=ew.my,tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tm={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},tg={Once:!0,postcssPlugin:!0,prepare:!0};function ty(e){return(void 0===e?"undefined":b(e))==="object"&&"function"==typeof e.then}function tv(e){var t=!1,r=tf[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function t_(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tv(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function tb(e){return e[td]=!1,e.nodes&&e.nodes.forEach(function(e){return tb(e)}),e}var tw={},tS=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":b(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tb(r);else if(y(r,e)||y(r,e7))i=tb(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=th;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[tp]&&e4.rebuild(i)}this.result=new e7(t,i,n),this.helpers=f({},tw,{postcss:tw,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.prepare?f({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=E(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":b(i))==="object")for(var o in i){if(!tm[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!tg[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return k(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!ty(n=e.runOnRoot(r)))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[td])return[3,14];o[td]=!0,s=[t_(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(!ty(a=e.visitTick(s)))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return k(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=E(e.listeners.OnceExit),p.label=15;case 15:if((d=h()).done)return[3,18];return[5,I(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(ty(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ek;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new e2(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=E(this.plugins);!(e=t()).done;){var r=e.value;if(ty(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[td];)n[td]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=E(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=E(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(ty(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[td]){a[td]=!0,e.push(t_(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[td]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[td]=!0;for(var r,n=tv(e),i=E(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[td]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},p(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();tS.registerPostcss=function(e){tw=e},tS.default=tS,to.registerLazyResult(tS),e5.registerLazyResult(tS);var tE=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new e7(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new e2(ek,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},p(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=th(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();tE.default=tE;var tk=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=E(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":b(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":b(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":b(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tS(this,e,t):new tE(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tI(e,t){if(Array.isArray(e))return e.map(function(e){return tI(e)});var r=e.inputs,n=v(e,["inputs"]);if(r){t=[];for(var i,o=E(r);!(i=o()).done;){var s=i.value,a=f({},s,{__proto__:eG.prototype});a.map&&(a.map=f({},a.map,{__proto__:eL.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tI(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=v(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new to(n);if("decl"===n.type)return new ex(n);if("rule"===n.type)return new ta(n);if("comment"===n.type)return new e3(n);if("atrule"===n.type)return new ti(n);else throw Error("Unknown node type: "+e.type)}function tC(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tk(t)}tk.default=tk,to.registerProcessor(tk),e5.registerProcessor(tk),tI.default=tI,tC.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),a.env.LANG&&a.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new tk().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return tC([i(r)]).process(e,t)},i},tC.stringify=ek,tC.parse=th,tC.fromJSON=tI,tC.list=ts,tC.comment=function(e){return new e3(e)},tC.atRule=function(e){return new ti(e)},tC.decl=function(e){return new ex(e)},tC.rule=function(e){return new ta(e)},tC.root=function(e){return new to(e)},tC.document=function(e){return new e5(e)}
1,tC.CssSyntaxError=eb,tC.Declaration=ex,tC.Container=e4,tC.Processor=tk,tC.Document=e5,tC.Comment=e3,tC.Warning=e9,tC.AtRule=ti,tC.Result=e7,tC.Input=eG,tC.Rule=ta,tC.Root=to,tC.Node=eT,tS.registerPostcss(tC),tC.default=tC;var tT=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tC);tT.stringify,tT.fromJSON,tT.plugin,tT.parse,tT.list,tT.document,tT.comment,tT.atRule,tT.rule,tT.decl,tT.root,tT.CssSyntaxError,tT.Declaration,tT.Container,tT.Processor,tT.Document,tT.Comment,tT.Warning,tT.AtRule,tT.Result,tT.Input,tT.Rule,tT.Root,tT.Node;var tx=Object.defineProperty,tA=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?tx(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},tO={exports:{}},tR=String,tP=function(){return{isColorSupported:!1,reset:tR,bold:tR,dim:tR,italic:tR,underline:tR,inverse:tR,hidden:tR,strikethrough:tR,black:tR,red:tR,green:tR,yellow:tR,blue:tR,magenta:tR,cyan:tR,white:tR,gray:tR,bgBlack:tR,bgRed:tR,bgGreen:tR,bgYellow:tR,bgBlue:tR,bgMagenta:tR,bgCyan:tR,bgWhite:tR}};tO.exports=tP(),tO.exports.createColors=tP;var tM=tO.exports,tN=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return y(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tL=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}g(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=tM.isColorSupported),tN&&e&&(i=tN(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=tM.createColors(!0),l=u.bold,h=u.gray,d=u.red;t=function(e){return l(d(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));tL.default=tL;var tD={};tD.isClean=Symbol("isClean"),tD.my=Symbol("my");var tU={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tj=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return tU[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=tU[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function tF(e,t){new tj(t).stringify(e)}tj.default=tj,tF.default=tF;var tB=tD.isClean,tH=tD.my,tz=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[tB]=!1,this[tH]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=E(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new tL(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[tB]){this[tB]=!1;for(var e=this;e=e.parent;)e[tB]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new tj().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=E(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":b(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=tF),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},p(e,[{key:"proxyOf",get:function(){return this}}]),e}();tz.default=tz;var t$=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return g(t,e),p(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(tz);t$.default=t$;var tq=tN.SourceMapConsumer,tV=tN.SourceMapGenerator,tG=tN.existsSync,tW=tN.readFileSync,tY=tN.dirname,tK=tN.join,tJ=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=tY(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new tq(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),s?s.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":b(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=tY(e),tG(e))return this.mapFile=e,tW(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(y(t,tq))return tV.fromSourceMap(t).toString();else if(y(t,tV))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=tK(tY(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();tJ.default=tJ;var tX=tN.SourceMapConsumer,tQ=tN.SourceMapGenerator,tZ=tN.fileURLToPath,t0=tN.pathToFileURL,t1=tN.isAbsolute,t2=tN.resolve,t3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,t6=Symbol("fromOffsetCache"),t8=!!(tX&&tQ),t4=!!(t2&&t1),t5=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!t4||/^\w+:\/\//.test(t.from)||t1(t.from)?this.file=t.from:this.file=t2(t.from)),t4&&t8){var r=new tJ(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+t3(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var d=this.origin(t,r,o,s);return(i=d?new tL(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new tL(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(t0&&(i.input.url=t0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[t6])a=this[t6];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[t6]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:t2(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=t1(a.source)?t0(a.source):new URL(a.source,this.map.consumer().sourceRoot||t0(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(tZ)c.file=tZ(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},p(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t5.default=t5,tN&&tN.registerInput&&tN.registerInput(t5);var t9=tN.SourceMapConsumer,t7=tN.SourceMapGenerator,re=tN.dirname,rt=tN.relative,rr=tN.resolve,rn=tN.sep,ri=tN.pathToFileURL,ro=!!(t9&&t7),rs=!!(re&&rr&&rt&&rn),ra=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=E(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||re(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new t9(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rs&&ro&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new t7({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};(!("decl"===c.type||"atrule"===c.type&&!c.nodes)||c!==l.last||l.raws.semicolon)&&(c.source&&c.source.end?(s.source=r.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?re(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=re(rr(r,this.mapOpts.annotation)));var n=rt(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new t5(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ri){var r=ri(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return g(t,e),t}(tz);rc.default=rc;var ru=tD.isClean,rl=tD.my,rh=function(e){function t(){return e.apply(this,arguments)||this}g(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=E(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=E(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=E(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=E(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=E(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=E(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=E(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new t$(e)]}else if(e.selector)e=[new ic(e)];else if(e.name)e=[new iu(e)];else if(e.text)e=[new rc(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rl]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ru]&&function e(t){if(t[ru]=!1,t.proxyOf.nodes)for(var r,n=E(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=E(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=E(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=E(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?y(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},p(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(tz);rh.registerParse=function(e){ia=e},rh.registerRule=function(e){ic=e},rh.registerAtRule=function(e){iu=e},rh.registerRoot=function(e){il=e},rh.default=rh,rh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iu.prototype):"rule"===e.type?Object.setPrototypeOf(e,ic.prototype):"decl"===e.type?Object.setPrototypeOf(e,t$.prototype):"comment"===e.type?Object.setPrototypeOf(e,rc.prototype):"root"===e.type&&Object.setPrototypeOf(e,il.prototype),e[rl]=!0,e.nodes&&e.nodes.forEac
1h(function(e){rh.rebuild(e)})};var rd=function(e){function t(t){var r;return(r=e.call(this,f({type:"document"},t))||this).nodes||(r.nodes=[]),r}return g(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ih(new id,this,e).stringify()},t}(rh);rd.registerLazyResult=function(e){ih=e},rd.registerProcessor=function(e){id=e},rd.default=rd;var rp=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();rp.default=rp;var rf=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rp(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},p(e,[{key:"content",get:function(){return this.css}}]),e}();rf.default=rf;var rm=/[\t\n\f\r "#'()/;[\\\]{}]/g,rg=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ry=/.[\r\n"'(/\\]/,rv=/[\da-f]/i,r_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}g(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(rh);r_.default=r_,rh.registerAtRule(r_);var rb=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}g(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=E(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ip(new im,this,e).stringify()},t}(rh);rb.registerLazyResult=function(e){ip=e},rb.registerProcessor=function(e){im=e},rb.default=rb,rh.registerRoot(rb);var rw={comma:function(e){return rw.split(e,[","],!0)},space:function(e){return rw.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=E(e);!(n=h()).done;){var d=n.value;l?l=!1:"\\"===d?l=!0:c?d===u&&(c=!1):'"'===d||"'"===d?(c=!0,u=d):"("===d?a+=1:")"===d?a>0&&(a-=1):0===a&&t.includes(d)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=d}return(r||""!==o)&&i.push(o.trim()),i}};rw.default=rw;var rS=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return g(t,e),p(t,[{key:"selectors",get:function(){return rw.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(rh);rS.default=rS,rh.registerRule(rS);var rE=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,d=e.css.valueOf(),p=t.ignoreErrors,f=d.length,m=0,g=[],y=[];function v(t){throw e.error("Unclosed "+t,m)}return{back:function(e){y.push(e)},endOfFile:function(){return 0===y.length&&m>=f},nextToken:function(e){if(y.length)return y.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=d.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=d.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",d.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,m];break;
1case 40:if(u=g.length?g.pop()[1]:"",l=d.charCodeAt(m+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=d.indexOf(")",n+1)))if(p||t){n=m;break}else v("bracket");for(c=n;92===d.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["brackets",d.slice(m,n+1),m,n],m=n}else n=d.indexOf(")",m+1),o=d.slice(m,n+1),-1===n||ry.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=d.indexOf(i,n+1)))if(p||t){n=m+1;break}else v("string");for(c=n;92===d.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["string",d.slice(m,n+1),m,n],m=n;break;case 64:rm.lastIndex=m+1,rm.test(d),n=0===rm.lastIndex?d.length-1:rm.lastIndex-2,h=["at-word",d.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===d.charCodeAt(n+1);)n+=1,s=!s;if(r=d.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,rv.test(d.charAt(n)))){for(;rv.test(d.charAt(n+1));)n+=1;32===d.charCodeAt(n+1)&&(n+=1)}h=["word",d.slice(m,n+1),m,n],m=n;break;default:47===r&&42===d.charCodeAt(m+1)?(0===(n=d.indexOf("*/",m+2)+1)&&(p||t?n=d.length:v("comment")),h=["comment",d.slice(m,n+1),m,n]):(rg.lastIndex=m+1,rg.test(d),n=0===rg.lastIndex?d.length-1:rg.lastIndex-2,h=["word",d.slice(m,n+1),m,n],g.push(h)),m=n}return m++,h}},position:function(){return m}}},rk={empty:!0,space:!0},rI=function(){function e(e){this.input=e,this.root=new rb,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new r_;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=E(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new rc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=rE(this.input)},t.decl=function(e,t){var r,n,i=new t$;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",d=c;d>0;d--){var p=l[d][0];if(0===h.trim().indexOf("!")&&"space"!==p)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rS;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",rk[a]||rk[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var d=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:d,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new rS;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function rC(e,t){var r=new rI(new t5(e,t));try{r.parse()}catch(e){throw e}return r.root}rC.default=rC,rh.registerParse(rC);var rT=tD.isClean,rx=tD.my,rA={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rO={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0}
1,rR={Once:!0,postcssPlugin:!0,prepare:!0};function rP(e){return(void 0===e?"undefined":b(e))==="object"&&"function"==typeof e.then}function rM(e){var t=!1,r=rA[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function rN(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rM(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function rL(e){return e[rT]=!1,e.nodes&&e.nodes.forEach(function(e){return rL(e)}),e}var rD={},rU=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":b(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=rL(r);else if(y(r,e)||y(r,rf))i=rL(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=rC;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[rx]&&rh.rebuild(i)}this.result=new rf(t,i,n),this.helpers=f({},rD,{postcss:rD,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.prepare?f({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=E(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":b(i))==="object")for(var o in i){if(!rO[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!rR[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,s,a,c,u,l,h,d;return k(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!rP(n=e.runOnRoot(r)))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[rT])return[3,14];o[rT]=!0,s=[rN(o)],p.label=8;case 8:if(!(s.length>0))return[3,13];if(!rP(a=e.visitTick(s)))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,a];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return k(this,function(s){switch(s.label){case 0:r=(t=d.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=E(e.listeners.OnceExit),p.label=15;case 15:if((d=h()).done)return[3,18];return[5,I(l())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rP(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=tF;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ra(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=E(this.plugins);!(e=t()).done;){var r=e.value;if(rP(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rT];)n[rT]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=E(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=E(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(rP(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[rT]){a[rT]=!0,e.push(rN(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[rT]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[rT]=!0;for(var r,n=rM(e),i=E(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[rT]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},p(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();rU.registerPostcss=function(e){rD=e},rU.default=rU,rb.registerLazyResult(rU),rd.registerLazyResult(rU);var rj=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rf(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new ra(tF,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},p(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=rC(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();rj.default=rj;var rF=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=E(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":b(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":b(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":b(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new rU(this,e,t):new rj(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function rB(e,t){if(Array.isArray(e))return e.map(function(e){return rB(e)});var r=e.inputs,n=v(e,["inputs"]);if(r){t=[];for(var i,o=E(r);!(i=o()).done;){var s=i.value,a=f({},s,{__proto__:t5.prototype});a.map&&(a.map=f({},a.map,{__proto__:tJ.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return rB(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=v(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rb(n);if("decl"===n.type)return new t$(n);if("rule"===n.type)return new rS(n);if("comment"===n.type)return new rc(n);if("atrule"===n.type)return new r_(n);else throw Error("Unknown node type: "+e.type)}function rH(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new rF(t)}rF.default=rF,rb.registerProcessor(rF),rd.registerProcessor(rF),rB.default=rB,rH.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),a.env.LANG&&a.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new rF().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return rH([i(r)]).process(e,t)},i},rH.stringify=tF,rH.parse=rC,rH.fromJSON=rB,rH.list=rw,rH.comment=function(e){return new rc(e)},rH.atRule=function(e){return new r_(e)},rH.decl=function(e){return new t$(e)},rH.rule=function(e){return new rS(e)},rH.root=function(e){return new rb(e)},rH.document=function(e){return new rd(e)},rH.CssSyntaxError=tL,rH.Declaration=t$,rH.Container=rh,rH.Processor=rF,rH.Document=rd,rH.Comment=rc,rH.Warning=rp,rH.AtRule=r_,rH.Result=rf,rH.Input=t5,rH.Rule=rS,rH.Root=rb,rH.Node=tz,rU.registerPostcss(rH),rH.default=rH;
1var rz=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(rH);rz.stringify,rz.fromJSON,rz.plugin,rz.parse,rz.list,rz.document,rz.comment,rz.atRule,rz.rule,rz.decl,rz.root,rz.CssSyntaxError,rz.Declaration,rz.Container,rz.Processor,rz.Document,rz.Comment,rz.Warning,rz.AtRule,rz.Result,rz.Input,rz.Rule,rz.Root,rz.Node;var r$=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tA(this,"parentElement",null),tA(this,"parentNode",null),tA(this,"ownerDocument"),tA(this,"firstChild",null),tA(this,"lastChild",null),tA(this,"previousSibling",null),tA(this,"nextSibling",null),tA(this,"ELEMENT_NODE",1),tA(this,"TEXT_NODE",3),tA(this,"nodeType"),tA(this,"nodeName"),tA(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!y(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},p(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),rq={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},rV={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rG={};function rW(e){if(rG[e])return rG[e];var t=globalThis[e],r=t.prototype,n=e in rq?rq[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in rV?rV[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return rG[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;if(document.body.removeChild(a),!u)return r;return rG[e]=u}catch(e){return r}}var rY={};function rK(e,t,r){var n,i=e+"."+String(r);if(rY[i])return rY[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(rW(e),r))?void 0:n.get;return o?(rY[i]=o,o.call(t)):t[r]}var rJ={};function rX(e,t,r){var n=e+"."+String(r);if(rJ[n])return rJ[n].bind(t);var i=rW(e)[r];return"function"!=typeof i?t[r]:(rJ[n]=i,i.bind(t))}function rQ(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var rZ={childNodes:function(e){return rK("Node",e,"childNodes")},parentNode:function(e){return rK("Node",e,"parentNode")},parentElement:function(e){return rK("Node",e,"parentElement")},textContent:function(e){return rK("Node",e,"textContent")},contains:function(e,t){return rX("Node",e,"contains")(t)},getRootNode:function(e){return rX("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?rK("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?rK("Element",e,"shadowRoot"):null}};function r0(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var r1="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.",r2={map:{},getId:function(){return console.error(r1),-1},getNode:function(){return console.error(r1),null},removeNodeFromMap:function(){console.error(r1)},has:function(){return console.error(r1),!1},reset:function(){console.error(r1)}};function r3(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},u))}}function r6(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return r6(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(r2=new Proxy(r2,{get:function(e,t,r){return"map"===t&&console.error(r1),Reflect.get(e,t,r)}}));var r8=Date.now;function r4(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=rZ.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=rZ.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function r5(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function r9(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function r7(e){return e?e.nodeType===e.ELEMENT_NODE?e:rZ.parentElement(e):null}function ne(e,t,r,n){if(!e)return!1;var i=r7(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eh(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nt(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nr(e){return!!e.changedTouches}function nn(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ni(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function no(e){return!!e&&(y(e,r$)&&"shadowRoot"in e?!!e.shadowRoot:!!rZ.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(r8=function(){return new Date().getTime()});var ns=function(){function e(){T(this,"id",1),T(this,"styleIDMap",new WeakMap),T(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function na(e){var t,r=null;return"getRootNode"in e&&(null==(t=rZ.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rZ.host(rZ.getRootNode(e))&&(r=rZ.host(rZ.getRootNode(e))),r}function nc(e){var t=e.ownerDocument;return!!t&&(rZ.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=na(r);)r=t;return r}(e);return rZ.contains(t,r)}(e))}var nu=function(e){return 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}(nu||{}),nl=function(e){return 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}(nl||{}),nh=function(e){return 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}(nh||{}),nd=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(nd||{}),np=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(np||{}),nf=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(nf||{}),nm=function(e){return 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",e}(nm||{}),ng=function(){function e(){T(this,"length",0),T(this,"head",null),T(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var 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++},t.removeNode=function(e){var t=e.__ln;
vendor: 5,427 bytes, line 1
1this.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--)},e}(),ny=function(e,t){return e+"@"+t},nv=function(){function e(){var e=this;T(this,"frozen",!1),T(this,"locked",!1),T(this,"texts",[]),T(this,"attributes",[]),T(this,"attributeMap",new WeakMap),T(this,"removes",[]),T(this,"mapRemoves",[]),T(this,"movedMap",{}),T(this,"addedSet",new Set),T(this,"movedSet",new Set),T(this,"droppedSet",new Set),T(this,"removesSubTreeCache",new Set),T(this,"mutationCb"),T(this,"blockClass"),T(this,"blockSelector"),T(this,"maskTextClass"),T(this,"maskTextSelector"),T(this,"inlineStylesheet"),T(this,"maskInputOptions"),T(this,"maskTextFn"),T(this,"maskInputFn"),T(this,"keepIframeSrcFn"),T(this,"recordCanvas"),T(this,"inlineImages"),T(this,"slimDOMOptions"),T(this,"dataURLOptions"),T(this,"doc"),T(this,"mirror"),T(this,"iframeManager"),T(this,"stylesheetManager"),T(this,"shadowDomManager"),T(this,"canvasManager"),T(this,"processedNodeManager"),T(this,"unattachedDoc"),T(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),T(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new ng,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=rZ.parentNode(o);if(s&&nc(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=F(s)?e.mirror.getId(na(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=ef(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){nn(t,e.mirror)&&e.iframeManager.addIframe(t),ni(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),no(o)&&e.shadowDomManager.addShadowRoot(rZ.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=E(e.movedSet);!(s=a()).done;){var c=s.value;(!nb(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(rZ.parentNode(c)))&&o(c)}for(var u,l=E(e.addedSet);!(u=l()).done;){var h=u.value;nw(e.droppedSet,h)||nb(e.removesSubTreeCache,h,e.mirror)?nw(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var d=null;n.length;){var p=null;if(d){var f=e.mirror.getId(rZ.parentNode(d.value)),m=i(d.value);-1!==f&&-1!==m&&(p=d)}if(!p)for(var g=n.tail;g;){var y=g;if(g=g.previous,y){var v=e.mirror.getId(rZ.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==v){p=y;break}var _=y.value,b=rZ.parentNode(_);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=rZ.host(b);if(-1!==e.mirror.getId(w)){p=y;break}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}d=p.previous,n.removeNode(p.value),o(p.value)}var S={texts:e.texts.map(function(t){var r=t.node,n=rZ.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(S.texts.length||S.attributes.length||S.removes.length||S.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(S))}}),T(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(rZ.childNodes(t),function(e){return rZ.textContent(e)||""}).join("");r.attributes.value=q({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:W(t),value:n,maskInputFn:e.maskInputFn})}),T(this,"processMutation",function(t){if(!nt(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=rZ.textContent(t.target);ne(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ed(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,r7(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=W(n);o=q({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(ne(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!el(n.tagName,i))if(a.attributes[i]=eu(e.doc,V(n.tagName),V(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=E(Array.from(n.style));!(u=l()).done;){var h=u.value,d=n.style.getPropertyValue(h),p=n.style.getPropertyPriority(h);d!==c.style.getPropertyValue(h)||p!==c.style.getPropertyPriority(h)?""===p?a.styleDiff[h]=d:a.styleDiff[h]=[d,p]:a._unchangedStyles[h]=[d,p]}for(var f,m=E(Array.from(c.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(ne(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=F(t.target)?e.mirror.getId(rZ.host(t.target)):e.mirror.getId(t.target);ne(t.target,e.blockClass,e.blockSelector,!1)||nt(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(n_(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(F(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=rZ.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[ny(n,i)]?n_(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(F(t.target)&&B(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),rZ.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),T(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(nt(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[ny(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!ne(t,e.blockClass,e.blockSelector,!1)&&(rZ.childNodes(t).forEach(function(t){return e.genAdds(t)}),no(t)&&rZ.childNodes(rZ.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function n_(e,t){e.delete(t),rZ.childNodes(t).forEach(function(t){return n_(e,t)})}function nb(e,t,r){var n,i,o;return 0!==e.size&&(n=e,i=t,!!(o=rZ.parentNode(i))&&n.has(o))}function nw(e,t){return 0!==e.size&&function e(t,r){var n=rZ.parentNode(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nS=function(e){return ig?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(ig&&!0===ig(e))return;throw e}}:e},nE=[];function nk(e){try{if("composedPath"in e){var 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 nI(e,t){var r=new nv;nE.push(r),r.init(e);var n=new(rW("MutationObserver")).constructor(nS(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function nC(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return r0("scroll",nS(r3(nS(function(e){var s=nk(e);if(!(!s||ne(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=r4(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var nT=["INPUT","TEXTAREA","SELECT"],nx=new WeakMap;function nA(e){var t=[];if(nM("CSSGroupingRule")&&y(e.parentRule,CSSGroupingRule)||nM("CSSMediaRule")&&y(e.parentRule,CSSMediaRule)||nM("CSSSupportsRule")&&y(e.parentRule,CSSSupportsRule)||nM("CSSConditionRule")&&y(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function nO(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function nR(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(rZ.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),nS(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function nP(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};p=t,m=e.mutationCb,g=e.mousemoveCb,v=e.mouseInteractionCb,_=e.scrollCb,b=e.viewportResizeCb,w=e.inputCb,S=e.mediaInteractionCb,k=e.styleSheetRuleCb,I=e.styleDeclarationCb,C=e.canvasMutationCb,T=e.fontCb,x=e.selectionCb,A=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.mutation&&p.mutation.apply(p,[].concat(t)),m.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.mousemove&&p.mousemove.apply(p,[].concat(t)),g.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];
1p.mouseInteraction&&p.mouseInteraction.apply(p,[].concat(t)),v.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.scroll&&p.scroll.apply(p,[].concat(t)),_.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.viewportResize&&p.viewportResize.apply(p,[].concat(t)),b.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.input&&p.input.apply(p,[].concat(t)),w.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.mediaInteaction&&p.mediaInteaction.apply(p,[].concat(t)),S.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.styleSheetRule&&p.styleSheetRule.apply(p,[].concat(t)),k.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.styleDeclaration&&p.styleDeclaration.apply(p,[].concat(t)),I.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.canvasMutation&&p.canvasMutation.apply(p,[].concat(t)),C.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.font&&p.font.apply(p,[].concat(t)),T.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.selection&&p.selection.apply(p,[].concat(t)),x.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];p.customElement&&p.customElement.apply(p,[].concat(t)),A.apply(void 0,[].concat(t))},e.recordDOM&&(eu=nI(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=r3(nS(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=nS(r3(nS(function(e){var r=nk(e),n=nr(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=r8()),c.push({x:i,y:s,id:o.getId(r),timeOffset:r8()-t}),u("undefined"!=typeof DragEvent&&y(e,DragEvent)?nl.Drag:y(e,MouseEvent)?nl.MouseMove:nl.TouchMove)}),s,{trailing:!1})),h=[r0("mousemove",l,i),r0("touchmove",l,i),r0("drag",l,i)];return nS(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(nh).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=V(e),a=function(r){var s=nk(r);if(!ne(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nd.Mouse;break;case"touch":a=nd.Touch;break;case"pen":a=nd.Pen}a===nd.Touch?nh[e]===nh.MouseDown?c="TouchStart":nh[e]===nh.MouseUp&&(c="TouchEnd"):nd.Pen}else nr(r)&&(a=nd.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===nd.Touch||c.startsWith("Mouse")&&a===nd.Mouse)&&(a=null)):nh[e]===nh.Click&&(a=u,u=null);var l=nr(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),d=l.clientX,p=l.clientY;nS(t)(f({type:nh[c],id:h,x:d,y:p},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nh[e]){case nh.MouseDown:case nh.MouseUp:s=s.replace("mouse","pointer");break;case nh.TouchStart:case nh.TouchEnd:return}c.push(r0(s,a,r))}),nS(function(){c.forEach(function(e){return e()})})}(e),o=nC(e),s=(O={win:r},R=e.viewportResizeCb,P=O.win,M=-1,N=-1,r0("resize",nS(r3(nS(function(){var e=r5(),t=r9();(M!==e||N!==t)&&(R({width:Number(t),height:Number(e)}),M=e,N=t)}),200)),P)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function d(e){var t=nk(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=rZ.parentElement(t)),!(!t||!l||0>nT.indexOf(l)||ne(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var d=t.value,f=!1,m=W(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(c[l.toLowerCase()]||c[m])&&(d=q({element:t,maskInputOptions:c,tagName:l,type:m,value:d,maskInputFn:u})),p(t,h?{text:d,isChecked:f,userTriggered:n}:{text:d,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function p(e,r){var i=nx.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nx.set(e,r);var o=n.getId(e);nS(t)(f({},r,{id:o}))}}var m=("last"===l.input?["change"]:["input","change"]).map(function(e){return r0(e,nS(d),r)}),g=r.defaultView;if(!g)return function(){m.forEach(function(e){return e()})};var y=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),v=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&m.push.apply(m,[].concat(v.map(function(e){return r6(e[0],e[1],{set:function(){nS(d)({target:this,isTrusted:!1})}},!1,g)}))),nS(function(){m.forEach(function(e){return e()})})}(e),c=(L=e.mediaInteractionCb,D=e.blockClass,U=e.blockSelector,j=e.mirror,F=e.sampling,B=e.doc,z=[r0("play",(H=nS(function(e){return r3(nS(function(t){var r=nk(t);if(!(!r||ne(r,D,U,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;L({type:e,id:j.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),F.media||500)}))(nf.Play),B),r0("pause",H(nf.Pause),B),r0("seeked",H(nf.Seeked),B),r0("volumechange",H(nf.VolumeChange),B),r0("ratechange",H(nf.RateChange),B)],nS(function(){z.forEach(function(e){return e()})})),u=function(){},l=function(){},h=function(){},d=function(){};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:nS(function(e,t,r){var n=r[0],a=r[1],c=nO(t,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)}
1)}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:nS(function(e,t,r){var n=r[0],a=nO(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nS(function(e,t,r){var n=r[0],a=nO(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:nS(function(e,t,r){var n=r[0],a=nO(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:n}),e.apply(t,r)})}));var l={};nN("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(nN("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),nN("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),nN("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:nS(function(e,t,r){var n=r[0],a=r[1],c=nO(t.parentStyleSheet,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:[].concat(nA(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:nS(function(e,t,r){var n=r[0],a=nO(t.parentStyleSheet,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(nA(t),[n])}]}),e.apply(t,r)})})}),nS(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=nR(e,e.doc),$=e.styleDeclarationCb,G=e.mirror,Y=e.ignoreCSSAttributes,K=e.stylesheetManager,X=(J=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,J.CSSStyleDeclaration.prototype.setProperty=new Proxy(X,{apply:nS(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if(Y.has(i))return X.apply(t,[i,o,s]);var a=nO(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,K.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&$({id:c,styleId:u,set:{property:i,value:o,priority:s},index:nA(t.parentRule)}),e.apply(t,r)})}),Q=J.CSSStyleDeclaration.prototype.removeProperty,J.CSSStyleDeclaration.prototype.removeProperty=new Proxy(Q,{apply:nS(function(e,t,r){var n,i=r[0];if(Y.has(i))return Q.apply(t,[i]);var o=nO(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,K.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&$({id:s,styleId:a,remove:{property:i},index:nA(t.parentRule)}),e.apply(t,r)})}),h=nS(function(){J.CSSStyleDeclaration.prototype.setProperty=X,J.CSSStyleDeclaration.prototype.removeProperty=Q}),e.collectFonts&&(d=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=rQ(r.fonts,"add",function(e){return function(r){return setTimeout(nS(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),nS(function(){i.forEach(function(e){return e()})})}(e)));for(var p,m,g,v,_,b,w,S,k,I,C,T,x,A,O,R,P,M,N,L,D,U,j,F,B,H,z,$,G,Y,K,J,X,Q,Z,ee,et,er,en,ei,eo,es,ea,ec,eu,el,eh=(Z=e.doc,ee=e.mirror,et=e.blockClass,er=e.blockSelector,en=e.selectionCb,ei=!0,(eo=nS(function(){var e=Z.getSelection();if(e&&(!ei||null==e||!e.isCollapsed)){ei=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),o=i.startContainer,s=i.startOffset,a=i.endContainer,c=i.endOffset;ne(o,et,er,!0)||ne(a,et,er,!0)||t.push({start:ee.getId(o),startOffset:s,end:ee.getId(a),endOffset:c})}en({ranges:t})}}))(),r0("selectionchange",eo)),ed=(es=e.doc,ea=e.customElementCb,(ec=es.defaultView)&&ec.customElements?rQ(ec.customElements,"define",function(e){return function(t,r,n){try{ea({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),ep=[],ef=E(e.plugins);!(el=ef()).done;){var em=el.value;ep.push(em.observer(em.callback,r,em.options))}return nS(function(){nE.forEach(function(e){return e.reset()}),null==eu||eu.disconnect(),n(),i(),o(),s(),a(),c(),u(),l(),h(),d(),eh(),ed(),ep.forEach(function(e){return e()})})}function nM(e){return void 0!==window[e]}function nN(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}
1for(var nL=function(){function e(e){T(this,"iframeIdToRemoteIdMap",new WeakMap),T(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),nD=function(){function e(e){T(this,"iframes",new WeakMap),T(this,"crossOriginIframeMap",new WeakMap),T(this,"crossOriginIframeMirror",new nL(en)),T(this,"crossOriginIframeStyleMirror"),T(this,"crossOriginIframeRootIdMap",new WeakMap),T(this,"mirror"),T(this,"mutationCb"),T(this,"wrappedEmit"),T(this,"loadListener"),T(this,"stylesheetManager"),T(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nL(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nu.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:nu.IncrementalSnapshot,data:{source:nl.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nu.Meta:case nu.Load:case nu.DomContentLoaded:break;case nu.Plugin:return t;case nu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nu.IncrementalSnapshot:switch(t.data.source){case nl.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nl.Drag:case nl.TouchMove:case nl.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nl.ViewportResize:return!1;case nl.MediaInteraction:case nl.MouseInteraction:case nl.Scroll:case nl.CanvasMutation:case nl.Input:return this.replaceIds(t.data,e,["id"]),t;case nl.StyleSheetRule:case nl.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nl.Font:return t;
1case nl.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nl.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=E(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nm.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),nU=function(){function e(e){T(this,"shadowDoms",new WeakSet),T(this,"mutationCb"),T(this,"scrollCb"),T(this,"bypassOptions"),T(this,"mirror"),T(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(B(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nI(f({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nC(f({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(rZ.host(e))),r.restoreHandlers.push(nR({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(rQ(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=rZ.shadowRoot(this);return o&&nc(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),nj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nF="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nB=0;nB<nj.length;nB++)nF[nj.charCodeAt(nB)]=nB;var nH=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=nj[r[t]>>2],i+=nj[(3&r[t])<<4|r[t+1]>>4],i+=nj[(15&r[t+1])<<2|r[t+2]>>6],i+=nj[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},nz=new Map,n$=function(e,t,r){if(e&&(nV(e,t)||(void 0===e?"undefined":b(e))==="object")){var n,i=e.constructor.name,o=((n=nz.get(r))||(n=new Map,nz.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},nq=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(y(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(y(t,Float32Array)||y(t,Float64Array)||y(t,Int32Array)||y(t,Uint32Array)||y(t,Uint8Array)||y(t,Uint16Array)||y(t,Int16Array)||y(t,Int8Array)||y(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(y(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:nH(t)};else if(y(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(y(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(y(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(y(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(nV(t,r)||(void 0===t?"undefined":b(t))==="object")return{rr_type:t.constructor.name,index:n$(t,r,n)};return t}(e,t,r)})},nV=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}
1).find(function(r){return y(e,t[r])})};function nG(e,t,r,n){var i=[];try{var o=rQ(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!ne(this,t,r,!0)){var c="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===b(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function nW(e,t,r,n,i,o){for(var s,a=[],c=Object.getOwnPropertyNames(e),u=E(c);!(s=u()).done;)!function(){var c=s.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if("function"!=typeof e[c])return"continue";var u=rQ(e,c,function(e){return function(){for(var s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];var l=e.apply(this,a);if(n$(l,o,this),"tagName"in this.canvas&&!ne(this.canvas,n,i,!0)){var h=nq(a,o,this);r(this.canvas,{type:t,property:c,args:h})}return l}});a.push(u)}catch(n){a.push(r6(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var nY="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",nK="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(nY),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function nJ(e){var t;try{if(!(t=nK&&(window.URL||window.webkitURL).createObjectURL(nK)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+nY,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var nX=function(){function e(e){var t=this;T(this,"pendingCanvasMutations",new Map),T(this,"rafStamps",{latestId:0,invokeId:null}),T(this,"mirror"),T(this,"mutationCb"),T(this,"resetObservers"),T(this,"frozen",!1),T(this,"locked",!1),T(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o,s=this,a=nG(t,r,n,!0),c=new Map,u=new nJ;u.onmessage=function(e){var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;s.mutationCb({id:t,type:np["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,d=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){ne(t,r,n,!0)||e.push(t)}),e},f=function(e){if(d&&e-d<l){o=requestAnimationFrame(f);return}
1d=e,p().forEach(h(function(e){var t,r,n,o;return k(this,function(a){switch(a.label){case 0:if(r=s.mirror.getId(e),c.get(r)||0===e.width||0===e.height)return[2];return c.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return o=a.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),o=requestAnimationFrame(f)};o=requestAnimationFrame(f),this.resetObservers=function(){a(),cancelAnimationFrame(o)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,o=nG(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=E(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=rQ(t.CanvasRenderingContext2D.prototype,s,function(i){return function(){for(var o=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return ne(this.canvas,r,n,!0)||setTimeout(function(){var r=nq(c,t,o);e(o.canvas,{type:np["2D"],property:s,args:r})},0),i.apply(this,c)}});o.push(a)}catch(r){var c=r6(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:np["2D"],property:s,args:[t],setter:!0})}});o.push(c)}}();return function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(nW(e.WebGLRenderingContext.prototype,np.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(nW(e.WebGL2RenderingContext.prototype,np.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),s(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,v(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),nQ=function(){function e(e){T(this,"trackedLinkElements",new WeakSet),T(this,"mutationCb"),T(this,"adoptedStyleSheetCb"),T(this,"styleMirror",new ns),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},o=[],s=E(e);!(n=s()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:z(t,e.href),index:r}})})),i.styleIds.push(t)}();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),nZ=function(){function e(){T(this,"nodeMap",new WeakMap),T(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),n0=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var n1=document.createElement("iframe");document.body.appendChild(n1),Array.from=(null==(n8=n1.contentWindow)?void 0:n8.Array.from)||Array.from,document.body.removeChild(n1)}}catch(e){console.debug("Unable to override Array.from",e)}
1var n2=new $;function n3(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,l=e.ignoreSelector,h=void 0===l?null:l,d=e.maskTextClass,p=void 0===d?"rr-mask":d,m=e.maskTextSelector,g=void 0===m?null:m,y=e.inlineStylesheet,v=void 0===y||y,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,S=e.maskInputFn,k=e.maskTextFn,I=e.hooks,C=e.packFn,T=e.sampling,x=void 0===T?{}:T,A=e.dataURLOptions,O=void 0===A?{}:A,R=e.mousemoveWait,P=e.recordDOM,M=void 0===P||P,N=e.recordCanvas,L=void 0!==N&&N,D=e.recordCrossOriginIframes,U=void 0!==D&&D,j=e.recordAfter,F=void 0===j?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":j,B=e.userTriggeredOnInput,H=void 0!==B&&B,z=e.collectFonts,q=void 0!==z&&z,V=e.inlineImages,G=void 0!==V&&V,W=e.plugins,Y=e.keepIframeSrcFn,K=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,X=void 0===J?new Set([]):J;ig=e.errorHandler;var Q=!U||window.parent===window,Z=!1;if(!Q)try{window.parent.document&&(Z=!1)}catch(e){Z=!0}if(Q&&!t)throw Error("emit function is required");if(!Q&&!Z)return function(){};void 0!==R&&void 0===x.mousemove&&(x.mousemove=R),n2.reset();var ee=!0===_?{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,password:!0,hidden:!0}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===ei&&(ei=window),"NodeList"in ei&&!ei.NodeList.prototype.forEach&&(ei.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ei&&!ei.DOMTokenList.prototype.forEach&&(ei.DOMTokenList.prototype.forEach=Array.prototype.forEach);var er=0,en=function(e){for(var t,r=E(W||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return C&&!Z&&(e=C(e)),e};iy=function(e,i){var o;if(e.timestamp=r8(),(null==(o=nE[0])?void 0:o.isFrozen())&&e.type!==nu.FullSnapshot&&(e.type!==nu.IncrementalSnapshot||e.data.source!==nl.Mutation)&&nE.forEach(function(e){return e.unfreeze()}),Q)null==t||t(en(e),i);else if(Z){var s={type:"rrweb",event:en(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(e.type===nu.FullSnapshot)eo=e,er=0;else if(e.type===nu.IncrementalSnapshot){if(e.data.source===nl.Mutation&&e.data.isAttachIframe)return;er++;var a=n&&er>=n,c=r&&e.timestamp-eo.timestamp>r;(a||c)&&iv(!0)}};for(var ei,eo,es,ea=function(e){iy({type:nu.IncrementalSnapshot,data:f({source:nl.Mutation},e)})},ec=function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.Scroll},e)})},eu=function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.CanvasMutation},e)})},el=new nQ({mutationCb:ea,adoptedStyleSheetCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.AdoptedStyleSheet},e)})}}),eh=new nD({mirror:n2,mutationCb:ea,stylesheetManager:el,recordCrossOriginIframes:U,wrappedEmit:iy}),ed=E(W||[]);!(es=ed()).done;){var ep=es.value;ep.getMirror&&ep.getMirror({nodeMirror:n2,crossOriginIframeMirror:eh.crossOriginIframeMirror,crossOriginIframeStyleMirror:eh.crossOriginIframeStyleMirror})}var em=new nZ;i_=new nX({recordCanvas:L,mutationCb:eu,win:window,blockClass:o,blockSelector:a,mirror:n2,sampling:x.canvas,dataURLOptions:O});var eg=new nU({mutationCb:ea,scrollCb:ec,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ee,dataURLOptions:O,maskTextFn:k,maskInputFn:S,recordCanvas:L,inlineImages:G,sampling:x,slimDOMOptions:et,iframeManager:eh,stylesheetManager:el,canvasManager:i_,keepIframeSrcFn:K,processedNodeManager:em},mirror:n2});iv=function(e){if(void 0===e&&(e=!1),M){iy({type:nu.Meta,data:{href:window.location.href,width:r9(),height:r5()}},e),el.reset(),eg.init(),nE.forEach(function(e){return e.lock()});var t,r,n,i,s,c,u,l,h,d,f,m,y,_,b,w,E,I,C,T,x,A,R,P,N=(t=document,i=void 0===(n=(r={mirror:n2,blockClass:o,blockSelector:a,maskTextClass:p,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ee,maskTextFn:k,maskInputFn:S,slimDOM:et,dataURLOptions:O,recordCanvas:L,inlineImages:G,onSerialize:function(e){nn(e,n2)&&eh.addIframe(e),ni(e,n2)&&el.trackLinkElement(e),no(e)&&eg.addShadowRoot(rZ.shadowRoot(e),document)},onIframeLoad:function(e,t){eh.attachIframe(e,t),eg.observeAttachShadow(e)},onStylesheetLoad:function(e,t){el.attachLinkElement(e,t)},keepIframeSrcFn:K}).mirror)?new $:n,s=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,d=r.inlineImages,f=r.recordCanvas,y=void 0!==(m=r.maskAllInputs)&&m,_=r.maskTextFn,b=r.maskInputFn,E=void 0!==(w=r.slimDOM)&&w,I=r.dataURLOptions,C=r.preserveWhiteSpace,T=r.onSerialize,x=r.onIframeLoad,A=r.iframeLoadTimeout,R=r.onStylesheetLoad,ef(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,ski
1pChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===y?{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,password:!0,hidden:!0}:!1===y?{password:!0}:y,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===E,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===E?{}:E,dataURLOptions:I,inlineImages:void 0!==d&&d,recordCanvas:void 0!==f&&f,preserveWhiteSpace:C,onSerialize:T,onIframeLoad:x,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(P=r.keepIframeSrcFn)?function(){return!1}:P,newlyAddedElement:!1}));if(!N)return console.warn("Failed to snapshot the document");iy({type:nu.FullSnapshot,data:{node:N,initialOffset:r4(window)}},e),nE.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&el.adoptStyleSheets(document.adoptedStyleSheets,n2.getId(document))}};try{var ey=[],ev=function(e){var t;return nS(nP)({mutationCb:ea,mousemoveCb:function(e,t){return iy({type:nu.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.MouseInteraction},e)})},scrollCb:ec,viewportResizeCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.ViewportResize},e)})},inputCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.Input},e)})},mediaInteractionCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.MediaInteraction},e)})},styleSheetRuleCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.StyleSheetRule},e)})},styleDeclarationCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.StyleDeclaration},e)})},canvasMutationCb:eu,fontCb:function(e){return iy({type:nu.IncrementalSnapshot,data:f({source:nl.Font},e)})},selectionCb:function(e){iy({type:nu.IncrementalSnapshot,data:f({source:nl.Selection},e)})},customElementCb:function(e){iy({type:nu.IncrementalSnapshot,data:f({source:nl.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:p,maskTextSelector:g,maskInputOptions:ee,inlineStylesheet:v,sampling:x,recordDOM:M,recordCanvas:L,inlineImages:G,userTriggeredOnInput:H,collectFonts:q,doc:e,maskInputFn:S,maskTextFn:k,keepIframeSrcFn:K,blockSelector:a,slimDOMOptions:et,dataURLOptions:O,mirror:n2,iframeManager:eh,stylesheetManager:el,shadowDomManager:eg,processedNodeManager:em,canvasManager:i_,ignoreCSSAttributes:X,plugins:(null==(t=null==W?void 0:W.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return iy({type:nu.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},I)};eh.addLoadListener(function(e){try{ey.push(ev(e.contentDocument))}catch(e){console.warn(e)}});var e_=function(){iv(),ey.push(ev(document)),n0=!0};return"interactive"===document.readyState||"complete"===document.readyState?e_():(ey.push(r0("DOMContentLoaded",function(){iy({type:nu.DomContentLoaded,data:{}}),"DOMContentLoaded"===F&&e_()})),ey.push(r0("load",function(){iy({type:nu.Load,data:{}}),"load"===F&&e_()},window))),function(){ey.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),em.destroy(),n0=!1,ig=void 0}}catch(e){console.warn(e)}}n3.addCustomEvent=function(e,t){if(!n0)throw Error("please add custom event after start recording");iy({type:nu.Custom,data:{tag:e,payload:t}})},n3.freezePage=function(){nE.forEach(function(e){return e.freeze()})},n3.takeFullSnapshot=function(e){if(!n0)throw Error("please take full snapshot after start recording");iv(e)},n3.mirror=n2,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(ib||(ib={})),n3.addCustomEvent,n3.freezePage,n3.takeFullSnapshot;var n6,n8,n4,n5,n9,n7,ie,it,ir,ii,io,is,ia,ic,iu,il,ih,id,ip,im,ig,iy,iv,i_,ib,iw,iS,iE,ik=n6.setImmediate,iI=Object.prototype.toString,iC=void 0!==ik?function(e){return ik(e)}:setTimeout;try{Object.defineProperty({},"x",{}),iw=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){iw=function(e,t,r){return e[t]=r,e}}function iT(e,t){iE.add(e,t),iS||(iS=iC(iE.drain))}function ix(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function iA(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=ix(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function iO(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=ix(e))?iT(function(){var n=new iM(r);try{t.call(e,function(){iO.apply(n,arguments)},function(){iR.apply(n,arguments)})}catch(e){iR.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&iT(iA,r))}catch(e){iR.call(new iM(r),e)}}}function iR(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&iT(iA,t))}function iP(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function iM(e){this.def=e,this.triggered=!1}function iN(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function iL(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new iN(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&iT(iA,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){iO.call(t,e)},function(e){iR.call(t,e)})}catch(e){iR.call(t,e)}}iE=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=iS=void 0;r;)r.fn.call(r.self),r=r.next}}}();var iD=iw({},"constructor",iL,!1);iL.prototype=iD,iw(iD,"__NPO__",0,!1),iw(iL,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),iw(iL,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),iw(iL,"all",function(e){var t=this;return"[object Array]"!==iI.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;iP(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),iw(iL,"race",function(e){var t=this;return"[object Array]"!==iI.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");iP(t,e,function(e,t){r(t)},n)})}),n="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:iL;var iU={DEBUG:!1,LIB_VERSION:"2.71.0"},ij=Array.prototype,iF=Function.prototype,iB=Object.prototype,iH=ij.slice,iz=iB.toString,i$=iB.hasOwnProperty,iq=n6.console,iV=n6.navigator,iG=n6.document,iW=n6.opera,iY=n6.screen,iK=iV.userAgent,iJ=iF.bind,iX=ij.forEach,iQ=ij.indexOf,iZ=ij.map,i0=Array.isArray,i1={},i2={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},i3={log:function(){if(iU.DEBUG&&!i2.isUndefined(iq)&&iq)try{iq.log.apply(iq,arguments)}catch(e){i2.each(arguments,function(e){iq.log(e)})}},warn:function(){if(iU.DEBUG&&!i2.isUndefined(iq)&&iq){var e=["Mixpanel warning:"].
1concat(i2.toArray(arguments));try{iq.warn.apply(iq,e)}catch(t){i2.each(e,function(e){iq.warn(e)})}}},error:function(){if(iU.DEBUG&&!i2.isUndefined(iq)&&iq){var e=["Mixpanel error:"].concat(i2.toArray(arguments));try{iq.error.apply(iq,e)}catch(t){i2.each(e,function(e){iq.error(e)})}}},critical:function(){if(!i2.isUndefined(iq)&&iq){var e=["Mixpanel error:"].concat(i2.toArray(arguments));try{iq.error.apply(iq,e)}catch(t){i2.each(e,function(e){iq.error(e)})}}}},i6=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(i3,arguments)}},i8=function(e){return{log:i6(i3.log,e),error:i6(i3.error,e),critical:i6(i3.critical,e)}},i4=function(e){return function(){try{return e.apply(this,arguments)}catch(e){i3.critical("Implementation error. Please turn on debug and contact [email protected]."),iU.DEBUG&&i3.critical(e)}}},i5=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=i4(t[r]))};i2.bind=function(e,t){var r,n;if(iJ&&e.bind===iJ)return iJ.apply(e,iH.call(arguments,1));if(!i2.isFunction(e))throw TypeError();return r=iH.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(iH.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(iH.call(arguments)));return Object(s)===s?s:o}},i2.each=function(e,t,r){if(null!=e){if(iX&&e.forEach===iX)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===i1)return}else for(var o in e)if(i$.call(e,o)&&t.call(r,e[o],o,e)===i1)return}},i2.extend=function(e){return i2.each(iH.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},i2.isArray=i0||function(e){return"[object Array]"===iz.call(e)},i2.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},i2.isArguments=function(e){return!!(e&&i$.call(e,"callee"))},i2.toArray=function(e){return e?e.toArray?e.toArray():i2.isArray(e)||i2.isArguments(e)?iH.call(e):i2.values(e):[]},i2.map=function(e,t,r){if(iZ&&e.map===iZ)return e.map(t,r);var n=[];return i2.each(e,function(e){n.push(t.call(r,e))}),n},i2.keys=function(e){var t=[];return null===e||i2.each(e,function(e,r){t[t.length]=r}),t},i2.values=function(e){var t=[];return null===e||i2.each(e,function(e){t[t.length]=e}),t},i2.include=function(e,t){var r=!1;return null===e?r:iQ&&e.indexOf===iQ?-1!=e.indexOf(t):(i2.each(e,function(e){if(r||(r=e===t))return i1}),r)},i2.includes=function(e,t){return -1!==e.indexOf(t)},i2.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},i2.isObject=function(e){return e===Object(e)&&!i2.isArray(e)},i2.isEmptyObject=function(e){if(i2.isObject(e)){for(var t in e)if(i$.call(e,t))return!1;return!0}return!1},i2.isUndefined=function(e){return void 0===e},i2.isString=function(e){return"[object String]"==iz.call(e)},i2.isDate=function(e){return"[object Date]"==iz.call(e)},i2.isNumber=function(e){return"[object Number]"==iz.call(e)},i2.isElement=function(e){return!!(e&&1===e.nodeType)},i2.encodeDates=function(e){return i2.each(e,function(t,r){i2.isDate(t)?e[r]=i2.formatDate(t):i2.isObject(t)&&(e[r]=i2.encodeDates(t))}),e},i2.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},i2.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},i2.strip_empty_properties=function(e){var t={};return i2.each(e,function(e,r){i2.isString(e)&&e.length>0&&(t[r]=e)}),t},i2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):i2.isArray(e)?(r=[],i2.each(e,function(e){r.push(i2.truncate(e,t))})):i2.isObject(e)?(r={},i2.each(e,function(e,n){r[n]=i2.truncate(e,t)})):r=e,r},i2.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===iz.apply(h)){for(o=0,c=h.length;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)i$.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},i2.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o=function(t){var n=SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;
1if("\\"===t)if(s(),"u"===t){for(r=0,n=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else if("string"==typeof i[t])a+=i[t];else break;else a+=t}o("Bad string")},u=function(){for(;t&&t<=" ";)s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},d=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return d();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),i2.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",h=[];if(!e)return e;e=i2.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,h[u++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(c<e.length);switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},i2.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},i2.UUID=function(){try{return n6.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",i2.map(e,function(e){return e.toString(16)}).join("")}};var i9=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];i2.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<i9.length;t++)if(-1!==e.indexOf(i9[t]))return!0;return!1},i2.HTTPBuildQuery=function(e,t){var r,n,i=[];return i2.isUndefined(t)&&(t="&"),i2.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},i2.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){i3.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},i2.cookie={get:function(e){for(var t=e+"=",r=iG.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=i2.JSONDecode(i2.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=oh(iG.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),iG.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=oh(iG.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return iG.cookie=d,d},remove:function(e,t,r){i2.cookie.set(e,"",-1,t,!1,!1,r)}};var i7=function(e){var t=!0;
1try{var r="__mplss_"+oc(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},oe=null,ot=function(e,t){return null===oe||t?oe=i7(e||n6.localStorage):oe},or=null;function on(e,t,r){var n=function(e){i3.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||i3.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return i2.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}i2.localStorage=on(n6.localStorage,"localStorage",ot),i2.sessionStorage=on(n6.sessionStorage,"sessionStorage",function(e,t){return null===or||t?or=i7(e||n6.sessionStorage):or}),i2.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t)return void i3.error("No valid element provided to register_event");if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s,a,c,u="on"+r,l=t[u];t[u]=(s=t,a=n,c=l,function(t){if(t=t||e(n6.event)){var r,n,i=!0;return i2.isFunction(c)&&(r=c(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var oi=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');i2.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!iG.getElementsByTagName)return[];var n=r.split(" "),i=[iG];for(f=0;f<n.length;f++){if((l=n[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var o=h[1],s=iG.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,c=h[1];for(b||(b="*"),d=[],p=0,m=0;m<i.length;m++)for(g=0,y="*"==b?e(i[m]):i[m].getElementsByTagName(b);g<y.length;g++)d[p++]=y[g];for(m=0,i=[],v=0;m<d.length;m++)d[m].className&&i2.isString(d[m].className)&&(a=d[m],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(i[v++]=d[m]);continue}var u=l.match(oi);if(u){var l,h,d,p,f,m,g,y,v,_,b=u[1],w=u[2],S=u[3],E=u[4];for(b||(b="*"),d=[],p=0,m=0;m<i.length;m++)for(g=0,y="*"==b?e(i[m]):i[m].getElementsByTagName(b);g<y.length;g++)d[p++]=y[g];switch(i=[],v=0,S){case"=":_=function(e){return e.getAttribute(w)==E};break;case"~":_=function(e){return e.getAttribute(w).match(RegExp("\\b"+E+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(RegExp("^"+E+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(E)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(E)==e.getAttribute(w).length-E.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(E)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(m=0,i=[],v=0;m<d.length;m++)_(d[m])&&(i[v++]=d[m]);continue}for(m=0,b=l,d=[],p=0;m<i.length;m++)for(g=0,y=i[m].getElementsByTagName(b);g<y.length;g++)d[p++]=y[g];i=d}return i}return function(e){return i2.isElement(e)?[e]:i2.isObject(e)&&!i2.isUndefined(e.length)?e:r.call(this,e)}}();var oo=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],os=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];i2.info={campaignParams:function(e){var t="",r={};return i2.each(oo,function(n){(t=i2.getQueryParam(iG.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return i2.each(os,function(r){(e=i2.getQueryParam(iG.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return i2.extend(i2.info.campaignParams(),i2.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=i2.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=i2.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||i2.includes(e," OPR/"))return i2.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(i2.includes(e,"IEMobile")||i2.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(i2.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(i2.includes(e,"Edge")||i2.includes(e,"Edg/"))return"Microsoft Edge";else if(i2.includes(e,"FBIOS"))return"Facebook Mobile";else if(i2.includes(e,"Whale/"))return"Whale Browser";else if(i2.includes(e,"Chrome"))return"Chrome";else if(i2.includes(e,"CriOS"))return"Chrome iOS";else if(i2.includes(e,"UCWEB")||i2.includes(e,"UCBrowser"))return"UC Browser";else if(i2.includes(e,"FxiOS"))return"Firefox iOS";else if(i2.includes(t,"Apple"))return i2.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(i2.includes(e,"Android"))return"Android Mobile";else if(i2.includes(e,"Konqueror"))return"Konqueror";else if(i2.includes(e,"Firefox"))return"Firefox";else if(i2.includes(e,"MSIE")||i2.includes(e,"Trident/"))return"Internet Explorer";else if(i2.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[i2.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(iK))return/Phone/.test(iK)||/WPDesktop/.test(iK)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(iK))return"iOS";if(/Android/.test(iK))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(iK))return"BlackBerry";if(/Mac/i.test(iK))return"Mac OS X";else if(/Linux/.test(iK))return"Linux";else if(/CrOS/.test(iK))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return n6.location.href},properties:function(e){return"object"!=typeof e&&(e={}),i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iK,iV.vendor,iW),$referrer:iG.referrer,$referring_domain:i2.info.referringDomain(iG.referrer),$device:i2.info.device(iK)}),{$current_url:i2.info.currentUrl(),$browser_version:i2.info.browserVersion(iK,iV.vendor,iW),$screen_height:iY.height,$screen_width:iY.width,mp_lib:"web",$lib_version:iU.LIB_VERSION,$insert_id:oc(),time:i2.timestamp()/1e3},i2.strip_empty_properties(e))},people_properties:function(){return i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iK,iV.vendor,iW)}),{$browser_version:i2.info.browserVersion(iK,iV.vendor,iW)})},mpPageViewProperties:function(){return i2.strip_empty_properties({current_page_title:iG.t
1itle,current_domain:n6.location.hostname,current_url_path:n6.location.pathname,current_url_protocol:n6.location.protocol,current_url_search:n6.location.search})}};var oa=function(e,t){var r=null,i=[];return function(o){var s=this;return i.push(o),r||(r=new n(function(n){setTimeout(function(){var t=e.apply(s,[i]);r=null,i=[],n(t)},t)})),r}},oc=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},ou=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ol=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,oh=function(e){var t=ol,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ou);var i=e.match(t);return i?i[0]:""},od=function(){var e=n6.navigator.onLine;return i2.isUndefined(e)||e},op=function(){},of=null,om=null;"undefined"!=typeof JSON&&(of=JSON.stringify,om=JSON.parse),of=of||i2.JSONEncode,om=om||i2.JSONDecode,i2.info=i2.info,i2.info.browser=i2.info.browser,i2.info.browserVersion=i2.info.browserVersion,i2.info.device=i2.info.device,i2.info.properties=i2.info.properties,i2.isBlockedUA=i2.isBlockedUA,i2.isEmptyObject=i2.
1isEmptyObject,i2.isObject=i2.isObject,i2.JSONDecode=i2.JSONDecode,i2.JSONEncode=i2.JSONEncode,i2.toArray=i2.toArray,i2.NPO=iL;var og="mixpanelRecordingEvents",oy="mixpanelRecordingRegistry",ov=[og,oy],o_=function(e){this.dbPromise=null,this.storeName=e};function ob(e,t){oR(!0,e,t)}function ow(e,t){oR(!1,e,t)}function oS(e,t){return"1"===oO(e,t)}function oE(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n6,r=t.navigator||{},n=!1;return i2.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){i2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return i3.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===oO(e,t);return r&&i3.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function ok(e){return oP(e,function(e){return this.get_config(e)})}function oI(e){return oP(e,function(e){return this._get_config(e)})}function oC(e){return oP(e,function(e){return this._get_config(e)})}function oT(e,t){ox(t=t||{}).remove(oA(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ox(e){return"localStorage"===(e=e||{}).persistenceType?i2.localStorage:i2.cookie}function oA(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function oO(e,t){return ox(t).get(oA(e,t))}function oR(e,t,r){if(!i2.isString(t)||!t.length)return void i3.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");ox(r=r||{}).set(oA(t,r),+!!e,i2.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function oP(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=oE(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){i3.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}o_.prototype._openDb=function(){return new n(function(e,t){var r=n6.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;ov.forEach(function(e){t.createObjectStore(e)})}})},o_.prototype.init=function(){return n6.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n6.IDBDatabase?n.resolve():n.reject(e)})):n.reject("indexedDB is not supported in this browser")},o_.prototype.isInitialized=function(){return!!this.dbPromise},o_.prototype.makeTransaction=function(e,t){var r=this.storeName,i=function(i){return new n(function(n,o){var s=i.transaction(r,e);s.oncomplete=function(){n(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(i).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(i)):n.reject(e)}).bind(this))},o_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},o_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},o_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},o_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var oM=i8("lock"),oN=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n6.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||n};oN.prototype.withLock=function(e,t){return new this.promiseImpl(i2.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",d=s+":Z",p=function(e){if(new Date().getTime()-o>c){oM.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(d),u.removeItem(h),g();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():p(function(){f(e,t)})},m=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(ot(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){u.setItem(l,i),f(m,function(){if(u.getItem(l)===i)return void y();p(function(){if(u.getItem(h)!==i)return void g();f(function(){return!u.getItem(d)},y)})})},y=function(){u.setItem(d,"1");var t=function(){u.removeItem(d),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(ot(u,!0))g();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var oL=function(e){this.storage=e||n6.localStorage};oL.prototype.init=function(){return n.resolve()},oL.prototype.isInitialized=function(){return!0},oL.prototype.setItem=function(e,t){return new n(i2.bind(function(r,n){try{this.storage.setItem(e,of(t))}catch(e){n(e)}r()},this))},oL.prototype.getItem=function(e){return new n(i2.bind(function(t,r){var n;try{n=om(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},oL.prototype.removeItem=function(e){return new n(i2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var oD=i8("batch"),oU=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new oL,this.lock=new oN(e,{storage:t.sharedLockStorage||n6.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||i2.bind(oD.error,oD),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=oa(i2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=i2.bind(function(e){return this._enqueuePersisted([e])},this)};oU.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?n.resolve():this.queueStorage.init(
1).then(i2.bind(function(){this.initialized=!0},this)).catch(i2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},oU.prototype.enqueue=function(e,t){var r={id:oc(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),n.resolve(!0))},oU.prototype._enqueuePersisted=function(e){var t=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(i2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(i2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},oU.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(r){if(r.length){var n={};i2.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):n.resolve(t)};var oj=function(e,t){var r=[];return i2.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};oU.prototype.removeItemsByID=function(e){var t={};if(i2.each(e,function(e){t[e]=!0}),this.memQueue=oj(this.memQueue,t),!this.usePersistence)return n.resolve(!0);var r=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){return e=oj(e,t),this.saveToStorage(e)},this)).then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(i2.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ot(this.lock.storage,!0)&&r().then(i2.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(i2.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var oF=function(e,t){var r=[];return i2.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};oU.prototype.updatePayloads=function(e){return(this.memQueue=oF(this.memQueue,e),this.usePersistence)?this.lock.withLock(i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(t){return t=oF(t,e),this.saveToStorage(t)},this)).catch(i2.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):n.resolve(!0)},oU.prototype.readFromStorage=function(){return this.ensureInit().then(i2.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(i2.bind(function(e){return e&&!i2.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(i2.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},oU.prototype.saveToStorage=function(e){return this.ensureInit().then(i2.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(i2.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},oU.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(i2.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):n.resolve()};var oB=i8("batch"),oH=function(e,t){this.errorReporter=t.errorReporter,this.queue=new oU(e,{errorReporter:i2.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};oH.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},oH.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},oH.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},oH.prototype.clear=function(){return this.queue.clear()},oH.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},oH.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},oH.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(i2.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},oH.prototype.sendRequestPromise=function(e,t){return new n(i2.bind(function(r){this.sendRequest(e,t,r)},this))},oH.prototype.flush=function(e){if(this.requestInProgress)return oB.log("Flush: Request already in progress"),n.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(i2.bind(function(o){var s=o.length===i,a=[],c={};if(i2.each(o,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=i2.extend({},t.properties,{mp_sent_by_lib_version:iU.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),n.resolve();var u=i2.bind(function(){return this.queue.removeItemsByID(i2.map(o,function(e){return e.id})).then(i2.bind(function(e){return(i2.each(o,i2.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s)?(this.resetFlush(),n.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),n.resolve())},this))},this),l=i2.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(i2.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(i2.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!od()||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),n.resolve()}else{if(!i2.isObject(s)||413!==s.httpStatusCode)return u();if(!(o.length>1))return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u();var l=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),n.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),oB.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)},this)).catch(i2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},oH.prototype.reportError=function(e,t){if(oB.error.apply(oB.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){oB.error(e)}};var oz=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},o$=i8("recorder"),oq=n6.CompressionStream,oV={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},oG=new Set([nl.MouseMove,nl.MouseInteraction,nl.Scroll,nl.ViewportResize,nl.Input,nl.TouchMove,nl.MediaInteraction,nl.Drag,nl.Selection]),oW=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||op,this._onMaxLengthReached=e.onMaxLengthReached||op,this._onBatchSent=e.onBatchSent||op,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ot(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new o_(og),this.batcher=new oH(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:oV,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};oW.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},oW.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},oW.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},oW.prototype.get_config=function(e){return this.getConfig(e)},oW.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void o$.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,o$.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,o$.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=i2.info.currentUrl(),this.replayStartUrl=i2.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp)return void this._onIdleTimeout();e.type===nu.IncrementalSnapshot&&oG.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e)}
1).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var n=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)},oW.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},oW.prototype.isRrwebStopped=function(){return null===this._stopRecording},oW.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},oW.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},oW.deserialize=function(e,t){return new oW(i2.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},oW.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=i2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");n6.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},oW.prototype._flushEvents=ok(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===nu.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:iU.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),oq?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new oq("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),oW.prototype.reportError=function(e,t){o$.error.apply(o$.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){o$.error(e)}};var oY=function(e){this.idb=new o_(oy),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};oY.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},oY.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},oY.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return n.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),n.resolve())},oY.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return oz(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):n.resolve(null)},oY.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},oY.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},oY.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):n.resolve()},oY.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return oz(e)}
1).map((function(e){return oW.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return n.all(t)}).bind(this)).catch(this.handleError.bind(this)):n.resolve([])};var oK=i8("recorder"),oJ=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||n3,this.sharedLockStorage=r,this.recordingRegistry=new oY({mixpanelInstance:this.mixpanelInstance,errorReporter:oK.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};oJ.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void oK.log("Recording already in progress, skipping startRecording.");var t=(function(){oK.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){oK.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:i2.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=oW.deserialize(e.activeSerializedRecording,i):this.activeRecording=new oW(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},oJ.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))},oJ.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},oJ.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return n.resolve()},oJ.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),n.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(oK.log("No resumable recording found."),null)}).bind(this))},oJ.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},oJ.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(oJ.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n6.__mp_recorder=oJ;var oX="change",oQ="click",oZ="hashchange",o0="load",o1="mp_locationchange",o2="popstate",o3="scrollend",o6="scroll",o8="submit",o4="visibilitychange",o5=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],o9=["mp-include"],o7=["mp-no-track"],se=o7.concat(["mp-sensitive"]),st=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],sr={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},sn={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},si={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},so=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ss=i8("autocapture");function sa(e){for(var t={},r=sc(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function sc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function su(e,t,r,n,i,o){var s={$classes:sc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),sg(e,t,i,o)&&i2.each(st.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);sy(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!sp(e));return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function sl(e,t,r,n){var i="";return sg(e,t,r,n)&&e.childNodes&&e.childNodes.length&&i2.each(e.childNodes,function(e){sm(e)&&e.textContent&&(i+=i2.trim(e.textContent).split(/(\s+)/).filter(sy).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),i2.trim(i)}function sh(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return ss.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){ss.critical("Error while checking selector: "+o,e)}}return!1}function sd(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return ss.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,o=n[i];try{if(e.matches(o))return!0}catch(e){ss.critical("Error while checking selector: "+o,e)}}var s=sa(e);for(i=0;i<o7.length;i++)if(s[o7[i]])return!0;return!1}function sp(e){return e&&1===e.nodeType}function sf(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function sm(e){return e&&3===e.nodeType}function sg(e,t,r,n){if(!sh(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!sf(o,"body");o=o.parentNode){var s=sa(o);for(i=0;i<se.length;i++)if(s[se[i]])return!1}var a=sa(e);for(i=0;i<o9.length;i++)if(a[o9[i]])return!0;if(sf(e,"input")||sf(e,"select")||sf(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}var u=e.name||e.id||"";return!("string"==typeof u&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(u.replace(/[^a-zA-Z0-9]/g,"")))&&!0}function sy(e){if(null===e||i2.isUndefined(e))return!1;if("string"==typeof e&&(e=i2.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function sv(e){var t="onscrollend"in n6,r=i4(e),n=o3;if(!t){var i=null;r=i4(function(){clearTimeout(i),i=setTimeout(e,100)}),n=o6}return{listener:r,eventType:n}}function s_(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<so.length;t++)if(e.hasAttribute(so[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&sr[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function sb(){this.clicks=[]}function sw(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}sb.prototype.isRageClick=function(e,t,r){var n=(r=r||{}).threshold_px||30,i=r.timeout_ms||1e3,o=r.click_count||4,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},sw.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},sw.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},sw.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},sw.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){ss.critical("Error while observing shadow root",e)}}},sw.prototype.start=function(){if(!this.observedShadowRoots){if("undefined"==typeof WeakSet)return void ss.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},sw.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){ss.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var sS=[oX,"input",o8,"select","toggle"],sE=[o3],sk=[oZ],sI={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function sC(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}sC.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(sn[t])return!0;
vendor: 4,142 bytes, line 1
1if(s_(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(s_(r))return!1;if(r.getRootNode&&r.getRootNode()!==iG){var i=r.getRootNode();if(i.host&&s_(i.host))return!1}r=r.parentElement,n++}return!!si[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},sC.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},sC.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},sC.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},sC.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},sC.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},sC.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},sC.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;sS.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),sk.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),sE.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,sI)}catch(e){ss.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new sw(function(){e.recordChangeEvent()},sI),this.shadowDOMObserver.start()}catch(e){ss.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},sC.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){ss.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){ss.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){ss.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var sT="autocapture",sx="full-url",sA="allow_selectors",sO="allow_url_regexes",sR="block_attrs",sP="block_element_callback",sM="block_selectors",sN="block_url_regexes",sL="capture_extra_attrs",sD="capture_text_content",sU="scroll_capture_all",sj="scroll_depth_percent_checkpoints",sF="click",sB="dead_click",sH="input",sz="pageview",s$="rage_click",sq="scroll",sV="page_leave",sG="submit",sW={};sW[sA]=[],sW[sO]=[],sW[sR]=[],sW[sP]=null,sW[sM]=[],sW[sN]=[],sW[sL]=[],sW[sD]=!1,sW[sU]=!1,sW[sj]=[25,50,75,100],sW[sF]=!0,sW[sB]=!0,sW[sH]=!0,sW[sz]=sx,sW[s$]=!0,sW[sq]=!0,sW[sV]=!1,sW[sG]=!0;var sY={$mp_autocapture:!0}
1,sK="$mp_click",sJ="$mp_dead_click",sX="$mp_rage_click",sQ=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};sQ.prototype.init=function(){if(!function(){try{return!!iG.createElement("div").matches}catch(e){return!1}}())return void ss.critical("Autocapture unavailable: missing required DOM APIs");this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},sQ.prototype.getFullConfig=function(){var e=this.mp.get_config(sT);return e?i2.isObject(e)?i2.extend({},sW,e):sW:{}},sQ.prototype.getConfig=function(e){return this.getFullConfig()[e]},sQ.prototype.currentUrlBlocked=function(){var e,t=i2.info.currentUrl(),r=this.getConfig(sO)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(e){return ss.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(sN)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return ss.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},sQ.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(sT)?this.getConfig(sz):this.mp.get_config("track_pageview")},sQ.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===sK&&!this.getConfig(sF)||t===sX&&!this._getClickTrackingConfig(s$)||t===sJ&&!this._getClickTrackingConfig(sB)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};i2.each(i,function(e){l[e]=!0});var h=null,d=void 0===e.target?e.srcElement:e.target;if(sm(d)&&(d=d.parentNode),function(e,t){if(!e||sf(e,"html")||!sp(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===o8;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===oX;return t.type===oQ;case"select":case"textarea":return t.type===oX;default:return t.type===oQ}}(d,e)&&sh(d,e,r,n)&&!sd(d,e,o,s)){for(var p=[d],f=d;f.parentNode&&!sf(f,"body");)p.push(f.parentNode),f=f.parentNode;var m,g=[],y=!1;if(i2.each(p,function(t){var i=sg(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&sy(m)&&m),sd(t,e,o,s)&&(y=!0),g.push(su(t,e,l,c,r,n))},this),!y){var v=iG.documentElement;if(h={$event_type:e.type,$host:n6.location.host,$pathname:n6.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(v.clientHeight,n6.innerHeight||0),$viewportWidth:Math.max(v.clientWidth,n6.innerWidth||0),$pageHeight:iG.body.offsetHeight||0,$pageWidth:iG.body.offsetWidth||0},i2.each(c,function(e){if(!l[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);sy(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=sl(d,e,r,n))&&_.length&&(h.$el_text=_),e.type===oQ&&(i2.each(o5,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),d=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(sf(i,"a")||sf(i,"button")||sf(i,"input")||sf(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=sl(d,e,r,n);_&&_.length&&(h.$el_text=_)}if(d){if(!sh(d,e,r,n)||sd(d,e,o,s))return null;var b=su(d,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,i2.extend(h,i2.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(sA),blockAttrs:this.getConfig(sR),blockElementCallback:this.getConfig(sP),blockSelectors:this.getConfig(sM),captureExtraAttrs:this.getConfig(sL),captureTextContent:this.getConfig(sD),capturedForHeatMap:r});n&&(i2.extend(n,sY),this.mp.track(t,n))}},sQ.prototype.initPageListeners=function(){if(n6.removeEventListener(o2,this.listenerPopstate),n6.removeEventListener(oZ,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(sV)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){n6.dispatchEvent(new Event(o1))},this.listenerHashchange=function(){n6.dispatchEvent(new Event(o1))},n6.addEventListener(o2,this.listenerPopstate),n6.addEventListener(oZ,this.listenerHashchange);var e=n6.history.pushState;"function"==typeof e&&(n6.history.pushState=function(t,r,n){e.call(n6.history,t,r,n),n6.dispatchEvent(new Event(o1))});var t=n6.history.replaceState;"function"==typeof t&&(n6.history.replaceState=function(e,r,n){t.call(n6.history,e,r,n),n6.dispatchEvent(new Event(o1))})}},sQ.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},sQ.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession){this.hasTrackedScrollSession=!0;var n=Math.max(iG.documentElement.clientHeight,n6.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=i2.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||i2.info.currentUrl(),$viewportHe
1ight:n,$viewportWidth:Math.max(iG.documentElement.clientWidth,n6.innerWidth||0)},sY);this.mp.is_recording_heatmap_data()&&!this.getConfig(sV)&&(s.$captured_for_heatmap=!0),this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},sQ.prototype._initScrollDepthTracking=function(){if(n6.removeEventListener(o6,this.listenerScrollDepth),n6.removeEventListener(o3,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ss.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(iG.documentElement.clientHeight,n6.innerHeight||0);var e=sv((function(){if(!this.currentUrlBlocked()){var e=Math.max(iG.documentElement.clientHeight,n6.innerHeight||0)+n6.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=iG.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,n6.addEventListener(e.eventType,this.listenerScrollDepth)}},sQ.prototype.initClickTracking=function(){n6.removeEventListener(oQ,this.listenerClick),(this.getConfig(sF)||this.mp.get_config("record_heatmap_data"))&&(ss.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(sF)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,sK)}).bind(this),n6.addEventListener(oQ,this.listenerClick))},sQ.prototype.initDeadClickTracking=function(){if(!this._getClickTrackingConfig(sB)&&!this.mp.get_config("record_heatmap_data"))return void this.stopDeadClickTracking();ss.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new sC((function(e){this.trackDomEvent(e,sJ)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(sB);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),n6.addEventListener(oQ,this.listenerDeadClick))},sQ.prototype.initInputTracking=function(){n6.removeEventListener(oX,this.listenerChange),this.getConfig(sH)&&(ss.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(sH)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),n6.addEventListener(oX,this.listenerChange))},sQ.prototype.initPageviewTracking=function(){if(n6.removeEventListener(o1,this.listenerLocationchange),this.pageviewTrackingConfig()){
1ss.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(sY)),t&&(e=i2.info.currentUrl()),this.listenerLocationchange=i4((function(){if(!this.currentUrlBlocked()){var t=i2.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===sx?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(sY)&&(e=t),n&&(this.lastScrollCheckpoint=0,ss.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),n6.addEventListener(o1,this.listenerLocationchange)}},sQ.prototype.initRageClickTracking=function(){n6.removeEventListener(oQ,this.listenerRageClick),(this._getClickTrackingConfig(s$)||this.mp.get_config("record_heatmap_data"))&&(ss.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new sb),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(s$);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,sX)}).bind(this),n6.addEventListener(oQ,this.listenerRageClick))},sQ.prototype.initScrollTracking=function(){if(n6.removeEventListener(o3,this.listenerScroll),n6.removeEventListener(o6,this.listenerScroll),this.getConfig(sq)){ss.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(sq)&&!this.currentUrlBlocked()){var e=this.getConfig(sU),t=(this.getConfig(sj)||[]).slice().sort(function(e,t){return e-t}),r=n6.scrollY,n=i2.extend({$scroll_top:r},sY);try{var i=iG.body.scrollHeight,o=Math.round(r/(i-n6.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){ss.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=sv(e);this.listenerScroll=t.listener,n6.addEventListener(t.eventType,this.listenerScroll)}},sQ.prototype.initSubmitTracking=function(){n6.removeEventListener(o8,this.listenerSubmit),this.getConfig(sG)&&(ss.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(sG)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),n6.addEventListener(o8,this.listenerSubmit))},sQ.prototype.initPageLeaveTracking=function(){if(iG.removeEventListener(o4,this.listenerPageLeaveVisibilitychange),n6.removeEventListener(o1,this.listenerPageLeaveLocationchange),n6.removeEventListener(o0,this.listenerPageLoad),this.getConfig(sV)||this.mp.get_config("record_heatmap_data")){ss.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=i2.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=iG.body.scrollHeight}).bind(this),n6.addEventListener(o0,this.listenerPageLoad),this.listenerPageLeaveLocationchange=i4((function(t){if(!this.currentUrlBlocked()){var r=i2.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(iG.documentElement.clientHeight,n6.innerHeight||0),this.previousScrollHeight=iG.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),n6.addEventListener(o1,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){iG.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),iG.addEventListener(o4,this.listenerPageLeaveVisibilitychange)}},sQ.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(n6.removeEventListener(oQ,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},i5(sQ);var sZ=i8("flags"),s0="flags",s1="context",s2={};s2[s1]={};var s3=function(e){this.fetch=n6.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};s3.prototype.init=function(){if(!this.minApisSupported())return void sZ.critical("Feature Flags unavailable: missing minimum required APIs");this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},s3.prototype.getFullConfig=function(){var e=this.getMpConfig(s0);return e?i2.isObject(e)?i2.extend({},s2,e):s2:{}},s3.prototype.getConfig=function(e){return this.getFullConfig()[e]},s3.prototype.isSystemEnabled=function(){return!!this.getMpConfig(s0)},s3.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return sZ.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(s0);i2.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(s1);return r[s1]=i2.extend({},n,e),this.setMpConfig(s0,r),this.fetchFlags()},s3.prototype.areFlagsReady=function(){return this.isSystemEnabled()||sZ.error("Feature Flags not enabled"),!!this.flags},s3.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r="00-"+i2.UUID().replace(/-/g,"")+"-"+i2.UUID().replace(/-/g,"").substring(0,16)+"-01";sZ.log("Fetching flags for distinct ID: "+e);var n=i2.extend({distinct_id:e,device_id:t},this.getConfig(s1)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",iU.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(n6,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json().then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map;i2.each(t,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this.flags=n,this._traceparent=r}).bind(this)).catch((function(e){this.markFetchComplete(),sZ.error(e)}).bind(this))}).bind(this)).catch((function(e){this.markFetchComplete(),sZ.error(e)}).bind(this)),this.fetchPromise},s3.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime)return void sZ.error("Fetch in progress started time not set, cannot mark fetch complete");this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},s3.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return sZ.error(e),t}):new Promise(function(e){sZ.critical("Feature Flags not initialized"),e(t)})},s3.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return sZ.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(sZ.log('No flag found: "'+e+'"'),t)},s3.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return sZ.error(e),t})},s3.prototype.getFeatureData=function(e,t){return sZ.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
1) instead."),this.getVariantValue(e,t)},s3.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},s3.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return sZ.error(e),t})},s3.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(sZ.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},s3.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},s3.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},i5(s3),s3.prototype.are_flags_ready=s3.prototype.areFlagsReady,s3.prototype.get_variant=s3.prototype.getVariant,s3.prototype.get_variant_sync=s3.prototype.getVariantSync,s3.prototype.get_variant_value=s3.prototype.getVariantValue,s3.prototype.get_variant_value_sync=s3.prototype.getVariantValueSync,s3.prototype.is_enabled=s3.prototype.isEnabled,s3.prototype.is_enabled_sync=s3.prototype.isEnabledSync,s3.prototype.update_context=s3.prototype.updateContext,s3.prototype.get_feature_data=s3.prototype.getFeatureData;var s6=function(){};s6.prototype.create_properties=function(){},s6.prototype.event_handler=function(){},s6.prototype.after_track_handler=function(){},s6.prototype.init=function(e){return this.mp=e,this},s6.prototype.track=function(e,t,r,n){var i=this,o=i2.dom_query(e);return 0===o.length?void i3.error("The DOM query ("+e+") returned 0 elements"):(i2.each(o,function(e){i2.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},s6.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},s6.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):i2.extend({},e)};var s8=function(){this.override_event="click"};i2.inherit(s8,s6),s8.prototype.create_properties=function(e,t){var r=s8.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},s8.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},s8.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var s4=function(){this.override_event="submit"};i2.inherit(s4,s6),s4.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},s4.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var s5="$set",s9="$set_once",s7="$unset",ae="$add",at="$append",ar="$union",an="$remove",ai={set_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[s5]=n,r},unset_action:function(e){var t={},r=[];return i2.isArray(e)||(e=[e]),i2.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[s7]=r,t},set_once_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[s9]=n,r},union_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=i2.isArray(e)?e:[e])},this):n[e]=i2.isArray(t)?t:[t],r[ar]=n,r},append_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[at]=n,r},remove_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[an]=n,r},delete_action:function(){var e={};return e.$delete="",e}},ao=function(){};i2.extend(ao.prototype,ai),ao.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},ao.prototype.set=oC(function(e,t,r){var n=this.set_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),ao.prototype.set_once=oC(function(e,t,r){var n=this.set_once_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),ao.prototype.unset=oC(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ao.prototype.union=oC(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ao.prototype.delete=oC(function(e){var t=this.delete_action();return this._send_request(t,e)}),ao.prototype.remove=oC(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),ao.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=i2.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},ao.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ao.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ao.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ao.prototype.remove=ao.prototype.remove,ao.prototype.set=ao.prototype.set,ao.prototype.set_once=ao.prototype.set_once,ao.prototype.union=ao.prototype.union,ao.prototype.unset=ao.prototype.unset,ao.prototype.toString=ao.prototype.toString;var as=function(){};i2.extend(as.prototype,ai),as.prototype._init=function(e){this._mixpanel=e},as.prototype.set=oI(function(e,t,r){var n=this.set_action(e,t);return i2.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[s5]=i2.extend({},i2.info.people_properties(),n[s5]),this._send_request(n,r)}),as.prototype.set_once=oI(function(e,t,r){var n=this.set_once_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),as.prototype.unset=oI(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),as.prototype.increment=oI(function(e,t,r){var n={},i={};return i2.isObject(e)?(i2.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void i3.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(i2.isUndefined(t)&&(t=1),i[e]=t),n[ae]=i,this._send_request(n,r)}),as.prototype.append=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),as.prototype.remove=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),as.prototype.union=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),as.prototype.track_charge=oI(function(){i3.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),as.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},as.prototype.delete_user=function(){if(!this._identify_called())return void i3.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},as.prototype.toString=function(){return this._mixpanel.toString()+".people"},as.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=i2.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),i2.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),i2.truncate(o,255))},as.prototype._get_config=function(e){return this._mixpanel.get_config(e)},as.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},as.prototype._enqueue=function(e){s5 in e?this._mixpanel.persistence._add_to_people_queue(s5,e):s9 in e?this._mixpanel.persistence._add_to_people_queue(s9,e):s7 in e?this._mixpanel.persistence._add_to_people_queue(s7,e):ae in e?this._mixpanel.persistence._add_to_people_queue(ae,e):at in e?this._mixpanel.persistence._add_to_people_queue(at,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):ar in e?this._mixpanel.persistence._add_to_people_queue(ar,e):i3.error("Invalid call to _enqueue():",e)},as.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=i2.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!i2.isUndefined(o)&&i2.isObject(o)&&!i2.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
1xpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),i2.isUndefined(r)||r(t,n)}))},as.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(s5,this.set,e),this._flush_one_queue(s9,this.set_once,n),this._flush_one_queue(s7,this.unset,o,function(e){return i2.keys(e)}),this._flush_one_queue(ae,this.increment,t),this._flush_one_queue(ar,this.union,i);var c=this._mixpanel.persistence.load_queue(at);if(!i2.isUndefined(c)&&i2.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(at,u),i2.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(at)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(u)||a.append(u,l);var d=this._mixpanel.persistence.load_queue(an);if(!i2.isUndefined(d)&&i2.isArray(d)&&d.length)for(var p,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(an,p),i2.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)p=(d=this._mixpanel.persistence.load_queue(an)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(p)||a.remove(p,f)},as.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},as.prototype.set=as.prototype.set,as.prototype.set_once=as.prototype.set_once,as.prototype.unset=as.prototype.unset,as.prototype.increment=as.prototype.increment,as.prototype.append=as.prototype.append,as.prototype.remove=as.prototype.remove,as.prototype.union=as.prototype.union,as.prototype.track_charge=as.prototype.track_charge,as.prototype.clear_charges=as.prototype.clear_charges,as.prototype.delete_user=as.prototype.delete_user,as.prototype.toString=as.prototype.toString;var aa="__mps",ac="__mpso",au="__mpus",al="__mpa",ah="__mpap",ad="__mpr",ap="__mpu",af="$people_distinct_id",am="__alias",ag="__timers",ay=[aa,ac,au,al,ah,ad,ap,af,am,ag],av=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(i3.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&i2.localStorage.is_supported()?this.storage=i2.localStorage:this.storage=i2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};av.prototype.properties=function(){var e={};return this.load(),i2.each(this.props,function(t,r){i2.include(ay,r)||(e[r]=t)}),e},av.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=i2.extend({},e))}},av.prototype.upgrade=function(){var e,t;this.storage===i2.localStorage?(e=i2.cookie.parse(this.name),i2.cookie.remove(this.name),i2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===i2.cookie&&(t=i2.localStorage.parse(this.name),i2.localStorage.remove(this.name),t&&this.register_once(t))},av.prototype.save=function(){this.disabled||this.storage.set(this.name,of(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},av.prototype.load_prop=function(e){return this.load(),this.props[e]},av.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},av.prototype.clear=function(){this.remove(),this.props={}},av.prototype.register_once=function(e,t,r){return!!i2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),i2.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},av.prototype.register=function(e,t){return!!i2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),i2.extend(this.props,e),this.save(),!0)},av.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},av.prototype.update_search_keyword=function(e){this.register(i2.info.searchInfo(e))},av.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:i2.info.referringDomain(e)||"$direct"},"")},av.prototype.get_referrer_info=function(){return i2.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},av.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},av.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},av.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},av.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},av.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},av.prototype.get_cross_subdomain=function(){return this.cross_subdomain},av.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},av.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(s5),o=this._get_or_create_queue(s9),s=this._get_or_create_queue(s7),a=this._get_or_create_queue(ae),c=this._get_or_create_queue(ar),u=this._get_or_create_queue(an,[]),l=this._get_or_create_queue(at,[]);r===aa?(i2.extend(i,n),this._pop_from_people_queue(ae,n),this._pop_from_people_queue(ar,n),this._pop_from_people_queue(s7,n)):r===ac?(i2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(s7,n)):r===au?i2.each(n,function(e){i2.each([i,o,a,c],function(t){e in t&&delete t[e]}),i2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===al?(i2.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(s7,n)):r===ap?(i2.each(n,function(e,t){i2.isArray(e)&&(t in c||(c[t]=[]),i2.each(e,function(e){i2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(s7,n)):r===ad?(u.push(n),this._pop_from_people_queue(at,n)):r===ah&&(l.push(n),this._pop_from_people_queue(s7,n)),i3.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),i3.log(t),this.save()},av.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];i2.isUndefined(r)||i2.each(t,function(t,n){e===at||e===an?i2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},av.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},av.prototype._get_queue_key=function(e){return e===s5?aa:e===s9?ac:e===s7?au:e===ae?al:e===at?ah:e===an?ad:e===ar?ap:void i3.error("Invalid queue:",e)},av.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=i2.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},av.prototype.set_event_timer=function(e,t){var r=this.load_prop(ag)||{};r[e]=t,this.props[ag]=r,this.save()},av.prototype.remove_event_timer=function(e){var t=(this.load_prop(ag)||{})[e];return i2.isUndefined(t)||(delete this.props[ag][e],this.save()),t};var a_=function(e,t){throw Error(e+" not available in this build.")},ab=function(e){return e},aw="mixpanel",aS="base64",aE="$device:",ak=n6.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,aI=!ak&&-1===iK.indexOf("MSIE")&&-1===iK.indexOf("Mozilla"),aC=null;iV.sendBeacon&&(aC=function(){return iV.sendBeacon.apply(iV,arguments)});var aT={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},ax={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:aT,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:aS,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:op,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:op,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
1:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},aA=!1,aO=function(){},aR=function(e,t,r){var n,s=r===aw?o:o[r];if(s&&0===i)n=s;else{if(s&&!i2.isArray(s))return void i3.error("You have already initialized "+r);n=new aO}if(n._cached_groups={},n._init(e,t,r),n.people=new as,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var a=i2.info.campaignParams(null),c={},u=!1;i2.each(a,function(e,t){c["initial_"+t]=e,e&&(u=!0)}),u&&n.people.set_once(c)}return iU.DEBUG=iU.DEBUG||n.get_config("debug"),!i2.isUndefined(s)&&i2.isArray(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),n};aO.prototype.init=function(e,t,r){if(i2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===aw)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=aR(e,t,r);return o[r]=n,n._loaded(),n},aO.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||ax.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(i2.extend({},ax,n,t,{name:r,token:e,callback_fn:(r===aw?r:aw+"."+r)+"._jsc"})),this._jsc=op,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(i2.localStorage.is_supported(!0)&&ak){if(this.init_batchers(),aC&&n6.addEventListener){var i=i2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n6.addEventListener("pagehide",function(e){e.persisted&&i()}),n6.addEventListener("visibilitychange",function(){"hidden"===iG.visibilityState&&i()})}}else this._batch_requests=!1,i3.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),i2.each(this.get_batcher_configs(),function(e){i3.log("Clearing batch queue "+e.queue_key),i2.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new av(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=i2.UUID();this.get_distinct_id()||this.register_once({distinct_id:aE+o,$device_id:o},""),this.flags=new s3({getFullApiRoute:i2.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:i2.bind(this.get_config,this),setConfigFunc:i2.bind(this.set_config,this),getPropertyFunc:i2.bind(this.get_property,this),trackingFunc:i2.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new sQ(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},aO.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))i3.log("Tab ID initialization skipped due to disable_persistence config");else if(i2.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(i2.sessionStorage.get(r)||!i2.sessionStorage.get(t))&&i2.sessionStorage.set(t,"$tab-"+i2.UUID()),i2.sessionStorage.set(r,"1"),this.tab_id=i2.sessionStorage.get(t),n6.addEventListener("beforeunload",function(){i2.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},aO.prototype.get_tab_id=function(){return this.tab_id||null},aO.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return i3.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new o_(oy),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(oz(e[r])||e[r].tabId===t)return!0;return!1}).catch(i2.bind(function(e){this.report_error("Error checking recording registry",e)},this))},aO.prototype._check_and_start_session_recording=ok(function(e){if(!n6.MutationObserver)return void i3.critical("Browser does not support MutationObserver; skipping session recording");var t=i2.bind(function(e){var t=i2.bind(function(){this._recorder=this._recorder||new n6.__mp_recorder(this),this._recorder.resumeRecording(e)},this);i2.isUndefined(n6.__mp_recorder)?a_(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),aO.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},aO.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},aO.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},aO.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},aO.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},aO.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},aO.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+i2.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},aO.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},aO.prototype.__get_recorder=function(){return this._recorder},aO.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=i2.info.campaignParams(null);i2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},aO.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(iG.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(i2.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(iG.referrer)},aO.prototype._dom_loaded=function(){i2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||i2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},aO.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!aA)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},aO.prototype._prepare_callback=function(e,t){if(i2.isUndefined(e))return null;if(ak)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},aO.prototype._send_request=function(e,t,r,n){var i=!0;if(aI)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!n&&(i2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=i2.extend(o,r||{}),ak||(r.method="GET");var a="POST"===r.method,c=aC&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),!ak&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),i2.extend(t,this.get_config("api_extra_query_params")),e+="?"+i2.HTTPBuildQuery(t);var l=this;if("img"in t){var h=iG.createElement("img");h.src=e,iG.body.appendChild(h)}else if(c){try{i=aC(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(ak)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(a&&(p["Content-Type"]="application/x-www-form-urlencoded"),i2.each(p,function(e,t){d.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=new Date().getTime()}d.withCredentials=!0,d.onreadystatechange=function(){if(4===d.readyState){if(200===d.status){if(n)if(u){try{e=i2.JSONDecode(d.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=d.responseText}n(e)}else n(Number(d.responseText))}else if(t=d.timeout&&!d.status&&new Date().getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(t),n)if(u){var e,t,i=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},d.send(s)}catch(e){l.report_error(e),i=!1}else{var m=iG.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=iG.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},aO.prototype._execute_array=function(e){var t,r=[],n=[],i=[];i2.each(e,function(e){e&&(t=e[0],i2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):i2.isArray(e)&&"alias"===t?r.push(e):i2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){i2.each(e,function(e){if(i2.isArray(e[0])){var r=t;i2.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},aO.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},aO.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},aO.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=i2.bind(function(e){return new oH(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:i2.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:i2.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:i2.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},aO.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,i2.each(this.request_batchers,function(e){e.start()}))},aO.prototype.stop_batch_senders=function(){this._batch_requests=!1,i2.each(this.request_batchers,function(e){e.stop(),e.clear()})},aO.prototype.push=function(e){this._execute_array([e])},aO.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},aO.prototype._encode_data_for_request=function(e){var t=of(e);return this.get_config("api_payload_format")===aS&&(t=i2.base64Encode(t)),{data:t}},aO.prototype._track_or_batch=function(e,t){var r=i2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||op;var a=!0,c=i2.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(i3.log("MIXPANEL REQUEST:"),i3.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):c()}):a=c(),a&&r},aO.prototype.track=ok(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=op),i2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=i2.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!i2.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?i2.info.marketingParams():{};t=i2.extend({},i2.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");i2.isArray(u)?i2.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}),aO.prototype.set_group=ok(function(e,t,r){i2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),aO.prototype.add_group=ok(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),aO.prototype.remove_group=ok(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),aO.prototype.track_with_groups=ok(function(e,t,r,n){var i=i2.extend({},t||{});return i2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),aO.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},aO.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},aO.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new ao)._init(this,e,t),this._cached_groups[r]=n),n},aO.prototype.track_pageview=ok(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=i2.extend(i2.info.mpPageViewProperties(),i2.info.campaignParams(),i2.info.clickParams()),i=i2.extend({},n,e);return this.track(r,i)}),aO.prototype.track_links=function(){return this._track_dom.call(this,s8,arguments)},aO.prototype.track_forms=function(){return this._track_dom.call(this,s4,arguments)},aO.prototype.time_event=function(e){if(i2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.time_event");this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var aP={persistent:!0},aM=function(e){var t;return t=i2.isObject(e)?e:i2.isUndefined(e)?{}:{days:e},i2.extend({},aP,t)};aO.prototype.register=function(e,t){var r=aM(t);r.persistent?this.persistence.register(e,r.days):i2.extend(this.unpersisted_superprops,e)},aO.prototype.register_once=function(e,t,r){var n=aM(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),i2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},aO.prototype.unregister=function(e,t){(t=aM(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},aO.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},aO.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(aE))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(am)&&(this.unregister(am),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},aO.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=i2.UUID();this.register_once({distinct_id:aE+e,$device_id:e},""),this._check_and_start_session_recording()},aO.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},aO.prototype.alias=function(e,t){if(e===this.get_property(af))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(i2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(am,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},aO.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},aO.prototype.set_config=function(e){i2.isObject(e)&&(i2.extend(this.config,e),e.batch_size&&i2.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),iU.DEBUG=iU.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},aO.prototype.get_config=function(e){return this.config[e]},aO.prototype._run_hook=function(e){var t=(this.config.hooks[e]||ab).apply(this,iH.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},aO.prototype.get_property=function(e){return this.persistence.load_prop([e])},aO.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},aO.prototype.toString=function(){var e=this.get_config("name");return e!==aw&&(e=aw+"."+e),e},aO.prototype._event_is_disabled=function(e){return i2.isBlockedUA(iK)||this._flags.disable_all_events||i2.include(this.__disabled_events,e)},aO.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&i2.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||i2.cookie.get("mp_optout"))&&(i2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},aO.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},aO.prototype._gdpr_call_func=function(e,t){return t=i2.extend({track:i2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),i2.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},aO.prototype.opt_in_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(ob,e),this._gdpr_update_persistence(e)},aO.prototype.opt_out_tracking=function(e){(e=i2.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ow,e),this._gdpr_update_persistence(e)},aO.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(oS,e)},aO.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oE,e)},aO.prototype.clear_opt_in_out_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(oT,e),this._gdpr_update_persistence(e)},aO.prototype.report_error=function(e,t){i3.error.apply(i3.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){i3.error(e)}},aO.prototype.init=aO.prototype.init,aO.prototype.reset=aO.prototype.reset,aO.prototype.disable=aO.prototype.disable,aO.prototype.time_event=aO.prototype.time_event,aO.prototype.track=aO.prototype.track,aO.prototype.track_links=aO.prototype.track_links,aO.prototype.track_forms=aO.prototype.track_forms,aO.prototype.track_pageview=aO.prototype.track_pageview,aO.prototype.register=aO.prototype.register,aO.prototype.register_once=aO.prototype.register_once,aO.prototype.unregister=aO.prototype.unregister,aO.prototype.identify=aO.prototype.identify,aO.prototype.alias=aO.prototype.alias,aO.prototype.name_tag=aO.prototype.name_tag,aO.prototype.set_config=aO.prototype.set_config,aO.prototype.get_config=aO.prototype.get_config,aO.prototype.get_api_host=aO.prototype.get_api_host,aO.prototype.get_property=aO.prototype.get_property,aO.prototype.get_distinct_id=aO.prototype.get_distinct_id,aO.prototype.toString=aO.prototype.toString,aO.prototype.opt_out_tracking=aO.prototype.opt_out_tracking,aO.prototype.opt_in_tracking=aO.prototype.opt_in_tracking,aO.prototype.has_opted_out_tracking=aO.prototype.has_opted_out_tracking,aO.prototype.has_opted_in_tracking=aO.prototype.has_opted_in_tracking,aO.prototype.clear_opt_in_out_tracking=aO.prototype.clear_opt_in_out_tracking,aO.prototype.get_group=aO.prototype.get_group,aO.prototype.set_group=aO.prototype.set_group,aO.prototype.add_group=aO.prototype.add_group,aO.prototype.remove_group=aO.prototype.remove_group,aO.prototype.track_with_groups=aO.prototype.track_with_groups,aO.prototype.start_batch_senders=aO.prototype.start_batch_senders,aO.prototype.stop_batch_senders=aO.prototype.stop_batch_senders,aO.prototype.start_session_recording=aO.prototype.start_session_recording,aO.prototype.stop_session_recording=aO.prototype.stop_session_recording,aO.prototype.pause_session_recording=aO.prototype.pause_session_recording,aO.prototype.resume_session_recording=aO.prototype.resume_session_recording,aO.prototype.get_session_recording_properties=aO.prototype.get_session_recording_properties,aO.prototype.get_session_replay_url=aO.prototype.get_session_replay_url,aO.prototype.get_tab_id=aO.prototype.get_tab_id,aO.prototype.DEFAULT_API_ROUTES=aT,aO.prototype.__get_recorder=aO.prototype.__get_recorder,av.prototype.properties=av.prototype.properties,av.prototype.update_search_keyword=av.prototype.update_search_keyword,av.prototype.update_referrer_info=av.prototype.update_referrer_info,av.prototype.get_cross_subdomain=av.prototype.get_cross_subdomain,av.prototype.clear=av.prototype.clear;var aN={},aL=function(){i2.each(aN,function(e,t){t!==aw&&(o[t]=e)}),o._=i2},aD=(a_=function(e,t){t()},i=0,(o=new aO).init=function(e,t,r){if(r)return o[r]||(o[r]=aN[r]=aR(e,t,r),o[r]._loaded()),o[r];var n=o;aN[aw]?n=aN[aw]:e&&((n=aR(e,t,aw))._loaded(),aN[aw]=n),o=n,1===i&&(n6[aw]=o),aL()},o.init(),function(){function e(){e.done||(e.done=!0,aA=!0,aI=!1,i2.each(aN,function(e){e._dom_loaded()}))}if(iG.addEventListener)"complete"===iG.readyState?e():iG.addEventListener("DOMContentLoaded",e,!1);else if(iG.attachEvent){iG.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n6.frameElement}catch(e){}iG.documentElement.doScroll&&t&&function t(){try{iG.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}i2.register_event(n6,"load",e,!0)}(),o)},9887:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,e:()=>i});var n=r(43590);function i(){return(0,n.eJ)()}function o(){return(0,n.eJ)().substring(16)}},9898:(e,t,r)=>{"use strict";r.d(t,{h:()=>function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}})},10590:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return c},getImageProps:function(){return a}});let n=r(51532),i=r(74422),o=r(21830),s=n._(r(95678));function a(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=o.Image},10818:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>a,jE:()=>s});var n=r(21462),i=r(23798),o=n.createContext(void 0),s=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},11207:(e,t,r)=>{"use strict";r.d(t,{$w:()=>ef,AN:()=>A,AY:()=>ec,Af:()=>ev,B0:()=>I,Cg:()=>m,E7:()=>c,EA:()=>R,Gw:()=>em,JS:()=>z,N3:()=>p,NC:()=>s,Ot:()=>ey,PL:()=>w,Qc:()=>j,RM:()=>T,RO:()=>f,SB:()=>ed,SN:()=>K,TG:()=>d,Tt:()=>x,US:()=>es,Vp:()=>J,X2:()=>_,XQ:()=>$,Xv:()=>ee,_l:()=>et,ag:()=>U,ao:()=>G,az:()=>X,b3:()=>ep,cj:()=>l,dv:()=>O,f:()=>o,fO:()=>er,g9:()=>y,h5:()=>D,he:()=>ei,hm:()=>Z,hz:()=>eg,iI:()=>P,jb:()=>E,kE:()=>v,ki:()=>h,nh:()=>N,oA:()=>q,oO:()=>F,oe:()=>g,og:()=>L,pq:()=>H,q7:()=>en,qO:()=>a,rQ:()=>e_,rc:()=>b,ub:()=>u,uc:()=>V,up:()=>eb,v:()=>C,vM:()=>M,vv:()=>W,vz:()=>Q,wB:()=>k,yT:()=>S,yp:()=>eu,yq:()=>B,yx:()=>eo,zV:()=>ea});var n=r(9536),i=r(40537);function o(e){null===n.A||void 0===n.A||n.A.track("sidebar_card_clicked",e)}function s(){null===n.A||void 0===n.A||n.A.track("start_lesson_button_clicked",{source:"leaderboard_page"})}function a(e,t){null==e||e.track("open_lesson",t)}function c(e,t){null==e||e.track("practice_tab_search",t)}function u(e){null===n.A||void 0===n.A||n.A.track("practice_content_requested",e)}function l(e){null===n.A||void 0===n.A||n.A.track("path_navigation_opened",e)}function h(e,t){null==e||e.track("show_solution",t)}function d(e,t){null==e||e.track("apply_solution",t)}function p(e,t){null==e||e.track("hide_solution",t)}function f(e,t){null==e||e.track("submit_code",t)}function m(e,t){null==e||e.track("run_code",t)}function g(e,t){null==e||e.track("pageview",t)}function y(e,t){eh("finish_chapter",t),null==e||e.track("finish_chapter",t)}function v(e,t){null==e||e.track("unlock_tutorial",t)}function _(e,t){null==e||e.track("finish_lesson",t)}function b(e,t){null==e||e.track("skip_lesson",t)}function w(e,t){null==e||e.track("login",t)}function S(e,t){null==e||e.track("signup",t)}function E(e){n.A.track("sign_up_button_clicked",e)}function k(e){n.A.track("store_opened",e)}function I(e){n.A.track("store_product_purchased",e)}function C(e){(0,i.oY)(),eh("show_upgrades",e),n.A.track("show_upgrades",e)}function T(e){n.A.track("switch_upgrade_interval",e)}function x(e){eh("show_upgrade_to_max_modal",e),n.A.track("show_upgrade_to_max_modal",e)}function A(e){eh("close_upgrades",e),n.A.track("close_upgrades",e)}function O(e){eh("locked_content_upgrade_modal_shown",e),n.A.track("locked_content_upgrade_modal_shown",e)}function R(){eh("locked_content_upgrade_modal_closed",{}),n.A.track("locked_content_upgrade_modal_closed")}function P(e,t){null==e||e.track("selected_track_during_onboarding",t)}function M(e,t){null==e||e.track("copy_project_url",t)}function N(e,t){null==e||e.track("finish_tutorial",t)}function L(e,t){null==e||e.track("open_streaks_dropdown",t)}function D(e){null==e||e.track("open_coins_dropdown")}function U(e){null==e||e.track("open_community_dropdown")}function j(e,t){null==e||e.track("calendar_scrolled",t)}function F(e,t){null==e||e.track("open_ai_tutor",t)}function B(e,t){null==e||e.track("tutor_interaction",t)}function H(e,t){null==e||e.track("copy_content_to_chat",t)}function z(e,t){null==e||e.track("toggle_chatbox",t)}function $(e,t){null==e||e.track("toggle_additional_info",t)}function q(e,t){null==e||e.track("editor_feedback_component_shown",t)}function V(e,t){eh("upgrade",t),null==e||e.track("upgrade",t)}function G(e){n.A.track("app_download_button_clicked",e)}function W(e,t){null==e||e.track("set_motive",t),null==e||e.people.set({motive:t.motive})}let Y={beginner:1,intermediate:2,advanced:3};function K(e,t){null==e||e.track("set_experience",t),null==e||e.people.set({experience:Y[t.experience]})}function J(e,t){let r=function(e){switch(e){case"High school student":return"high_school";case"University student":return"university";case"Employed":return"employed";case"Self-employed":return"self_employed";case"None of these":return"other"}}(t.occupation);null==e||e.track("set_occupation",{occupation:r}),null==e||e.people.set({occupation:r})}function X(e){null==e||e.track("did_become_active",{})}function Q(e,t){null==e||e.track("open_freeform_project",t)}function Z(e,t){null==e||e.track("create_freeform_project",t)}function ee(e,t){null==e||e.track("set_onboarding_step",t)}function et(e,t){let r={page1_welcome:"feature_promo_full_screen_web_editor",page2_certificate:"feature_promo_certificate",page3_guided_projects:"feature_promo_guided_projects",page4_weekly_live_sessions:"feature_promo_live_sessions",page5_career_track_switch:"switch_to_career_path",page6_track_progress:"plan_comparison",page7_offer:"skill_improvement"}[t.step];r&&(null==e||e.track("set_onboarding_step",{step:r}))}function er(e,t){null==e||e.track("switch_sound",t)}function en(e,t){null==e||e.track("code_run",t)}function ei(e){null===n.A||void 0===n.A||n.A.track("open_event_registration",e)}function eo(e,t){null==e||e.track("submit_ai_chat_rating",t)}function es(e){el("signup",e)}function ea(e){el("show_web_paywall_onboarding",e)}function ec(e){el("show_web_paywall_non_onboarding",e)}function eu(){el("visit_purchase_successful",{})}function el(e,t){window.dataLayer&&window.dataLayer.push({event:e,eventValue:t})}function eh(e,t){window._cio&&window._cio.track(e,t)}function ed(e){let{email:t,eventName:r}=e;window.ttq&&(t&&window.ttq.identify({email:t}),window.ttq.track(r))}function ep(e,t){null==e||e.track("duplicate_shared_code",t)}function ef(){n.A.track("subscription_cancellation_initiated")}function em(e){n.A.track("cancelation_reason_submited",e)}function eg(e){n.A.track("additional_cancelation_reason_submited",e)}function ey(e){n.A.track("cancelation_flow_aborted",e)}function ev(e){n.A.track("set_preferred_learning_pace",e)}function e_(e){n.A.track("assess_learning_pace",e)}function eb(e){n.A.track("chapter_pace_feedback_submitted",e)}},11522:(e,t,r)=>{e.exports=r(17978)},11625:(e,t,r)=>{"use strict";r.d(t,{F3:()=>i,N8:()=>s,TJ:()=>
1o,a3:()=>n});let n=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"}}return{code:o,message:"internal_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},13748:(e,t,r)=>{"use strict";r.d(t,{L:()=>c,d:()=>a});var n=r(74957),i=r(14913);let o="_sentryScope",s="_sentryIsolationScope";function a(e,t,r){e&&((0,n.my)(e,s,function(e){try{let t=i.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),(0,n.my)(e,o,t))}function c(e){return{scope:e[o],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[s])}}},13910:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(21777).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13995:(e,t,r)=>{"use strict";e.exports=r(24974).style},14139:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(23798);r(21462);var i=r(69097);let o=function(e){let{className:t,...r}=e;return(0,n.jsxs)("svg",{className:(0,i.QP)("h-[36px] w-[36px] animate-spin",t),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...r,children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{strokeLinecap:"round",className:"opacity-75",strokeWidth:"4",stroke:"currentColor",d:"M 22 12 A 10 10 0 0 1 5 19"})]})}},14913:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});let n=globalThis},15271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r(85670),s=r(82643),a=r(37114),c=r(19565),u=r(37856),l=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(e){if((null==(t=e.getComponent())?void 0:t.type)!=="VERSION")return null;var t,r=e.getImmediate();return"".concat(r.library,"/").concat(r.version)}).filter(function(e){return e}).join(" ")},e}(),h="@firebase/app",d="0.9.13",p=new a.Logger("@firebase/app"),f="[DEFAULT]",m=((n={})[h]="fire-core",n["@firebase/app-compat"]="fire-core-compat",n["@firebase/analytics"]="fire-analytics",n["@firebase/analytics-compat"]="fire-analytics-compat",n["@firebase/app-check"]="fire-app-check",n["@firebase/app-check-compat"]="fire-app-check-compat",n["@firebase/auth"]="fire-auth",n["@firebase/auth-compat"]="fire-auth-compat",n["@firebase/database"]="fire-rtdb",n["@firebase/database-compat"]="fire-rtdb-compat",n["@firebase/functions"]="fire-fn",n["@firebase/functions-compat"]="fire-fn-compat",n["@firebase/installations"]="fire-iid",n["@firebase/installations-compat"]="fire-iid-compat",n["@firebase/messaging"]="fire-fcm",n["@firebase/messaging-compat"]="fire-fcm-compat",n["@firebase/performance"]="fire-perf",n["@firebase/performance-compat"]="fire-perf-compat",n["@firebase/remote-config"]="fire-rc",n["@firebase/remote-config-compat"]="fire-rc-compat",n["@firebase/storage"]="fire-gcs",n["@firebase/storage-compat"]="fire-gcs-compat",n["@firebase/firestore"]="fire-fst",n["@firebase/firestore-compat"]="fire-fst-compat",n["fire-js"]="fire-js",n.firebase="fire-js-all",n),g=new Map,y=new Map;function v(e,t){try{e.container.addComponent(t)}catch(r){p.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),r)}}function _(e){var t,r,n=e.name;if(y.has(n))return p.debug("There were multiple attempts to register component ".concat(n,".")),!1;y.set(n,e);try{for(var i=s.__values(g.values()),o=i.next();!o.done;o=i.next()){var a=o.value;v(a,e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return!0}function b(e,t){var r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}var w=((i={})["no-app"]="No Firebase App '{$appName}' has been created - call initializeApp() first",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists with different options or config",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["no-options"]="Need to provide options, when not being deployed to hosting via source.",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i["invalid-log-argument"]="First argument to `onLog` must be null or a function.",i["idb-open"]="Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",i["idb-get"]="Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",i["idb-set"]="Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",i["idb-delete"]="Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",i),S=new c.ErrorFactory("app","Firebase",w),E=function(){function e(e,t,r){var n=this;this._isDeleted=!1,this._options=s.__assign({},e),this._config=s.__assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new o.Component("app",function(){return n},"PUBLIC"))}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed(),this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed(),this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.checkDestroyed(),this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDeleted",{get:function(){return this._isDeleted},set:function(e){this._isDeleted=e},enumerable:!1,configurable:!0}),e.prototype.checkDestroyed=function(){if(this.isDeleted)throw S.create("app-deleted",{appName:this._name})},e}();function k(e,t){void 0===t&&(t={});var r,n,i=e;"object"!=typeof t&&(t={name:t});var a=s.__assign({name:f,automaticDataCollectionEnabled:!1},t),u=a.name;if("string"!=typeof u||!u)throw S.create("bad-app-name",{appName:String(u)});if(i||(i=c.getDefaultAppConfig()),!i)throw S.create("no-options");var l=g.get(u);if(l)if(c.deepEqual(i,l.options)&&c.deepEqual(a,l.config))return l;else throw S.create("duplicate-app",{appName:u});var h=new o.ComponentContainer(u);try{for(var d=s.__values(y.values()),p=d.next();!p.done;p=d.next()){var m=p.value;h.addComponent(m)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}var v=new E(i,a,h);return g.set(u,v),v}function I(e,t,r){var n,i=null!=(n=m[e])?n:e;r&&(i+="-".concat(r));var s=i.match(/\s|\//),a=t.match(/\s|\//);if(s||a){var c=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];s&&c.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),s&&a&&c.push("and"),a&&c.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),p.warn(c.join(" "));return}_(new o.Component("".concat(i,"-version"),function(){return{library:i,version:t}},"VERSION"))}var C="firebase-heartbeat-store",T=null;function x(){return T||(T=u.openDB("firebase-heartbeat-database",1,{upgrade:function(e,t){0===t&&e.createObjectStore(C)}}).catch(function(e){throw S.create("idb-open",{originalErrorMessage:e.message})})),T}function A(e,t){return s.__awaiter(this,void 0,void 0,function(){var r,n,i;return s.__generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),[4,x()];case 1:return[4,(r=o.sent().transaction(C,"readwrite")).objectStore(C).put(t,O(e))];case 2:return o.sent(),[4,r.done];case 3:return o.sent(),[3,5];case 4:return(n=o.sent())instanceof c.FirebaseError?p.warn(n.message):(i=S.create("idb-set",{originalErrorMessage:null==n?void 0:n.message}),p.warn(i.message)),[3,5];case 5:return[2]}})})}function O(e){return"".concat(e.name,"!").concat(e.options.appId)}var R=function(){function e(e){var t=this;this.container=e,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new M(r),this._heartbeatsCachePromise=this._storage.read().then(function(e){return t._heartbeatsCache=e,e})}return e.prototype.triggerHeartbeat=function(){return s.__awaiter(this,void 0,void 0,function(){var e,t,r;return s.__generator(this,function(n){switch(n.label){case 0:if(e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=P(),null!==this._heartbeatsCache)return[3,2];return r=this,[4,this._heartbeatsCachePromise];case 1:r._heartbeatsCache=n.sent(),n.label=2;case 2:if(this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(function(e){return e.date===t}))return[2];return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),[2,this._storage.overwrite(this._heartbeatsCache)]}})})},e.prototype.getHeartbeatsHeader=function(){return s.__awaiter(this,void 0,void 0,function(){var e,t,r,n,i;return s.__generator(this,function(o){switch(o.label){case 0:if(null!==this._heartbeatsCache)return[3,2];return[4,this._heartbeatsCachePromise];case 1:o.sent(),o.label=2;case 2:if(null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return[2,""];if(e=P(),r=(t=function(e,t){void 0===t&&(t=1024);var r,n,i=[],o=e.slice(),a=function(e){var r=i.find(function(t){return t.agent===e.agent});if(r){if(r.dates.push(e.date),N(i)>t)return r.dates.pop(),"break"}else if(i.push({agent:e.agent,dates:[e.date]}),N(i)>t)return i.pop(),"break";o=o.slice(1)};try{for(var c=s.__values(e),u=c.next();!u.done;u=c.next()){var l=u.value,h=a(l);if("break"===h)break}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return{heartbeatsToSend:i,unsentEntries:o}}(this._heartbeatsCache.heartbeats)).heartbeatsToSend,n=t.unsentEntries,i=c.base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=e,!(n.length>0))return[3,4];return this._heartbeatsCache.heartbeats=n,[4,this._storage.overwrite(this._heartbeatsCache)];case 3:return o.sent(),[3,5];case 4:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache),o.label=5;case 5:return[2,i]}})})},e}();function P(){return new Date().toISOString().substring(0,10)}var M=function(){function e(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return e.prototype.runIndexedDBEnvironmentCheck=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return c.isIndexedDBAvailable()?[2,c.validateIndexedDBOpenable().then(function(){return!0}).catch(function(){return!1})]:[2,!1]})})},e.prototype.read=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){switch(e.label){case 0:return[4,this._canUseIndexedDBPromise];case 1:if(e.sent())return[3,2];return[2,{heartbeats:[]}];case 2:return[4,function(e){return s.__awaiter(this,void 0,void 0,function(){var t,r;return s.__generator(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,x()];case 1:return[4,n.sent().transaction(C).objectStore(C).get(O(e))];case 2:return[2,n.sent()];case 3:return(t=n.sent())instanceof c.FirebaseError?p.warn(t.message):(r=S.create("idb-get",{originalErrorMessage:null==t?void 0:t.message}),p.warn(r.message)),[3,4];case 4:return[2]}})})}(this.app)];case 3:return[2,e.sent()||{heartbeats:[]}]}})})},e.prototype.overwrite=function(e){var t;return s.__awaiter(this,void 0,void 0,function(){var r;return s.__generator(this,function(n){switch(n.label){case 0:return[4,this._canUseIndexedDBPromise];case 1:if(n.sent())return[3,2];return[2];case 2:return[4,this.read()];case 3:return r=n.sent(),[2,A(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})]}})})},e.prototype.add=function(e){var t;return s.__awaiter(this,void 0,void 0,function(){var r;return s.__generator(this,function(n){switch(n.label){case 0:return[4,this._canUseIndexedDBPromise];case 1:if(n.sent())return[3,2];return[2];case 2:return[4,this.read()];case 3:return r=n.sent(),[2,A(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:s.__spreadArray(s.__spreadArray([],s.__read(r.heartbeats),!1),s.__read(e.heartbeats),!1)})]}})})},e}();function N(e){return c.base64urlEncodeWithoutPadding(JSON.stringify({version:2,heartbeats:e})).length}_(new o.Component("platform-logger",function(e){return new l(e)},"PRIVATE")),_(new o.Component("heartbeat",function(e){return new R(e)},"PRIVATE")),I(h,d,"node"),I(h,d,"cjs5"),I("fire-js",""),Object.defineProperty(t,"FirebaseError",{enumerable:!0,get:function(){return c.FirebaseError}}),t.SDK_VERSION="9.23.0",t._DEFAULT_ENTRY_NAME=f,t._addComponent=v,t._addOrOverwriteComponent=function(e,t){e.container.addOrOverwriteComponent(t)},t._apps=g,t._clearComponents=function(){y.clear()},t._components=y,t._getProvider=b,t._registerComponent=_,t._removeServiceInstance=function(e,t,r){void 0===r&&(r=f),b(e,t).clearInstance(r)},t.deleteApp=function(e){return s.__awaiter(this,void 0,void 0,function(){var t;return s.__generator(this,function(r){switch(r.label){case 0:if(t=e.name,!g.has(t))return[3,2];return g.delete(t),[4,Promise.all(e.container.getProviders().map(function(e){return e.delete()}))];case 1:r.sent(),e.isDeleted=!0,r.label=2;case 2:return[2]}})})},t.getApp=function(e){void 0===e&&(e=f);var t=g.get(e);if(!t&&e===f&&c.getDefaultAppConfig())return k();if(!t)throw S.create("no-app",{appName:e});return t},t.getApps=function(){return Array.from(g.values())},t.initializeApp=k,t.onLog=function(e,t){if(null!==e&&"function"!=typeof e)throw S.create("invalid-log-argument");a.setUserLogHandler(e,t)},t.registerVersion=I,t.setLogLevel=function(e){a.setLogLevel(e)}},16178:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r(71830);r(19565),r(15271),r(82643),r(37114),r(85670),t.ActionCodeOperation=n.ActionCodeOperation,t.ActionCodeURL=n.ActionCodeURL,t.AuthCredential=n.AuthCredential,t.AuthErrorCodes=n.AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY,t.EmailAuthCredential=n.EmailAuthCredential,t.EmailAuthProvider=n.EmailAuthProvider,t.FacebookAuthProvider=n.FacebookAuthProvider,t.FactorId=n.FactorId,t.GithubAuthProvider=n.GithubAuthProvider,t.GoogleAuthProvider=n.GoogleAuthProvider,t.OAuthCredential=n.OAuthCredential,t.OAuthProvider=n.OAuthProvider,t.OperationType=n.OperationType,t.PhoneAuthCredential=n.PhoneAuthCredential,t.PhoneAuthProvider=n.PhoneAuthProvider,t.PhoneMultiFactorGenerator=n.PhoneMultiFactorGenerator,t.ProviderId=n.ProviderId,t.RecaptchaVerifier=n.RecaptchaVerifier,t.SAMLAuthProvider=n.SAMLAuthProvider,t.SignInMethod=n.SignInMethod,t.TotpMultiFactorGenerator=n.TotpMultiFactorGenerator,t.TotpSecret=n.TotpSecret,t.TwitterAuthProvider=n.TwitterAuthProvider,t.applyActionCode=n.applyActionCode,t.beforeAuthStateChanged=n.beforeAuthStateChanged,t.browserLocalPersistence=n.browserLocalPersistence,t.browserPopupRedirectResolver=n.browserPopupRedirectResolver,t.browserSessionPersistence=n.browserSessionPersistence,t.checkActionCode=n.checkActionCode,t.confirmPasswordReset=n.confirmPasswordReset,t.connectAuthEmulator=n.connectAuthEmulator,t.createUserWithEmailAndPassword=n.createUserWithEmailAndPassword,t.debugErrorMap=n.debugErrorMap,t.deleteUser=n.deleteUser,t.fetchSignInMethodsForEmail=n.fetchSignInMethodsForEmail,t.getAdditionalUserInfo=n.getAdditionalUserInfo,t.getAuth=n.getAuth,t.getIdToken=n.getIdToken,t.getIdTokenResult=n.getIdTokenResult,t.getMultiFactorResolver=n.getMultiFactorResolver,t.getRedirectResult=n.getRedirectResult,t.inMemoryPersistence=n.inMemoryPersistence,t.indexedDBLocalPersistence=n.indexedDBLocalPersistence,t.initializeAuth=n.initializeAuth,t.initializeRecaptchaConfig=n.initializeRecaptchaConfig,t.isSignInWithEmailLink=n.isSignInWithEmailLink,t.linkWithCredential=n.linkWithCredential,t.linkWithPhoneNumber=n.linkWithPhoneNumber,t.linkWithPopup=n.linkWithPopup,t.linkWithRedirect=n.linkWithRedirect,t.multiFactor=n.multiFactor,t.onAuthStateChanged=n.onAuthStateChanged,t.onIdTokenChanged=n.onIdTokenChanged,t.parseActionCodeURL=n.parseActionCodeURL,t.prodErrorMap=n.prodErrorMap,t.reauthenticateWithCredential=n.reauthenticateWithCredential,t.reauthenticateWithPhoneNumber=n.reauthenticateWithPhoneNumber,t.reauthenticateWithPopup=n.reauthenticateWithPopup,t.reauthenticateWithRedirect=n.reauthenticateWithRedirect,t.reload=n.reload,t.sendEmailVerification=n.sendEmailVerification,t.sendPasswordResetEmail=n.sendPasswordResetEmail,t.sendSignInLinkToEmail=n.sendSignInLinkToEmail,t.setPersistence=n.setPersistence,t.signInAnonymously=n.signInAnonymously,t.signInWithCredential=n.signInWithCredential,t.signInWithCustomToken=n.signInWithCustomToken,t.signInWithEmailAndPassword=n.signInWithEmailAndPassword,t.signInWithEmailLink=n.signInWithEmailLink,t.signInWithPhoneNumber=n.signInWithPhoneNumber,t.signInWithPopup=n.signInWithPopup,t.signInWithRedirect=n.signInWithRedirect,t.signOut=n.signOut,t.unlink=n.unlink,t.updateCurrentUser=n.updateCurrentUser,t.updateEmail=n.updateEmail,t.updatePassword=n.updatePassword,t.updatePhoneNumber=n.updatePhoneNumber,t.updateProfile=n.updateProfile,t.useDeviceLanguage=n.useDeviceLanguage,t.verifyBeforeUpdateEmail=n.verifyBeforeUpdateEmail,t.verifyPasswordResetCode=n.verifyPasswordResetCode},17028:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,i.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(48303),i=r(22467);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17053:()=>{},17513:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(98781)._(r(21462)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},18350:function(e,t,r){var n,i;void 0===(i="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(i[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();n.status=1===(e=o(e,i.minimum,1))?null:e;var r=n.render(!t),c=r.querySelector(i.barSelector),u=i.speed,l=i.easing;return r.offsetWidth,s(function(t){var o,s,h,d;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),a(c,(o=e,s=u,h=l,(d="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+s+"ms "+h,d)),1===e?(a(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){a(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,o=t.querySelector(i.barSelector),s=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(i.parent);return a(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!i.showSpinner&&(r=t.querySelector(i.spinnerSelector))&&d(r),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,i){var o;n=t[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var r=document.body.style;if(t in r)return t;for(var n,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=e[i]+o)in r)return n;return t}(o)),r.style[n]=i}return function(e,t){var n,i,o=arguments;if(2==o.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:h(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=h(e),n=r+t;c(r,t)||(e.className=n.substring(1))}function l(e,t){var r,n=h(e);c(e,t)&&(e.className=(r=n.replace(" "+t+" "," ")).substring(1,r.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)||(e.exports=i)},19194:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="10.29.0"},19565:(e,t,r)=>{"use strict";var n=r(2272);
1Object.defineProperty(t,"__esModule",{value:!0});let i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw s(t)},s=function(e){return Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},a=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},c=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=e[r++],s=((7&i)<<18|(63&o)<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}else{let o=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},u={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 r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=i>>2,l=(3&i)<<4|s>>4,h=(15&s)<<2|c>>6,d=63&c;!a&&(d=64,o||(h=64)),n.push(r[u],r[l],r[h],r[d])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(a(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):c(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,a=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==a)throw new l;let c=i<<2|o>>4;if(n.push(c),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==a){let e=s<<6&192|a;n.push(e)}}}return n},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 l extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let h=function(e){let t=a(e);return u.encodeByteArray(t,!0)},d=function(e){return h(e).replace(/\./g,"")},p=function(e){try{return u.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function f(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(let r in t)t.hasOwnProperty(r)&&"__proto__"!==r&&(e[r]=f(e[r],t[r]));return e}function m(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let g=()=>{try{return m().__FIREBASE_DEFAULTS__||(()=>{if(void 0===n||void 0===n.env)return;let e=n.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&&p(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},y=e=>{var t,r;return null==(r=null==(t=g())?void 0:t.emulatorHosts)?void 0:r[e]};class v{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>
1{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function _(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function b(){var e;let t=null==(e=g())?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}class w extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,w.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,S.prototype.create)}}class S{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},o=`${this.service}/${e}`,s=this.errors[e],a=s?(r=s,n=i,r.replace(E,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",c=`${this.serviceName}: ${a} (${o}).`;return new w(o,c,i)}}let E=/\{\$([^}]+)}/g;function k(e){return JSON.parse(e)}let I=function(e){let t={},r={},n={},i="";try{let o=e.split(".");t=k(p(o[0])||""),r=k(p(o[1])||""),i=o[2],n=r.d||{},delete r.d}catch(e){}return{header:t,claims:r,data:n,signature:i}};function C(e){return null!==e&&"object"==typeof e}class T{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=0x67452301,this.chain_[1]=0xefcdab89,this.chain_[2]=0x98badcfe,this.chain_[3]=0x10325476,this.chain_[4]=0xc3d2e1f0,this.inbuf_=0,this.total_=0}compress_(e,t){let r,n;t||(t=0);let i=this.W_;if("string"==typeof e)for(let r=0;r<16;r++)i[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let r=0;r<16;r++)i[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let e=16;e<80;e++){let t=i[e-3]^i[e-8]^i[e-14]^i[e-16];i[e]=t<<1|t>>>31}let o=this.chain_[0],s=this.chain_[1],a=this.chain_[2],c=this.chain_[3],u=this.chain_[4];for(let e=0;e<80;e++){e<40?e<20?(r=c^s&(a^c),n=0x5a827999):(r=s^a^c,n=0x6ed9eba1):e<60?(r=s&a|c&(s|a),n=0x8f1bbcdc):(r=s^a^c,n=0xca62c1d6);let t=(o<<5|o>>>27)+r+u+n+i[e]|0;u=c,c=a,a=s<<30|s>>>2,s=o,o=t}this.chain_[0]=this.chain_[0]+o|0,this.chain_[1]=this.chain_[1]+s|0,this.chain_[2]=this.chain_[2]+a|0,this.chain_[3]=this.chain_[3]+c|0,this.chain_[4]=this.chain_[4]+u|0}update(e,t){if(null==e)return;void 0===t&&(t=e.length);let r=t-this.blockSize,n=0,i=this.buf_,o=this.inbuf_;for(;n<t;){if(0===o)for(;n<=r;)this.compress_(e,n),n+=this.blockSize;if("string"==typeof e){for(;n<t;)if(i[o]=e.charCodeAt(n),++o,++n,o===this.blockSize){this.compress_(i),o=0;break}}else for(;n<t;)if(i[o]=e[n],++o,++n,o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}digest(){let e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let e=this.blockSize-1;e>=56;e--)this.buf_[e]=255&t,t/=256;this.compress_(this.buf_);let r=0;for(let t=0;t<5;t++)for(let n=24;n>=0;n-=8)e[r]=this.chain_[t]>>n&255,++r;return e}}class x{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,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=A),void 0===n.error&&(n.error=A),void 0===n.complete&&(n.complete=A);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),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(()=>
1{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 A(){}function O(e,t){return`${e} failed: ${t} argument `}t.CONSTANTS=i,t.DecodeBase64StringError=l,t.Deferred=v,t.ErrorFactory=S,t.FirebaseError=w,t.MAX_VALUE_MILLIS=144e5,t.RANDOM_FACTOR=.5,t.Sha1=T,t.areCookiesEnabled=function(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled},t.assert=o,t.assertionError=s,t.async=function(e,t){return(...r)=>{Promise.resolve(!0).then(()=>{e(...r)}).catch(e=>{t&&t(e)})}},t.base64=u,t.base64Decode=p,t.base64Encode=h,t.base64urlEncodeWithoutPadding=d,t.calculateBackoffMillis=function(e,t=1e3,r=2){let n=t*Math.pow(r,e),i=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+i)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createMockUserToken=function(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",n=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[d(JSON.stringify({alg:"none",type:"JWT"})),d(JSON.stringify(o)),""].join(".")},t.createSubscribe=function(e,t){let r=new x(e,t);return r.subscribe.bind(r)},t.decode=I,t.deepCopy=function(e){return f(void 0,e)},t.deepEqual=function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],s=r[o];if(C(n)&&C(s)){if(!e(n,s))return!1}else if(n!==s)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},t.deepExtend=f,t.errorPrefix=O,t.extractQuerystring=function(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)},t.getDefaultAppConfig=()=>{var e;return null==(e=g())?void 0:e.config},t.getDefaultEmulatorHost=y,t.getDefaultEmulatorHostnameAndPort=e=>{let t=y(e);if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let n=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),n]:[t.substring(0,r),n]},t.getDefaults=g,t.getExperimentalSetting=e=>{var t;return null==(t=g())?void 0:t[`_${e}`]},t.getGlobal=m,t.getModularInstance=function(e){return e&&e._delegate?e._delegate:e},t.getUA=_,t.isAdmin=function(e){let t=I(e).claims;return"object"==typeof t&&!0===t.admin},t.isBrowser=function(){return"object"==typeof self&&self.self===self},t.isBrowserExtension=function(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id},t.isElectron=function(){return _().indexOf("Electron/")>=0},t.isEmpty=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){let e=_();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){try{return"object"==typeof indexedDB}catch(e){return!1}},t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(_())},t.isNode=b,t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!b()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return _().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){let t=I(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){let t=I(e).claims,r=Math.floor(new Date().getTime()/1e3),n=0,i=0;return"object"==typeof t&&(t.hasOwnProperty("nbf")?n=t.nbf:t.hasOwnProperty("iat")&&(n=t.iat),i=t.hasOwnProperty("exp")?t.exp:n+86400),!!r&&!!n&&!!i&&r>=n&&r<=i},t.issuedAtTime=function(e){let t=I(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=k,t.map=function(e,t,r){let n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t.call(r,e[i],i,e));return n},t.ordinal=function(e){return Number.isFinite(e)?e+function(e){let t=(e=Math.abs(e))%100;if(t>=10&&t<=20)return"th";let r=e%10;return 1===r?"st":2===r?"nd":3===r?"rd":"th"}(e):`${e}`},t.promiseWithTimeout=function(e,t=2e3){let r=new v;return setTimeout(()=>r.reject("timeout!"),t),e.then(r.resolve,r.reject),r.promise},t.querystring=function(e){let t=[];
1for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t++:n<2048?t+=2:n>=55296&&n<=56319?(t+=4,r++):t+=3}return t},t.stringToByteArray=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i>=55296&&i<=56319){let t=i-55296;o(++n<e.length,"Surrogate pair missing trail surrogate."),i=65536+(t<<10)+(e.charCodeAt(n)-56320)}i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:(i<65536?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t.validateArgCount=function(e,t,r,n){let i;if(n<t?i="at least "+t:n>r&&(i=0===r?"none":"no more than "+r),i)throw Error(e+" failed: Was called with "+n+(1===n?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,r,n){if((!n||r)&&"function"!=typeof r)throw Error(O(e,t)+"must be a valid function.")},t.validateContextObject=function(e,t,r,n){if((!n||r)&&("object"!=typeof r||null===r))throw Error(O(e,t)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})},t.validateNamespace=function(e,t,r){if((!r||t)&&"string"!=typeof t)throw Error(O(e,"namespace")+"must be a valid firebase namespace.")}},19673:function(e,t,r){e.exports=function(e){"use strict";var t={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function r(e,r,n){var i=t[n];return Array.isArray(i)&&(i=i[+!r]),i.replace("%d",e)}var n={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(n,null,!0),n}(r(26838))},20241:(e,t,r)=>{"use strict";r.d(t,{bt:()=>c,vt:()=>u});var n=r(84996),i=r(83241),o=r(89240),s=r(1518);function a(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.v4(n=>{for(let[e,i]of(n.setUser({id:t}),Object.entries(r)))n.setTag(e,i);for(let[e,t]of Object.entries(i))n.setExtra(e,t);n.captureException(e)})}async function c(e){let t,r=null==e?void 0:e.id;if(!r)throw Error("userId is required");let n=await (0,o.vq)(e),c="".concat((0,s.$_)(!1),"/user/revenuecat");try{t=await (0,i.l)(c,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(n)}})}catch(e){if((e instanceof Error||e instanceof DOMException)&&"AbortError"===e.name)throw e;throw a(e,r,{errorType:"revenuecat network error"},{errorName:e instanceof Error?e.name:void 0,errorMessage:e instanceof Error?e.message:String(e),errorStack:e instanceof Error?e.stack:void 0,errorCause:e instanceof Error&&e.cause?String(e.cause):void 0,runtime:"browser",userAgent:"undefined"!=typeof navigator?navigator.userAgent:void 0}),e}if(!t.ok){let e=Error("HTTP Error: ".concat(t.status," ").concat(t.statusText));throw a(e,r,{errorType:"revenuecat http error",status:String(t.status)}),e}return(await t.json()).subscriber}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return["pro","max"].flatMap(r=>{var n,i,o,s,a,c,u,l,h,d;let p=null==(n=e.entitlements)?void 0:n[r];if(!p)return[];let f=null==(i=e.subscriptions)?void 0:i[p.product_identifier],m=null!=(s=null!=(o=p.expires_date)?o:null==f?void 0:f.expires_date)?s:null,g=null!=(a=p.store)?a:null==f?void 0:f.store,y=null!=(c=p.unsubscribe_detected_at)?c:null==f?void 0:f.unsubscribe_detected_at,v=null!=(d=null!=(h=null!=(l=null!=(u=p.original_purchase_date)?u:null==f?void 0:f.original_purchase_date)?l:p.purchase_date)?h:null==f?void 0:f.purchase_date)?d:null,_=function(e){let t=e.toLowerCase();return t.includes("yearly")?"yearly":t.includes("monthly")?"monthly":null}(p.product_identifier),b=null===m||new Date(m)>=t;return[{activeUntil:m,canceledAt:null!=y?y:null,createdAt:v,interval:_,isActive:b,isTrialActive:(null==f?void 0:f.period_type)==="trial"&&null!==m&&new Date(m)>t,source:function(e){switch(e){case"play_store":return"android";case"app_store":case"mac_app_store":return"ios";case"promotional":return"invitation";default:return"web"}}(g),type:r}]})}},20255:(e,t,r)=>{"use strict";r.d(t,{Eh:()=>a,OX:()=>h,X1:()=>c,il:()=>s,pr:()=>d,u5:()=>o,wS:()=>p,wU:()=>u,z$:()=>l});var n=r(97524);r(43532),r(77093),r(2272);let i=/ - (?:Part|Teil) \d+(?: \(Variant\))?/;function o(e){return e.replace(i,"")}function s(e){switch(e){case"bash":return"shell";case"jsx":return"javascript";
1case"tsx":return"typescript";case"csv":case"text":return"plaintext";default:return e}}function a(e,t){return e.tutorialIds.map(e=>t.tutorials.find(t=>t.id===e)).filter(n.O9)}function c(e){return e.some(e=>"sql"===e.codeLanguage)}function u(e){return e.some(e=>"sql"===e.codeLanguage)?"SQLLesson":e.some(e=>"html"===e.codeLanguage)?"HTMLLesson":e.some(e=>"javascript"===e.codeLanguage)?"JSLesson":e.some(e=>"python"===e.codeLanguage)?"PythonLesson":"HTMLLesson"}function l(e){switch(e){case"bash":return"sh";case"html":return"html";case"css":return"css";case"csv":return"csv";case"javascript":return"js";case"python":return"py";case"sql":return"sql";case"jsx":return"jsx";case"typescript":return"ts";case"tsx":return"tsx";case"text":return"txt";default:throw Error("Unknown coding language: "+e)}}function h(e){if(!e.includes("."))return"none";switch(e.split(".").pop()||""){case"sh":return"bash";case"html":return"html";case"css":return"css";case"csv":return"csv";case"js":return"javascript";case"jsx":return"jsx";case"py":return"python";case"sql":return"sql";case"json":return"json";case"ts":return"typescript";case"tsx":return"tsx";case"txt":return"text";default:return"none"}}function d(e){switch(e){case"html":return"HTML";case"css":return"CSS";case"javascript":return"JavaScript";case"jsx":return"JSX";case"typescript":return"TypeScript";case"tsx":return"TSX";case"python":return"Python";case"bash":return"Bash";case"cpp":return"C++";case"csharp":return"C#";case"java":return"Java";case"kotlin":return"Kotlin";case"lua":return"LUA";case"php":return"PHP";case"r":return"R";case"ruby":return"Ruby";case"sql":return"SQL";case"swift":return"Swift";default:return e}}function p(e){var t;return null==(t=e.claims["https://getmimo.com/roles"])?void 0:t.includes("course_engineer")}},20635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20685:()=>{},20803:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}=e,a=n?40*n:t,c=i?40*i:r,u=a&&c?"viewBox='0 0 "+a+" "+c+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},21821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}});let n=r(99329);function i(e,t,i,o){{let s=r(64653).normalizeLocalePath,a=r(16948).detectDomainLocale,c=t||s(e,i).detectedLocale,u=a(o,void 0,c);if(u){let t="http"+(u.http?"":"s")+"://",r=c===u.defaultLocale?"":"/"+c;return""+t+u.domain+(0,n.normalizePathTrailingSlash)(""+r+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(51532),i=r(98781),o=r(23798),s=i._(r(21462)),a=n._(r(47993)),c=n._(r(86355)),u=r(74422),l=r(87959),h=r(9401);r(66187);let d=r(84064),p=n._(r(95678)),f=r(92989),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>
1{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:c,decoding:u,className:l,style:h,fetchPriority:d,placeholder:p,loading:m,unoptimized:v,fill:_,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:S,setShowAltText:E,sizesInput:k,onLoad:I,onError:C,...T}=e,x=(0,s.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&g(e,p,b,w,S,v,k))},[r,p,b,w,S,C,v,k]),A=(0,f.useMergedRef)(t,x);return(0,o.jsx)("img",{...T,...y(d),loading:m,width:c,height:a,decoding:u,"data-nimg":_?"fill":"1",className:l,style:h,sizes:i,srcSet:n,src:r,ref:A,onLoad:e=>{g(e.currentTarget,p,b,w,S,v,k)},onError:e=>{E(!0),"empty"!==p&&S(!0),C&&C(e)}})});function _(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(c.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(d.RouterContext),n=(0,s.useContext)(h.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||n||l.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:a,onLoadingComplete:c}=e,f=(0,s.useRef)(a);(0,s.useEffect)(()=>{f.current=a},[a]);let g=(0,s.useRef)(c);(0,s.useEffect)(()=>{g.current=c},[c]);let[y,b]=(0,s.useState)(!1),[w,S]=(0,s.useState)(!1),{props:E,meta:k}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:y,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:f,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:S,sizesInput:e.sizes,ref:t}),k.priority?(0,o.jsx)(_,{isAppRouter:!r,imgAttributes:E}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22525:(e,t,r)=>{"use strict";r.d(t,{Dk:()=>em,kc:()=>ew,Ym:()=>eb,c3:()=>e_});var n=r(21462);function i(e,t){let r=t&&t.cache?t.cache:u,n=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:function(e,t){var r,n;let i=1===e.length?o:s;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function o(e,t,r,n){let i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function s(e,t,r){let n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}let a=function(){return JSON.stringify(arguments)};class c{cache;constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}}let u={create:function(){return new c}},l={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,s.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,o.bind(this,e,r,n)}};
1class h extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var d=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(d||{});function p(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function f(e,t){return i(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:l.variadic})}function m(e,t){return f((...t)=>new e(...t),t)}function g(e){return{getDateTimeFormat:m(Intl.DateTimeFormat,e.dateTime),getNumberFormat:m(Intl.NumberFormat,e.number),getPluralRules:m(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:m(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:m(Intl.ListFormat,e.list),getDisplayNames:m(Intl.DisplayNames,e.displayNames)}}let y=function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e}({}),v=function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e}({});function _(e){return e.type===y.literal}function b(e){return e.type===y.number}function w(e){return e.type===y.date}function S(e){return e.type===y.time}function E(e){return e.type===y.select}function k(e){return e.type===y.plural}function I(e){return e.type===y.tag}function C(e){return!!(e&&"object"==typeof e&&e.type===v.number)}function T(e){return!!(e&&"object"==typeof e&&e.type===v.dateTime)}let x=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({}),A=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,O=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,R=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,P=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,M=/^(@+)?(\+|#+)?[rs]?$/g,N=/(\*)(0+)|(#+)(0+)|(0+)/g,L=/^(0+)$/;function D(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(M,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function j(e){let t=U(e);return t||{}}let F={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},B=RegExp(`^${A.source}*`),H=RegExp(`${A.source}*$`);function z(e,t){return{start:e,end:t}}let $=!!Object.fromEntries,q=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,G=$?Object.fromEntries:function(e){let t={};for(let[r,n]of e)t[r]=n;return t},W=q?function(e){return e.trimStart()}:function(e){return e.replace(B,"")},Y=V?function(e){return e.trimEnd()}:function(e){return e.replace(H,"")},K=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class J{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){let i=this.char();if(123===i){let t=this.parseArgument(e,r);if(t.err)return t;n.push(t.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),n.push({type:y.pound,location:z(e,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek())if(60===i&&!this.ignoreTag&&X(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}else if(!r)return this.error(x.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()));else break}return{val:n,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:`<${n}/>`,location:z(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(x.INVALID_TAG,z(r,this.clonePosition()));{let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let o=i.val,s=this.clonePosition();if(!this.bumpIf("</"))return this.error(x.UNCLOSED_TAG,z(r,this.clonePosition()));{if(this.isEOF()||!X(this.char()))return this.error(x.INVALID_TAG,z(s,this.clonePosition()));let e=this.clonePosition();return n!==this.parseTagName()?this.error(x.UNMATCHED_CLOSING_TAG,z(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:y.tag,value:n,children:o,location:z(r,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,z(s,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),n="";for(;;){let r=this.tryParseQuote(t);if(r){n+=r;
1continue}let i=this.tryParseUnquoted(e,t);if(i){n+=i;continue}let o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}let i=z(r,this.clonePosition());return{val:{type:y.literal,value:n,location:i},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(X(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(x.EMPTY_ARGUMENT,z(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(x.MALFORMED_ARGUMENT,z(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:n,location:z(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,z(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(x.MALFORMED_ARGUMENT,z(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),n=(e=this.message,K.lastIndex=r,K.exec(e)[1]??""),i=r+n.length;return this.bumpTo(i),{value:n,location:z(t,this.clonePosition())}}parseArgumentOptions(e,t,r,n){let i=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,z(i,s));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let n=Y(r.val);if(0===n.length)return this.error(x.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:z(t,this.clonePosition())}}let t=this.tryParseArgumentClose(n);if(t.err)return t;let i=z(n,this.clonePosition());if(e&&e.style.startsWith("::")){let t=W(e.style.slice(2));if("number"===o){let n=this.parseNumberSkeletonFromString(t,e.styleLocation);if(n.err)return n;return{val:{type:y.number,value:r,location:i,style:n.val},err:null}}{if(0===t.length)return this.error(x.EXPECT_DATE_TIME_SKELETON,i);let n=t;this.locale&&(n=function(e,t){let r="";for(let n=0;n<e.length;n++){let i=e.charAt(n);if("j"===i){let o=0;for(;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;let s=1+(1&o),a=o<2?1:3+(o>>1),c=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let n=e.language;return"root"!==n&&(t=e.maximize().region),(F[t||""]||F[n||""]||F[`${n}-001`]||F["001"])[0]}(t);for(("H"==c||"k"==c)&&(a=0);a-- >0;)r+="a";for(;s-- >0;)r=c+r}else"J"===i?r+="H":r+=i}return r}(t,this.locale));let s={type:v.dateTime,pattern:n,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(O,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(n):{}};return{val:{type:"date"===o?y.date:y.time,value:r,location:i,style:s},err:null}}}return{val:{type:"number"===o?y.number:"date"===o?y.date:y.time,value:r,location:i,style:e?.style??null},err:null}}
1case"plural":case"selectordinal":case"select":{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,z(i,{...i}));this.bumpSpace();let s=this.parseIdentifierIfPossible(),a=0;if("select"!==o&&"offset"===s.value){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),s=this.parseIdentifierIfPossible(),a=e.val}let c=this.tryParsePluralOrSelectOptions(e,o,t,s);if(c.err)return c;let u=this.tryParseArgumentClose(n);if(u.err)return u;let l=z(n,this.clonePosition());if("select"===o)return{val:{type:y.select,value:r,options:G(c.val),location:l},err:null};return{val:{type:y.plural,value:r,options:G(c.val),offset:a,pluralType:"plural"===o?"cardinal":"ordinal",location:l},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,z(i,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,z(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,z(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(R).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[n,...i]=t;for(let e of i)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:n,options:i})}return r}(e)}catch{return this.error(x.INVALID_NUMBER_SKELETON,t)}return{val:{type:v.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...j(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...j(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(N,function(e,r,n,i,o,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(L.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(P.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(P,function(e,r,n,i,o,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&s?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];
1"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...D(e)});continue}if(M.test(r.stem)){t={...t,...D(r.stem)};continue}let e=U(r.stem);e&&(t={...t,...e});let n=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!L.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);n&&(t={...t,...n})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let i=!1,o=[],s=new Set,{value:a,location:c}=n;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;c=z(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(s.has(a))return this.error("select"===t?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===a&&(i=!0),this.bumpSpace();let n=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(e+1,t,r);if(u.err)return u;let l=this.tryParseArgumentClose(n);if(l.err)return l;o.push([a,{value:u.val,location:z(n,this.clonePosition())}]),s.add(a),this.bumpSpace(),{value:a,location:c}=this.parseIdentifierIfPossible()}return 0===o.length?this.error("select"===t?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(x.MISSING_OTHER_CLAUSE,z(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(e,t){let r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,o=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,o=10*o+(e-48),this.bump();else break}let s=z(n,this.clonePosition());return i?Number.isSafeInteger(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}function X(e){return e>=97&&e<=122||e>=65&&e<=90}function Q(e,t={}){let r=new J(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(x[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,E(t)||k(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else b(t)&&C(t.style)||(w(t)||S(t))&&T(t.style)?delete t.style.location:I(t)&&e(t.children)})}(r.val),r.val}let Z=function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e}({});
1class ee extends Error{code;originalMessage;constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class et extends ee{constructor(e,t,r,n){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,Z.INVALID_VALUE,n)}}class er extends ee{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,Z.INVALID_VALUE,r)}}class en extends ee{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,Z.MISSING_VALUE,t)}}let ei=function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e}({});function eo(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}class es{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(e,t=es.defaultLocale,r,n){if(this.locales=t,this.resolvedLocale=es.resolveLocale(t),"string"==typeof e){if(this.message=e,!es.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...t}=n||{};this.ast=es.__parse(e,{...t,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,n)=>{var i,o;return r[n]=(i=e[n],(o=t[n])?{...i,...o,...Object.keys(i).reduce((e,t)=>(e[t]={...i[t],...o[t]},e),{})}:i),r},{...e}):e}(es.formats,r),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:i((...e)=>new Intl.NumberFormat(...e),{cache:eo(e.number),strategy:l.variadic}),getDateTimeFormat:i((...e)=>new Intl.DateTimeFormat(...e),{cache:eo(e.dateTime),strategy:l.variadic}),getPluralRules:i((...e)=>new Intl.PluralRules(...e),{cache:eo(e.pluralRules),strategy:l.variadic})}}(this.formatterCache)}format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===ei.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r};formatToParts=e=>
1(function e(t,r,n,i,o,s,a){if(1===t.length&&_(t[0]))return[{type:ei.literal,value:t[0].value}];let c=[];for(let u of t){if(_(u)){c.push({type:ei.literal,value:u.value});continue}if(u.type===y.pound){"number"==typeof s&&c.push({type:ei.literal,value:n.getNumberFormat(r).format(s)});continue}let{value:t}=u;if(!(o&&t in o))throw new en(t,a);let l=o[t];if(u.type===y.argument){l&&"string"!=typeof l&&"number"!=typeof l&&"bigint"!=typeof l||(l="string"==typeof l||"number"==typeof l||"bigint"==typeof l?String(l):""),c.push({type:"string"==typeof l?ei.literal:ei.object,value:l});continue}if(w(u)){let e="string"==typeof u.style?i.date[u.style]:T(u.style)?u.style.parsedOptions:void 0;c.push({type:ei.literal,value:n.getDateTimeFormat(r,e).format(l)});continue}if(S(u)){let e="string"==typeof u.style?i.time[u.style]:T(u.style)?u.style.parsedOptions:i.time.medium;c.push({type:ei.literal,value:n.getDateTimeFormat(r,e).format(l)});continue}if(b(u)){let e="string"==typeof u.style?i.number[u.style]:C(u.style)?u.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof l){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}c.push({type:ei.literal,value:n.getNumberFormat(r,e).format(l)});continue}if(I(u)){let{children:t,value:l}=u,h=o[l];if("function"!=typeof h)throw new er(l,"function",a);let d=h(e(t,r,n,i,o,s).map(e=>e.value));Array.isArray(d)||(d=[d]),c.push(...d.map(e=>({type:"string"==typeof e?ei.literal:ei.object,value:e})))}if(E(u)){let t=l,s=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other;if(!s)throw new et(u.value,l,Object.keys(u.options),a);c.push(...e(s.value,r,n,i,o));continue}if(k(u)){let t=`=${l}`,s=Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0;if(!s){if(!Intl.PluralRules)throw new ee(`Intl.PluralRules is not available in this environment. 2Try polyfilling it using "@formatjs/intl-pluralrules" 3`,Z.MISSING_INTL_API,a);let e="bigint"==typeof l?Number(l):l,t=n.getPluralRules(r,{type:u.pluralType}).select(e-(u.offset||0));s=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other}if(!s)throw new et(u.value,l,Object.keys(u.options),a);let h="bigint"==typeof l?Number(l):l;c.push(...e(s.value,r,n,i,o,h-(u.offset||0)));continue}}return c.length<2?c:c.reduce((e,t)=>{let r=e[e.length-1];return r&&r.type===ei.literal&&t.type===ei.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return es.memoizedDefaultLocale||(es.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),es.memoizedDefaultLocale}static resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])};static __parse=Q;static formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}function ea(...[e,t,r,i]){let o;if(Array.isArray(t))throw new h(d.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new h(d.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}]/.test(t)?void 0:t;if(e)return e}let{cache:s,formats:a,formatters:c,globalFormats:u,locale:l,timeZone:p}=i;c.getMessageFormat||(c.getMessageFormat=f((...e)=>new es(e[0],e[1],e[2],{formatters:c,...e[3]}),s.message));try{o=c.getMessageFormat(t,l,function(e,t,r){let n=es.formats.date,i=es.formats.time,o={...e?.dateTime,...t?.dateTime},s={date:{...n,...o},time:{...i,...o},number:{...e?.number,...t?.number}};
3return r&&["date","time"].forEach(e=>{let t=s[e];for(let[e,n]of Object.entries(t))t[e]={timeZone:r,...n}}),s}(u,a,p),{formatters:{...c,getDateTimeFormat:(e,t)=>c.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??p})}})}catch(e){throw new h(d.INVALID_MESSAGE,void 0)}let m=o.format(r);return(0,n.isValidElement)(m)||Array.isArray(m)||"string"==typeof m?m:String(m)}function ec(...e){return e.filter(Boolean).join(".")}function eu(e){return ec(e.namespace,e.key)}function el(e){console.error(e)}function eh(e,t,r,n){let i=ec(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+` (${e})`);o=r}),o}ea.raw=!0;let ed={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var ep=r(23798);let ef=(0,n.createContext)(void 0);function em({children:e,formats:t,getMessageFallback:r,locale:i,messages:o,now:s,onError:a,timeZone:c}){let u=(0,n.useContext)(ef),l=(0,n.useMemo)(()=>u?.cache||p(),[i,u?.cache]),h=(0,n.useMemo)(()=>u?.formatters||g(l),[l,u?.formatters]),d=(0,n.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:n,...i}){return{...i,formats:e||void 0,messages:r||void 0,onError:n||el,getMessageFallback:t||eu}}({locale:i,formats:void 0===t?u?.formats:t,getMessageFallback:r||u?.getMessageFallback,messages:void 0===o?u?.messages:o,now:s||u?.now,onError:a||u?.onError,timeZone:c||u?.timeZone}),formatters:h,cache:l}),[l,t,h,r,i,o,s,a,u,c]);return(0,ep.jsx)(ef.Provider,{value:d,children:e})}function eg(){let e=(0,n.useContext)(ef);if(!e)throw Error(void 0);return e}let ey=!1,ev="undefined"==typeof window;function e_(e){return function(e,t,r){let{cache:i,formats:o,formatters:s,getMessageFallback:a,locale:c,onError:u,timeZone:l}=eg(),p=e["!"],f="!"===t?void 0:t.slice((r+".").length);return l||ey||!ev||(ey=!0,u(new h(d.ENVIRONMENT_FALLBACK,void 0))),(0,n.useMemo)(()=>(function(e){let t=function(e,t,r){try{if(!t)throw Error(void 0);let n=r?eh(e,t,r):t;if(!n)throw Error(r);return n}catch(e){return new h(d.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:r,getMessageFallback:i=eu,locale:o,messagesOrError:s,namespace:a,onError:c,timeZone:u}){let l=s instanceof h;function p(e,t,r,n){let o=new h(t,r);return c(o),n??i({error:o,key:e,namespace:a})}function f(f,m,g,y){let v;if(l){if(!y)return c(s),i({error:s,key:f,namespace:a});v=y}else try{v=eh(o,s,f,a)}catch(e){if(!y)return p(f,d.MISSING_MESSAGE,e.message,y);v=y}try{let i=ec(a,f);return ea(i,v,m?function(e){let t={};return Object.keys(e).forEach(r=>{let i,o=0,s=e[r];i="function"==typeof s?e=>{let t=s(e);return(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{key:r+o++}):t}:s,t[r]=i}),t}(m):m,{cache:e,formatters:r,globalFormats:t,formats:g,locale:o,timeZone:u})}catch(r){let e,t;return r instanceof h?(e=r.code,t=r.originalMessage):(e=d.FORMATTING_ERROR,t=r.message),p(f,e,t,y)}}function m(e,t,r,n){let i=f(e,t,r,n);return"string"!=typeof i?p(e,d.INVALID_MESSAGE,void 0):i}return m.rich=f,m.markup=(e,t,r,n)=>f(e,t,r,n),m.raw=e=>{if(l)return c(s),i({error:s,key:e,namespace:a});try{return eh(o,s,e,a)}catch(t){return p(e,d.MISSING_MESSAGE,t.message)}},m.has=e=>{if(l)return!1;try{return eh(o,s,e,a),!0}catch{return!1}},m}({...e,messagesOrError:t})})({cache:i,formatters:s,getMessageFallback:a,messages:p,namespace:f,onError:u,formats:o,locale:c,timeZone:l}),[i,s,a,p,f,u,o,c,l])}({"!":eg().messages},e?`!.${e}`:"!","!")}function eb(){return eg().locale}function ew(){let{formats:e,formatters:t,locale:r,now:i,onError:o,timeZone:s}=eg();return(0,n.useMemo)(()=>(function(e){let{_cache:t=p(),_formatters:r=g(t),formats:n,locale:i,onError:o=el,timeZone:s}=e;function a(e){return e?.timeZone||(s?e={...e,timeZone:s}:o(new h(d.ENVIRONMENT_FALLBACK,void 0))),e}function c(e,t,r,n,i){let s;try{s=function(e,t,r){let n;if("string"==typeof t){if(!(n=e?.[t])){let e=new h(d.MISSING_FORMAT,void 0);throw o(e),e}}else n=t;return r&&(n={...n,...r}),n}(r,e,t)}catch{return i()}try{return n(s)}catch(e){return o(new h(d.FORMATTING_ERROR,e.message)),i()}}function u(e,t,o){return c(t,o,n?.dateTime,t=>(t=a(t),r.getDateTimeFormat(i,t).format(e)),()=>String(e))}function l(){return e.now?e.now:(o(new h(d.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(e,t,o){return c(t,o,n?.number,t=>r.getNumberFormat(i,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let o,s,a={};t instanceof Date||"number"==typeof t?o=new Date(t):t&&(o=null!=t.now?new Date(t.now):l(),s=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),o||(o=l());let c=(new Date(e).getTime()-o.getTime())/1e3;s||(s=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<2628e3?"week":t<31536e3?"month":"year"}(c)),a.numeric="second"===s?"auto":"always";let u=(n=s,Math.round(c/ed[n]));return r.getRelativeTimeFormat(i,a).format(u,s)}catch(t){return o(new h(d.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,o){let s=[],a=new Map,u=0;for(let t of e){let e;"object"==typeof t?(e=String(u),a.set(e,t)):e=String(t),s.push(e),u++}return c(t,o,n?.list,e=>{let t=r.getListFormat(i,e).formatToParts(s).map(e=>
3"literal"===e.type?e.value:a.get(e.value)||e.value);return a.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,o,s){return c(o,s,n?.dateTime,n=>(n=a(n),r.getDateTimeFormat(i,n).formatRange(e,t)),()=>[u(e),u(t)].join("âââ"))}}})({formats:e,locale:r,now:i,onError:o,timeZone:s,_formatters:t}),[e,t,i,r,o,s])}},24974:(e,t,r)=>{"use strict";var n=r(2272);r(29019);var i=r(21462),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==n&&n.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?s:i;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c=document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(a(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
3h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(a(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},h={};function d(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return h[n]||(h[n]="jsx-"+l(e+"-"+r)),h[n]}function p(e,t){var r=e+t;return h[r]||(h[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[r]}var f=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new c({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=d(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:d(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var g=o.default.useInsertionEffect||o.default.useLayoutEffect,y=new f;function v(e){var t=y||i.useContext(m);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return d(e[0],e[1])}).join(" ")},t.style=v},25811:(e,t,r)=>{"use strict";r.d(t,{I:()=>b});var n=r(30978),i=r(26059),o=r(31903),s=r(84908),a=r(79286),c=r(84370),u=r(67803),l=class extends s.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,a.T)(),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#i=void 0;#o=void 0;#s;#a;#r;#t;#c;#u;#l;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),h(this.#n,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#v(),this.#n.removeObserver(this)}setOptions(e){let t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.Eh)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#n.setOptions(this.options),t._defaulted&&!(0,c.f8)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let n=this.hasListeners();n&&p(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),n&&(this.#n!==r||(0,c.Eh)(this.options.enabled,this.#n)!==(0,c.Eh)(t.enabled,this.#n)||(0,c.d2)(this.options.staleTime,this.#n)!==(0,c.d2)(t.staleTime,this.#n))&&this.#b();let i=this.#w();n&&(this.#n!==r||(0,c.Eh)(this.options.enabled,this.#n)!==(0,c.Eh)(t.enabled,this.#n)||i!==this.#p)&&this.#S(i)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(n,e);return t=this,r=i,(0,c.f8)(t.getCurrentResult(),r)||(this.#o=i,this.#a=this.options,this.#s=this.#n.state),i}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#m(e){this.#_();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(c.lQ)),t}#b(){this.#y();let e=(0,c.d2)(this.options.staleTime,this.#n);if(c.S$||this.#o.isStale||!(0,c.gn)(e))return;let t=(0,c.j3)(this.#o.dataUpdatedAt,e);this.#h=u.zs.setTimeout(()=>{this.#o.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#S(e){this.#v(),this.#p=e,!c.S$&&!1!==(0,c.Eh)(this.options.enabled,this.#n)&&(0,c.gn)(this.#p)&&0!==this.#p&&(this.#d=u.zs.setInterval(()=>
3{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#m()},this.#p))}#g(){this.#b(),this.#S(this.#w())}#y(){this.#h&&(u.zs.clearTimeout(this.#h),this.#h=void 0)}#v(){this.#d&&(u.zs.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,n=this.#n,i=this.options,s=this.#o,u=this.#s,l=this.#a,d=e!==n?e.state:this.#i,{state:m}=e,g={...m},y=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&h(e,t),a=r&&p(e,n,t,i);(s||a)&&(g={...g,...(0,o.k)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:_,status:b}=g;r=g.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===b){let e;s?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=s.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,void 0!==e&&(b="success",r=(0,c.pl)(s?.data,e,t),y=!0)}if(t.select&&void 0!==r&&!w)if(s&&r===u?.data&&t.select===this.#c)r=this.#u;else try{this.#c=t.select,r=t.select(r),r=(0,c.pl)(s?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(v=this.#t,r=this.#u,_=Date.now(),b="error");let S="fetching"===g.fetchStatus,E="pending"===b,k="error"===b,I=E&&S,C=void 0!==r,T={status:b,fetchStatus:g.fetchStatus,isPending:E,isSuccess:"success"===b,isError:k,isInitialLoading:I,isLoading:I,data:r,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:_,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:k&&!C,isPaused:"paused"===g.fetchStatus,isPlaceholderData:y,isRefetchError:k&&C,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,c.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===T.status?e.reject(T.error):void 0!==T.data&&e.resolve(T.data)},r=()=>{t(this.#r=T.promise=(0,a.T)())},i=this.#r;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":("error"===T.status||T.data!==i.value)&&r();break;case"rejected":("error"!==T.status||T.error!==i.reason)&&r()}}return T}updateResult(){let e=this.#o,t=this.createResult(this.#n,this.options);if(this.#s=this.#n.state,this.#a=this.options,void 0!==this.#s.data&&(this.#l=this.#n),(0,c.f8)(t,e))return;this.#o=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let n=new Set(r??this.#f);return this.options.throwOnError&&n.add("error"),Object.keys(this.#o).some(t=>this.#o[t]!==e[t]&&n.has(t))};this.#E({listeners:r()})}#_(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#E(e){i.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#o)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,c.Eh)(t.enabled,e)&&"static"!==(0,c.d2)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&f(e,t)}return!1}function p(e,t,r,n){return(e!==t||!1===(0,c.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,c.Eh)(t.enabled,e)&&e.isStaleByTime((0,c.d2)(t.staleTime,e))}var m=r(21462),g=r(10818);r(23798);var y=m.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),v=m.createContext(!1);v.Provider;var _=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function b(e,t){return function(e,t,r){let n=m.useContext(v),o=m.useContext(y),s=(0,g.jE)(r),a=s.defaultQueryOptions(e);if(s.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=n?"isRestoring":"optimistic",a.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=a.staleTime;a.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof a.gcTime&&(a.gcTime=Math.max(a.gcTime,1e3))}(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&!o.isReset()&&(a.retryOnMount=!1),m.useEffect(()=>{o.clearReset()},[o]);let u=!s.getQueryCache().get(a.queryHash),[l]=m.useState(()=>new t(s,a)),h=l.getOptimisticResult(a),d=!n&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=d?l.subscribe(i.jG.batchCalls(e)):c.lQ;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(a)},[a,l]),a?.suspense&&h.isPending)throw _(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(0,c.GU)(r,[e.error,n])))({result:h,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw h.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(a,h),a.experimental_prefetchInRender&&!c.S$&&h.isLoading&&h.isFetching&&!n){let e=u?_(
3a,l,o):s.getQueryCache().get(a.queryHash)?.promise;e?.catch(c.lQ).finally(()=>{l.updateResult()})}return a.notifyOnChangeProps?h:l.trackResult(h)}(e,l,t)}},26059:(e,t,r)=>{"use strict";r.d(t,{jG:()=>i});var n=r(67803).Zq,i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},o=n,s=n=>{t?e.push(n):o(()=>{r(n)})};return{batch:n=>{let s;t++;try{s=n()}finally{--t||(()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{r(e)})})})})()}return s},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},26486:(e,t,r)=>{"use strict";r.d(t,{N9:()=>u,Uc:()=>s,gu:()=>c,r5:()=>a});var n=r(83241),i=r(89240),o=r(1518);async function s(e){let t=await (0,i.vq)(e),r="".concat((0,o.$_)(!1),"/user/settings"),s=await (0,n.l)(r,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t}});if(!s.ok){let{message:e}=await s.json();throw Error("Could not get user settings - ".concat(s.statusText," (").concat(s.status,")").concat(e?": ".concat(e):""))}return s.json()}async function a(e,t,r){let s=await (0,i.vq)(e),a="".concat((0,o.$_)(!1),"/user/activity?from=").concat(t,"&to=").concat(r),c=await (0,n.l)(a,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s}});if(!c.ok){let{message:e}=await c.json();throw Error("Could not get user settings - ".concat(c.statusText," (").concat(c.status,")").concat(e?": ".concat(e):""))}return c.json()}async function c(e,t,r){let s=await (0,i.vq)(e),a="".concat((0,o.$_)(!1),"/user/settings"),c=await (0,n.l)(a,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:"Bearer "+s},body:JSON.stringify({webOnboardingCompleted:t,name:r})});if(!c.ok){let{message:e}=await c.json();throw Error("Could not patch user settings - ".concat(c.statusText," (").concat(c.status,")").concat(e?": ".concat(e):""))}return c.json()}async function u(e,t){let r=await (0,i.vq)(e),s="".concat((0,o.$_)(!1),"/user/deviceTokens"),a=await (0,n.l)(s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+r},body:JSON.stringify({token:t,type:"adjust_web"})});if(!a.ok){if(409===a.status)return;throw Error("[Adjust] Failed to post device token: ".concat(a.statusText," (").concat(a.status,")"))}}},26838:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",o="month",s="quarter",a="year",c="date",u="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof b||!(!e||!e[m])},y=function e(t,r,n){var i;if(!t)return p;if("string"==typeof t){var o=t.toLowerCase();f[o]&&(i=o),r&&(f[o]=r,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;f[a]=t,i=a}return!n&&i&&(p=i),i||!n&&p},v=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new b(r)},_={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,o),s=r-i<0,a=t.clone().add(n+(s?-1:1),o);return+(-(n+(r-i)/(s?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:o,y:a,w:i,d:"day",D:c,h:n,m:r,s:t,ms:e,Q:s})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};_.l=y,_.i=g,_.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(l);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return this.$d.toString()!==u},p.isSame=function(e,t){var r=v(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return v(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<v(e)},p.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,s){var u=this,l=!!_.u(s)||s,h=_.p(e),d=function(e,t){var r=_.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return l?r:r.endOf("day")},p=function(e,t){return _.w(u.toDate()[e].apply(u.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},f=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case a:return l?d(1,0):d(31,11);case o:return l?d(1,m):d(0,m+1);case i:var v=this.$locale().weekStart||0,b=(f<v?f+7:f)-v;return d(l?g-b:g+(6-b),m);case"day":case c:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,s){var u,l=_.p(i),h="set"+(this.$u?"UTC":""),d=((u={}).day=h+"Date",u[c]=h+"Date",u[o]=h+"Month",u[a]=h+"FullYear",u[n]=h+"Hours",u[r]=h+"Minutes",u[t]=h+"Seconds",u[e]=h+"Milliseconds",u)[l],p="day"===l?this.$D+(s-this.$W):s;if(l===o||l===a){var f=this.clone().set(c,1);f.$d[d](p),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[_.p(e)]()},p.add=function(e,s){var c,u=this;e=Number(e);var l=_.p(s),h=function(t){var r=v(u);return _.w(r.date(r.date()+Math.round(t*e)),u)};if(l===o)return this.set(o,this.$M+e);if(l===a)return this.set(a,this.$y+e);if("day"===l)return h(1);if(l===i)return h(7);var d=((c={})[r]=6e4,c[n]=36e5,c[t]=1e3,c)[l]||1,p=this.$d.getTime()+e*d;return _.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),o=this.$H,s=this.$m,a=this.$M,c=r.weekdays,l=r.months,d=r.meri
3diem,p=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},f=function(e){return _.s(o%12||12,e,"0")},m=d||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return a+1;case"MM":return _.s(a+1,2,"0");case"MMM":return p(r.monthsShort,a,l,3);case"MMMM":return p(l,a);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,c,2);case"ddd":return p(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return _.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return _.s(s,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,c,u){var l,h=this,d=_.p(c),p=v(e),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return _.m(h,p)};switch(d){case a:l=g()/12;break;case o:l=g();break;case s:l=g()/3;break;case i:l=(m-f)/6048e5;break;case"day":l=(m-f)/864e5;break;case n:l=m/36e5;break;case r:l=m/6e4;break;case t:l=m/1e3;break;default:l=m}return u?l:_.a(l)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return f[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=y(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),w=b.prototype;return v.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",a],["$D",c]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,b,v),e.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=f[p],v.Ls=f,v.p={},v}()},27596:(e,t,r)=>{"use strict";r.d(t,{LZ:()=>p,ao:()=>m,k1:()=>g});var n=r(61737),i=r(84996),o=r(6941),s=r(30872),a=r(99423),c=r(65952),u=r(74957),l=r(38387),h=r(13748);let d="_frozenDsc";function p(e,t){(0,u.my)(e,d,t)}function f(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:r.environment||n.U,release:r.release,public_key:i,trace_id:e,org_id:(0,a.ul)(t)};return t.emit("createDsc",o),o}function m(e,t){let r=t.getPropagationContext();return r.dsc||f(r.traceId,e)}function g(e){let t=(0,i.KU)();if(!t)return{};let r=(0,l.zU)(e),n=(0,l.et)(r),a=n.data,u=r.spanContext().traceState,p=u?.get("sentry.sample_rate")??a[o.sy]??a[o.Ef];function m(e){return("number"==typeof p||"string"==typeof p)&&(e.sample_rate=`${p}`),e}let g=r[d];if(g)return m(g);let y=u?.get("sentry.dsc"),v=y&&(0,s.yD)(y);if(v)return m(v);let _=f(e.spanContext().traceId,t),b=a[o.i_],w=n.description;return"url"!==b&&w&&(_.transaction=w),(0,c.f)()&&(_.sampled=String((0,l.pK)(r)),_.sample_rand=u?.get("sentry.sample_rand")??(0,h.L)(r).scope?.getPropagationContext().sampleRand.toString()),m(_),t.emit("createDsc",_,r),_}},28153:(e,t,r)=>{"use strict";e.exports=r(68053)},28946:(e,t,r)=>{"use strict";r.d(t,{KM:()=>d,NL:()=>i,UP:()=>o,d9:()=>u,fH:()=>f,lc:()=>s,lu:()=>l});var n=r(71996);r(91788);let i="NEXT_LOCALE",o=31536e3,s="UTC",a=new Set(n.locales);function c(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function u(e){return"string"==typeof e&&a.has(e)}function l(e){if(!e||!e.startsWith("/"))return;let t=e.split("/")[1];if(u(t))return t}function h(e){let[t]=e.split("?")[0].split("#")[0].split("/").filter(Boolean);if(!t||!u(t))return{pathname:e};let r=e.startsWith("/"),n=(r?e:"/".concat(e)).split("/"),i=n.findIndex(e=>e===t);if(-1===i)return{pathname:e};n.splice(i,1);let o=n.join("/"),s=""===o?"/":o;return r||"/"===s?{pathname:s}:{pathname:s.slice(1)}}function d(e){try{let t=new URL(e),{pathname:r}=h(t.pathname);return t.pathname=r,{path:t.toString()}}catch(o){let{pathname:t,search:r,hash:n}=function(e){var t,r,n;let i=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return i?{pathname:null!=(t=i[1])?t:"",search:null!=(r=i[2])?r:"",hash:null!=(n=i[3])?n:""}:{pathname:e,search:"",hash:""}}(e),{pathname:i}=h(t);
3return{path:"".concat(i).concat(r).concat(n)}}}async function p(e,t){try{return(await r(29623)("./".concat(e,"/").concat(t,".ts"))).default}catch(i){if(e!==n.defaultLocale)return(await r(29623)("./".concat(n.defaultLocale,"/").concat(t,".ts"))).default;throw i}}async function f(e,t){let r=n.locales.includes(e)?e:n.defaultLocale;return Object.fromEntries(await Promise.all(t.map(async e=>{let t=await p(r,e);return[e,function(e,t){if(!c(t))throw Error('Invalid i18n payload for namespace "'.concat(e,'": expected an object at the root.'));let r=t[e];return c(r)?r:t}(e,t)]})))}},29019:()=>{},29623:(e,t,r)=>{var n={"./de/homepage.ts":[76067,6067],"./de/landingPages.ts":[12730,2730],"./de/loggedOutCommon.ts":[96666,6666],"./de/webApp.ts":[52762,2762],"./en/homepage.ts":[98203,8203],"./en/landingPages.ts":[30690,690],"./en/loggedOutCommon.ts":[69618,9618],"./en/webApp.ts":[29538,9538],"./types.ts":[30010,2762,9538,10]};function i(e){if(!r.o(n,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],i=t[0];return Promise.all(t.slice(1).map(r.e)).then(()=>r(i))}i.keys=()=>Object.keys(n),i.id=29623,e.exports=i},30678:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(21777).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30872:(e,t,r)=>{"use strict";r.d(t,{D0:()=>l,De:()=>u,sv:()=>s,yD:()=>c});var n=r(39766),i=r(53032),o=r(97270);let s="sentry-",a=/^sentry-/;function c(e){let t=l(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(a)&&(e[t.slice(s.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function u(e){if(e){var t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,r],o)=>{let s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===o?s:`${e},${s}`;return a.length>8192?(n.T&&i.Yz.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},""):void 0}}function l(e){if(e&&((0,o.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(h(t)).forEach(([t,r])=>{e[t]=r}),e),{}):h(e)}function h(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},30978:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(84908),i=r(84370),o=new class extends n.Q{#k;#I;#C;constructor(){super(),this.#C=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#I||this.setEventListener(this.#C)}onUnsubscribe(){this.hasListeners()||(this.#I?.(),this.#I=void 0)}setEventListener(e){this.#C=e,this.#I?.(),this.#I=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#k!==e&&(this.#k=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#k?this.#k:globalThis.document?.visibilityState!=="hidden"}}},31227:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(23798),i=r(21462),o=r(38831),s=r(68519),a=r(60781);class c extends i.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){o.Cp(e,{tags:{context:"ErrorBoundary"},extra:{componentStack:t.componentStack}})}render(){return this.state.hasError?(0,n.jsx)(s.M,{redirectUrl:(0,a.ni)()||(0,a.wC)()}):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}let u=c},31428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>e0});var n,i,o=r(23798),s=r(13995),a=r.n(s),c=r(11522),u=r.n(c),l=r(80032),h=r.n(l),d=r(44702),p=r.n(d),f=r(62286),m=r.n(f),g=r(596),y=r.n(g),v=r(18350),_=r.n(v),b=r(9536),w=r(37321),S=r.n(w),E=r(84370),k=r(31903),I=r(26059),C=r(84908),T=class extends C.Q{constructor(e={}){super(),this.config=e,this.#T=new Map}#T;build(e,t,r){let n=t.queryKey,i=t.queryHash??(0,E.F$)(n,t),o=this.get(i);return o||(o=new k.X({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#T.has(e.queryHash)||(this.#T.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#T.get(e.queryHash);t&&(e.destroy(),t===e&&this.#T.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){I.jG.batch(()=>
3{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#T.get(e)}getAll(){return[...this.#T.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,E.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,E.MK)(e,t)):t}notify(e){I.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){I.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){I.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},x=r(67366),A=class extends C.Q{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#A=new Map,this.#O=0}#x;#A;#O;build(e,t,r){let n=new x.s({client:e,mutationCache:this,mutationId:++this.#O,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#x.add(e);let t=O(e);if("string"==typeof t){let r=this.#A.get(t);r?r.push(e):this.#A.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){let t=O(e);if("string"==typeof t){let r=this.#A.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#A.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=O(e);if("string"!=typeof t)return!0;{let r=this.#A.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=O(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#A.get(t)?.find(t=>
3t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){I.jG.batch(()=>{this.#x.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#x.clear(),this.#A.clear()})}getAll(){return Array.from(this.#x)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,E.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,E.nJ)(e,t))}notify(e){I.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return I.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(E.lQ))))}};function O(e){return e.options.scope?.id}var R=r(30978),P=r(78105);function M(e){return{onFetch:(t,r)=>{let n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[],a={pages:[],pageParams:[]},c=0,u=async()=>{let r=!1,u=(0,E.ZM)(t.options,t.fetchOptions),l=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let o=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),s=await u(o),{maxPages:a}=t.options,c=i?E.ZZ:E.y9;return{pages:c(e.pages,s,a),pageParams:c(e.pageParams,n,a)}};if(i&&o.length){let e="backward"===i,t={pages:o,pageParams:s},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:N)(n,t);a=await l(t,r,e)}else{let t=e??o.length;do{let e=0===c?s[0]??n.initialPageParam:N(n,a);if(c>0&&null==e)break;a=await l(a,e),c++}while(c<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function N(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var L=class{#R;#P;#M;#N;#L;#D;#U;#j;constructor(e={}){this.#R=e.queryCache||new T,this.#P=e.mutationCache||new A,this.#M=e.defaultOptions||{},this.#N=new Map,this.#L=new Map,this.#D=0}mount(){this.#D++,1===this.#D&&(this.#U=R.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#R.onFocus())}),this.#j=P.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#R.onOnline())}))}unmount(){this.#D--,0===this.#D&&(this.#U?.(),this.#U=void 0,this.#j?.(),this.#j=void 0)}isFetching(e){return this.#R.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#P.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#R.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#R.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,E.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#R.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#R.get(n.queryHash),o=i?.state.data,s=(0,E.Zw)(t,o);if(void 0!==s)return this.#R.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return I.jG.batch(()=>this.#R.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#R.get(t.queryHash)?.state}removeQueries(e){let t=this.#R;I.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#R;return I.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(I.jG.batch(()=>this.#R.findAll(e).map(e=>e.cancel(r)))).then(E.lQ).catch(E.lQ)}invalidateQueries(e,t={}){return I.jG.batch(()=>(this.#R.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(I.jG.batch(()=>this.#R.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(E.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}
3))).then(E.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#R.build(this,t);return r.isStaleByTime((0,E.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(E.lQ).catch(E.lQ)}fetchInfiniteQuery(e){return e.behavior=M(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(E.lQ).catch(E.lQ)}ensureInfiniteQueryData(e){return e.behavior=M(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return P.t.isOnline()?this.#P.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#R}getMutationCache(){return this.#P}getDefaultOptions(){return this.#M}setDefaultOptions(e){this.#M=e}setQueryDefaults(e,t){this.#N.set((0,E.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#N.values()],r={};return t.forEach(t=>{(0,E.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#L.set((0,E.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#L.values()],r={};return t.forEach(t=>{(0,E.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#M.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,E.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===E.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#M.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#R.clear(),this.#P.clear()}},D=r(10818),U=r(21462),j=r(79286);function F(e){return e}function B(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),o=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??F,s=t.mutations||[],a=t.queries||[];s.forEach(({state:t,...i})=>{n.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...i},t)}),a.forEach(({queryKey:t,state:n,queryHash:s,meta:a,promise:c,dehydratedAt:u})=>{let l=c?(0,j.b)(c):void 0,h=void 0===n.data?l?.data:n.data,d=void 0===h?h:o(h),p=i.get(s),f=p?.state.status==="pending",m=p?.state.fetchStatus==="fetching";if(p){let e=l&&void 0!==u&&u>p.state.dataUpdatedAt;if(n.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=n;p.setState({...t,data:d})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:s,meta:a},{...n,data:d,fetchStatus:"idle",status:void 0!==d?"success":n.status});c&&!f&&!m&&(void 0===u||u>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(c).then(o)}).catch(E.lQ)})}var H=({children:e,options:t={},state:r,queryClient:n})=>{let i=(0,D.jE)(n),o=U.useRef(t);U.useEffect(()=>{o.current=t});let s=U.useMemo(()=>{if(r){if("object"!=typeof r)return;let e=i.getQueryCache(),t=r.queries||[],n=[],s=[];for(let r of t){let t=e.get(r.queryHash);t?(r.state.dataUpdatedAt>t.state.dataUpdatedAt||r.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==r.dehydratedAt&&r.dehydratedAt>t.state.dataUpdatedAt)&&s.push(r):n.push(r)}if(n.length>0&&B(i,{queries:n},o.current),s.length>0)return s}},[i,r]);return U.useEffect(()=>{s&&B(i,{queries:s},o.current)},[i,s]),e},z=r(38831),$=r(66683),q=r.n($);r(76351),r(20685),r(17053);var V=r(2891),G=r(92626),W=r(89240),Y=r(11207),K=r(8032);let J=U.createContext({});var X=r(26486),Q=r(40537);let Z=new Set,ee=new Set;var et=r(26838),er=r.n(et);r(19673);var en=r(78829),ei=r.n(en),eo=r(5377),es=r.n(eo);let ea={"demo-ab-test":{name:"demo-ab-test",buckets:["original","variant1"],startDate:"2000-01-01T00:00:00.000Z",useManually:!0}};var ec=r(91788);function eu(){return Object.entries(ea).reduce((e,t)=>{let[r,n]=t,i=new Date(n.startDate);return new Date>=i&&(e[r]=n),e},{})}async function el(e){let t=eu(),r=e[eh],n=r?(0,ec.BE)(String(r)):{},i=e.cookie?(0,ec.BE)(e.cookie):{},o=Object.keys(t).reduce((e,t)=>
3{let r=n[t]||i[t];return r&&(e[t]=r),e},{}),s=(0,ec.pl)(e.cookie,"vercel-flag-overrides"),a={};if(s)try{a=JSON.parse(s)}catch(e){console.error("Failed to parse overrides cookie:",e)}return{...o,...a}}let eh="x-mimo-custom-set-cookie-header";var ed=r(70241),ep=r(93449),ef=r(2272);function em(){return"development"===function(){return"production"}()}function eg(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function ey(e){(0,U.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,U.useRef)(null);return(0,U.useEffect)(()=>{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if("undefined"==typeof window||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:em()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),em()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==ef&&void 0!==ef.env)return ef.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(t.current=r.setRoute)}},[e.route]),null}function ev(e){let t=(()=>{let e=(0,ep.useParams)(),t=(0,ep.useSearchParams)()||new URLSearchParams,r=(0,ep.usePathname)();return e?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=eg(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=eg(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())):null})();return U.createElement(ey,{route:t,...e,framework:"next",basePath:function(){if(void 0!==ef&&void 0!==ef.env)return ef.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function e_(e){return U.createElement(U.Suspense,{fallback:null},U.createElement(ev,{...e}))}var eb=r(41882),ew=r(75266),eS=r(70826),eE=r(2272),ek={scriptHostname:("u">typeof eE?eE.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof eE?eE.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof eE?eE.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof eE?eE.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof eE?"dpl_FykrnhxLVMWDzKgNTLL4bAtNRTX4":void 0},eI=r(2272),eC={scriptHostname:("u">typeof eI?eI.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof eI?eI.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof eI?eI.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof eI?eI.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof eI?"dpl_FykrnhxLVMWDzKgNTLL4bAtNRTX4":void 0},eT=!1;function ex({shouldMount:e,nonce:t}){return(0,U.useEffect)(()=>(e&&eT&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(eC,e);let t=document.createElement("script");for(let[r,n]of(t.src=`${eC.scriptHostname}/_next-live/feedback/feedback.js`,t.setAttribute("data-explicit-opt-in","true"),e.nonce&&t.setAttribute("nonce",e.nonce),Object.entries((eC.ownerId&&eC.projectId?{"data-owner-id":eC.ownerId,"data-project-id":eC.projectId,"data-branch":i??eC.branch}:eC.deploymentId?{"data-deployment-id":eC.deploymentId}:void 0)??{})))n&&t.setAttribute(r,n);(document.head||document.documentElement).appendChild(t)}}({nonce:t}),eT=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}function eA({nonce:e}){return null}var eO=r(2272);function eR(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l,{strategy:"afterInteractive",...e,...ek.ownerId&&ek.projectId?{"data-owner-id":ek.ownerId,"data-project-id":ek.projectId,"data-branch":n??ek.branch}:ek.deploymentId?{"data-deployment-id":ek.deploymentId}:void 0,id:"vercel-toolbar",src:`${ek.scriptHostname}/_next-live/feedback/feedback.js`,"data-explicit-opt-in":"true"}),(0,o.jsx)(ex,{shouldMount:!0,nonce:e.nonce})]})}["1","true"].includes(eO.env.NEXT_PUBLIC_VERCEL_TOOLBAR_INJECT_IN_DEVELOPMENT??"");var eP=r(20255);let eM=(0,U.createContext)(void 0);function eN(e){let{children:t}=e,[r,n]=(0,U.useState)(!0);return(0,U.useEffect)(()=>{let e=localStorage.getItem("notificationSoundEnabled");null!==e?n(JSON.parse(e)):n(!0)},[]),(0,o.jsx)(eM.Provider,{value:{enabled:r,setEnabled:function(e){n(e),localStorage.setItem("notificationSoundEnabled",JSON.stringify(e))}},children:t})}var eL=r(88880),eD=r(31227),eU=r(76369),ej=r(22525);function eF({locale:e,...t}){if(!e)throw Error(void 0);return(0,o.jsx)(ej.Dk,{locale:e,...t})}var eB=r(71996),eH=r(28946),ez=r(84671),e$=r(71448),eq=r(47431),eV=r(25811),eG=r(20241),eW=r(43649),eY=r(60407);function eK(){let e=(0,K.useUser)(),{data:t,dataUpdatedAt:r,isError:n}=(0,eV.I)({...(0,eW.Kk)(e),select:eG.vt,enabled:!!e.id});return(0,U.useEffect)(()=>
3{if(!e.id||!t||n)return;let r=(0,eY.uS)(t),i="active MAX"===r?"max":"active PRO"===r?"pro":null;if(!i){b.A.people.unset("subscription_plan"),b.A.unregister("subscription_plan");return}b.A.people.set({subscription_plan:i}),b.A.register({subscription_plan:i})},[r,n,t,e.id]),null}var eJ=r(44885),eX=r(2272);er().extend(ei()),er().extend(es()),_().configure({showSpinner:!1}),b.A.init("75e1cfdc41836934e3934f21228b6a65",{api_host:"https://tracker-proxy.getmimo.com",cookie_expiration:1,track_links_timeout:700}),(0,W.Ay)();let eQ="/icons/".concat("v1");function eZ(e){let{Component:t,pageProps:r,abTests:n,reactivationOfferContext:i}=e,[s]=U.useState(()=>new L({defaultOptions:{queries:{refetchOnWindowFocus:!1,gcTime:864e5}}})),l=(0,c.useRouter)(),d=(0,K.useUser)();(0,U.useEffect)(()=>{let e=d.id;if(!e)return;let t=!0;return async function(){try{let r=await (0,Q.XB)();if(!t||!r)return;let n="".concat(e,":").concat(r);if(Z.has(n)||ee.has(n))return;ee.add(n);try{await (0,X.N9)(d,r),Z.add(n)}finally{ee.delete(n)}}catch(e){console.error("[Adjust] Failed to sync web device token",e)}}(),function(){t=!1}},[d.id]);let f=(0,eU.EL)(e$.D.locales,l.locale)?l.locale:eB.defaultLocale,[g,v]=(0,U.useState)(n||{}),[w,E]=(0,U.useState)(!1),[k,I]=(0,U.useState)([]),[C,T]=(0,U.useState)([]),[x,A]=(0,U.useState)([]),O=(0,U.useRef)(null),R=("https://mimo.org"+("/"===l.asPath?"":l.asPath)).split("?")[0],P=l.asPath.split("?")[0],M=!ez.pM.includes(l.pathname);(0,U.useEffect)(()=>{let e=g;if(0===Object.keys(g).length){let t=eu(),r=(0,ec.BE)(document.cookie);v(e=Object.keys(t).reduce((e,t)=>{let n=r[t];return n&&(e[t]=n),e},{}))}Object.keys(e).length>0&&(b.A.people.set({...e}),b.A.register({...e})),E(!0)},[]),(0,U.useEffect)(()=>{q().polyfill()},[]),function(e){let{isReady:t,redditClickId:r}=e;(0,U.useEffect)(()=>{if(!t||"string"!=typeof r||0===r.length)return;let e=()=>{if("function"==typeof window.getCkyConsent){var e;(null==(e=window.getCkyConsent().categories)?void 0:e.advertisement)===!0&&(0,ec.xY)(r);return}};return e(),document.addEventListener("cookieyes_consent_update",e),()=>{document.removeEventListener("cookieyes_consent_update",e)}},[t,r])}({isReady:l.isReady,redditClickId:l.query.rdt_cid}),(0,U.useEffect)(()=>{function e(e){if(function(e){let t=O.current;if(!t)return!0;try{return new URL(t).pathname!==e.split("?")[0]}catch(e){return!0}}(e)&&_().start(),e.split("?")[0]===l.asPath.split("?")[0])return;let t={pathname:l.pathname,asPath:l.asPath,query:l.query};(0,U.startTransition)(()=>{T(e=>[t,...e].slice(0,10))})}function t(){_().done()}function r(){_().done()}return u().events.on("routeChangeStart",e),u().events.on("routeChangeComplete",t),u().events.on("routeChangeError",r),()=>{u().events.off("routeChangeStart",e),u().events.off("routeChangeComplete",t),u().events.off("routeChangeError",r)}},[l]),(0,U.useEffect)(()=>{d.id&&((0,Y.az)(b.A),window.addEventListener("focus",function(){(0,Y.az)(b.A)}))},[d]),(0,U.useEffect)(()=>{d.id&&((0,G.sL)(d.id),z.gV({id:d.id,name:d.displayName,email:d.email||""}),z.NA("environment","localhost"===window.location.hostname?"development":window.location.href.indexOf("/ssr/")>-1?"preview":"production"))},[d]),(0,U.useEffect)(()=>{if(d.id){var e;(0,V.kq)(d),b.A.identify(d.id),b.A.people.set({$email:d.email,app_language:f}),function(e,t){if(void 0===window._cio)return;let r={id:e};t&&t.email&&(r.email=t.email),window._cio.identify(r)}(d.id,{email:null!=(e=d.email)?e:void 0})}},[d.id]),(0,U.useEffect)(()=>{b.A.register({app_language:f}),d.id&&b.A.people.set({app_language:f})},[f,d.id]),(0,U.useEffect)(()=>{var e,t;if(!w)return;let r=window.location.href,n=null!=(e=O.current)?e:void 0;if(n!==r){let{path:e}=n?(0,eH.KM)(n):{path:void 0},{path:i}=(0,eH.KM)(r);(0,Y.oe)(b.A,{currentUrlWithoutLocale:i,navigatedTo:r,navigatedFrom:n,navigatedFromWithoutLocale:e,app_language:f}),null==(t=window._cio)||t.page(r,{navigatedFrom:n}),O.current=r}},[l.pathname,l.query,w]);let N=(0,eP.wS)(d),j=r.messages||{};return(0,o.jsxs)("main",{className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])+" h-full",children:[(0,o.jsx)(a(),{id:"4386cd1ed1bc08b7",dynamic:[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily],children:":root{--font-aeonik:".concat(p().style.fontFamily,";--font-aeonikFono:").concat(m().style.fontFamily,";--font-aeonikMono:").concat(y().style.fontFamily,"}")}),(0,o.jsxs)(S(),{children:[(0,o.jsx)("title",{className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]]),children:"Learn to code | Mimo: Python, JavaScript, HTML, CSS, and more"}),(0,o.jsx)("meta",{charSet:"UTF-8",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"viewport"),(0,o.jsx)("meta",{name:"description",content:"Learn to code at your own pace. Start for free with our comprehensive courses in Python, JavaScript, HTML, and CSS, and become a professional developer.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"description"),(0,o.jsx)("meta",{name:"og:title",content:"Mimo: The coding platform you need to learn Web Development, Python, and more.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:title"),(0,o.jsx)("meta",{name:"og:image",content:"https://mimo.org".concat(ed.A.src),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:image"),(0,o.jsx)("meta",{name:"og:description",content:"Mimo is a platform that teaches programming, HTML, CSS, JavaScript, and more through gamified and interactive lessons on the go.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:description"),(0,o.jsx)("meta",{name:"og:url",content:"https://mimo.org",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:url"),(0,o.jsx)("meta",{name:"og:type",content:"website",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:type"),(0,o.jsx)("meta",{name:"og:site_name",content:"Mimo: The coding platform you need to learn Web Development, Python, and more.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"og:site_name"),(0,o.jsx)("meta",{name:"fb:app_id",content:eX.env.NEXT_PUBLIC_FACEBOOK_APP_ID,className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"fb:app_id"),(0,o.jsx)("meta",{name:"twitter:url",content:"https://mimo.org",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"twitter:url"),(0,o.jsx)("meta",{name:"twitter:title",content:"Mimo: The coding platform you need to learn Web Development, Python, and more.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"twitter:title"),(0,o.jsx)("meta",{name:"twitter:description",content:"Mimo is a platform that teaches programming, HTML, CSS, JavaScript, and more through gamified and interactive lessons on the go.",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"twitter:description"),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"twitter:card"),M&&eB.locales.map(e=>(0,o.jsx)("link",{rel:"alternate",hrefLang:e,href:"https://mimo.org".concat((0,eq.h)(P,e)),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"hreflang-".concat(e))),M&&(0,o.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"https://mimo.org".concat((0,eq.h)(P,eB.defaultLocale)),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])},"hreflang-x-default"),(0,o.jsx)("link",{rel:"canonical",href:R,className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"icon",href:"".concat(eQ,"/favicon.ico"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"".concat(eQ,"/apple-touch-icon.png"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"".concat(eQ,"/android-chrome-192x192.png"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"".concat(eQ,"/favicon-32x32.png"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"".concat(eQ,"/favicon-16x16.png"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("link",{rel:"manifest",href:"/site.webmanifest",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])})]}),(0,o.jsx)(h(),{id:"_cio-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n var _cio = _cio || [];
3\n (function() {\n var a,b,c;a=function(f){return function(){_cio.push([f].\n concat(Array.prototype.slice.call(arguments,0)))}};b=[\"load\",\"identify\",\n \"sidentify\",\"track\",\"page\"];for(c=0;c<b.length;c++){_cio[b[c]]=a(b[c])};\n var t = document.createElement('script'),\n s = document.getElementsByTagName('script')[0];\n t.async = true;\n t.id = 'cio-tracker';\n t.setAttribute('data-site-id', '216c7066473188adea6e');\n t.setAttribute('data-use-in-app', 'true');\n t.setAttribute('data-auto-track-page', 'false');\n t.setAttribute('data-use-array-params', 'true');\n t.src = 'https://assets.customer.io/assets/track.js';\n s.parentNode.insertBefore(t, s);\n })();"}}),(0,o.jsx)(h(),{strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat("122284345036528","');\n fbq('track', 'PageView');")}}),(0,o.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css",className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])}),(0,o.jsx)("noscript",{className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]]),children:(0,o.jsx)("img",{alt:"facebook pixel",height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat("122284345036528","&ev=PageView&noscript=1"),className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])})}),(0,o.jsx)(h(),{strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
3j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','".concat("GTM-P9JTX7LK","');")}}),(0,o.jsx)("noscript",{className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]]),children:(0,o.jsx)("iframe",{title:"gtm",src:"https://www.googletagmanager.com/ns.html?id=".concat("GTM-P9JTX7LK"),height:"0",width:"0",style:{display:"none",visibility:"hidden"},className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])})}),(0,o.jsx)(h(),{strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'\n!function (w, d, t) {\n w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(\nvar e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script")\n;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)};\n\n\n ttq.load(\''.concat("CRJUL0JC77U51LO9NFAG","');\n ttq.page();\n}(window, document, 'ttq');")}}),(0,o.jsx)(J.Provider,{value:g,children:(0,o.jsx)(V.UF.Provider,{value:b.A,children:(0,o.jsx)(eJ.LO,{initialContext:i,children:(0,o.jsx)(D.Ht,{client:s,children:(0,o.jsx)(eN,{children:(0,o.jsx)(eL.JF.Provider,{value:{...eL.r3,...null==r?void 0:r.dehydratedFlags},children:(0,o.jsx)(ew.g.Provider,{value:{notifications:x,setNotifications:A},children:(0,o.jsx)(eb.C.Provider,{value:{userReportLessonFiles:k,setUserReportLessonFiles:I},children:(0,o.jsxs)(H,{state:r.dehydratedReactQueryState,children:[(0,o.jsx)(eK,{}),(0,o.jsx)(eS.Y.Provider,{value:{routingHistoryEntries:C,setRoutingHistoryEntries:T},children:(0,o.jsx)(eF,{locale:f,messages:j,timeZone:eH.lc,children:(0,o.jsxs)(eD.A,{children:[(0,o.jsx)(e_,{sampleRate:.1}),(0,o.jsx)(t,{...r,className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]])+" "+(r&&null!=r.className&&r.className||"")}),(0,o.jsx)("div",{suppressHydrationWarning:!0,className:a().dynamic([["4386cd1ed1bc08b7",[p().style.fontFamily,m().style.fontFamily,y().style.fontFamily]]]),children:N&&(0,o.jsx)(eR,{})})]},l.pathname)})})]})})})})})})})})})]})}eZ.getInitialProps=async e=>{let{ctx:t}=e;if(t.req){let[e,r]=await Promise.all([el(t.req.headers),(0,K.getUserFromCookies)({req:t.req})]);return{abTests:e,reactivationOfferContext:(0,eJ._y)(t.req.headers.cookie),userSerialized:r.serialize()}}return{reactivationOfferContext:"undefined"==typeof document?void 0:(0,eJ._y)(document.cookie)}};let e0=(0,K.withUser)()(eZ)},31823:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>c,_c:()=>a,gt:()=>s,xv:()=>o});var n=r(97270),i=r(6759);function o(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 r=[];for(let t=0;t<e.length;t++){let o=e[t];try{(0,n.L2)(o)?r.push((0,i.nY)(o)):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(r?e===t:e.includes(t)))}function c(e,t=[],r=!1){return t.some(t=>a(e,t,r))}},31903:(e,t,r)=>{"use strict";r.d(t,{X:()=>a,k:()=>c});var n=r(84370),i=r(26059),o=r(83134),s=r(98654),a=class extends s.k{#F;#B;#H;#e;#z;#M;#$;constructor(e){super(),this.#$=!1,this.#M=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#e=e.client,this.#H=this.#e.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#F=l(this.options),this.state=e.state??this.#F,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#z?.promise}setOptions(e){if(this.options={...this.#M,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=l(this.options);void 0!==e.data&&(this.setState(u(e.data,e.dataUpdatedAt)),this.#F=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#H.remove(this)}setData(e,t){let r=(0,n.pl)(this.state.data,e,this.options);return this.#q({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#q({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#z?.promise;return this.#z?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#F)}isActive(){return this.observers.some(e=>!1!==(0,n.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||this.state.dataUpdateCount+this.state.errorUpdate
3Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#z?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#z?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#H.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.#z&&(this.#$?this.#z.cancel({revert:!0}):this.#z.cancelRetry()),this.scheduleGc()),this.#H.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#q({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#z?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#z)return this.#z.continueRetry(),this.#z.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#$=!0,r.signal)})},s=()=>{let e=(0,n.ZM)(this.options,t),r=(()=>{let e={client:this.#e,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#$=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#e,state:this.state,fetchFn:s};return i(e),e})();this.options.behavior?.onFetch(a,this),this.#B=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#q({type:"fetch",meta:a.fetchOptions?.meta}),this.#z=(0,o.II)({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof o.cc&&e.revert&&this.setState({...this.#B,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#q({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#q({type:"pause"})},onContinue:()=>{this.#q({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#z.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#H.config.onSuccess?.(e,this),this.#H.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof o.cc){if(e.silent)return this.#z.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#q({type:"error",error:e}),this.#H.config.onError?.(e,this),this.#H.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#q(e){let t=t=>{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,...c(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...u(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#B=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#H.notify({query:this,type:"updated",action:e})})}};function c(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function u(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
3Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},32109:(e,t,r)=>{"use strict";r.d(t,{f:()=>s,r:()=>o});var n=r(74957);let i="_sentrySpan";function o(e,t){t?(0,n.my)(e,i,t):delete e[i]}function s(e){return e[i]}},33685:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,h=r?i-1:0,d=r?-1:1,p=e[t+h];for(h+=d,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,d=5960464477539062e-23*(23===i),p=n?0:o-1,f=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?t+=d/c:t+=d*Math.pow(2,1-h),t*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+p]=255&s,p+=f,s/=256,u-=8);e[r+p-f]|=128*m}},37114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(82643),o=[];t.LogLevel=void 0,function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(t.LogLevel||(t.LogLevel={}));var s={debug:t.LogLevel.DEBUG,verbose:t.LogLevel.VERBOSE,info:t.LogLevel.INFO,warn:t.LogLevel.WARN,error:t.LogLevel.ERROR,silent:t.LogLevel.SILENT},a=t.LogLevel.INFO,c=((n={})[t.LogLevel.DEBUG]="log",n[t.LogLevel.VERBOSE]="log",n[t.LogLevel.INFO]="info",n[t.LogLevel.WARN]="warn",n[t.LogLevel.ERROR]="error",n),u=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!(t<e.logLevel)){var o=new Date().toISOString(),s=c[t];if(s)console[s].apply(console,i.__spreadArray(["[".concat(o,"] ").concat(e.name,":")],r,!1));else throw Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"))}},l=function(){function e(e){this.name=e,this._logLevel=a,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in t.LogLevel))throw TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?s[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,i.__spreadArray([this,t.LogLevel.DEBUG],e,!1)),this._logHandler.apply(this,i.__spreadArray([this,t.LogLevel.DEBUG],e,!1))},e.prototype.log=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,i.__spreadArray([this,t.LogLevel.VERBOSE],e,!1)),this._logHandler.apply(this,i.__spreadArray([this,t.LogLevel.VERBOSE],e,!1))},e.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,i.__spreadArray([this,t.LogLevel.INFO],e,!1)),this._logHandler.apply(this,i.__spreadArray([this,t.LogLevel.INFO],e,!1))},e.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,i.__spreadArray([this,t.LogLevel.WARN],e,!1)),this._logHandler.apply(this,i.__spreadArray([this,t.LogLevel.WARN],e,!1))},e.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,i.__spreadArray([this,t.LogLevel.ERROR],e,!1)),this._logHandler.apply(this,i.__spreadArray([this,t.LogLevel.ERROR],e,!1))},e}();t.Logger=l,t.setLogLevel=function(e){o.forEach(function(t){t.setLogLevel(e)}
3)},t.setUserLogHandler=function(e,r){for(var n=0;n<o.length;n++)!function(n){var i=null;r&&r.level&&(i=s[r.level]),null===e?n.userLogHandler=null:n.userLogHandler=function(r,n){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var a=o.map(function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(function(e){return e}).join(" ");n>=(null!=i?i:r.logLevel)&&e({level:t.LogLevel[n].toLowerCase(),message:a,args:o,type:r.name})}}(o[n])}},37211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},37321:(e,t,r)=>{e.exports=r(86355)},37856:(e,t,r)=>{"use strict";let n,i;r.r(t),r.d(t,{deleteDB:()=>f,openDB:()=>p,unwrap:()=>d,wrap:()=>h});let o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,l={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("objectStoreNames"===t)return e.objectStoreNames||a.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return h(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function h(e){if(e instanceof IDBRequest){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(h(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&o.set(t,e)}).catch(()=>{}),u.set(t,e),t}if(c.has(e))return c.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(d(this),t),h(o.get(this))}:function(...t){return h(e.apply(d(this),t))}:function(t,...r){let n=e.call(d(this),t,...r);return a.set(n,t.sort?t.sort():[t]),h(n)};return e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});s.set(e,t)}(e),(n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,l):e}(e);return t!==e&&(c.set(e,t),u.set(t,e)),t}let d=e=>u.get(e);function p(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=h(s);return n&&s.addEventListener("upgradeneeded",e=>{n(h(s.result),e.oldVersion,e.newVersion,h(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}function f(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",e=>t(e.oldVersion,e)),h(r).then(()=>void 0)}let m=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],y=new Map;function v(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(y.get(t))return y.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=g.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||m.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return y.set(t,o),o}l=(e=>({...e,get:(t,r,n)=>v(t,r)||e.get(t,r,n),has:(t,r)=>!!v(t,r)||e.has(t,r)}))(l)},38387:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>N,CC:()=>m,Ck:()=>v,G_:()=>w,Hu:()=>O,Qh:()=>b,VS:()=>R,aO:()=>g,cI:()=>E,et:()=>I,kX:()=>_,pK:()=>C,uU:()=>S,xO:()=>P,xl:()=>L,yW:()=>T,zU:()=>M});var n=r(64441),i=r(95816),o=r(84996),s=r(6941),a=r(11625),c=r(13748),u=r(74957),l=r(9887),h=r(53375),d=r(6896),p=r(53032),f=r(32109);let m=0,g=1,y=!1;function v(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:s,origin:a,links:c}=I(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:s,origin:a,links:c}}function _(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:I(e).parent_span_id,o=(0,c.L)(e).scope;return{parent_span_id:i,span_id:n?o?.getPropagationContext().propagationSpanId||(0,l.Z)():t,trace_id:r}}function b(e){let{traceId:t,spanId:r}=e.spanContext(),n=C(e);return(0,d.TC)(t,r,n)}function w(e){let{traceId:t,spanId:r}=e.spanContext(),n=C(e);return(0,d.Iy)(t,r,n)}function S(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===g,attributes:i,...n})):void 0}function E(e){return"number"==typeof e?k(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?k(e.getTime()):(0,h.zf)()}function k(e){return e>0x2540be3ff?e/1e3:e}function I(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:n}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:o,endTime:a,status:c,links:u}=e;return{span_id:r,trace_id:n,data:t,description:o,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:E(i),timestamp:E(a)||void 0,status:T(c),op:t[s.uT],origin:t[s.JD],links:S(u)}}return{span_id:r,trace_id:n,start_timestamp:0,data:{}}}function C(e){let{traceFlags:t}=e.spanContext();return t===g}function T(e){if(e&&e.code!==a.a3)return e.code===a.F3?"ok":e.message||"internal_error"}let x="_sentryChildSpans",A="_sentryRootSpan";function O(e,t){let r=e[A]||e;(0,u.my)(t,A,r),e[x]?e[x].add(t):(0,u.my)(e,x,new Set([t]))}function R(e,t){e[x]&&e[x].delete(t)}function P(e){let t=new Set;return!function e(r){if(!t.has(r)&&C(r))for(let n of(t.add(r),r[x]?Array.from(r[x]):[]))e(n)}(e),Array.from(t)}function M(e){return e[A]||e}function N(){let e=(0,i.EU)(),t=(0,n.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.f)((0,o.o5)())}function L(){y||((0,p.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y=!0)}},38831:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>u,J0:()=>y,J5:()=>b,NA:()=>d,Ol:()=>m,SA:()=>g,bX:()=>f,gV:()=>p,o:()=>h,r:()=>l});var n=r(84996),i=r(39766),o=r(6172),s=r(53032),a=r(53477),c=r(14913);function u(e,t){return(0,n.o5)().captureException(e,(0,a.li)(t))}function l(e,t){return(0,n.o5)().captureEvent(e,t)}function h(e,t){(0,n.rm)().setContext(e,t)}function d(e,t){(0,n.rm)().setTag(e,t)}function p(e){(0,n.rm)().setUser(e)}async function f(e){let t=(0,n.KU)();return t?t.flush(e):(i.T&&s.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function m(){let e=(0,n.KU)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function g(e){(0,n.rm)().addEventProcessor(e)}function y(e){let t=(0,n.rm)(),r=(0,n.o5)(),{userAgent:i}=c.O.navigator||{},s=(0,o.fj)({user:r.getUser()||t.getUser(),...i&&{userAgent:i},...e}),a=t.getSession();return a?.status==="ok"&&(0,o.qO)(a,{status:"exited"}),v(),t.setSession(s),s}function v(){let e=(0,n.rm)(),t=(0,n.o5)().getSession()||e.getSession();t&&(0,o.Vu)(t),_(),e.setSession()}function _(){let e=(0,n.rm)(),t=(0,n.KU)(),r=e.getSession();r&&t&&t.captureSession(r)}function b(e=!1){if(e)return void v();_()}},39766:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},40537:(e,t,r)=>{"use strict";r.d(t,{Lf:()=>u,XB:()=>a,oY:()=>l});let n=null,i=null;
3function o(){return i||(i=r.e(3477).then(r.t.bind(r,85575,23)).catch(e=>{throw i=null,e})),i}async function s(){let e="4yoyvvzqax34";if(!e)return console.error("[Adjust SDK] Missing NEXT_PUBLIC_ADJUST_APP_TOKEN"),null;try{let t=await o();return t.default.initSdk({appToken:e,environment:"production",logLevel:"error"}),await t.default.waitForWebUUID()}catch(e){return console.error("[Adjust SDK] Failed to initialize:",e),null}}function a(){return n||(n=s()),n}async function c(e){let{eventToken:t,deduplicationId:r}=e;try{if(!await a())return;(await o()).default.trackEvent(r?{eventToken:t,deduplicationId:r}:{eventToken:t})}catch(e){console.error("[Adjust SDK] Failed to track event:",e)}}function u(e){return c({eventToken:"5aqsw2",deduplicationId:null==e?void 0:e.deduplicationId})}function l(){return c({eventToken:"j2k641"})}},41072:(e,t,r)=>{e.exports=r(10590)},41091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(16178);Object.keys(n).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},41882:(e,t,r)=>{"use strict";r.d(t,{C:()=>i,K:()=>o});var n=r(21462);let i=n.createContext({userReportLessonFiles:[],setUserReportLessonFiles:e=>{}}),o=()=>(0,n.useContext)(i)},43532:()=>{},43590:(e,t,r)=>{"use strict";let n;r.d(t,{$X:()=>c,GR:()=>h,M6:()=>l,eJ:()=>s,gO:()=>u});var i=r(74957),o=r(14913);function s(e=function(){let e=o.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*Math.random())>>e/4).toString(16))}function a(e){return e.exception?.values?.[0]}function c(e){let{message:t,event_id:r}=e;if(t)return t;let n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function l(e,t){let r=a(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function h(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,i.my)(e,"__sentry_captured__",!0)}catch{}return!1}},43649:(e,t,r)=>{"use strict";r.d(t,{Kk:()=>s,Pj:()=>o});var n=r(1639),i=r(20241);let o=e=>[n.AO,e];function s(e){return{queryKey:o(e.id),queryFn:()=>(0,i.bt)(e)}}},44702:e=>{e.exports={style:{fontFamily:"'aeonik', 'aeonik Fallback'"},className:"__className_bd04df"}},44885:(e,t,r)=>{"use strict";r.d(t,{LO:()=>p,Ub:()=>f,_y:()=>d});var n=r(23798),i=r(21462),o=r(26838),s=r.n(o),a=r(78829),c=r.n(a),u=r(50713),l=r(91788);s().extend(c());let h=(0,i.createContext)({type:"NoOffer"});function d(e){let t=(0,l.pl)(e,u.sR),r=t?s().utc(t):null;return t&&(null==r?void 0:r.isValid())?{type:"Offer",reactivationFlowSeenAt:t}:{type:"NoOffer"}}function p(e){let{children:t,initialContext:r}=e,[o,s]=(0,i.useState)({type:"Loading"});return(0,i.useEffect)(()=>{r||s(d(document.cookie))},[r]),(0,n.jsx)(h.Provider,{value:null!=r?r:o,children:t})}function f(){return(0,i.useContext)(h)}},45076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});let n=r(21462),i=r(55843),o="function"==typeof IntersectionObserver,s=new Map,a=[];function c(e){let{rootRef:t,rootMargin:r,disabled:c}=e,u=c||!o,[l,h]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(u||l)return;let e=d.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!l){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,l,d.current]),[p,l,(0,n.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
3dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45564:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=c(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),l=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},47431:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(71996);let i=n.defaultLocale,o=new Set(n.locales);function s(e,t){if(0===e.length||e.startsWith("//")||/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||!e.startsWith("/"))return e;let r=t&&o.has(t)?t:i,{pathname:n,suffix:s}=function(e){let t=e.indexOf("?"),r=e.indexOf("#"),n=-1;return -1===(n=-1===t?r:-1===r?t:Math.min(t,r))?{pathname:e,suffix:""}:{pathname:e.slice(0,n),suffix:e.slice(n)}}(e),a=function(e){if(!function(e){if(!e.startsWith("/"))return!1;let t=e.split("/")[1];return!!t&&o.has(t)}(e))return e;let[,,...t]=e.split("/");return 0===t.length?"/":"/".concat(t.join("/"))}(n);if(r===i)return"".concat(a).concat(s);let c="/"===a?"/".concat(r):"/".concat(r).concat(a);return"".concat(c).concat(s)}},48015:(e,t,r)=>{e.exports=r(62679)},50713:(e,t,r)=>{"use strict";r.d(t,{ci:()=>i,sR:()=>n});let n="mimo-reactivation-flow-seen",i=24},53032:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>s,Yz:()=>d,Z9:()=>a,pq:()=>c});var n=r(95816),i=r(39766),o=r(14913);let s=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in o.O))return e();let t=o.O.console,r={},n=Object.keys(a);n.forEach(e=>{let n=a[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function u(){return h().enabled}function l(e,...t){i.T&&u()&&c(()=>{o.O.console[e](`Sentry Logger [${e}]:`,...t)})}function h(){return i.T?(0,n.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let d={enable:function(){h().enabled=!0},disable:function(){h().enabled=!1},isEnabled:u,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},53375:(e,t,r)=>{"use strict";let n,i;r.d(t,{k3:()=>c,lu:()=>s,zf:()=>a});var o=r(14913);function s(){return Date.now()/1e3}function a(){return(n??(n=function(){let{performance:e}=o.O;if(!e?.now||!e.timeOrigin)return s;let t=e.timeOrigin;return()=>(t+e.now())/1e3}()))()}function c(){return i||(i=function(){let{performance:e}=o.O;if(!e?.now)return[void 0,"none"];let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing?.navigationStart,s="number"==typeof i?Math.abs(i+t-r):36e5;if(n<36e5||s<36e5)if(n<=s)return[e.timeOrigin,"timeOrigin"];else return[i,"navigationStart"];return[r,"dateNow"]}()),i[0]}},53477:(e,t,r)=>{"use strict";let n,i,o,s;r.d(t,{li:()=>I,mG:()=>k});var a=r(61737),c=r(84996),u=r(39766),l=r(53032),h=r(97270),d=r(86998),p=r(1164),f=r(27596),m=r(9898),g=r(38387);function y(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:h,propagationContext:d,transactionName:p,span:f}=t;v(e,"extra",r),v(e,"tags",n),v(e,"user",i),v(e,"contexts",o),e.sdkProcessingMetadata=(0,m.h)(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),h.length&&(e.attachments=[...e.attachments,...h]
3),e.propagationContext={...e.propagationContext,...d}}function v(e,t,r){e[t]=(0,m.h)(e[t],r,1)}var _=r(14913),b=r(43590),w=r(88929),S=r(31823),E=r(53375);function k(e,t,r,m,v,k){var I,C,T,x,A,O;let{normalizeDepth:R=3,normalizeMaxBreadth:P=1e3}=e,M={...t,event_id:t.event_id||r.event_id||(0,b.eJ)(),timestamp:t.timestamp||(0,E.lu)()},N=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o}=t;e.environment=e.environment||r||a.U,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&o&&(s.url=(0,S.xv)(s.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,S.xv)(e.value,o))})})(M,e),I=M,(C=N).length>0&&(I.sdk=I.sdk||{},I.sdk.integrations=[...I.sdk.integrations||[],...C]),v&&v.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=_.O._sentryDebugIds,r=_.O._debugIds;if(!t&&!r)return{};let a=t?Object.keys(t):[],c=r?Object.keys(r):[];if(s&&a.length===i&&c.length===o)return s;i=a.length,o=c.length,s={},n||(n={});let u=(t,r)=>{for(let i of t){let t=r[i],o=n?.[i];if(o&&s&&t)s[o[0]]=t,n&&(n[i]=[o[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let o=r[e],a=o?.filename;if(a&&s&&n){s[a]=t,n[i]=[a,t];break}}}}};return t&&u(a,t),r&&u(c,r),s}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(M,e.stackParser);let L=function(e,t){if(!t)return e;let r=e?e.clone():new p.H;return r.update(t),r}(m,r.captureContext);r.mechanism&&(0,b.M6)(M,r.mechanism);let D=v?v.getEventProcessors():[],U=(0,c.m6)().getScopeData();k&&y(U,k.getScopeData()),L&&y(U,L.getScopeData());let j=[...r.attachments||[],...U.attachments];j.length&&(r.attachments=j);let{fingerprint:F,span:B,breadcrumbs:H,sdkProcessingMetadata:z}=U;return function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,transactionName:a}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(M,U),B&&function(e,t){e.contexts={trace:(0,g.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,f.k1)(t),...e.sdkProcessingMetadata};let r=(0,g.zU)(t),n=(0,g.et)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(M,B),T=M,x=F,T.fingerprint=T.fingerprint?Array.isArray(T.fingerprint)?T.fingerprint:[T.fingerprint]:[],x&&(T.fingerprint=T.fingerprint.concat(x)),T.fingerprint.length||delete T.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(M,H),A=M,O=z,A.sdkProcessingMetadata={...A.sdkProcessingMetadata,...O},(function(e,t,r,n=0){try{let i=function e(t,r,n,i){let o=n[i];if(!t||!o)return t;let s=o({...t},r);return(u.T&&null===s&&l.Yz.log(`Event processor "${o.id||"?"}" dropped event`),(0,h.Qg)(s))?s.then(t=>e(t,r,n,i+1)):e(s,r,n,i+1)}(t,r,e,n);return(0,h.Qg)(i)?i:(0,d.XW)(i)}catch(e){return(0,d.xg)(e)}})([...D,...U.eventProcessors],M,r).then(e=>(e&&function(e){let t={};if(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)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof R&&R>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,w.S8)(e.data,t,r)}}))},...e.user&&{user:(0,w.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,w.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,w.S8)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,w.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,w.S8)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,w.S8)(e.contexts.flags,3,r)),n}(e,R,P):e)}function I(e){if(e){var t;return(t=e)instanceof p.H||"function"==typeof t||Object.keys(e).some(e=>C.includes(e))?{captureContext:e}:e}}let C=["user","level","extra","contexts","tags","fingerprint","propagationContext"]}
3,53801:(e,t,r)=>{"use strict";let n,i,o,s,a,c,u,l,h,d,p,f,m;var g=r(14913),y=r(53032),v=r(19194);function _(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:v.M})),version:v.M}),e._metadata=i}var b=r(38831),w=r(39766);let S=[];function E(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function k(e,t,r){if(r[t.name]){w.T&&y.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,S.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),S.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}w.T&&y.Yz.log(`Integration installed: ${t.name}`)}function I(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var C=r(43590),T=r(31823);let x=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/];function A(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:x],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function O(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return w.T&&y.Yz.error(`Cannot extract url for event ${(0,C.$X)(e)}`),null}}var R=r(84996),P=r(74957);let M=new WeakMap;var N=r(6759);function L(e,t){let r=(0,N.RV)(e),n=(0,N.RV)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function D(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function U(e){return e.exception?.values?.[0]}var j=r(61737),F=r(27596),B=r(99423),H=r(95816),z=r(88929);function $(e,t=[]){return[e,t]}function q(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function V(e){let t=(0,H.Se)(g.O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let G={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function W(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function Y(e){y.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function K(e,t){if(!t?.length||!e.description)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if((0,T._c)(e.description,n))return w.T&&Y(e),!0;continue}if(!n.name&&!n.op)continue;let t=!n.name||(0,T._c)(e.description,n.name),i=!n.op||e.op&&(0,T._c)(e.op,n.op);if(t&&i)return w.T&&Y(e),!0}return!1}var J=r(38387);function X(e,t){var r;let n=t??(r=e,Q().get(r))??[];if(0===n.length)return;let i=e.getOptions(),o=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,B.SB)(n)),$(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(n,i._metadata,i.tunnel,e.getDsn());Q().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Q(){return(0,H.BY)("clientToLogBufferMap",()=>new WeakMap)}function Z(e,t){var r;let n=t??(r=e,ee().get(r))??[];if(0===n.length)return;let i=e.getOptions(),o=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,B.SB)(n)),$(i,[[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]])}(n,i._metadata,i.tunnel,e.getDsn());ee().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function ee(){return(0,H.BY)("clientToMetricBufferMap",()=>new WeakMap)}var et=r(6172),er=r(86998);let en=Symbol.for("SentryBufferFullError");function ei(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,er.xg)(en);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,er.XW)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>setTimeout(()=>t(!1),e))]):r}}}var eo=r(53375),es=r(97270),ea=r(9898),ec=r(88453),eu=r(53477),el=r(6941);let eh="Not capturing exception because it's already been captured.",ed="Discarded session because of missing or non-string release",ep=Symbol.for("SentryInternalError"),ef=Symbol.for("SentryDoNotSendEventError");function em(e){return{message:e,[ep]:!0}}function eg(e){return{message:e,[ef]:!0}}function ey(e){return!!e&&"object"==typeof e&&ep in e}function ev(e){return!!e&&"object"==typeof e&&ef in e}function e_(e,t,r,n,i){let o,s=0,a=!1;e.on(r,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,t=>{(s+=n(t))>=8e5?i(e):a||(a=!0,o=setTimeout(()=>{i(e)},5e3))}),e.on("flush",()=>{i(e)})}class eb{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ei(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,B.AD)(e.dsn):w.T&&y.Yz.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t,r){return t||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&e_(this,"afterCaptureLog","flushLogs",eI,X),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&e_(this,"afterCaptureMetric","flushMetrics",ek,Z)}captureException(e,t,r){let n=(0,C.eJ)();if((0,C.GR)(e))return w.T&&y.Yz.log(eh),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,C.eJ)(),...r},o=(0,es.NF)(e)?e:String(e),s=(0,es.sO)(e),a=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>a.then(e=>this._captureEvent(e,i,n)),s?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,C.eJ)();if(t?.originalException&&(0,C.GR)(t.originalException))return w.T&&y.Yz.log(eh),n;let i={event_id:n,...t},o=e.sdkProcessingMetadata||{}
3,s=o.capturedSpanScope,a=o.capturedSpanIsolationScope,c=ew(e.type);return this._process(()=>this._captureEvent(e,i,s||r,a),c),i.event_id}captureSession(e){this.sendSession(e),(0,et.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];k(this,e,this._integrations),t||E(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){let i=W(r),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk);let s=function(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,B.SB)(n)},...i&&{trace:i}}}(e,i,n,t);return delete e.sdkProcessingMetadata,$(s,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?V(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=j.U}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){w.T&&y.Yz.warn(ed);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){w.T&&y.Yz.warn(ed);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=W(r);return $({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,B.SB)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;w.T&&y.Yz.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return w.T&&y.Yz.error("Error while sending envelope:",e),{}}return w.T&&y.Yz.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&k(e,t,r)}),r}(this,e),E(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&((0,et.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),o=Object.keys(this._integrations);
3return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,eu.mG)(i,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,R.vn)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,F.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,R.o5)(),n=(0,R.rm)()){return w.T&&eS(e)&&y.Yz.log(`Captured error event \`${I(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{w.T&&(ev(e)?y.Yz.log(e.message):ey(e)?y.Yz.warn(e.message):y.Yz.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:o}=i,s=eE(e),a=eS(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===o?void 0:(0,ec.i)(o);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,er.xg)(eg(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let h=ew(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",h),eg("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,es.Qg)(e))return e.then(e=>{if(!(0,es.Qd)(e)&&null!==e)throw em(r);return e},e=>{throw em(`${t} rejected with ${e}`)});if(!(0,es.Qd)(e)&&null!==e)throw em(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s,ignoreSpans:a}=t,c=r;if(eS(c)&&i)return i(c,n);if(eE(c)){if(s||a){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[el.E1],exclusive_time:s?.[el.jG],measurements:e.measurements,is_segment:!0}}(c);if(a?.length&&K(t,a))return null;if(s){let e=s(t);if(e)c=(0,ea.h)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[el.E1]:e.profile_id},...e.exclusive_time&&{[el.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,J.xl)()}if(c.spans){let t=[],r=c.spans;for(let e of r){if(a?.length&&K(e,a)){let t=e.parent_span_id,n=e.span_id;if(t)for(let e of r)e.parent_span_id===n&&(e.parent_span_id=t);continue}if(s){let r=s(e);r?t.push(r):((0,J.xl)(),t.push(e))}else t.push(e)}let n=c.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),c.spans=t}}if(o){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,n)}}return c}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",h),s){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eg(`${u} returned \`null\`, will not send event.`)}let o=r.getSession()||n.getSession();if(a&&o&&this._updateSessionFromEvent(o,i),s){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let c=i.transaction_info;return s&&c&&i.transaction!==e.transaction&&(i.transaction_info={...c,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(ev(e)||ey(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),em(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 4Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===en&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;w.T&&y.Yz.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){w.T&&y.Yz.log("No outcomes to send");return}if(!this._dsn){w.T&&y.Yz.log("No dsn provided, will not send outcomes");return}w.T&&y.Yz.log("Sending outcomes:",t);let r=$((e=this._options.tunnel&&(0,B.SB)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eo.lu)(),discarded_events:t}]]);this.sendEnvelope(r)}}function ew(e){return"replay_event"===e?"replay":e||"error"}function eS(e){return void 0===e.type}function eE(e){return"transaction"===e.type}function ek(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+eC(e.attributes)}function eI(e){let t=0;return e.message&&(t+=2*e.message.length),t+eC(e.attributes)}function eC(e){if(!e)return 0;let t=0;
4return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*eT(e[0]):(0,es.sO)(e)?t+=eT(e):t+=100}),t}function eT(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function ex(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function eA(e,t){let r=eR(e,t),n={type:function(e){let t=e?.name;return!t&&eM(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e?.message;return eM(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eO(e,t){return{exception:{values:[eA(e,t)]}}}function eR(e,t){var r,n;let i=t.stacktrace||t.stack||"",o=(r=t)&&eP.test(r.message)?1:0,s="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,o,s)}catch{}return[]}let eP=/Minified React error #\d+;/i;function eM(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eN(e,t,r,n,i){let o;if((0,es.T2)(t)&&t.error)return eO(e,t.error);if((0,es.BD)(t)||(0,es.W6)(t)){if("stack"in t)o=eO(e,t);else{let i=t.name||((0,es.BD)(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;o=eL(e,s,r,n),(0,C.gO)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,es.bJ)(t)?eO(e,t):((0,es.Qd)(t)||(0,es.xH)(t)?o=function(e,t,r,n){let i=(0,R.KU)(),o=i?.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),a={__serialized__:(0,z.cd)(t,o)};if(s)return{exception:{values:[eA(e,s)]},extra:a};let c={exception:{values:[{type:(0,es.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,P.HF)(e),n=t?"promise rejection":"exception";if((0,es.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,es.xH)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=eR(e,r);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,r,i):(o=eL(e,t,r,n),(0,C.gO)(o,`${t}`,void 0)),(0,C.M6)(o,{synthetic:!0}),o)}function eL(e,t,r,n){let i={};if(n&&r){let n=eR(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,C.M6)(i,{synthetic:!0})}if((0,es.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var eD=r(70326);let eU=g.O,ej=0;function eF(e,t={}){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,P.sp)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>eF(e,t));return e.apply(this,n)}catch(e){throw ej++,setTimeout(()=>{ej--}),(0,R.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,C.gO)(e,void 0,void 0),(0,C.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,b.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,P.pO)(r,e),(0,P.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function eB(){let e=(0,eD.$N)(),{referrer:t}=eU.document||{},{userAgent:r}=eU.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class eH extends eb{constructor(e){var t;let r=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eU.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});_(r,"browser",["browser"],eU.SENTRY_SDK_SOURCE||"npm"),r._metadata?.sdk&&(r._metadata.sdk.settings={infer_ip:r.sendDefaultPii?"auto":"never",...r._metadata.sdk.settings}),super(r);let{sendDefaultPii:n,sendClientReports:i,enableLogs:o,_experiments:s,enableMetrics:a}=this._options,c=a??s?.enableMetrics??!0;eU.document&&(i||o||c)&&eU.document.addEventListener("visibilitychange",()=>{"hidden"===eU.document.visibilityState&&(i&&this._flushOutcomes(),o&&X(this),c&&Z(this))}),n&&this.on("beforeSendSession",ex)}eventFromException(e,t){return function(e,t,r,n){let i=eN(e,t,r?.syntheticException||void 0,n);return(0,C.M6)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,er.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=eL(e,t,n?.syntheticException||void 0,i);return o.level=r,n?.event_id&&(o.event_id=n.event_id),(0,er.XW)(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let ez={},e$={};function eq(e,t){ez[e]=ez[e]||[],ez[e].push(t)}function eV(e,t){if(!e$[e]){e$[e]=!0;try{t()}catch(t){w.T&&y.Yz.error(`Error while instrumenting ${e}`,t)}}}function eG(e,t){let r=e&&ez[e];if(r)for(let n of r)try{n(t)}catch(t){w.T&&y.Yz.error(`Error while triggering instrumentation handler. 5Type: ${e} 6Name: ${(0,N.qQ)(n)} 7Error:`,t)}}
7function eW(){"console"in g.O&&y.Ow.forEach(function(e){e in g.O.console&&(0,P.GS)(g.O.console,e,function(t){return y.Z9[e]=t,function(...t){eG("console",{args:t,level:e});let r=y.Z9[e];r?.apply(g.O.console,t)}})})}let eY=g.O;function eK(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function eJ(e,t){let r="fetch";eq(r,e),eV(r,()=>eX(void 0,t))}function eX(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eY))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(eK(eY.fetch))return!0;let e=!1,t=eY.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=eK(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){w.T&&y.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,P.GS)(g.O,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:e1(t),method:e0(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:e1(t),method:e0(t,"method")?String(t.method).toUpperCase():"GET"}}(r),s={args:r,fetchData:{method:i,url:o},startTimestamp:1e3*(0,eo.zf)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,es.ks)(t))return new Headers(t.headers)}catch{}}(r)};return e||eG("fetch",{...s}),t.apply(g.O,r).then(async t=>(e?e(t):eG("fetch",{...s,endTimestamp:1e3*(0,eo.zf)(),response:t}),t),e=>{if(eG("fetch",{...s,endTimestamp:1e3*(0,eo.zf)(),error:e}),(0,es.bJ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,P.my)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(s.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function eQ(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function eZ(e){let t;try{t=e.clone()}catch{return}eQ(t,()=>{eG("fetch-body-resolved",{endTimestamp:1e3*(0,eo.zf)(),response:e})})}function e0(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e1(e){return"string"==typeof e?e:e?e0(e,"url")?e.url:e.toString?e.toString():"":""}function e2(e,t){let r=(0,R.KU)(),n=(0,R.rm)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:(0,eo.lu)(),...e},a=i?(0,y.pq)(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,o))}function e3(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function e6(e){return"isRelative"in e}function e8(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function e4(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function e5(e){return e.split(/[?#]/,1)[0]}let e9=g.O;function e7(){if(!e9.document)return;let e=eG.bind(null,"dom"),t=te(e,!0);e9.document.addEventListener("click",t,!1),e9.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=e9[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,P.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=te(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,P.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function te(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let a=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!a?.tagName||"INPUT"!==a.tagName&&"TEXTAREA"!==a.tagName&&!a.isContentEditable&&1))return;(0,P.my)(r,"_sentryCaptured",!0),a&&!a._sentryId&&(0,P.my)(a,"_sentryId",(0,C.eJ)());let c="keypress"===r.type?"input":r.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(r)&&(e({event:r,name:c,global:t}),o=r.type,s=a?a._sentryId:void 0),clearTimeout(i),i=e9.setTimeout(()=>{s=void 0,o=void 0},1e3)}}let tt="__sentry_xhr_v3__";function tr(e){eq("xhr",e),eV("xhr",tn)}function tn(){if(!e9.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eo.zf)(),o=(0,es.Kg)(r[0])?r[0].toUpperCase():void 0,s=function(e){if((0,es.Kg)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!s)return e.apply(t,r);t[tt]={method:o,url:s,request_headers:{}}
7,"POST"===o&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[tt];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}eG("xhr",{endTimestamp:1e3*(0,eo.zf)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(a(),e.apply(t,r))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,o=t[tt];return o&&(0,es.Kg)(n)&&(0,es.Kg)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[tt];return n&&(void 0!==r[0]&&(n.body=r[0]),eG("xhr",{startTimestamp:1e3*(0,eo.zf)(),xhr:t})),e.apply(t,r)}})}function ti(e){let t="history";eq(t,e),eV(t,to)}function to(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=a,i=function(e){try{return new URL(e,e9.location.origin).toString()}catch{return e}}(String(r));if(a=i,n===i)return e.apply(this,t);eG("history",{from:n,to:i})}return e.apply(this,t)}}e9.addEventListener("popstate",()=>{let e=e9.location.href,t=a;a=e,t!==e&&eG("history",{from:t,to:e})}),"history"in eY&&eY.history&&((0,P.GS)(e9.history,"pushState",e),(0,P.GS)(e9.history,"replaceState",e))}let ts="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ta=["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"];function tc(e){return function(...t){let r=t[0];return t[0]=eF(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,N.qQ)(e)}`}}),e.apply(this,t)}}function tu(e){return function(t){return e.apply(this,[eF(t,{mechanism:{data:{handler:(0,N.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tl(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,P.GS)(r,e,function(t){let r={mechanism:{data:{handler:(0,N.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,P.sp)(t);return n&&(r.mechanism.data.handler=(0,N.qQ)(n)),eF(t,r)})}),e.apply(this,t)}}let th=null;function td(e){let t="error";eq(t,e),eV(t,tp)}function tp(){th=g.O.onerror,g.O.onerror=function(e,t,r,n,i){return eG("error",{column:n,error:i,line:r,msg:e,url:t}),!!th&&th.apply(this,arguments)},g.O.onerror.__SENTRY_INSTRUMENTED__=!0}let tf=null;function tm(e){let t="unhandledrejection";eq(t,e),eV(t,tg)}function tg(){tf=g.O.onunhandledrejection,g.O.onunhandledrejection=function(e){return eG("unhandledrejection",e),!tf||tf.apply(this,arguments)},g.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ty(e){ts&&y.Yz.log(`Global Handler attached: ${e}`)}function tv(){let e=(0,R.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function t_(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function tb(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function tw(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?N.yF:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tk=/\((\S*)(?::(\d+))(?::(\d+))\)/,tI=/at (.+?) ?\(data:(.+?),/,tC=[30,e=>{let t=e.match(tI);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=tS.exec(e);if(r){let[,e,t,n]=r;return tw(e,N.yF,+t,+n)}let n=tE.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tk.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=tR(n[1]||N.yF,n[2]);return tw(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tT=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tx=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tA=[50,e=>{let t=tT.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tx.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||N.yF;return[r,e]=tR(r,e),tw(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tO=(0,N.gd)(tC,tA),tR=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:N.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tP="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,tM={};function tN(e,t=function(e){let t=tM[e];if(t)return t;let r=e9[e];if(eK(r))return tM[e]=r.bind(e9);let n=e9.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){tP&&y.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?tM[e]=r.bind(e9):r}("fetch")){let r=0,n=0;async function i(i){let o=i.body.length;r+=o,n++;
7let s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw tM.fetch=void 0,e}finally{r-=o,n--}}return function(e,t,r=ei(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(q(i,(t,r)=>{let i=G[r];!function(e,t,r=Date.now()){return(e[t]||e.all||0)>r}(n,i)?o.push(t):e.recordDroppedEvent("ratelimit_backoff",i)}),0===o.length)return Promise.resolve({});let s=$(i[0],o),a=t=>{q(s,(r,n)=>{e.recordDroppedEvent(t,G[n])})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[V(n),e]:n.push("string"==typeof e?V(e):e)}for(let e of r){let[t,r]=e;if(i(` 8${JSON.stringify(t)} 9`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,z.S8)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&w.T&&y.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r?.["x-sentry-rate-limits"],s=r?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}(n,e),e),e=>{throw a("network_error"),w.T&&y.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===en)return w.T&&y.Yz.error("Skipped sending event because buffer is full."),a("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}(e,i,ei(e.bufferSize||40))}function tL(e){let t;return[((e={})=>({...((e={})=>{let t;return{name:"EventFilters",setup(r){t=A(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=A(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,T.Xr)(r,t)}(e,t.ignoreTransactions))return w.T&&y.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 10Event: ${(0,C.$X)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&I(r).some(e=>(0,T.Xr)(e,n)))return w.T&&y.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 11Event: ${(0,C.$X)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return w.T&&y.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace. 12Event: ${(0,C.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=O(e);return!!r&&(0,T.Xr)(r,t)}(e,t.denyUrls))return w.T&&y.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option. 13Event: ${(0,C.$X)(e)}. 14Url: ${O(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=O(e);return!r||(0,T.Xr)(r,t)}(e,t.allowUrls))return w.T&&y.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option. 15Event: ${(0,C.$X)(e)}. 16Url: ${O(e)}`),!0}return!1}(r,t)?r:null)}})(e),name:"InboundFilters"}))(),{name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,P.sp)(this),r=M.has((0,R.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){M.set(e,!0)}},((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,P.GS)(eU,"setTimeout",tc),t.setInterval&&(0,P.GS)(eU,"setInterval",tc),t.requestAnimationFrame&&(0,P.GS)(eU,"requestAnimationFrame",tu),t.XMLHttpRequest&&"XMLHttpRequest"in eU&&(0,P.GS)(XMLHttpRequest.prototype,"send",tl);let e=t.eventTarget;
16e&&(Array.isArray(e)?e:ta).forEach(e=>(function(e,t){let r=eU[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,P.GS)(r,"addEventListener",function(r){return function(n,i,o){var s,a,c,u;try{s=i,"function"==typeof s.handleEvent&&(i.handleEvent=eF(i.handleEvent,{mechanism:{data:{handler:(0,N.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&(a=this,c=n,u=i,a&&"object"==typeof a&&"removeEventListener"in a&&"function"==typeof a.removeEventListener&&a.removeEventListener(c,u)),r.apply(this,[n,eF(i,{mechanism:{data:{handler:(0,N.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,P.GS)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}}))})(e,t))}}})(),((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,o,s,a,c;t.console&&function(e){let t="console";eq(t,e),eV(t,eW)}((r=e,function(e){var t;if((0,R.KU)()!==r)return;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log",message:(0,T.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else n.message=`Assertion failed: ${(0,T.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1);e2(n,{input:e.args,level:e.level})})),t.dom&&(eq("dom",(n=e,i=t.dom,function(e){let t,r;if((0,R.KU)()!==n)return;let o="object"==typeof i?i.serializeAttribute:void 0,s="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;s&&s>1024&&(ts&&y.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{var a;let n=e.event,i=(a=n)&&a.target?n.target:n;t=(0,eD.Hd)(i,{keyAttrs:o,maxStringLength:s}),r=(0,eD.xE)(i)}catch{t="<unknown>"}if(0===t.length)return;let c={category:`ui.${e.name}`,message:t};r&&(c.data={"ui.component_name":r}),e2(c,{event:e.event,name:e.name,global:e.global})})),eV("dom",e7)),t.xhr&&tr((o=e,function(e){if((0,R.KU)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[tt];if(!t||!r||!n)return;let{method:i,url:s,status_code:a,body:c}=n,u={xhr:e.xhr,input:c,startTimestamp:t,endTimestamp:r},l={category:"xhr",data:{method:i,url:s,status_code:a},type:"http",level:e3(a)};o.emit("beforeOutgoingRequestBreadcrumb",l,u),e2(l,u)})),t.fetch&&eJ((s=e,function(e){if((0,R.KU)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:n,level:"error",type:"http"};s.emit("beforeOutgoingRequestBreadcrumb",o,i),e2(o,i)}else{let n=e.response,i={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let o={input:e.args,response:n,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:e3(i.status_code)};s.emit("beforeOutgoingRequestBreadcrumb",a,o),e2(a,o)}})),t.history&&ti((a=e,function(e){if((0,R.KU)()!==a)return;let t=e.from,r=e.to,n=e4(eU.location.href),i=t?e4(t):void 0,o=e4(r);i?.path||(i=n),n.protocol===o.protocol&&n.host===o.host&&(r=o.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),e2({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(c=e,function(e){(0,R.KU)()===c&&e2({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,C.$X)(e)},{event:e})}))}}})(),((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,td(e=>{let{stackParser:t,attachStacktrace:n}=tv();if((0,R.KU)()!==r||ej>0)return;let{msg:i,url:o,line:s,column:a,error:c}=e,u=function(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=function(e){if((0,es.Kg)(e)&&0!==e.length){if(e.startsWith("data:")){let t=e.match(/^data:([^;
16]+)/),r=t?t[1]:"text/javascript",n=e.includes("base64,");return`<data:${r}${n?",base64":""}>`}return e}}(t)??(0,eD.$N)();return 0===c.length&&c.push({colno:n,filename:u,function:N.yF,in_app:!0,lineno:r}),e}(eN(t,c||i,void 0,n,!1),o,s,a);u.level="error",(0,b.r)(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),ty("onerror")),t.onunhandledrejection&&(n=e,tm(e=>{var t;let{stackParser:r,attachStacktrace:i}=tv();if((0,R.KU)()!==n||ej>0)return;let o=function(e){if((0,es.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{}return e}(e),s=(0,es.sO)(o)?(t=o,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):eN(r,o,void 0,i,!0);s.level="error",(0,b.r)(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),ty("onunhandledrejection"))}}})(),((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,o){if(!i.exception?.values||!o||!(0,es.tH)(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=function e(t,r,n,i,o,s,a,c){if(s.length>=n+1)return s;let u=[...s];if((0,es.tH)(i[o],Error)){t_(a,c);let s=t(r,i[o]),l=u.length;tb(s,o,l,c),u=e(t,r,n,i[o],o,[s,...u],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if((0,es.tH)(i,Error)){t_(a,c);let l=t(r,i),h=u.length;tb(l,`errors[${s}]`,h,c),u=e(t,r,n,i,o,[l,...u],l,h)}}),u}(e,t,n,o.originalException,r,i.exception.values,s,0))}(eA,i.getOptions().stackParser,r,t,e,n)}}})(),{name:"Dedupe",processEvent(e){if(e.type)return e;try{var r,n;if(r=e,(n=t)&&(function(e,t){let r=e.message,n=t.message;return(!!r||!!n)&&(!r||!!n)&&(!!r||!n)&&r===n&&!!D(e,t)&&!!L(e,t)&&!0}(r,n)||function(e,t){let r=U(t),n=U(e);return!!r&&!!n&&r.type===n.type&&r.value===n.value&&!!D(e,t)&&!!L(e,t)}(r,n)))return w.T&&y.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}},{name:"HttpContext",preprocessEvent(e){if(!eU.navigator&&!eU.location&&!eU.document)return;let t=eB(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}},{name:"BrowserSession",setupOnce(){if(void 0===eU.document){ts&&y.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,b.J0)({ignoreDuration:!0}),(0,b.J5)(),ti(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,b.J0)({ignoreDuration:!0}),(0,b.J5)())})}}]}var tD=r(21462),tU=r(2272),tj=r(65952),tF=r(32109),tB=r(9887);class tH{constructor(e={}){this._traceId=e.traceId||(0,tB.e)(),this._spanId=e.spanId||(0,tB.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:J.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function tz(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[el.Sn],i=r[el.xc];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}var t$=r(13748);class tq{constructor(e={}){this._traceId=e.traceId||(0,tB.e)(),this._spanId=e.spanId||(0,tB.Z)(),this._startTime=e.startTimestamp||(0,eo.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[el.JD]:"manual",[el.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?J.aO:J.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,J.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(el.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,J.cI)(e),function(e){if(!w.T)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,J.et)(e),{spanId:n}=e.spanContext(),i=(0,J.zU)(e)===e,o=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;y.Yz.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[el.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,J.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[el.JD],profile_id:this._attributes[el.E1],exclusive_time:this._attributes[el.jG],measurements:tz(this._events),is_segment:this._isStandaloneSpan&&(0,J.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,J.zU)(this).spanContext().spanId:void 0,links:(0,J.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){w.T&&y.Yz.log("[Tracing] Adding an event to span:",e);let n=tV(t)?t:r||(0,eo.zf)(),i=tV(t)?{}:t||{},o={name:e,time:(0,J.cI)(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,R.KU)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,J.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,R.KU)();if(!t)return;let r=e[1];if(!r||0===r.length)return t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){let r=(0,F.k1)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,B.SB)(n)}},{beforeSendSpan:s,ignoreSpans:a}=t?.getOptions()||{},c=a?.length?e.filter(e=>!K((0,J.et)(e),a)):e,u=e.length-c.length;u&&t?.recordDroppedEvent("before_send","span",u);let l=s?e=>{let t=(0,J.et)(e),r=s(t);return r||((0,J.xl)(),t)}:J.et,h=[];for(let e of c){let t=l(e);t&&h.push([{type:"span"},t])}return $(o,h)}([this],e)):(w.T&&y.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,t$.L)(this).scope||(0,R.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!tG((0,J.et)(this)))return;this._name||(w.T&&y.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,t$.L)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,J.xO)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof tq&&t.isStandaloneSpan())}).map(e=>(0,J.et)(e)).filter(tG),i=this._attributes[el.i_];
16delete this._attributes[el.Le],n.forEach(e=>{delete e.data[el.Le]});let o={contexts:{trace:(0,J.Ck)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,F.k1)(this)},request:r,...i&&{transaction_info:{source:i}}},s=tz(this._events);return s&&Object.keys(s).length&&(w.T&&y.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),o.measurements=s),o}}function tV(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tG(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var tW=r(11625),tY=r(64441);let tK="__SENTRY_SUPPRESS_TRACING__";function tJ(e){let t=t0();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=tZ(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,R.v4)(e.scope,t):void 0!==i?e=>tX(i,e):e=>e())(()=>{let t=(0,R.o5)(),o=t2(t,i);return e.onlyIfParent&&!o?new tH:tQ({parentSpan:o,spanArguments:r,forceTransaction:n,scope:t})})}function tX(e,t){let r=t0();return r.withActiveSpan?r.withActiveSpan(e,t):(0,R.v4)(r=>((0,tF.r)(r,e||void 0),t(r)))}function tQ({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,tj.f)()){let n=new tH;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,F.k1)(n)};(0,F.LZ)(n,e)}return n}let o=(0,R.rm)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[tK]&&(0,J.pK)(e),s=o?new tq({...r,parentSpanId:n,traceId:i,sampled:o}):new tH({traceId:i});(0,J.Hu)(e,s);let a=(0,R.KU)();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}(e,n,t),(0,J.Hu)(e,i);else if(e){let r=(0,F.k1)(e),{traceId:o,spanId:s}=e.spanContext(),a=(0,J.pK)(e);i=t1({traceId:o,parentSpanId:s,...t},n,a),(0,F.LZ)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:s,sampled:a}={...o.getPropagationContext(),...n.getPropagationContext()};i=t1({traceId:e,parentSpanId:s,...t},n,a),r&&(0,F.LZ)(i,r)}return!function(e){if(!w.T)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,J.et)(e),{spanId:i}=e.spanContext(),o=(0,J.pK)(e),s=(0,J.zU)(e),a=s===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!a){let{op:e,description:t}=(0,J.et)(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}y.Yz.log(`${c} 17 ${u.join("\n ")}`)}(i),(0,t$.d)(i,n,o),i}function tZ(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,J.cI)(e.startTime),delete r.startTime,r}return t}function t0(){let e=(0,H.EU)();return(0,tY.h)(e)}function t1(e,t,r){let n=(0,R.KU)(),i=n?.getOptions()||{},{name:o=""}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};n?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??r,c=s.spanAttributes,u=t.getPropagationContext(),[l,h,d]=t.getScopeData().sdkProcessingMetadata[tK]?[!1]:function(e,t,r){let n,i;if(!(0,tj.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let o=(0,ec.i)(n);if(void 0===o)return w.T&&y.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!o)return w.T&&y.Yz.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,i];let s=r<o;return!s&&w.T&&y.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[s,o,i]}(i,{name:o,parentSampled:a,attributes:c,parentSampleRate:(0,ec.i)(u.dsc?.sample_rate)},u.sampleRand),p=new tq({...e,attributes:{[el.i_]:"custom",[el.sy]:void 0!==h&&d?h:void 0,...c},sampled:l});return!l&&n&&(w.T&&y.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",p),p}function t2(e,t){if(t)return t;if(null===t)return;let r=(0,tF.f)(e);if(!r)return;let n=(0,R.KU)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,J.zU)(r):r}let t3={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function t6(e,t={}){let r,n=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:c=t3.idleTimeout,finalTimeout:u=t3.finalTimeout,childSpanTimeout:l=t3.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:d=!0}=t,p=(0,R.KU)();if(!p||!(0,tj.f)()){let e=new tH,t={sample_rate:"0",sampled:"false",...(0,F.k1)(e)};return(0,F.LZ)(e,t),e}let f=(0,R.o5)(),m=(0,J.Bk)(),g=function(e){let t=tJ(e);return(0,tF.r)((0,R.o5)(),t),w.T&&y.Yz.log("[Tracing] Started span is an i
17dle span"),t}(e);function v(){r&&(clearTimeout(r),r=void 0)}function _(e){v(),r=setTimeout(()=>{!i&&0===n.size&&s&&(o="idleTimeout",g.end(e))},c)}function b(e){r=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",g.end(e))},l)}function S(e){i=!0,n.clear(),a.forEach(e=>e()),(0,tF.r)(f,m);let t=(0,J.et)(g),{start_timestamp:r}=t;if(!r)return;t.data[el.fs]||g.setAttribute(el.fs,o);let s=t.status;s&&"unknown"!==s||g.setStatus({code:tW.F3}),y.Yz.log(`[Tracing] Idle span "${t.op}" finished`);let l=(0,J.xO)(g).filter(e=>e!==g),h=0;l.forEach(t=>{t.isRecording()&&(t.setStatus({code:tW.TJ,message:"cancelled"}),t.end(e),w.T&&y.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,J.et)(t),i=n<=e,o=r-n<=(u+c)/1e3;if(w.T){let e=JSON.stringify(t,void 0,2);i?o||y.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):y.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,J.VS)(g,t),h++)}),h>0&&g.setAttribute("sentry.idle_span_discarded_spans",h)}return g.end=new Proxy(g.end,{apply(e,t,r){if(h&&h(g),t instanceof tH)return;let[n,...i]=r,o=n||(0,eo.zf)(),s=(0,J.cI)(o),a=(0,J.xO)(g).filter(e=>e!==g),c=(0,J.et)(g);if(!a.length||!d)return S(s),Reflect.apply(e,t,[s,...i]);let l=p.getOptions().ignoreSpans,f=a?.reduce((e,t)=>{let r=(0,J.et)(t);return!r.timestamp||l&&K(r,l)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=c.start_timestamp,y=Math.min(m?m+u/1e3:1/0,Math.max(m||-1/0,Math.min(s,f||1/0)));return S(y),Reflect.apply(e,t,[y,...i])}}),a.push(p.on("spanStart",e=>{var t;!(i||e===g||(0,J.et)(e).timestamp||e instanceof tq&&e.isStandaloneSpan())&&(0,J.xO)(g).includes(e)&&(t=e.spanContext().spanId,v(),n.set(t,!0),b((0,eo.zf)()+l/1e3))})),a.push(p.on("spanEnd",e=>{if(!i){var t;t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&_((0,eo.zf)()+c/1e3)}})),a.push(p.on("idleSpanEnableAutoFinish",e=>{e===g&&(s=!0,_(),n.size&&b())})),t.disableAutoFinish||_(),setTimeout(()=>{i||(g.setStatus({code:tW.TJ,message:"deadline_exceeded"}),o="finalTimeout",g.end())},u),g}let t8=!1;var t4=r(6896);let t5=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&((o=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t))}},t9=(e=!0)=>{let t=e9.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},t7=()=>{let e=t9();return e?.activationStart??0};function re(e,t,r){e9.document&&e9.addEventListener(e,t,r)}function rt(e,t,r){e9.document&&e9.removeEventListener(e,t,r)}let rr=-1,rn=new Set,ri=e=>{if(("pagehide"===e.type||e9.document?.visibilityState==="hidden")&&rr>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of rn)e();isFinite(rr)||(rr="visibilitychange"===e.type?e.timeStamp:0,rt("prerenderingchange",ri,!0))}},ro=()=>{if(e9.document&&rr<0){let e=t7();rr=(e9.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(e9.document?.visibilityState!=="hidden"||e9.document?.prerendering?1/0:0),re("visibilitychange",ri,!0),re("pagehide",ri,!0),re("prerenderingchange",ri,!0)}return{get firstHiddenTime(){return rr},onHidden(e){rn.add(e)}}},rs=(e,t=-1)=>{let r=t9(),n="navigate";return r&&(e9.document?.prerendering||t7()>0?n="prerender":e9.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},ra=new WeakMap;function rc(e,t){return ra.get(e)||ra.set(e,new t),ra.get(e)}class ru{constructor(){ru.prototype.__init.call(this),ru.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let rl=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},rh=e=>{let t=!1;return()=>{t||(e(),t=!0)}}
17,rd=e=>{e9.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rp=[1800,3e3],rf=[.1,.25],rm=0,rg=1/0,ry=0,rv=e=>{e.forEach(e=>{e.interactionId&&(rg=Math.min(rg,e.interactionId),rm=(ry=Math.max(ry,e.interactionId))?(ry-rg)/7+1:0)})},r_=()=>c?rm:performance.interactionCount||0,rb=0;class rw{constructor(){rw.prototype.__init.call(this),rw.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rb=r_(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((r_()-rb)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let rS=e=>{let t=t=>{("pagehide"===t.type||e9.document?.visibilityState==="hidden")&&e(t)};re("visibilitychange",t,!0),re("pagehide",t,!0)},rE=e=>{let t=e9.requestIdleCallback||e9.setTimeout;e9.document?.visibilityState==="hidden"?e():(re("visibilitychange",e=rh(e),{once:!0,capture:!0}),t(()=>{e(),rt("visibilitychange",e,{capture:!0})}),rS(e))},rk=[200,500];class rI{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rC=[2500,4e3],rT=[800,1800],rx=e=>{e9.document?.prerendering?rd(()=>rx(e)):e9.document?.readyState!=="complete"?addEventListener("load",()=>rx(e),!0):setTimeout(e)},rA={},rO={};function rR(e,t=!1){return rF("cls",e,rL,u,t)}function rP(e,t=!1){return rF("lcp",e,rD,l,t)}function rM(e,t){return rB(e,t),rO[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),rl(e,t=>{rN(e,{entries:t})},t)}(e),rO[e]=!0),rH(e,t)}function rN(e,t){let r=rA[e];if(r?.length)for(let n of r)try{n(t)}catch(t){tP&&y.Yz.error(`Error while triggering instrumentation handler. 18Type: ${e} 19Name: ${(0,N.qQ)(n)} 20Error:`,t)}}function rL(){return((e,t={})=>{((e,t={})=>{rd(()=>{let r,n=ro(),i=rs("FCP"),o=rl("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-t7(),0),i.entries.push(t),r(!0)))});o&&(r=t5(e,i,rp,t.reportAllChanges))})})(rh(()=>{let r,n=rs("CLS",0),i=ro(),o=rc(t,ru),s=e=>{for(let t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=rl("layout-shift",s);a&&(r=t5(e,n,rf,t.reportAllChanges),i.onHidden(()=>{s(a.takeRecords()),r(!0)}),e9?.setTimeout?.(r))}))})(e=>{rN("cls",{metric:e}),u=e},{reportAllChanges:!0})}function rD(){return((e,t={})=>{rd(()=>{let r,n=ro(),i=rs("LCP"),o=rc(t,rI),s=e=>{for(let s of(t.reportAllChanges||(e=e.slice(-1)),e))o._processEntry(s),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-t7(),0),i.entries=[s],r())},a=rl("largest-contentful-paint",s);if(a){r=t5(e,i,rC,t.reportAllChanges);let n=rh(()=>{s(a.takeRecords()),a.disconnect(),r(!0)}),o=e=>{e.isTrusted&&(rE(n),rt(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])re(e,o,{capture:!0})}})})(e=>{rN("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function rU(){return((e,t={})=>{let r=rs("TTFB"),n=t5(e,r,rT,t.reportAllChanges);rx(()=>{let e=t9();e&&(r.value=Math.max(e.responseStart-t7(),0),r.entries=[e],n(!0))})})(e=>{rN("ttfb",{metric:e}),h=e})}function rj(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=ro();rd(()=>{let n;"interactionCount"in performance||c||(c=rl("event",rv,{type:"event",buffered:!0,durationThreshold:0}));let i=rs("INP"),o=rc(t,rw),s=e=>{rE(()=>{for(let t of e)o._processEntry(t);
20let t=o._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},a=rl("event",s,{durationThreshold:t.durationThreshold??40});n=t5(e,i,rk,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{s(a.takeRecords()),n(!0)}))})})(e=>{rN("inp",{metric:e}),d=e})}function rF(e,t,r,n,i=!1){let o;return rB(e,t),rO[e]||(o=r(),rO[e]=!0),n&&t({metric:n}),rH(e,t,i?o:void 0)}function rB(e,t){rA[e]=rA[e]||[],rA[e].push(t)}function rH(e,t,r){return()=>{r&&r();let n=rA[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function rz(e){return"number"==typeof e&&isFinite(e)}function r$(e,t,r,{...n}){let i=(0,J.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tX(e,()=>{let e=tJ({startTime:t,...n});return e&&e.end(r),e})}function rq(e){let t,r=(0,R.KU)();if(!r)return;let{name:n,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:c,sendDefaultPii:u}=r.getOptions(),l=r.getIntegrationByName("Replay"),h=l?.getReplayId(),d=(0,R.o5)(),p=d.getUser(),f=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch{}return tJ({name:n,attributes:{release:a,environment:c,user:f||void 0,profile_id:t||void 0,replay_id:h||void 0,transaction:i,"user_agent.original":e9.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function rV(){return e9.addEventListener&&e9.performance}function rG(e){return e/1e3}function rW(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function rY(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r),n=!0}rS(()=>{i("pagehide")});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,s()})}function rK(e){return e?(((0,eo.k3)()||performance.timeOrigin)+e)/1e3:e}function rJ(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eo.k3)()||rV()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":rK(e.redirectStart),"http.request.redirect_end":rK(e.redirectEnd),"http.request.worker_start":rK(e.workerStart),"http.request.fetch_start":rK(e.fetchStart),"http.request.domain_lookup_start":rK(e.domainLookupStart),"http.request.domain_lookup_end":rK(e.domainLookupEnd),"http.request.connect_start":rK(e.connectStart),"http.request.secure_connection_start":rK(e.secureConnectionStart),"http.request.connection_end":rK(e.connectEnd),"http.request.request_start":rK(e.requestStart),"http.request.response_start":rK(e.responseStart),"http.request.response_end":rK(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let rX=0,rQ={};function rZ(e,t,r,n,i=r){var o;let s=t["secureConnection"===(o=r)?"connectEnd":"fetch"===o?"domainLookupStart":`${o}End`],a=t[`${r}Start`];a&&s&&r$(e,n+rG(a),n+rG(s),{op:`browser.${i}`,name:t.name,attributes:{[el.JD]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var r0=r(2272);let r1=[],r2=new Map,r3=new Map,r6={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"},r8=({metric:e})=>{if(void 0==e.value)return;let t=rG(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&r6[t.name]);if(!r)return;let{interactionId:n}=r,i=r6[r.name],o=rG((0,eo.k3)()+r.startTime),s=(0,J.Bk)(),a=s?(0,J.zU)(s):void 0,c=null!=n?r2.get(n):void 0,u=c?.span||a,l=u?(0,J.et)(u).description:(0,R.o5)().getScopeData().transactionName,h=rq({name:c?.elementName||(0,eD.Hd)(r.target),transaction:l,attributes:{[el.JD]:"auto.http.browser.inp",[el.uT]:`ui.interaction.${i}`,[el.jG]:r.duration},startTime:o});h&&(h.addEvent("inp",{[el.Sn]:"millisecond",[el.xc]:e.value}),h.end(o+t))},r4=({entries:e})=>{let t=(0,J.Bk)(),r=t?(0,J.zU)(t):void 0,n=r?(0,J.et)(r).description:(0,R.o5)().getScopeData().transactionName;
20e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[o,s]=i?[rG(i),"load-time"]:r?[rG(r),"render-time"]:[(0,eo.zf)(),"entry-emission"],a="image-paint"===t?rG(Math.max(0,(r??0)-(i??0))):0,c={[el.JD]:"auto.ui.browser.elementtiming",[el.uT]:"ui.elementtiming",[el.i_]:"component","sentry.span_start_time_source":s,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=t0();if(r.startSpan)return r.startSpan(e,t);let n=tZ(e),{forceTransaction:i,parentSpan:o,scope:s}=e,a=s?.clone();(0,R.v4)(a,()=>{var r;return(void 0!==(r=o)?e=>tX(r,e):e=>e())(()=>{let r=(0,R.o5)(),s=t2(r,o),a=e.onlyIfParent&&!s?new tH:tQ({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,tF.r)(r,a),function(e,t,r=()=>{},n=()=>{}){var i,o,s,a;let c;try{c=e()}catch(e){throw t(e),r(),e}return i=c,o=t,s=r,a=n,(0,es.Qg)(i)?i.then(e=>(s(),a(e),e),e=>{throw o(e),s(),e}):(s(),a(i),i)}(()=>t(a),()=>{let{status:e}=(0,J.et)(a);a.isRecording()&&(!e||"ok"===e)&&a.setStatus({code:tW.TJ,message:"internal_error"})},()=>{a.end()})})})}({name:`element[${e.identifier}]`,attributes:c,startTime:o,onlyIfParent:!0},e=>{e.end(o+a)})})},r5="sentry_previous_trace";function r9(e){return 1===e.traceFlags}var r7=r(30872);function ne(e={}){let t=e.client||(0,R.KU)();if(!(0,b.Ol)()||!t)return{};let r=(0,H.EU)(),n=(0,tY.h)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,R.o5)(),o=e.span||(0,J.Bk)(),s=o?(0,J.Qh)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,t4.TC)(t,n,r)}(i),a=o?(0,F.k1)(o):(0,F.ao)(t,i),c=(0,r7.De)(a);if(!t4.MI.test(s))return y.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":s,baggage:c};if(e.propagateTraceparent){let e=o?(0,J.G_)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,t4.Iy)(t,n,r)}(i);e&&(u.traceparent=e)}return u}function nt(e){return e.split(",").some(e=>e.trim().startsWith(r7.sv))}function nr(e){try{return new URL(e,eU.location.origin).href}catch{return}}function nn(e){try{return new Headers(e)}catch{return}}let ni=new WeakMap,no=new Map,ns={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function na(e){let{url:t}=(0,J.et)(e).data;if(!t||"string"!=typeof t)return;let r=rM("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&(e.setAttributes(rJ(n)),setTimeout(r))})})}let nc={...t3,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...ns};function nu(e,t,r){e.emit("startPageLoadSpan",t,r),(0,R.o5)().setTransactionName(t.name);let n=e[nd];return n&&e.emit("afterStartPageLoadSpan",n),n}function nl(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let o=(0,R.o5)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...eB(),url:n}}),e[nd]}function nh(e){let t=eU.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let nd="_sentry_idleSpan",np="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nf=g.O,nm=null,ng=new Map,ny=new Map;function nv(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function n_(e){if(ng.has(e))return ng.get(e)??null;try{let t=new RegExp(e);return ng.set(e,t),t}catch(t){return np&&y.Yz.warn("Could not compile regex",{regexString:e,error:t}),null}}function nb(){if(!nf?._sentryRouteManifest||"string"!=typeof nf._sentryRouteManifest)return null;let e=nf._sentryRouteManifest;if(nm&&m===e)return nm;ng.clear(),ny.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nm=t,m=e,t}catch{return np&&y.Yz.warn("Could not extract route manifest"),null}}let nw=e=>{let t=nb();if(!t)return;if(ny.has(e))return ny.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let i=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=n_(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=n_(t.regex);i?.test(r)&&n.push(t.path)}}return n})(e,r,n).sort((e,t)=>
20nv(e)-nv(t))[0];return ny.set(e,i),i};var nS=r(2272);let nE="incomplete-app-router-transaction",nk={current:void 0},nI=g.O,nC=g.O;function nT(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let nx=new WeakSet;function nA(e,t,r){nx.has(t)||(nx.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,o){!1;let s=nE,a={[el.uT]:"navigation",[el.JD]:"auto.navigation.nextjs.app_router_instrumentation",[el.i_]:"url"},c=o[0],u=nS.env._sentryBasePath??nC._sentryBasePath,l=u&&"string"==typeof c&&!c.startsWith(u)?`${u}${c}`:c;"push"===n?(s=nT(l),a["navigation.type"]="router.push"):"replace"===n?(s=nT(l),a["navigation.type"]="router.replace"):"back"===n?a["navigation.type"]="router.back":"forward"===n&&(a["navigation.type"]="router.forward");let h=nw(s);return r.current=nl(e,{name:h??s,attributes:{...a,[el.i_]:h?"route":"url"}}),t.apply(i,o)}}))}))}var nO=r(11522);let nR=nO.events?nO:nO.default,nP=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nM(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function nN(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}class nL{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}let nD=new nL(100);var nU=r(2272);let nj=g.O;var nF=r(2272);let nB=!1,nH=g.O;var nz=r(2272);globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"7b7cf51c3dc42d23c4b158ba365116755e3d1720"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="15.5.19",globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',function(e){nB&&(0,y.pq)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),nB=!0,("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){eU.document&&function(e){let t=nw(e)||e,r=nD.get(t);if(void 0!==r)return r;let n=nb();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return nD.set(t,!1),!1;let i=n.isrRoutes.includes(t);return nD.set(t,i),i}(eU.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=eU.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let t={environment:function(e){let t=e?"production":tU.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tL(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=((e={})=>{let t,r,n,i={name:void 0,source:void 0},o=eU.document,{enableInp:s,enableElementTiming:a,enableLongTask:c,enableLongAnimationFrame:u,_experiments:{enableInteractions:l,enableStandaloneClsSpans:m,enableStandaloneLcpSpans:v},beforeStartSpan:_,idleTimeout:b,finalTimeout:S,childSpanTimeout:E,markBackgroundSpan:k,traceFetch:I,traceXHR:C,trackFetchStreamPerformance:x,shouldCreateSpanForRequest:A,enableHTTPTimings:O,ignoreResourceSpans:M,ignorePerformanceApiSpans:N,instrumentPageLoad:L,instrumentNavigation:D,detectRedirects:U,linkPreviousTrace:j,consistentTraceSampling:B,enableReportPageLoaded:H,onRequestSpanStart:z,onRequestSpanEnd:$}={...nc,...e};function q(e,r,s=!0){var a,c;let u="pageload"===r.op,l=r.name,h=_?_(r):r,d=h.attributes||{};
20if(l!==h.name&&(d[el.i_]="custom",h.attributes=d),!s){let e=(0,eo.lu)();tJ({...h,startTime:e}).end(e);return}i.name=h.name,i.source=d[el.i_];let g=t6(h,{idleTimeout:b,finalTimeout:S,childSpanTimeout:E,disableAutoFinish:u,beforeSpanEnd:r=>{var i,o;t?.(),function(e,t){var r,n;let i=rV(),o=(0,eo.k3)();if(!i?.getEntries||!o)return;let s=rG(o),a=i.getEntries(),{op:c,start_timestamp:u}=(0,J.et)(e);a.slice(rX).forEach(r=>{let n=rG(r.startTime),i=rG(Math.max(0,r.duration));if("navigation"!==c||!u||!(s+n<u))switch(r.entryType){case"navigation":var o,a,l;o=e,a=r,l=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{rZ(o,a,e,l)}),rZ(o,a,"secureConnection",l,"TLS/SSL"),rZ(o,a,"fetch",l,"cache"),rZ(o,a,"domainLookup",l,"DNS"),function(e,t,r){let n=r+rG(t.requestStart),i=r+rG(t.responseEnd),o=r+rG(t.responseStart);t.responseEnd&&(r$(e,n,i,{op:"browser.request",name:t.name,attributes:{[el.JD]:"auto.ui.browser.metrics"}}),r$(e,o,i,{op:"browser.response",name:t.name,attributes:{[el.JD]:"auto.ui.browser.metrics"}}))}(o,a,l);break;case"mark":case"paint":case"measure":{!function(e,t,r,n,i,o){if(function(e){if(e?.entryType==="measure")try{return"Components â"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,T.Xr)(t.name,o))return;let s=t9(!1),a=i+Math.max(r,rG(s?s.requestStart:0)),c=i+r,u=c+n,l={[el.JD]:"auto.resource.browser.metrics"};a!==c&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=a),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,es.sO)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,es.sO)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(l,t),a<=u&&r$(e,a,u,{name:t.name,op:t.entryType,attributes:l})}(e,r,n,i,s,t.ignorePerformanceApiSpans);let o=ro(),a=r.startTime<o.firstHiddenTime;"first-paint"===r.name&&a&&(rQ.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&a&&(rQ.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,i,o,s){var a,c;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(u))return;let l={[el.JD]:"auto.resource.browser.metrics"},h=e4(r);h.protocol&&(l["url.scheme"]=h.protocol.split(":").pop()),h.host&&(l["server.address"]=h.host),l["url.same_origin"]=r.includes(e9.location.origin),a=t,c=l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let r=a[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(c[t]=r)});let d={...l,...rJ(t)},p=o+n;r$(e,p,p+i,{name:r.replace(e9.location.origin,""),op:u,attributes:d})}(e,r,r.name,n,i,s,t.ignoreResourceSpans)}}),rX=Math.max(a.length-1,0),function(e){let t=e9.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),rz(r.rtt)&&(rQ["connection.rtt"]={value:r.rtt,unit:"millisecond"})),rz(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),rz(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===c&&(function(e){let t=t9(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(rQ),t.recordClsOnPageloadSpan||delete rQ.cls,t.recordLcpOnPageloadSpan||delete rQ.lcp,Object.entries(rQ).forEach(([e,t])=>{!function(e,t,r,n=(0,J.Bk)()){let i=n&&(0,J.zU)(n);i&&(w.T&&y.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[el.xc]:t,[el.Sn]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",t7()),r=e,n=t,p&&n.recordLcpOnPageloadSpan&&(p.element&&r.setAttribute("lcp.element",(0,eD.Hd)(p.element)),p.id&&r.setAttribute("lcp.id",p.id),p.url&&r.setAttribute("lcp.url",p.url.trim().slice(0,200)),null!=p.loadTime&&r.setAttribute("lcp.loadTime",p.loadTime),null!=p.renderTime&&r.setAttribute("lcp.renderTime",p.renderTime),r.setAttribute("lcp.size",p.size)),f?.sources&&n.recordClsOnPageloadSpan&&f.sources.forEac
20h((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,eD.Hd)(e.node)))),p=void 0,f=void 0,rQ={}}(r,{recordClsOnPageloadSpan:!m,recordLcpOnPageloadSpan:!v,ignoreResourceSpans:M,ignorePerformanceApiSpans:N}),i=e,o=void 0,(0,P.my)(i,nd,o);let s=(0,R.o5)(),a=s.getPropagationContext();s.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:(0,J.pK)(g),dsc:(0,F.k1)(r)}),u&&(n=void 0)},trimIdleSpanEndTimestamp:!H});function k(){o&&["interactive","complete"].includes(o.readyState)&&e.emit("idleSpanEnableAutoFinish",g)}u&&H&&(n=g),a=e,c=g,(0,P.my)(a,nd,c),u&&!H&&o&&(o.addEventListener("readystatechange",()=>{k()}),k())}return{name:"BrowserTracing",setup(e){function i(){let e=(0,J.Bk)(),t=e&&(0,J.zU)(e);if(t){let e="internal_error";w.T&&y.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:tW.TJ,message:e})}}if(t8||(i.tag="sentry_tracingErrorCallback",t8=!0,td(i),tm(i)),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=rV();if(n&&(0,eo.k3)()){n.mark&&e9.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!rW("largest-contentful-paint"))return;let n=rP(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rY(e,(e,i)=>{(function(e,t,r,n){tP&&y.Yz.log(`Sending LCP span (${e})`);let i=rG(((0,eo.k3)()||0)+(t?.startTime||0)),o=(0,R.o5)().getScopeData().transactionName,s=t?(0,eD.Hd)(t.element):"Largest contentful paint",a={[el.JD]:"auto.http.browser.lcp",[el.uT]:"ui.webvital.lcp",[el.jG]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(a["lcp.element"]=(0,eD.Hd)(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));let c=rq({name:s,transaction:o,attributes:a,startTime:i});c&&(c.addEvent("lcp",{[el.Sn]:"millisecond",[el.xc]:e}),c.end(i))})(r,t,i,e),n()})}(r):rP(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rQ.lcp={value:e.value,unit:"millisecond"},p=t)},!0),o=rF("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(rQ.ttfb={value:e.value,unit:"millisecond"})},rU,h),s=e?function(e){let t,r=0;if(!rW("layout-shift"))return;let n=rR(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);rY(e,(e,i)=>{(function(e,t,r,n){tP&&y.Yz.log(`Sending CLS span (${e})`);let i=t?rG(((0,eo.k3)()||0)+t.startTime):(0,eo.zf)(),o=(0,R.o5)().getScopeData().transactionName,s=t?(0,eD.Hd)(t.sources[0]?.node):"Layout shift",a={[el.JD]:"auto.http.browser.cls",[el.uT]:"ui.webvital.cls",[el.jG]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((e,t)=>{a[`cls.source.${t+1}`]=(0,eD.Hd)(e.node)});let c=rq({name:s,transaction:o,attributes:a,startTime:i});c&&(c.addEvent("cls",{[el.Sn]:"",[el.xc]:e}),c.end(i))})(r,t,i,e),n()})}(r):rR(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(rQ.cls={value:e.value,unit:""},f=t)},!0);return()=>{i?.(),o(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:m||!1,recordLcpStandaloneSpans:v||!1,client:e}),s&&function(){if(rV()&&(0,eo.k3)()){let e=rF("inp",r8,rj,d);()=>{e()}}}(),a&&rV()&&(0,eo.k3)()&&rM("element",r4),u&&g.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,J.Bk)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=rG((0,eo.k3)()+r.startTime),{start_timestamp:n,op:i}=(0,J.et)(t);if("navigation"===i&&n&&e<n)continue;let o=rG(r.duration),s={[el.JD]:"auto.ui.browser.metrics"},{invoker:a,invokerType:c,sourceURL:u,sourceFunctionName:l,sourceCharPosition:h}=r.scripts[0];s["browser.script.invoker"]=a,s["browser.script.invoker_type"]=c,u&&(s["code.filepath"]=u),l&&(s["code.function"]=l),-1!==h&&(s["browser.script.source_char_position"]=h),r$(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):c&&rM("longtask",({entries:e})=>{let t=(0,J.Bk)();if(!t)return;let{op:r,start_timestamp:n}=(0,J.et)(t);for(let i of e){let e=rG((0,eo.k3)()+i.startTime),o=rG(i.duration);"navigation"===r&&n&&e<n||r$(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[el.JD]:"auto.ui.browser.metrics"}})}}),l&&rM("event",({entries:e})=>{let t=(0,J.Bk)();
20if(t){for(let r of e)if("click"===r.name){let e=rG((0,eo.k3)()+r.startTime),n=rG(r.duration),i={name:(0,eD.Hd)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[el.JD]:"auto.ui.browser.metrics"}},o=(0,eD.xE)(r.target);o&&(i.attributes["ui.component_name"]=o),r$(t,e,e+n,i)}}}),U&&o){let e=()=>{r=(0,eo.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function _(){let t=e[nd];t&&!(0,J.et)(t).timestamp&&(ts&&y.Yz.log(`[Tracing] Finishing current active span with op: ${(0,J.et)(t).op}`),t.setAttribute(el.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,R.KU)()!==e)return;if(n?.isRedirect){ts&&y.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),q(e,{op:"navigation.redirect",...t},!1);return}r=void 0,_(),(0,R.rm)().setPropagationContext({traceId:(0,tB.e)(),sampleRand:Math.random(),propagationSpanId:(0,tj.f)()?void 0:(0,tB.Z)()});let i=(0,R.o5)();i.setPropagationContext({traceId:(0,tB.e)(),sampleRand:Math.random(),propagationSpanId:(0,tj.f)()?void 0:(0,tB.Z)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),q(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,R.KU)()!==e)return;_();let n=r.sentryTrace||nh("sentry-trace"),i=r.baggage||nh("baggage"),o=(0,t4.kM)(n,i),s=(0,R.o5)();s.setPropagationContext(o),(0,tj.f)()||(s.getPropagationContext().propagationSpanId=(0,tB.Z)()),s.setSDKProcessingMetadata({normalizedRequest:eB()}),q(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{H&&n&&(n.setAttribute(el.fs,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,o,a,c;let u,h=(0,eD.$N)();if("off"!==j&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=eU.sessionStorage?.getItem(r5);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,J.zU)(e)!==e)return;let t=(0,R.o5)().getPropagationContext();i=function(e,t,r){let n=(0,J.et)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[el.sy])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let o=e.spanContext;return o.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ts&&y.Yz.log(`Adding previous_trace ${o} link to span ${{op:n.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[el.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${+!!r9(o)}`)),i)}(i,e,t),n&&function(e){try{eU.sessionStorage.setItem(r5,JSON.stringify(e))}catch(e){ts&&y.Yz.warn("Could not store previous trace in sessionStorage",e)}}(i)});let o=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,R.o5)(),r=t.getPropagationContext();if(o&&r.parentSpanId){o=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(r9(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=r9(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[el.Ef]:i.sampleRate}})}(e,{linkPreviousTrace:j,consistentTraceSampling:B}),eU.location){if(L){let t=(0,eo.k3)();nu(e,{name:eU.location.pathname,startTime:t?t/1e3:void 0,attributes:{[el.i_]:"url",[el.JD]:"auto.pageload.browser"}})}D&&ti(({to:t,from:n})=>{if(void 0===n&&h?.indexOf(t)!==-1){h=void 0;return}h=void 0;let i=e8(t),o=e[nd],s=o&&U&&function(e,t){let r=(0,J.et)(e),n=(0,eo.lu)();return!(n-r.start_timestamp>1.5)&&(!t||!(n-t<=1.5))}(o,r);nl(e,{name:i?.pathname||eU.location.pathname,attributes:{[el.i_]:"url",[el.JD]:"auto.navigation.browser"}},{url:t,isRedirect:s})})}k&&(eU.document?eU.document.addEventListener("visibilitychange",()=>{let e=(0,J.Bk)();if(!e)return;let t=(0,J.zU)(e);if(eU.document.hidden&&t){let e="cancelled",{op:r,status:n}=(0,J.et)(t);ts&&y.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:tW.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ts&&y.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(t=e,n=b,o=S,a=E,c=i,eU.document&&addEventListener("click",()=>{let e="ui.action.click",r=t[nd];if(r&&["navigation","pageload"].includes((0,J.et)(r).op)){ts&&y.Yz.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(el.fs,"interactionInterrupted"),u.end(),u=void 0),!c.name){ts&&y.Yz.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=t6({name:c.name,op:e,attributes:{[el.i_]:c.source||"url"}},{idleTimeout:n,finalTimeout:o,childSpanTimeout:a})},{capture:!0})),s&&function(){let e=Object.keys(r6);function t(e){let t=e.target;if(!t)return;let r=(0,eD.Hd)(t),n=Math.round(e.timeStamp);
20if(r3.set(n,r),r3.size>50){let e=r3.keys().next().value;void 0!==e&&r3.delete(e)}}"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r0?r0:0))||function(){let e=g.O.process;return e?.type==="renderer"}())&&e.forEach(e=>{e9.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,J.Bk)(),r=t&&(0,J.zU)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||r2.has(t))return;let n=e.target?(0,eD.Hd)(e.target):function(e){let t=Math.round(e.startTime),r=r3.get(t);if(!r)for(let e=-5;e<=5;e++){let n=r3.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(r1.length>10){let e=r1.shift();r2.delete(e)}r1.push(t),r2.set(t,{span:r,elementName:n})})};rM("event",r),rM("first-input",r)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...ns,...t},l="function"==typeof o?o:e=>!0,h=e=>(function(e,t){let r=(0,eD.$N)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let o=n.origin===i;return t?(0,T.Xr)(n.toString(),t)||o&&(0,T.Xr)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,T.Xr)(e,t):r}})(e,a),d={},p=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=no.get(e.span_id);t&&(e.timestamp=t/1e3,no.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";eq(t,e),eV(t,()=>eX(eZ))}(e=>{if(e.response){let t=ni.get(e.response);t&&e.endTimestamp&&no.set(t,e.endTimestamp)}}),eJ(e=>{let t=function(e,t,r,n,i){if(!e.fetchData)return;let{method:o,url:s}=e.fetchData,a=(0,tj.f)()&&t(s);if(e.endTimestamp&&a){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){(0,tW.N8)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:tW.TJ,message:"internal_error"});e.end()}(r,e),function(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}(r,e,i),delete n[t]);return}let{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof i?i:{spanOrigin:i},l=!!(0,J.Bk)(),h=a&&l?tJ(function(e,t,r){let n=e8(e);return{name:n?`${t} ${function(e){if(e6(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n)}`:t,attributes:function(e,t,r,n){let i={url:e,type:"fetch","http.method":r,[el.JD]:n,[el.uT]:"http.client"};return t&&(e6(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}(e,n,t,r)}}(s,o,c)):new tH;if(e.fetchData.__span=h.spanContext().spanId,n[h.spanContext().spanId]=h,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r,n){var i;let o=ne({span:r,propagateTraceparent:n}),s=o["sentry-trace"],a=o.baggage,c=o.traceparent;if(!s)return;let u=t.headers||((0,es.ks)(e)?e.headers:void 0);if(!u)return{...o};if(i=u,"undefined"!=typeof Headers&&(0,es.tH)(i,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",s),n&&c&&!e.get("traceparent")&&e.set("traceparent",c),a){let t=e.get("baggage");t?nt(t)||e.set("baggage",`${t},${a}`):e.set("baggage",a)}return e}if(Array.isArray(u)){let e=[...u];u.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),n&&c&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);let t=u.find(e=>"baggage"===e[0]&&nt(e[1]));return a&&!t&&e.push(["baggage",a]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,r="baggage"in u?u.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],o=r&&(Array.isArray(r)?r.find(e=>nt(e)):nt(r));a&&!o&&i.push(a);let l={...u,"sentry-trace":e??s,baggage:i.length>0?i.join(","):void 0};return n&&c&&!t&&(l.traceparent=c),l}}(t,r,(0,tj.f)()&&l?h:void 0,u);n&&(e.args[1]=r,r.headers=n)}let d=(0,R.KU)();if(d){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",h,t)}return h}(e,l,h,d,{propagateTraceparent:p,onRequestSpanEnd:u});if(e.response&&e.fetchData.__span&&ni.set(e.response,e.fetchData.__span),t){let r=nr(e.fetchData.url),n=r?e4(r).host:void 0;
20t.setAttributes({"http.url":r,"server.address":n}),s&&na(t),c?.(t,{headers:e.headers})}})),n&&tr(e=>{let t=function(e,t,r,n,i,o){let s=e.xhr,a=s?.[tt];if(!s||s.__sentry_own_request__||!a)return;let{url:c,method:u}=a,l=(0,tj.f)()&&t(c);if(e.endTimestamp&&l){let t=s.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&void 0!==a.status_code&&((0,tW.N8)(r,a.status_code),r.end(),o?.(r,{headers:nn(function(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return tP&&y.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}(s)),error:e.error}),delete n[t]);return}let h=nr(c),d=h?e4(h):e4(c),p=e5(c),f=!!(0,J.Bk)(),m=l&&f?tJ({name:`${u} ${p}`,attributes:{url:c,type:"xhr","http.method":u,"http.url":h,"server.address":d?.host,[el.JD]:"auto.http.browser",[el.uT]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new tH;s.__sentry_xhr_span_id__=m.spanContext().spanId,n[s.__sentry_xhr_span_id__]=m,r(c)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:o}=ne({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,o)}(s,(0,tj.f)()&&f?m:void 0,i);let g=(0,R.KU)();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}(e,l,h,d,p,u);t&&(s&&na(t),c?.(t,{headers:nn(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}(e,{traceFetch:I,traceXHR:C,trackFetchStreamPerformance:x,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:A,enableHTTPTimings:O,onRequestSpanStart:z,onRequestSpanEnd:$})}}})({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(eU.document.getElementById("__NEXT_DATA__"))nR.events.on("routeChangeStart",t=>{let r,n,i=e5(t),o=function(e){let t=eU.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(i);o?(r=o,n="route"):(r=i,n="url"),nl(e,{name:r,attributes:{[el.uT]:"navigation",[el.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[el.i_]:n}})});else{eU.addEventListener("popstate",()=>{let t=nw(eU.location.pathname);nk.current?.isRecording()?(nk.current.updateName(t??eU.location.pathname),nk.current.setAttribute(el.i_,t?"route":"url")):nk.current=nl(e,{name:t??eU.location.pathname,attributes:{[el.JD]:"auto.navigation.nextjs.app_router_instrumentation",[el.i_]:t?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,r=0,n=setInterval(()=>{r++;let i=nI?.next?.router??nI?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,nA(e,i,nk),["nd","next"].forEach(t=>{let r=nI[t];r&&(nI[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&nA(e,n,nk),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(eU.document.getElementById("__NEXT_DATA__")){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=eU.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{np&&y.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,r7.D0)(i),s=t||eU.location.pathname;o?.["sentry-transaction"]&&"/_error"===s&&(s=(s=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let a=(0,eo.k3)();nu(e,{name:s,startTime:a?a/1e3:void 0,attributes:{[el.uT]:"pageload",[el.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[el.i_]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}else{let t=nw(eU.location.pathname),r=(0,eo.k3)();nu(e,{name:t??eU.location.pathname,startTime:r?r/1e3:void 0,attributes:{[el.uT]:"pageload",[el.JD]:"auto.pageload.nextjs.app_router_instrumentation",[el.i_]:t?"route":"url"}})}}(e)}}}());let r=nH._sentryRewriteFramesAssetPrefixPath||"",n=nF.env._sentryAssetPrefix||nH._sentryAssetPrefix,i=nF.env._sentryBasePath||nH._sentryBasePath,o="true"===nF.env._experimentalThirdPartyOriginStackFrames||"true"===nH._experimentalThirdPartyOriginStackFrames;return t.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in g.O&&!!g.O.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){let e=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?function(e,t){e=nM(e).slice(1),t=nM(t).slice(1);let r=nN(e.split("/")),n=nN(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let s=[];for(let e=o;e<r.length;e++)s.push("..");return(s=s.concat(n.slice(o))).join("/")}(t,e):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=nP.exec(t);return r?r.slice(1):[]}(e)[2]||"";n.filename=`${r}${o}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",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?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}})({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:n,basePath:i,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o})),t}(e),release:"7b7cf51c3dc42d23c4b158ba365116755e3d1720",...e};!function(e){let t=nU.env._sentryRewritesTunnelPath||nj._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,B.hH)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],s=`${t}?o=${i}&p=${r.projectId}`;o&&(s+=`&r=${o}`),e.tunnel=s,np&&y.Yz.log(`Tunneling events to "${s}"`)}else np&&y.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),_(t,"nextjs",["nextjs","react"]),function(e){let t={...e};
20_(t,"react"),(0,b.o)("react",{version:tD.version}),function(e={}){var t;let r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eU.window||eU.nw)return!1;let e=eU.chrome||eU.browser;if(!e?.runtime?.id)return!1;let t=(0,eD.$N)();return!(eU===eU.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}()&&(ts&&(0,y.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n=null==e.defaultIntegrations?tL():e.defaultIntegrations,i={...e,enabled:!r&&e.enabled,stackParser:(0,N.vk)(e.stackParser||tO),integrations:function(e){let t,r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;let i={};return t.forEach(e=>{let{name:t}=e,r=i[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(i[t]=e)}),Object.values(i)}({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||tN};!0===i.debug&&(w.T?y.Yz.enable():(0,y.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,R.o5)().update(i.initialScope);let o=new eH(i);t=o,(0,R.o5)().setClient(t),o.init()}(t)}(t);let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,b.SA)(r);let n=e=>"transaction"===e.type&&e.transaction===nE?null:e;n.id="IncompleteTransactionFilter",(0,b.SA)(n);let i=(e,t)=>{var r;return(r=t?.originalException,(0,es.bJ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};i.id="NextRedirectErrorFilter",(0,b.SA)(i)}({dsn:nz.env.SENTRY_DSN||"https://[email protected]/6003257",tracesSampleRate:.05,environment:nz.env.NEXT_PUBLIC_SENTRY_ENV,integrations:[],beforeSend(e){var t,r,n,i;return((null==(i=e.exception)||null==(n=i.values)||null==(r=n[0])||null==(t=r.stacktrace)?void 0:t.frames)||[]).some(e=>{var t,r;return(null==(t=e.filename)?void 0:t.includes("monaco-editor"))||(null==(r=e.filename)?void 0:r.includes("vs/editor"))})?.01>Math.random()?(e.fingerprint=["monaco-error"],e.tags={...e.tags,filtered_category:"monaco_error",sampled:!0},e):null:e}})},55380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return s},getRedirectStatusCodeFromError:function(){return h},getRedirectTypeFromError:function(){return l},getURLFromRedirectError:function(){return u},permanentRedirect:function(){return c},redirect:function(){return a}});let n=r(77973),i=r(74707),o=void 0;function s(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let o=Object.defineProperty(Error(i.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=i.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",o}function a(e,t){var r;throw null!=t||(t=(null==o||null==(r=o.getStore())?void 0:r.isAction)?i.RedirectType.push:i.RedirectType.replace),s(e,t,n.RedirectStatusCode.TemporaryRedirect)}function c(e,t){throw void 0===t&&(t=i.RedirectType.replace),s(e,t,n.RedirectStatusCode.PermanentRedirect)}function u(e){return(0,i.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function l(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function h(e){if(!(0,i.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58305:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(31428)}])},60407:(e,t,r)=>{"use strict";r.d(t,{NB:()=>c,OC:()=>s,PG:()=>m,RQ:()=>h,UF:()=>d,_4:()=>v,a4:()=>y,gD:()=>o,m3:()=>l,qC:()=>g,rS:()=>f,ts:()=>a,uS:()=>p,xW:()=>u});var n=r(26838),i=r.n(n);function o(e){return e.some(e=>("pro"==e.type||"max"===e.type)&&e.isActive)}function s(e){return e.some(e=>"max"==e.type&&e.isActive)}function a(e){return"loading"===e?"loading":"active MAX"===e?"full web access":"free content access"}function c(e){return e.some(e=>"pro"==e.type&&e.isActive&&"ios"===e.source)}function u(e){return e.some(e=>"pro"==e.type&&e.isActive&&"android"===e.source)}function l(e){return e.filter(e=>"pro"==e.type&&e.isActive)}function h(e){return e.filter(e=>"max"==e.type&&e.isActive)}function d(e){return e.find(e=>("pro"==e.type||"max"===e.type)&&e.isActive)}function p(e){return s(e)?"active MAX":e.some(e=>"pro"==e.type&&e.isActive)?"active PRO":"not active"}
20function f(e){return(null==e?void 0:e.hadFreeMaxTrial)||!1}function m(e,t){return!1===s(e)&&!1===f(t)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()();if(!e)return null;let r=i()(e);return r.isValid()?t.isBefore(r)?r.diff(t,"day"):0:null}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=_(e,t);return null!==r&&3>t.diff(r,"day",!0)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i()(),r=arguments.length>2?arguments[2]:void 0,n=_(e,t);return null!==n&&!r&&t.diff(n,"day",!0)>=3}function _(e,t){if(!e||"max"!==e.type||!e.isActive||!e.isTrialActive||!e.createdAt)return null;let r=i()(e.createdAt);return!r.isValid()||t.isBefore(r)?null:r}},60781:(e,t,r)=>{"use strict";r.d(t,{FX:()=>z,HC:()=>X,Jm:()=>I,Jp:()=>J,L_:()=>S,Lr:()=>A,MS:()=>D,N3:()=>O,OD:()=>b,P4:()=>L,Q1:()=>c,Ro:()=>x,T8:()=>B,Tv:()=>m,U0:()=>V,UF:()=>P,Us:()=>y,VV:()=>E,W6:()=>q,XP:()=>T,ZE:()=>$,ZX:()=>a,_l:()=>G,_s:()=>Y,_t:()=>l,aG:()=>F,bp:()=>N,fK:()=>_,gf:()=>u,hf:()=>U,kQ:()=>h,lk:()=>C,lq:()=>j,mR:()=>M,nf:()=>k,ni:()=>v,sN:()=>W,sO:()=>w,sv:()=>p,tL:()=>d,ts:()=>R,uE:()=>H,uP:()=>f,vG:()=>K,wC:()=>g}),r(20255);var n=r(91788),i=r(47431),o=r(2272);function s(e,t){return(0,i.h)(e,t)}function a(e){var t;let{trackId:r,tutorialId:n,chapterId:i,lessonIndex:a}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!=(t=c.isOnDemand)?t:"preview"===o.env.NEXT_PUBLIC_DEPLOYMENT_TYPE,l=c.trackingSource?"&trackingSource=".concat(encodeURIComponent(c.trackingSource)):"",h=c.originUrl?"&originUrl=".concat(encodeURIComponent(c.originUrl)):"";return u?s("/ssr/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/learn?lesson=").concat(a).concat(l).concat(h),c.locale):s("/web/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/learn?lesson=").concat(a).concat(l).concat(h),c.locale)}function c(e){var t;let{trackId:r,tutorialId:n,chapterId:i,lessonIndex:a}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!=(t=c.isOnDemand)?t:"preview"===o.env.NEXT_PUBLIC_DEPLOYMENT_TYPE,l=c.trackingSource?"&trackingSource=".concat(encodeURIComponent(c.trackingSource)):"",h=c.originUrl?"&originUrl=".concat(encodeURIComponent(c.originUrl)):"";return u?s("/ssr/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/teach?lesson=").concat(a).concat(l).concat(h),c.locale):s("/web/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/teach?lesson=").concat(a).concat(l).concat(h),c.locale)}function u(e){var t;let{trackId:r,tutorialId:n,chapterId:i,lessonIndex:a}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=null!=(t=c.isOnDemand)?t:"preview"===o.env.NEXT_PUBLIC_DEPLOYMENT_TYPE,l=c.trackingSource?"&trackingSource=".concat(encodeURIComponent(c.trackingSource)):"",h=c.originUrl?"&originUrl=".concat(encodeURIComponent(c.originUrl)):"";return u?s("/ssr/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/challenge?lesson=").concat(a).concat(l).concat(h),c.locale):s("/web/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/challenge?lesson=").concat(a).concat(l).concat(h),c.locale)}function l(e){var t;let{trackId:r,tutorialId:n,chapterId:i,lessonIndex:a,clearIDBProgressOnNavigation:c}=e,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=null!=(t=u.isOnDemand)?t:"preview"===o.env.NEXT_PUBLIC_DEPLOYMENT_TYPE,h=u.trackingSource?"&trackingSource=".concat(encodeURIComponent(u.trackingSource)):"",d=u.originUrl?"&originUrl=".concat(encodeURIComponent(u.originUrl)):"";return l?s("/ssr/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/tutor?lesson=").concat(a).concat(h).concat(d),u.locale):s("/web/track/".concat(r,"/tutorial/").concat(n,"/chapter/").concat(i,"/tutor?lesson=").concat(a).concat(c?"&clearProgress=true":"").concat(h).concat(d),u.locale)}function h(e){let{trackId:t,tutorialId:r,chapterId:n,sectionIndex:i,prevXPCount:o,leaderboardId:a,locale:c,originUrl:u}=e,l=u?"&originUrl=".concat(encodeURIComponent(u)):"";return s("/web/streak?trackId=".concat(t,"&tutorialId=").concat(r,"&chapterId=").concat(n,"§ionIndex=").concat(i,"&prevXPCount=").concat(o).concat(a?"&leaderboardId=".concat(a):"").concat(l),c)}function d(e){let{trackId:t,tutorialId:r,chapterId:n,sectionIndex:i,leaderboardId:o,locale:a,originUrl:c}=e,u=c?"&originUrl=".concat(encodeURIComponent(c)):"";return s("/web/leaderboard-changed?trackId=".concat(t,"&tutorialId=").concat(r,"&chapterId=").concat(n,"§ionIndex=").concat(i).c
20oncat(o?"&leaderboardId=".concat(o):"").concat(u),a)}function p(e){let{trackId:t,tutorialId:r,chapterId:n,sectionIndex:i,prevXPCount:o,leaderboardId:a,locale:c,originUrl:u}=e,l=u?"&originUrl=".concat(encodeURIComponent(u)):"";return s("/web/daily-goal?trackId=".concat(t,"&tutorialId=").concat(r,"&chapterId=").concat(n,"§ionIndex=").concat(i,"&prevXPCount=").concat(o).concat(a?"&leaderboardId=".concat(a):"").concat(l),c)}function f(e){let{trackId:t,tutorialId:r,chapterId:n,sectionIndex:i,locale:o,originUrl:a}=e,c=a?"&originUrl=".concat(encodeURIComponent(a)):"";return s("/web/syncProgress?trackId=".concat(t,"&tutorialId=").concat(r,"&chapterId=").concat(n,"§ionIndex=").concat(i).concat(c),o)}function m(e,t,r){return s("/web/".concat(e,"/section/").concat(t),null==r?void 0:r.locale)}function g(e){return s("/web/redirect-to-active-section",null==e?void 0:e.locale)}function y(e,t){return s("/web/".concat(e,"/section/active"),null==t?void 0:t.locale)}function v(e){let t=(0,n.lK)();if(!t)return;let r=Number(t),i=(0,n.hX)(r);if(i)return s("/web/".concat(t,"/section/").concat(i),null==e?void 0:e.locale)}function _(e,t){let r=(0,n.vZ)(e);if(!r)return;let i=(0,n.rO)(e,Number(r));if(i)return s("/web/".concat(r,"/section/").concat(i),null==t?void 0:t.locale)}function b(e){if(!(null==e?void 0:e.redirectUrl)&&!(null==e?void 0:e.trackingReferer)&&!(null==e?void 0:e.chapterEndMilestone))return s("/web/subscribe",null==e?void 0:e.locale);let t=Object.entries(e).filter(e=>{let[t]=e;return"locale"!==t}).filter(e=>{let[,t]=e;return void 0!==t}).map(e=>{let[t,r]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(r))}).join("&");return s("/web/subscribe?".concat(t),null==e?void 0:e.locale)}function w(e){return s("/web/build",null==e?void 0:e.locale)}function S(e,t,r){let n=w({locale:null==r?void 0:r.locale});switch(t.type){case"build":n=w({locale:null==r?void 0:r.locale});break;case"section details":n=m(t.trackId,t.sectionIndex,{locale:null==r?void 0:r.locale});break;default:throw Error("Invalid backlink type")}return s("/web/build/".concat(e,"?backlink=").concat(n),null==r?void 0:r.locale)}function E(e){let{trackId:t,tutorialId:r,chapterId:n,sectionIndex:i,locale:o,originUrl:a}=e,c=a?"&originUrl=".concat(encodeURIComponent(a)):"";return s("/web/project-done?trackId=".concat(t,"&tutorialId=").concat(r,"&chapterId=").concat(n,"§ionIndex=").concat(i).concat(c),o)}function k(e){return s("/onboarding-check",null==e?void 0:e.locale)}function I(e){return s("/web/onboarding/chat",null==e?void 0:e.locale)}function C(e){return s("/web/events",null==e?void 0:e.locale)}function T(e){return s("/web/leaderboard",null==e?void 0:e.locale)}function x(e){return s("/web/library",null==e?void 0:e.locale)}function A(e){if(!(null==e?void 0:e.trackId)&&(null==e?void 0:e.sectionIndex)===void 0)return s("/web/practice",null==e?void 0:e.locale);let t=new URLSearchParams;return(null==e?void 0:e.trackId)!==void 0&&t.set("trackId",e.trackId.toString()),(null==e?void 0:e.sectionIndex)!==void 0&&t.set("sectionIndex",e.sectionIndex.toString()),s("/web/practice?".concat(t.toString()),null==e?void 0:e.locale)}function O(e,t){return e?s("/web/login?redirectUrl=".concat(e),null==t?void 0:t.locale):s("/web/login",null==t?void 0:t.locale)}function R(e,t){return e?s("/web/register?redirectUrl=".concat(e),null==t?void 0:t.locale):s("/web/register",null==t?void 0:t.locale)}function P(e){return s("/glossary/html",null==e?void 0:e.locale)}function M(e){return s("/tutorials/html",null==e?void 0:e.locale)}function N(e){let{origin:t,locale:r,redirectUrl:n,purchasedPlan:i}=e,o=s("/web/purchase-successful",r),a=new URLSearchParams;n&&a.set("redirectUrl",n),i&&a.set("purchasedPlan",i);let c=a.toString();return"".concat(t||"").concat(o).concat(c?"?".concat(c):"")}function L(e,t,r){let n=window.location.origin,i=s("/web/shared/".concat(e),null==r?void 0:r.locale);return t?"".concat(n).concat(i,"?selectedFile=").concat(encodeURIComponent(t)):"".concat(n).concat(i)}function D(e){return s("/web/passwordReset",null==e?void 0:e.locale)}function U(e){return s("/go-to-checkout",null==e?void 0:e.locale)}function j(e){return s("/terms",null==e?void 0:e.locale)}function F(e){return s("/privacy",null==e?void 0:e.locale)}function B(e){return s("/data-processing-agreement",null==e?void 0:e.locale)}function H(e){return s("/courses",null==e?void 0:e.locale)}function z(e){return s("/legal",null==e?void 0:e.locale)}function $(e){return s("/press-kit",null==e?void 0:e.locale)}function q(e){return s("/blog",null==e?void 0:e.locale)}function V(e){return s("/learner-stories",null==e?void 0:e.locale)}function G(){return"https://getmimo.zendesk.com/hc/en-us"}function W(){return"https://support.mimo.org/hc/en-us/requests/new"}
20function Y(e){return s("/pro",null==e?void 0:e.locale)}function K(e){return s("/mimo-coding-app",null==e?void 0:e.locale)}function J(e){return s("/certifications",null==e?void 0:e.locale)}function X(e){return s("/code-compilers",null==e?void 0:e.locale)}},61700:(e,t,r)=>{"use strict";r.d(t,{S:()=>p,A:()=>y});var n=r(23798),i=r(48015),o=r.n(i),s=r(21462),a=r(69097),c=r(14139),u=r(83188);function l(e){var t;let{variant:r,size:n,navigationType:i="default",selected:o=!1,disabled:s=!1,hasIcon:c=!1,isIconOnly:l=!1,iconPosition:d="leading"}=e;if("link"===r)return function(e){let{size:t,disabled:r,hasIcon:n}=e;return(0,a.QP)("flex w-fit items-center justify-center whitespace-nowrap text-launch-content-primary-dark hover:text-launch-content-brand focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-launch-border-brand","large"===t?u.fI:u.hP,n&&"gap-1",r&&"cursor-not-allowed text-launch-content-disabled-dark hover:text-launch-content-disabled-dark")}({size:n,disabled:s,hasIcon:c});if("navigation"===r)return function(e){let{navigationType:t,selected:r,disabled:n}=e;return(0,a.QP)("flex w-fit items-center justify-center text-launch-content-secondary-dark ".concat(u.WU," focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-launch-border-brand"),{default:"h-6 gap-1 rounded-xl pr-2 pl-1",pill:"h-6 rounded-xl px-2",icon:"h-6 w-6 rounded-xl"}[t],"hover:rounded-lg hover:bg-launch-background-hover-dark",r&&"rounded-lg bg-launch-background-toned-dark text-launch-content-primary-dark",n&&"cursor-not-allowed text-launch-content-disabled-dark hover:bg-transparent hover:text-launch-content-disabled-dark")}({navigationType:i,selected:o,disabled:s});let p=(0,a.QP)("relative flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-launch-border-brand",function(e){let{size:t,hasIcon:r,isIconOnly:n,iconPosition:i}=e,o={"extra-small":"h-6 ".concat(u.WU),small:"h-8 ".concat(u.hP),medium:"h-10 ".concat(u.fI),large:"h-12 ".concat(u.UN),"extra-large":"h-14 ".concat(u.UN)}[t],s=h(t);if(n){let e={"extra-small":"w-6",small:"w-8",medium:"w-10",large:"w-12","extra-large":"w-14"}[t];return(0,a.QP)(o,s,e)}if(!r){let e={"extra-small":"px-2",small:"px-3",medium:"px-4",large:"px-5","extra-large":"px-6"}[t];return(0,a.QP)(o,s,e)}let c={"extra-small":"leading"===i?"gap-1 pr-2 pl-1":"gap-1 pr-1 pl-2",small:"leading"===i?"gap-2 pr-3 pl-2":"gap-2 pr-2 pl-3",medium:"leading"===i?"gap-2 pr-4 pl-3":"gap-2 pr-3 pl-4",large:"leading"===i?"gap-2 pr-5 pl-4":"gap-2 pr-4 pl-5","extra-large":"leading"===i?"gap-2 pr-6 pl-5":"gap-2 pr-5 pl-6"}[t];return(0,a.QP)(o,s,c)}({size:n,hasIcon:c,isIconOnly:l,iconPosition:d})),f="cursor-not-allowed text-launch-content-disabled-dark";return"primary"===r?(0,a.QP)(p,"group bg-launch-background-brand-default text-launch-content-primary-dark shadow-[0_0_0_2px] shadow-launch-border-elevation-dark disabled:shadow-none",!s&&"active:shadow-[0_0_0_4px]",s&&"bg-launch-background-brand-disabled shadow-none hover:bg-launch-background-brand-disabled",s&&f):"premium"===r?(0,a.QP)(p,"group bg-launch-background-premium-default text-launch-content-onlight-dark shadow-[0_0_0_2px] shadow-launch-border-elevation-dark disabled:shadow-none",!s&&"active:shadow-[0_0_0_4px]",s&&"bg-launch-background-premium-disabled shadow-none hover:bg-launch-background-premium-disabled",s&&f):"secondary"===r?(0,a.QP)(p,"large"===(t=n)||"extra-large"===t?"border-2":"border","border-launch-border-withHighlight-dark bg-launch-background-highlight-dark text-launch-content-primary-dark hover:bg-launch-background-hoverSecondary-dark disabled:border-transparent disabled:shadow-none",!s&&"active:after:absolute active:after:inset-0 active:after:bg-launch-background-pressed active:shadow-[0_0_0_2px] active:shadow-launch-border-elevation-dark",s&&"border-transparent bg-launch-background-highlight-dark shadow-none hover:bg-launch-background-highlight-dark",s&&f):(0,a.QP)(p,"text-launch-content-primary-dark hover:bg-launch-background-hover-dark",!s&&"active:bg-launch-background-pressed",s&&"hover:bg-transparent",s&&f)}function h(e){return({"extra-small":"rounded-lg",small:"rounded-[10px]",medium:"rounded-xl",large:"rounded-[14px]","extra-large":"rounded-2xl"})[e]}function d(e){let{variant:t,size:r,navigationType:n}=e;return"navigation"===t?"pill"===n?"hidden":"h-4 w-4":"link"===t?"large"===r?"h-6 w-6":"h-4 w-4":({"extra-small":"h-4 w-4",small:"h-5 w-5",medium:"h-6 w-6",large:"h-7 w-7","extra-large":"h-6 w-6"})[r]}function p(e){let{variant:t,size:r,className:i,children:o,icon:s,iconPosition:c="leading",...u}=e;return(0,n.jsx)("span",{...u,className:(0,a.QP)(l({variant:t,size:r,hasIcon:!!s,isIconOnly:void 0===o,iconPosition:c}),i),children:(0,n.jsx)(f,{variant:t,size:r,icon:s,iconPosition:c,children:o})})}function f(e){let{variant:t,size:r,navigationType:i="default",icon:o,iconPosition:s="leading",isLoading:u=!1,disabled:l=!1,children:h}=e,p=(0,n.jsx)(m,{variant:t,size:r,disabled:l});return u?(0,n.jsxs)(n.Fragment,{children:[p,void 0!==h&&(0,n.jsx)("span",{className:"sr-only",children:h}
20),(0,n.jsx)(c.A,{"aria-hidden":!0,className:(0,a.QP)("relative z-10",d({variant:t,size:r,navigationType:i}))})]}):void 0===h?o?(0,n.jsxs)(n.Fragment,{children:[p,(0,n.jsx)(g,{variant:t,size:r,navigationType:i,children:o})]}):null:(0,n.jsxs)(n.Fragment,{children:[p,o&&"leading"===s&&(0,n.jsx)(g,{variant:t,size:r,navigationType:i,children:o}),(0,n.jsx)("span",{className:"relative z-10",children:h}),o&&"trailing"===s&&(0,n.jsx)(g,{variant:t,size:r,navigationType:i,children:o})]})}function m(e){let{variant:t,size:r,disabled:i}=e;return i||"primary"!==t&&"premium"!==t?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"bg-launch-button-border-shadow pointer-events-none absolute inset-0"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"bg-launch-button-border-highlight pointer-events-none absolute inset-0"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"bg-launch-button-border-hover-highlight pointer-events-none absolute inset-0 hidden group-hover:block"}),(0,n.jsx)("span",{"aria-hidden":!0,className:(0,a.QP)("pointer-events-none absolute inset-px",h(r),"primary"===t?"bg-launch-background-brand-default group-hover:bg-launch-background-brand-hovered":"bg-launch-background-premium-default group-hover:bg-launch-background-premium-hovered")}),(0,n.jsx)("span",{"aria-hidden":!0,className:(0,a.QP)("group-active:bg-launch-background-pressed pointer-events-none absolute inset-px",h(r))})]})}function g(e){let{variant:t,size:r,navigationType:i,children:o}=e;return(0,n.jsx)("span",{"aria-hidden":!0,className:(0,a.QP)("relative z-10 flex shrink-0 items-center justify-center [&>svg]:h-full [&>svg]:w-full",d({variant:t,size:r,navigationType:i})),children:o})}let y=(0,s.forwardRef)(function(e,t){let[r,i]=(0,s.useState)(!1),{variant:c,size:u="medium",navigationType:h="default",selected:d=!1,isLoading:p=!1,disabled:m=!1,className:g,children:y,icon:v,iconPosition:_="leading"}=e,b="showLoadingOnClick"in e&&e.showLoadingOnClick,w=p||!!(b&&r),S=m&&!w,E=(0,a.QP)(l({variant:c,size:u,navigationType:h,selected:d,disabled:S,hasIcon:!!v,isIconOnly:void 0===y,iconPosition:_}),w&&"cursor-not-allowed",g),k=(0,n.jsx)(f,{variant:c,size:u,navigationType:h,icon:v,iconPosition:_,isLoading:w,disabled:S,children:y});if("href"in e&&void 0!==e.href){let{href:r,onClick:s,showLoadingOnClick:a,variant:c,size:u,navigationType:l,selected:h,isLoading:p,disabled:f,className:g,children:y,icon:v,iconPosition:_,tabIndex:S,...I}=e;return(0,n.jsx)(o(),{...I,ref:t,href:r,className:E,"aria-busy":w||void 0,"aria-disabled":m||w||void 0,"data-selected":d||void 0,tabIndex:m||w?-1:S,onClick:e=>{if(m||w)return void e.preventDefault();b&&i(!0),null==s||s(e)},children:k})}let{type:I="button",onClick:C,variant:T,size:x,navigationType:A,selected:O,isLoading:R,disabled:P,className:M,children:N,icon:L,iconPosition:D,...U}=e;return(0,n.jsx)("button",{...U,ref:t,type:I,className:E,disabled:m||w,"aria-busy":w||void 0,"aria-pressed":d||void 0,"data-selected":d||void 0,onClick:C,children:k})})},61737:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},62286:e=>{e.exports={style:{fontFamily:"'aeonikFono', 'aeonikFono Fallback'"},className:"__className_ac1879"}},62679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return S},useLinkStatus:function(){return w}});let n=r(98781),i=r(23798),o=n._(r(21462)),s=r(2405),a=r(65049),c=r(79100),u=r(5326),l=r(84635),h=r(84064),d=r(45076),p=r(21821),f=r(84712),m=r(92989);r(37211);let g=new Set;function y(e,t,r,n){if((0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}let _=o.default.forwardRef(function(e,t){let r,n,{href:c,as:g,children:_,prefetch:b=null,passHref:w,replace:S,shallow:E,scroll:k,locale:I,onClick:C,onNavigate:T,onMouseEnter:x,onTouchStart:A,legacyBehavior:O=!1,...R}=e;r=_,O&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=o.default.useContext(h.RouterContext),M=!1!==b,{href:N,as:L}=o.default.useMemo(()=>
20{if(!P){let e=v(c);return{href:e,as:g?v(g):e}}let[e,t]=(0,s.resolveHref)(P,c,!0);return{href:e,as:g?(0,s.resolveHref)(P,g):t||e}},[P,c,g]),D=o.default.useRef(N),U=o.default.useRef(L);O&&(n=o.default.Children.only(r));let j=O?n&&"object"==typeof n&&n.ref:t,[F,B,H]=(0,d.useIntersection)({rootMargin:"200px"}),z=o.default.useCallback(e=>{(U.current!==L||D.current!==N)&&(H(),U.current=L,D.current=N),F(e)},[L,N,H,F]),$=(0,m.useMergedRef)(z,j);o.default.useEffect(()=>{P&&B&&M&&y(P,N,L,{locale:I})},[L,N,B,I,M,null==P?void 0:P.locale,P]);let q={ref:$,onClick(e){O||"function"!=typeof C||C(e),O&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,i,o,s,c,u){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,a.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:c,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,P,N,L,S,E,k,I,T))},onMouseEnter(e){O||"function"!=typeof x||x(e),O&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&y(P,N,L,{locale:I,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){O||"function"!=typeof A||A(e),O&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&y(P,N,L,{locale:I,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))q.href=L;else if(!O||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==I?I:null==P?void 0:P.locale;q.href=(null==P?void 0:P.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||(0,f.addBasePath)((0,l.addLocale)(L,e,null==P?void 0:P.defaultLocale))}return O?o.default.cloneElement(n,q):(0,i.jsx)("a",{...R,...q,children:r})}),b=(0,o.createContext)({pending:!1}),w=()=>(0,o.useContext)(b),S=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64110:(e,t,r)=>{"use strict";r.d(t,{KO:()=>S,MF:()=>_,Sx:()=>w,Wp:()=>b,j6:()=>g,om:()=>m});var n=r(68403),i=r(5123),o=r(98290),s=r(37856);class a{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 c="@firebase/app",u="0.9.13",l=new i.Vy("@firebase/app"),h="[DEFAULT]",d={[c]:"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"},p=new Map,f=new Map;function m(e){let t=e.name;if(f.has(t))return l.debug(`There were multiple attempts to register component ${t}.`),!1;for(let r of(f.set(t,e),p.values()))try{r.container.addComponent(e)}catch(t){l.debug(`Component ${e.name} failed to register with FirebaseApp ${r.name}`,t)}return!0}function g(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}let y=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.","invali
20d-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 v{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new n.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 y.create("app-deleted",{appName:this._name})}}let _="9.23.0";function b(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let i=Object.assign({name:h,automaticDataCollectionEnabled:!1},t),s=i.name;if("string"!=typeof s||!s)throw y.create("bad-app-name",{appName:String(s)});if(r||(r=(0,o.T9)()),!r)throw y.create("no-options");let a=p.get(s);if(a)if((0,o.bD)(r,a.options)&&(0,o.bD)(i,a.config))return a;else throw y.create("duplicate-app",{appName:s});let c=new n.h1(s);for(let e of f.values())c.addComponent(e);let u=new v(r,i,c);return p.set(s,u),u}function w(e=h){let t=p.get(e);if(!t&&e===h&&(0,o.T9)())return b();if(!t)throw y.create("no-app",{appName:e});return t}function S(e,t,r){var i;let o=null!=(i=d[e])?i:e;r&&(o+=`-${r}`);let s=o.match(/\s|\//),a=t.match(/\s|\//);if(s||a){let e=[`Unable to register library "${o}" with version "${t}":`];s&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),s&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),l.warn(e.join(" "));return}m(new n.uA(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}let E="firebase-heartbeat-store",k=null;function I(){return k||(k=(0,s.openDB)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(E)}}).catch(e=>{throw y.create("idb-open",{originalErrorMessage:e.message})})),k}async function C(e){try{let t=await I();return await t.transaction(E).objectStore(E).get(x(e))}catch(e){if(e instanceof o.g)l.warn(e.message);else{let t=y.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});l.warn(t.message)}}}async function T(e,t){try{let r=(await I()).transaction(E,"readwrite"),n=r.objectStore(E);await n.put(t,x(e)),await r.done}catch(e){if(e instanceof o.g)l.warn(e.message);else{let t=y.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});l.warn(t.message)}}}function x(e){return`${e.name}!${e.options.appId}`}class A{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new R(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=O();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))}
20async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let e=O(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),P(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),P(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=(0,o.Uj)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}}function O(){return new Date().toISOString().substring(0,10)}class R{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 C(this.app)||{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return T(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let r=await this.read();return T(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function P(e){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:e})).length}m(new n.uA("platform-logger",e=>new a(e),"PRIVATE")),m(new n.uA("heartbeat",e=>new A(e),"PRIVATE")),S(c,u,""),S(c,u,"esm2017"),S("fire-js","")},64441:(e,t,r)=>{"use strict";r.d(t,{h:()=>h});var n=r(95816),i=r(1164),o=r(97270);class s{constructor(e,t){let r,n;r=e||new i.H,n=t||new i.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,o.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}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function a(){let e=(0,n.EU)(),t=(0,n.Se)(e);return t.stack=t.stack||new s((0,n.BY)("defaultCurrentScope",()=>new i.H),(0,n.BY)("defaultIsolationScope",()=>new i.H))}function c(e){return a().withScope(e)}function u(e,t){let r=a();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function l(e){return a().withScope(()=>e(a().getIsolationScope()))}function h(e){let t=(0,n.Se)(e);return t.acs?t.acs:{withIsolationScope:l,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>l(t),getCurrentScope:()=>a().getScope(),getIsolationScope:()=>a().getIsolationScope()}}},64558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(17028).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(e,t)=>r(52458).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65952:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(84996);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,n.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},66683:e=>{!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,i=468,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||c,scrollIntoView:n.prototype.scrollIntoView},s=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=+(r=e.navigator.userAgent,!!RegExp("MSIE |Trident/|Edge/").test(r));
20e.scroll=e.scrollTo=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0]))return void o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset);d.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(void 0!==arguments[0]){if(u(arguments[0]))return void o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);d.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var e=arguments[0].left,t=arguments[0].top;d.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}},n.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===u(arguments[0]))return void o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(!0===u(arguments[0]))return void o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);var r=function(e){for(var r,n,i;e!==t.body&&!1===(n=l(r=e,"Y")&&h(r,"Y"),i=l(r,"X")&&h(r,"X"),n||i);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),i=this.getBoundingClientRect();r!==t.body?(d.call(this,r,r.scrollLeft+i.left-n.left,r.scrollTop+i.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}}function c(e,t){this.scrollLeft=e,this.scrollTop=t}function u(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function l(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function h(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(r,n,a){var u,l,h,d,p=s();r===t.body?(u=e,l=e.scrollX||e.pageXOffset,h=e.scrollY||e.pageYOffset,d=o.scroll):(u=r,l=r.scrollLeft,h=r.scrollTop,d=c),function t(r){var n,o,a,c=(s()-r.startTime)/i;n=.5*(1-Math.cos(Math.PI*(c=c>1?1:c))),o=r.startX+(r.x-r.startX)*n,a=r.startY+(r.y-r.startY)*n,r.method.call(r.scrollable,o,a),(o!==r.x||a!==r.y)&&e.requestAnimationFrame(t.bind(e,r))}({scrollable:u,method:d,startTime:p,startX:l,startY:h,x:n,y:a})}}}}()},67366:(e,t,r)=>{"use strict";r.d(t,{$:()=>a,s:()=>s});var n=r(26059),i=r(98654),o=r(83134),s=class extends i.k{#e;#V;#P;#z;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#P=e.mutationCache,this.#V=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#V.includes(e)||(this.#V.push(e),this.clearGcTimeout(),this.#P.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#V=this.#V.filter(t=>t!==e),this.scheduleGc(),this.#P.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#V.length||("pending"===this.state.status?this.scheduleGc():this.#P.remove(this))}continue(){return this.#z?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#q({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#z=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#q({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#q({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#P.canRun(this)});let n="pending"===this.state.status,i=!this.#z.canStart();try{if(n)t();else{this.#q({type:"pending",variables:e,isPaused:i}),await this.#P.config.onMutate?.(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#q({type:"pending",context:t,variables:e,isPaused:i})}let o=await this.#z.start();return await this.#P.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#P.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#q({type:"success",data:o}),o}catch(t){try{throw await this.#P.config.onError?.(t,e,this.state.context,this,r),await this.options.onError?.(t,e,this.state.context,r),await this.#P.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,t,e,this.state.context,r),t}finally{this.#q({type:"error",error:t})}}finally{this.#P.runNext(this)}}#q(e){this.state=(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};
20case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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,isPaused:!1,status:"error"}}})(this.state),n.jG.batch(()=>{this.#V.forEach(t=>{t.onMutationUpdate(e)}),this.#P.notify({mutation:this,type:"updated",action:e})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},67803:(e,t,r)=>{"use strict";r.d(t,{Zq:()=>o,zs:()=>i});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},i=new class{#G=n;#W=!1;setTimeoutProvider(e){this.#G=e}setTimeout(e,t){return this.#G.setTimeout(e,t)}clearTimeout(e){this.#G.clearTimeout(e)}setInterval(e,t){return this.#G.setInterval(e,t)}clearInterval(e){this.#G.clearInterval(e)}};function o(e){setTimeout(e,0)}},68053:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case h:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case c:return e;default:return t}}case i:return t}}}function S(e){return w(e)===h}t.AsyncMode=l,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===h||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},68403:(e,t,r)=>{"use strict";r.d(t,{h1:()=>a,uA:()=>i});var n=r(98290);class i{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,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 o="[DEFAULT]";class s{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 n.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}if(n)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:o})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=o){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=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;let n=this.normalizeInstanceIdentifier(t),i=null!=(r=this.onInitCallbacks.get(n))?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);let o=this.instances.get(n);return o&&e(o,n),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===o?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}return n||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{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 s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},68519:(e,t,r)=>{"use strict";r.d(t,{M:()=>l});var n=r(23798),i=r(61700),o=r(41072),s=r.n(o),a=r(60781),c=r(88876),u=r(85637);function l(e){let{message:t,redirectUrl:r}=e;return(0,n.jsxs)("div",{className:"bg-product-background-primary-light dark:bg-product-background-primary-dark flex min-h-screen flex-col items-center p-8",children:[(0,n.jsx)(u.A,{className:"text-product-text-primary-light dark:text-product-text-primary-dark h-6"}),(0,n.jsxs)("div",{className:"my-auto flex flex-col items-center space-y-10",children:[(0,n.jsx)(s(),{src:c.A,className:"h-40 w-40",alt:""}),(0,n.jsx)("h1",{className:"text-product-text-primary-light dark:text-product-text-primary-dark text-center text-4xl font-bold",children:t||"Something went wrong and we're sorry about that."}),(0,n.jsx)(i.A,{variant:"primary",size:"large",href:r||(0,a.wC)(),prefetch:!1,children:"Go back home"})]})]})}},69097:(e,t,r)=>{"use strict";r.d(t,{QP:()=>ec});let n=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),i=[],o=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],i=r.nextPart.get(n);if(i){let r=o(e,t+1,i);if(r)return r}let s=r.validators;if(null===s)return;let a=0===t?e.join("-"):e.slice(t).join("-"),c=s.length;for(let e=0;e<c;e++){let t=s[e];if(t.validator(a))return t.classGroupId}},s=(e,t)=>{let r=n();for(let n in e)a(e[n],r,n,t);return r},a=(e,t,r,n)=>{let i=e.length;for(let o=0;o<i;o++)c(e[o],t,r,n)},c=(e,t,r,n)=>"string"==typeof e?void u(e,t,r):"function"==typeof e?void l(e,t,r,n):void h(e,t,r,n),u=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},l=(e,t,r,n)=>{if(p(e))return void a(e(n),t,r,n);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e})},h=(e,t,r,n)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,s]=i[e];a(s,d(t,o),r,n)}},d=(e,t)=>{let r=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=r.nextPart.get(t);o||(o=n(),r.nextPart.set(t,o)),r=o}return r},p=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],m=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),g=/\s+/,y=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=y(e[n]))&&(r&&(r+=" "),r+=t);return r},v=[],_=e=>{let t=t=>t[e]||v;return t.isThemeGetter=!0,t},b=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,S=/^\d+\/\d+$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,x=e=>S.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),R=e=>e.endsWith("%")&&A(e.slice(0,-1)),P=e=>E.test(e),M=()=>!0,N=e=>k.test(e)&&!I.test(e),L=()=>!1,D=e=>C.test(e),U=e=>T.test(e),j=e=>!B(e)&&!G(e),F=e=>Z(e,en,L),B=e=>b.test(e),H=e=>Z(e,ei,N),z=e=>Z(e,eo,A),$=e=>Z(e,et,L),q=e=>Z(e,er,U),V=e=>Z(e,ea,D),G=e=>w.test(e),W=e=>ee(e,ei),Y=e=>ee(e,es),K=e=>ee(e,et),J=e=>ee(e,en),X=e=>
20ee(e,er),Q=e=>ee(e,ea,!0),Z=(e,t,r)=>{let n=b.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ee=(e,t,r=!1)=>{let n=w.exec(e);return!!n&&(n[1]?t(n[1]):r)},et=e=>"position"===e||"percentage"===e,er=e=>"image"===e||"url"===e,en=e=>"length"===e||"size"===e||"bg-size"===e,ei=e=>"length"===e,eo=e=>"number"===e,es=e=>"family-name"===e,ea=e=>"shadow"===e;Symbol.toStringTag;let ec=((e,...t)=>{let r,n,a,c,u=e=>{let t=n(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(g),c="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:u,modifiers:l,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}=r(t);if(u){c=t+(c.length>0?" "+c:c);continue}let f=!!p,m=n(f?d.substring(0,p):d);if(!m){if(!f||!(m=n(d))){c=t+(c.length>0?" "+c:c);continue}f=!1}let g=0===l.length?"":1===l.length?l[0]:o(l).join(":"),y=h?g+"!":g,v=y+m;if(s.indexOf(v)>-1)continue;s.push(v);let _=i(m,f);for(let e=0;e<_.length;++e){let t=_[e];s.push(y+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return a(e,i),i};return c=l=>(n=(r=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),i=(i,o)=>{r[i]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in r?r[e]=t:i(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,i=0,o=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===i){if(":"===s){r.push(e.slice(o,a)),o=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?i++:")"===s&&i--}let a=0===r.length?e:e.slice(o),c=a,u=!1;return a.endsWith("!")?(c=a.slice(0,-1),u=!0):a.startsWith("!")&&(c=a.slice(1),u=!0),m(r,u,c,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):m(f,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{let r=[],n=[];for(let i=0;i<e.length;i++){let o=e[i],s="["===o[0],a=t.has(o);s||a?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(o)):n.push(o)}return n.length>0&&(n.sort(),r.push(...n)),r}})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})())(e);let r=e.split("-"),n=+(""===r[0]&&r.length>1);return o(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],o=r[e];return t?o?((e,t)=>{let r=Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||i}return r[e]||i}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,a=r.cache.set,c=u,u(l)),(...e)=>c(((...e)=>{let t,r,n=0,i="";for(;n<e.length;)(t=e[n++])&&(r=y(t))&&(i&&(i+=" "),i+=r);return i})(...e))})(()=>{let e=_("color"),t=_("font"),r=_("text"),n=_("font-weight"),i=_("tracking"),o=_("leading"),s=_("breakpoint"),a=_("container"),c=_("spacing"),u=_("radius"),l=_("shadow"),h=_("inset-shadow"),d=_("text-shadow"),p=_("drop-shadow"),f=_("blur"),m=_("perspective"),g=_("aspect"),y=_("ease"),v=_("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...w(),G,B],E=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],I=()=>[G,B,c],C=()=>[x,"full","auto",...I()],T=()=>[O,"none","subgrid",G,B],N=()=>["auto",{span:["full",O,G,B]},O,G,B],L=()=>[O,"auto",G,B],D=()=>["auto","min","max","fr",G,B],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...I()],et=()=>[x,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],er=()=>[e,G,B],en=()=>[...w(),K,$,{position:[G,B]}],ei=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eo=()=>["auto","cover","contain",J,F,{size:[G,B]}],es=()=>[R,W,H],ea=()=>["","none","full",u,G,B],ec=()=>["",A,W,H],eu=()=>["solid","dashed","dotted","double"],el=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[A,R,K,$],ed=()=>["","none",f,G,B],ep=()=>["none",A,G,B],ef=()=>["none",A,G,B],em=()=>[A,G,B],eg=()=>[x,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[P],breakpoint:[P],color:[M],c
vendor: 13,294 bytes, line 20
20ontainer:[P],"drop-shadow":[P],ease:["in","out","in-out"],font:[j],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[P],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[P],shadow:[P],spacing:["px",A],text:[P],"text-shadow":[P],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",x,B,G,g]}],container:["container"],columns:[{columns:[A,B,G,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",G,B]}],basis:[{basis:[x,"full","auto",a,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,x,"auto","initial","none",B]}],grow:[{grow:["",A,G,B]}],shrink:[{shrink:["",A,G,B]}],order:[{order:[O,"first","last","none",G,B]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[a,"screen",...et()]}],"min-w":[{"min-w":[a,"screen","none",...et()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,W,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,G,z]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",R,B]}],"font-family":[{font:[Y,B,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,G,B]}],"line-clamp":[{"line-clamp":[A,"none",G,z]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",G,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eu(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",G,H]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[A,"auto",G,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:ei()}],"bg-size":[{bg:eo()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,G,B],radial:["",G,B],conic:[O,G,B]},X,q]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:es()}],"gradient-via-pos":[{via:es()}],"gradient-to-pos":[{to:es()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:ea()}],"rounded-s":[{"rounded-s":ea()}],"rounded-e":[{"rounded-e":ea()}],"rounded-t":[{"rounded-t":ea()}],"rounded-r":[{"rounded-r":ea()}],"rounded-b":[{"rounded-b":ea()}],"rounded-l":[{"rounded-l":ea()}],"rounded-ss":[{"rounded-ss":ea()}],"rounded-se":[{"rounded-se":ea()}],"rounded-ee":[{"rounded-ee":ea()}],"rounded-es":[{"rounded-es":ea()}],"rounded-tl":[{"rounded-tl":ea()}],"rounded-tr":[{"rounded-tr":ea()}],"rounded-br":[{"rounded-br":ea()}],"rounded-bl":[{"rounded-bl":ea()}],"border-w":[{border:ec()}],"border-w-x":[{"border-x":ec()}],"border-w-y":[{"border-y":ec()}],"border-w-s":[{"border-s":ec()}],"border-w-e":[{"border-e":ec()}],"border-w-t":[{"border-t":ec()}],"border-w-r":[{"border-r":ec()}],"border-w-b":[{"border-b":ec()}],"border-w-l":[{"border-l":ec()}],"divide-x":[{"divide-x":ec()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ec()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eu(),"hidden","none"]}],"divide-style":[{divide:[...eu(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...eu(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,G,B]}],"outline-w":[{outline:["",A,W,H]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",l,Q,V]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",h,Q,V]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:ec()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[A,H]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":ec()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",d,Q,V]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[A,G,B]}],"mix-blend":[{"mix-blend":[...el(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":el()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[G,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:ei()}],"mask-size":[{mask:eo()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,B]}],filter:[{filter:["","none",G,B]}],blur:[{blur:ed()}],brightness:[{brightness:[A,G,B]}],contrast:[{contrast:[A,G,B]}],"drop-shadow":[{"drop-shadow":["","none",p,Q,V]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",A,G,B]}],"hue-rotate":[{"hue-rotate":[A,G,B]}],invert:[{invert:["",A,G,B]}],saturate:[{saturate:[A,G,B]}],sepia:[{sepia:["",A,G,B]}],"backdrop-filter":[{"backdrop-filter":["","none",G,B]}],"backdrop-blur":[{"backdrop-blur":ed()}],"backdrop-brightness":[{"backdrop-brightness":[A,G,B]}],"backdrop-contrast":[{"backdrop-contrast":[A,G,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,G,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,G,B]}],"backdrop-invert":[{"backdrop-invert":["",A,G,B]}],"backdrop-opacity":[{"backdrop-opacity":[A,G,B]}],"backdrop-saturate":[{"backdrop-saturate":[A,G,B]}],"backdrop-sepia":[{"backdrop-sepia":["",A,G,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",G,B]}],ease:[{ease:["linear","initial",y,G,B]}],delay:[{delay:[A,G,B]}],animate:[{animate:["none",v,G,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,G,B]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:ef()}],"scale-x":[{"scale-x":ef()}],"scale-y":[{"scale-y":ef()}],"scale-z":[{"scale-z":ef()}],"scale-3d":["scale-3d"],skew:[{skew:em()}],"skew-x":[{"skew-x":em()}],"skew-y":[{"skew-y":em()}],transform:[{transform:[G,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}
vendor: 4,467 bytes, line 20
20],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,B]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[A,W,H,z]}],stroke:[{stroke:["none",...er()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},69419:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});
20let n={PRACTICE_TAB_ENABLED:!0}},70241:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"/_next/static/media/link_image_twitter.0b70bead.png",height:627,width:1200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAPFBMVEUtLEozNEdWVWxMOYdWXnmim8VDRVl+TdoxMFRRU29YWFdWWHGUmKMjI0abhtGGWd5/c7VsSLpNN4mSfcdxzsG2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVR4nAXBhwEAIAjAsKoguNf/v5qQHLqa4VJKe7Ih1jyOTpzAtWUfEBwA9h+rblYAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},70326:(e,t,r)=>{"use strict";r.d(t,{$N:()=>s,Hd:()=>o,xE:()=>a});var n=r(97270);let i=r(14913).O;function o(e,t={}){if(!e)return"<unknown>";try{let r,o=e,s=[],a=0,c=0,u=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&a++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let o=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o?.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.Kg)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(o,u),"html"!==r&&(!(a>1)||!(c+3*s.length+r.length>=l)));)s.push(r),c+=r.length,o=o.parentNode;return s.reverse().join(" > ")}catch{return"<unknown>"}}function s(){try{return i.document.location.href}catch{return""}}function a(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},70826:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,Y:()=>i});var n=r(21462);let i=(0,n.createContext)({routingHistoryEntries:[],setRoutingHistoryEntries:()=>{}}),o=()=>{let{routingHistoryEntries:e}=(0,n.useContext)(i);return{routingHistoryEntries:e}}},71448:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(71996);let i={locales:n.locales,defaultLocale:n.defaultLocale,localePrefix:"as-needed"}},71830:(e,t,r)=>{"use strict";var n=r(19565),i=r(15271),o=r(82643),s=r(37114),a=r(85670);function c(){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 u=new n.ErrorFactory("auth","Firebase",c()),l=new s.Logger("@firebase/auth");function h(e,...t){l.logLevel<=s.LogLevel.ERROR&&l.error(`Auth (${i.SDK_VERSION}): ${e}`,...t)}function d(e,...t){throw g(e,...t)}function p(e,...t){return g(e,...t)}function f(e,t,r){let i=Object.assign(Object.assign({},c()),{[t]:r});return new n.ErrorFactory("auth","Firebase",i).create(t,{appName:e.name})}function m(e,t,r){if(!(t instanceof r))throw r.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?`)}function g(e,...t){if("string"!=typeof e){let r=t[0],n=[...t.slice(1)];return n[0]&&(n[0].appName=e.name),e._errorFactory.create(r,...n)}return u.create(e,...t)}function y(e,t,...r){if(!e)throw g(t,...r)}function v(e){let t="INTERNAL ASSERTION FAILED: "+e;throw h(t),Error(t)}function _(e,t){e||v(t)}function b(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.href)||""}function w(){return"http:"===S()||"https:"===S()}function S(){var e;return"undefined"!=typeof self&&(null==(e=self.location)?void 0:e.protocol)||null}class E{constructor(e,t){this.shortDelay=e,this.longDelay=t,_(t>e,"Short delay should be less than long delay!"),this.isMobile=n.isMobileCordova()||n.isReactNative()}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(w()||n.isBrowserExtension()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function k(e,t){_(e.emulator,"Emulator should always be set here");let{url:r}=e.emulator;return t?`${r}${t.startsWith("/")?t.slice(1):t}`:r}class I{static initialize(e,t,r){this.fetchImpl=e,t&&(this.headersImpl=t),r&&(this.responseImpl=r)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:void v("Could not find fetch implementation, make sure you call FetchProvi
20der.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:void v("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 v("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}let C={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"},T=new E(3e4,6e4);function x(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function A(e,t,r,i,o={}){return O(e,o,async()=>{let o={},s={};i&&("GET"===t?s=i:o={body:JSON.stringify(i)});let a=n.querystring(Object.assign({key:e.config.apiKey},s)).slice(1),c=await e._getAdditionalHeaders();return c["Content-Type"]="application/json",e.languageCode&&(c["X-Firebase-Locale"]=e.languageCode),I.fetch()(P(e,e.config.apiHost,r,a),Object.assign({method:t,headers:c,referrerPolicy:"no-referrer"},o))})}async function O(e,t,r){e._canInitEmulator=!1;let i=Object.assign(Object.assign({},C),t);try{let t=new M(e),n=await Promise.race([r(),t.promise]);t.clearNetworkTimeout();let o=await n.json();if("needConfirmation"in o)throw N(e,"account-exists-with-different-credential",o);if(n.ok&&!("errorMessage"in o))return o;{let[t,r]=(n.ok?o.errorMessage:o.error.message).split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===t)throw N(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===t)throw N(e,"email-already-in-use",o);if("USER_DISABLED"===t)throw N(e,"user-disabled",o);let s=i[t]||t.toLowerCase().replace(/[_\s]+/g,"-");if(r)throw f(e,s,r);d(e,s)}}catch(t){if(t instanceof n.FirebaseError)throw t;d(e,"network-request-failed",{message:String(t)})}}async function R(e,t,r,n,i={}){let o=await A(e,t,r,n,i);return"mfaPendingCredential"in o&&d(e,"multi-factor-auth-required",{_serverResponse:o}),o}function P(e,t,r,n){let i=`${t}${r}?${n}`;return e.config.emulator?k(e.config,i):`${e.config.apiScheme}://${i}`}class M{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>
20{this.timer=setTimeout(()=>t(p(this.auth,"network-request-failed")),T.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function N(e,t,r){let n={appName:e.name};r.email&&(n.email=r.email),r.phoneNumber&&(n.phoneNumber=r.phoneNumber);let i=p(e,t,n);return i.customData._tokenResponse=r,i}async function L(e,t){return A(e,"POST","/v1/accounts:delete",t)}async function D(e,t){return A(e,"POST","/v1/accounts:update",t)}async function U(e,t){return A(e,"POST","/v1/accounts:lookup",t)}function j(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function F(e,t=!1){let r=n.getModularInstance(e),i=await r.getIdToken(t),o=H(i);y(o&&o.exp&&o.auth_time&&o.iat,r.auth,"internal-error");let s="object"==typeof o.firebase?o.firebase:void 0,a=null==s?void 0:s.sign_in_provider;return{claims:o,token:i,authTime:j(B(o.auth_time)),issuedAtTime:j(B(o.iat)),expirationTime:j(B(o.exp)),signInProvider:a||null,signInSecondFactor:(null==s?void 0:s.sign_in_second_factor)||null}}function B(e){return 1e3*Number(e)}function H(e){let[t,r,i]=e.split(".");if(void 0===t||void 0===r||void 0===i)return h("JWT malformed, contained fewer than 3 sections"),null;try{let e=n.base64Decode(r);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 z(e,t,r=!1){if(r)return t;try{return await t}catch(t){throw t instanceof n.FirebaseError&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class ${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 q{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=j(this.lastLoginAt),this.creationTime=j(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function V(e){var t,r,n;let i=e.auth,s=await e.getIdToken(),a=await z(e,U(i,{idToken:s}));y(null==a?void 0:a.users.length,i,"internal-error");let c=a.users[0];e._notifyReloadListener(c);let u=(null==(t=c.providerUserInfo)?void 0:t.length)?c.providerUserInfo.map(e=>{var{providerId:t}=e,r=o.__rest(e,["providerId"]);return{providerId:t,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}}):[],l=(r=e.providerData,n=u,[...r.filter(e=>!n.some(t=>t.providerId===e.providerId)),...n]),h=e.isAnonymous,d=!(e.email&&c.passwordHash)&&!(null==l?void 0:l.length);Object.assign(e,{uid:c.localId,displayName:c.displayName||null,photoURL:c.photoUrl||null,email:c.email||null,emailVerified:c.emailVerified||!1,phoneNumber:c.phoneNumber||null,tenantId:c.tenantId||null,providerData:l,metadata:new q(c.createdAt,c.lastLoginAt),isAnonymous:!!h&&d})}async function G(e){let t=n.getModularInstance(e);await V(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}async function W(e,t){let r=await O(e,{},async()=>{let r=n.querystring({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:o}=e.config,s=P(e,i,"/v1/token",`key=${o}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",I.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}class Y{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){y(e.idToken,"internal-error"),y(void 0!==e.idToken,"internal-error"),y(void 0!==e.refreshToken,"internal-error");
20let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){let t=H(e);return y(t,"internal-error"),y(void 0!==t.exp,"internal-error"),y(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(y(!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:r,refreshToken:n,expiresIn:i}=await W(e,t);this.updateTokensAndExpiration(r,n,Number(i))}updateTokensAndExpiration(e,t,r){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*r}static fromJSON(e,t){let{refreshToken:r,accessToken:n,expirationTime:i}=t,o=new Y;return r&&(y("string"==typeof r,"internal-error",{appName:e}),o.refreshToken=r),n&&(y("string"==typeof n,"internal-error",{appName:e}),o.accessToken=n),i&&(y("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}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 Y,this.toJSON())}_performRefresh(){return v("not implemented")}}function K(e,t){y("string"==typeof e||void 0===e,"internal-error",{appName:t})}class J{constructor(e){var{uid:t,auth:r,stsTokenManager:n}=e,i=o.__rest(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new $(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=r,this.stsTokenManager=n,this.accessToken=n.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 q(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await z(this,this.stsTokenManager.getToken(this.auth,e));return y(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return F(this,e)}reload(){return G(this)}_assign(e){this!==e&&(y(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 J(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){y(!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 r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),t&&await V(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){let e=await this.getIdToken();return await z(this,L(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 r,n,i,o,s,a,c,u;let l=null!=(r=t.displayName)?r:void 0,h=null!=(n=t.email)?n:void 0,d=null!=(i=t.phoneNumber)?i:void 0,p=null!=(o=t.photoURL)?o:void 0,f=null!=(s=t.tenantId)?s:void 0,m=null!=(a=t._redirectEventId)?a:void 0,g=null!=(c=t.createdAt)?c:void 0,v=null!=(u=t.lastLoginAt)?u:void 0,{uid:_,emailVerified:b,isAnonymous:w,providerData:S,stsTokenManager:E}=t;y(_&&E,e,"internal-error");let k=Y.fromJSON(this.name,E);y("string"==typeof _,e,"internal-error"),K(l,e.name),K(h,e.name),y("boolean"==typeof b,e,"internal-error"),y("boolean"==typeof w,e,"internal-error"),K(d,e.name),K(p,e.name),K(f,e.
20name),K(m,e.name),K(g,e.name),K(v,e.name);let I=new J({uid:_,auth:e,email:h,emailVerified:b,displayName:l,isAnonymous:w,photoURL:p,phoneNumber:d,tenantId:f,stsTokenManager:k,createdAt:g,lastLoginAt:v});return S&&Array.isArray(S)&&(I.providerData=S.map(e=>Object.assign({},e))),m&&(I._redirectEventId=m),I}static async _fromIdTokenResponse(e,t,r=!1){let n=new Y;n.updateFromServerResponse(t);let i=new J({uid:t.localId,auth:e,stsTokenManager:n,isAnonymous:r});return await V(i),i}}let X=new Map;function Q(e){_(e instanceof Function,"Expected a class definition");let t=X.get(e);return t?_(t instanceof e,"Instance stored in cache mismatched with class"):(t=new e,X.set(e,t)),t}class Z{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 ee(e,t,r){return`firebase:${e}:${t}:${r}`}Z.type="NONE";class et{constructor(e,t,r){this.persistence=e,this.auth=t,this.userKey=r;let{config:n,name:i}=this.auth;this.fullUserKey=ee(this.userKey,n.apiKey,i),this.fullPersistenceKey=ee("persistence",n.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?J._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,r="authUser"){if(!t.length)return new et(Q(Z),e,r);let n=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=n[0]||Q(Z),o=ee(r,e.config.apiKey,e.name),s=null;for(let r of t)try{let t=await r._get(o);if(t){let n=J._fromJSON(e,t);r!==i&&(s=n),i=r;break}}catch(e){}let a=n.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&a.length&&(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(o)}catch(e){}}))),new et(i,e,r)}}function er(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";{if(es(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(en(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(ec(t))return"Blackberry";if(eu(t))return"Webos";if(ei(t))return"Safari";if((t.includes("chrome/")||eo(t))&&!t.includes("edge/"))return"Chrome";if(ea(t))return"Android";let r=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==r?void 0:r.length)===2)return r[1]}return"Other"}function en(e=n.getUA()){return/firefox\//i.test(e)}function ei(e=n.getUA()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function eo(e=n.getUA()){return/crios\//i.test(e)}function es(e=n.getUA()){return/iemobile/i.test(e)}function ea(e=n.getUA()){return/android/i.test(e)}function ec(e=n.getUA()){return/blackberry/i.test(e)}function eu(e=n.getUA()){return/webos/i.test(e)}function el(e=n.getUA()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function eh(e=n.getUA()){return el(e)||ea(e)||eu(e)||ec(e)||/windows phone/i.test(e)||es(e)}function ed(e,t=[]){let r;switch(e){case"Browser":r=er(n.getUA());break;case"Worker":r=`${er(n.getUA())}-${e}`;break;default:r=e}let o=t.length?t.join(","):"FirebaseCore-web";return`${r}/JsCore/${i.SDK_VERSION}/${o}`}async function ep(e){return(await A(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}async function ef(e,t){return A(e,"GET","/v2/recaptchaConfig",x(e,t))}function em(e){return void 0!==e&&void 0!==e.getResponse}function eg(e){return void 0!==e&&void 0!==e.enterprise}class ey{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 ev(e){return new Promise((t,r)=>{var n,i;let o=document.createElement("script");o.setAttribute("src",e),o.onload=t,o.onerror=e=>{let t=p("internal-error");t.customData=e,r(t)},o.type="text/javascript",o.charset="UTF-8",(null!=(i=null==(n=document.getElementsByTagName("head"))?void 0:n[0])?i:document).appendChild(o)})}function e_(e){return`__${e}${Math.floor(1e6*Math.random())}`}class eb{constructor(e){this.type="recaptcha-enterprise",this.auth=ek(e)}async verify(e="verify",t=!1){async function r(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,r)=>
20{ef(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(n=>{if(void 0===n.recaptchaKey)r(Error("recaptcha Enterprise site key undefined"));else{let r=new ey(n);return null==e.tenantId?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,t(r.siteKey)}}).catch(e=>{r(e)})})}function n(t,r,n){let i=window.grecaptcha;eg(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{r(e)}).catch(()=>{r("NO_RECAPTCHA")})}):n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((e,i)=>{r(this.auth).then(r=>{if(!t&&eg(window.grecaptcha))n(r,e,i);else{if("undefined"==typeof window)return void i(Error("RecaptchaVerifier is only supported in browser"));ev("https://www.google.com/recaptcha/enterprise.js?render="+r).then(()=>{n(r,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function ew(e,t,r,n=!1){let i,o=new eb(e);try{i=await o.verify(r)}catch(e){i=await o.verify(r,!0)}let s=Object.assign({},t);return n?Object.assign(s,{captchaResp:i}):Object.assign(s,{captchaResponse:i}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}class eS{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let r=t=>new Promise((r,n)=>{try{let n=e(t);r(n)}catch(e){n(e)}});r.onAbort=t,this.queue.push(r);let n=this.queue.length-1;return()=>{this.queue[n]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let r of this.queue)await r(e),r.onAbort&&t.push(r.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 eE{constructor(e,t,r,n){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=r,this.config=n,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new eI(this),this.idTokenSubscription=new eI(this),this.beforeStateQueue=new eS(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,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=n.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Q(t)),this._initializationPromise=this.queue(async()=>{var r,n;if(!this._deleted){if(this.persistenceManager=await et.create(this,e),!this._deleted){if(null==(r=this._popupRedirectResolver)?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null==(n=this.currentUser)?void 0:n.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 r=await this.assertedPersistence.getCurrentUser(),n=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let r=null==(t=this.redirectUser)?void 0:t._redirectEventId,o=null==n?void 0:n._redirectEventId,s=await this.tryRedirectSignIn(e);(!r||r===o)&&(null==s?void 0:s.user)&&(n=s.user,i=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(n)}catch(e){n=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return(y(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId)?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}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 V(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}
20async updateCurrentUser(e){let t=e?n.getModularInstance(e):null;return t&&y(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&&y(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(Q(e))})}async initializeRecaptchaConfig(){let e=new ey(await ef(this,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}));null==this.tenantId?this._agentRecaptchaConfig=e:this._tenantRecaptchaConfigs[this.tenantId]=e,e.emailPasswordEnabled&&new eb(this).verify()}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new n.ErrorFactory("auth","Firebase",e())}onAuthStateChanged(e,t,r){return this.registerStateListener(this.authStateSubscription,e,t,r)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,r){return this.registerStateListener(this.idTokenSubscription,e,t,r)}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 r=await this.getOrInitRedirectPersistenceManager(t);return null===e?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&Q(e)||this._popupRedirectResolver;y(t,this,"argument-error"),this.redirectPersistenceManager=await et.create(this,[Q(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,r;return(this._isInitialized&&await this.queue(async()=>{}),(null==(t=this._currentUser)?void 0:t._redirectEventId)===e)?this._currentUser:(null==(r=this.redirectUser)?void 0:r._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 r=null!=(t=null==(e=this.currentUser)?void 0:e.uid)?t:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,r,n){if(this._deleted)return()=>{};let i="function"==typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return(y(o,this,"internal-error"),o.then(()=>i(this.currentUser)),"function"==typeof t)?e.addObserver(t,r,n):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 y(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=ed(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 r=await (null==(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))?void 0:e.getHeartbeatsHeader());r&&(t["X-Firebase-Client"]=r);let n=await this._getAppCheckToken();return n&&(t["X-Firebase-AppCheck"]=n),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){l.logLevel<=s.LogLevel.WARN&&l.warn(`Auth (${i.SDK_VERSION}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function ek(e){return n.getModularInstance(e)}class eI{constructor(e){this.auth=e,this.observer=null,this.addObserver=n.createSubscribe(e=>this.observer=e)}get next(){return y(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function eC(e,t){let r=i._getProvider(e,"auth");if(r.isInitialized()){let e=r.getImmediate(),i=r.getOptions();if(n.deepEqual(i,null!=t?t:{}))return e;d(e,"already-initialized")}return r.initialize({options:t})}function eT(e,t,r){let n=ek(e);y(n._canInitEmulator,n,"emulator-config-failed"),y(/^https?:\/\//.test(t),n,"invalid-emulator-scheme");let i=!!(null==r?void 0:r.disableWarnings),o=ex(t),{host:s,port:a}=function(e){let t=ex(e),r=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!r)return{host:"",port:null};let n=r[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let e=i[1];return{host:e,port:eA(n.substr(e.length+1))}}{let[e,t]=n.split(":");return{host:e,port:eA(t)}}}(t),c=null===a?"":`:${a}`;
20n.config.emulator={url:`${o}//${s}${c}/`},n.settings.appVerificationDisabledForTesting=!0,n.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||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())}()}function ex(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function eA(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}class eO{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return v("not implemented")}_getIdTokenResponse(e){return v("not implemented")}_linkToIdToken(e,t){return v("not implemented")}_getReauthenticationResolver(e){return v("not implemented")}}async function eR(e,t){return A(e,"POST","/v1/accounts:resetPassword",x(e,t))}async function eP(e,t){return A(e,"POST","/v1/accounts:update",t)}async function eM(e,t){return A(e,"POST","/v1/accounts:update",x(e,t))}async function eN(e,t){return R(e,"POST","/v1/accounts:signInWithPassword",x(e,t))}async function eL(e,t){return A(e,"POST","/v1/accounts:sendOobCode",x(e,t))}async function eD(e,t){return eL(e,t)}async function eU(e,t){return eL(e,t)}async function ej(e,t){return eL(e,t)}async function eF(e,t){return eL(e,t)}async function eB(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",x(e,t))}async function eH(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",x(e,t))}class ez extends eO{constructor(e,t,r,n=null){super("password",r),this._email=e,this._password=t,this._tenantId=n}static _fromEmailAndPassword(e,t){return new ez(e,t,"password")}static _fromEmailAndCode(e,t,r=null){return new ez(e,t,"emailLink",r)}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 r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(null==(t=e._getRecaptchaConfig())||!t.emailPasswordEnabled)return eN(e,r).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 ew(e,r,"signInWithPassword");return eN(e,t)}});{let t=await ew(e,r,"signInWithPassword");return eN(e,t)}case"emailLink":return eB(e,{email:this._email,oobCode:this._password});default:d(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return eP(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return eH(e,{idToken:t,email:this._email,oobCode:this._password});default:d(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function e$(e,t){return R(e,"POST","/v1/accounts:signInWithIdp",x(e,t))}class eq extends eO{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new eq(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&&
20(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,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t="string"==typeof e?JSON.parse(e):e,{providerId:r,signInMethod:n}=t,i=o.__rest(t,["providerId","signInMethod"]);if(!r||!n)return null;let s=new eq(r,n);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){return e$(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,e$(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,e$(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=n.querystring(t)}return e}}async function eV(e,t){return A(e,"POST","/v1/accounts:sendVerificationCode",x(e,t))}async function eG(e,t){return R(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,t))}async function eW(e,t){let r=await R(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,t));if(r.temporaryProof)throw N(e,"account-exists-with-different-credential",r);return r}let eY={USER_NOT_FOUND:"user-not-found"};async function eK(e,t){return R(e,"POST","/v1/accounts:signInWithPhoneNumber",x(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),eY)}class eJ extends eO{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new eJ({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new eJ({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return eG(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return eW(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return eK(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:r,verificationCode:n}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:r,code:n}}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:r,phoneNumber:n,temporaryProof:i}=e;return r||t||n||i?new eJ({verificationId:t,verificationCode:r,phoneNumber:n,temporaryProof:i}):null}}class eX{constructor(e){var t,r,i,o,s,a;let c=n.querystringDecode(n.extractQuerystring(e)),u=null!=(t=c.apiKey)?t:null,l=null!=(r=c.oobCode)?r: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=c.mode)?i:null);y(u&&l&&h,"argument-error"),this.apiKey=u,this.operation=h,this.code=l,this.continueUrl=null!=(o=c.continueUrl)?o:null,this.languageCode=null!=(s=c.languageCode)?s:null,this.tenantId=null!=(a=c.tenantId)?a:null}static parseLink(e){let t=function(e){let t=n.querystringDecode(n.extractQuerystring(e)).link,r=t?n.querystringDecode(n.extractQuerystring(t)).deep_link_id:null,i=n.querystringDecode(n.extractQuerystring(e)).deep_link_id;return(i?n.querystringDecode(n.extractQuerystring(i)).link:null)||i||r||t||e}(e);try{return new eX(t)}catch(e){return null}}}class eQ{constructor(){this.providerId=eQ.PROVIDER_ID}static credential(e,t){return ez._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let r=eX.parseLink(t);return y(r,"argument-error"),ez._fromEmailAndCode(e,r.code,r.tenantId)}}eQ.PROVIDER_ID="password",eQ.EMAIL_PASSWORD_SIGN_IN_METHOD="password",eQ.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class eZ{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 e0 extends eZ{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class e1 extends e0{static credentialFromJSON(e){let t="string"==typeof e?JSON.parse(e):e;return y("providerId"in t&&"signInMethod"in t,"argument-error"),eq._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return y(e.idToken||e.accessToken,"argument-error"),eq._fromParams(Object.assign(Object.assign({}
20,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return e1.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return e1.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r,oauthTokenSecret:n,pendingToken:i,nonce:o,providerId:s}=e;if(!r&&!n&&!t&&!i||!s)return null;try{return new e1(s)._credential({idToken:t,accessToken:r,nonce:o,pendingToken:i})}catch(e){return null}}}class e2 extends e0{constructor(){super("facebook.com")}static credential(e){return eq._fromParams({providerId:e2.PROVIDER_ID,signInMethod:e2.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return e2.credentialFromTaggedObject(e)}static credentialFromError(e){return e2.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return e2.credential(e.oauthAccessToken)}catch(e){return null}}}e2.FACEBOOK_SIGN_IN_METHOD="facebook.com",e2.PROVIDER_ID="facebook.com";class e3 extends e0{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return eq._fromParams({providerId:e3.PROVIDER_ID,signInMethod:e3.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return e3.credentialFromTaggedObject(e)}static credentialFromError(e){return e3.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:r}=e;if(!t&&!r)return null;try{return e3.credential(t,r)}catch(e){return null}}}e3.GOOGLE_SIGN_IN_METHOD="google.com",e3.PROVIDER_ID="google.com";class e6 extends e0{constructor(){super("github.com")}static credential(e){return eq._fromParams({providerId:e6.PROVIDER_ID,signInMethod:e6.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return e6.credentialFromTaggedObject(e)}static credentialFromError(e){return e6.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return e6.credential(e.oauthAccessToken)}catch(e){return null}}}e6.GITHUB_SIGN_IN_METHOD="github.com",e6.PROVIDER_ID="github.com";class e8 extends eO{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){return e$(e,this.buildRequest())}_linkToIdToken(e,t){let r=this.buildRequest();return r.idToken=t,e$(e,r)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,e$(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){let{providerId:t,signInMethod:r,pendingToken:n}="string"==typeof e?JSON.parse(e):e;return t&&r&&n&&t===r?new e8(t,n):null}static _create(e,t){return new e8(e,t)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class e4 extends eZ{constructor(e){y(e.startsWith("saml."),"argument-error"),super(e)}static credentialFromResult(e){return e4.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return e4.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){let t=e8.fromJSON(e);return y(t,"argument-error"),t}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{pendingToken:t,providerId:r}=e;if(!t||!r)return null;try{return e8._create(r,t)}catch(e){return null}}}class e5 extends e0{constructor(){super("twitter.com")}static credential(e,t){return eq._fromParams({providerId:e5.PROVIDER_ID,signInMethod:e5.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return e5.credentialFromTaggedObject(e)}static credentialFromError(e){return e5.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:r}=e;if(!t||!r)return null;try{return e5.credential(t,r)}catch(e){return null}}}async function e9(e,t){return R(e,"POST","/v1/accounts:signUp",x(e,t))}e5.TWITTER_SIGN_IN_METHOD="twitter.com",e5.PROVIDER_ID="twitter.com";class e7{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,r,n=!1){return new e7({user:await J._fromIdTokenResponse(e,r,n),providerId:te(r),_tokenResponse:r,operationType:t})}static async _forOperation(e,t,r){return await e._updateTokensIfNecessary(r,!0),new e7({user:e,providerId:te(r),_tokenResponse:r,operationType:t})}}function te(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}async function tt(e){var t;let r=ek(e);if(await r._initializationPromise,null==(t=r.currentUser)?void 0:t.isAnonymous)return new e7({user:r.currentUser,providerId:null,operationType:"signIn"});let n=await e9(r,{returnSecureToken:!0}),i=await e7._fromIdTokenResponse(r,"signIn",n,!0);return await r._updateCurrentUser(i.user),i}class tr extends n.FirebaseError{constructor(e,t,r,n){var i;super(t.code,t.message),this.operationType=r,this.user=n,Object.setPrototypeOf(this,tr.prototype),this.customData={appName:e.n
20ame,tenantId:null!=(i=e.tenantId)?i:void 0,_serverResponse:t.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,t,r,n){return new tr(e,t,r,n)}}function tn(e,t,r,n){return("reauthenticate"===t?r._getReauthenticationResolver(e):r._getIdTokenResponse(e)).catch(r=>{if("auth/multi-factor-auth-required"===r.code)throw tr._fromErrorAndOperation(e,r,t,n);throw r})}function ti(e){return new Set(e.map(({providerId:e})=>e).filter(e=>!!e))}async function to(e,t){let r=n.getModularInstance(e);await ta(!0,r,t);let{providerUserInfo:i}=await D(r.auth,{idToken:await r.getIdToken(),deleteProvider:[t]}),o=ti(i||[]);return r.providerData=r.providerData.filter(e=>o.has(e.providerId)),o.has("phone")||(r.phoneNumber=null),await r.auth._persistUserIfCurrent(r),r}async function ts(e,t,r=!1){let n=await z(e,t._linkToIdToken(e.auth,await e.getIdToken()),r);return e7._forOperation(e,"link",n)}async function ta(e,t,r){await V(t),y(ti(t.providerData).has(r)===e,t.auth,!1===e?"provider-already-linked":"no-such-provider")}async function tc(e,t,r=!1){let{auth:n}=e,i="reauthenticate";try{let o=await z(e,tn(n,i,t,e),r);y(o.idToken,n,"internal-error");let s=H(o.idToken);y(s,n,"internal-error");let{sub:a}=s;return y(e.uid===a,n,"user-mismatch"),e7._forOperation(e,i,o)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&d(n,"user-mismatch"),e}}async function tu(e,t,r=!1){let n="signIn",i=await tn(e,n,t),o=await e7._fromIdTokenResponse(e,n,i);return r||await e._updateCurrentUser(o.user),o}async function tl(e,t){return tu(ek(e),t)}async function th(e,t){let r=n.getModularInstance(e);return await ta(!1,r,t.providerId),ts(r,t)}async function td(e,t){return tc(n.getModularInstance(e),t)}async function tp(e,t){return R(e,"POST","/v1/accounts:signInWithCustomToken",x(e,t))}async function tf(e,t){let r=ek(e),n=await tp(r,{token:t,returnSecureToken:!0}),i=await e7._fromIdTokenResponse(r,"signIn",n);return await r._updateCurrentUser(i.user),i}class tm{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?tg._fromServerResponse(e,t):"totpInfo"in t?ty._fromServerResponse(e,t):d(e,"internal-error")}}class tg extends tm{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new tg(t)}}class ty extends tm{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new ty(t)}}function tv(e,t,r){var n;y((null==(n=r.url)?void 0:n.length)>0,e,"invalid-continue-uri"),y(void 0===r.dynamicLinkDomain||r.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),t.continueUrl=r.url,t.dynamicLinkDomain=r.dynamicLinkDomain,t.canHandleCodeInApp=r.handleCodeInApp,r.iOS&&(y(r.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=r.iOS.bundleId),r.android&&(y(r.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=r.android.installApp,t.androidMinimumVersionCode=r.android.minimumVersion,t.androidPackageName=r.android.packageName)}async function t_(e,t,r){var n;let i=ek(e),o={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};if(null==(n=i._getRecaptchaConfig())?void 0:n.emailPasswordEnabled){let e=await ew(i,o,"getOobCode",!0);r&&tv(i,e,r),await eU(i,e)}else r&&tv(i,o,r),await eU(i,o).catch(async e=>{if("auth/missing-recaptcha-token"!==e.code)return Promise.reject(e);{console.log("Password resets are protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the password reset flow.");let e=await ew(i,o,"getOobCode",!0);r&&tv(i,e,r),await eU(i,e)}})}async function tb(e,t,r){await eR(n.getModularInstance(e),{oobCode:t,newPassword:r})}async function tw(e,t){await eM(n.getModularInstance(e),{oobCode:t})}async function tS(e,t){let r=n.getModularInstance(e),i=await eR(r,{oobCode:t}),o=i.requestType;switch(y(o,r,"internal-error"),o){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":y(i.newEmail,r,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":y(i.mfaInfo,r,"internal-error");default:y(i.email,r,"internal-error")}let s=null;return i.mfaInfo&&(s=tm._fromServerResponse(ek(r),i.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.newEmail:i.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.email:i.newEmail)||null,multiFactorInfo:s},operation:o}}async function tE(e,t){let{data:r}=await tS(n.getModularInstance(e),t);return r.email}async function tk(e,t,r){var n;let i,o=ek(e),s={returnSecureToken:!0,email:t,password:r,clientType:"CLIENT_TYPE_WEB"};if(null==(n=o._getRecaptchaConfig())?void 0:n.emailPasswordEnabled){let e=await ew(o,s,"signUpPassword");i=e9(o,e)}else i=e9(o,s).catch(async e=>
20{if("auth/missing-recaptcha-token"!==e.code)return Promise.reject(e);{console.log("Sign-up is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-up flow.");let e=await ew(o,s,"signUpPassword");return e9(o,e)}});let a=await i.catch(e=>Promise.reject(e)),c=await e7._fromIdTokenResponse(o,"signIn",a);return await o._updateCurrentUser(c.user),c}async function tI(e,t,r){var n;let i=ek(e),o={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};function s(e,t){y(t.handleCodeInApp,i,"argument-error"),t&&tv(i,e,t)}if(null==(n=i._getRecaptchaConfig())?void 0:n.emailPasswordEnabled){let e=await ew(i,o,"getOobCode",!0);s(e,r),await ej(i,e)}else s(o,r),await ej(i,o).catch(async e=>{if("auth/missing-recaptcha-token"!==e.code)return Promise.reject(e);{console.log("Email link sign-in is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");let e=await ew(i,o,"getOobCode",!0);s(e,r),await ej(i,e)}})}async function tC(e,t,r){let i=n.getModularInstance(e),o=eQ.credentialWithLink(t,r||b());return y(o._tenantId===(i.tenantId||null),i,"tenant-id-mismatch"),tl(i,o)}async function tT(e,t){return A(e,"POST","/v1/accounts:createAuthUri",x(e,t))}async function tx(e,t){let r=w()?b():"http://localhost",{signinMethods:i}=await tT(n.getModularInstance(e),{identifier:t,continueUri:r});return i||[]}async function tA(e,t){let r=n.getModularInstance(e),i={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&tv(r.auth,i,t);let{email:o}=await eD(r.auth,i);o!==e.email&&await e.reload()}async function tO(e,t,r){let i=n.getModularInstance(e),o={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};r&&tv(i.auth,o,r);let{email:s}=await eF(i.auth,o);s!==e.email&&await e.reload()}async function tR(e,t){return A(e,"POST","/v1/accounts:update",t)}async function tP(e,{displayName:t,photoURL:r}){if(void 0===t&&void 0===r)return;let i=n.getModularInstance(e),o=await i.getIdToken(),s=await z(i,tR(i.auth,{idToken:o,displayName:t,photoUrl:r,returnSecureToken:!0}));i.displayName=s.displayName||null,i.photoURL=s.photoUrl||null;let a=i.providerData.find(({providerId:e})=>"password"===e);a&&(a.displayName=i.displayName,a.photoURL=i.photoURL),await i._updateTokensIfNecessary(s)}async function tM(e,t,r){let{auth:n}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),r&&(i.password=r);let o=await z(e,eP(n,i));await e._updateTokensIfNecessary(o,!0)}class tN{constructor(e,t,r={}){this.isNewUser=e,this.providerId=t,this.profile=r}}class tL extends tN{constructor(e,t,r,n){super(e,t,r),this.username=n}}class tD extends tN{constructor(e,t){super(e,"facebook.com",t)}}class tU extends tL{constructor(e,t){super(e,"github.com",t,"string"==typeof(null==t?void 0:t.login)?null==t?void 0:t.login:null)}}class tj extends tN{constructor(e,t){super(e,"google.com",t)}}class tF extends tL{constructor(e,t,r){super(e,"twitter.com",t,r)}}function tB(e,t,r,i){return n.getModularInstance(e).onIdTokenChanged(t,r,i)}function tH(e,t,r){return n.getModularInstance(e).beforeAuthStateChanged(t,r)}async function tz(e){return n.getModularInstance(e).delete()}class t${constructor(e,t,r){this.type=e,this.credential=t,this.auth=r}static _fromIdtoken(e,t){return new t$("enroll",e,t)}static _fromMfaPendingCredential(e){return new t$("signin",e)}toJSON(){return{multiFactorSession:{["enroll"===this.type?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(e){var t,r;if(null==e?void 0:e.multiFactorSession){if(null==(t=e.multiFactorSession)?void 0:t.pendingCredential)return t$._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);else if(null==(r=e.multiFactorSession)?void 0:r.idToken)return t$._fromIdtoken(e.multiFactorSession.idToken)}return null}}class tq{constructor(e,t,r){this.session=e,this.hints=t,this.signInResolver=r}static _fromError(e,t){let r=ek(e),n=t.customData._serverResponse,i=(n.mfaInfo||[]).map(e=>tm._fromServerResponse(r,e));y(n.mfaPendingCredential,r,"internal-error");let o=t$._fromMfaPendingCredential(n.mfaPendingCredential);return new tq(o,i,async e=>{let i=await e._process(r,o);delete n.mfaInfo,delete n.mfaPendingCredential;let s=Object.assign(Object.assign({},n),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":let a=await e7._fromIdTokenResponse(r,t.operationType,s);return await r._updateCurrentUser(a.user),a;case"reauthenticate":return y(t.user,r,"internal-error"),e7._forOperation(t.user,t.operationType,s);default:d(r,"internal-error")}})}async resolveSignIn(e){return this.signInResolver(e)}}class tV{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(t=>tm._fromServerResponse(e.auth,t)))})}static _fromUser(e){return new tV(e)}async getSession(){return t$._fromIdtoken(await this.user.getIdToken(),this.user.auth)}
20async enroll(e,t){let r=await this.getSession(),n=await z(this.user,e._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(n),this.user.reload()}async unenroll(e){let t="string"==typeof e?e:e.uid,r=await this.user.getIdToken();try{var n,i;let e=await z(this.user,(n=this.user.auth,i={idToken:r,mfaEnrollmentId:t},A(n,"POST","/v2/accounts/mfaEnrollment:withdraw",x(n,i))));this.enrolledFactors=this.enrolledFactors.filter(({uid:e})=>e!==t),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(e){throw e}}}let tG=new WeakMap,tW="__sak";class tY{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(tW,"1"),this.storage.removeItem(tW),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 tK extends tY{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=n.getUA();return ei(e)||el(e)}()&&function(){try{return!!(window&&window!==window.top)}catch(e){return!1}}(),this.fallbackToPolling=eh(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let r=this.storage.getItem(t),n=this.localCache[t];r!==n&&e(t,n,r)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,r)=>{this.notifyListeners(e,r)});let r=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){let n=this.storage.getItem(r);if(e.newValue!==n)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!t)return}let i=()=>{let e=this.storage.getItem(r);(t||this.localCache[r]!==e)&&this.notifyListeners(r,e)},o=this.storage.getItem(r);n.isIE()&&10===document.documentMode&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,10):i()}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:r}),!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]}}tK.type="LOCAL";class tJ extends tY{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}tJ.type="SESSION";class tX{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 r=new tX(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:r,data:n}=e.data,i=this.handlersMap[r];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:r});let o=Array.from(i).map(async t=>t(e.origin,n)),s=await Promise.all(o.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:r,response:s})}_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 tQ(e="",t=10){let r="";for(let e=0;e<t;e++)r+=Math.floor(10*Math.random());return e+r}tX.receivers=[];class tZ{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,r=50){let n,i,o="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!o)throw Error("connection_unavailable");return new Promise((s,a)=>{let c=tQ("",20);o.port1.start();let u=setTimeout(()=>{a(Error("unsupported_event"))},r);i={messageChannel:o,onMessage(e){if(e.data.eventId===c)switch(e.data.status){case"ack":clearTimeout(u),n=setTimeout(()=>{a(Error("timeout"))},3e3);break;case"done":clearTimeout(n),s(e.data.response);break;default:clearTimeout(u),clearTimeout(n),a(Error("invalid_response"))}}},this.handlers.add(i),o.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[o.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}function t0(){return window}
20function t1(){return void 0!==t0().WorkerGlobalScope&&"function"==typeof t0().importScripts}async function t2(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}let t3="firebaseLocalStorageDb",t6="firebaseLocalStorage",t8="fbase_key";class t4{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 t5(e,t){return e.transaction([t6],t?"readwrite":"readonly").objectStore(t6)}function t9(){let e=indexedDB.open(t3,1);return new Promise((t,r)=>{e.addEventListener("error",()=>{r(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(t6,{keyPath:t8})}catch(e){r(e)}}),e.addEventListener("success",async()=>{let r=e.result;r.objectStoreNames.contains(t6)?t(r):(r.close(),await new t4(indexedDB.deleteDatabase(t3)).toPromise(),t(await t9()))})})}async function t7(e,t,r){return new t4(t5(e,!0).put({[t8]:t,value:r})).toPromise()}async function re(e,t){let r=t5(e,!1).get(t),n=await new t4(r).toPromise();return void 0===n?null:n.value}function rt(e,t){return new t4(t5(e,!0).delete(t)).toPromise()}class rr{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 t9()),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 t1()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=tX._getInstance(t1()?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 t2(),!this.activeServiceWorker)return;this.sender=new tZ(this.activeServiceWorker);let r=await this.sender._send("ping",{},800);r&&(null==(e=r[0])?void 0:e.fulfilled)&&(null==(t=r[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 t9();return await t7(e,tW,"1"),await rt(e,tW),!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(r=>t7(r,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>re(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>rt(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new t4(t5(e,!1).getAll()).toPromise());if(!e||0!==this.pendingWrites)return[];let t=[],r=new Set;for(let{fbase_key:n,value:i}of e)r.add(n),JSON.stringify(this.localCache[n])!==JSON.stringify(i)&&(this.notifyListeners(n,i),t.push(n));for(let e of Object.keys(this.localCache))this.localCache[e]&&!r.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let r=this.listeners[e];if(r)for(let e of Array.from(r))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()}}rr.type="LOCAL";class rn{constructor(e){this.auth=e,this.counter=1e12,this._widgets=new Map}render(e,t){let r=this.counter;return this._widgets.set(r,new ri(e,this.auth.name,t||{})),this.counter++,r}reset(e){var t;let r=e||1e12;null==(t=this._widgets.get(r))||t.delete(),this._widgets.delete(r)}getResponse(e){var t;return(null==(t=this._widgets.get(e||1e12))?void 0:t.getResponse())||""}async execute(e){var t;return null==(t=this._widgets.get(e||1e12))||t.execute(),""}}class ri{constructor(e,t,r){this.params=r,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};let n="string"==typeof e?document.getElementById(e):e;y(n,"argument-error",{appName:t}),this.container=n,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout(()=>{this.responseToken=function(e){let t=[],r="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let e=0;e<50;e++)t.push(r.charAt(Math.floor(Math.random()*r.length)));return t.join("")}(50);let{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(e){}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(e){}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw Error("reCAPTCHA mock was already deleted!")}}let ro=e_("rcb"),rs=new E(3e4,6e4);class ra{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null==(e=t0().grecaptcha)?void 0:e.render)}load(e,t=""){var r;return(y((r=t).length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(r),e,"argument-error"),this.shouldResolveImmediately(t)&&em(t0().grecaptcha))?Promise.resolve(t0().grecaptcha):new Promise((r,i)=>{let o=t0().setTimeout(()=>{i(p(e,"network-request-failed"))},rs.get());t0()[ro]=()=>{t0().clearTimeout(o),delete t0()[ro];let n=t0().grecaptcha;if(!n||!em(n))return void i(p(e,"internal-error"));let s=n.render;n.render=(e,t)=>{let r=s(e,t);return this.counter++,r},this.hostLanguage=t,r(n)},ev(`https://www.google.com/recaptcha/api.js??${n.querystring({onload:ro,render:"explicit",hl:t})}`).catch(()=>{clearTimeout(o),i(p(e,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null==(t=t0().grecaptcha)?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class rc{async load(e){return new rn(e)}clearedOneInstance(){}}let ru="recaptcha",rl={theme:"light",type:"image"};class rh{constructor(e,t=Object.assign({},rl),r){this.parameters=t,this.type=ru,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=ek(r),this.isInvisible="invisible"===this.parameters.size,y("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");let n="string"==typeof e?document.getElementById(e):e;y(n,this.auth,"argument-error"),this.container=n,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new rc:new ra,this.validateStartingState()}async verify(){this.assertNotDestroyed();let e=await this.render(),t=this.getAssertedRecaptcha(),r=t.getResponse(e);return r||new Promise(r=>{let n=e=>{e&&(this.tokenChangeListeners.delete(n),r(e))};this.tokenChangeListeners.add(n),this.isInvisible&&t.execute(e)})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
20h(e=>{this.container.removeChild(e)})}validateStartingState(){y(!this.parameters.sitekey,this.auth,"argument-error"),y(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),y("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(e=>e(t)),"function"==typeof e)e(t);else if("string"==typeof e){let r=t0()[e];"function"==typeof r&&r(t)}}}assertNotDestroyed(){y(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){let t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){let e;y(w()&&!t1(),this.auth,"internal-error"),await (e=null,new Promise(t=>{if("complete"===document.readyState)return void t();e=()=>t(),window.addEventListener("load",e)}).catch(t=>{throw e&&window.removeEventListener("load",e),t})),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);let t=await ep(this.auth);y(t,this.auth,"internal-error"),this.parameters.sitekey=t}getAssertedRecaptcha(){return y(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class rd{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){let t=eJ._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}async function rp(e,t,r){let i=ek(e);return new rd(await rg(i,t,n.getModularInstance(r)),e=>tl(i,e))}async function rf(e,t,r){let i=n.getModularInstance(e);return await ta(!1,i,"phone"),new rd(await rg(i.auth,t,n.getModularInstance(r)),e=>th(i,e))}async function rm(e,t,r){let i=n.getModularInstance(e);return new rd(await rg(i.auth,t,n.getModularInstance(r)),e=>td(i,e))}async function rg(e,t,r){var n,i,o;let s=await r.verify();try{let a;if(y("string"==typeof s,e,"argument-error"),y(r.type===ru,e,"argument-error"),a="string"==typeof t?{phoneNumber:t}:t,"session"in a){let t=a.session;if("phoneNumber"in a)return y("enroll"===t.type,e,"internal-error"),(await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:a.phoneNumber,recaptchaToken:s}},A(e,"POST","/v2/accounts/mfaEnrollment:start",x(e,i)))).phoneSessionInfo.sessionInfo;{y("signin"===t.type,e,"internal-error");let r=(null==(n=a.multiFactorHint)?void 0:n.uid)||a.multiFactorUid;return y(r,e,"missing-multi-factor-info"),(await (o={mfaPendingCredential:t.credential,mfaEnrollmentId:r,phoneSignInInfo:{recaptchaToken:s}},A(e,"POST","/v2/accounts/mfaSignIn:start",x(e,o)))).phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await eV(e,{phoneNumber:a.phoneNumber,recaptchaToken:s});return t}}finally{r._reset()}}async function ry(e,t){await ts(n.getModularInstance(e),t)}class rv{constructor(e){this.providerId=rv.PROVIDER_ID,this.auth=ek(e)}verifyPhoneNumber(e,t){return rg(this.auth,e,n.getModularInstance(t))}static credential(e,t){return eJ._fromVerification(e,t)}static credentialFromResult(e){return rv.credentialFromTaggedObject(e)}static credentialFromError(e){return rv.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:r}=e;return t&&r?eJ._fromTokenResponse(t,r):null}}function r_(e,t){return t?Q(t):(y(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}rv.PROVIDER_ID="phone",rv.PHONE_SIGN_IN_METHOD="phone";class rb extends eO{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return e$(e,this._buildIdpRequest())}_linkToIdToken(e,t){return e$(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return e$(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 rw(e){return tu(e.auth,new rb(e),e.bypassAuthState)}function rS(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),tc(r,new rb(e),e.bypassAuthState)}async function rE(e){let{auth:t,user:r}=e;return y(r,t,"internal-error"),ts(r,new rb(e),e.bypassAuthState)}class rk{constructor(e,t,r,n,i=!1){this.auth=e,this.resolver=r,this.user=n,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:r,postBody:n,tenantId:i,error:o,type:s}=e;if(o)return void this.reject(o);let a={auth:this.auth,requestUri:t,sessionId:r,tenantId:i||void 0,postBody:n||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return rw;case"linkViaPopup":case"linkViaRedirect":return rE;case"reauthViaPopup":case"reauthViaRedirect":return rS;default:d(this.auth,"internal-error")}}resolve(e){_(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){_(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}let rI=new E(2e3,1e4);async function rC(e,t,r){let n=ek(e);m(e,t,eZ);let i=r_(n,r);return new rA(n,"signInViaPopup",t,i).executeNotNull()}async function rT(e,t,r){let i=n.getModularInstance(e);m(i.auth,t,eZ);let o=r_(i.auth,r);return new rA(i.auth,"reauthViaPopup",t,o,i).executeNotNull()}async function rx(e,t,r){let i=n.getModularInstance(e);m(i.auth,t,eZ);let o=r_(i.auth,r);return new rA(i.auth,"linkViaPopup",t,o,i).executeNotNull()}class rA extends rk{constructor(e,t,r,n,i){super(e,t,n,i),this.provider=r,this.authWindow=null,this.pollId=null,rA.currentPopupAction&&rA.currentPopupAction.cancel(),rA.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return y(e,this.auth,"internal-error"),e}async onExecution(){_(1===this.filter.length,"Popup operations only handle one event");let e=tQ();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,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,rA.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,r;if(null==(r=null==(t=this.authWindow)?void 0:t.window)?void 0:r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,rI.get())};e()}}rA.currentPopupAction=null;let rO=new Map;class rR extends rk{constructor(e,t,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,r),this.eventId=null}async execute(){let e=rO.get(this.auth._key());if(!e){try{let t=await rP(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}rO.set(this.auth._key(),e)}return this.bypassAuthState||rO.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
20if("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 rP(e,t){let r=rD(t),n=rL(e);if(!await n._isAvailable())return!1;let i=await n._get(r)==="true";return await n._remove(r),i}async function rM(e,t){return rL(e)._set(rD(t),"true")}function rN(e,t){rO.set(e._key(),t)}function rL(e){return Q(e._redirectPersistence)}function rD(e){return ee("pendingRedirect",e.config.apiKey,e.name)}async function rU(e,t,r){let n=ek(e);m(e,t,eZ),await n._initializationPromise;let i=r_(n,r);return await rM(i,n),i._openRedirect(n,t,"signInViaRedirect")}async function rj(e,t,r){let i=n.getModularInstance(e);m(i.auth,t,eZ),await i.auth._initializationPromise;let o=r_(i.auth,r);await rM(o,i.auth);let s=await rz(i);return o._openRedirect(i.auth,t,"reauthViaRedirect",s)}async function rF(e,t,r){let i=n.getModularInstance(e);m(i.auth,t,eZ),await i.auth._initializationPromise;let o=r_(i.auth,r);await ta(!1,i,t.providerId),await rM(o,i.auth);let s=await rz(i);return o._openRedirect(i.auth,t,"linkViaRedirect",s)}async function rB(e,t){return await ek(e)._initializationPromise,rH(e,t,!1)}async function rH(e,t,r=!1){let n=ek(e),i=r_(n,t),o=new rR(n,i,r),s=await o.execute();return s&&!r&&(delete s.user._redirectEventId,await n._persistUserIfCurrent(s.user),await n._setRedirectUser(null,t)),s}async function rz(e){let t=tQ(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}class r${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(r=>{this.isEventForConsumer(e,r)&&(t=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return rV(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var r;if(e.error&&!rV(e)){let n=(null==(r=e.error.code)?void 0:r.split("auth/")[1])||"internal-error";t.onError(p(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let r=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(rq(e))}saveEventToCache(e){this.cachedEventUids.add(rq(e)),this.lastProcessedEventTime=Date.now()}}function rq(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function rV({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}async function rG(e,t={}){return A(e,"GET","/v1/projects",t)}let rW=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,rY=/^https?/;async function rK(e){if(e.config.emulator)return;let{authorizedDomains:t}=await rG(e);for(let e of t)try{if(function(e){let t=b(),{protocol:r,hostname:n}=new URL(t);if(e.startsWith("chrome-extension://")){let i=new URL(e);return""===i.hostname&&""===n?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&i.hostname===n}if(!rY.test(r))return!1;if(rW.test(e))return n===e;let i=e.replace(/\./g,"\\.");return RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}(e))return}catch(e){}d(e,"unauthorized-domain")}let rJ=new E(3e4,6e4);function rX(){let e=t0().___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 rQ=null,rZ=new E(5e3,15e3),r0={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},r1=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function r2(e){let t=await (rQ=rQ||new Promise((t,r)=>{var n,i,o;function s(){rX(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{rX(),r(p(e,"network-request-failed"))},timeout:rJ.get()})}if(null==(i=null==(n=t0().gapi)?void 0:n.iframes)?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null==(o=t0().gapi)?void 0:o.load)s();else{let t=e_("iframefcb");return t0()[t]=()=>{gapi.load?s():r(p(e,"network-request-failed"))},ev(`https://apis.google.com/js/api.js?onload=${t}`).catch(e=>r(e))}}).catch(e=>{throw rQ=null,e})),r=t0().gapi;return y(r,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;y(t.authDomain,e,"auth-domain-config-required");let r=t.emulator?k(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
20/__/auth/iframe`,o={apiKey:t.apiKey,appName:e.name,v:i.SDK_VERSION},s=r1.get(e.config.apiHost);s&&(o.eid=s);let a=e._getFrameworks();return a.length&&(o.fw=a.join(",")),`${r}?${n.querystring(o).slice(1)}`}(e),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:r0,dontclear:!0},t=>new Promise(async(r,n)=>{await t.restyle({setHideOnLeave:!1});let i=p(e,"network-request-failed"),o=t0().setTimeout(()=>{n(i)},rZ.get());function s(){t0().clearTimeout(o),r(t)}t.ping(s).then(s,()=>{n(i)})}))}let r3={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class r6{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let r8=encodeURIComponent("fac");async function r4(e,t,r,o,s,a){y(e.config.authDomain,e,"auth-domain-config-required"),y(e.config.apiKey,e,"invalid-api-key");let c={apiKey:e.config.apiKey,appName:e.name,authType:r,redirectUrl:o,v:i.SDK_VERSION,eventId:s};if(t instanceof eZ)for(let[r,i]of(t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",n.isEmpty(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(a||{})))c[r]=i;if(t instanceof e0){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(c.scopes=e.join(","))}for(let t of(e.tenantId&&(c.tid=e.tenantId),Object.keys(c)))void 0===c[t]&&delete c[t];let u=await e._getAppCheckToken(),l=u?`#${r8}=${encodeURIComponent(u)}`:"";return`${function({config:e}){return e.emulator?k(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${n.querystring(c).slice(1)}${l}`}let r5="webStorageSupport";class r9{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=tJ,this._completeRedirectFn=rH,this._overrideRedirectResult=rN}async _openPopup(e,t,r,i){var o;_(null==(o=this.eventManagers[e._key()])?void 0:o.manager,"_initialize() not called before _openPopup()");let s=await r4(e,t,r,b(),i);return function(e,t,r,i=500,o=600){let s=Math.max((window.screen.availHeight-o)/2,0).toString(),a=Math.max((window.screen.availWidth-i)/2,0).toString(),c="",u=Object.assign(Object.assign({},r3),{width:i.toString(),height:o.toString(),top:s,left:a}),l=n.getUA().toLowerCase();r&&(c=eo(l)?"_blank":r),en(l)&&(t=t||"http://localhost",u.scrollbars="yes");let h=Object.entries(u).reduce((e,[t,r])=>`${e}${t}=${r},`,"");if(function(e=n.getUA()){var t;return el(e)&&!!(null==(t=window.navigator)?void 0:t.standalone)}(l)&&"_self"!==c)return function(e,t){let r=document.createElement("a");r.href=e,r.target=t;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(n)}(t||"",c),new r6(null);let d=window.open(t||"",c,h);y(d,e,"popup-blocked");try{d.focus()}catch(e){}return new r6(d)}(e,s,tQ())}async _openRedirect(e,t,r,n){var i;return await this._originValidation(e),i=await r4(e,t,r,b(),n),t0().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:e,promise:r}=this.eventManagers[t];return e?Promise.resolve(e):(_(r,"If manager is not set, promise should be"),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 r2(e),r=new r$(e);return t.register("authEvent",t=>(y(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:r.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=t,r}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(r5,{type:r5},r=>{var n;let i=null==(n=null==r?void 0:r[0])?void 0:n[r5];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]=rK(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return eh()||ei()||el()}}class r7{constructor(e){this.factorId=e}_process(e,t,r){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,r);case"signin":return this._finalizeSignIn(e,t.credential);default:return v("unexpected MultiFactorSessionType")}}}class ne extends r7{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new ne(e)}_finalizeEnroll(e,t,r){return A(e,"POST","/v2/accounts/mfaEnrollment:finalize",x(e,{idToken:t,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return A(e,"POST","/v2/accounts/mfaSignIn:finalize",x(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class nt{constructor(){}static assertion(e){return ne._fromCredential(e)}}nt.FACTOR_ID="phone";class nr{static assertionForEnrollment(e,t){return nn._fromSecret(e,t)}static assertionForSignIn(e,t){return nn._fromEnrollmentId(e,t)}static async generateSecret(e){var t;y(void 0!==e.auth,"internal-error");let r=await A(t=e.auth,"POST","/v2/accounts/mfaEnrollment:start",x(t,{idToken:e.credential,totpEnrollmentInfo:{}}));return ni._fromStartTotpMfaEnrollmentResponse(r,e.auth)}}nr.FACTOR_ID="totp";class nn extends r7{constructor(e,t,r){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=r}static _fromSecret(e,t){return new nn(t,void 0,e)}static _fromEnrollmentId(e,t){return new nn(t,e)}async _finalizeEnroll(e,t,r){return y(void 0!==this.secret,e,"argument-error"),A(e,"POST","/v2/accounts/mfaEnrollment:finalize",x(e,{idToken:t,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){y(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let r={verificationCode:this.otp};return A(e,"POST","/v2/accounts/mfaSignIn:finalize",x(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r}))}}class ni{constructor(e,t,r,n,i,o,s){this.sessionInfo=o,this.auth=s,this.secretKey=e,this.hashingAlgorithm=t,this.co
20deLength=r,this.codeIntervalSeconds=n,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new ni(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 r;let n=!1;return(no(e)||no(t))&&(n=!0),n&&(no(e)&&(e=(null==(r=this.auth.currentUser)?void 0:r.email)||"unknownuser"),no(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function no(e){return void 0===e||(null==e?void 0:e.length)===0}var ns="@firebase/auth",na="0.23.2";class nc{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(){y(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let nu=n.getExperimentalSetting("authIdTokenMaxAge")||300,nl=null;!function(e){i._registerComponent(new a.Component("auth",(t,{options:r})=>{let n=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=n.options;y(s&&!s.includes(":"),"invalid-api-key",{appName:n.name});let c=new eE(n,i,o,{apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ed(e)}),u=(null==r?void 0:r.persistence)||[],l=(Array.isArray(u)?u:[u]).map(Q);return(null==r?void 0:r.errorMap)&&c._updateErrorMap(r.errorMap),c._initializeWithPersistence(l,null==r?void 0:r.popupRedirectResolver),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,r)=>{e.getProvider("auth-internal").initialize()})),i._registerComponent(new a.Component("auth-internal",e=>new nc(ek(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),i.registerVersion(ns,na,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(e)),i.registerVersion(ns,na,"cjs2017")}("Browser"),t.AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY={ADMIN_ONLY_OPERATION:"auth/admin-restricted-operation",ARGUMENT_ERROR:"auth/argument-error",APP_NOT_AUTHORIZED:"auth/app-not-authorized",APP_NOT_INSTALLED:"auth/app-not-installed",CAPTCHA_CHECK_FAILED:"auth/captcha-check-failed",CODE_EXPIRED:"auth/code-expired",CORDOVA_NOT_READY:"auth/cordova-not-ready",CORS_UNSUPPORTED:"auth/cors-unsupported",CREDENTIAL_ALREADY_IN_USE:"auth/credential-already-in-use",CREDENTIAL_MISMATCH:"auth/custom-token-mismatch",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"auth/requires-recent-login",DEPENDENT_SDK_INIT_BEFORE_AUTH:"auth/dependent-sdk-initialized-before-auth",DYNAMIC_LINK_NOT_ACTIVATED:"auth/dynamic-link-not-activated",EMAIL_CHANGE_NEEDS_VERIFICATION:"auth/email-change-needs-verification",EMAIL_EXISTS:"auth/email-already-in-use",EMULATOR_CONFIG_FAILED:"auth/emulator-config-failed",EXPIRED_OOB_CODE:"auth/expired-action-code",EXPIRED_POPUP_REQUEST:"auth/cancelled-popup-request",INTERNAL_ERROR:"auth/internal-error",INVALID_API_KEY:"auth/invalid-api-key",INVALID_APP_CREDENTIAL:"auth/invalid-app-credential",INVALID_APP_ID:"auth/invalid-app-id",INVALID_AUTH:"auth/invalid-user-token",INVALID_AUTH_EVENT:"auth/invalid-auth-event",INVA
20LID_CERT_HASH:"auth/invalid-cert-hash",INVALID_CODE:"auth/invalid-verification-code",INVALID_CONTINUE_URI:"auth/invalid-continue-uri",INVALID_CORDOVA_CONFIGURATION:"auth/invalid-cordova-configuration",INVALID_CUSTOM_TOKEN:"auth/invalid-custom-token",INVALID_DYNAMIC_LINK_DOMAIN:"auth/invalid-dynamic-link-domain",INVALID_EMAIL:"auth/invalid-email",INVALID_EMULATOR_SCHEME:"auth/invalid-emulator-scheme",INVALID_IDP_RESPONSE:"auth/invalid-credential",INVALID_MESSAGE_PAYLOAD:"auth/invalid-message-payload",INVALID_MFA_SESSION:"auth/invalid-multi-factor-session",INVALID_OAUTH_CLIENT_ID:"auth/invalid-oauth-client-id",INVALID_OAUTH_PROVIDER:"auth/invalid-oauth-provider",INVALID_OOB_CODE:"auth/invalid-action-code",INVALID_ORIGIN:"auth/unauthorized-domain",INVALID_PASSWORD:"auth/wrong-password",INVALID_PERSISTENCE:"auth/invalid-persistence-type",INVALID_PHONE_NUMBER:"auth/invalid-phone-number",INVALID_PROVIDER_ID:"auth/invalid-provider-id",INVALID_RECIPIENT_EMAIL:"auth/invalid-recipient-email",INVALID_SENDER:"auth/invalid-sender",INVALID_SESSION_INFO:"auth/invalid-verification-id",INVALID_TENANT_ID:"auth/invalid-tenant-id",MFA_INFO_NOT_FOUND:"auth/multi-factor-info-not-found",MFA_REQUIRED:"auth/multi-factor-auth-required",MISSING_ANDROID_PACKAGE_NAME:"auth/missing-android-pkg-name",MISSING_APP_CREDENTIAL:"auth/missing-app-credential",MISSING_AUTH_DOMAIN:"auth/auth-domain-config-required",MISSING_CODE:"auth/missing-verification-code",MISSING_CONTINUE_URI:"auth/missing-continue-uri",MISSING_IFRAME_START:"auth/missing-iframe-start",MISSING_IOS_BUNDLE_ID:"auth/missing-ios-bundle-id",MISSING_OR_INVALID_
20NONCE:"auth/missing-or-invalid-nonce",MISSING_MFA_INFO:"auth/missing-multi-factor-info",MISSING_MFA_SESSION:"auth/missing-multi-factor-session",MISSING_PHONE_NUMBER:"auth/missing-phone-number",MISSING_SESSION_INFO:"auth/missing-verification-id",MODULE_DESTROYED:"auth/app-deleted",NEED_CONFIRMATION:"auth/account-exists-with-different-credential",NETWORK_REQUEST_FAILED:"auth/network-request-failed",NULL_USER:"auth/null-user",NO_AUTH_EVENT:"auth/no-auth-event",NO_SUCH_PROVIDER:"auth/no-such-provider",OPERATION_NOT_ALLOWED:"auth/operation-not-allowed",OPERATION_NOT_SUPPORTED:"auth/operation-not-supported-in-this-environment",POPUP_BLOCKED:"auth/popup-blocked",POPUP_CLOSED_BY_USER:"auth/popup-closed-by-user",PROVIDER_ALREADY_LINKED:"auth/provider-already-linked",QUOTA_EXCEEDED:"auth/quota-exceeded",REDIRECT_CANCELLED_BY_USER:"auth/redirect-cancelled-by-user",REDIRECT_OPERATION_PENDING:"auth/redirect-operation-pending",REJECTED_CREDENTIAL:"auth/rejected-credential",SECOND_FACTOR_ALREADY_ENROLLED:"auth/second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"auth/maximum-second-factor-count-exceeded",TENANT_ID_MISMATCH:"auth/tenant-id-mismatch",TIMEOUT:"auth/timeout",TOKEN_EXPIRED:"auth/user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"auth/too-many-requests",UNAUTHORIZED_DOMAIN:"auth/unauthorized-continue-uri",UNSUPPORTED_FIRST_FACTOR:"auth/unsupported-first-factor",UNSUPPORTED_PERSISTENCE:"auth/unsupported-persistence-type",UNSUPPORTED_TENANT_OPERATION:"auth/unsupported-tenant-operation",UNVERIFIED_EMAIL:"auth/unverified-email",USER_CANCELLED:"auth/user-cancelled",USER_DELETED:"auth/user-not-found",USER_DISABLED:"auth/user-disabled",USER_MISMATCH:"auth/user-mismatch",USER_SIGNED_OUT:"auth/user-signed-out",WEAK_PASSWORD:"auth/weak-password",WEB_STORAGE_UNSUPPORTED:"auth/web-storage-unsupported",ALREADY_INITIALIZED:"auth/already-initialized",RECAPTCHA_NOT_ENABLED:"auth/recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"auth/missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"auth/invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"auth/invalid-recaptcha-action",MISSING_CLIENT_TYPE:"auth/missing-client-type",MISSING_RECAPTCHA_VERSION:"auth/missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"auth/invalid-recaptcha-version",INVALID_REQ_TYPE:"auth/invalid-req-type"},t.ActionCodeOperation={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"},t.ActionCodeURL=eX,t.AuthCredential=eO,t.AuthEventManager=r$,t.AuthImpl=eE,t.AuthPopup=r6,t.EmailAuthCredential=ez,t.EmailAuthProvider=eQ,t.FacebookAuthProvider=e2,t.FactorId={PHONE:"phone",TOTP:"totp"},t.FetchProvider=I,t.GithubAuthProvider=e6,t.GoogleAuthProvider=e3,t.OAuthCredential=eq,t.OAuthProvider=e1,t.OperationType={LINK:"link",REAUTHENTICATE:"reauthenticate",SIGN_IN:"signIn"},t.PhoneAuthCredential=eJ,t.PhoneAuthProvider=rv,t.PhoneMultiFactorGenerator=nt,t.ProviderId={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},t.RecaptchaVerifier=rh,t.SAMLAuthCredential=e8,t.SAMLAuthProvider=e4,t.SignInMethod={EMAIL_LINK:"emailLink",EMAIL_PASSWORD:"password",FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PHONE:"phone",TWITTER:"twitter.com"},t.TotpMultiFactorGenerator=nr,t.TotpSecret=ni,t.TwitterAuthProvider=e5,t.UserImpl=J,t._assert=y,t._castAuth=ek,t._clearRedirectOutcomes=function(){rO.clear()},t._createError=p,t._fail=d,t._generateEventId=tQ,t._getClientVersion=ed,t._getInstance=Q,t._getProjectConfig=rG,t._getRedirectResult=rH,t._getRedirectUrl=r4,t._isAndroid=ea,t._isIOS=el,t._isIOS7Or8=function(e=n.getUA()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)},t._overrideRedirectResult=rN,t._persistenceKeyName=ee,t.applyActionCode=tw,t.beforeAuthStateChanged=tH,t.browserLocalPersistence=tK,t.browserPopupRedirectResolver=r9,t.browserSessionPersistence=tJ,t.checkActionCode=tS,t.confirmPasswordReset=tb,t.connectAuthEmulator=eT,t.createUserWithEmailAndPassword=tk,t.debugAssert=_,t.debugErrorMap=function(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","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.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
20ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is
vendor: 7,825 bytes, line 20
20 malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend."
20}},t.deleteUser=tz,t.fetchSignInMethodsForEmail=tx,t.getAdditionalUserInfo=function(e){let{user:t,_tokenResponse:r}=e;return t.isAnonymous&&!r?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,r;if(!e)return null;let{providerId:n}=e,i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},o=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!n&&(null==e?void 0:e.idToken)){let n=null==(r=null==(t=H(e.idToken))?void 0:t.firebase)?void 0:r.sign_in_provider;if(n)return new tN(o,"anonymous"!==n&&"custom"!==n?n:null)}if(!n)return null;switch(n){case"facebook.com":return new tD(o,i);case"github.com":return new tU(o,i);case"google.com":return new tj(o,i);case"twitter.com":return new tF(o,i,e.screenName||null);case"custom":case"anonymous":return new tN(o,null);default:return new tN(o,n,i)}}(r)},t.getAuth=function(e=i.getApp()){let t=i._getProvider(e,"auth");if(t.isInitialized())return t.getImmediate();let r=eC(e,{popupRedirectResolver:r9,persistence:[rr,tK,tJ]}),o=n.getExperimentalSetting("authTokenSyncURL");if(o){let e=async e=>{let t=e&&await e.getIdTokenResult(),r=t&&(new Date().getTime()-Date.parse(t.issuedAtTime))/1e3;if(r&&r>nu)return;let n=null==t?void 0:t.token;nl!==n&&(nl=n,await fetch(o,{method:n?"POST":"DELETE",headers:n?{Authorization:`Bearer ${n}`}:{}}))};tH(r,e,()=>e(r.currentUser)),tB(r,t=>e(t))}let s=n.getDefaultEmulatorHost("auth");return s&&eT(r,`http://${s}`),r},t.getIdToken=function(e,t=!1){return n.getModularInstance(e).getIdToken(t)},t.getIdTokenResult=F,t.getMultiFactorResolver=function(e,t){var r;let i=n.getModularInstance(e);return y(t.customData.operationType,i,"argument-error"),y(null==(r=t.customData._serverResponse)?void 0:r.mfaPendingCredential,i,"argument-error"),tq._fromError(i,t)},t.getRedirectResult=rB,t.inMemoryPersistence=Z,t.indexedDBLocalPersistence=rr,t.initializeAuth=eC,t.initializeRecaptchaConfig=function(e){return ek(e).initializeRecaptchaConfig()},t.isSignInWithEmailLink=function(e,t){let r=eX.parseLink(t);return(null==r?void 0:r.operation)==="EMAIL_SIGNIN"},t.linkWithCredential=th,t.linkWithPhoneNumber=rf,t.linkWithPopup=rx,t.linkWithRedirect=function(e,t,r){return rF(e,t,r)},t.multiFactor=function(e){let t=n.getModularInstance(e);return tG.has(t)||tG.set(t,tV._fromUser(t)),tG.get(t)},t.onAuthStateChanged=function(e,t,r,i){return n.getModularInstance(e).onAuthStateChanged(t,r,i)},t.onIdTokenChanged=tB,t.parseActionCodeURL=function(e){return eX.parseLink(e)},t.prodErrorMap=c,t.reauthenticateWithCredential=td,t.reauthenticateWithPhoneNumber=rm,t.reauthenticateWithPopup=rT,t.reauthenticateWithRedirect=function(e,t,r){return rj(e,t,r)},t.reload=G,t.sendEmailVerification=tA,t.sendPasswordResetEmail=t_,t.sendSignInLinkToEmail=tI,t.setPersistence=function(e,t){return n.getModularInstance(e).setPersistence(t)},t.signInAnonymously=tt,t.signInWithCredential=tl,t.signInWithCustomToken=tf,t.signInWithEmailAndPassword=function(e,t,r){return tl(n.getModularInstance(e),eQ.credential(t,r))},t.signInWithEmailLink=tC,t.signInWithPhoneNumber=rp,t.signInWithPopup=rC,t.signInWithRedirect=function(e,t,r){return rU(e,t,r)},t.signOut=function(e){return n.getModularInstance(e).signOut()},t.unlink=to,t.updateCurrentUser=function(e,t){return n.getModularInstance(e).updateCurrentUser(t)},t.updateEmail=function(e,t){return tM(n.getModularInstance(e),t,null)},t.updatePassword=function(e,t){return tM(n.getModularInstance(e),null,t)},t.updatePhoneNumber=ry,t.updateProfile=tP,t.useDeviceLanguage=function(e){n.getModularInstance(e).useDeviceLanguage()},t.verifyBeforeUpdateEmail=tO,t.verifyPasswordResetCode=tE},71996:e=>{"use strict";e.exports={locales:["en","de"],defaultLocale:"en"}},72076:(e,t,r)=>{"use strict";let n=r(45564),i=r(33685),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
vendor: 21,187 bytes, line 20
200x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|f(n,i),o=s(r),c=o.write(n,i);return c!==r&&(o=o.slice(0,c)),o}if(ArrayBuffer.isView(e)){var o=e;if(U(o,Uint8Array)){let e=new Uint8Array(o);return d(e.buffer,e.byteOffset,e.byteLength)}return h(o)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return a.from(c,t,r);let u=function(e){if(a.isBuffer(e)){let t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),s(e<0?0:0|p(e))}function h(e){let t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:N(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=j[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var o,s,a;return o=this,s=t,a=r,0===s&&a===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(s,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let n=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*s}else -1!==n&&(o-=o-n),n=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return -1}function _(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=r){let r,n,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(c=(31&t)<<6|63&r)>127&&(o=c);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(o=c);break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],(192&r)==128&&(192&n)==128&&(192&a)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a)>65535&&c<1114112&&(o=c)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}var o=n;let s=o.length;if(s<=4096)return String.fromCharCode.apply(String,o);let a="",c=0;for(;c<s;)a+=String.fromCharCode.apply(String,o.slice(c,c+=4096));return a}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n,i){O(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function E(e,t,r,n,i){O(t,n,i,e,r,7);let o=Number(t&BigInt(0xffffffff));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function k(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function I(e,t,r,n,o){return t*=1,r>>>=0,o||k(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return t*=1,r>>>=0,o||k(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(U(t,Uint8Array))i+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,s=r-t,c=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r);for(let e=0;e<c;++e)if(u[e]!==l[e]){o=u[e],s=l[e];break}return o<s?-1:+(s<o)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){var i,o,s,a,c,u,l,h;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let s=t.length;for(n>s/2&&(n=s/2),i=0;i<n;++i){var a;let n=parseInt(t.substr(2*i,2),16);if((a=n)!=a)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,D(N(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=t,a=r,D(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return c=t,u=r,D(L(e),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,h=r,D(function(e,t){let r,n,i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=F(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),a.prototype.readBigUInt64BE=F(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],i=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=F(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),a.prototype.readBigInt64BE=F(function(e){R(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&P(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;w(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=F(function(e,t=0){return S(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=F(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=0,o=1,s=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){let n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=F(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=F(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=a.isBuffer(e)?e:a.from(e,n),s=o.length;
20if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};let T={};function x(e,t,r){T[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function A(e){let t="",r=e.length,n=+("-"===e[0]);for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function O(e,t,r,n,i,o){if(e>r||e<t){let n,i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new T.ERR_OUT_OF_RANGE("value",n,e)}R(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&P(i,n.length-(o+1))}function R(e,t){if("number"!=typeof e)throw new T.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw R(e,r),new T.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${t}`,e)}x("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),x("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),x("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=A(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=A(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let j=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function F(e){return"undefined"==typeof BigInt?B:e}function B(){throw Error("BigInt not supported")}},72926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(15271);n.registerVersion("firebase","9.23.0","app"),Object.keys(n).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},74422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return c}}),r(66187);let n=r(20803),i=r(87959),o=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c(e,t){var r,c;let u,l,h,{src:d,sizes:p,unoptimized:f=!1,priority:m=!1,loading:g,className:y,quality:v,width:_,height:b,fill:w=!1,style:S,overrideSrc:E,onLoad:k,onLoadingComplete:I,placeholder:C="empty",blurDataURL:T,fetchPriority:x,decoding:A="async",layout:O,objectFit:R,objectPosition:P,lazyBoundary:M,lazyRoot:N,...L}=e,{imgConf:D,showAltText:U,blurComplete:j,defaultLoader:F}=t,B=D||i.imageConfigDefault;if("allSizes"in B)u=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>
20e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=null==(r=B.qualities)?void 0:r.sort((e,t)=>e-t);u={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=L.loader||F;delete L.loader,delete L.srcSet;let z="__next_img_default"in H;if(z){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(S={...S,...e});let t={responsive:"100vw",fill:"100vw"}[O];t&&!p&&(p=t)}let $="",q=a(_),V=a(b);if((c=d)&&"object"==typeof c&&(s(c)||void 0!==c.src)){let e=s(d)?d.default:d;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(l=e.blurWidth,h=e.blurHeight,T=T||e.blurDataURL,$=e.src,!w)if(q||V){if(q&&!V){let t=q/e.width;V=Math.round(e.height*t)}else if(!q&&V){let t=V/e.height;q=Math.round(e.width*t)}}else q=e.width,V=e.height}let G=!m&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:$)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,G=!1),u.unoptimized&&(f=!0),z&&!u.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(f=!0);let W=a(v),Y=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:P}:{},U?{}:{color:"transparent"},S),K=j||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:q,heightInt:V,blurWidth:l,blurHeight:h,blurDataURL:T||"",objectFit:Y.objectFit})+'")':'url("'+C+'")',J=o.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,X=K?{backgroundSize:J,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Q=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:s,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),l=c.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:c.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:o,width:c[l]})}}({config:u,src:d,unoptimized:f,width:q,quality:W,sizes:p,loader:H});return{props:{...L,loading:G?"lazy":g,fetchPriority:x,width:q,height:V,decoding:A,className:y,style:{...Y,...X},sizes:Q.sizes,srcSet:Q.srcSet,src:E||Q.src},meta:{unoptimized:f,priority:m,placeholder:C,fill:w}}}},74957:(e,t,r)=>{"use strict";r.d(t,{GS:()=>a,HF:()=>f,W4:()=>h,my:()=>c,pO:()=>u,sp:()=>l});var n=r(39766),i=r(70326),o=r(53032),s=r(97270);function a(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let s=r(i);"function"==typeof s&&u(s,i);try{e[t]=s}catch{n.T&&o.Yz.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.T&&o.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,c(e,"__sentry_original__",t)}catch{}}function l(e){return e.__sentry_original__}function h(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(!(0,s.xH)(e))return e;{let t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function d(e){try{return(0,s.vq)(e)?(0,i.Hd)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function p(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function f(e){let t=Object.keys(h(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},75266:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s,g:()=>o});var n=r(91788),i=r(21462);let o=(0,i.createContext)({notifications:[],setNotifications:()=>{}}),s=e=>{let{notifications:t,setNotifications:r}=(0,i.useContext)(o);function s(e){r([...t,e])}return(0,i.useEffect)(()=>{let e=(0,n.pl)(document.cookie,n.d4);e&&s(JSON.parse(e)),(0,n.Ki)(n.d4)},[]),{notifications:t.filter(t=>t.forRoute===e),addNotification:s,removeNotification:function(e){r(t.filter(t=>t.id!==e))}}}},76351:()=>{},76369:(e,t,r)=>{"use strict";function n(e,t){return e.includes(t)}r.d(t,{EL:()=>n})},77093:(e,t,r)=>{"use strict";r.d(t,{HT:()=>c,ID:()=>u,UP:()=>a,uI:()=>l,zG:()=>s});var n=r(1518),i=r(89240),o=r(83241);async function s(e,t,r,s,a){let c=await (0,i.vq)(a),u=await (0,o.l)("".concat((0,n.$_)(!1),"/tracks/").concat(e,"/tutorials/").concat(t,"/chapters/").concat(r,"/savedFiles?trackVersion=").concat(s),{method:"GET",headers:{Authorization:"Bearer ".concat(c),"Content-Type":"application/json; charset=utf-8"}});if(!u.ok){let{message:e}=await u.json();throw Error("Could not fetch saved files for lesson - ".concat(u.statusText," (").concat(u.status,")").concat(e?": ".concat(e):""))}return await u.json()}async function a(e,t,r,s,a){let c=await (0,i.vq)(a),u=await (0,o.l)("".concat((0,n.$_)(!1),"/tracks/").concat(e,"/tutorials/").concat(t,"/chapters/").concat(r,"/savedFiles/clear?trackVersion=").concat(s),{method:"POST",headers:{Authorization:"Bearer ".concat(c)}});if(!u.ok){let{message:e}=await u.json();throw Error("Could not fetch saved files for lesson - ".concat(u.statusText," (").concat(u.status,")").concat(e?": ".concat(e):""))}}async function c(e,t,r,s,a,c,u){let l=await (0,i.vq)(u),h="".concat((0,n.$_)(!1),"/tracks/").concat(e,"/tutorials/").concat(t,"/chapters/").concat(r,"/lessons/").concat(s,"/savefiles?publishSetVersion=").concat(a),d={files:c.map(e=>({userContent:e.content,name:e.name}))},p=await (0,o.l)(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+l},body:JSON.stringify(d)});if(!p.ok){let{message:e}=await p.json();throw Error("Could not post saved files - ".concat(p.statusText," (").concat(p.status,")").concat(e?": ".concat(e):""))}return p}async function u(e){let{trackId:t,tutorialId:r,chapterId:s,lessonId:a,user:c,files:u}=e,l=await (0,i.vq)(c),h="".concat((0,n.$_)(!0),"/tracks/").concat(t,"/tutorials/").concat(r,"/chapters/").concat(s,"/lessons/").concat(a,"/runfiles"),d={files:u.map(e=>({userContent:e.content,name:e.name}))},p=await (0,o.l)(h,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+l},body:JSON.stringify(d)});if(!p.ok){let{message:e}=await p.json();throw Error("Could not post saved files to preview - ".concat(p.statusText," (").concat(p.status,")").concat(e?": ".concat(e):""))}return p}async function l(e,t,r,s){let a=await (0,i.vq)(s),c="".concat((0,n.$_)(!0),"/tracks/").concat(e,"/tutorials/").concat(t,"/chapters/").concat(r,"/savedFiles/clearCache"),u=await (0,o.l)(c,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+a}});if(!u.ok){let{message:e}=await u.json();throw Error("Could not clear saved files cache - ".concat(u.statusText," (").concat(u.status,")").concat(e?": ".concat(e):""))}return u}},78105:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(84908),i=r(84370),o=new class extends n.Q{#Y=!0;#I;#C;constructor(){super(),this.#C=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#I||this.setEventListener(this.#C)}onUnsubscribe(){this.hasListeners()||(this.#I?.(),this.#I=void 0)}setEventListener(e){this.#C=e,this.#I?.(),this.#I=e(this.setOnline.bind(this))}
20setOnline(e){this.#Y!==e&&(this.#Y=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#Y}}},78829:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var s=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},s.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(n,i){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],o=i[0],s=60*i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(n)))return this;var s=16>=Math.abs(n)?60*n:n;if(0===s)return this.utc(i);var a=this.clone();if(i)return a.$offset=s,a.$u=!1,a;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(s+c,e)).$offset=s,a.$x.$localOffset=c,a};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),i=o(e).local();return d.call(n,i,t,r)}}}()},79286:(e,t,r)=>{"use strict";r.d(t,{T:()=>i,b:()=>o});var n=r(84370);function i(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function o(e){let t;if(e.then(e=>(t=e,e),n.lQ)?.catch(n.lQ),void 0!==t)return{data:t}}},79789:(e,t,r)=>{"use strict";r.d(t,{Sx:()=>n.Sx,Wp:()=>n.Wp});var n=r(64110);(0,n.KO)("firebase","9.23.0","app")},80032:(e,t,r)=>{e.exports=r(53880)},82643:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>o,__asyncDelegator:()=>I,__asyncGenerator:()=>k,__asyncValues:()=>C,__await:()=>E,__awaiter:()=>f,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>M,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>U,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>R,__importStar:()=>
20O,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>c,__propKey:()=>h,__read:()=>_,__rest:()=>s,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>b,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>v,default:()=>F});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var g=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[u],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(a=s(g.get))&&(h.get=a),(a=s(g.set))&&(h.set=a),(a=s(g.init))&&i.unshift(a)}else(a=s(g))&&("field"===c?i.unshift(a):h[u]=a)}l&&Object.defineProperty(l,n.name,h),d=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){var u=[a,c];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
20(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function y(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function S(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function k(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof E?Promise.resolve(r.value.v).then(c,u):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function I(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:a})},s)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},A=function(e){return(A=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=A(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
20if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function U(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function j(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}let F={__extends:i,__assign:o,__rest:s,__decorate:a,__param:c,__esDecorate:u,__runInitializers:l,__propKey:h,__setFunctionName:d,__metadata:p,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:_,__spread:b,__spreadArrays:w,__spreadArray:S,__await:E,__asyncGenerator:k,__asyncDelegator:I,__asyncValues:C,__makeTemplateOb
20ject:T,__importStar:O,__importDefault:R,__classPrivateFieldGet:P,__classPrivateFieldSet:M,__classPrivateFieldIn:N,__addDisposableResource:L,__disposeResources:U,__rewriteRelativeImportExtension:j}},83134:(e,t,r)=>{"use strict";r.d(t,{II:()=>l,cc:()=>u,v_:()=>c});var n=r(30978),i=r(78105),o=r(79286),s=r(84370);function a(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||i.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function l(e){let t,r=!1,l=0,h=(0,o.T)(),d=()=>n.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),p=()=>c(e.networkMode)&&e.canRun(),f=e=>{"pending"===h.status&&(t?.(),h.resolve(e))},m=e=>{"pending"===h.status&&(t?.(),h.reject(e))},g=()=>new Promise(r=>{t=e=>{("pending"!==h.status||d())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===h.status&&e.onContinue?.()}),y=()=>{let t;if("pending"!==h.status)return;let n=0===l?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if("pending"!==h.status)return;let n=e.retry??3*!s.S$,i=e.retryDelay??a,o="function"==typeof i?i(l,t):i,c=!0===n||"number"==typeof n&&l<n||"function"==typeof n&&n(l,t);if(r||!c)return void m(t);l++,e.onFail?.(l,t),(0,s.yy)(o).then(()=>d()?void 0:g()).then(()=>{r?m(t):y()})})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let r=new u(t);m(r),e.onCancel?.(r)}},continue:()=>(t?.(),h),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:p,start:()=>(p()?y():g().then(y),h)}}},83188:(e,t,r)=>{"use strict";r.d(t,{$K:()=>p,Ar:()=>u,Cd:()=>s,EA:()=>n,EG:()=>f,GS:()=>k,K6:()=>C,L_:()=>S,UN:()=>m,WU:()=>w,YJ:()=>i,Z6:()=>o,ZT:()=>a,ah:()=>d,cK:()=>b,fI:()=>y,gP:()=>h,hN:()=>E,hP:()=>_,m3:()=>T,nP:()=>I,nQ:()=>c,r0:()=>g,x1:()=>l,zs:()=>v});let n="font-aeonik font-medium text-5xl leading-[56px]",i="font-aeonik font-medium text-[40px] leading-[48px]",o="font-aeonikFono font-medium text-[40px] leading-[48px]",s="font-aeonik font-medium text-[32px] leading-[40px]",a="font-aeonikFono font-medium text-[32px] leading-[40px]",c="font-aeonik font-medium text-[24px] leading-[32px]",u="font-aeonikFono font-medium text-[24px] leading-[32px]",l="font-aeonik font-medium text-[18px] leading-[28px]",h="font-aeonikFono font-medium text-[18px] leading-[28px]",d="font-aeonik font-medium text-[16px] leading-[24px]",p="font-aeonikFono font-medium text-[16px] leading-[24px]",f="font-aeonik font-normal text-[18px] leading-[28px]",m="font-aeonik font-medium text-[18px] leading-[28px]",g="font-aeonik font-normal text-[16px] leading-[24px]",y="font-aeonik font-medium text-[16px] leading-[24px]",v="font-aeonik font-normal text-[14px] leading-[20px]",_="font-aeonik font-medium text-[14px] leading-[20px]",b="font-aeonik font-normal text-[12px] leading-[16px]",w="font-aeonik font-medium text-[12px] leading-[16px]",S="font-aeonik font-normal text-[10px] leading-[16px]",E="font-aeonik font-medium text-[10px] leading-[16px]",k="font-aeonikMono font-normal text-[10px] leading-[16px]",I="font-aeonikMono font-normal text-[12px] leading-[16px]",C="font-aeonikMono font-normal text-[14px] leading-[20px]",T="font-aeonikMono font-medium text-[14px] leading-[20px]"},83241:(e,t,r)=>{"use strict";function n(e,t){return fetch(e,t)}r.d(t,{l:()=>n})},84370:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>m,EN:()=>f,Eh:()=>l,F$:()=>p,GU:()=>T,MK:()=>h,S$:()=>i,ZM:()=>C,ZZ:()=>k,Zw:()=>s,d2:()=>u,f8:()=>y,gn:()=>a,hT:()=>I,j3:()=>c,lQ:()=>o,nJ:()=>d,pl:()=>S,y9:()=>E,yy:()=>w});var n=r(67803),i="undefined"==typeof window||"Deno"in globalThis;function o(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function h(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==p(s,t.options))return!1}else if(!m(t.queryKey,s))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;
20if(r){if(f(t.options.mutationKey)!==f(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function p(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>_(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>m(e[r],t[r]))}var g=Object.prototype.hasOwnProperty;function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])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 r=t.prototype;return!!b(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=v(t)&&v(r);if(!n&&!(_(t)&&_(r)))return r;let i=(n?t:Object.keys(t)).length,o=n?r:Object.keys(r),s=o.length,a=n?Array(s):{},c=0;for(let u=0;u<s;u++){let s=n?u:o[u],l=t[s],h=r[s];if(l===h){a[s]=l,(n?u<i:g.call(t,s))&&c++;continue}if(null===l||null===h||"object"!=typeof l||"object"!=typeof h){a[s]=h;continue}let d=e(l,h);a[s]=d,d===l&&c++}return i===s&&c===i?t:a}(e,t):t}function E(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function k(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var I=Symbol();function C(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==I?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function T(e,t){return"function"==typeof e?e(...t):!!e}},84671:(e,t,r)=>{"use strict";r.d(t,{$F:()=>eu,AV:()=>b,Ah:()=>P,Bk:()=>m,Br:()=>U,Bz:()=>et,Ch:()=>H,Ci:()=>er,D0:()=>d,DQ:()=>el,FB:()=>f,FL:()=>F,Hi:()=>L,IP:()=>p,KM:()=>I,LS:()=>Z,Nq:()=>$,OE:()=>u,OI:()=>eo,Ow:()=>S,PE:()=>w,QH:()=>Q,QT:()=>o,QW:()=>en,Qh:()=>X,ST:()=>E,Si:()=>v,Te:()=>ei,U8:()=>eh,Uz:()=>j,Wj:()=>K,X1:()=>y,Y:()=>h,Z2:()=>J,Zv:()=>ea,_F:()=>z,aK:()=>es,aM:()=>M,bA:()=>l,bN:()=>G,bz:()=>T,cF:()=>ee,cP:()=>a,ci:()=>Y,g2:()=>_,gQ:()=>k,gd:()=>q,iP:()=>N,in:()=>C,jz:()=>i,nC:()=>ec,ng:()=>R,pM:()=>W,pZ:()=>n,qo:()=>A,sB:()=>ed,sQ:()=>O,t8:()=>D,u7:()=>c,uC:()=>V,vp:()=>x,xu:()=>g,yZ:()=>B,yh:()=>s});let n={"tag-pair":!0,"tagname-lowercase":!0,"id-unique":!0,"attr-lowercase":!0,"attr-no-duplication":!0,"attr-no-unnecessary-whitespace":!0,"attr-unsafe-chars":!0,"attr-value-double-quotes":!0,"attr-value-not-empty":!1,"alt-require":!1,"input-requires-label":!1},i={esversion:11},o="feature-flag-overrides",s="mimo-reactivation-activity-check-after",a="lesson-feedback-block",c="lesson-instructions-block",u="lesson-instructions-database-source",l="lesson-ftg-solutions-block",h="mimo-editor-block",d=48,p="mimo-store-feature-intro-seen-v1",f=50,m=125,g=236,y=145,v=194,_=197,b=214,w=219,S=225,E=226,k=228,I=243,C=4173,T=[219,50,226,236],x=[145,194,197,214,225,125,228,243],A=[...T,...x],O="MimoLessonProgress",R=1,P="LessonProgressStore",M="confirmDialog",N="showModal",L="showDrawer",D="intent://getmimo.com/login#Intent;scheme=mimo;package=com.getmimo;S.browser_fallback_url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.getmimo;end",U="https://getmimo.com/learn",j=2939875,F=!0,B=17e4,H=100,z="showAuthenticationModal",$="showLockedContentUpgradeModal",q={1516:["Order by `rating` first and then by `name`","Select all restaurants that are either `Japanese'` or `'Italian'`"],2088:["Write another query to see which books are not in the `orders` table","Compare the `stock` and `copies_ordered` tables to see if a book is in stock"],2589:["Add a Fahrenheit to Celsius converter","Style the page to your liking","Create two buttons for unidirectional conversions"],2595:["Add a few more list items with your favorite drinks or snacks","Nest an unordered list with 'small' and 'large' items for size options","Add an image in the first div as well; make it have rounding their corners"],2596:["Link to your CSS file and style the game","Add a button to restart the game","Let the player choose the random number range before starting the game"],2597:["Give the items a border and adjust the padding","Add a border to the modal'
20s content","Use a pointer cursor on hover to show images are clickable"],2604:["Add box-shadow to the card","Add an animation to the card on hover","Make the image zoom in when you hover over the image"],2608:["Add a button to retry if one gets the answer wrong","Add more questions","Always display the current score instead of only showing it at the end"],2611:["Look into Font Awesome and replace the bot icon with another one","Give the bot more options to respond when it runs out of jokes","Automatically scroll to the bottom of the web page if a new text is added"],2612:["Implement a way to decipher an encrypted text","Add another cipher method and let the user select which version to use","Update the design to make it look like a tool for spies"],2614:["Play around with `setInterval` and set it to a higher amount to make the game easier","Keep stock of the treats","Disable a `treat` when the number is 0 and style it accordingly if it's unavailable","Add a timer to see how long the player could keep their pets"],2616:["Handle errors the API might return","Update the design to display a grid of images","Make the images clickable to display the information for that character"],2617:["Add more sections to the page and more details about yourself","Add all your existing projects","Add more skills to the skills section"],2618:["Add design via your `index.css` file","Try out the font `Press Start 2P` from Google Fonts","Alter the query parameters to get more than just 20 Pokemon back","Load the detailed info of a Pokemon when selecting one in the Pokedex and display the details"],2627:["Enhance the quote structure by including additional fields like `author` and `year`","Add another endpoint to return the available categories, not the jokes in a category","Change the `/quotes/:category` route so it returns a random quote from the passed category"]},V=1e3,G=400,W=["/[...page]","/web2app","/web2app/[slug]","/web2app/success","/tutorials/[lang]","/tutorials/[lang]/[slug]","/glossary/[lang]","/glossary/[lang]/[slug]","/blog","/blog/[blogslug]"],Y="https://app.adjust.com/1bbdlllf",K="https://www.facebook.com/mimo",J="https://instagram.com/getmimo",X="https://x.com/getmimo",Q="https://www.linkedin.com/company/mimo",Z="https://medium.com/getmimo",ee="https://www.tiktok.com/@mimo_org",et="Enable sound",er="https://jobs.mimo.org",en="https://jobs.mimo.org/#jobs-1d547bc0",ei="[email protected]",eo="https://content.getmimo.com/avatars/avatar-1.png",es=25,ea="1133960732",ec="https://itunes.apple.com/us/app/mimo-learn-how-to-code-through/id".concat(ea,"?mt=8&at=1000lpyT"),eu="https://play.google.com/store/apps/details?id=com.getmimo",el="https://www.trustpilot.com/review/mimo.org",eh={html:{type:"course",name:"HTML",description:"Unlock Web Development: Start building web pages using the foundational markup language of the web",url:"/courses/learn-html",trackId:v},css:{type:"course",name:"CSS",description:"Master styling and layout with CSS. Learn selectors, flexbox, grid, animations, and responsive design",url:"/courses/learn-css",trackId:S},javascript:{type:"course",name:"JavaScript",description:"Master the language of the web. Learn variables, functions, objects, and modern ES6+ features",url:"/courses/learn-javascript",trackId:_},python:{type:"course",name:"Python",description:"Start your coding journey with Python. Learn basics, data types, control flow, and more",url:"/courses/learn-python",trackId:m},swift:{type:"course",name:"Swift",description:"Build iOS apps with Swift. Master data types, control flow, arrays, functions, and classes",url:"/courses/learn-swift-programming",trackId:b},typescript:{type:"course",name:"TypeScript",description:"Add type safety to JavaScript. Learn types, interfaces, generics, and TypeScript best practices",url:"/courses/learn-typescript",trackId:k},sql:{type:"course",name:"SQL",description:"Master database queries. Learn SELECT, JOIN, aggregations, and database design",url:"/courses/learn-sql",trackId:y},react:{type:"course",name:"React",description:"Build modern web apps with React. Learn components, hooks, state management, and React patterns",url:"/courses/learn-react",trackId:I}},ed={fullStack:{type:"path",name:"Full-Stack Developer",description:"Become a full-stack developer. Learn HTML, CSS, JavaScript, and React as well as NodeJS, Express, and SQL",url:"/courses/full-stack-development",trackId:f},python:{type:"path",name:"Python Developer",description:"Become a Python developer. Master Python from basics to advanced topics, including data structures, functions, classes, and error handling",url:"/courses/python-development",trackId:E},backEnd:{type:"path",name:"Back-End Developer",description:"Become a back-end developer. Learn SQL, databases, server-side programming, and APIs to build scalable applications",url:"/courses/back-end-development",trackId:g},frontEnd:{type:"path",name:"Front-End Developer",description:"Become a front-end developer. Learn HTML, CSS, and JavaScript to build user interfaces and web applications",url:"/courses/front-end-development",trackId:w}}},84908:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},84996:(e,t,r)=>{"use strict";r.d(t,{KU:()=>h,m6:()=>u,o5:()=>a,rm:()=>c,v4:()=>l,vn:()=>d});var n=r(64441),i=r(95816),o=r(1164),s=r(9887);function a(){let e=(0,i.EU)();return(0,n.h)(e).getCurrentScope()}function c(){let e=(0,i.EU)();return(0,n.h)(e).getIsolationScope()}function u(){return(0,i.BY)("globalScope",()=>new o.H)}function l(...e){let t=(0,i.EU)(),r=(0,n.h)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function h(){return a().getClient()}function d(e){let{traceId:t,parentSpanId:r,propagationSpanId:n}=e.getPropagationContext(),i={trace_id:t,span_id:n||(0,s.Z)()};return r&&(i.parent_span_id=r),i}},85637:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(23798);r(21462);let i=e=>(0,n.jsxs)("svg",{height:"100%",viewBox:"0 0 70 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{d:"M24.3493 3.6048V0H28.5979V3.6048H24.3493ZM24.4854 18.7728V5.424H28.4861V18.7824H24.4854V18.7728Z",fill:"currentColor"}
20),(0,n.jsx)("path",{d:"M32.0153 18.7776V5.424H35.8799V7.3488C36.1764 6.8496 36.5313 6.4272 36.9639 6.0768C37.3965 5.7264 37.8632 5.4624 38.3785 5.2752C38.8938 5.088 39.4382 4.9968 40.0264 4.9968C40.9208 4.9968 41.7035 5.2128 42.3597 5.64C43.0208 6.0672 43.5556 6.648 43.9785 7.3776C44.5618 6.5424 45.2327 5.9328 45.9958 5.5584C46.7493 5.184 47.6146 4.9968 48.5917 4.9968C49.4715 4.9968 50.2396 5.1648 50.9104 5.4912C51.5764 5.8176 52.1111 6.3552 52.5146 7.08C52.9181 7.8096 53.1174 8.736 53.1174 9.8544V18.7728H49.0875V10.656C49.0875 9.8208 48.9028 9.1968 48.5382 8.7984C48.1736 8.3952 47.6583 8.1984 47.0021 8.1984C46.2875 8.1984 45.7479 8.4 45.3688 8.7984C44.9896 9.1968 44.7563 9.6624 44.6688 10.176C44.5813 10.6896 44.5326 11.2704 44.5326 11.9136V18.7776H40.5854V10.656C40.5854 9.8208 40.4007 9.1968 40.0361 8.7984C39.6715 8.3952 39.1563 8.1984 38.5 8.1984C37.766 8.1984 37.2215 8.4 36.8521 8.7984C36.4875 9.2016 36.2542 9.6528 36.1667 10.1616C36.0792 10.6704 36.0306 11.2512 36.0306 11.9136V18.7776H32.0202H32.0153Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M0 4.9968H8.50694V8.1936H12.5417V4.9968H17.0868V8.1936H21.1361V18.7824H17.0868V8.1888H12.5417V18.7776H8.50694V8.1888H3.99583V18.7776H0V4.9968Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M62.7229 4.9872C58.7028 4.9872 55.4458 8.1696 55.4458 12.096C55.4458 16.0224 58.4549 19.2048 62.7229 19.2048C66.991 19.2048 70 16.0224 70 12.096C70 8.1696 66.7431 4.9872 62.7229 4.9872ZM62.7229 15.9312C60.7785 15.9312 59.1986 14.2128 59.1986 12.0912C59.1986 9.9696 60.7785 8.2512 62.7229 8.2512C64.6674 8.2512 66.2472 9.9696 66.2472 12.0912C66.2472 14.2128 64.6674 15.9312 62.7229 15.9312Z",fill:"currentColor"})]})},85670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(82643),i=r(19565),o=function(){function e(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),s="[DEFAULT]",a=function(){function e(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}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var r=new i.Deferred;if(this.instancesDeferred.set(t,r),this.isInitialized(t)||this.shouldAutoInitialize())try{var n=this.getOrInitializeService({instanceIdentifier:t});n&&r.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}if(n)return null;throw Error("Service ".concat(this.name," is not available"))},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,r;if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:s})}catch(e){}try{for(var i=n.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=n.__read(o.value,2),c=a[0],u=a[1],l=this.normalizeInstanceIdentifier(c);try{var h=this.getOrInitializeService({instanceIdentifier:l});u.resolve(h)}catch(e){}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e=s),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(n.__spreadArray(n.__spreadArray([],n.__read(e.filter(function(e){return"INTERNAL"in e}).map(function(e){return e.INTERNAL.delete()})),!1),n.__read(e.filter(function(e){return"_delete"in e}).map(function(e){return e._delete()})),!1))];case 1:return t.sent(),[2]}})})},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e=s),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e=s),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){void 0===e&&(e={});var t,r,i=e.options,o=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(o))throw Error("".concat(this.name,"(").concat(o,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var s=this.getOrInitializeService({instanceIdentifier:o,options:void 0===i?{}:i});try{for(var a=n.__values(this.instancesDeferred.entries()),c=a.next();!c.done;c=a.next()){var u=n.__read(c.value,2),l=u[0],h=u[1],d=this.normalizeInstanceIdentifier(l);o===d&&h.resolve(s)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return s},e.prototype.onInit=function(e,t){var r,n=this.normalizeInstanceIdentifier(t),i=null!=(r=this.onInitCallbacks.get(n))?r:new Set;i.add(e),this.onInitCallbacks.set(n,i);var o=this.instances.get(n);return o&&e(o,n),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var r,i,o=this.onInitCallbacks.get(t);if(o)try{for(var s=n.__values(o),a=s.next();!a.done;a=s.next()){var c=a.value;try{c(e,t)}catch(e){}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}},e.prototype.getOrInitializeService=function(e){var t,r=e.instanceIdentifier,n=e.options,i=void 0===n?{}:n,o=this.instances.get(r);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=r)===s?void 0:t,options:i}),this.instances.set(r,o),this.instancesOptions.set(r,i),this.invokeOnInitCallbacks(o,r),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,r,o)}catch(e){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return(void 0===e&&(e=s),this.component)?this.component.multipleInstances?e:s:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}(),c=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new a(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=o,t.ComponentContainer=c,t.Provider=a},86998:(e,t,r)=>{"use strict";r.d(t,{XW:()=>i,xg:()=>
20o});var n=r(97270);function i(e){return new s(t=>{t(e)})}function o(e){return new s((t,r)=>{r(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i)return void r(n);t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.Qg)(t))return void t.then(r,i);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},88453:(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{i:()=>n})},88686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return c.ReadonlyURLSearchParams},RedirectType:function(){return c.RedirectType},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},forbidden:function(){return c.forbidden},notFound:function(){return c.notFound},permanentRedirect:function(){return c.permanentRedirect},redirect:function(){return c.redirect},unauthorized:function(){return c.unauthorized},unstable_isUnrecognizedActionError:function(){return l.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return c.unstable_rethrow},useParams:function(){return m},usePathname:function(){return p},useRouter:function(){return f},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return g},useServerInsertedHTML:function(){return u.useServerInsertedHTML}});let n=r(21462),i=r(52542),o=r(26503),s=r(89095),a=r(61094),c=r(313),u=r(17513),l=r(20635),h=void 0;function d(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new c.ReadonlyURLSearchParams(e):null,[e])}function p(){return null==h||h("usePathname()"),(0,n.useContext)(o.PathnameContext)}function f(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function m(){return null==h||h("useParams()"),(0,n.useContext)(o.PathParamsContext)}function g(e){void 0===e&&(e="children"),null==h||h("useSelectedLayoutSegments()");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var c;let e=t[1];o=null!=(c=e.children)?c:Object.values(e)[0]}if(!o)return i;let u=o[0],l=(0,s.getSegmentValue)(u);return!l||l.startsWith(a.PAGE_SEGMENT_KEY)?i:(i.push(l),e(o,r,!1,i))}(t.parentTree,e):null}function y(e){void 0===e&&(e="children"),null==h||h("useSelectedLayoutSegment()");let t=g(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===a.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88876:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n={src:"/_next/static/media/mascot-sad.f7ca014b.svg",height:160,width:160,blurWidth:0,blurHeight:0}},88880:(e,t,r)=>{"use strict";r.d(t,{D0:()=>s,JF:()=>o,r3:()=>i});var n=r(21462);let i={enablePracticeTab:r(69419).j.PRACTICE_TAB_ENABLED},o=(0,n.createContext)(i);function s(){return(0,n.useContext)(o)}},88929:(e,t,r)=>{"use strict";r.d(t,{S8:()=>s,cd:()=>function e(t,r=3,n=102400){let i=s(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}});var n=r(97270),i=r(74957),o=r(6759);function s(e,t=100,r=Infinity){try{return function e(t,r,s=Infinity,a=Infinity,c=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,l]=c;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let h=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return(0,o.nY)(t);if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!h.startsWith("[object "))return h;if(r.__sentry_skip_normalization__)return r;let d="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:s;if(0===d)return h.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,d-1,a,c)}catch{}let p=Array.isArray(r)?[]:{},f=0,m=(0,i.W4)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(f>=a){p[t]="[MaxProperties ~]";break}let r=m[t];p[t]=e(t,r,d-1,a,c),f++}return l(r),p}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},89095:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}
20Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89240:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y,et:()=>l,vq:()=>h});var n=r(79789),i=r(60781),o=r(8032),s=r(71996),a=r(28946),c=r(2272);let u=s.defaultLocale,l=c.env.NEXT_PUBLIC_IMPERSONATE_USER_TOKEN;async function h(e){return l||await e.getIdToken()}let d=["localhost:3000","localhost:8888","mimo-web-proxy.vercel.app","getmimo.com","mimo.org","builderio.mimo.org"],p=/^mimo-dot-(?:org(?:-git-[a-z0-9-]+)?|[a-z0-9]{9})-mimo\.vercel\.app$/,f=new Set(["/go-to-checkout","/thank-you-survey","/withdrawal"]);function m(e){let{origin:t,locale:r,redirectUrl:n}=e,o=new URL((0,i.nf)({locale:r}),t);if(n){o.searchParams.set("redirect",n.href);let e=n.searchParams.get("onboardingSource");e&&o.searchParams.set("onboardingSource",e)}return"".concat(o.pathname).concat(o.search)}function g(e){if(null==e?void 0:e.locale)return e.locale;let t=(0,a.lu)(window.location.pathname);return t||u}let y=()=>{let e={apiKey:"AIzaSyCmjHOtgjUJFO6Fvn6lLQDfzzVv21boYNY",authDomain:"mimo-auth-production.firebaseapp.com",databaseURL:"https://mimo-auth-production.firebaseio.com",projectId:"mimo-auth-production",storageBucket:"mimo-auth-production.appspot.com",messagingSenderId:"384132561085",appId:"1:384132561085:web:f645db4fc4876d765d1fd4"};(0,n.Wp)(e),(0,o.init)({authPageURL:e=>{let{ctx:t}=e,r=g(t),n=window.location.origin,o=new URL(window.location.href,n),s=(0,i.N3)(void 0,{locale:r});return"".concat(s,"?redirectUrl=").concat(encodeURIComponent(o.toString()))},appPageURL:e=>{let{ctx:t}=e,r=g(t),n=window.location.origin,i=new URLSearchParams(window.location.search);return function(e){let{origin:t,locale:r,redirectUrlParamVal:n,isPreviewEnvironment:i=!1}=e;if(!n)return m({origin:t,locale:r});try{let e=new URL(n.startsWith("/")?"".concat(t).concat(n):n),o=p.test(e.host);if(!(d.includes(e.host)||i&&o))return console.warn("Redirect destination host must be one of ".concat(d.join(", "),".")),m({origin:t,locale:r});if(f.has(function(e){let t=(0,a.lu)(e),r=t?e.slice(t.length+1)||"/":e;return"/"!==r&&r.endsWith("/")?r.slice(0,-1):r}(e.pathname)))return e.href;return m({origin:t,locale:r,redirectUrl:e})}catch(e){return console.warn("Redirect destination must be a valid URL."),m({origin:t,locale:r})}}({origin:n,locale:r,redirectUrlParamVal:i.get("redirectUrl")?decodeURIComponent(i.get("redirectUrl")||""):void 0})},loginAPIEndpoint:"/api/login",logoutAPIEndpoint:"/api/logout",firebaseAdminInitConfig:{credential:{projectId:c.env.FIREBASE_SERVICE_ACCOUNT_PROJECT_ID||"",clientEmail:c.env.FIREBASE_SERVICE_ACCOUNT_CLIENT_EMAIL||"",privateKey:c.env.FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY?c.env.FIREBASE_SERVICE_ACCOUNT_PRIVATE_KEY.replace(/\\n
20/g,"\n"):""},databaseURL:"https://mimo-auth-production.firebaseio.com"},firebaseClientInitConfig:e,cookies:{name:"MimoWeb",keys:[c.env.COOKIE_SECRET_CURRENT],httpOnly:!0,maxAge:10368e5,overwrite:!0,path:"/",sameSite:"lax",secure:!0,signed:!0}})}},91788:(e,t,r)=>{"use strict";r.d(t,{Ak:()=>E,BE:()=>k,Ki:()=>R,Mz:()=>g,bR:()=>y,d4:()=>a,dp:()=>v,hX:()=>b,jJ:()=>p,lK:()=>_,pl:()=>I,rO:()=>S,tB:()=>x,tk:()=>h,vZ:()=>w,xY:()=>f,xk:()=>m});var n=r(9536),i=r(28946);let o="mimo-web-active-track-id",s="mimo-web-active-section-for-track-id",a="mimo-add-notification-list",c="reddit_cid",u=new Date("Thu, 01 Jan 1970 00:00:01 GMT");function l(e,t){var r,n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=void 0===i.maxAgeSeconds?172800:i.maxAgeSeconds,s=null!=(r=i.path)?r:"/",a=void 0===i.sameSite?"lax":i.sameSite,c=null==(n=i.secure)||n,u=["".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t))];return null!==a&&u.push("samesite=".concat(a)),c&&u.push("secure"),null!==o&&u.push("max-age=".concat(o)),i.expires&&u.push("expires=".concat(i.expires.toUTCString())),u.push("path=".concat(s)),u.join(";")}function h(e,t,r){P(),document.cookie=l(e,t,r)}function d(e){return"".concat(s,"-").concat(e)}function p(e){h("latestKnownLeaderboardId",e)}function f(e){h(c,e,{maxAgeSeconds:2592e3})}function m(){return A(c)}function g(){n.A.register({new_user_onboarding:!0})}function y(e){h(o,e)}function v(e,t){h(d(e),t)}function _(){return A(o)}function b(e){return A(d(e))}function w(e){return O(e,o)}function S(e,t){return O(e,d(t))}function E(){let e=C(document.cookie);e&&Object.keys(e).forEach(e=>{(e===o||e.startsWith(s))&&R(e)})}function k(e){return e.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return""!==r.trim()&&(e[r]=n.join()),e},{})}function I(e,t){if(!e||0===t.length)return;let r=C(e);if(Object.prototype.hasOwnProperty.call(r,t))return r[t];let n=encodeURIComponent(t);if(n!==t&&Object.prototype.hasOwnProperty.call(r,n))return r[n];let i=T(t,decodeURIComponent);if(i!==t&&Object.prototype.hasOwnProperty.call(r,i))return r[i]}function C(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");let r={},n=(t||{}).decode||decodeURIComponent,i=0;for(;i<e.length;){let t=e.indexOf("=",i);if(-1===t)break;let o=e.indexOf(";",i);if(-1===o)o=e.length;else if(o<t){i=e.lastIndexOf(";",t-1)+1;continue}let s=e.slice(i,t).trim();if(void 0===r[s]){let i=e.slice(t+1,o).trim();34===i.charCodeAt(0)&&(i=i.slice(1,-1)),r[s]=T(i,n)}i=o+1}return r}function T(e,t){try{return t(e)}catch(t){return e}}function x(e){h(i.NL,e,{maxAgeSeconds:i.UP})}function A(e){return C(document.cookie)[encodeURIComponent(e)]}function O(e,t){return e.req.cookies[t]}function R(e){P(),document.cookie=l(e,"",{expires:u,maxAgeSeconds:0,sameSite:null,secure:!1})}function P(){if("undefined"==typeof document)throw Error("Client-side cookie mutations require document.cookie. Use setCookieServerSide in SSR code.")}},92626:(e,t,r)=>{"use strict";r.d(t,{WC:()=>a,bd:()=>o,sL:()=>s});let n="mimo_web_user_id_updated";function i(e,t){let r=e[t];return"string"==typeof r?r:void 0}function o(){var e,t;let r=window.google_tag_manager,n=null==r||null==(t=r["GTM-P9JTX7LK"])||null==(e=t.dataLayer)?void 0:e.get("gtagApiResult");return"object"!=typeof n||null===n?{}:{gaClientId:i(n,"client_id"),gaSessionId:i(n,"session_id")}}function s(e){var t;let r=window;e&&(null==(t=r.gtag)||t.call(r,"set",{user_id:e}),r.dataLayer=r.dataLayer||[],r.dataLayer.push({event:n,user_id:e}))}function a(){var e;let t=window;null==(e=t.gtag)||e.call(t,"set",{user_id:null}),t.dataLayer=t.dataLayer||[],t.dataLayer.push({event:n,user_id:null})}},92688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return i}});let n=""+r(21777).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function i(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
20dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(21462);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93449:(e,t,r)=>{e.exports=r(88686)},95678:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,s=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/")&&1?"&dpl=dpl_FykrnhxLVMWDzKgNTLL4bAtNRTX4":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},95816:(e,t,r)=>{"use strict";r.d(t,{BY:()=>a,EU:()=>o,Se:()=>s});var n=r(19194),i=r(14913);function o(){return s(i.O),i.O}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.M,t[n.M]=t[n.M]||{}}function a(e,t,r=i.O){let o=r.__SENTRY__=r.__SENTRY__||{},s=o[n.M]=o[n.M]||{};return s[e]||(s[e]=t())}},97270:(e,t,r)=>{"use strict";r.d(t,{BD:()=>a,Kg:()=>u,L2:()=>_,NF:()=>l,Qd:()=>d,Qg:()=>g,T2:()=>s,W6:()=>c,bJ:()=>i,gd:()=>m,ks:()=>b,mE:()=>y,sO:()=>h,tH:()=>v,vq:()=>f,xH:()=>p});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function h(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}function y(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function _(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function b(e){return"undefined"!=typeof Request&&v(e,Request)}},97524:(e,t,r)=>{"use strict";r.d(t,{O9:()=>n,xf:()=>i});let n=e=>null!=e,i=e=>e.match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)},98290:(e,t,r)=>{"use strict";r.d(t,{Am:()=>x,FA:()=>k,I9:()=>A,Im:()=>C,Ku:()=>N,T9:()=>p,Tj:()=>d,Uj:()=>u,XA:()=>f,ZQ:()=>g,bD:()=>function e(t,r){if(t===r)return!0;let n=Object.keys(t),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=t[o],s=r[o];if(T(n)&&T(s)){if(!e(n,s))return!1}else if(n!==s)return!1}for(let e of i)if(!n.includes(e))return!1;return!0},cY:()=>m,eX:()=>S,g:()=>E,hp:()=>O,jZ:()=>y,lT:()=>b,lV:()=>_,sr:()=>v,tD:()=>R,u:()=>l,zW:()=>w});var n=r(2272);let i=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},o=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=e[r++],s=((7&i)<<18|(63&o)<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(s>>10)),t[n++]=String.fromCharCode(56320+(1023&s))}else{let o=e[r++],s=e[r++];
20t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},s={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 r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=i>>2,l=(3&i)<<4|s>>4,h=(15&s)<<2|c>>6,d=63&c;!a&&(d=64,o||(h=64)),n.push(r[u],r[l],r[h],r[d])}return n.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):o(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,c=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==c)throw new a;let u=i<<2|o>>4;if(n.push(u),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==c){let e=s<<6&192|c;n.push(e)}}}return n},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 a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let c=function(e){let t=i(e);return s.encodeByteArray(t,!0)},u=function(e){return c(e).replace(/\./g,"")},l=function(e){try{return s.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!==r.g)return r.g;throw Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(void 0===n||void 0===n.env)return;let e=n.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&&l(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},d=e=>{var t,r;return null==(r=null==(t=h())?void 0:t.emulatorHosts)?void 0:r[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,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}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 w(){try{return"object"==typeof indexedDB}catch(e){return!1}}function S(){return new Promise((e,t)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{var e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}
20class E extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,E.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,k.prototype.create)}}class k{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},o=`${this.service}/${e}`,s=this.errors[e],a=s?(r=s,n=i,r.replace(I,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",c=`${this.serviceName}: ${a} (${o}).`;return new E(o,c,i)}}let I=/\{\$([^}]+)}/g;function C(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function T(e){return null!==e&&"object"==typeof e}function x(e){let t=[];for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return t.length?"&"+t.join("&"):""}function A(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,n]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(n)}}),t}function O(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}function R(e,t){let r=new P(e,t);return r.subscribe.bind(r)}class P{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,r){let n;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(n.next=M),void 0===n.error&&(n.error=M),void 0===n.complete&&(n.complete=M);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(e){}}),this.observers.push(n),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 M(){}function N(e){return e&&e._delegate?e._delegate:e}},98654:(e,t,r)=>{"use strict";r.d(t,{k:()=>o});var n=r(67803),i=r(84370),o=class{#K;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#K=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i.S$?1/0:3e5))}clearGcTimeout(){this.#K&&(n.zs.clearTimeout(this.#K),this.#K=void 0)}}},99423:(e,t,r)=>{"use strict";r.d(t,{AD:()=>h,SB:()=>a,hH:()=>c,ul:()=>l});var n=r(39766),i=r(53032);let o=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:c,publicKey:u}=e;return`${c}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function c(e){let t=s.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,o="",a="",c="",l=""]=t.slice(1),h="",d=l,p=d.split("/");if(p.length>1&&(h=p.slice(0,-1).join("/"),d=p.pop()),d){let e=d.match(/^\d+/);e&&(d=e[0])}return u({host:a,pass:o,path:h,projectId:d,port:c,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function l(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=function(e){let t=e.match(o);return t?.[1]}(n)),t}function h(e){let t="string"==typeof e?c(e):u(e);if(t&&function(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==o&&"https"!==o?(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(53801),t(58305),t(17978))),_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.