PageSourceSearch

https://dailyreadinglog.com/assets/index-DUvRbApd.js

js dailyreadinglog.com collected 2026-10-02 01:26:45 UTC 473,404 bytes, 1,940 lines download raw bytes

vendor: 6,285 bytes, lines 1-17
1var wb=Object.defineProperty;var Ab=(i,a,r)=>a in i?wb(i,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[a]=r;var Je=(i,a,r)=>Ab(i,typeof a!="symbol"?a+"":a,r);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function Cb(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var cc={exports:{}},Cl={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var hp;function xb(){if(hp)return Cl;hp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(s,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:i,type:s,key:h,ref:c!==void 0?c:null,props:f}}return Cl.Fragment=a,Cl.jsx=r,Cl.jsxs=r,Cl}var mp;function Rb(){return mp||(mp=1,cc.exports=xb()),cc.exports}var b=Rb(),fc={exports:{}},ee={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var pp;function Ob(){if(pp)return ee;pp=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),S=Symbol.iterator;function L(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,B={};function k(E,j,P){this.props=E,this.context=j,this.refs=B,this.updater=P||N}k.prototype.isReactComponent={},k.prototype.setState=function(E,j){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,j,"setState")},k.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function q(){}q.prototype=k.prototype;function Y(E,j,P){this.props=E,this.context=j,this.refs=B,this.updater=P||N}var J=Y.prototype=new q;J.constructor=Y,H(J,k.prototype),J.isPureReactComponent=!0;var de=Array.isArray;function ye(){}var V={H:null,A:null,T:null,S:null},be=Object.prototype.hasOwnProperty;function ie(E,j,P){var K=P.ref;return{$$typeof:i,type:E,key:j,ref:K!==void 0?K:null,props:P}}function le(E,j){return ie(E.type,j,E.props)}function Ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function he(E){var j={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(P){return j[P]})}var _t=/\/+/g;function en(E,j){return typeof E=="object"&&E!==null&&E.key!=null?he(""+E.key):j.toString(36)}function Mt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ye,ye):(E.status="pending",E.then(function(j){E.status==="pending"&&(E.status="fulfilled",E.value=j)},function(j){E.status==="pending"&&(E.status="rejected",E.reason=j)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,j,P,K,te){var re=typeof E;(re==="undefined"||re==="boolean")&&(E=null);var ve=!1;if(E===null)ve=!0;else switch(re){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(E.$$typeof){case i:case a:ve=!0;break;case T:return ve=E._init,U(ve(E._payload),j,P,K,te)}}if(ve)return te=te(E),ve=K===""?"."+en(E,0):K,de(te)?(P="",ve!=null&&(P=ve.replace(_t,"$&/")+"/"),U(te,j,P,"",function(Ui){return Ui})):te!=null&&(Ce(te)&&(te=le(te,P+(te.key==null||E&&E.key===te.key?"":(""+te.key).replace(_t,"$&/")+"/")+ve)),j.push(te)),1;ve=0;var We=K===""?".":K+":";if(de(E))for(var Le=0;Le<E.length;Le++)K=E[Le],re=We+en(K,Le),ve+=U(K,j,P,re,te);else if(Le=L(E),typeof Le=="function")for(E=Le.call(E),Le=0;!(K=E.next()).done;)K=K.value,re=We+en(K,Le++),ve+=U(K,j,P,re,te);else if(re==="object"){if(typeof E.then=="function")return U(Mt(E),j,P,K,te);throw j=String(E),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return ve}function G(E,j,P){if(E==null)return E;var K=[],te=0;return U(E,K,"","",function(re){return j.call(P,re,te++)}),K}function W(E){if(E._status===-1){var j=E._result;j=j(),j.then(function(P){(E._status===0||E._status===-1)&&(E._status=1,E._result=P)},function(P){(E._status===0||E._status===-1)&&(E._status=2,E._result=P)}),E._status===-1&&(E._status=0,E._result=j)}if(E._status===1)return E._result.default;throw E._result}var Ee=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},xe={map:G,forEach:function(E,j,P){G(E,function(){j.apply(this,arguments)},P)}
vendor: 15,300 bytes, lines 17-41
17,count:function(E){var j=0;return G(E,function(){j++}),j},toArray:function(E){return G(E,function(j){return j})||[]},only:function(E){if(!Ce(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ee.Activity=A,ee.Children=xe,ee.Component=k,ee.Fragment=r,ee.Profiler=c,ee.PureComponent=Y,ee.StrictMode=s,ee.Suspense=m,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ee.__COMPILER_RUNTIME={__proto__:null,c:function(E){return V.H.useMemoCache(E)}},ee.cache=function(E){return function(){return E.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(E,j,P){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var K=H({},E.props),te=E.key;if(j!=null)for(re in j.key!==void 0&&(te=""+j.key),j)!be.call(j,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&j.ref===void 0||(K[re]=j[re]);var re=arguments.length-2;if(re===1)K.children=P;else if(1<re){for(var ve=Array(re),We=0;We<re;We++)ve[We]=arguments[We+2];K.children=ve}return ie(E.type,te,K)},ee.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},ee.createElement=function(E,j,P){var K,te={},re=null;if(j!=null)for(K in j.key!==void 0&&(re=""+j.key),j)be.call(j,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(te[K]=j[K]);var ve=arguments.length-2;if(ve===1)te.children=P;else if(1<ve){for(var We=Array(ve),Le=0;Le<ve;Le++)We[Le]=arguments[Le+2];te.children=We}if(E&&E.defaultProps)for(K in ve=E.defaultProps,ve)te[K]===void 0&&(te[K]=ve[K]);return ie(E,re,te)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(E){return{$$typeof:y,render:E}},ee.isValidElement=Ce,ee.lazy=function(E){return{$$typeof:T,_payload:{_status:-1,_result:E},_init:W}},ee.memo=function(E,j){return{$$typeof:g,type:E,compare:j===void 0?null:j}},ee.startTransition=function(E){var j=V.T,P={};V.T=P;try{var K=E(),te=V.S;te!==null&&te(P,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ye,Ee)}catch(re){Ee(re)}finally{j!==null&&P.types!==null&&(j.types=P.types),V.T=j}},ee.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ee.use=function(E){return V.H.use(E)},ee.useActionState=function(E,j,P){return V.H.useActionState(E,j,P)},ee.useCallback=function(E,j){return V.H.useCallback(E,j)},ee.useContext=function(E){return V.H.useContext(E)},ee.useDebugValue=function(){},ee.useDeferredValue=function(E,j){return V.H.useDeferredValue(E,j)},ee.useEffect=function(E,j){return V.H.useEffect(E,j)},ee.useEffectEvent=function(E){return V.H.useEffectEvent(E)},ee.useId=function(){return V.H.useId()},ee.useImperativeHandle=function(E,j,P){return V.H.useImperativeHandle(E,j,P)},ee.useInsertionEffect=function(E,j){return V.H.useInsertionEffect(E,j)},ee.useLayoutEffect=function(E,j){return V.H.useLayoutEffect(E,j)},ee.useMemo=function(E,j){return V.H.useMemo(E,j)},ee.useOptimistic=function(E,j){return V.H.useOptimistic(E,j)},ee.useReducer=function(E,j,P){return V.H.useReducer(E,j,P)},ee.useRef=function(E){return V.H.useRef(E)},ee.useState=function(E){return V.H.useState(E)},ee.useSyncExternalStore=function(E,j,P){return V.H.useSyncExternalStore(E,j,P)},ee.useTransition=function(){return V.H.useTransition()},ee.version="19.2.3",ee}var gp;function qc(){return gp||(gp=1,fc.exports=Ob()),fc.exports}var O=qc();const sa=Cb(O);var dc={exports:{}},xl={},hc={exports:{}},mc={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var yp;function Nb(){return yp||(yp=1,function(i){function a(U,G){var W=U.length;U.push(G);e:for(;0<W;){var Ee=W-1>>>1,xe=U[Ee];if(0<c(xe,G))U[Ee]=G,U[W]=xe,W=Ee;else break e}}function r(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var G=U[0],W=U.pop();if(W!==G){U[0]=W;e:for(var Ee=0,xe=U.length,E=xe>>>1;Ee<E;){var j=2*(Ee+1)-1,P=U[j],K=j+1,te=U[K];if(0>c(P,W))K<xe&&0>c(te,P)?(U[Ee]=te,U[K]=W,Ee=K):(U[Ee]=P,U[j]=W,Ee=j);else if(K<xe&&0>c(te,W))U[Ee]=te,U[K]=W,Ee=K;else break e}}return G}function c(U,G){var W=U.sortIndex-G.sortIndex;return W!==0?W:U.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();i.unstable_now=function(){return h.now()-y}}var m=[],g=[],T=1,A=null,S=3,L=!1,N=!1,H=!1,B=!1,k=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function J(U){for(var G=r(g);G!==null;){if(G.callback===null)s(g);else if(G.startTime<=U)s(g),G.sortIndex=G.expirationTime,a(m,G);else break;G=r(g)}}function de(U){if(H=!1,J(U),!N)if(r(m)!==null)N=!0,ye||(ye=!0,he());else{var G=r(g);G!==null&&Mt(de,G.startTime-U)}}var ye=!1,V=-1,be=5,ie=-1;function le(){return B?!0:!(i.unstable_now()-ie<be)}function Ce(){if(B=!1,ye){var U=i.unstable_now();ie=U;var G=!0;try{e:{N=!1,H&&(H=!1,q(V),V=-1),L=!0;var W=S;try{t:{for(J(U),A=r(m);A!==null&&!(A.expirationTime>U&&le());){var Ee=A.callback;if(typeof Ee=="function"){A.callback=null,S=A.priorityLevel;var xe=Ee(A.expirationTime<=U);if(U=i.unstable_now(),typeof xe=="function"){A.callback=xe,J(U),G=!0;break t}A===r(m)&&s(m),J(U)}else s(m);A=r(m)}if(A!==null)G=!0;else{var E=r(g);E!==null&&Mt(de,E.startTime-U),G=!1}}break e}finally{A=null,S=W,L=!1}G=void 0}}finally{G?he():ye=!1}}}var he;if(typeof Y=="function")he=function(){Y(Ce)};else if(typeof MessageChannel<"u"){var _t=new MessageChannel,en=_t.port2;_t.port1.onmessage=Ce,he=function(){en.postMessage(null)}}else he=function(){k(Ce,0)};function Mt(U,G){V=k(function(){U(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):be=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(U){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var W=S;S=G;try{return U()}finally{S=W}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var W=S;S=U;try{return G()}finally{S=W}},i.unstable_scheduleCallback=function(U,G,W){var Ee=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Ee+W:Ee):W=Ee,U){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=W+xe,U={id:T++,callback:G,priorityLevel:U,startTime:W,expirationTime:xe,sortIndex:-1},W>Ee?(U.sortIndex=W,a(g,U),r(m)===null&&U===r(g)&&(H?(q(V),V=-1):H=!0,Mt(de,W-Ee))):(U.sortIndex=xe,a(m,U),N||L||(N=!0,ye||(ye=!0,he()))),U},i.unstable_shouldYield=le,i.unstable_wrapCallback=function(U){var G=S;return function(){var W=S;S=G;try{return U.apply(this,arguments)}finally{S=W}}}}(mc)),mc}var vp;function Db(){return vp||(vp=1,hc.exports=Nb()),hc.exports}var pc={exports:{}},Fe={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var bp;function Mb(){if(bp)return Fe;bp=1;var i=qc();function a(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)g+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(m,g,T){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:A==null?null:""+A,children:m,containerInfo:g,implementation:T}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Fe.createPortal=function(m,g){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(m,g,null,T)},Fe.flushSync=function(m){var g=h.T,T=s.p;try{if(h.T=null,s.p=2,m)return m()}finally{h.T=g,s.p=T,s.d.f()}},Fe.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},Fe.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Fe.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var T=g.as,A=y(T,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,L=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;T==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:A,integrity:S,fetchPriority:L}):T==="script"&&s.d.X(m,{crossOrigin:A,integrity:S,fetchPriority:L,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Fe.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var T=y(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:T,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},Fe.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var T=g.as,A=y(T,g.crossOrigin);s.d.L(m,T,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Fe.preloadModule=function(m,g){if(typeof m=="string")if(g){var T=y(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:T,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},Fe.requestFormReset=function(m){s.d.r(m)},Fe.unstable_batchedUpdates=function(m,g){return m(g)},Fe.useFormState=function(m,g,T){return h.H.useFormState(m,g,T)},Fe.useFormStatus=function(){return h.H.useHostTransitionStatus()},Fe.version="19.2.3",Fe}var Sp;function Ub(){if(Sp)return pc.exports;Sp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),pc.exports=Mb(),pc.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var _p;function Ib(){if(_p)return xl;_p=1;var i=Db(),a=qc(),r=Ub();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return m(o),e;if(u===l)return m(o),t;u=u.sibling}throw Error(s(188))}if(n.return!==l.return)n=o,l=u;else{for(var d=!1,p=o.child;p;){if(p===n){d=!0,n=o,l=u;break}if(p===l){d=!0,l=o,n=u;break}p=p.sibling}if(!d){for(p=u.child;p;){if(p===n){d=!0,n=u,l=o;break}if(p===l){d=!0,l=u,n=o;break}p=p.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,S=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var _t=Symbol.for("react.client.reference");function en(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_t?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case k:return"Profiler";case B:return"StrictMode";case de:return"Suspense";case ye:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case Y:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:en(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return en(e(t))}catch{}}return null}var Mt=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},Ee=[],xe=-1;function E(e){return{current:e}}function j(e){0>xe||(e.current=Ee[xe],Ee[xe]=null,xe--)}function P(e,t){xe++,Ee[xe]=e.current,e.current=t}var K=E(null),te=E(null),re=E(null),ve=E(null);function We(e,t){switch(P(re,t),P(te,e),P(K,null),t.nodeType){case 9:case 11:e=(e
vendor: 9,499 bytes, lines 41-48
41=t.documentElement)&&(e=e.namespaceURI)?Lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Lm(t),e=jm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(K),P(K,e)}function Le(){j(K),j(te),j(re)}function Ui(e){e.memoizedState!==null&&P(ve,e);var t=K.current,n=jm(t,e.type);t!==n&&(P(te,e),P(K,n))}function $l(e){te.current===e&&(j(K),j(te)),ve.current===e&&(j(ve),El._currentValue=W)}var Ys,df;function ma(e){if(Ys===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ys=t&&t[1]||"",df=-1<n.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Ys+e+df}var Xs=!1;function Ks(e,t){if(!e||Xs)return"";Xs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(D){var R=D}Reflect.construct(e,[],z)}else{try{z.call()}catch(D){R=D}e.call(z.prototype)}}else{try{throw Error()}catch(D){R=D}(z=e())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(D){if(D&&R&&typeof D.stack=="string")return[D.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),d=u[0],p=u[1];if(d&&p){var v=d.split(`
44`),x=p.split(`
45`);for(o=l=0;l<v.length&&!v[l].includes("DetermineComponentFrameRoot");)l++;for(;o<x.length&&!x[o].includes("DetermineComponentFrameRoot");)o++;if(l===v.length||o===x.length)for(l=v.length-1,o=x.length-1;1<=l&&0<=o&&v[l]!==x[o];)o--;for(;1<=l&&0<=o;l--,o--)if(v[l]!==x[o]){if(l!==1||o!==1)do if(l--,o--,0>o||v[l]!==x[o]){var M=`
46`+v[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=o);break}}}finally{Xs=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ma(n):""}function tv(e,t){switch(e.tag){case 26:case 27:case 5:return ma(e.type);case 16:return ma("Lazy");case 13:return e.child!==t&&t!==null?ma("Suspense Fallback"):ma("Suspense");case 19:return ma("SuspenseList");case 0:case 15:return Ks(e.type,!1);case 11:return Ks(e.type.render,!1);case 1:return Ks(e.type,!0);case 31:return ma("Activity");default:return""}}function hf(e){try{var t="",n=null;do t+=tv(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47Error generating stack: `+l.message+`
48`+l.stack}}var Qs=Object.prototype.hasOwnProperty,Zs=i.unstable_scheduleCallback,$s=i.unstable_cancelCallback,nv=i.unstable_shouldYield,av=i.unstable_requestPaint,ct=i.unstable_now,iv=i.unstable_getCurrentPriorityLevel,mf=i.unstable_ImmediatePriority,pf=i.unstable_UserBlockingPriority,Jl=i.unstable_NormalPriority,lv=i.unstable_LowPriority,gf=i.unstable_IdlePriority,rv=i.log,sv=i.unstable_setDisableYieldValue,Ii=null,ft=null;function On(e){if(typeof rv=="function"&&sv(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Ii,e)}catch{}}var dt=Math.clz32?Math.clz32:cv,ov=Math.log,uv=Math.LN2;function cv(e){return e>>>=0,e===0?32:31-(ov(e)/uv|0)|0}var Fl=256,Wl=262144,er=4194304;function pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?o=pa(l):(d&=p,d!==0?o=pa(d):n||(n=p&~e,n!==0&&(o=pa(n))))):(p=l&~u,p!==0?o=pa(p):d!==0?o=pa(d):n||(n=l&~e,n!==0&&(o=pa(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yf(){var e=er;return er<<=1,(er&62914560)===0&&(er=4194304),e}function Js(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Li(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dv(e,t,n,l,o,u){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,v=e.expirationTimes,x=e.hiddenUpdates;for(n=d&~n;0<n;){var M=31-dt(n),z=1<<M;p[M]=0,v[M]=-1;var R=x[M];if(R!==null)for(x[M]=null,M=0;M<R.length;M++){var D=R[M];D!==null&&(D.lane&=-536870913)}n&=~z}l!==0&&vf(e,l,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function vf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-dt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function bf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-dt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Sf(e,t){var n=t&-t;return n=(n&42)!==0?1:Fs(n),(n&(e.suspendedLanes|t))!==0?0:n}function Fs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ws(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _f(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:rp(e.type))}function Ef(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Nn=Math.random().toString(36).slice(2),Xe="__reactFiber$"+Nn,nt="__reactProps$"+Nn,qa="__reactContainer$"+Nn,eo="__reactEvents$"+Nn,hv="__reactListeners$"+Nn,mv="__reactHandles$"+Nn,Tf="__reactResources$"+Nn,ji="__reactMarker$"+Nn;function to(e){delete e[Xe],delete e[nt],delete e[eo],delete e[hv],delete e[mv]}function Va(e){var t=e[Xe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qa]||n[Xe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Pm(e);e!==null;){if(n=e[Xe])return n;e=Pm(e)}return t}e=n,n=e.parentNode}return null}function Ga(e){if(e=e[Xe]||e[qa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ki(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Pa(e){var t=e[Tf];return t||(t=e[Tf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[ji]=!0}var wf=new Set,Af={};function ga(e,t){Ya(e,t),Ya(e+"Capture",t)}function Ya(e,t){for(Af[e]=t,e=0;e<t.length;e++)wf.add(t[e])}var pv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cf={},xf={};function gv(e){return Qs.call(xf,e)?!0:Qs.call(Cf,e)?!1:pv.test(e)?xf[e]=!0:(Cf[e]=!0,!1)}function nr(e,t,n){if(gv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ar(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function tn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yv(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}
vendor: 4,919 bytes, line 48
48function no(e){if(!e._valueTracker){var t=Rf(e)?"checked":"value";e._valueTracker=yv(e,t,""+e[t])}}function Of(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Rf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var vv=/[\n"\\]/g;function Tt(e){return e.replace(vv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ao(e,t,n,l,o,u,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?io(e,d,Et(t)):n!=null?io(e,d,Et(n)):l!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Et(p):e.removeAttribute("name")}function Nf(e,t,n,l,o,u,d,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){no(e);return}n=n!=null?""+Et(n):"",t=t!=null?""+Et(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),no(e)}function io(e,t,n){t==="number"&&ir(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Xa(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Et(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Df(e,t,n){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Et(n):""}function Mf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(Mt(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Et(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),no(e)}function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Uf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||bv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function If(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&Uf(e,o,l)}else for(var u in t)t.hasOwnProperty(u)&&Uf(e,u,t[u])}function lo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_v=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lr(e){return _v.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function nn(){}var ro=null;function so(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Za=null;function zf(e){var t=Ga(e);if(t&&(e=t.stateNode)){var n=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ao(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[nt]||null;if(!o)throw Error(s(90));ao(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Of(l)}break e;case"textarea":Df(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Xa(e,!!n.multiple,t,!1)}}}var oo=!1;function Lf(e,t,n){if(oo)return e(t,n);oo=!0;try{var l=e(t);return l}finally{if(oo=!1,(Qa!==null||Za!==null)&&(Xr(),Qa&&(t=Qa,e=Za,Za=Qa=null,zf(t),e)))for(t=0;t<e.length;t++)zf(e[t])}}function Hi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[nt]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uo=!1;if(an)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){uo=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{uo=!1}var Dn=null,co=null,rr=null;function jf(){if(rr)return rr;var e,t=co,n=t.length,l,o="value"in Dn?Dn.value:Dn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===o[u-l];l++);return rr=o.slice(e,1<l?1-l:void 0)}function sr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function or(){return!0}function kf(){return!1}function at(e){function t(n,l,o,u,d){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?or:kf,this.isPropagationStopped=kf,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=or)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=or)},persist:function(){},isPersistent:or}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=at(ya),qi=A({},ya,{view:0,detail:0}),Ev=at(qi),fo,ho,Vi,cr=A({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vi&&(Vi&&e.type==="mousemove"?(fo=e.screenX-Vi.screenX,ho=e.screenY-Vi.screenY):ho=fo=0,Vi=e),fo)},movementY:function(e){return"movementY"in e?e.movementY:ho}}),Hf=at(cr),Tv=A({},cr,{dataTransfer:0}),wv=at(Tv),Av=A({},qi,{relatedTarget:0}),mo=at(Av),Cv=A({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),xv=at(Cv),Rv=A({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ov=at(Rv),Nv=A({},ya,{data:0}),Bf=at(Nv),Dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Iv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uv[e])?!!t[e]:!1}function po(){return Iv}var zv=A({},qi,{key:function(e){if(e.key){var t=Dv[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 5,186 bytes, line 48
48return e.type==="keypress"?(e=sr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?sr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?sr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lv=at(zv),jv=A({},cr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qf=at(jv),kv=A({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),Hv=at(kv),Bv=A({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),qv=at(Bv),Vv=A({},cr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Gv=at(Vv),Pv=A({},ya,{newState:0,oldState:0}),Yv=at(Pv),Xv=[9,13,27,32],go=an&&"CompositionEvent"in window,Gi=null;an&&"documentMode"in document&&(Gi=document.documentMode);var Kv=an&&"TextEvent"in window&&!Gi,Vf=an&&(!go||Gi&&8<Gi&&11>=Gi),Gf=" ",Pf=!1;function Yf(e,t){switch(e){case"keyup":return Xv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function Qv(e,t){switch(e){case"compositionend":return Xf(t);case"keypress":return t.which!==32?null:(Pf=!0,Gf);case"textInput":return e=t.data,e===Gf&&Pf?null:e;default:return null}}function Zv(e,t){if($a)return e==="compositionend"||!go&&Yf(e,t)?(e=jf(),rr=co=Dn=null,$a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vf&&t.locale!=="ko"?null:t.data;default:return null}}var $v={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$v[e.type]:t==="textarea"}function Qf(e,t,n,l){Qa?Za?Za.push(l):Za=[l]:Qa=l,t=Wr(t,"onChange"),0<t.length&&(n=new ur("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Pi=null,Yi=null;function Jv(e){Nm(e,0)}function fr(e){var t=ki(e);if(Of(t))return e}function Zf(e,t){if(e==="change")return t}var $f=!1;if(an){var yo;if(an){var vo="oninput"in document;if(!vo){var Jf=document.createElement("div");Jf.setAttribute("oninput","return;"),vo=typeof Jf.oninput=="function"}yo=vo}else yo=!1;$f=yo&&(!document.documentMode||9<document.documentMode)}function Ff(){Pi&&(Pi.detachEvent("onpropertychange",Wf),Yi=Pi=null)}function Wf(e){if(e.propertyName==="value"&&fr(Yi)){var t=[];Qf(t,Yi,e,so(e)),Lf(Jv,t)}}function Fv(e,t,n){e==="focusin"?(Ff(),Pi=t,Yi=n,Pi.attachEvent("onpropertychange",Wf)):e==="focusout"&&Ff()}function Wv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fr(Yi)}function e0(e,t){if(e==="click")return fr(t)}function t0(e,t){if(e==="input"||e==="change")return fr(t)}function n0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:n0;function Xi(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Qs.call(t,o)||!ht(e[o],t[o]))return!1}return!0}function ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function td(e,t){var n=ed(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ed(n)}}function nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ir(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ir(e.document)}return t}function bo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var a0=an&&"documentMode"in document&&11>=document.documentMode,Ja=null,So=null,Ki=null,_o=!1;function id(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_o||Ja==null||Ja!==ir(l)||(l=Ja,"selectionStart"in l&&bo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 22,074 bytes, line 48
48sNode:l.focusNode,focusOffset:l.focusOffset}),Ki&&Xi(Ki,l)||(Ki=l,l=Wr(So,"onSelect"),0<l.length&&(t=new ur("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Ja)))}function va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fa={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},Eo={},ld={};an&&(ld=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function ba(e){if(Eo[e])return Eo[e];if(!Fa[e])return e;var t=Fa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ld)return Eo[e]=t[n];return e}var rd=ba("animationend"),sd=ba("animationiteration"),od=ba("animationstart"),i0=ba("transitionrun"),l0=ba("transitionstart"),r0=ba("transitioncancel"),ud=ba("transitionend"),cd=new Map,To="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");To.push("scrollEnd");function Ut(e,t){cd.set(e,t),ga(t,[e])}var dr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wt=[],Wa=0,wo=0;function hr(){for(var e=Wa,t=wo=Wa=0;t<e;){var n=wt[t];wt[t++]=null;var l=wt[t];wt[t++]=null;var o=wt[t];wt[t++]=null;var u=wt[t];if(wt[t++]=null,l!==null&&o!==null){var d=l.pending;d===null?o.next=o:(o.next=d.next,d.next=o),l.pending=o}u!==0&&fd(n,o,u)}}function mr(e,t,n,l){wt[Wa++]=e,wt[Wa++]=t,wt[Wa++]=n,wt[Wa++]=l,wo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ao(e,t,n,l){return mr(e,t,n,l),pr(e)}function Sa(e,t){return mr(e,null,null,t),pr(e)}function fd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-dt(n),e=u.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),u):null}function pr(e){if(50<pl)throw pl=0,Iu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function s0(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,l){return new s0(e,t,n,l)}function Co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ln(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function dd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gr(e,t,n,l,o,u){var d=0;if(l=e,typeof e=="function")Co(e)&&(d=1);else if(typeof e=="string")d=db(e,n,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=mt(31,n,t,o),e.elementType=ie,e.lanes=u,e;case H:return _a(n.children,o,u,t);case B:d=8,o|=24;break;case k:return e=mt(12,n,t,o|2),e.elementType=k,e.lanes=u,e;case de:return e=mt(13,n,t,o),e.elementType=de,e.lanes=u,e;case ye:return e=mt(19,n,t,o),e.elementType=ye,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case q:d=9;break e;case J:d=11;break e;case V:d=14;break e;case be:d=16,l=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=mt(d,n,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function _a(e,t,n,l){return e=mt(7,e,l,t),e.lanes=n,e}function xo(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function hd(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function Ro(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var md=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var n=md.get(e);return n!==void 0?n:(t={value:e,source:t,stack:hf(t)},md.set(e,t),t)}return{value:e,source:t,stack:hf(t)}}var ti=[],ni=0,yr=null,Qi=0,Ct=[],xt=0,Mn=null,qt=1,Vt="";function rn(e,t){ti[ni++]=Qi,ti[ni++]=yr,yr=e,Qi=t}function pd(e,t,n){Ct[xt++]=qt,Ct[xt++]=Vt,Ct[xt++]=Mn,Mn=e;var l=qt;e=Vt;var o=32-dt(l)-1;l&=~(1<<o),n+=1;var u=32-dt(t)+o;if(30<u){var d=o-o%5;u=(l&(1<<d)-1).toString(32),l>>=d,o-=d,qt=1<<32-dt(t)+o|n<<o|l,Vt=u+e}else qt=1<<u|n<<o|l,Vt=e}function Oo(e){e.return!==null&&(rn(e,1),pd(e,1,0))}function No(e){for(;e===yr;)yr=ti[--ni],ti[ni]=null,Qi=ti[--ni],ti[ni]=null;for(;e===Mn;)Mn=Ct[--xt],Ct[xt]=null,Vt=Ct[--xt],Ct[xt]=null,qt=Ct[--xt],Ct[xt]=null}function gd(e,t){Ct[xt++]=qt,Ct[xt++]=Vt,Ct[xt++]=Mn,qt=t.id,Vt=t.overflow,Mn=e}var Ke=null,Ne=null,fe=!1,Un=null,Rt=!1,Do=Error(s(519));function In(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(At(t,e)),Do}function yd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Xe]=e,t[nt]=l,n){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(n=0;n<yl.length;n++)oe(yl[n],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),Nf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),Mf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Im(t.textContent,n)?(l.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),l.onScroll!=null&&oe("scroll",t),l.onScrollEnd!=null&&oe("scrollend",t),l.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||In(e,!0)}function vd(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:Ke=Ke.return}}function ai(e){if(e!==Ke)return!1;if(!fe)return vd(e),fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Zu(e.type,e.memoizedProps)),n=!n),n&&Ne&&In(e),vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ne=Gm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ne=Gm(e)}else t===27?(t=Ne,Qn(e.type)?(e=ec,ec=null,Ne=e):Ne=t):Ne=Ke?Nt(e.stateNode.nextSibling):null;return!0}function Ea(){Ne=Ke=null,fe=!1}function Mo(){var e=Un;return e!==null&&(st===null?st=e:st.push.apply(st,e),Un=null),e}function Zi(e){Un===null?Un=[e]:Un.push(e)}var Uo=E(null),Ta=null,sn=null;function zn(e,t,n){P(Uo,t._currentValue),t._currentValue=n}function on(e){e._currentValue=Uo.current,j(Uo)}function Io(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function zo(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var d=o.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=o;for(var v=0;v<t.length;v++)if(p.context===t[v]){u.lanes|=n,p=u.alternate,p!==null&&(p.lanes|=n),Io(u.return,n,e),l||(d=null);break e}u=p.next}}else if(o.tag===18){if(d=o.return,d===null)throw Error(s(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Io(d,n,e),d=null}else d=o.child;if(d!==null)d.return=o;else for(d=o;d!==null;){if(d===e){d=null;break}if(o=d.sibling,o!==null){o.return=d.return,d=o;break}d=d.return}o=d}}function ii(e,t,n,l){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var d=o.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var p=o.type;ht(o.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(o===ve.current){if(d=o.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(El):e=[El])}o=o.return}e!==null&&zo(t,e,n,l),t.flags|=262144}function vr(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wa(e){Ta=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return bd(Ta,e)}function br(e,t){return Ta===null&&wa(e),bd(e,t)}function bd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},sn===null){if(e===null)throw Error(s(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return n}var o0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},u0=i.unstable_scheduleCallback,c0=i.unstable_NormalPriority,He={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lo(){return{controller:new o0,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&u0(c0,function(){e.controller.abort()})}var Ji=null,jo=0,li=0,ri=null;function f0(e,t){if(Ji===null){var n=Ji=[];jo=0,li=Bu(),ri={status:"pending",value:void 0,then:function(l){n.push(l)}}}return jo++,t.then(Sd,Sd),t}function Sd(){if(--jo===0&&Ji!==null){ri!==null&&(ri.status="fulfilled");var e=Ji;Ji=null,li=0,ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function d0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var _d=U.S;U.S=function(e,t){im=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&f0(e,t),_d!==null&&_d(e,t)};var Aa=E(null);function ko(){var e=Aa.current;return e!==null?e:Re.pooledCache}function Sr(e,t){t===null?P(Aa,Aa.current):P(Aa,t.pool)}function Ed(){var e=ko();return e===null?null:{parent:He._currentValue,pool:e}}var si=Error(s(460)),Ho=Error(s(474)),_r=Error(s(542)),Er={then:function(){}};function Td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e;default:if(typeof t.status=="string")t.then(nn,nn);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cd(e),e}throw xa=t,si}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xa=n,si):n}}var xa=null;function Ad(){if(xa===null)throw Error(s(459));var e=xa;return xa=null,e}function Cd(e){if(e===si||e===_r)throw Error(s(483))}var oi=null,Fi=0;function Tr(e){var t=Fi;return Fi+=1,oi===null&&(oi=[]),wd(oi,e,t)}function Wi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wr(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xd(e){function t(w,_){if(e){var C=w.deletions;C===null?(w.deletions=[_],w.flags|=16):C.push(_)}}function n(w,_){if(!e)return null;for(;_!==null;)t(w,_),_=_.sibling;return null}function l(w){for(var _=new Map;w!==null;)w.key!==null?_.set(w.key,w):_.set(w.index,w),w=w.sibling;return _}function o(w,_){return w=ln(w,_),w.index=0,w.sibling=null,w}function u(w,_,C){return w.index=C,e?(C=w.alternate,C!==null?(C=C.index,C<_?(w.flags|=67108866,_):C):(w.flags|=67108866,_)):(w.flags|=1048576,_)}function d(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function p(w,_,C,I){return _===null||_.tag!==6?(_=xo(C,w.mode,I),_.return=w,_):(_=o(_,C),_.return=w,_)}function v(w,_,C,I){var Z=C.type;return Z===H?M(w,_,C.props.children,I,C.key):_!==null&&(_.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===be&&Ca(Z)===_.type)?(_=o(_,C.props),Wi(_,C),_.return=w,_):(_=gr(C.type,C.key,C.props,null,w.mode,I),Wi(_,C),_.return=w,_)}function x(w,_,C,I){return _===null||_.tag!==4||_.stateNode.containerInfo!==C.containerInfo||_.stateNode.implementation!==C.implementation?(_=Ro(C,w.mode,I),_.return=w,_):(_=o(_,C.children||[]),_.return=w,_)}function M(w,_,C,I,Z){return _===null||_.tag!==7?(_=_a(C,w.mode,I,Z),_.return=w,_):(_=o(_,C),_.return=w,_)}function z(w,_,C){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=xo(""+_,w.mode,C),_.return=w,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case L:return C=gr(_.type,_.key,_.props,null,w.mode,C),Wi(C,_),C.return=w,C;case N:return _=Ro(_,w.mode,C),_.return=w,_;case be:return _=Ca(_),z(w,_,C)}if(Mt(_)||he(_))return _=_a(_,w.mode,C,null),_.return=w,_;if(typeof _.then=="function")return z(w,Tr(_),C);if(_.$$typeof===Y)return z(w,br(w,_),C);wr(w,_)}return null}function R(w,_,C,I){var Z=_!==null?_.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return Z!==null?null:p(w,_,""+C,I);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case L:return C.key===Z?v(w,_,C,I):null;case N:return C.key===Z?x(w,_,C,I):null;case be:return C=Ca(C),R(w,_,C,I)}if(Mt(C)||he(C))return Z!==null?null:M(w,_,C,I,null);if(typeof C.then=="function")return R(w,_,Tr(C),I);if(C.$$typeof===Y)return R(w,_,br(w,C),I);wr(w,C)}return null}function D(w,_,C,I,Z){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return w=w.get(C)||null,p(_,w,""+I,Z);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case L:return w=w.get(I.key===null?C:I.key)||null,v(_,w,I,Z);case N:return w=w.get(I.key===null?C:I.key)||null,x(_,w,I,Z);case be:return I=Ca(I),D(w,_,C,I,Z)}if(Mt(I)||he(I))return w=w.get(C)||null,M(_,w,I,Z,null);if(typeof I.then=="function")return D(w,_,C,Tr(I),Z);if(I.$$typeof===Y)return D(w,_,C,br(_,I),Z);wr(_,I)}return null}function X(w,_,C,I){for(var Z=null,me=null,Q=_,ae=_=0,ce=null;Q!==null&&ae<C.length;ae++){Q.index>ae?(ce=Q,Q=null):ce=Q.sibling;var pe=R(w,Q,C[ae],I);if(pe===null){Q===null&&(Q=ce);break}e&&Q&&pe.alternate===null&&t(w,Q),_=u(pe,_,ae),me===null?Z=pe:me.sibling=pe,me=pe,Q=ce}if(ae===C.length)return n(w,Q),fe&&rn(w,ae),Z;if(Q===null){for(;ae<C.length;ae++)Q=z(w,C[ae],I),Q!==null&&(_=u(Q,_,ae),me===null?Z=Q:me.sibling=Q,me=Q);return fe&&rn(w,ae),Z}for(Q=l(Q);ae<C.length;ae++)ce=D(Q,w,ae,C[ae],I),ce!==null&&(e&&ce.alternate!==null&&Q.delete(ce.key===null?ae:ce.key),_=u(ce,_,ae),me===null?Z=ce:me.sibling=ce,me=ce);return e&&Q.forEach(function(Wn){return t(w,Wn)}),fe&&rn(w,ae),Z}function $(w,_,C,I){if(C==null)throw Error(s(151));for(var Z=null,me=null,Q=_,ae=_=0,ce=null,pe=C.next();Q!==null&&!pe.done;ae++,pe=C.next()){Q.index>ae?(ce=Q,Q=null):ce=Q.sibling;var Wn=R(w,Q,pe.value,I);if(Wn===null){Q===null&&(Q=ce);break}e&&Q&&Wn.alternate===null&&t(w,Q),_=u(Wn,_,ae),me===null?Z=Wn:me.sibling=Wn,me=Wn,Q=ce}if(pe.done)return n(w,Q),fe&&rn(w,ae),Z;if(Q===null){for(;!pe.done;ae++,pe=C.next())pe=z(w,pe.value,I),pe!==null&&(_=u(pe,_,ae),me===null?Z=pe:me.sibling=pe,me=pe);return fe&&rn(w,ae),Z}for(Q=l(Q);!pe.done;ae++,pe=C.next())pe=D(Q,w,ae,pe.value,I),pe!==null&&(e&&pe.alternate!==null&&Q.delete(pe.key===null?ae:pe.key),_=u(pe,_,ae),me===null?Z=pe:me.sibling=pe,me=pe);return e&&Q.forEach(function(Tb){return t(w,Tb)}),fe&&rn(w,ae),Z}function Ae(w,_,C,I){if(typeof C=="object"&&C!==null&&C.type===H&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case L:e:{for(var Z=C.key;_!==null;){if(_.key===Z){if(Z=C.type,Z===H){if(_.tag===7){n(w,_.sibling),I=o(_,C.props.children),I.return=w,w=I;break e}}else if(_.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===be&&Ca(Z)===_.type){n(w,_.sibling),I=o(_,C.props),Wi(I,C),I.return=w,w=I;break e}n(w,_);break}else t(w,_);_=_.sibling}C.type===H?(I=_a(C.props.children,w.mode,I,C.key),I.return=w,w=I):(I=gr(C.type,C.key,C.props,null,w.mode,I),Wi(I,C),I.return=w,w=I)}return d(w);case N:e:{for(Z=C.key;_!==null;){if(_.key===Z)if(_.tag===4&&_.stateNode.containerInfo===C.containerInfo&&_.stateNode.implementation===C.implementation){n(w,_.sibling),I=o(_,C.children||[]),I.return=w,w=I;break e}else{n(w,_);break}else t(w,_);_=_.sibling}I=Ro(C,w.mode,I),I.return=w,w=I}return d(w);case be:return C=Ca(C),Ae(w,_,C,I)}if(Mt(C))return X(w,_,C,I);if(he(C)){if(Z=he(C),typeof Z!="function")throw Error(s(150));return C=Z.call(C),$(w,_,C,I)}if(typeof C.then=="function")return Ae(w,_,Tr(C),I);if(C.$$typeof===Y)return Ae(w,_,br(w,C),I);wr(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,_!==null&&_.tag===6?(n(w,_.sibling),I=o(_,C),I.return=w,w=I):(n(w,_),I=xo(C,w.mode,I),I.return=w,w=I),d(w)):n(w,_)}return function(w,_,C,I){try{Fi=0;var Z=Ae(w,_,C,I);return oi=null,Z}catch(Q){if(Q===si||Q===_r)throw Q;var me=mt(29,Q,null,w.mode);return me.lanes=I,me.return=w,me}finally{}}}var Ra=xd(!0),Rd=xd(!1),Ln=!1;function Bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ge&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=pr(e),fd(e,null,n),t}return mr(e,l,t,n),pr(e)}function el(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,bf(e,n)}}function Vo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Go=!1;function tl(){if(Go){var e=ri;if(e!==null)throw e}}function nl(e,t,n,l){Go=!1;var o=e.updateQueue;Ln=!1;var u=o.firstBaseUpdate,d=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var v=p,x=v.next;v.next=null,d===null?u=x:d.next=x,d=v;var M=e.alternate;M!==null&&(M=M.updateQueue,p=M.lastBaseUpdate,p!==d&&(p===null?M.firstBaseUpdate=x:p.next=x,M.lastBaseUpdate=v))}if(u!==null){var z=o.baseState;d=0,M=x=v=null,p=u;do{var R=p.lane&-536870913,D=R!==p.lane;if(D?(ue&R)===R:(l&R)===R){R!==0&&R===li&&(Go=!0),M!==null&&(M=M.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var X=e,$=p;R=t;var Ae=n;switch($.tag){case 1:if(X=$.payload,typeof X=="function"){z=X.call(Ae,z,R);break e}z=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=$.payload,R=typeof X=="function"?X.call(Ae,z,R):X,R==null)break e;z=A({},z,R);break e;case 2:Ln=!0}}R=p.callback,R!==null&&(e.flags|=64,D&&(e.flags|=8192),D=o.callbacks,D===null?o.callbacks=[R]:D.push(R))}else D={lane:R,tag:p.tag,payload:p.payload,callback:p.callback,next:null},M===null?(x=M=D,v=z):M=M.next=D,d|=R;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;D=p,p=D.next,D.next=null,o.lastBaseUpdate=D,o.shared.pending=null}}while(!0);M===null&&(v=z),o.baseState=v,o.firstBaseUpdate=x,o.lastBaseUpdate=M,u===null&&(o.shared.lanes=0),Gn|=d,e.lanes=d,e.memoizedState=z}}function Od(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Nd(e,t){var n=e.callbacks;
vendor: 4,310 bytes, line 48
48if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Od(n[e],t)}var ui=E(null),Ar=E(0);function Dd(e,t){e=yn,P(Ar,e),P(ui,t),yn=e|t.baseLanes}function Po(){P(Ar,yn),P(ui,ui.current)}function Yo(){yn=Ar.current,j(ui),j(Ar)}var pt=E(null),Ot=null;function Hn(e){var t=e.alternate;P(je,je.current&1),P(pt,e),Ot===null&&(t===null||ui.current!==null||t.memoizedState!==null)&&(Ot=e)}function Xo(e){P(je,je.current),P(pt,e),Ot===null&&(Ot=e)}function Md(e){e.tag===22?(P(je,je.current),P(pt,e),Ot===null&&(Ot=e)):Bn()}function Bn(){P(je,je.current),P(pt,pt.current)}function gt(e){j(pt),Ot===e&&(Ot=null),j(je)}var je=E(0);function Cr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fu(n)||Wu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var un=0,ne=null,Te=null,Be=null,xr=!1,ci=!1,Oa=!1,Rr=0,al=0,fi=null,h0=0;function Ie(){throw Error(s(321))}function Ko(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ht(e[n],t[n]))return!1;return!0}function Qo(e,t,n,l,o,u){return un=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?ph:uu,Oa=!1,u=n(l,o),Oa=!1,ci&&(u=Id(t,n,l,o)),Ud(e),u}function Ud(e){U.H=rl;var t=Te!==null&&Te.next!==null;if(un=0,Be=Te=ne=null,xr=!1,al=0,fi=null,t)throw Error(s(300));e===null||qe||(e=e.dependencies,e!==null&&vr(e)&&(qe=!0))}function Id(e,t,n,l){ne=e;var o=0;do{if(ci&&(fi=null),al=0,ci=!1,25<=o)throw Error(s(301));if(o+=1,Be=Te=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=gh,u=t(n,l)}while(ci);return u}function m0(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?il(t):t,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(ne.flags|=1024),t}function Zo(){var e=Rr!==0;return Rr=0,e}function $o(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Jo(e){if(xr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xr=!1}un=0,Be=Te=ne=null,ci=!1,al=Rr=0,fi=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ne.memoizedState=Be=e:Be=Be.next=e,Be}function ke(){if(Te===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Be===null?ne.memoizedState:Be.next;if(t!==null)Be=t,Te=e;else{if(e===null)throw ne.alternate===null?Error(s(467)):Error(s(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Be===null?ne.memoizedState=Be=e:Be=Be.next=e}return Be}function Or(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(e){var t=al;return al+=1,fi===null&&(fi=[]),e=wd(fi,e,t),t=ne,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?ph:uu),e}function Nr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return il(e);if(e.$$typeof===Y)return Qe(e)}throw Error(s(438,String(e)))}function Fo(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ne.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Or(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=le;return t.index++,n}function cn(e,t){return typeof t=="function"?t(e):t}function Dr(e){var t=ke();return Wo(t,Te,e)}function Wo(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var o=e.baseQueue,u=l.pending;if(u!==null){if(o!==null){var d=o.next;o.next=u.next,u.next=d}t.baseQueue=o=u,l.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var p=d=null,v=null,x=t,M=!1;do{var z=x.lane&-536870913;if(z!==x.lane?(ue&z)===z:(un&z)===z){var R=x.revertLane;
vendor: 14,327 bytes, line 48
48if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),z===li&&(M=!0);else if((un&R)===R){x=x.next,R===li&&(M=!0);continue}else z={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},v===null?(p=v=z,d=u):v=v.next=z,ne.lanes|=R,Gn|=R;z=x.action,Oa&&n(u,z),u=x.hasEagerState?x.eagerState:n(u,z)}else R={lane:z,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},v===null?(p=v=R,d=u):v=v.next=R,ne.lanes|=z,Gn|=z;x=x.next}while(x!==null&&x!==t);if(v===null?d=u:v.next=p,!ht(u,e.memoizedState)&&(qe=!0,M&&(n=ri,n!==null)))throw n;e.memoizedState=u,e.baseState=d,e.baseQueue=v,l.lastRenderedState=u}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function eu(e){var t=ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var d=o=o.next;do u=e(u,d.action),d=d.next;while(d!==o);ht(u,t.memoizedState)||(qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function zd(e,t,n){var l=ne,o=ke(),u=fe;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!ht((Te||o).memoizedState,n);if(d&&(o.memoizedState=n,qe=!0),o=o.queue,au(kd.bind(null,l,o,e),[e]),o.getSnapshot!==t||d||Be!==null&&Be.memoizedState.tag&1){if(l.flags|=2048,di(9,{destroy:void 0},jd.bind(null,l,o,n,t),null),Re===null)throw Error(s(349));u||(un&127)!==0||Ld(l,t,n)}return n}function Ld(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=Or(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jd(e,t,n,l){t.value=n,t.getSnapshot=l,Hd(t)&&Bd(e)}function kd(e,t,n){return n(function(){Hd(t)&&Bd(e)})}function Hd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ht(e,n)}catch{return!0}}function Bd(e){var t=Sa(e,2);t!==null&&ot(t,e,2)}function tu(e){var t=et();if(typeof e=="function"){var n=e;if(e=n(),Oa){On(!0);try{n()}finally{On(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:e},t}function qd(e,t,n,l){return e.baseState=n,Wo(e,Te,typeof l=="function"?l:cn)}function p0(e,t,n,l,o){if(Ir(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};U.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,Vd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Vd(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var u=U.T,d={};U.T=d;try{var p=n(o,l),v=U.S;v!==null&&v(d,p),Gd(e,t,p)}catch(x){nu(e,t,x)}finally{u!==null&&d.types!==null&&(u.types=d.types),U.T=u}}else try{u=n(o,l),Gd(e,t,u)}catch(x){nu(e,t,x)}}function Gd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Pd(e,t,l)},function(l){return nu(e,t,l)}):Pd(e,t,n)}function Pd(e,t,n){t.status="fulfilled",t.value=n,Yd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vd(e,n)))}function nu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Yd(t),t=t.next;while(t!==l)}e.action=null}function Yd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xd(e,t){return t}function Kd(e,t){if(fe){var n=Re.formState;if(n!==null){e:{var l=ne;if(fe){if(Ne){t:{for(var o=Ne,u=Rt;o.nodeType!==8;){if(!u){o=null;break t}if(o=Nt(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){Ne=Nt(o.nextSibling),l=o.data==="F!";break e}}In(l)}l=!1}l&&(t=n[0])}}return n=et(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xd,lastRenderedState:t},n.queue=l,n=dh.bind(null,ne,l),l.dispatch=n,l=tu(!1),u=ou.bind(null,ne,!1,l.queue),l=et(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=p0.bind(null,ne,o,u,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Qd(e){var t=ke();return Zd(t,Te,e)}function Zd(e,t,n){if(t=Wo(e,t,Xd)[0],e=Dr(cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=il(t)}catch(d){throw d===si?_r:d}else l=t;t=ke();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,di(9,{destroy:void 0},g0.bind(null,o,n),null)),[l,u,e]}function g0(e,t){e.action=t}function $d(e){var t=ke(),n=Te;if(n!==null)return Zd(t,n,e);ke(),t=t.memoizedState,n=ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function di(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Or(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Jd(){return ke().memoizedState}function Mr(e,t,n,l){var o=et();ne.flags|=e,o.memoizedState=di(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ur(e,t,n,l){var o=ke();l=l===void 0?null:l;var u=o.memoizedState.inst;Te!==null&&l!==null&&Ko(l,Te.memoizedState.deps)?o.memoizedState=di(t,u,n,l):(ne.flags|=e,o.memoizedState=di(1|t,u,n,l))}function Fd(e,t){Mr(8390656,8,e,t)}function au(e,t){Ur(2048,8,e,t)}function y0(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Or(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Wd(e){var t=ke().memoizedState;return y0({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function eh(e,t){return Ur(4,2,e,t)}function th(e,t){return Ur(4,4,e,t)}function nh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ah(e,t,n){n=n!=null?n.concat([e]):null,Ur(4,4,nh.bind(null,t,e),n)}function iu(){}function ih(e,t){var n=ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ko(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function lh(e,t){var n=ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ko(t,l[1]))return l[0];if(l=e(),Oa){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[l,t],l}function lu(e,t,n){return n===void 0||(un&1073741824)!==0&&(ue&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=rm(),ne.lanes|=e,Gn|=e,n)}function rh(e,t,n,l){return ht(n,t)?n:ui.current!==null?(e=lu(e,n,l),ht(e,t)||(qe=!0),e):(un&42)===0||(un&1073741824)!==0&&(ue&261930)===0?(qe=!0,e.memoizedState=n):(e=rm(),ne.lanes|=e,Gn|=e,t)}function sh(e,t,n,l,o){var u=G.p;G.p=u!==0&&8>u?u:8;var d=U.T,p={};U.T=p,ou(e,!1,t,n);try{var v=o(),x=U.S;if(x!==null&&x(p,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var M=d0(v,l);ll(e,t,M,bt(e))}else ll(e,t,l,bt(e))}catch(z){ll(e,t,{then:function(){},status:"rejected",reason:z},bt())}finally{G.p=u,d!==null&&p.types!==null&&(d.types=p.types),U.T=d}}function v0(){}function ru(e,t,n,l){if(e.tag!==5)throw Error(s(476));var o=oh(e).queue;sh(e,o,t,W,n===null?v0:function(){return uh(e),n(l)})}function oh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function uh(e){var t=oh(e);t.next===null&&(t=e.alternate.memoizedState),ll(e,t.next.queue,{},bt())}function su(){return Qe(El)}function ch(){return ke().memoizedState}function fh(){return ke().memoizedState}function b0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=bt();e=jn(n);var l=kn(t,e,n);l!==null&&(ot(l,t,n),el(l,t,n)),t={cache:Lo()},e.payload=t;return}t=t.return}}function S0(e,t,n){var l=bt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ir(e)?hh(t,n):(n=Ao(e,t,n,l),n!==null&&(ot(n,e,l),mh(n,t,l)))}function dh(e,t,n){var l=bt();ll(e,t,n,l)}function ll(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ir(e))hh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,p=u(d,n);if(o.hasEagerState=!0,o.eagerState=p,ht(p,d))return mr(e,t,o,0),Re===null&&hr(),!1}catch{}finally{}if(n=Ao(e,t,o,l),n!==null)return ot(n,e,l),mh(n,t,l),!0}return!1}function ou(e,t,n,l){if(l={lane:2,revertLane:Bu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ir(e)){if(t)throw Error(s(479))}else t=Ao(e,n,l,2),t!==null&&ot(t,e,2)}function Ir(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function hh(e,t){ci=xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,bf(e,n)}}var rl={readContext:Qe,use:Nr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};rl.useEffectEvent=Ie;var ph={readContext:Qe,use:Nr,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:Fd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Mr(4194308,4,nh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){Mr(4,2,e,t)},useMemo:function(e,t){var n=et();t=t===void 0?null:t;var l=e();if(Oa){On(!0);try{e()}finally{On(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=et();if(n!==void 0){var o=n(t);if(Oa){On(!0);try{n(t)}finally{On(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=S0.bind(null,ne,e),[l.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=tu(e);var t=e.queue,n=dh.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:iu,useDeferredValue:function(e,t){var n=et();return lu(n,e,t)},useTransition:function(){var e=tu(!1);return e=sh.bind(null,ne,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ne,o=et();if(fe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Re===null)throw Error(s(349));(ue&127)!==0||Ld(l,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Fd(kd.bind(null,l,u,e),[e]),l.flags|=2048,di(9,{destroy:void 0},jd.bind(null,l,u,n,t),null),n},useId:function(){var e=et(),t=Re.identifierPrefix;if(fe){var n=Vt,l=qt;n=(l&~(1<<32-dt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Rr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=h0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:su,useFormState:Kd,useActionState:Kd,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ou.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return et().memoizedState=b0.bind(null,ne)},useEffectEvent:function(e){var t=et(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},uu={readContext:Qe,use:Nr,useCallback:ih,useContext:Qe,useEffect:au,useImperativeHandle:ah,useInsertionEffect:eh,useLayoutEffect:th,useMemo:lh,useReducer:Dr,useRef:Jd,useState:function(){return Dr(cn)},useDebugValue:iu,useDeferredValue:function(e,t){var n=ke();return rh(n,Te.memoizedState,e,t)},useTransition:function(){var e=Dr(cn)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:il(e),t]},useSyncExternalStore:zd,useId:ch,useHostTransitionStatus:su,useFormState:Qd,useActionState:Qd,useOptimistic:function(e,t){var n=ke();return qd(n,Te,e,t)},useMemoCache:Fo,useCacheRefresh:fh};uu.useEffectEvent=Wd;var gh={readContext:Qe,use:Nr,useCallback:ih,useContext:Qe,useEffect:au,useImperativeHandle:ah,useInsertionEffect:eh,useLayoutEffect:th,useMemo:lh,useReducer:eu,useRef:Jd,useState:function(){return eu(cn)},useDebugValue:iu,useDeferredValue:function(e,t){var n=ke();return Te===null?lu(n,e,t):rh(n,Te.memoizedState,e,t)},useTransition:function(){var e=eu(cn)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:il(e),t]},useSyncExternalStore:zd,useId:ch,useHostTransitionStatus:su,useFormState:$d,useActionState:$d,useOptimistic:function(e,t){var n=ke();return Te!==null?qd(n,Te,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fo,useCacheRefresh:fh};gh.useEffectEvent=Wd;function cu(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:A({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fu={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=bt(),o=jn(l);o.payload=t,n!=null&&(o.callback=n),t=kn(e,o,l),t!==null&&(ot(t,e,l),el(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=bt(),o=jn(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=kn(e,o,l),t!==null&&(ot(t,e,l),el(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bt(),l=jn(n);l.tag=2,t!=null&&(l.callback=t),t=kn(e,l,n),t!==null&&(ot(t,e,n),el(t,e,n))}};function yh(e,t,n,l,o,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,d):t.prototype&&t.prototype.isPureReactComponent?!Xi(n,l)||!Xi(o,u):!0}function vh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&fu.enqueueReplaceState(t,t.state,null)}function Na(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=A({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function bh(e){dr(e)}function Sh(e){console.error(e)}function _h(e){dr(e)}function zr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}
vendor: 4,340 bytes, line 48
48function Eh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function du(e,t,n){return n=jn(n),n.tag=3,n.payload={element:null},n.callback=function(){zr(e,t)},n}function Th(e){return e=jn(e),e.tag=3,e}function wh(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;e.payload=function(){return o(u)},e.callback=function(){Eh(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Eh(t,n,l),typeof o!="function"&&(Pn===null?Pn=new Set([this]):Pn.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function _0(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ii(t,n,o,!0),n=pt.current,n!==null){switch(n.tag){case 31:case 13:return Ot===null?Kr():n.alternate===null&&ze===0&&(ze=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===Er?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),ju(e,l,o)),!1;case 22:return n.flags|=65536,l===Er?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),ju(e,l,o)),!1}throw Error(s(435,n.tag))}return ju(e,l,o),Kr(),!1}if(fe)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Do&&(e=Error(s(422),{cause:l}),Zi(At(e,n)))):(l!==Do&&(t=Error(s(423),{cause:l}),Zi(At(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=At(l,n),o=du(e.stateNode,l,o),Vo(e,o),ze!==4&&(ze=2)),!1;var u=Error(s(520),{cause:l});if(u=At(u,n),ml===null?ml=[u]:ml.push(u),ze!==4&&(ze=2),t===null)return!0;l=At(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=du(n.stateNode,l,e),Vo(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Pn===null||!Pn.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Th(o),wh(o,e,n,l),Vo(n,o),!1}n=n.return}while(n!==null);return!1}var hu=Error(s(461)),qe=!1;function Ze(e,t,n,l){t.child=e===null?Rd(t,null,n,l):Ra(t,e.child,n,l)}function Ah(e,t,n,l,o){n=n.render;var u=t.ref;if("ref"in l){var d={};for(var p in l)p!=="ref"&&(d[p]=l[p])}else d=l;return wa(t),l=Qo(e,t,n,d,u,o),p=Zo(),e!==null&&!qe?($o(e,t,o),fn(e,t,o)):(fe&&p&&Oo(t),t.flags|=1,Ze(e,t,l,o),t.child)}function Ch(e,t,n,l,o){if(e===null){var u=n.type;return typeof u=="function"&&!Co(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,xh(e,t,u,l,o)):(e=gr(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_u(e,o)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:Xi,n(d,l)&&e.ref===t.ref)return fn(e,t,o)}return t.flags|=1,e=ln(u,l),e.ref=t.ref,e.return=t,t.child=e}function xh(e,t,n,l,o){if(e!==null){var u=e.memoizedProps;if(Xi(u,l)&&e.ref===t.ref)if(qe=!1,t.pendingProps=l=u,_u(e,o))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,fn(e,t,o)}return mu(e,t,n,l,o)}function Rh(e,t,n,l){var o=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,t.child=null;return Oh(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sr(t,u!==null?u.cachePool:null),u!==null?Dd(t,u):Po(),Md(t);else return l=t.lanes=536870912,Oh(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Sr(t,u.cachePool),Dd(t,u),Bn(),t.memoizedState=null):(e!==null&&Sr(t,null),Po(),Bn());return Ze(e,t,o,n),t.child}function sl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Oh(e,t,n,l,o){var u=ko();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Sr(t,null),Po(),Md(t),e!==null&&ii(e,t,l,!0),t.childLanes=o,null}function Lr(e,t){return t=kr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}
vendor: 4,161 bytes, line 48
48function Nh(e,t,n){return Ra(t,e.child,null,n),e=Lr(t,t.pendingProps),e.flags|=2,gt(t),t.memoizedState=null,e}function E0(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(l.mode==="hidden")return e=Lr(t,l),t.lanes=536870912,sl(null,e);if(Xo(t),(e=Ne)?(e=Vm(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:qt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},n=hd(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw In(t);return t.lanes=536870912,null}return Lr(t,l)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(Xo(t),o)if(t.flags&256)t.flags&=-257,t=Nh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(qe||ii(e,t,n,!1),o=(n&e.childLanes)!==0,qe||o){if(l=Re,l!==null&&(d=Sf(l,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,Sa(e,d),ot(l,e,d),hu;Kr(),t=Nh(e,t,n)}else e=u.treeContext,Ne=Nt(d.nextSibling),Ke=t,fe=!0,Un=null,Rt=!1,e!==null&&gd(t,e),t=Lr(t,l),t.flags|=4096;return t}return e=ln(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function jr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mu(e,t,n,l,o){return wa(t),n=Qo(e,t,n,l,void 0,o),l=Zo(),e!==null&&!qe?($o(e,t,o),fn(e,t,o)):(fe&&l&&Oo(t),t.flags|=1,Ze(e,t,n,o),t.child)}function Dh(e,t,n,l,o,u){return wa(t),t.updateQueue=null,n=Id(t,l,n,o),Ud(e),l=Zo(),e!==null&&!qe?($o(e,t,u),fn(e,t,u)):(fe&&l&&Oo(t),t.flags|=1,Ze(e,t,n,u),t.child)}function Mh(e,t,n,l,o){if(wa(t),t.stateNode===null){var u=ei,d=n.contextType;typeof d=="object"&&d!==null&&(u=Qe(d)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Bo(t),d=n.contextType,u.context=typeof d=="object"&&d!==null?Qe(d):ei,u.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(cu(t,n,d,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&fu.enqueueReplaceState(u,u.state,null),nl(t,l,u,o),tl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,v=Na(n,p);u.props=v;var x=u.context,M=n.contextType;d=ei,typeof M=="object"&&M!==null&&(d=Qe(M));var z=n.getDerivedStateFromProps;M=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||x!==d)&&vh(t,u,l,d),Ln=!1;var R=t.memoizedState;u.state=R,nl(t,l,u,o),tl(),x=t.memoizedState,p||R!==x||Ln?(typeof z=="function"&&(cu(t,n,z,l),x=t.memoizedState),(v=Ln||yh(t,n,v,l,R,x,d))?(M||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=x),u.props=l,u.state=x,u.context=d,l=v):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,qo(e,t),d=t.memoizedProps,M=Na(n,d),u.props=M,z=t.pendingProps,R=u.context,x=n.contextType,v=ei,typeof x=="object"&&x!==null&&(v=Qe(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==z||R!==v)&&vh(t,u,l,v),Ln=!1,R=t.memoizedState,u.state=R,nl(t,l,u,o),tl();var D=t.memoizedState;
vendor: 4,626 bytes, line 48
48d!==z||R!==D||Ln||e!==null&&e.dependencies!==null&&vr(e.dependencies)?(typeof p=="function"&&(cu(t,n,p,l),D=t.memoizedState),(M=Ln||yh(t,n,M,l,R,D,v)||e!==null&&e.dependencies!==null&&vr(e.dependencies))?(x||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,D,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,D,v)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=D),u.props=l,u.state=D,u.context=v,l=M):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,jr(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Ra(t,e.child,null,o),t.child=Ra(t,null,n,o)):Ze(e,t,n,o),t.memoizedState=u.state,e=t.child):e=fn(e,t,o),e}function Uh(e,t,n,l){return Ea(),t.flags|=256,Ze(e,t,n,l),t.child}var pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gu(e){return{baseLanes:e,cachePool:Ed()}}function yu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=vt),e}function Ih(e,t,n){var l=t.pendingProps,o=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(je.current&2)!==0),d&&(o=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(o?Hn(t):Bn(),(e=Ne)?(e=Vm(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:qt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},n=hd(e),n.return=t,t.child=n,Ke=t,Ne=null)):e=null,e===null)throw In(t);return Wu(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,o?(Bn(),o=t.mode,p=kr({mode:"hidden",children:p},o),l=_a(l,o,n,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=gu(n),l.childLanes=yu(e,d,n),t.memoizedState=pu,sl(null,l)):(Hn(t),vu(t,p))}var v=e.memoizedState;if(v!==null&&(p=v.dehydrated,p!==null)){if(u)t.flags&256?(Hn(t),t.flags&=-257,t=bu(e,t,n)):t.memoizedState!==null?(Bn(),t.child=e.child,t.flags|=128,t=null):(Bn(),p=l.fallback,o=t.mode,l=kr({mode:"visible",children:l.children},o),p=_a(p,o,n,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,Ra(t,e.child,null,n),l=t.child,l.memoizedState=gu(n),l.childLanes=yu(e,d,n),t.memoizedState=pu,t=sl(null,l));else if(Hn(t),Wu(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var x=d.dgst;d=x,l=Error(s(419)),l.stack="",l.digest=d,Zi({value:l,source:null,stack:null}),t=bu(e,t,n)}else if(qe||ii(e,t,n,!1),d=(n&e.childLanes)!==0,qe||d){if(d=Re,d!==null&&(l=Sf(d,n),l!==0&&l!==v.retryLane))throw v.retryLane=l,Sa(e,l),ot(d,e,l),hu;Fu(p)||Kr(),t=bu(e,t,n)}else Fu(p)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Ne=Nt(p.nextSibling),Ke=t,fe=!0,Un=null,Rt=!1,e!==null&&gd(t,e),t=vu(t,l.children),t.flags|=4096);return t}return o?(Bn(),p=l.fallback,o=t.mode,v=e.child,x=v.sibling,l=ln(v,{mode:"hidden",children:l.children}),l.subtreeFlags=v.subtreeFlags&65011712,x!==null?p=ln(x,p):(p=_a(p,o,n,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,sl(null,l),l=t.child,p=e.child.memoizedState,p===null?p=gu(n):(o=p.cachePool,o!==null?(v=He._currentValue,o=o.parent!==v?{parent:v,pool:v}:o):o=Ed(),p={baseLanes:p.baseLanes|n,cachePool:o}),l.memoizedState=p,l.childLanes=yu(e,d,n),t.memoizedState=pu,sl(e.child,l)):(Hn(t),n=e.child,e=n.sibling,n=ln(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function vu(e,t){return t=kr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function kr(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function bu(e,t,n){return Ra(t,e.child,null,n),e=vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Io(e.return,t,n)}function Su(e,t,n,l,o,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=o,d.treeForkCount=u)}
vendor: 5,423 bytes, line 48
48function Lh(e,t,n){var l=t.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var d=je.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,P(je,d),Ze(e,t,l,n),l=fe?Qi:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zh(e,n,t);else if(e.tag===19)zh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Cr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Su(t,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Su(t,!0,n,null,u,l);break;case"together":Su(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ii(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=ln(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ln(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vr(e)))}function T0(e,t,n){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),zn(t,He,e.memoizedState.cache),Ea();break;case 27:case 5:Ui(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Hn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ih(e,t,n):(Hn(t),e=fn(e,t,n),e!==null?e.sibling:null);Hn(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ii(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return Lh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(je,je.current),l)break;return null;case 22:return t.lanes=0,Rh(e,t,n,t.pendingProps);case 24:zn(t,He,e.memoizedState.cache)}return fn(e,t,n)}function jh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!_u(e,n)&&(t.flags&128)===0)return qe=!1,T0(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,fe&&(t.flags&1048576)!==0&&pd(t,Qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e=="function")Co(e)?(l=Na(e,l),t.tag=1,t=Mh(null,t,e,l,n)):(t.tag=0,t=mu(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===J){t.tag=11,t=Ah(null,t,e,l,n);break e}else if(o===V){t.tag=14,t=Ch(null,t,e,l,n);break e}}throw t=en(e)||e,Error(s(306,t,""))}}return t;case 0:return mu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=Na(l,t.pendingProps),Mh(e,t,l,o,n);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;o=u.element,qo(e,t),nl(t,l,null,n);var d=t.memoizedState;if(l=d.cache,zn(t,He,l),l!==u.cache&&zo(t,[He],n,!0),tl(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Uh(e,t,l,n);break e}else if(l!==o){o=At(Error(s(424)),t),Zi(o),t=Uh(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ne=Nt(e.firstChild),Ke=t,fe=!0,Un=null,Rt=!0,n=Rd(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ea(),l===o){t=fn(e,t,n);break e}Ze(e,t,l,n)}t=t.child}return t;case 26:return jr(e,t),e===null?(n=Qm(t.type,null,t.pendingProps,null))?t.memoizedState=n:fe||(n=t.type,e=t.pendingProps,l=es(re.current).createElement(n),l[Xe]=t,l[nt]=e,$e(l,n,e),Pe(l),t.stateNode=l):t.memoizedState=Qm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ui(t),e===null&&fe&&(l=t.stateNode=Ym(t.type,t.pendingProps,re.current),Ke=t,Rt=!0,o=Ne,Qn(t.type)?(ec=o,Ne=Nt(l.firstChild)):Ne=o),Ze(e,t,t.pendingProps.children,n),jr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((o=l=Ne)&&(l=W0(l,t.type,t.pendingProps,Rt),l!==null?(t.stateNode=l,Ke=t,Ne=Nt(l.firstChild),Rt=!1,o=!0):o=!1),o||In(t)),Ui(t),o=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,l=u.children,Zu(o,u)?l=null:d!==null&&Zu(o,d)&&(t.flags|=32),t.memoizedState!==null&&(o=Qo(e,t,m0,null,null,n),El._currentValue=o),jr(e,t),Ze(e,t,l,n),t.child;case 6:return e===null&&fe&&((e=n=Ne)&&(n=eb(n,t.pendingProps,Rt),n!==null?(t.stateNode=n,Ke=t,Ne=null,e=!0):e=!1),e||In(t)),null;case 13:return Ih(e,t,n);case 4:return We(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ra(t,null,l,n):Ze(e,t,l,n),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,zn(t,t.type,l.value),Ze(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,wa(t),o=Qe(o),l=l(o),t.flags|=1,Ze(e,t,l,n),t.child;case 14:return Ch(e,t,t.type,t.pendingProps,n);case 15:return xh(e,t,t.type,t.pendingProps,n);
vendor: 4,823 bytes, line 48
48case 19:return Lh(e,t,n);case 31:return E0(e,t,n);case 22:return Rh(e,t,n,t.pendingProps);case 24:return wa(t),l=Qe(He),e===null?(o=ko(),o===null&&(o=Re,u=Lo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:l,cache:o},Bo(t),zn(t,He,o)):((e.lanes&n)!==0&&(qo(e,t),nl(t,null,null,n),tl()),o=e.memoizedState,u=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),zn(t,He,l)):(l=u.cache,zn(t,He,l),l!==o.cache&&zo(t,[He],n,!0))),Ze(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function dn(e){e.flags|=4}function Eu(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(cm())e.flags|=8192;else throw xa=Er,Ho}else e.flags&=-16777217}function kh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wm(t))if(cm())e.flags|=8192;else throw xa=Er,Ho}function Hr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yf():536870912,e.lanes|=t,gi|=t)}function ol(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function w0(e,t,n){var l=t.pendingProps;switch(No(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),on(He),Le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ai(t)?dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mo())),De(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(dn(t),u!==null?(De(t),kh(t,u)):(De(t),Eu(t,o,null,l,n))):u?u!==e.memoizedState?(dn(t),De(t),kh(t,u)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&dn(t),De(t),Eu(t,o,e,l,n)),null;case 27:if($l(t),n=re.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&dn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return De(t),null}e=K.current,ai(t)?yd(t):(e=Ym(o,l,n),t.stateNode=e,dn(t))}return De(t),null;case 5:if($l(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&dn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return De(t),null}if(u=K.current,ai(t))yd(t);else{var d=es(re.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(o,{is:l.is}):d.createElement(o)}}u[Xe]=t,u[nt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=u;e:switch($e(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&dn(t)}}return De(t),Eu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&dn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,ai(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=Ke,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Im(e.nodeValue,n)),e||In(t,!0)}else e=es(e).createTextNode(l),e[Xe]=t,t.stateNode=e}return De(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ai(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557)
vendor: 20,926 bytes, line 48
48);e[Xe]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else n=Mo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(gt(t),t):(gt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return De(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ai(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Xe]=t}else Ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),o=!1}else o=Mo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(gt(t),t):(gt(t),null)}return gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Hr(t,t.updateQueue),De(t),null);case 4:return Le(),e===null&&Pu(t.stateNode.containerInfo),De(t),null;case 10:return on(t.type),De(t),null;case 19:if(j(je),l=t.memoizedState,l===null)return De(t),null;if(o=(t.flags&128)!==0,u=l.rendering,u===null)if(o)ol(l,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Cr(e),u!==null){for(t.flags|=128,ol(l,!1),e=u.updateQueue,t.updateQueue=e,Hr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)dd(n,e),n=n.sibling;return P(je,je.current&1|2),fe&&rn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ct()>Pr&&(t.flags|=128,o=!0,ol(l,!1),t.lanes=4194304)}else{if(!o)if(e=Cr(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Hr(t,e),ol(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!fe)return De(t),null}else 2*ct()-l.renderingStartTime>Pr&&n!==536870912&&(t.flags|=128,o=!0,ol(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ct(),e.sibling=null,n=je.current,P(je,o?n&1|2:n&1),fe&&rn(t,l.treeForkCount),e):(De(t),null);case 22:case 23:return gt(t),Yo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),n=t.updateQueue,n!==null&&Hr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&j(Aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),on(He),De(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function A0(e,t){switch(No(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return on(He),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $l(t),null;case 31:if(t.memoizedState!==null){if(gt(t),t.alternate===null)throw Error(s(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(je),null;case 4:return Le(),null;case 10:return on(t.type),null;case 22:case 23:return gt(t),Yo(),e!==null&&j(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return on(He),null;case 25:return null;default:return null}}function Hh(e,t){switch(No(t),t.tag){case 3:on(He),Le();break;case 26:case 27:case 5:$l(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&gt(t);break;case 13:gt(t);break;case 19:j(je);break;case 10:on(t.type);break;case 22:case 23:gt(t),Yo(),e!==null&&j(Aa);break;case 24:on(He)}}function ul(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var u=n.create,d=n.inst;l=u(),d.destroy=l}n=n.next}while(n!==o)}}catch(p){_e(t,t.return,p)}}function qn(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&e)===e){var d=l.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,o=t;var v=n,x=p;try{x()}catch(M){_e(o,v,M)}}}l=l.next}while(l!==u)}}catch(M){_e(t,t.return,M)}}function Bh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Nd(t,n)}catch(l){_e(e,e.return,l)}}}function qh(e,t,n){n.props=Na(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){_e(e,t,l)}}function cl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){_e(e,t,o)}}function Gt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){_e(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){_e(e,t,o)}else n.current=null}function Vh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){_e(e,e.return,o)}}function Tu(e,t,n){try{var l=e.stateNode;K0(l,e.type,n,t),l[nt]=t}catch(o){_e(e,e.return,o)}}function Gh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Au(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn));else if(l!==4&&(l===27&&Qn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Au(e,t,n),e=e.sibling;e!==null;)Au(e,t,n),e=e.sibling}function Br(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Qn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Br(e,t,n),e=e.sibling;e!==null;)Br(e,t,n),e=e.sibling}function Ph(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);$e(t,l,n),t[Xe]=e,t[nt]=n}catch(u){_e(e,e.return,u)}}var hn=!1,Ve=!1,Cu=!1,Yh=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function C0(e,t){if(e=e.containerInfo,Ku=ss,e=ad(e),bo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,p=-1,v=-1,x=0,M=0,z=e,R=null;t:for(;;){for(var D;z!==n||o!==0&&z.nodeType!==3||(p=d+o),z!==u||l!==0&&z.nodeType!==3||(v=d+l),z.nodeType===3&&(d+=z.nodeValue.length),(D=z.firstChild)!==null;)R=z,z=D;for(;;){if(z===e)break t;if(R===n&&++x===o&&(p=d),R===u&&++M===l&&(v=d),(D=z.nextSibling)!==null)break;z=R,R=z.parentNode}z=D}n=p===-1||v===-1?null:{start:p,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},ss=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var X=Na(n.type,o);e=l.getSnapshotBeforeUpdate(X,u),l.__reactInternalSnapshotBeforeUpdate=e}catch($){_e(n,n.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ju(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ju(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Xh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:pn(e,n),l&4&&ul(5,n);break;case 1:if(pn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){_e(n,n.return,d)}else{var o=Na(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){_e(n,n.return,d)}}l&64&&Bh(n),l&512&&cl(n,n.return);break;case 3:if(pn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Nd(e,t)}catch(d){_e(n,n.return,d)}}break;case 27:t===null&&l&4&&Ph(n);case 26:case 5:pn(e,n),t===null&&l&4&&Vh(n),l&512&&cl(n,n.return);break;case 12:pn(e,n);break;case 31:pn(e,n),l&4&&Zh(e,n);break;case 13:pn(e,n),l&4&&$h(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=z0.bind(null,n),tb(e,n))));break;case 22:if(l=n.memoizedState!==null||hn,!l){t=t!==null&&t.memoizedState!==null||Ve,o=hn;var u=Ve;hn=l,(Ve=t)&&!u?gn(e,n,(n.subtreeFlags&8772)!==0):pn(e,n),hn=o,Ve=u}break;case 30:break;default:pn(e,n)}}function Kh(e){var t=e.alternate;t!==null&&(e.alternate=null,Kh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&to(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,it=!1;function mn(e,t,n){for(n=n.child;n!==null;)Qh(e,t,n),n=n.sibling}function Qh(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ii,n)}catch{}switch(n.tag){case 26:Ve||Gt(n,t),mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ve||Gt(n,t);var l=Me,o=it;Qn(n.type)&&(Me=n.stateNode,it=!1),mn(e,t,n),bl(n.stateNode),Me=l,it=o;break;case 5:Ve||Gt(n,t);case 6:if(l=Me,o=it,Me=null,mn(e,t,n),Me=l,it=o,Me!==null)if(it)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(n.stateNode)}catch(u){_e(n,t,u)}else try{Me.removeChild(n.stateNode)}catch(u){_e(n,t,u)}break;case 18:Me!==null&&(it?(e=Me,Bm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),wi(e)):Bm(Me,n.stateNode));break;case 4:l=Me,o=it,Me=n.stateNode.containerInfo,it=!0,mn(e,t,n),Me=l,it=o;break;case 0:case 11:case 14:case 15:qn(2,n,t),Ve||qn(4,n,t),mn(e,t,n);break;case 1:Ve||(Gt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&qh(n,t,l)),mn(e,t,n);break;case 21:mn(e,t,n);break;case 22:Ve=(l=Ve)||n.memoizedState!==null,mn(e,t,n),Ve=l;break;default:mn(e,t,n)}}function Zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(n){_e(t,t.return,n)}}}function $h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wi(e)}catch(n){_e(t,t.return,n)}}function x0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yh),t;default:throw Error(s(435,e.tag))}}function qr(e,t){var n=x0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=L0.bind(null,e,l);l.then(o,o)}})}function lt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(Qn(p.type)){Me=p.stateNode,it=!1;break e}break;case 5:Me=p.stateNode,it=!1;break e;case 3:case 4:Me=p.stateNode.containerInfo,it=!0;break e}p=p.return}if(Me===null)throw Error(s(160));Qh(u,d,o),Me=null,it=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jh(t,e),t=t.sibling}var It=null;function Jh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:lt(t,e),rt(e),l&4&&(qn(3,e,e.return),ul(3,e),qn(5,e,e.return));break;case 1:lt(t,e),rt(e),l&512&&(Ve||n===null||Gt(n,n.return)),l&64&&hn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=It;if(lt(t,e),rt(e),l&512&&(Ve||n===null||Gt(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ji]||u[Xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),$e(u,l,n),u[Xe]=e,Pe(u),l=u;break e;case"link":var d=Jm("link","href",o).get(l+(n.href||""));if(d){for(var p=0;p<d.length;p++)if(u=d[p],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(p,1);break t}}u=o.createElement(l),$e(u,l,n),o.head.appendChild(u);break;case"meta":if(d=Jm("meta","content",o).get(l+(n.content||""))){for(p=0;p<d.length;p++)if(u=d[p],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(p,1);break t}}u=o.createElement(l),$e(u,l,n),o.head.appendChild(u);break;default:throw Error(s(468,l))}u[Xe]=e,Pe(u),l=u}e.stateNode=l}else Fm(o,e.type,e.stateNode);else e.stateNode=$m(o,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Fm(o,e.type,e.stateNode):$m(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Tu(e,e.memoizedProps,n.memoizedProps)}break;case 27:lt(t,e),rt(e),l&512&&(Ve||n===null||Gt(n,n.return)),n!==null&&l&4&&Tu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(lt(t,e),rt(e),l&512&&(Ve||n===null||Gt(n,n.return)),e.flags&32){o=e.stateNode;try{Ka(o,"")}catch(X){_e(e,e.return,X)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Tu(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Cu=!0);break;case 6:if(lt(t,e),rt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(X){_e(e,e.return,X)}}break;case 3:if(as=null,o=It,It=ts(t.containerInfo),lt(t,e),It=o,rt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(X){_e(e,e.return,X)}Cu&&(Cu=!1,Fh(e));break;case 4:l=It,It=ts(e.stateNode.containerInfo),lt(t,e),rt(e),It=l;break;case 12:lt(t,e),rt(e);break;case 31:lt(t,e),rt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 13:lt(t,e),rt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Gr=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 22:o=e.memoizedState!==null;var v=n!==null&&n.memoizedState!==null,x=hn,M=Ve;if(hn=x||o,Ve=M||v,lt(t,e),Ve=M,hn=x,rt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||v||hn||Ve||Da(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){v=n=t;try{if(u=v.stateNode,o)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=v.stateNode;var z=v.memoizedProps.style,R=z!=null&&z.hasOwnProperty("display")?z.display:null;p.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(X){_e(v,v.return,X)}}}else if(t.tag===6){if(n===null){v=t;try{v.stateNode.nodeValue=o?"":v.memoizedProps}catch(X){_e(v,v.return,X)}}}else if(t.tag===18){if(n===null){v=t;try{var D=v.stateNode;o?qm(D,!0):qm(v.stateNode,!1)}catch(X){_e(v,v.return,X)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,qr(e,n))));break;case 19:lt(t,e),rt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 30:break;case 21:break;default:lt(t,e),rt(e)}}function rt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Gh(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var o=n.stateNode,u=wu(e);Br(e,u,o);break;case 5:var d=n.stateNode;n.flags&32&&(Ka(d,""),n.flags&=-33);var p=wu(e);Br(e,p,d);break;case 3:case 4:var v=n.stateNode.containerInfo,x=wu(e);Au(e,x,v);break;default:throw Error(s(161))}}catch(M){_e(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xh(e,t.alternate,t),t=t.sibling}function Da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),Da(t);break;case 1:Gt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&qh(t,t.return,n),Da(t);break;case 27:bl(t.stateNode);case 26:case 5:Gt(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}e=e.sibling}}function gn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,u=t,d=u.flags;switch(u.tag){case 0:case 11:case 15:gn(o,u,n),ul(4,u);break;case 1:if(gn(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(x){_e(l,l.return,x)}if(l=u,o=l.updateQueue,o!==null){var p=l.stateNode;try{var v=o.shared.hiddenCallbacks;if(v!==null)for(o.shared.hiddenCallbacks=null,o=0;o<v.length;o++)Od(v[o],p)}catch(x){_e(l,l.return,x)}}n&&d&64&&Bh(u),cl(u,u.return);break;case 27:Ph(u);case 26:case 5:gn(o,u,n),n&&l===null&&d&4&&Vh(u),cl(u,u.return);break;case 12:gn(o,u,n);break;case 31:gn(o,u,n),n&&d&4&&Zh(o,u);break;case 13:gn(o,u,n),n&&d&4&&$h(o,u);break;case 22:u.memoizedState===null&&gn(o,u,n),cl(u,u.return);break;case 30:break;default:gn(o,u,n)}t=t.sibling}}function xu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$i(n))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function zt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(e,t,n,l),t=t.sibling}function Wh(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:zt(e,t,n,l),o&2048&&ul(9,t);break;case 1:zt(e,t,n,l);break;case 3:zt(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(o&2048){zt(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,d=u.id,p=u.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){_e(t,t.return,v)}}else zt(e,t,n,l);break;case 31:zt(e,t,n,l);break;case 13:zt(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,d=t.alternate,t.memoizedState!==null?u._visibility&2?zt(e,t,n,l):fl(e,t):u._visibility&2?zt(e,t,n,l):(u._visibility|=2,hi(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&xu(d,t);break;case 24:zt(e,t,n,l),o&2048&&Ru(t.alternate,t);break;default:zt(e,t,n,l)}}function hi(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,d=t,p=n,v=l,x=d.flags;switch(d.tag){case 0:case 11:case 15:hi(u,d,p,v,o),ul(8,d);break;case 23:break;case 22:var M=d.stateNode;d.memoizedState!==null?M._visibility&2?hi(u,d,p,v,o):fl(u,d):(M._visibility|=2,hi(u,d,p,v,o)),o&&x&2048&&xu(d.alternate,d);break;case 24:hi(u,d,p,v,o),o&&x&2048&&Ru(d.alternate,d);break;default:hi(u,d,p,v,o)}t=t.sibling}}function fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:fl(n,l),o&2048&&xu(l.alternate,l);break;case 24:fl(n,l),o&2048&&Ru(l.alternate,l);break;default:fl(n,l)}
vendor: 6,081 bytes, line 48
48t=t.sibling}}var dl=8192;function mi(e,t,n){if(e.subtreeFlags&dl)for(e=e.child;e!==null;)em(e,t,n),e=e.sibling}function em(e,t,n){switch(e.tag){case 26:mi(e,t,n),e.flags&dl&&e.memoizedState!==null&&hb(n,It,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,n);break;case 3:case 4:var l=It;It=ts(e.stateNode.containerInfo),mi(e,t,n),It=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=dl,dl=16777216,mi(e,t,n),dl=l):mi(e,t,n));break;default:mi(e,t,n)}}function tm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function hl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ye=l,am(l,e)}tm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nm(e),e=e.sibling}function nm(e){switch(e.tag){case 0:case 11:case 15:hl(e),e.flags&2048&&qn(9,e,e.return);break;case 3:hl(e);break;case 12:hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vr(e)):hl(e);break;default:hl(e)}}function Vr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ye=l,am(l,e)}tm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),Vr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vr(t));break;default:Vr(t)}e=e.sibling}}function am(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:qn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$i(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ye=l;else e:for(n=e;Ye!==null;){l=Ye;var o=l.sibling,u=l.return;if(Kh(l),l===n){Ye=null;break e}if(o!==null){o.return=u,Ye=o;break e}Ye=u}}}var R0={getCacheForType:function(e){var t=Qe(He),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Qe(He).controller.signal}},O0=typeof WeakMap=="function"?WeakMap:Map,ge=0,Re=null,se=null,ue=0,Se=0,yt=null,Vn=!1,pi=!1,Ou=!1,yn=0,ze=0,Gn=0,Ma=0,Nu=0,vt=0,gi=0,ml=null,st=null,Du=!1,Gr=0,im=0,Pr=1/0,Yr=null,Pn=null,Ge=0,Yn=null,yi=null,vn=0,Mu=0,Uu=null,lm=null,pl=0,Iu=null;function bt(){return(ge&2)!==0&&ue!==0?ue&-ue:U.T!==null?Bu():_f()}function rm(){if(vt===0)if((ue&536870912)===0||fe){var e=Wl;Wl<<=1,(Wl&3932160)===0&&(Wl=262144),vt=e}else vt=536870912;return e=pt.current,e!==null&&(e.flags|=32),vt}function ot(e,t,n){(e===Re&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(vi(e,0),Xn(e,ue,vt,!1)),Li(e,n),((ge&2)===0||e!==Re)&&(e===Re&&((ge&2)===0&&(Ma|=n),ze===4&&Xn(e,ue,vt,!1)),Pt(e))}function sm(e,t,n){if((ge&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||zi(e,t),o=l?M0(e,t):Lu(e,t,!0),u=l;do{if(o===0){pi&&!l&&Xn(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!N0(n)){o=Lu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var p=e;o=ml;var v=p.current.memoizedState.isDehydrated;if(v&&(vi(p,d).flags|=256),d=Lu(p,d,!1),d!==2){if(Ou&&!v){p.errorRecoveryDisabledLanes|=u,Ma|=u,o=4;break e}u=st,st=o,u!==null&&(st===null?st=u:st.push.apply(st,u))}o=d}if(u=!1,o!==2)continue}}if(o===1){vi(e,0),Xn(e,t,0,!0);break}e:{switch(l=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Xn(l,t,vt,!Vn);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Gr+300-ct(),10<o)){if(Xn(l,t,vt,!Vn),tr(l,0,!0)!==0)break e;vn=t,l.timeoutHandle=km(om.bind(null,l,n,st,Yr,Du,t,vt,Ma,gi,Vn,u,"Throttled",-0,0),o);break e}om(l,n,st,Yr,Du,t,vt,Ma,gi,Vn,u,null,-0,0)}}break}while(!0);Pt(e)}function om(e,t,n,l,o,u,d,p,v,x,M,z,R,D){if(e.timeoutHandle=-1,z=t.subtreeFlags,z&8192||(z&16785408)===16785408){z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},em(t,u,z);var X=(u&62914560)===u?Gr-ct():(u&4194048)===u?im-ct():0;if(X=mb(z,X),X!==null){vn=u,e.cancelPendingCommit=X(gm.bind(null,e,t,u,n,l,o,d,p,v,M,z,null,R,D)),Xn(e,u,d,!x);return}}gm(e,t,u,n,l,o,d,p,v)}function N0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!ht(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xn(e,t,n,l){t&=~Nu,t&=~Ma,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var u=31-dt(o),d=1<<u;l[u]=-1,o&=~d}n!==0&&vf(e,n,t)}function Xr(){return(ge&6)===0?(gl(0),!1):!0}function zu(){if(se!==null){if(Se===0)var e=se.return;else e=se,sn=Ta=null,Jo(e),oi=null,Fi=0,e=se;for(;e!==null;)Hh(e.alternate,e),e=e.return;se=null}}function vi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vn=0,zu(),Re=e,se=n=ln(e.current,null),ue=t,Se=0,yt=null,Vn=!1,pi=zi(e,t),Ou=!1,gi=vt=Nu=Ma=Gn=ze=0,st=ml=null,Du=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-dt(l),u=1<<o;t|=e[o],l&=~u}return yn=t,hr(),n}function um(e,t){ne=null,U.H=rl,t===si||t===_r?(t=Ad(),Se=3):t===Ho?(t=Ad(),Se=4):Se=t===hu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,se===null&&(ze=1,zr(e,At(t,e.current)))}function cm(){var e=pt.current;return e===null?!0:(ue&4194048)===ue?Ot===null:(ue&62914560)===ue||(ue&536870912)!==0?e===Ot:!1}function fm(){var e=U.H;return U.H=rl,e===null?rl:e}function dm(){var e=U.A;return U.A=R0,e}function Kr(){ze=4,Vn||(ue&4194048)!==ue&&pt.current!==null||(pi=!0),(Gn&134217727)===0&&(Ma&134217727)===0||Re===null||Xn(Re,ue,vt,!1)}function Lu(e,t,n){var l=ge;ge|=2;
vendor: 4,186 bytes, line 48
48var o=fm(),u=dm();(Re!==e||ue!==t)&&(Yr=null,vi(e,t)),t=!1;var d=ze;e:do try{if(Se!==0&&se!==null){var p=se,v=yt;switch(Se){case 8:zu(),d=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var x=Se;if(Se=0,yt=null,bi(e,p,v,x),n&&pi){d=0;break e}break;default:x=Se,Se=0,yt=null,bi(e,p,v,x)}}D0(),d=ze;break}catch(M){um(e,M)}while(!0);return t&&e.shellSuspendCounter++,sn=Ta=null,ge=l,U.H=o,U.A=u,se===null&&(Re=null,ue=0,hr()),d}function D0(){for(;se!==null;)hm(se)}function M0(e,t){var n=ge;ge|=2;var l=fm(),o=dm();Re!==e||ue!==t?(Yr=null,Pr=ct()+500,vi(e,t)):pi=zi(e,t);e:do try{if(Se!==0&&se!==null){t=se;var u=yt;t:switch(Se){case 1:Se=0,yt=null,bi(e,t,u,1);break;case 2:case 9:if(Td(u)){Se=0,yt=null,mm(t);break}t=function(){Se!==2&&Se!==9||Re!==e||(Se=7),Pt(e)},u.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Td(u)?(Se=0,yt=null,mm(t)):(Se=0,yt=null,bi(e,t,u,7));break;case 5:var d=null;switch(se.tag){case 26:d=se.memoizedState;case 5:case 27:var p=se;if(d?Wm(d):p.stateNode.complete){Se=0,yt=null;var v=p.sibling;if(v!==null)se=v;else{var x=p.return;x!==null?(se=x,Qr(x)):se=null}break t}}Se=0,yt=null,bi(e,t,u,5);break;case 6:Se=0,yt=null,bi(e,t,u,6);break;case 8:zu(),ze=6;break e;default:throw Error(s(462))}}U0();break}catch(M){um(e,M)}while(!0);return sn=Ta=null,U.H=l,U.A=o,ge=n,se!==null?0:(Re=null,ue=0,hr(),ze)}function U0(){for(;se!==null&&!nv();)hm(se)}function hm(e){var t=jh(e.alternate,e,yn);e.memoizedProps=e.pendingProps,t===null?Qr(e):se=t}function mm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Dh(n,t,t.pendingProps,t.type,void 0,ue);break;case 11:t=Dh(n,t,t.pendingProps,t.type.render,t.ref,ue);break;case 5:Jo(t);default:Hh(n,t),t=se=dd(t,yn),t=jh(n,t,yn)}e.memoizedProps=e.pendingProps,t===null?Qr(e):se=t}function bi(e,t,n,l){sn=Ta=null,Jo(t),oi=null,Fi=0;var o=t.return;try{if(_0(e,o,t,n,ue)){ze=1,zr(e,At(n,e.current)),se=null;return}}catch(u){if(o!==null)throw se=o,u;ze=1,zr(e,At(n,e.current)),se=null;return}t.flags&32768?(fe||l===1?e=!0:pi||(ue&536870912)!==0?e=!1:(Vn=e=!0,(l===2||l===9||l===3||l===6)&&(l=pt.current,l!==null&&l.tag===13&&(l.flags|=16384))),pm(t,e)):Qr(t)}function Qr(e){var t=e;do{if((t.flags&32768)!==0){pm(t,Vn);return}e=t.return;var n=w0(t.alternate,t,yn);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ze===0&&(ze=5)}function pm(e,t){do{var n=A0(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);ze=6,se=null}function gm(e,t,n,l,o,u,d,p,v){e.cancelPendingCommit=null;do Zr();while(Ge!==0);if((ge&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=wo,dv(e,n,u,d,p,v),e===Re&&(se=Re=null,ue=0),yi=t,Yn=e,vn=n,Mu=u,Uu=o,lm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,j0(Jl,function(){return _m(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,o=G.p,G.p=2,d=ge,ge|=4;try{C0(e,t,n)}finally{ge=d,G.p=o,U.T=l}}Ge=1,ym(),vm(),bm()}}function ym(){if(Ge===1){Ge=0;var e=Yn,t=yi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=G.p;G.p=2;var o=ge;ge|=4;try{Jh(t,e);var u=Qu,d=ad(e.containerInfo),p=u.focusedElem,v=u.selectionRange;if(d!==p&&p&&p.ownerDocument&&nd(p.ownerDocument.documentElement,p)){if(v!==null&&bo(p)){var x=v.start,M=v.end;if(M===void 0&&(M=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(M,p.value.length);else{var z=p.ownerDocument||document,R=z&&z.defaultView||window;if(R.getSelection){var D=R.getSelection(),X=p.textContent.length,$=Math.min(v.start,X),Ae=v.end===void 0?$:Math.min(v.end,X);!D.extend&&$>Ae&&(d=Ae,Ae=$,$=d);var w=td(p,$),_=td(p,Ae);if(w&&_&&(D.rangeCount!==1||D.anchorNode!==w.node||D.anchorOffset!==w.offset||D.focusNode!==_.node||D.focusOffset!==_.offset)){var C=z.createRange();C.setStart(w.node,w.offset),D.removeAllRanges(),$>Ae?(D.addRange(C),D.extend(_.node,_.offset)):(C.setEnd(_.node,_.offset),D.addRange(C))}}}}for(z=[],D=p;D=D.parentNode;
vendor: 8,793 bytes, line 48
48)D.nodeType===1&&z.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<z.length;p++){var I=z[p];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}ss=!!Ku,Qu=Ku=null}finally{ge=o,G.p=l,U.T=n}}e.current=t,Ge=2}}function vm(){if(Ge===2){Ge=0;var e=Yn,t=yi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=G.p;G.p=2;var o=ge;ge|=4;try{Xh(e,t.alternate,t)}finally{ge=o,G.p=l,U.T=n}}Ge=3}}function bm(){if(Ge===4||Ge===3){Ge=0,av();var e=Yn,t=yi,n=vn,l=lm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,yi=Yn=null,Sm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Pn=null),Ws(n),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Ii,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,o=G.p,G.p=2,U.T=null;try{for(var u=e.onRecoverableError,d=0;d<l.length;d++){var p=l[d];u(p.value,{componentStack:p.stack})}}finally{U.T=t,G.p=o}}(vn&3)!==0&&Zr(),Pt(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Iu?pl++:(pl=0,Iu=e):pl=0,gl(0)}}function Sm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Zr(){return ym(),vm(),bm(),_m()}function _m(){if(Ge!==5)return!1;var e=Yn,t=Mu;Mu=0;var n=Ws(vn),l=U.T,o=G.p;try{G.p=32>n?32:n,U.T=null,n=Uu,Uu=null;var u=Yn,d=vn;if(Ge=0,yi=Yn=null,vn=0,(ge&6)!==0)throw Error(s(331));var p=ge;if(ge|=4,nm(u.current),Wh(u,u.current,d,n),ge=p,gl(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Ii,u)}catch{}return!0}finally{G.p=o,U.T=l,Sm(e,t)}}function Em(e,t,n){t=At(n,t),t=du(e.stateNode,t,2),e=kn(e,t,2),e!==null&&(Li(e,2),Pt(e))}function _e(e,t,n){if(e.tag===3)Em(e,e,n);else for(;t!==null;){if(t.tag===3){Em(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pn===null||!Pn.has(l))){e=At(n,e),n=Th(2),l=kn(t,n,2),l!==null&&(wh(n,l,t,e),Li(l,2),Pt(l));break}}t=t.return}}function ju(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new O0;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Ou=!0,o.add(n),e=I0.bind(null,e,t,n),t.then(e,e))}function I0(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Re===e&&(ue&n)===n&&(ze===4||ze===3&&(ue&62914560)===ue&&300>ct()-Gr?(ge&2)===0&&vi(e,0):Nu|=n,gi===ue&&(gi=0)),Pt(e)}function Tm(e,t){t===0&&(t=yf()),e=Sa(e,t),e!==null&&(Li(e,t),Pt(e))}function z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function L0(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Tm(e,n)}function j0(e,t){return Zs(e,t)}var $r=null,Si=null,ku=!1,Jr=!1,Hu=!1,Kn=0;function Pt(e){e!==Si&&e.next===null&&(Si===null?$r=Si=e:Si=Si.next=e),Jr=!0,ku||(ku=!0,H0())}function gl(e,t){if(!Hu&&Jr){Hu=!0;do for(var n=!1,l=$r;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var d=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=o&~(d&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,xm(l,u))}else u=ue,u=tr(l,l===Re?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||zi(l,u)||(n=!0,xm(l,u));l=l.next}while(n);Hu=!1}}function k0(){wm()}function wm(){Jr=ku=!1;var e=0;Kn!==0&&Z0()&&(e=Kn);for(var t=ct(),n=null,l=$r;l!==null;){var o=l.next,u=Am(l,t);u===0?(l.next=null,n===null?$r=o:n.next=o,o===null&&(Si=n)):(n=l,(e!==0||(u&3)!==0)&&(Jr=!0)),l=o}Ge!==0&&Ge!==5||gl(e),Kn!==0&&(Kn=0)}function Am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-dt(u),p=1<<d,v=o[d];v===-1?((p&n)===0||(p&l)!==0)&&(o[d]=fv(p,t)):v<=t&&(e.expiredLanes|=p),u&=~p}if(t=Re,n=ue,n=tr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&$s(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||zi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&$s(l),Ws(n)){case 2:case 8:n=pf;break;case 32:n=Jl;break;case 268435456:n=gf;break;default:n=Jl}return l=Cm.bind(null,e),n=Zs(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&$s(l),e.callbackPriority=2,e.callbackNode=null,2}function Cm(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zr()&&e.callbackNode!==n)return null;var l=ue;return l=tr(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(sm(e,l,t),Am(e,ct()),e.callbackNode!=null&&e.callbackNode===n?Cm.bind(null,e):null)}function xm(e,t){if(Zr())return null;sm(e,t,!0)}function H0(){J0(function(){(ge&6)!==0?Zs(mf,k0):wm()})}function Bu(){if(Kn===0){var e=li;e===0&&(e=Fl,Fl<<=1,(Fl&261888)===0&&(Fl=256)),Kn=e}return Kn}function Rm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lr(""+e)}function Om(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function B0(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var u=Rm((o[nt]||null).action),d=l.submitter;d&&(t=(t=d[nt]||null)?Rm(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var p=new ur("action","action",null,l,o);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Kn!==0){var v=d?Om(o,d):new FormData(o);ru(n,{pending:!0,data:v,method:o.method,action:u},null,v)}}else typeof u=="function"&&(p.preventDefault(),v=d?Om(o,d):new FormData(o),ru(n,{pending:!0,data:v,method:o.method,action:u},u,v))},currentTarget:o}]})}}for(var qu=0;qu<To.length;qu++){var Vu=To[qu],q0=Vu.toLowerCase(),V0=Vu[0].toUpperCase()+Vu.slice(1);Ut(q0,"on"+V0)}Ut(rd,"onAnimationEnd"),Ut(sd,"onAnimationIteration"),Ut(od,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(i0,"onTransitionRun"),Ut(l0,"onTransitionStart"),Ut(r0,"onTransitionCancel"),Ut(ud,"onTransitionEnd"),Ya("onMouseEnter",["mouseout","mouseover"]),Ya("onMouseLeave",["mouseout","mouseover"]),Ya("onPointerEnter",["pointerout","pointerover"]),Ya("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),G0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function Nm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var d=l.length-1;0<=d;d--){var p=l[d],v=p.instance,x=p.currentTarget;if(p=p.listener,v!==u&&o.isPropagationStopped())break e;u=p,o.currentTarget=x;try{u(o)}catch(M){dr(M)}o.currentTarget=null,u=v}else for(d=0;d<l.length;d++){if(p=l[d],v=p.instance,x=p.currentTarget,p=p.listener,v!==u&&o.isPropagationStopped())break e;u=p,o.currentTarget=x;try{u(o)}catch(M){dr(M)}o.currentTarget=null,u=v}}}}function oe(e,t){var n=t[eo];n===void 0&&(n=t[eo]=new Set);var l=e+"__bubble";n.has(l)||(Dm(t,e,2,!1),n.add(l))}function Gu(e,t,n){var l=0;t&&(l|=4),Dm(n,e,l,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Pu(e){if(!e[Fr]){e[Fr]=!0,wf.forEach(function(n){n!=="selectionchange"&&(G0.has(n)||Gu(n,!1,e),Gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,Gu("selectionchange",!1,t))}}function Dm(e,t,n,l){switch(rp(t)){case 2:var o=yb;break;case 8:o=vb;break;default:o=lc}n=o.bind(null,t,n,e),o=void 0,!uo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Yu(e,t,n,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var p=l.stateNode.containerInfo;
vendor: 2,589 bytes, line 48
48if(p===o)break;if(d===4)for(d=l.return;d!==null;){var v=d.tag;if((v===3||v===4)&&d.stateNode.containerInfo===o)return;d=d.return}for(;p!==null;){if(d=Va(p),d===null)return;if(v=d.tag,v===5||v===6||v===26||v===27){l=u=d;continue e}p=p.parentNode}}l=l.return}Lf(function(){var x=u,M=so(n),z=[];e:{var R=cd.get(e);if(R!==void 0){var D=ur,X=e;switch(e){case"keypress":if(sr(n)===0)break e;case"keydown":case"keyup":D=Lv;break;case"focusin":X="focus",D=mo;break;case"focusout":X="blur",D=mo;break;case"beforeblur":case"afterblur":D=mo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Hv;break;case rd:case sd:case od:D=xv;break;case ud:D=qv;break;case"scroll":case"scrollend":D=Ev;break;case"wheel":D=Gv;break;case"copy":case"cut":case"paste":D=Ov;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=qf;break;case"toggle":case"beforetoggle":D=Yv}var $=(t&4)!==0,Ae=!$&&(e==="scroll"||e==="scrollend"),w=$?R!==null?R+"Capture":null:R;$=[];for(var _=x,C;_!==null;){var I=_;if(C=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||C===null||w===null||(I=Hi(_,w),I!=null&&$.push(vl(_,I,C))),Ae)break;_=_.return}0<$.length&&(R=new D(R,X,null,n,M),z.push({event:R,listeners:$}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",R&&n!==ro&&(X=n.relatedTarget||n.fromElement)&&(Va(X)||X[qa]))break e;if((D||R)&&(R=M.window===M?M:(R=M.ownerDocument)?R.defaultView||R.parentWindow:window,D?(X=n.relatedTarget||n.toElement,D=x,X=X?Va(X):null,X!==null&&(Ae=f(X),$=X.tag,X!==Ae||$!==5&&$!==27&&$!==6)&&(X=null)):(D=null,X=x),D!==X)){if($=Hf,I="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&($=qf,I="onPointerLeave",w="onPointerEnter",_="pointer"),Ae=D==null?R:ki(D),C=X==null?R:ki(X),R=new $(I,_+"leave",D,n,M),R.target=Ae,R.relatedTarget=C,I=null,Va(M)===x&&($=new $(w,_+"enter",X,n,M),$.target=C,$.relatedTarget=Ae,I=$),Ae=I,D&&X)t:{for($=P0,w=D,_=X,C=0,I=w;I;I=$(I))C++;I=0;for(var Z=_;Z;Z=$(Z))I++;for(;0<C-I;)w=$(w),C--;for(;0<I-C;)_=$(_),I--;for(;C--;){if(w===_||_!==null&&w===_.alternate){$=w;break t}w=$(w),_=$(_)}$=null}else $=null;D!==null&&Mm(z,R,D,$,!1),X!==null&&Ae!==null&&Mm(z,Ae,X,$,!0)}}
vendor: 5,176 bytes, lines 48-49
48e:{if(R=x?ki(x):window,D=R.nodeName&&R.nodeName.toLowerCase(),D==="select"||D==="input"&&R.type==="file")var me=Zf;else if(Kf(R))if($f)me=t0;else{me=Wv;var Q=Fv}else D=R.nodeName,!D||D.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?x&&lo(x.elementType)&&(me=Zf):me=e0;if(me&&(me=me(e,x))){Qf(z,me,n,M);break e}Q&&Q(e,R,x),e==="focusout"&&x&&R.type==="number"&&x.memoizedProps.value!=null&&io(R,"number",R.value)}switch(Q=x?ki(x):window,e){case"focusin":(Kf(Q)||Q.contentEditable==="true")&&(Ja=Q,So=x,Ki=null);break;case"focusout":Ki=So=Ja=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,id(z,n,M);break;case"selectionchange":if(a0)break;case"keydown":case"keyup":id(z,n,M)}var ae;if(go)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else $a?Yf(e,n)&&(ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ce="onCompositionStart");ce&&(Vf&&n.locale!=="ko"&&($a||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&$a&&(ae=jf()):(Dn=M,co="value"in Dn?Dn.value:Dn.textContent,$a=!0)),Q=Wr(x,ce),0<Q.length&&(ce=new Bf(ce,e,null,n,M),z.push({event:ce,listeners:Q}),ae?ce.data=ae:(ae=Xf(n),ae!==null&&(ce.data=ae)))),(ae=Kv?Qv(e,n):Zv(e,n))&&(ce=Wr(x,"onBeforeInput"),0<ce.length&&(Q=new Bf("onBeforeInput","beforeinput",null,n,M),z.push({event:Q,listeners:ce}),Q.data=ae)),B0(z,e,x,n,M)}Nm(z,t)})}function vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Hi(e,n),o!=null&&l.unshift(vl(e,o,u)),o=Hi(e,t),o!=null&&l.push(vl(e,o,u))),e.tag===3)return l;e=e.return}return[]}function P0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mm(e,t,n,l,o){for(var u=t._reactName,d=[];n!==null&&n!==l;){var p=n,v=p.alternate,x=p.stateNode;if(p=p.tag,v!==null&&v===l)break;p!==5&&p!==26&&p!==27||x===null||(v=x,o?(x=Hi(n,u),x!=null&&d.unshift(vl(n,x,v))):o||(x=Hi(n,u),x!=null&&d.push(vl(n,x,v)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Y0=/\r\n?/g,X0=/\u0000|\uFFFD/g;function Um(e){return(typeof e=="string"?e:""+e).replace(Y0,`
49`).replace(X0,"")}function Im(e,t){return t=Um(t),Um(e)===t}function we(e,t,n,l,o,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ka(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ka(e,""+l);break;case"className":ar(e,"class",l);break;case"tabIndex":ar(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ar(e,n,l);break;case"style":If(e,l,u);break;case"data":if(t!=="object"){ar(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=lr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",o.name,o,null),we(e,t,"formEncType",o.formEncType,o,null),we(e,t,"formMethod",o.formMethod,o,null),we(e,t,"formTarget",o.formTarget,o,null)):(we(e,t,"encType",o.encType,o,null),we(e,t,"method",o.method,o,null),we(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=lr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=nn);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=lr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":oe("beforetoggle",e),oe("toggle",e),nr(e,"popover",l);break;case"xlinkActuate":tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":tn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":tn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":tn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":tn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":nr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Sv.get(n)||n,nr(e,n,l))}}function Xu(e,t,n,l,o,u){switch(n){case"style":If(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ka(e,l):(typeof l=="number"||typeof l=="bigint")&&Ka(e,""+l);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Af.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[nt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):nr(e,n,l)}}}function $e(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,u,d,n,null)}}o&&we(e,t,"srcSet",n.srcSet,n,null),l&&we(e,t,"src",n.src,n,null);return;case"input":oe("invalid",e);var p=u=d=o=null,v=null,x=null;for(l in n)if(n.hasOwnProperty(l)){var M=n[l];if(M!=null)switch(l){case"name":o=M;break;case"type":d=M;break;case"checked":v=M;break;case"defaultChecked":x=M;break;case"value":u=M;break;case"defaultValue":p=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:we(e,t,l,M,n,null)}}Nf(e,u,p,v,x,d,o,!1);return;case"select":oe("invalid",e),l=d=u=null;for(o in n)if(n.hasOwnProperty(o)&&(p=n[o],p!=null))switch(o){case"value":u=p;break;case"defaultValue":d=p;break;case"multiple":l=p;default:we(e,t,o,p,n,null)}t=u,n=d,e.multiple=!!l,t!=null?Xa(e,!!l,t,!1):n!=null&&Xa(e,!!l,n,!0);return;case"textarea":oe("invalid",e),u=o=l=null;for(d in n)if(n.hasOwnProperty(d)&&(p=n[d],p!=null))switch(d){case"value":l=p;break;case"defaultValue":o=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:we(e,t,d,p,n,null)}Mf(e,l,o,u);return;case"option":for(v in n)if(n.hasOwnProperty(v)&&(l=n[v],l!=null))switch(v){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:we(e,t,v,l,n,null)}return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(l=0;l<yl.length;l++)oe(yl[l],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:we(e,t,x,l,n,null)}return;default:if(lo(t)){for(M in n)n.hasOwnProperty(M)&&(l=n[M],l!==void 0&&Xu(e,t,M,l,n,void 0));return}}
vendor: 5,964 bytes, line 49
49for(p in n)n.hasOwnProperty(p)&&(l=n[p],l!=null&&we(e,t,p,l,n,null))}function K0(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,d=null,p=null,v=null,x=null,M=null;for(D in n){var z=n[D];if(n.hasOwnProperty(D)&&z!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":v=z;default:l.hasOwnProperty(D)||we(e,t,D,null,l,z)}}for(var R in l){var D=l[R];if(z=n[R],l.hasOwnProperty(R)&&(D!=null||z!=null))switch(R){case"type":u=D;break;case"name":o=D;break;case"checked":x=D;break;case"defaultChecked":M=D;break;case"value":d=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:D!==z&&we(e,t,R,D,l,z)}}ao(e,d,p,v,x,M,u,o);return;case"select":D=d=p=R=null;for(u in n)if(v=n[u],n.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":D=v;default:l.hasOwnProperty(u)||we(e,t,u,null,l,v)}for(o in l)if(u=l[o],v=n[o],l.hasOwnProperty(o)&&(u!=null||v!=null))switch(o){case"value":R=u;break;case"defaultValue":p=u;break;case"multiple":d=u;default:u!==v&&we(e,t,o,u,l,v)}t=p,n=d,l=D,R!=null?Xa(e,!!n,R,!1):!!l!=!!n&&(t!=null?Xa(e,!!n,t,!0):Xa(e,!!n,n?[]:"",!1));return;case"textarea":D=R=null;for(p in n)if(o=n[p],n.hasOwnProperty(p)&&o!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:we(e,t,p,null,l,o)}for(d in l)if(o=l[d],u=n[d],l.hasOwnProperty(d)&&(o!=null||u!=null))switch(d){case"value":R=o;break;case"defaultValue":D=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&we(e,t,d,o,l,u)}Df(e,R,D);return;case"option":for(var X in n)if(R=n[X],n.hasOwnProperty(X)&&R!=null&&!l.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:we(e,t,X,null,l,R)}for(v in l)if(R=l[v],D=n[v],l.hasOwnProperty(v)&&R!==D&&(R!=null||D!=null))switch(v){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:we(e,t,v,R,l,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in n)R=n[$],n.hasOwnProperty($)&&R!=null&&!l.hasOwnProperty($)&&we(e,t,$,null,l,R);for(x in l)if(R=l[x],D=n[x],l.hasOwnProperty(x)&&R!==D&&(R!=null||D!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:we(e,t,x,R,l,D)}return;default:if(lo(t)){for(var Ae in n)R=n[Ae],n.hasOwnProperty(Ae)&&R!==void 0&&!l.hasOwnProperty(Ae)&&Xu(e,t,Ae,void 0,l,R);for(M in l)R=l[M],D=n[M],!l.hasOwnProperty(M)||R===D||R===void 0&&D===void 0||Xu(e,t,M,R,l,D);return}}for(var w in n)R=n[w],n.hasOwnProperty(w)&&R!=null&&!l.hasOwnProperty(w)&&we(e,t,w,null,l,R);for(z in l)R=l[z],D=n[z],!l.hasOwnProperty(z)||R===D||R==null&&D==null||we(e,t,z,R,l,D)}function zm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Q0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,d=o.initiatorType,p=o.duration;if(u&&p&&zm(d)){for(d=0,p=o.responseEnd,l+=1;l<n.length;l++){var v=n[l],x=v.startTime;if(x>p)break;var M=v.transferSize,z=v.initiatorType;M&&zm(z)&&(v=v.responseEnd,d+=M*(v<p?1:(p-x)/(v-x)))}if(--l,t+=8*(u+d)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ku=null,Qu=null;function es(e){return e.nodeType===9?e:e.ownerDocument}function Lm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Zu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $u=null;function Z0(){var e=window.event;return e&&e.type==="popstate"?e===$u?!1:($u=e,!0):($u=null,!1)}var km=typeof setTimeout=="function"?setTimeout:void 0,$0=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,J0=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(e){return Hm.resolve(null).then(e).catch(F0)}:km;function F0(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function Bm(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),wi(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")bl(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bl(n);for(var u=n.firstChild;u;){var d=u.nextSibling,p=u.nodeName;u[ji]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&bl(e.ownerDocument.body);n=o}while(n);wi(t)}function qm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Ju(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ju(n),to(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function W0(e,t,n,l){for(;
vendor: 10,810 bytes, line 49
49e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ji])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Nt(e.nextSibling),e===null)break}return null}function eb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Nt(e.nextSibling),e===null))return null;return e}function Vm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nt(e.nextSibling),e===null))return null;return e}function Fu(e){return e.data==="$?"||e.data==="$~"}function Wu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ec=null;function Gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Nt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Ym(e,t,n){switch(t=es(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function bl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);to(e)}var Dt=new Map,Xm=new Set;function ts(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bn=G.d;G.d={f:nb,r:ab,D:ib,C:lb,L:rb,m:sb,X:ub,S:ob,M:cb};function nb(){var e=bn.f(),t=Xr();return e||t}function ab(e){var t=Ga(e);t!==null&&t.tag===5&&t.type==="form"?uh(t):bn.r(e)}var _i=typeof document>"u"?null:document;function Km(e,t,n){var l=_i;if(l&&typeof t=="string"&&t){var o=Tt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Xm.has(o)||(Xm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),$e(t,"link",e),Pe(t),l.head.appendChild(t)))}}function ib(e){bn.D(e),Km("dns-prefetch",e,null)}function lb(e,t){bn.C(e,t),Km("preconnect",e,t)}function rb(e,t,n){bn.L(e,t,n);var l=_i;if(l&&e&&t){var o='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Tt(n.imageSizes)+'"]')):o+='[href="'+Tt(e)+'"]';var u=o;switch(t){case"style":u=Ei(e);break;case"script":u=Ti(e)}Dt.has(u)||(e=A({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Dt.set(u,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Sl(u))||t==="script"&&l.querySelector(_l(u))||(t=l.createElement("link"),$e(t,"link",e),Pe(t),l.head.appendChild(t)))}}function sb(e,t){bn.m(e,t);var n=_i;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Tt(l)+'"][href="'+Tt(e)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ti(e)}if(!Dt.has(u)&&(e=A({rel:"modulepreload",href:e},t),Dt.set(u,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_l(u)))return}l=n.createElement("link"),$e(l,"link",e),Pe(l),n.head.appendChild(l)}}}function ob(e,t,n){bn.S(e,t,n);var l=_i;if(l&&e){var o=Pa(l).hoistableStyles,u=Ei(e);t=t||"default";var d=o.get(u);if(!d){var p={loading:0,preload:null};if(d=l.querySelector(Sl(u)))p.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Dt.get(u))&&tc(e,n);var v=d=l.createElement("link");Pe(v),$e(v,"link",e),v._p=new Promise(function(x,M){v.onload=x,v.onerror=M}),v.addEventListener("load",function(){p.loading|=1}),v.addEventListener("error",function(){p.loading|=2}),p.loading|=4,ns(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:p},o.set(u,d)}}}function ub(e,t){bn.X(e,t);var n=_i;if(n&&e){var l=Pa(n).hoistableScripts,o=Ti(e),u=l.get(o);u||(u=n.querySelector(_l(o)),u||(e=A({src:e,async:!0},t),(t=Dt.get(o))&&nc(e,t),u=n.createElement("script"),Pe(u),$e(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function cb(e,t){bn.M(e,t);var n=_i;if(n&&e){var l=Pa(n).hoistableScripts,o=Ti(e),u=l.get(o);u||(u=n.querySelector(_l(o)),u||(e=A({src:e,async:!0,type:"module"},t),(t=Dt.get(o))&&nc(e,t),u=n.createElement("script"),Pe(u),$e(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Qm(e,t,n,l){var o=(o=re.current)?ts(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ei(n.href),n=Pa(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ei(n.href);var u=Pa(o).hoistableStyles,d=u.get(e);if(d||(o=o.ownerDocument||o,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=o.querySelector(Sl(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Dt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Dt.set(e,n),u||fb(o,e,n,d.state))),t&&l===null)throw Error(s(528,""));return d}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ti(n),n=Pa(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ei(e){return'href="'+Tt(e)+'"'}function Sl(e){return'link[rel="stylesheet"]['+e+"]"}function Zm(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function fb(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),$e(t,"link",n),Pe(t),e.head.appendChild(t))}function Ti(e){return'[src="'+Tt(e)+'"]'}function _l(e){return"script[async]"+e}function $m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(l)return t.instance=l,Pe(l),l;var o=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),$e(l,"style",o),ns(l,n.precedence,e),t.instance=l;case"stylesheet":o=Ei(n.href);var u=e.querySelector(Sl(o));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;l=Zm(n),(o=Dt.get(o))&&tc(l,o),u=(e.ownerDocument||e).createElement("link"),Pe(u);var d=u;return d._p=new Promise(function(p,v){d.onload=p,d.onerror=v}),$e(u,"link",l),t.state.loading|=4,ns(u,n.precedence,e),t.instance=u;case"script":return u=Ti(n.src),(o=e.querySelector(_l(u)))?(t.instance=o,Pe(o),o):(l=n,(o=Dt.get(u))&&(l=A({},n),nc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Pe(o),$e(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ns(l,n.precedence,e));return t.instance}function ns(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,d=0;d<l.length;d++){var p=l[d];if(p.dataset.precedence===t)u=p;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function tc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var as=null;function Jm(e,t,n){if(as===null){var l=new Map,o=as=new Map;o.set(n,l)}else o=as,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[ji]||u[Xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var p=l.get(d);p?p.push(u):l.set(d,[u])}}return l}function Fm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function db(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function hb(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="str
49ing"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ei(l.href),u=t.querySelector(Sl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=is.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Pe(u);return}u=t.ownerDocument||t,l=Zm(l),(o=Dt.get(o))&&tc(l,o),u=u.createElement("link"),Pe(u);var d=u;d._p=new Promise(function(p,v){d.onload=p,d.onerror=v}),$e(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=is.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ac=0;function mb(e,t){return e.stylesheets&&e.count===0&&rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ac===0&&(ac=62500*Q0());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ac?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function is(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ls=null;function rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ls=new Map,t.forEach(pb,e),ls=null,is.call(e))}function pb(e,t){if(!(t.state.loading&4)){var n=ls.get(e);if(n)var l=n.get(null);else{n=new Map,ls.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var d=o[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}o=t.instance,d=o.getAttribute("data-precedence"),u=n.get(d)||l,u===l&&n.set(null,o),n.set(d,o),this.count++,l=is.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var El={$$typeof:Y,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function gb(e,t,n,l,o,u,d,p,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Js(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Js(0),this.hiddenUpdates=Js(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function ep(e,t,n,l,o,u,d,p,v,x,M,z){return e=new gb(e,t,n,d,v,x,M,z,p),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=Lo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Bo(u),e}function tp(e){return e?(e=ei,e):ei}function np(e,t,n,l,o,u){o=tp(o),l.context===null?l.context=o:l.pendingContext=o,l=jn(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=kn(e,l,t),n!==null&&(ot(n,e,t),el(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ic(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function ip(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&ot(t,e,67108864),ic(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=bt();t=Fs(t);var n=Sa(e,t);n!==null&&ot(n,e,t),ic(e,t)}}var ss=!0;function yb(e,t,n,l){var o=U.T;U.T=null;var u=G.p;try{G.p=2,lc(e,t,n,l)}finally{G.p=u,U.T=o}}function vb(e,t,n,l){var o=U.T;U.T=null;var u=G.p;try{G.p=8,lc(e,t,n,l)}finally{G.p=u,U.T=o}}function lc(e,t,n,l){if(ss){var o=rc(l);if(o===null)Yu(e,t,l,os,n),sp(e,l);else if(Sb(o,e,t,n,l))l.stopPropagation();else if(sp(e,l),t&4&&-1<bb.indexOf(e)){for(;o!==null;){var u=Ga(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=pa(u.pendingLanes);if(d!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var v=1<<31-dt(d);p.entanglements[1]|=v,d&=~v}Pt(u),(ge&6)===0&&(Pr=ct()+500,gl(0))}}break;case 31:case 13:p=Sa(u,2),p!==null&&ot(p,u,2),Xr(),ic(u,2)}if(u=rc(l),u===null&&Yu(e,t,l,os,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else Yu(e,t,l,null,n)}}function rc(e){return e=so(e),sc(e)}var os=null;function sc(e){if(os=null,e=Va(e),e!==null){var t=f(e);
vendor: 4,058 bytes, line 49
49if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return os=e,null}function rp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(iv()){case mf:return 2;case pf:return 8;case Jl:case lv:return 32;case gf:return 268435456;default:return 32}default:return 32}}var oc=!1,Zn=null,$n=null,Jn=null,Tl=new Map,wl=new Map,Fn=[],bb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sp(e,t){switch(e){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":Tl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wl.delete(t.pointerId)}}function Al(e,t,n,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ga(t),t!==null&&ip(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Sb(e,t,n,l,o){switch(t){case"focusin":return Zn=Al(Zn,e,t,n,l,o),!0;case"dragenter":return $n=Al($n,e,t,n,l,o),!0;case"mouseover":return Jn=Al(Jn,e,t,n,l,o),!0;case"pointerover":var u=o.pointerId;return Tl.set(u,Al(Tl.get(u)||null,e,t,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,wl.set(u,Al(wl.get(u)||null,e,t,n,l,o)),!0}return!1}function op(e){var t=Va(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Ef(e.priority,function(){lp(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Ef(e.priority,function(){lp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ro=l,n.target.dispatchEvent(l),ro=null}else return t=Ga(n),t!==null&&ip(t),e.blockedOn=n,!1;t.shift()}return!0}function up(e,t,n){us(e)&&n.delete(t)}function _b(){oc=!1,Zn!==null&&us(Zn)&&(Zn=null),$n!==null&&us($n)&&($n=null),Jn!==null&&us(Jn)&&(Jn=null),Tl.forEach(up),wl.forEach(up)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,oc||(oc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_b)))}var fs=null;function cp(e){fs!==e&&(fs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){fs===e&&(fs=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(sc(l||n)===null)continue;break}var u=Ga(n);
vendor: 4,084 bytes, line 49
49u!==null&&(e.splice(t,3),t-=3,ru(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function wi(e){function t(v){return cs(v,e)}Zn!==null&&cs(Zn,e),$n!==null&&cs($n,e),Jn!==null&&cs(Jn,e),Tl.forEach(t),wl.forEach(t);for(var n=0;n<Fn.length;n++){var l=Fn[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Fn.length&&(n=Fn[0],n.blockedOn===null);)op(n),n.blockedOn===null&&Fn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],d=o[nt]||null;if(typeof u=="function")d||cp(n);else if(d){var p=null;if(u&&u.hasAttribute("formAction")){if(o=u,d=u[nt]||null)p=d.formAction;else if(sc(o)!==null)continue}else p=d.action;typeof p=="function"?n[l+1]=p:(n.splice(l,3),l-=3),cp(n)}}}function fp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return o=d})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function uc(e){this._internalRoot=e}ds.prototype.render=uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=bt();np(n,l,e,t,null,null)},ds.prototype.unmount=uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),Xr(),t[qa]=null}};function ds(e){this._internalRoot=e}ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=_f();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fn.length&&t!==0&&t<Fn[n].priority;n++);Fn.splice(n,0,e),n===0&&op(e)}};var dp=a.version;if(dp!=="19.2.3")throw Error(s(527,dp,"19.2.3"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var Eb={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Ii=hs.inject(Eb),ft=hs}catch{}}return xl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,l="",o=bh,u=Sh,d=_h;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,l,null,o,u,d,fp),e[qa]=t.current,Pu(e),new uc(t)},xl.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var l=!1,o="",u=bh,d=Sh,p=_h,v=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(v=n.formState)),t=ep(e,1,!0,t,n??null,l,o,v,u,d,p,fp),t.context=tp(null),n=t.current,l=bt(),l=Fs(l),o=jn(l),o.callback=null,kn(n,o,l),n=l,t.current.lanes=n,Li(t,n),Pt(t),e[qa]=t.current,Pu(e),new ds(t)},xl.version="19.2.3",xl}var Ep;function zb(){if(Ep)return dc.exports;Ep=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),dc.exports=Ib(),dc.exports}var Lb=zb(),Rl={},Tp;function jb(){if(Tp)return Rl;
49Tp=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.parse=h,Rl.serialize=g;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function h(S,L){const N=new f,H=S.length;if(H<2)return N;const B=(L==null?void 0:L.decode)||T;let k=0;do{const q=S.indexOf("=",k);if(q===-1)break;const Y=S.indexOf(";",k),J=Y===-1?H:Y;if(q>J){k=S.lastIndexOf(";",q-1)+1;continue}const de=y(S,k,q),ye=m(S,q,de),V=S.slice(de,ye);if(N[V]===void 0){let be=y(S,q+1,J),ie=m(S,J,be);const le=B(S.slice(be,ie));N[V]=le}k=J+1}while(k<H);return N}function y(S,L,N){do{const H=S.charCodeAt(L);if(H!==32&&H!==9)return L}while(++L<N);return N}function m(S,L,N){for(;L>N;){const H=S.charCodeAt(--L);if(H!==32&&H!==9)return L+1}return N}function g(S,L,N){const H=(N==null?void 0:N.encode)||encodeURIComponent;if(!i.test(S))throw new TypeError(`argument name is invalid: ${S}`);const B=H(L);if(!a.test(B))throw new TypeError(`argument val is invalid: ${L}`);let k=S+"="+B;if(!N)return k;if(N.maxAge!==void 0){if(!Number.isInteger(N.maxAge))throw new TypeError(`option maxAge is invalid: ${N.maxAge}`);k+="; Max-Age="+N.maxAge}if(N.domain){if(!r.test(N.domain))throw new TypeError(`option domain is invalid: ${N.domain}`);k+="; Domain="+N.domain}if(N.path){if(!s.test(N.path))throw new TypeError(`option path is invalid: ${N.path}`);k+="; Path="+N.path}if(N.expires){if(!A(N.expires)||!Number.isFinite(N.expires.valueOf()))throw new TypeError(`option expires is invali
49d: ${N.expires}`);k+="; Expires="+N.expires.toUTCString()}if(N.httpOnly&&(k+="; HttpOnly"),N.secure&&(k+="; Secure"),N.partitioned&&(k+="; Partitioned"),N.priority)switch(typeof N.priority=="string"?N.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${N.priority}`)}if(N.sameSite)switch(typeof N.sameSite=="string"?N.sameSite.toLowerCase():N.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${N.sameSite}`)}return k}function T(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function A(S){return c.call(S)==="[object Date]"}return Rl}jb();var wp="popstate";function kb(i={}){function a(s,c){let{pathname:f,search:h,hash:y}=s.location;return Rc("",{pathname:f,search:h,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){return typeof c=="string"?c:zl(c)}return Bb(a,r,null,i)}function Ue(i,a){if(i===!1||i===null||typeof i>"u")throw new Error(a)}function Qt(i,a){if(!i){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Hb(){return Math.random().toString(36).substring(2,10)}function Ap(i,a){return{usr:i.state,key:i.key,idx:a}}function Rc(i,a,r=null,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof a=="string"?Oi(a):a,state:r,key:a&&a.key||s||Hb()}}function zl({pathname:i="/",search:a="",hash:r=""}){return a&&a!=="?"&&(i+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Oi(i){let a={};if(i){let r=i.indexOf("#");r>=0&&(a.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(a.search=i.substring(s),i=i.substring(0,s)),i&&(a.pathname=i)}return a}function Bb(i,a,r,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,h=c.history,y="POP",m=null,g=T();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function T(){return(h.state||{idx:null}).idx}function A(){y="POP";let B=T(),k=B==null?null:B-g;g=B,m&&m({action:y,location:H.location,delta:k})}function S(B,k){y="PUSH";let q=Rc(H.location,B,k);g=T()+1;let Y=Ap(q,g),J=H.createHref(q);try{h.pushState(Y,"",J)}catch(de){if(de instanceof DOMException&&de.name==="DataCloneError")throw de;c.location.assign(J)}f&&m&&m({action:y,location:H.location,delta:1})}function L(B,k){y="REPLACE";let q=Rc(H.location,B,k);g=T();let Y=Ap(q,g),J=H.createHref(q);h.replaceState(Y,"",J),f&&m&&m({action:y,location:H.location,delta:0})}function N(B){return qb(B)}let H={get action(){return y},get location(){return i(c,h)},listen(B){if(m)throw new Error("A history only accepts one active listener");return c.addEventListener(wp,A),m=B,()=>{c.removeEventListener(wp,A),m=null}},createHref(B){return a(c,B)},createURL:N,encodeLocation(B){let k=N(B);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:S,replace:L,go(B){return h.go(B)}};return H}function qb(i,a=!1){let r="http://localhost";
49typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(r,"No window.location.(origin|href) available to create URL");let s=typeof i=="string"?i:zl(i);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=r+s),new URL(s,r)}function yg(i,a,r="/"){return Vb(i,a,r,!1)}function Vb(i,a,r,s){let c=typeof a=="string"?Oi(a):a,f=An(c.pathname||"/",r);if(f==null)return null;let h=vg(i);Gb(h);let y=null;for(let m=0;y==null&&m<h.length;++m){let g=e1(f);y=Fb(h[m],g,s)}return y}function vg(i,a=[],r=[],s=""){let c=(f,h,y)=>{let m={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};m.relativePath.startsWith("/")&&(Ue(m.relativePath.startsWith(s),`Absolute route path "${m.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(s.length));let g=Tn([s,m.relativePath]),T=r.concat(m);f.children&&f.children.length>0&&(Ue(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),vg(f.children,a,T,g)),!(f.path==null&&!f.index)&&a.push({path:g,score:$b(g,f.index),routesMeta:T})};return i.forEach((f,h)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))c(f,h);else for(let m of bg(f.path))c(f,h,m)}),a}function bg(i){let a=i.split("/");if(a.length===0)return[];let[r,...s]=a,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let h=bg(s.join("/")),y=[];return y.push(...h.map(m=>m===""?f:[f,m].join("/"))),c&&y.push(...h),y.map(m=>i.startsWith("/")&&m===""?"/":m)}function Gb(i){i.sort((a,r)=>a.score!==r.score?r.score-a.score:Jb(a.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var Pb=/^:[\w-]+$/,Yb=3,Xb=2,Kb=1,Qb=10,Zb=-2,Cp=i=>i==="*";function $b(i,a){let r=i.split("/"),s=r.length;return r.some(Cp)&&(s+=Zb),a&&(s+=Xb),r.filter(c=>!Cp(c)).reduce((c,f)=>c+(Pb.test(f)?Yb:f===""?Kb:Qb),s)}function Jb(i,a){return i.length===a.length&&i.slice(0,-1).every((s,c)=>s===a[c])?i[i.length-1]-a[a.length-1]:0}function Fb(i,a,r=!1){let{routesMeta:s}=i,c={},f="/",h=[];for(let y=0;y<s.length;++y){let m=s[y],g=y===s.length-1,T=f==="/"?a:a.slice(f.length)||"/",A=Ts({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},T),S=m.route;if(!A&&g&&r&&!s[s.length-1].route.index&&(A=Ts({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},T)),!A)return null;
49Object.assign(c,A.params),h.push({params:c,pathname:Tn([f,A.pathname]),pathnameBase:i1(Tn([f,A.pathnameBase])),route:S}),A.pathnameBase!=="/"&&(f=Tn([f,A.pathnameBase]))}return h}function Ts(i,a){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=Wb(i.path,i.caseSensitive,i.end),c=a.match(r);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),y=c.slice(1);return{params:s.reduce((g,{paramName:T,isOptional:A},S)=>{if(T==="*"){let N=y[S]||"";h=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const L=y[S];return A&&!L?g[T]=void 0:g[T]=(L||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:i}}function Wb(i,a=!1,r=!0){Qt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,m)=>(s.push({paramName:y,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(s.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,a?void 0:"i"),s]}function e1(i){try{return i.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Qt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),i}}function An(i,a){if(a==="/")return i;if(!i.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function t1(i,a="/"){let{pathname:r,search:s="",hash:c=""}=typeof i=="string"?Oi(i):i;return{pathname:r?r.startsWith("/")?r:n1(r,a):a,search:l1(s),hash:r1(c)}}function n1(i,a){let r=a.replace(/\/+$/,"").split("/");return i.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function gc(i,a,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function a1(i){return i.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Sg(i){let a=a1(i);return a.map((r,s)=>s===a.length-1?r.pathname:r.pathnameBase)}function _g(i,a,r,s=!1){let c;typeof i=="string"?c=Oi(i):(c={...i},Ue(!c.pathname||!c.pathname.includes("?"),gc("?","pathname","search",c)),Ue(!c.pathname||!c.pathname.includes("#"),gc("#","pathname","hash",c)),Ue(!c.search||!c.search.includes("#"),gc("#","search","hash",c)));let f=i===""||c.pathname==="",h=f?"/":c.pathname,y;if(h==null)y=r;else{let A=a.length-1;if(!s&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),A-=1;c.pathname=S.join("/")}y=A>=0?a[A]:"/"}let m=t1(c,y),g=h&&h!=="/"&&h.endsWith("/"),T=(f||h===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(g||T)&&(m.pathname+="/"),m}var Tn=i=>i.join("/").replace(/\/\/+/g,"/"),i1=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),l1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,r1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function s1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var Eg=["POST","PUT","PATCH","DELETE"];new Set(Eg);var o1=["GET",...Eg];new Set(o1);var Ni=O.createContext(null);Ni.displayName="DataRouter";var zs=O.createContext(null);zs.displayName="DataRouterState";var Tg=O.createContext({isTransitioning:!1});Tg.displayName="ViewTransition";var u1=O.createContext(new Map);u1.displayName="Fetchers";var c1=O.createContext(null);c1.displayName="Await";var $t=O.createContext(null);$t.displayName="Navigation";var Hl=O.createContext(null);Hl.displayName="Location";var Jt=O.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var Vc=O.createContext(null);Vc.displayName="RouteError";function f1(i,{relative:a}={}){Ue(Bl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=O.useContext($t),{hash:c,pathname:f,search:h}=Vl(i,{relative:a}),y=f;return r!=="/"&&(y=f==="/"?r:Tn([r,f])),s.createHref({pathname:y,search:h,hash:c})}function Bl(){return O.useContext(Hl)!=null}function Bt(){return Ue(Bl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Hl).location}var wg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ag(i){O.useContext($t).static||O.useLayoutEffect(i)}function ql(){let{isDataRoute:i}=O.useContext(Jt);return i?A1():d1()}function d1(){Ue(Bl(),"useNavigate() may be used only in the context of a <Router> component.");let i=O.useContext(Ni),{basename:a,navigator:r}=O.useContext($t),{matches:s}=O.useContext(Jt),{pathname:c}=Bt(),f=JSON.stringify(Sg(s)),h=O.useRef(!1);return Ag(()=>{h.current=!0}),O.useCallback((m,g={})=>
49{if(Qt(h.current,wg),!h.current)return;if(typeof m=="number"){r.go(m);return}let T=_g(m,JSON.parse(f),c,g.relative==="path");i==null&&a!=="/"&&(T.pathname=T.pathname==="/"?a:Tn([a,T.pathname])),(g.replace?r.replace:r.push)(T,g.state,g)},[a,r,f,c,i])}O.createContext(null);function h1(){let{matches:i}=O.useContext(Jt),a=i[i.length-1];return a?a.params:{}}function Vl(i,{relative:a}={}){let{matches:r}=O.useContext(Jt),{pathname:s}=Bt(),c=JSON.stringify(Sg(r));return O.useMemo(()=>_g(i,JSON.parse(c),s,a==="path"),[i,c,s,a])}function m1(i,a){return Cg(i,a)}function Cg(i,a,r,s){var k;Ue(Bl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=O.useContext($t),{matches:f}=O.useContext(Jt),h=f[f.length-1],y=h?h.params:{},m=h?h.pathname:"/",g=h?h.pathnameBase:"/",T=h&&h.route;{let q=T&&T.path||"";xg(m,!T||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
51Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let A=Bt(),S;if(a){let q=typeof a=="string"?Oi(a):a;Ue(g==="/"||((k=q.pathname)==null?void 0:k.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${q.pathname}" was given in the \`location\` prop.`),S=q}else S=A;let L=S.pathname||"/",N=L;if(g!=="/"){let q=g.replace(/^\//,"").split("/");N="/"+L.replace(/^\//,"").split("/").slice(q.length).join("/")}let H=yg(i,{pathname:N});Qt(T||H!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Qt(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=b1(H&&H.map(q=>Object.assign({},q,{params:Object.assign({},y,q.params),pathname:Tn([g,c.encodeLocation?c.encodeLocation(q.pathname).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?g:Tn([g,c.encodeLocation?c.encodeLocation(q.pathnameBase).pathname:q.pathnameBase])})),f,r,s);return a&&B?O.createElement(Hl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},B):B}function p1(){let i=w1(),a=s1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:f},"ErrorBoundary")," or"," ",O.createElement("code",{style:f},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},a),r?O.createElement("pre",{style:c},r):null,h)}var g1=O.createElement(p1,null),y1=class extends O.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,a){return a.location!==i.location||a.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:a.error,location:a.location,revalidation:i.revalidation||a.revalidation}}componentDidCatch(i,a){console.error("React Router caught the following error during render",i,a)}render(){return this.state.error!==void 0?O.createElement(Jt.Provider,{value:this.props.routeContext},O.createElement(Vc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function v1({routeContext:i,match:a,children:r}){let s=O.useContext(Ni);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),O.createElement(Jt.Provider,{value:i},r)}function b1(i,a=[],r=null,s=null){if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let c=i,f=r==null?void 0:r.errors;if(f!=null){let m=c.findIndex(g=>g.route.id&&(f==null?void 0:f[g.route.id])!==void 0);Ue(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,m+1))}let h=!1,y=-1;if(r)for(let m=0;m<c.length;m++){let g=c[m];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(y=m),g.route.id){let{loaderData:T,errors:A}
51=r,S=g.route.loader&&!T.hasOwnProperty(g.route.id)&&(!A||A[g.route.id]===void 0);if(g.route.lazy||S){h=!0,y>=0?c=c.slice(0,y+1):c=[c[0]];break}}}return c.reduceRight((m,g,T)=>{let A,S=!1,L=null,N=null;r&&(A=f&&g.route.id?f[g.route.id]:void 0,L=g.route.errorElement||g1,h&&(y<0&&T===0?(xg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,N=null):y===T&&(S=!0,N=g.route.hydrateFallbackElement||null)));let H=a.concat(c.slice(0,T+1)),B=()=>{let k;return A?k=L:S?k=N:g.route.Component?k=O.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=m,O.createElement(v1,{match:g,routeContext:{outlet:m,matches:H,isDataRoute:r!=null},children:k})};return r&&(g.route.ErrorBoundary||g.route.errorElement||T===0)?O.createElement(y1,{location:r.location,revalidation:r.revalidation,component:L,error:A,children:B(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):B()},null)}function Gc(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function S1(i){let a=O.useContext(Ni);return Ue(a,Gc(i)),a}function _1(i){let a=O.useContext(zs);return Ue(a,Gc(i)),a}function E1(i){let a=O.useContext(Jt);return Ue(a,Gc(i)),a}function Pc(i){let a=E1(i),r=a.matches[a.matches.length-1];return Ue(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function T1(){return Pc("useRouteId")}function w1(){var s;let i=O.useContext(Vc),a=_1("useRouteError"),r=Pc("useRouteError");return i!==void 0?i:(s=a.errors)==null?void 0:s[r]}function A1(){let{router:i}=S1("useNavigate"),a=Pc("useNavigate"),r=O.useRef(!1);return Ag(()=>{r.current=!0}),O.useCallback(async(c,f={})=>{Qt(r.current,wg),r.current&&(typeof c=="number"?i.navigate(c):await i.navigate(c,{fromRouteId:a,...f}))},[i,a])}var xp={};function xg(i,a,r){!a&&!xp[i]&&(xp[i]=!0,Qt(!1,r))}O.memo(C1);function C1({routes:i,future:a,state:r}){return Cg(i,void 0,r,a)}function ta(i){Ue(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function x1({basename:i="/",children:a=null,location:r,navigationType:s="POP",navigator:c,static:f=!1}){Ue(!Bl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=i.replace(/^\/*/,"/"),y=O.useMemo(()=>({basename:h,navigator:c,static:f,future:{}}),[h,c,f]);typeof r=="string"&&(r=Oi(r));let{pathname:m="/",search:g="",hash:T="",state:A=null,key:S="default"}=r,L=O.useMemo(()=>{let N=An(m,h);return N==null?null:{location:{pathname:N,search:g,hash:T,state:A,key:S},navigationType:s}},[h,m,g,T,A,S,s]);return Qt(L!=null,`<Router basename="${h}"> is not able to match the URL "${m}${g}${T}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:O.createElement($t.Provider,{value:y},O.createElement(Hl.Provider,{children:a,value:L}))}function R1({children:i,location:a}){return m1(Oc(i),a)}function Oc(i,a=[]){let r=[];return O.Children.forEach(i,(s,c)=>{if(!O.isValidElement(s))return;let f=[...a,c];if(s.type===O.Fragment){r.push.apply(r,Oc(s.props.children,f));return}Ue(s.type===ta,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ue(!s.props.index||!s.props.children,"An index route cannot have child routes.");let h={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(h.children=Oc(s.props.children,f)),r.push(h)}),r}var ys="get",vs="application/x-www-form-urlencoded";function Ls(i){return i!=null&&typeof i.tagName=="string"}function O1(i){return Ls(i)&&i.tagName.toLowerCase()==="button"}function N1(i){return Ls(i)&&i.tagName.toLowerCase()==="form"}function D1(i){return Ls(i)&&i.tagName.toLowerCase()==="input"}function M1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function U1(i,a){return i.button===0&&(!a||a==="_self")&&!M1(i)}var ms=null;function I1(){if(ms===null)try{new FormData(document.createElement("form"),0),ms=!1}catch{ms=!0}return ms}var z1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yc(i){return i!=null&&!z1.has(i)?(Qt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vs}"`),null):i}function L1(i,a){let r,s,c,f,h;if(N1(i)){let y=i.getAttribute("action");s=y?An(y,a):null,r=i.getAttribute("method")||ys,c=yc(i.getAttribute("enctype"))||vs,f=new FormData(i)}else if(O1(i)||D1(i)&&(i.type==="submit"||i.type==="image")){let y=i.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=i.getAttribute("formaction")||y.getAttribute("action");if(s=m?An(m,a):null,r=i.getAttribute("formmethod")||y.getAttribute("method")||ys,c=yc(i.getAttribute("formenctype"))||yc(y.getAttribute("enctype"))||vs,f=new FormData(y,i),!I1()){let{name:g,type:T,value:A}=i;if(T==="image"){let S=g?`${g}.`:"";f.append(`${S}x`,"0"),f.append(`${S}y`,"0")}else g&&f.append(g,A)}}else{if(Ls(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ys,s=null,c=vs,h=i}return f&&c==="text/plain"&&(h=f,f=void 0),{action:s,method:r.toLowerCase(),encType:c,formData:f,body:h}}function Yc(i,a){if(i===!1||i===null||typeof i>"u")throw new Error(a)}async function j1(i,a){if(i.id in a)return a[i.id];try{let r=await import(i.module);return a[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
51isSpaMode,window.location.reload(),new Promise(()=>{})}}function k1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function H1(i,a,r){let s=await Promise.all(i.map(async c=>{let f=a.routes[c.route.id];if(f){let h=await j1(f,r);return h.links?h.links():[]}return[]}));return G1(s.flat(1).filter(k1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Rp(i,a,r,s,c,f){let h=(m,g)=>r[g]?m.route.id!==r[g].route.id:!0,y=(m,g)=>{var T;return r[g].pathname!==m.pathname||((T=r[g].route.path)==null?void 0:T.endsWith("*"))&&r[g].params["*"]!==m.params["*"]};return f==="assets"?a.filter((m,g)=>h(m,g)||y(m,g)):f==="data"?a.filter((m,g)=>{var A;let T=s.routes[m.route.id];if(!T||!T.hasLoader)return!1;if(h(m,g)||y(m,g))return!0;if(m.route.shouldRevalidate){let S=m.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((A=r[0])==null?void 0:A.params)||{},nextUrl:new URL(i,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function B1(i,a,{includeHydrateFallback:r}={}){return q1(i.map(s=>{let c=a.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function q1(i){return[...new Set(i)]}function V1(i){let a={},r=Object.keys(i).sort();for(let s of r)a[s]=i[s];return a}function G1(i,a){let r=new Set;
51return new Set(a),i.reduce((s,c)=>{let f=JSON.stringify(V1(c));return r.has(f)||(r.add(f),s.push({key:f,link:c})),s},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var P1=new Set([100,101,204,205]);function Y1(i,a){let r=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r.pathname==="/"?r.pathname="_root.data":a&&An(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Rg(){let i=O.useContext(Ni);return Yc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function X1(){let i=O.useContext(zs);return Yc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Xc=O.createContext(void 0);Xc.displayName="FrameworkContext";function Og(){let i=O.useContext(Xc);return Yc(i,"You must render this element inside a <HydratedRouter> element"),i}function K1(i,a){let r=O.useContext(Xc),[s,c]=O.useState(!1),[f,h]=O.useState(!1),{onFocus:y,onBlur:m,onMouseEnter:g,onMouseLeave:T,onTouchStart:A}=a,S=O.useRef(null);O.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let H=k=>{k.forEach(q=>{h(q.isIntersecting)})},B=new IntersectionObserver(H,{threshold:.5});return S.current&&B.observe(S.current),()=>{B.disconnect()}}},[i]),O.useEffect(()=>{if(s){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[s]);let L=()=>{c(!0)},N=()=>{c(!1),h(!1)};return r?i!=="intent"?[f,S,{}]:[f,S,{onFocus:Ol(y,L),onBlur:Ol(m,N),onMouseEnter:Ol(g,L),onMouseLeave:Ol(T,N),onTouchStart:Ol(A,L)}]:[!1,S,{}]}function Ol(i,a){return r=>{i&&i(r),r.defaultPrevented||a(r)}}function Q1({page:i,...a}){let{router:r}=Rg(),s=O.useMemo(()=>yg(r.routes,i,r.basename),[r.routes,i,r.basename]);return s?O.createElement($1,{page:i,matches:s,...a}):null}function Z1(i){let{manifest:a,routeModules:r}=Og(),[s,c]=O.useState([]);return O.useEffect(()=>{let f=!1;return H1(i,a,r).then(h=>{f||c(h)}),()=>{f=!0}},[i,a,r]),s}function $1({page:i,matches:a,...r}){let s=Bt(),{manifest:c,routeModules:f}=Og(),{basename:h}=Rg(),{loaderData:y,matches:m}=X1(),g=O.useMemo(()=>Rp(i,a,m,c,s,"data"),[i,a,m,c,s]),T=O.useMemo(()=>Rp(i,a,m,c,s,"assets"),[i,a,m,c,s]),A=O.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let N=new Set,H=!1;if(a.forEach(k=>{var Y;let q=c.routes[k.route.id];!q||!q.hasLoader||(!g.some(J=>J.route.id===k.route.id)&&k.route.id in y&&((Y=f[k.route.id])!=null&&Y.shouldRevalidate)||q.hasClientLoader?H=!0:N.add(k.route.id))}),N.size===0)return[];let B=Y1(i,h);return H&&N.size>0&&B.searchParams.set("_routes",a.filter(k=>N.has(k.route.id)).map(k=>k.route.id).join(",")),[B.pathname+B.search]},[h,y,s,c,g,a,i,f]),S=O.useMemo(()=>B1(T,c),[T,c]),L=Z1(T);return O.createElement(O.Fragment,null,A.map(N=>O.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...r})),S.map(N=>O.createElement("link",{key:N,rel:"modulepreload",href:N,...r})),L.map(({key:N,link:H})=>O.createElement("link",{key:N,...H})))}function J1(...i){return a=>{i.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var Ng=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ng&&(window.__reactRouterVersion="7.6.1")}catch{}function F1({basename:i,children:a,window:r}){let s=O.useRef();s.current==null&&(s.current=kb({window:r,v5Compat:!0}));let c=s.current,[f,h]=O.useState({action:c.action,location:c.location}),y=O.useCallback(m=>{O.startTransition(()=>h(m))},[h]);return O.useLayoutEffect(()=>c.listen(y),[c,y]),O.createElement(x1,{basename:i,children:a,location:f.location,navigationType:f.action,navigator:c})}var Dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=O.forwardRef(function({onClick:a,discover:r="render",prefetch:s="none",relative:c,reloadDocument:f,replace:h,state:y,target:m,to:g,preventScrollReset:T,viewTransition:A,...S},L){let{basename:N}=O.useContext($t),H=typeof g=="string"&&Dg.test(g),B,k=!1;if(typeof g=="string"&&H&&(B=g,Ng))try{let ie=new URL(window.location.href),le=g.startsWith("//")?new URL(ie.protocol+g):new URL(g),Ce=An(le.pathname,N);le.origin===ie.origin&&Ce!=null?g=Ce+le.search+le.hash:k=!0}catch{Qt(!1,`<Link to="${g}">
51 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let q=f1(g,{relative:c}),[Y,J,de]=K1(s,S),ye=nS(g,{replace:h,state:y,target:m,preventScrollReset:T,relative:c,viewTransition:A});function V(ie){a&&a(ie),ie.defaultPrevented||ye(ie)}let be=O.createElement("a",{...S,...de,href:B||q,onClick:k||f?a:V,ref:J1(L,J),target:m,"data-discover":!H&&r==="render"?"true":void 0});return Y&&!H?O.createElement(O.Fragment,null,be,O.createElement(Q1,{page:q})):be});kt.displayName="Link";var W1=O.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:s="",end:c=!1,style:f,to:h,viewTransition:y,children:m,...g},T){let A=Vl(h,{relative:g.relative}),S=Bt(),L=O.useContext(zs),{navigator:N,basename:H}=O.useContext($t),B=L!=null&&sS(A)&&y===!0,k=N.encodeLocation?N.encodeLocation(A).pathname:A.pathname,q=S.pathname,Y=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;r||(q=q.toLowerCase(),Y=Y?Y.toLowerCase():null,k=k.toLowerCase()),Y&&H&&(Y=An(Y,H)||Y);const J=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let de=q===k||!c&&q.startsWith(k)&&q.charAt(J)==="/",ye=Y!=null&&(Y===k||!c&&Y.startsWith(k)&&Y.charAt(k.length)==="/"),V={isActive:de,isPending:ye,isTransitioning:B},be=de?a:void 0,ie;typeof s=="function"?ie=s(V):ie=[s,de?"active":null,ye?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let le=typeof f=="function"?f(V):f;return O.createElement(kt,{...g,"aria-current":be,className:ie,ref:T,style:le,to:h,viewTransition:y},typeof m=="function"?m(V):m)});W1.displayName="NavLink";var eS=O.forwardRef(({discover:i="render",fetcherKey:a,navigate:r,reloadDocument:s,replace:c,state:f,method:h=ys,action:y,onSubmit:m,relative:g,preventScrollReset:T,viewTransition:A,...S},L)=>{let N=lS(),H=rS(y,{relative:g}),B=h.toLowerCase()==="get"?"get":"post",k=typeof y=="string"&&Dg.test(y),q=Y=>{if(m&&m(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,de=(J==null?void 0:J.getAttribute("formmethod"))||h;N(J||Y.currentTarget,{fetcherKey:a,method:de,navigate:r,replace:c,state:f,relative:g,preventScrollReset:T,viewTransition:A})};return O.createElement("form",{ref:L,method:B,action:H,onSubmit:s?m:q,...S,"data-discover":!k&&i==="render"?"true":void 0})});eS.displayName="Form";function tS(i){return`${i} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mg(i){let a=O.useContext(Ni);return Ue(a,tS(i)),a}function nS(i,{target:a,replace:r,state:s,preventScrollReset:c,relative:f,viewTransition:h}={}){let y=ql(),m=Bt(),g=Vl(i,{relative:f});return O.useCallback(T=>{if(U1(T,a)){T.preventDefault();let A=r!==void 0?r:zl(m)===zl(g);y(i,{replace:A,state:s,preventScrollReset:c,relative:f,viewTransition:h})}},[m,y,g,r,s,a,i,c,f,h])}var aS=0,iS=()=>`__${String(++aS)}__`;function lS(){let{router:i}=Mg("useSubmit"),{basename:a}=O.useContext($t),r=T1();return O.useCallback(async(s,c={})=>{let{action:f,method:h,encType:y,formData:m,body:g}=L1(s,a);if(c.navigate===!1){let T=c.fetcherKey||iS();await i.fetch(T,r,c.action||f,{preventScrollReset:c.preventScrollReset,formData:m,body:g,formMethod:c.method||h,formEncType:c.encType||y,flushSync:c.flushSync})}else await i.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:m,body:g,formMethod:c.method||h,formEncType:c.encType||y,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,a,r])}function rS(i,{relative:a}={}){let{basename:r}=O.useContext($t),s=O.useContext(Jt);Ue(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Vl(i||".",{relative:a})},h=Bt();if(i==null){f.search=h.search;let y=new URLSearchParams(f.search),m=y.getAll("index");if(m.some(T=>T==="")){y.delete("index"),m.filter(A=>A).forEach(A=>y.append("index",A));let T=y.toString();f.search=T?`?${T}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Tn([r,f.pathname])),zl(f)}function sS(i,a={}){let r=O.useContext(Tg);Ue(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Mg("useViewTransitionState"),c=Vl(i,{relative:a.relative});if(!r.isTransitioning)return!1;let f=An(r.currentLocation.pathname,s)||r.currentLocation.pathname,h=An(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Ts(c.pathname,h)!=null||Ts(c.pathname,f)!=null}[...P1];const oS=()=>{};var Op={};/**
52 * @license
53 * Copyright 2017 Google LLC
54 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
56 * you may not use this file except in compliance with the License.
57 * You may obtain a copy of the License at
58 *
59 *   http://www.apache.org/licenses/LICENSE-2.0
60 *
61 * Unless required by applicable law or agreed to in writing, software
62 * distributed under the License is distributed on an "AS IS" BASIS,
63 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64 * See the License for the specific language governing permissions and
65 * limitations under the License.
66 */const Ug=function(i){const a=[];let r=0;for(let s=0;s<i.length;s++){let c=i.charCodeAt(s);c<128?a[r++]=c:c<2048?(a[r++]=c>>6|192,a[r++]=c&63|128):(c&64512)===55296&&s+1<i.length&&(i.charCodeAt(s+1)&64512)===56320?(c=65536+((c&1023)<<10)+(i.charCodeAt(++s)&1023),a[r++]=c>>18|240,a[r++]=c>>12&63|128,a[r++]=c>>6&63|128,a[r++]=c&63|128):(a[r++]=c>>12|224,a[r++]=c>>6&63|128,a[r++]=c&63|128)}return a},uS=function(i){const a=[];let r=0,s=0;for(;r<i.length;){const c=i[r++];if(c<128)a[s++]=String.fromCharCode(c);else if(c>191&&c<224){const f=i[r++];a[s++]=String.fromCharCode((c&31)<<6|f&63)}else if(c>239&&c<365){const f=i[r++],h=i[r++],y=i[r++],m=((c&7)<<18|(f&63)<<12|(h&63)<<6|y&63)-65536;a[s++]=String.fromCharCode(55296+(m>>10)),a[s++]=String.fromCharCode(56320+(m&1023))}else{const f=i[r++],h=i[r++];a[s++]=String.fromCharCode((c&15)<<12|(f&63)<<6|h&63)}}return a.join("")},Ig={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:typeof atob=="function",encodeByteArray(i,a){if(!Array.isArray(i))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=a?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let c=0;c<i.length;c+=3){const f=i[c],h=c+1<i.length,y=h?i[c+1]:0,m=c+2<i.length,g=m?i[c+2]:0,T=f>>2,A=(f&3)<<4|y>>4;let S=(y&15)<<2|g>>6,L=g&63;m||(L=64,h||(S=64)),s.push(r[T],r[A],r[S],r[L])}return s.join("")},encodeString(i,a){return this.HAS_NATIVE_SUPPORT&&!a?btoa(i):this.encodeByteArray(Ug(i),a)},decodeString(i,a){return this.HAS_NATIVE_SUPPORT&&!a?atob(i):uS(this.decodeStringToByteArray(i,a))},decodeStringToByteArray(i,a){this.init_();const r=a?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let c=0;c<i.length;){const f=r[i.charAt(c++)],y=c<i.length?r[i.charAt(c)]:0;++c;const g=c<i.length?r[i.charAt(c)]:64;++c;const A=c<i.length?r[i.charAt(c)]:64;if(++c,f==null||y==null||g==null||A==null)throw new cS;const S=f<<2|y>>4;if(s.push(S),g!==64){const L=y<<4&240|g>>2;if(s.push(L),A!==64){const N=g<<6&192|A;s.push(N)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let i=0;i<this.ENCODED_VALS.length;i++)this.byteToCharMap_[i]=this.ENCODED_VALS.charAt(i),this.charToByteMap_[this.byteToCharMap_[i]]=i,this.byteToCharMapWebSafe_[i]=this.ENCODED_VALS_WEBSAFE.charAt(i),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]]=i,i>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)]=i,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)]=i)}}};
66class cS extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const fS=function(i){const a=Ug(i);return Ig.encodeByteArray(a,!0)},zg=function(i){return fS(i).replace(/\./g,"")},Lg=function(i){try{return Ig.decodeString(i,!0)}catch(a){console.error("base64Decode failed: ",a)}return null};/**
67 * @license
68 * Copyright 2022 Google LLC
69 *
70 * Licensed under the Apache License, Version 2.0 (the "License");
71 * you may not use this file except in compliance with the License.
72 * You may obtain a copy of the License at
73 *
74 *   http://www.apache.org/licenses/LICENSE-2.0
75 *
76 * Unless required by applicable law or agreed to in writing, software
77 * distributed under the License is distributed on an "AS IS" BASIS,
78 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79 * See the License for the specific language governing permissions and
80 * limitations under the License.
81 */function dS(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
82 * @license
83 * Copyright 2022 Google LLC
84 *
85 * Licensed under the Apache License, Version 2.0 (the "License");
86 * you may not use this file except in compliance with the License.
87 * You may obtain a copy of the License at
88 *
89 *   http://www.apache.org/licenses/LICENSE-2.0
90 *
91 * Unless required by applicable law or agreed to in writing, software
92 * distributed under the License is distributed on an "AS IS" BASIS,
93 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94 * See the License for the specific language governing permissions and
95 * limitations under the License.
96 */const hS=()=>dS().__FIREBASE_DEFAULTS__,mS=()=>
96{if(typeof process>"u"||typeof Op>"u")return;const i=Op.__FIREBASE_DEFAULTS__;if(i)return JSON.parse(i)},pS=()=>{if(typeof document>"u")return;let i;try{i=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const a=i&&Lg(i[1]);return a&&JSON.parse(a)},Kc=()=>{try{return oS()||hS()||mS()||pS()}catch(i){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${i}`);return}},gS=i=>{var a,r;return(r=(a=Kc())===null||a===void 0?void 0:a.emulatorHosts)===null||r===void 0?void 0:r[i]},jg=()=>{var i;return(i=Kc())===null||i===void 0?void 0:i.config},kg=i=>{var a;return(a=Kc())===null||a===void 0?void 0:a[`_${i}`]};/**
97 * @license
98 * Copyright 2017 Google LLC
99 *
100 * Licensed under the Apache License, Version 2.0 (the "License");
101 * you may not use this file except in compliance with the License.
102 * You may obtain a copy of the License at
103 *
104 *   http://www.apache.org/licenses/LICENSE-2.0
105 *
106 * Unless required by applicable law or agreed to in writing, software
107 * distributed under the License is distributed on an "AS IS" BASIS,
108 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109 * See the License for the specific language governing permissions and
110 * limitations under the License.
111 */class yS{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((a,r)=>{this.resolve=a,this.reject=r})}wrapCallback(a){return(r,s)=>{r?this.reject(r):this.resolve(s),typeof a=="function"&&(this.promise.catch(()=>{}),a.length===1?a(r):a(r,s))}}}/**
112 * @license
113 * Copyright 2025 Google LLC
114 *
115 * Licensed under the Apache License, Version 2.0 (the "License");
116 * you may not use this file except in compliance with the License.
117 * You may obtain a copy of the License at
118 *
119 *   http://www.apache.org/licenses/LICENSE-2.0
120 *
121 * Unless required by applicable law or agreed to in writing, software
122 * distributed under the License is distributed on an "AS IS" BASIS,
123 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
124 * See the License for the specific language governing permissions and
125 * limitations under the License.
126 */function Qc(i){return i.endsWith(".cloudworkstations.dev")}async function vS(i){return(await fetch(i,{credentials:"include"})).ok}const Ml={};function bS(){const i={prod:[],emulator:[]};for(const a of Object.keys(Ml))Ml[a]?i.emulator.push(a):i.prod.push(a);return i}function SS(i){let a=document.getElementById(i),r=!1;return a||(a=document.createElement("div"),a.setAttribute("id",i),r=!0),{created:r,element:a}}let Np=!1;function _S(i,a){if(typeof window>"u"||typeof document>"u"||!Qc(window.location.host)||Ml[i]===a||Ml[i]||Np)return;Ml[i]=a;function r(S){return`__firebase__banner__${S}`}const s="__firebase__banner",f=bS().prod.length>0;function h(){const S=document.getElementById(s);S&&S.remove()}function y(S){S.style.display="flex",S.style.background="#7faaf0",S.style.position="fixed",S.style.bottom="5px",S.style.left="5px",S.style.padding=".5em",S.style.borderRadius="5px",S.style.alignItems="center"}function m(S,L){S.setAttribute("width","24"),S.setAttribute("id",L),S.setAttribute("height","24"),S.setAttribute("viewBox","0 0 24 24"),S.setAttribute("fill","none"),S.style.marginLeft="-6px"}function g(){const S=document.createElement("span");return S.style.cursor="pointer",S.style.marginLeft="16px",S.style.fontSize="24px",S.innerHTML=" &times;",S.onclick=()=>{Np=!0,h()},S}function T(S,L){S.setAttribute("id",L),S.innerText="Learn more",S.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",S.setAttribute("target","__blank"),S.style.paddingLeft="5px",S.style.textDecoration="underline"}function A(){const S=SS(s),L=r("text"),N=document.getElementById(L)||document.createElement("span"),H=r("learnmore"),B=document.getElementById(H)||document.createElement("a"),k=r("preprendIcon"),q=document.getElementById(k)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(S.created){const Y=S.element;y(Y),T(B,H);const J=g();m(q,k),Y.append(q,N,B,J),document.body.appendChild(Y)}f?(N.innerText="Preview backend disconnected.",q.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
127<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
128</g>
129<defs>
130<clipPath id="clip0_6013_33858">
131<rect width="24" height="24" fill="white"/>
132</clipPath>
133</defs>`):(q.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
134<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 
13412.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
135</g>
136<defs>
137<clipPath id="clip0_6083_34804">
138<rect width="24" height="24" fill="white"/>
139</clipPath>
140</defs>`,N.innerText="Preview backend running in this workspace."),N.setAttribute("id",L)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",A):A()}/**
141 * @license
142 * Copyright 2017 Google LLC
143 *
144 * Licensed under the Apache License, Version 2.0 (the "License");
145 * you may not use this file except in compliance with the License.
146 * You may obtain a copy of the License at
147 *
148 *   http://www.apache.org/licenses/LICENSE-2.0
149 *
150 * Unless required by applicable law or agreed to in writing, software
151 * distributed under the License is distributed on an "AS IS" BASIS,
152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
153 * See the License for the specific language governing permissions and
154 * limitations under the License.
155 */function tt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function ES(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(tt())}function TS(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Hg(){const i=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof i=="object"&&i.id!==void 0}function wS(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function AS(){const i=tt();return i.indexOf("MSIE ")>=0||i.indexOf("Trident/")>=0}function Bg(){try{return typeof indexedDB=="object"}catch{return!1}}function qg(){return new Promise((i,a)=>{try{let r=!0;const s="validate-browser-context-for-indexeddb-analytics-module",c=self.indexedDB.open(s);c.onsuccess=()=>{c.result.close(),r||self.indexedDB.deleteDatabase(s),i(!0)},c.onupgradeneeded=()=>{r=!1},c.onerror=()=>{var f;a(((f=c.error)===null||f===void 0?void 0:f.message)||"")}}catch(r){a(r)}})}function CS(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
156 * @license
157 * Copyright 2017 Google LLC
158 *
159 * Licensed under the Apache License, Version 2.0 (the "License");
160 * you may not use this file except in compliance with the License.
161 * You may obtain a copy of the License at
162 *
163 *   http://www.apache.org/licenses/LICENSE-2.0
164 *
165 * Unless required by applicable law or agreed to in writing, software
166 * distributed under the License is distributed on an "AS IS" BASIS,
167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
168 * See the License for the specific language governing permissions and
169 * limitations under the License.
170 */const xS="FirebaseError";class Ft extends Error{constructor(a,r,s){super(r),this.code=a,this.customData=s,this.name=xS,Object.setPrototypeOf(this,Ft.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ha.prototype.create)}}class Ha{constructor(a,r,s){this.service=a,this.serviceName=r,this.errors=s}create(a,...r){const s=r[0]||{},c=`${this.service}/${a}`,f=this.errors[a],h=f?RS(f,s):"Error",y=`${this.serviceName}: ${h} (${c}).`;return new Ft(c,y,s)}}function RS(i,a){return i.replace(OS,(r,s)=>{const c=a[s];return c!=null?String(c):`<${s}?>`})}const OS=/\{\$([^}]+)}/g;function NS(i){for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a))return!1;return!0}function za(i,a){if(i===a)return!0;const r=Object.keys(i),s=Object.keys(a);for(const c of r){if(!s.includes(c))return!1;const f=i[c],h=a[c];if(Dp(f)&&Dp(h)){if(!za(f,h))return!1}else if(f!==h)return!1}for(const c of s)if(!r.includes(c))return!1;return!0}function Dp(i){return i!==null&&typeof i=="object"}/**
171 * @license
172 * Copyright 2017 Google LLC
173 *
174 * Licensed under the Apache License, Version 2.0 (the "License");
175 * you may not use this file except in compliance with the License.
176 * You may obtain a copy of the License at
177 *
178 *   http://www.apache.org/licenses/LICENSE-2.0
179 *
180 * Unless required by applicable law or agreed to in writing, software
181 * distributed under the License is distributed on an "AS IS" BASIS,
182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
183 * See the License for the specific language governing permissions and
184 * limitations under the License.
185 */function Gl(i){const a=[];for(const[r,s]of Object.entries(i))Array.isArray(s)?s.forEach(c=>{a.push(encodeURIComponent(r)+"="+encodeURIComponent(c))}):a.push(encodeURIComponent(r)+"="+encodeURIComponent(s));return a.length?"&"+a.join("&"):""}function Nl(i){const a={};return i.replace(/^\?/,"").split("&").forEach(s=>{if(s){const[c,f]=s.split("=");a[decodeURIComponent(c)]=decodeURIComponent(f)}}),a}function Dl(i){const a=i.indexOf("?");if(!a)return"";const r=i.indexOf("#",a);return i.substring(a,r>0?r:void 0)}function DS(i,a){const r=new MS(i,a);return r.subscribe.bind(r)}class MS{constructor(a,r){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=r,this.task.then(()=>{a(this)}).catch(s=>{this.error(s)})}next(a){this.forEachObserver(r=>{r.next(a)})}error(a){this.forEachObserver(r=>{r.error(a)}),this.close(a)}complete(){this.forEachObserver(a=>{a.complete()}),this.close()}subscribe(a,r,s){let c;if(a===void 0&&r===void 0&&s===void 0)throw new Error("Missing Observer.");US(a,["next","error","complete"])?c=a:c={next:a,error:r,complete:s},c.next===void 0&&(c.next=vc),c.error===void 0&&(c.error=vc),c.complete===void 0&&(c.complete=vc);const f=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?c.error(this.finalError):c.complete()}catch{}}),this.observers.push(c),f}unsubscribeOne(a){this.observers===void 0||this.observers[a]===void 0||(delete this.observers[a],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(a){if(!this.finalized)for(let r=0;r<this.observers.length;r++)this.sendOne(r,a)}sendOne(a,r){this.task.then(()=>{if(this.observers!==void 0&&this.observers[a]!==void 0)try{r(this.observers[a])}catch(s){typeof console<"u"&&console.error&&console.error(s)}})}close(a){this.finalized||(this.finalized=!0,a!==void 0&&(this.finalError=a),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function US(i,a){if(typeof i!="object"||i===null)return!1;for(const r of a)if(r in i&&typeof i[r]=="function")return!0;return!1}function vc(){}/**
186 * @license
187 * Copyright 2019 Google LLC
188 *
189 * Licensed under the Apache License, Version 2.0 (the "License");
190 * you may not use this file except in compliance with the License.
191 * You may obtain a copy of the License at
192 *
193 *   http://www.apache.org/licenses/LICENSE-2.0
194 *
195 * Unless required by applicable law or agreed to in writing, software
196 * distributed under the License is distributed on an "AS IS" BASIS,
197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198 * See the License for the specific language governing permissions and
199 * limitations under the License.
200 */const IS=1e3,zS=2,LS=4*60*60*1e3,jS=.5;function Mp(i,a=IS,r=zS){const s=a*Math.pow(r,i),c=Math.round(jS*s*(Math.random()-.5)*2);return Math.min(LS,s+c)}/**
201 * @license
202 * Copyright 2021 Google LLC
203 *
204 * Licensed under the Apache License, Version 2.0 (the "License");
205 * you may not use this file except in compliance with the License.
206 * You may obtain a copy of the License at
207 *
208 *   http://www.apache.org/licenses/LICENSE-2.0
209 *
210 * Unless required by applicable law or agreed to in writing, software
211 * distributed under the License is distributed on an "AS IS" BASIS,
212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
213 * See the License for the specific language governing permissions and
214 * limitations under the License.
215 */function Wt(i){return i&&i._delegate?i._delegate:i}class Zt{constructor(a,r,s){this.name=a,this.instanceFactory=r,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(a){return this.instantiationMode=a,this}setMultipleInstances(a){return this.multipleInstances=a,this}setServiceProps(a){return this.serviceProps=a,this}setInstanceCreatedCallback(a){return this.onInstanceCreated=a,this}}/**
216 * @license
217 * Copyright 2019 Google LLC
218 *
219 * Licensed under the Apache License, Version 2.0 (the "License");
220 * you may not use this file except in compliance with the License.
221 * You may obtain a copy of the License at
222 *
223 *   http://www.apache.org/licenses/LICENSE-2.0
224 *
225 * Unless required by applicable law or agreed to in writing, software
226 * distributed under the License is distributed on an "AS IS" BASIS,
227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228 * See the License for the specific language governing permissions and
229 * limitations under the License.
230 */const Ua="[DEFAULT]";/**
231 * @license
232 * Copyright 2019 Google LLC
233 *
234 * Licensed under the Apache License, Version 2.0 (the "License");
235 * you may not use this file except in compliance with the License.
236 * You may obtain a copy of the License at
237 *
238 *   http://www.apache.org/licenses/LICENSE-2.0
239 *
240 * Unless required by applicable law or agreed to in writing, software
241 * distributed under the License is distributed on an "AS IS" BASIS,
242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243 * See the License for the specific language governing permissions and
244 * limitations under the License.
245 */class kS{constructor(a,r){this.name=a,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(a){const r=this.normalizeInstanceIdentifier(a);if(!this.instancesDeferred.has(r)){const s=new yS;if(this.instancesDeferred.set(r,s),this.isInitialized(r)||this.shouldAutoInitialize())try{const c=this.getOrInitializeService({instanceIdentifier:r});c&&s.resolve(c)}catch{}}return this.instancesDeferred.get(r).promise}getImmediate(a){var r;const s=this.normalizeInstanceIdentifier(a==null?void 0:a.identifier),c=(r=a==null?void 0:a.optional)!==null&&r!==void 0?r:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(f){if(c)return null;throw f}else{if(c)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(a){if(a.name!==this.name)throw Error(`Mismatching Component ${a.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=a,!!this.shouldAutoInitialize()){if(BS(a))try{this.getOrInitializeService({instanceIdentifier:Ua})}catch{}for(const[r,s]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(r);try{const f=this.getOrInitializeService({instanceIdentifier:c});s.resolve(f)}catch{}}}}clearInstance(a=Ua){this.instancesDeferred.delete(a),this.instancesOptions.delete(a),this.instances.delete(a)}async delete(){const a=Array.from(this.instances.values());await Promise.all([...a.filter(r=>"INTERNAL"in r).map(r=>r.INTERNAL.delete()),...a.filter(r=>"_delete"in r).map(r=>r._delete())])}isComponentSet(){return this.component!=null}isInitialized(a=Ua){return this.instances.has(a)}getOptions(a=Ua){return this.instancesOptions.get(a)||{}}initialize(a={}){const{options:r={}}=a,s=this.normalizeInstanceIdentifier(a.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const c=this.getOrInitializeService({instanceIdentifier:s,options:r});for(const[f,h]of this.instancesDeferred.entries()){const y=this.normalizeInstanceIdentifier(f);s===y&&h.resolve(c)}return c}onInit(a,r){var s;const c=this.normalizeInstanceIdentifier(r),f=(s=this.onInitCallbacks.get(c))!==null&&s!==void 0?s:new Set;f.add(a),this.onInitCallbacks.set(c,f);const h=this.instances.get(c);return h&&a(h,c),()=>{f.delete(a)}}invokeOnInitCallbacks(a,r){const s=this.onInitCallbacks.get(r);if(s)for(const c of s)try{c(a,r)}catch{}}getOrInitializeService({instanceIdentifier:a,options:r={}}){let s=this.instances.get(a);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:HS(a),options:r}),this.instances.set(a,s),this.instancesOptions.set(a,r),this.invokeOnInitCallbacks(s,a),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,a,s)}catch{}return s||null}normalizeInstanceIdentifier(a=Ua){return this.component?this.component.multipleInstances?a:Ua:a}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function HS(i){return i===Ua?void 0:i}function BS(i){return i.instantiationMode==="EAGER"}/**
246 * @license
247 * Copyright 2019 Google LLC
248 *
249 * Licensed under the Apache License, Version 2.0 (the "License");
250 * you may not use this file except in compliance with the License.
251 * You may obtain a copy of the License at
252 *
253 *   http://www.apache.org/licenses/LICENSE-2.0
254 *
255 * Unless required by applicable law or agreed to in writing, software
256 * distributed under the License is distributed on an "AS IS" BASIS,
257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
258 * See the License for the specific language governing permissions and
259 * limitations under the License.
260 */class qS{constructor(a){this.name=a,this.providers=new Map}addComponent(a){const r=this.getProvider(a.name);if(r.isComponentSet())throw new Error(`Component ${a.name} has already been registered with ${this.name}`);r.setComponent(a)}addOrOverwriteComponent(a){this.getProvider(a.name).isComponentSet()&&this.providers.delete(a.name),this.addComponent(a)}getProvider(a){if(this.providers.has(a))return this.providers.get(a);const r=new kS(a,this);return this.providers.set(a,r),r}getProviders(){return Array.from(this.providers.values())}}/**
261 * @license
262 * Copyright 2017 Google LLC
263 *
264 * Licensed under the Apache License, Version 2.0 (the "License");
265 * you may not use this file except in compliance with the License.
266 * You may obtain a copy of the License at
267 *
268 *   http://www.apache.org/licenses/LICENSE-2.0
269 *
270 * Unless required by applicable law or agreed to in writing, software
271 * distributed under the License is distributed on an "AS IS" BASIS,
272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
273 * See the License for the specific language governing permissions and
274 * limitations under the License.
275 */var Oe;(function(i){i[i.DEBUG=0]="DEBUG",i[i.VERBOSE=1]="VERBOSE",i[i.INFO=2]="INFO",i[i.WARN=3]="WARN",i[i.ERROR=4]="ERROR",i[i.SILENT=5]="SILENT"})(Oe||(Oe={}));const VS={debug:Oe.DEBUG,verbose:Oe.VERBOSE,info:Oe.INFO,warn:Oe.WARN,error:Oe.ERROR,silent:Oe.SILENT},GS=Oe.INFO,PS={[Oe.DEBUG]:"log",[Oe.VERBOSE]:"log",[Oe.INFO]:"info",[Oe.WARN]:"warn",[Oe.ERROR]:"error"},YS=(i,a,...r)=>{if(a<i.logLevel)return;const s=new Date().toISOString(),c=PS[a];if(c)console[c](`[${s}]  ${i.name}:`,...r);else throw new Error(`Attempted to log a message with an invalid logType (value: ${a})`)};class Zc{constructor(a){this.name=a,this._logLevel=GS,this._logHandler=YS,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(a){if(!(a in Oe))throw new TypeError(`Invalid value "${a}" assigned to \`logLevel\``);this._logLevel=a}setLogLevel(a){this._logLevel=typeof a=="string"?VS[a]:a}get logHandler(){return this._logHandler}set logHandler(a){if(typeof a!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=a}get userLogHandler(){return this._userLogHandler}set userLogHandler(a){this._userLogHandler=a}debug(...a){this._userLogHandler&&this._userLogHandler(this,Oe.DEBUG,...a),this._logHandler(this,Oe.DEBUG,...a)}log(...a){this._userLogHandler&&this._userLogHandler(this,Oe.VERBOSE,...a),this._logHandler(this,Oe.VERBOSE,...a)}info(...a){this._userLogHandler&&this._userLogHandler(this,Oe.INFO,...a),this._logHandler(this,Oe.INFO,...a)}warn(...a){this._userLogHandler&&this._userLogHandler(this,Oe.WARN,...a),this._logHandler(this,Oe.WARN,...a)}error(...a){this._userLogHandler&&this._userLogHandler(this,Oe.ERROR,...a),this._logHandler(this,Oe.ERROR,...a)}}const XS=(i,a)=>a.some(r=>i instanceof r);let Up,Ip;function KS(){return Up||(Up=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function QS(){return Ip||(Ip=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}
vendor: 4,119 bytes, lines 275-300
275const Vg=new WeakMap,Nc=new WeakMap,Gg=new WeakMap,bc=new WeakMap,$c=new WeakMap;function ZS(i){const a=new Promise((r,s)=>{const c=()=>{i.removeEventListener("success",f),i.removeEventListener("error",h)},f=()=>{r(oa(i.result)),c()},h=()=>{s(i.error),c()};i.addEventListener("success",f),i.addEventListener("error",h)});return a.then(r=>{r instanceof IDBCursor&&Vg.set(r,i)}).catch(()=>{}),$c.set(a,i),a}function $S(i){if(Nc.has(i))return;const a=new Promise((r,s)=>{const c=()=>{i.removeEventListener("complete",f),i.removeEventListener("error",h),i.removeEventListener("abort",h)},f=()=>{r(),c()},h=()=>{s(i.error||new DOMException("AbortError","AbortError")),c()};i.addEventListener("complete",f),i.addEventListener("error",h),i.addEventListener("abort",h)});Nc.set(i,a)}let Dc={get(i,a,r){if(i instanceof IDBTransaction){if(a==="done")return Nc.get(i);if(a==="objectStoreNames")return i.objectStoreNames||Gg.get(i);if(a==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return oa(i[a])},set(i,a,r){return i[a]=r,!0},has(i,a){return i instanceof IDBTransaction&&(a==="done"||a==="store")?!0:a in i}};function JS(i){Dc=i(Dc)}function FS(i){return i===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(a,...r){const s=i.call(Sc(this),a,...r);return Gg.set(s,a.sort?a.sort():[a]),oa(s)}:QS().includes(i)?function(...a){return i.apply(Sc(this),a),oa(Vg.get(this))}:function(...a){return oa(i.apply(Sc(this),a))}}function WS(i){return typeof i=="function"?FS(i):(i instanceof IDBTransaction&&$S(i),XS(i,KS())?new Proxy(i,Dc):i)}function oa(i){if(i instanceof IDBRequest)return ZS(i);if(bc.has(i))return bc.get(i);const a=WS(i);return a!==i&&(bc.set(i,a),$c.set(a,i)),a}const Sc=i=>$c.get(i);function Pg(i,a,{blocked:r,upgrade:s,blocking:c,terminated:f}={}){const h=indexedDB.open(i,a),y=oa(h);return s&&h.addEventListener("upgradeneeded",m=>{s(oa(h.result),m.oldVersion,m.newVersion,oa(h.transaction),m)}),r&&h.addEventListener("blocked",m=>r(m.oldVersion,m.newVersion,m)),y.then(m=>{f&&m.addEventListener("close",()=>f()),c&&m.addEventListener("versionchange",g=>c(g.oldVersion,g.newVersion,g))}).catch(()=>{}),y}const e_=["get","getKey","getAll","getAllKeys","count"],t_=["put","add","delete","clear"],_c=new Map;function zp(i,a){if(!(i instanceof IDBDatabase&&!(a in i)&&typeof a=="string"))return;if(_c.get(a))return _c.get(a);const r=a.replace(/FromIndex$/,""),s=a!==r,c=t_.includes(r);if(!(r in(s?IDBIndex:IDBObjectStore).prototype)||!(c||e_.includes(r)))return;const f=async function(h,...y){const m=this.transaction(h,c?"readwrite":"readonly");let g=m.store;return s&&(g=g.index(y.shift())),(await Promise.all([g[r](...y),c&&m.done]))[0]};return _c.set(a,f),f}JS(i=>({...i,get:(a,r,s)=>zp(a,r)||i.get(a,r,s),has:(a,r)=>!!zp(a,r)||i.has(a,r)}));/**
276 * @license
277 * Copyright 2019 Google LLC
278 *
279 * Licensed under the Apache License, Version 2.0 (the "License");
280 * you may not use this file except in compliance with the License.
281 * You may obtain a copy of the License at
282 *
283 *   http://www.apache.org/licenses/LICENSE-2.0
284 *
285 * Unless required by applicable law or agreed to in writing, software
286 * distributed under the License is distributed on an "AS IS" BASIS,
287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
288 * See the License for the specific language governing permissions and
289 * limitations under the License.
290 */class n_{constructor(a){this.container=a}getPlatformInfoString(){return this.container.getProviders().map(r=>{if(a_(r)){const s=r.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(r=>r).join(" ")}}function a_(i){const a=i.getComponent();return(a==null?void 0:a.type)==="VERSION"}const Mc="@firebase/app",Lp="0.13.0";/**
291 * @license
292 * Copyright 2019 Google LLC
293 *
294 * Licensed under the Apache License, Version 2.0 (the "License");
295 * you may not use this file except in compliance with the License.
296 * You may obtain a copy of the License at
297 *
298 *   http://www.apache.org/licenses/LICENSE-2.0
299 *
300 * Unless required by applicable law or agreed to in writing, softw
300are
301 * distributed under the License is distributed on an "AS IS" BASIS,
302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
303 * See the License for the specific language governing permissions and
304 * limitations under the License.
305 */const Cn=new Zc("@firebase/app"),i_="@firebase/app-compat",l_="@firebase/analytics-compat",r_="@firebase/analytics",s_="@firebase/app-check-compat",o_="@firebase/app-check",u_="@firebase/auth",c_="@firebase/auth-compat",f_="@firebase/database",d_="@firebase/data-connect",h_="@firebase/database-compat",m_="@firebase/functions",p_="@firebase/functions-compat",g_="@firebase/installations",y_="@firebase/installations-compat",v_="@firebase/messaging",b_="@firebase/messaging-compat",S_="@firebase/performance",__="@firebase/performance-compat",E_="@firebase/remote-config",T_="@firebase/remote-config-compat",w_="@firebase/storage",A_="@firebase/storage-compat",C_="@firebase/firestore",x_="@firebase/ai",R_="@firebase/firestore-compat",O_="firebase",N_="11.8.0";/**
306 * @license
307 * Copyright 2019 Google LLC
308 *
309 * Licensed under the Apache License, Version 2.0 (the "License");
310 * you may not use this file except in compliance with the License.
311 * You may obtain a copy of the License at
312 *
313 *   http://www.apache.org/licenses/LICENSE-2.0
314 *
315 * Unless required by applicable law or agreed to in writing, software
316 * distributed under the License is distributed on an "AS IS" BASIS,
317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
318 * See the License for the specific language governing permissions and
319 * limitations under the License.
320 */const Uc="[DEFAULT]",D_={[Mc]:"fire-core",[i_]:"fire-core-compat",[r_]:"fire-analytics",[l_]:"fire-analytics-compat",[o_]:"fire-app-check",[s_]:"fire-app-check-compat",[u_]:"fire-auth",[c_]:"fire-auth-compat",[f_]:"fire-rtdb",[d_]:"fire-data-connect",[h_]:"fire-rtdb-compat",[m_]:"fire-fn",[p_]:"fire-fn-compat",[g_]:"fire-iid",[y_]:"fire-iid-compat",[v_]:"fire-fcm",[b_]:"fire-fcm-compat",[S_]:"fire-perf",[__]:"fire-perf-compat",[E_]:"fire-rc",[T_]:"fire-rc-compat",[w_]:"fire-gcs",[A_]:"fire-gcs-compat",[C_]:"fire-fst",[R_]:"fire-fst-compat",[x_]:"fire-vertex","fire-js":"fire-js",[O_]:"fire-js-all"};/**
321 * @license
322 * Copyright 2019 Google LLC
323 *
324 * Licensed under the Apache License, Version 2.0 (the "License");
325 * you may not use this file except in compliance with the License.
326 * You may obtain a copy of the License at
327 *
328 *   http://www.apache.org/licenses/LICENSE-2.0
329 *
330 * Unless required by applicable law or agreed to in writing, software
331 * distributed under the License is distributed on an "AS IS" BASIS,
332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
333 * See the License for the specific language governing permissions and
334 * limitations under the License.
335 */const ws=new Map,M_=new Map,Ic=new Map;function jp(i,a){try{i.container.addComponent(a)}catch(r){Cn.debug(`Component ${a.name} failed to register with FirebaseApp ${i.name}`,r)}}function xn(i){const a=i.name;if(Ic.has(a))return Cn.debug(`There were multiple attempts to register component ${a}.`),!1;Ic.set(a,i);for(const r of ws.values())jp(r,i);for(const r of M_.values())jp(r,i);return!0}function Di(i,a){const r=i.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),i.container.getProvider(a)}function Lt(i){return i==null?!1:i.settings!==void 0}/**
336 * @license
337 * Copyright 2019 Google LLC
338 *
339 * Licensed under the Apache License, Version 2.0 (the "License");
340 * you may not use this file except in compliance with the License.
341 * You may obtain a copy of the License at
342 *
343 *   http://www.apache.org/licenses/LICENSE-2.0
344 *
345 * Unless required by applicable law or agreed to in writing, software
346 * distributed under the License is distributed on an "AS IS" BASIS,
347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
348 * See the License for the specific language governing permissions and
349 * limitations under the License.
350 */const U_={"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","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
350d-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}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ua=new Ha("app","Firebase",U_);/**
351 * @license
352 * Copyright 2019 Google LLC
353 *
354 * Licensed under the Apache License, Version 2.0 (the "License");
355 * you may not use this file except in compliance with the License.
356 * You may obtain a copy of the License at
357 *
358 *   http://www.apache.org/licenses/LICENSE-2.0
359 *
360 * Unless required by applicable law or agreed to in writing, software
361 * distributed under the License is distributed on an "AS IS" BASIS,
362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
363 * See the License for the specific language governing permissions and
364 * limitations under the License.
365 */class I_{constructor(a,r,s){this._isDeleted=!1,this._options=Object.assign({},a),this._config=Object.assign({},r),this._name=r.name,this._automaticDataCollectionEnabled=r.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new Zt("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(a){this.checkDestroyed(),this._automaticDataCollectionEnabled=a}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(a){this._isDeleted=a}checkDestroyed(){if(this.isDeleted)throw ua.create("app-deleted",{appName:this._name})}}/**
366 * @license
367 * Copyright 2019 Google LLC
368 *
369 * Licensed under the Apache License, Version 2.0 (the "License");
370 * you may not use this file except in compliance with the License.
371 * You may obtain a copy of the License at
372 *
373 *   http://www.apache.org/licenses/LICENSE-2.0
374 *
375 * Unless required by applicable law or agreed to in writing, software
376 * distributed under the License is distributed on an "AS IS" BASIS,
377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
378 * See the License for the specific language governing permissions and
379 * limitations under the License.
380 */const Pl=N_;function Yg(i,a={}){let r=i;typeof a!="object"&&(a={name:a});const s=Object.assign({name:Uc,automaticDataCollectionEnabled:!0},a),c=s.name;if(typeof c!="string"||!c)throw ua.create("bad-app-name",{appName:String(c)});if(r||(r=jg()),!r)throw ua.create("no-options");const f=ws.get(c);if(f){if(za(r,f.options)&&za(s,f.config))return f;throw ua.create("duplicate-app",{appName:c})}const h=new qS(c);for(const m of Ic.values())h.addComponent(m);const y=new I_(r,s,h);return ws.set(c,y),y}function Xg(i=Uc){const a=ws.get(i);if(!a&&i===Uc&&jg())return Yg();if(!a)throw ua.create("no-app",{appName:i});return a}function Yt(i,a,r){var s;let c=(s=D_[i])!==null&&s!==void 0?s:i;r&&(c+=`-${r}`);const f=c.match(/\s|\//),h=a.match(/\s|\//);if(f||h){const y=[`Unable to register library "${c}" with version "${a}":`];f&&y.push(`library name "${c}" contains illegal characters (whitespace or "/")`),f&&h&&y.push("and"),h&&y.push(`version name "${a}" contains illegal characters (whitespace or "/")`),Cn.warn(y.join(" "));return}xn(new Zt(`${c}-version`,()=>({library:c,version:a}),"VERSION"))}/**
381 * @license
382 * Copyright 2021 Google LLC
383 *
384 * Licensed under the Apache License, Version 2.0 (the "License");
385 * you may not use this file except in compliance with the License.
386 * You may obtain a copy of the License at
387 *
388 *   http://www.apache.org/licenses/LICENSE-2.0
389 *
390 * Unless required by applicable law or agreed to in writing, softw
390are
391 * distributed under the License is distributed on an "AS IS" BASIS,
392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
393 * See the License for the specific language governing permissions and
394 * limitations under the License.
395 */const z_="firebase-heartbeat-database",L_=1,Ll="firebase-heartbeat-store";let Ec=null;function Kg(){return Ec||(Ec=Pg(z_,L_,{upgrade:(i,a)=>{switch(a){case 0:try{i.createObjectStore(Ll)}catch(r){console.warn(r)}}}}).catch(i=>{throw ua.create("idb-open",{originalErrorMessage:i.message})})),Ec}async function j_(i){try{const r=(await Kg()).transaction(Ll),s=await r.objectStore(Ll).get(Qg(i));return await r.done,s}catch(a){if(a instanceof Ft)Cn.warn(a.message);else{const r=ua.create("idb-get",{originalErrorMessage:a==null?void 0:a.message});Cn.warn(r.message)}}}async function kp(i,a){try{const s=(await Kg()).transaction(Ll,"readwrite");await s.objectStore(Ll).put(a,Qg(i)),await s.done}catch(r){if(r instanceof Ft)Cn.warn(r.message);else{const s=ua.create("idb-set",{originalErrorMessage:r==null?void 0:r.message});Cn.warn(s.message)}}}function Qg(i){return`${i.name}!${i.options.appId}`}/**
396 * @license
397 * Copyright 2021 Google LLC
398 *
399 * Licensed under the Apache License, Version 2.0 (the "License");
400 * you may not use this file except in compliance with the License.
401 * You may obtain a copy of the License at
402 *
403 *   http://www.apache.org/licenses/LICENSE-2.0
404 *
405 * Unless required by applicable law or agreed to in writing, software
406 * distributed under the License is distributed on an "AS IS" BASIS,
407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
408 * See the License for the specific language governing permissions and
409 * limitations under the License.
410 */const k_=1024,H_=30;class B_{constructor(a){this.container=a,this._heartbeatsCache=null;const r=this.container.getProvider("app").getImmediate();this._storage=new V_(r),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var a,r;try{const c=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),f=Hp();if(((a=this._heartbeatsCache)===null||a===void 0?void 0:a.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((r=this._heartbeatsCache)===null||r===void 0?void 0:r.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===f||this._heartbeatsCache.heartbeats.some(h=>h.date===f))return;if(this._heartbeatsCache.heartbeats.push({date:f,agent:c}),this._heartbeatsCache.heartbeats.length>H_){const h=G_(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(h,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(s){Cn.warn(s)}}async getHeartbeatsHeader(){var a;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((a=this._heartbeatsCache)===null||a===void 0?void 0:a.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const r=Hp(),{heartbeatsToSend:s,unsentEntries:c}=q_(this._heartbeatsCache.heartbeats),f=zg(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=r,c.length>0?(this._heartbeatsCache.heartbeats=c,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),f}catch(r){return Cn.warn(r),""}}}function Hp(){return new Date().toISOString().substring(0,10)}function q_(i,a=k_){const r=[];let s=i.slice();for(const c of i){const f=r.find(h=>h.agent===c.agent);if(f){if(f.dates.push(c.date),Bp(r)>a){f.dates.pop();break}}else if(r.push({agent:c.agent,dates:[c.date]}),Bp(r)>a){r.pop();break}s=s.slice(1)}return{heartbeatsToSend:r,unsentEntries:s}}class V_{constructor(a){this.app=a,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Bg()?qg().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const r=await j_(this.app);return r!=null&&r.heartbeats?r:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(a){var r;if(await this._canUseIndexedDBPromise){const c=await this.read();return kp(this.app,{lastSentHeartbeatDate:(r=a.lastSentHeartbeatDate)!==null&&r!==void 0?r:c.lastSentHeartbeatDate,heartbeats:a.heartbeats})}else return}async add(a){var r;if(await this._canUseIndexedDBPromise){const c=await this.read();return kp(this.app,{lastSentHeartbeatDate:(r=a.lastSentHeartbeatDate)!==null&&r!==void 0?r:c.lastSentHeartbeatDate,heartbeats:[...c.heartbeats,...a.heartbeats]})}else return}}function Bp(i){return zg(JSON.stringify({version:2,heartbeats:i})).length}function G_(i){if(i.length===0)return-1;let a=0,r=i[0].date;for(let s=1;s<i.length;s++)i[s].date<r&&(r=i[s].date,a=s);return a}/**
411 * @license
412 * Copyright 2019 Google LLC
413 *
414 * Licensed under the Apache License, Version 2.0 (the "License");
415 * you may not use this file except in compliance with the License.
416 * You may obtain a copy of the License at
417 *
418 *   http://www.apache.org/licenses/LICENSE-2.0
419 *
420 * Unless required by applicable law or agreed to in writing, software
421 * distributed under the License is distributed on an "AS IS" BASIS,
422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
423 * See the License for the specific language governing permissions and
424 * limitations under the License.
425 */function P_(i){xn(new Zt("platform-logger",a=>new n_(a),"PRIVATE")),xn(new Zt("heartbeat",a=>new B_(a),"PRIVATE")),Yt(Mc,Lp,i),Yt(Mc,Lp,"esm2017"),Yt("fire-js","")}P_("");var Y_="firebase",X_="11.8.1";/**
426 * @license
427 * Copyright 2020 Google LLC
428 *
429 * Licensed under the Apache License, Version 2.0 (the "License");
430 * you may not use this file except in compliance with the License.
431 * You may obtain a copy of the License at
432 *
433 *   http://www.apache.org/licenses/LICENSE-2.0
434 *
435 * Unless required by applicable law or agreed to in writing, software
436 * distributed under the License is distributed on an "AS IS" BASIS,
437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
438 * See the License for the specific language governing permissions and
439 * limitations under the License.
440 */Yt(Y_,X_,"app");function Jc(i,a){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(i);c<s.length;c++)a.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(i,s[c])&&(r[s[c]]=i[s[c]]);return r}function Zg(){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."}}const K_=Zg,$g=new Ha("auth","Firebase",Zg());/**
441 * @license
442 * Copyright 2020 Google LLC
443 *
444 * Licensed under the Apache License, Version 2.0 (the "License");
445 * you may not use this file except in compliance with the License.
446 * You may obtain a copy of the License at
447 *
448 *   http://www.apache.org/licenses/LICENSE-2.0
449 *
450 * Unless required by applicable law or agreed to in writing, software
451 * distributed under the License is distributed on an "AS IS" BASIS,
452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
453 * See the License for the specific language governing permissions and
454 * limitations under the License.
455 */const As=new Zc("@firebase/auth");function Q_(i,...a){As.logLevel<=Oe.WARN&&As.warn(`Auth (${Pl}): ${i}`,...a)}function bs(i,...a){As.logLevel<=Oe.ERROR&&As.error(`Auth (${Pl}): ${i}`,...a)}/**
456 * @license
457 * Copyright 2020 Google LLC
458 *
459 * Licensed under the Apache License, Version 2.0 (the "License");
460 * you may not use this file except in compliance with the License.
461 * You may obtain a copy of the License at
462 *
463 *   http://www.apache.org/licenses/LICENSE-2.0
464 *
465 * Unless required by applicable law or agreed to in writing, software
466 * distributed under the License is distributed on an "AS IS" BASIS,
467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
468 * See the License for the specific language governing permissions and
469 * limitations under the License.
470 */function Ht(i,...a){throw Fc(i,...a)}function Xt(i,...a){return Fc(i,...a)}function Jg(i,a,r){const s=Object.assign(Object.assign({},K_()),{[a]:r});return new Ha("auth","Firebase",s).create(a,{appName:i.name})}function wn(i){return Jg(i,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Fc(i,...a){if(typeof i!="string"){const r=a[0],s=[...a.slice(1)];return s[0]&&(s[0].appName=i.name),i._errorFactory.create(r,...s)}return $g.create(i,...a)}function F(i,a,...r){if(!i)throw Fc(a,...r)}function Sn(i){const a="INTERNAL ASSERTION FAILED: "+i;throw bs(a),new Error(a)}function Rn(i,a){i||Sn(a)}/**
471 * @license
472 * Copyright 2020 Google LLC
473 *
474 * Licensed under the Apache License, Version 2.0 (the "License");
475 * you may not use this file except in compliance with the License.
476 * You may obtain a copy of the License at
477 *
478 *   http://www.apache.org/licenses/LICENSE-2.0
479 *
480 * Unless required by applicable law or agreed to in writing, software
481 * distributed under the License is distributed on an "AS IS" BASIS,
482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
483 * See the License for the specific language governing permissions and
484 * limitations under the License.
485 */function zc(){var i;return typeof self<"u"&&((i=self.location)===null||i===void 0?void 0:i.href)||""}function Z_(){return qp()==="http:"||qp()==="https:"}function qp(){var i;return typeof self<"u"&&((i=self.location)===null||i===void 0?void 0:i.protocol)||null}/**
486 * @license
487 * Copyright 2020 Google LLC
488 *
489 * Licensed under the Apache License, Version 2.0 (the "License");
490 * you may not use this file except in compliance with the License.
491 * You may obtain a copy of the License at
492 *
493 *   http://www.apache.org/licenses/LICENSE-2.0
494 *
495 * Unless required by applicable law or agreed to in writing, software
496 * distributed under the License is distributed on an "AS IS" BASIS,
497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
498 * See the License for the specific language governing permissions and
499 * limitations under the License.
500 */function $_(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(Z_()||Hg()||"connection"in navigator)?navigator.onLine:!0}function J_(){if(typeof navigator>"u")return null;const i=navigator;return i.languages&&i.languages[0]||i.language||null}/**
501 * @license
502 * Copyright 2020 Google LLC
503 *
504 * Licensed under the Apache License, Version 2.0 (the "License");
505 * you may not use this file except in compliance with the License.
506 * You may obtain a copy of the License at
507 *
508 *   http://www.apache.org/licenses/LICENSE-2.0
509 *
510 * Unless required by applicable law or agreed to in writing, software
511 * distributed under the License is distributed on an "AS IS" BASIS,
512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
513 * See the License for the specific language governing permissions and
514 * limitations under the License.
515 */class Yl{constructor(a,r){this.shortDelay=a,this.longDelay=r,Rn(r>a,"Short delay should be less than long delay!"),this.isMobile=ES()||wS()}get(){return $_()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
516 * @license
517 * Copyright 2020 Google LLC
518 *
519 * Licensed under the Apache License, Version 2.0 (the "License");
520 * you may not use this file except in compliance with the License.
521 * You may obtain a copy of the License at
522 *
523 *   http://www.apache.org/licenses/LICENSE-2.0
524 *
525 * Unless required by applicable law or agreed to in writing, software
526 * distributed under the License is distributed on an "AS IS" BASIS,
527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
528 * See the License for the specific language governing permissions and
529 * limitations under the License.
530 */function Wc(i,a){Rn(i.emulator,"Emulator should always be set here");const{url:r}=i.emulator;return a?`${r}${a.startsWith("/")?a.slice(1):a}`:r}/**
531 * @license
532 * Copyright 2020 Google LLC
533 *
534 * Licensed under the Apache License, Version 2.0 (the "License");
535 * you may not use this file except in compliance with the License.
536 * You may obtain a copy of the License at
537 *
538 *   http://www.apache.org/licenses/LICENSE-2.0
539 *
540 * Unless required by applicable law or agreed to in writing, software
541 * distributed under the License is distributed on an "AS IS" BASIS,
542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
543 * See the License for the specific language governing permissions and
544 * limitations under the License.
545 */class Fg{static initialize(a,r,s){this.fetchImpl=a,r&&(this.headersImpl=r),s&&(this.responseImpl=s)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Sn("Could not find fetch implementation, make sure you call FetchProvi
545der.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Sn("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Sn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
546 * @license
547 * Copyright 2020 Google LLC
548 *
549 * Licensed under the Apache License, Version 2.0 (the "License");
550 * you may not use this file except in compliance with the License.
551 * You may obtain a copy of the License at
552 *
553 *   http://www.apache.org/licenses/LICENSE-2.0
554 *
555 * Unless required by applicable law or agreed to in writing, software
556 * distributed under the License is distributed on an "AS IS" BASIS,
557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
558 * See the License for the specific language governing permissions and
559 * limitations under the License.
560 */const F_={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",INVALID_LOGIN_CREDENTIALS:"invalid-credential",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",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",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"};/**
561 * @license
562 * Copyright 2020 Google LLC
563 *
564 * Licensed under the Apache License, Version 2.0 (the "License");
565 * you may not use this file except in compliance with the License.
566 * You may obtain a copy of the License at
567 *
568 *   http://www.apache.org/licenses/LICENSE-2.0
569 *
570 * Unless required by applicable law or agreed to in writing, software
571 * distributed under the License is distributed on an "AS IS" BASIS,
572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
573 * See the License for the specific language governing permissions and
574 * limitations under the License.
575 */const W_=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],eE=new Yl(3e4,6e4);function da(i,a){return i.tenantId&&!a.tenantId?Object.assign(Object.assign({},a),{tenantId:i.tenantId}):a}async function ha(i,a,r,s,c={}){return Wg(i,c,async()=>{let f={},h={};s&&(a==="GET"?h=s:f={body:JSON.stringify(s)});const y=Gl(Object.assign({key:i.config.apiKey},h)).slice(1),m=await i._getAdditionalHeaders();m["Content-Type"]="application/json",i.languageCode&&(m["X-Firebase-Locale"]=i.languageCode);const g=Object.assign({method:a,headers:m},f);return TS()||(g.referrerPolicy="no-referrer"),i.emulatorConfig&&Qc(i.emulatorConfig.host)&&(g.credentials="include"),Fg.fetch()(await ey(i,i.config.apiHost,r,y),g)})}async function Wg(i,a,r){i._canInitEmulator=!1;const s=Object.assign(Object.assign({},F_),a);try{const c=new nE(i),f=await Promise.race([r(),c.promise]);c.clearNetworkTimeout();const h=await f.json();if("needConfirmation"in h)throw ps(i,"account-exists-with-different-credential",h);if(f.ok&&!("errorMessage"in h))return h;{const y=f.ok?h.errorMessage:h.error.message,[m,g]=y.split(" : ");if(m==="FEDERATED_USER_ID_ALREADY_LINKED")throw ps(i,"credential-already-in-use",h);if(m==="EMAIL_EXISTS")throw ps(i,"email-already-in-use",h);if(m==="USER_DISABLED")throw ps(i,"user-disabled",h);const T=s[m]||m.toLowerCase().replace(/[_\s]+/g,"-");if(g)throw Jg(i,T,g);Ht(i,T)}}catch(c){if(c instanceof Ft)throw c;Ht(i,"network-request-failed",{message:String(c)})}}async function Xl(i,a,r,s,c={}){const f=await ha(i,a,r,s,c);return"mfaPendingCredential"in f&&Ht(i,"multi-factor-auth-required",{_serverResponse:f}),f}async function ey(i,a,r,s){const c=`${a}${r}?${s}`,f=i,h=f.config.emulator?Wc(i.config,c):`${i.config.apiScheme}://${c}`;return W_.includes(r)&&(await f._persistenceManagerAvailable,f._getPersistenceType()==="COOKIE")?f._getPersistence()._getFinalTarget(h).toString():h}function tE(i){switch(i){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class nE{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(a){this.auth=a,this.timer=null,this.promise=new Promise((r,s)=>{this.timer=setTimeout(()=>s(Xt(this.auth,"network-request-failed")),eE.get())})}}function ps(i,a,r){const s={appName:i.name};r.email&&(s.email=r.email),r.phoneNumber&&(s.phoneNumber=r.phoneNumber);const c=Xt(i,a,s);return c.customData._tokenResponse=r,c}function Vp(i){return i!==void 0&&i.enterprise!==void 0}class aE{constructor(a){if(this.siteKey="",this.recaptchaEnforcementState=[],a.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=a.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=a.recaptchaEnforcementState}getProviderEnforcementState(a){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const r of this.recaptchaEnforcementState)if(r.provider&&r.provider===a)return tE(r.enforcementState);return null}isProviderEnabled(a){return this.getProviderEnforcementState(a)==="ENFORCE"||this.getProviderEnforcementState(a)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
575VIDER")}}async function iE(i,a){return ha(i,"GET","/v2/recaptchaConfig",da(i,a))}/**
576 * @license
577 * Copyright 2020 Google LLC
578 *
579 * Licensed under the Apache License, Version 2.0 (the "License");
580 * you may not use this file except in compliance with the License.
581 * You may obtain a copy of the License at
582 *
583 *   http://www.apache.org/licenses/LICENSE-2.0
584 *
585 * Unless required by applicable law or agreed to in writing, software
586 * distributed under the License is distributed on an "AS IS" BASIS,
587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
588 * See the License for the specific language governing permissions and
589 * limitations under the License.
590 */async function lE(i,a){return ha(i,"POST","/v1/accounts:delete",a)}async function Cs(i,a){return ha(i,"POST","/v1/accounts:lookup",a)}/**
591 * @license
592 * Copyright 2020 Google LLC
593 *
594 * Licensed under the Apache License, Version 2.0 (the "License");
595 * you may not use this file except in compliance with the License.
596 * You may obtain a copy of the License at
597 *
598 *   http://www.apache.org/licenses/LICENSE-2.0
599 *
600 * Unless required by applicable law or agreed to in writing, software
601 * distributed under the License is distributed on an "AS IS" BASIS,
602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
603 * See the License for the specific language governing permissions and
604 * limitations under the License.
605 */function Ul(i){if(i)try{const a=new Date(Number(i));if(!isNaN(a.getTime()))return a.toUTCString()}catch{}}async function rE(i,a=!1){const r=Wt(i),s=await r.getIdToken(a),c=ef(s);F(c&&c.exp&&c.auth_time&&c.iat,r.auth,"internal-error");const f=typeof c.firebase=="object"?c.firebase:void 0,h=f==null?void 0:f.sign_in_provider;return{claims:c,token:s,authTime:Ul(Tc(c.auth_time)),issuedAtTime:Ul(Tc(c.iat)),expirationTime:Ul(Tc(c.exp)),signInProvider:h||null,signInSecondFactor:(f==null?void 0:f.sign_in_second_factor)||null}}function Tc(i){return Number(i)*1e3}function ef(i){const[a,r,s]=i.split(".");if(a===void 0||r===void 0||s===void 0)return bs("JWT malformed, contained fewer than 3 sections"),null;try{const c=Lg(r);return c?JSON.parse(c):(bs("Failed to decode base64 JWT payload"),null)}catch(c){return bs("Caught error parsing JWT payload as JSON",c==null?void 0:c.toString()),null}}function Gp(i){const a=ef(i);return F(a,"internal-error"),F(typeof a.exp<"u","internal-error"),F(typeof a.iat<"u","internal-error"),Number(a.exp)-Number(a.iat)}/**
606 * @license
607 * Copyright 2020 Google LLC
608 *
609 * Licensed under the Apache License, Version 2.0 (the "License");
610 * you may not use this file except in compliance with the License.
611 * You may obtain a copy of the License at
612 *
613 *   http://www.apache.org/licenses/LICENSE-2.0
614 *
615 * Unless required by applicable law or agreed to in writing, software
616 * distributed under the License is distributed on an "AS IS" BASIS,
617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
618 * See the License for the specific language governing permissions and
619 * limitations under the License.
620 */async function jl(i,a,r=!1){if(r)return a;try{return await a}catch(s){throw s instanceof Ft&&sE(s)&&i.auth.currentUser===i&&await i.auth.signOut(),s}}function sE({code:i}){return i==="auth/user-disabled"||i==="auth/user-token-expired"}/**
621 * @license
622 * Copyright 2020 Google LLC
623 *
624 * Licensed under the Apache License, Version 2.0 (the "License");
625 * you may not use this file except in compliance with the License.
626 * You may obtain a copy of the License at
627 *
628 *   http://www.apache.org/licenses/LICENSE-2.0
629 *
630 * Unless required by applicable law or agreed to in writing, software
631 * distributed under the License is distributed on an "AS IS" BASIS,
632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
633 * See the License for the specific language governing permissions and
634 * limitations under the License.
635 */class oE{constructor(a){this.user=a,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(a){var r;if(a){const s=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),s}else{this.errorBackoff=3e4;const c=((r=this.user.stsTokenManager.expirationTime)!==null&&r!==void 0?r:0)-Date.now()-3e5;return Math.max(0,c)}}schedule(a=!1){if(!this.isRunning)return;const r=this.getInterval(a);this.timerId=setTimeout(async()=>{await this.iteration()},r)}async iteration(){try{await this.user.getIdToken(!0)}catch(a){(a==null?void 0:a.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
636 * @license
637 * Copyright 2020 Google LLC
638 *
639 * Licensed under the Apache License, Version 2.0 (the "License");
640 * you may not use this file except in compliance with the License.
641 * You may obtain a copy of the License at
642 *
643 *   http://www.apache.org/licenses/LICENSE-2.0
644 *
645 * Unless required by applicable law or agreed to in writing, software
646 * distributed under the License is distributed on an "AS IS" BASIS,
647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
648 * See the License for the specific language governing permissions and
649 * limitations under the License.
650 */class Lc{constructor(a,r){this.createdAt=a,this.lastLoginAt=r,this._initializeTime()}_initializeTime(){this.lastSignInTime=Ul(this.lastLoginAt),this.creationTime=Ul(this.createdAt)}_copy(a){this.createdAt=a.createdAt,this.lastLoginAt=a.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
651 * @license
652 * Copyright 2019 Google LLC
653 *
654 * Licensed under the Apache License, Version 2.0 (the "License");
655 * you may not use this file except in compliance with the License.
656 * You may obtain a copy of the License at
657 *
658 *   http://www.apache.org/licenses/LICENSE-2.0
659 *
660 * Unless required by applicable law or agreed to in writing, software
661 * distributed under the License is distributed on an "AS IS" BASIS,
662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
663 * See the License for the specific language governing permissions and
664 * limitations under the License.
665 */async function xs(i){var a;const r=i.auth,s=await i.getIdToken(),c=await jl(i,Cs(r,{idToken:s}));F(c==null?void 0:c.users.length,r,"internal-error");const f=c.users[0];i._notifyReloadListener(f);const h=!((a=f.providerUserInfo)===null||a===void 0)&&a.length?ty(f.providerUserInfo):[],y=cE(i.providerData,h),m=i.isAnonymous,g=!(i.email&&f.passwordHash)&&!(y!=null&&y.length),T=m?g:!1,A={uid:f.localId,displayName:f.displayName||null,photoURL:f.photoUrl||null,email:f.email||null,emailVerified:f.emailVerified||!1,phoneNumber:f.phoneNumber||null,tenantId:f.tenantId||null,providerData:y,metadata:new Lc(f.createdAt,f.lastLoginAt),isAnonymous:T};Object.assign(i,A)}async function uE(i){const a=Wt(i);await xs(a),await a.auth._persistUserIfCurrent(a),a.auth._notifyListenersIfCurrent(a)}function cE(i,a){return[...i.filter(s=>!a.some(c=>c.providerId===s.providerId)),...a]}function ty(i){return i.map(a=>{var{providerId:r}=a,s=Jc(a,["providerId"]);return{providerId:r,uid:s.rawId||"",displayName:s.displayName||null,email:s.email||null,phoneNumber:s.phoneNumber||null,photoURL:s.photoUrl||null}})}/**
666 * @license
667 * Copyright 2020 Google LLC
668 *
669 * Licensed under the Apache License, Version 2.0 (the "License");
670 * you may not use this file except in compliance with the License.
671 * You may obtain a copy of the License at
672 *
673 *   http://www.apache.org/licenses/LICENSE-2.0
674 *
675 * Unless required by applicable law or agreed to in writing, software
676 * distributed under the License is distributed on an "AS IS" BASIS,
677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
678 * See the License for the specific language governing permissions and
679 * limitations under the License.
680 */async function fE(i,a){const r=await Wg(i,{},async()=>{const s=Gl({grant_type:"refresh_token",refresh_token:a}).slice(1),{tokenApiHost:c,apiKey:f}=i.config,h=await ey(i,c,"/v1/token",`key=${f}`),y=await i._getAdditionalHeaders();return y["Content-Type"]="application/x-www-form-urlencoded",Fg.fetch()(h,{method:"POST",headers:y,body:s})});return{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token}}async function dE(i,a){return ha(i,"POST","/v2/accounts:revokeToken",da(i,a))}/**
681 * @license
682 * Copyright 2020 Google LLC
683 *
684 * Licensed under the Apache License, Version 2.0 (the "License");
685 * you may not use this file except in compliance with the License.
686 * You may obtain a copy of the License at
687 *
688 *   http://www.apache.org/licenses/LICENSE-2.0
689 *
690 * Unless required by applicable law or agreed to in writing, software
691 * distributed under the License is distributed on an "AS IS" BASIS,
692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
693 * See the License for the specific language governing permissions and
694 * limitations under the License.
695 */class Ci{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}
695updateFromServerResponse(a){F(a.idToken,"internal-error"),F(typeof a.idToken<"u","internal-error"),F(typeof a.refreshToken<"u","internal-error");const r="expiresIn"in a&&typeof a.expiresIn<"u"?Number(a.expiresIn):Gp(a.idToken);this.updateTokensAndExpiration(a.idToken,a.refreshToken,r)}updateFromIdToken(a){F(a.length!==0,"internal-error");const r=Gp(a);this.updateTokensAndExpiration(a,null,r)}async getToken(a,r=!1){return!r&&this.accessToken&&!this.isExpired?this.accessToken:(F(this.refreshToken,a,"user-token-expired"),this.refreshToken?(await this.refresh(a,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(a,r){const{accessToken:s,refreshToken:c,expiresIn:f}=await fE(a,r);this.updateTokensAndExpiration(s,c,Number(f))}updateTokensAndExpiration(a,r,s){this.refreshToken=r||null,this.accessToken=a||null,this.expirationTime=Date.now()+s*1e3}static fromJSON(a,r){const{refreshToken:s,accessToken:c,expirationTime:f}=r,h=new Ci;return s&&(F(typeof s=="string","internal-error",{appName:a}),h.refreshToken=s),c&&(F(typeof c=="string","internal-error",{appName:a}),h.accessToken=c),f&&(F(typeof f=="number","internal-error",{appName:a}),h.expirationTime=f),h}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(a){this.accessToken=a.accessToken,this.refreshToken=a.refreshToken,this.expirationTime=a.expirationTime}_clone(){return Object.assign(new Ci,this.toJSON())}_performRefresh(){return Sn("not implemented")}}/**
696 * @license
697 * Copyright 2020 Google LLC
698 *
699 * Licensed under the Apache License, Version 2.0 (the "License");
700 * you may not use this file except in compliance with the License.
701 * You may obtain a copy of the License at
702 *
703 *   http://www.apache.org/licenses/LICENSE-2.0
704 *
705 * Unless required by applicable law or agreed to in writing, software
706 * distributed under the License is distributed on an "AS IS" BASIS,
707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
708 * See the License for the specific language governing permissions and
709 * limitations under the License.
710 */function ea(i,a){F(typeof i=="string"||typeof i>"u","internal-error",{appName:a})}class jt{constructor(a){var{uid:r,auth:s,stsTokenManager:c}=a,f=Jc(a,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new oE(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=r,this.auth=s,this.stsTokenManager=c,this.accessToken=c.accessToken,this.displayName=f.displayName||null,this.email=f.email||null,this.emailVerified=f.emailVerified||!1,this.phoneNumber=f.phoneNumber||null,this.photoURL=f.photoURL||null,this.isAnonymous=f.isAnonymous||!1,this.tenantId=f.tenantId||null,this.providerData=f.providerData?[...f.providerData]:[],this.metadata=new Lc(f.createdAt||void 0,f.lastLoginAt||void 0)}async getIdToken(a){const r=await jl(this,this.stsTokenManager.getToken(this.auth,a));return F(r,this.auth,"internal-error"),this.accessToken!==r&&(this.accessToken=r,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),r}getIdTokenResult(a){return rE(this,a)}reload(){return uE(this)}_assign(a){this!==a&&(F(this.uid===a.uid,this.auth,"internal-error"),this.displayName=a.displayName,this.photoURL=a.photoURL,this.email=a.email,this.emailVerified=a.emailVerified,this.phoneNumber=a.phoneNumber,this.isAnonymous=a.isAnonymous,this.tenantId=a.tenantId,this.providerData=a.providerData.map(r=>Object.assign({},r)),this.metadata._copy(a.metadata),this.stsTokenManager._assign(a.stsTokenManager))}_clone(a){const r=new jt(Object.assign(Object.assign({},this),{auth:a,stsTokenManager:this.stsTokenManager._clone()}));return r.metadata._copy(this.metadata),r}_onReload(a){F(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=a,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(a){this.reloadListener?this.reloadListener(a):this.reloadUserInfo=a}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(a,r=!1){let s=!1;a.idToken&&a.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(a
710),s=!0),r&&await xs(this),await this.auth._persistUserIfCurrent(this),s&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Lt(this.auth.app))return Promise.reject(wn(this.auth));const a=await this.getIdToken();return await jl(this,lE(this.auth,{idToken:a})),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(a=>Object.assign({},a)),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(a,r){var s,c,f,h,y,m,g,T;const A=(s=r.displayName)!==null&&s!==void 0?s:void 0,S=(c=r.email)!==null&&c!==void 0?c:void 0,L=(f=r.phoneNumber)!==null&&f!==void 0?f:void 0,N=(h=r.photoURL)!==null&&h!==void 0?h:void 0,H=(y=r.tenantId)!==null&&y!==void 0?y:void 0,B=(m=r._redirectEventId)!==null&&m!==void 0?m:void 0,k=(g=r.createdAt)!==null&&g!==void 0?g:void 0,q=(T=r.lastLoginAt)!==null&&T!==void 0?T:void 0,{uid:Y,emailVerified:J,isAnonymous:de,providerData:ye,stsTokenManager:V}=r;F(Y&&V,a,"internal-error");const be=Ci.fromJSON(this.name,V);F(typeof Y=="string",a,"internal-error"),ea(A,a.name),ea(S,a.name),F(typeof J=="boolean",a,"internal-error"),F(typeof de=="boolean",a,"internal-error"),ea(L,a.name),ea(N,a.name),ea(H,a.name),ea(B,a.name),ea(k,a.name),ea(q,a.name);const ie=new jt({uid:Y,auth:a,email:S,emailVerified:J,displayName:A,isAnonymous:de,photoURL:N,phoneNumber:L,tenantId:H,stsTokenManager:be,createdAt:k,lastLoginAt:q});return ye&&Array.isArray(ye)&&(ie.providerData=ye.map(le=>Object.assign({},le))),B&&(ie._redirectEventId=B),ie}static async _fromIdTokenResponse(a,r,s=!1){const c=new Ci;c.updateFromServerResponse(r);const f=new jt({uid:r.localId,auth:a,stsTokenManager:c,isAnonymous:s});return await xs(f),f}static async _fromGetAccountInfoResponse(a,r,s){const c=r.users[0];F(c.localId!==void 0,"internal-error");const f=c.providerUserInfo!==void 0?ty(c.providerUserInfo):[],h=!(c.email&&c.passwordHash)&&!(f!=null&&f.length),y=new Ci;y.updateFromIdToken(s);const m=new jt({uid:c.localId,auth:a,stsTokenManager:y,isAnonymous:h}),g={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:f,metadata:new Lc(c.createdAt,c.lastLoginAt),isAnonymous:!(c.email&&c.passwordHash)&&!(f!=null&&f.length)};return Object.assign(m,g),m}}/**
711 * @license
712 * Copyright 2020 Google LLC
713 *
714 * Licensed under the Apache License, Version 2.0 (the "License");
715 * you may not use this file except in compliance with the License.
716 * You may obtain a copy of the License at
717 *
718 *   http://www.apache.org/licenses/LICENSE-2.0
719 *
720 * Unless required by applicable law or agreed to in writing, software
721 * distributed under the License is distributed on an "AS IS" BASIS,
722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
723 * See the License for the specific language governing permissions and
724 * limitations under the License.
725 */const Pp=new Map;function _n(i){Rn(i instanceof Function,"Expected a class definition");let a=Pp.get(i);return a?(Rn(a instanceof i,"Instance stored in cache mismatched with class"),a):(a=new i,Pp.set(i,a),a)}/**
726 * @license
727 * Copyright 2019 Google LLC
728 *
729 * Licensed under the Apache License, Version 2.0 (the "License");
730 * you may not use this file except in compliance with the License.
731 * You may obtain a copy of the License at
732 *
733 *   http://www.apache.org/licenses/LICENSE-2.0
734 *
735 * Unless required by applicable law or agreed to in writing, software
736 * distributed under the License is distributed on an "AS IS" BASIS,
737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
738 * See the License for the specific language governing permissions and
739 * limitations under the License.
740 */class ny{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(a,r){this.storage[a]=r}async _get(a){const r=this.storage[a];return r===void 0?null:r}async _remove(a){delete this.storage[a]}_addListener(a,r){}_removeListener(a,r){}}ny.type="NONE";const Yp=ny;/**
741 * @license
742 * Copyright 2019 Google LLC
743 *
744 * Licensed under the Apache License, Version 2.0 (the "License");
745 * you may not use this file except in compliance with the License.
746 * You may obtain a copy of the License at
747 *
748 *   http://www.apache.org/licenses/LICENSE-2.0
749 *
750 * Unless required by applicable law or agreed to in writing, software
751 * distributed under the License is distributed on an "AS IS" BASIS,
752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
753 * See the License for the specific language governing permissions and
754 * limitations under the License.
755 */function Ss(i,a,r){return`firebase:${i}:${a}:${r}`}class xi{constructor(a,r,s){this.persistence=a,this.auth=r,this.userKey=s;const{config:c,name:f}=this.auth;this.fullUserKey=Ss(this.userKey,c.apiKey,f),this.fullPersistenceKey=Ss("persistence",c.apiKey,f),this.boundEventHandler=r._onStorageEvent.bind(r),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(a){return this.persistence._set(this.fullUserKey,a.toJSON())}async getCurrentUser(){const a=await this.persistence._get(this.fullUserKey);if(!a)return null;if(typeof a=="string"){const r=await Cs(this.auth,{idToken:a}).catch(()=>{});return r?jt._fromGetAccountInfoResponse(this.auth,r,a):null}return jt._fromJSON(this.auth,a)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(a){if(this.persistence===a)return;const r=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=a,r)return this.setCurrentUser(r)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(a,r,s="authUser"){if(!r.length)return new xi(_n(Yp),a,s);const c=(await Promise.all(r.map(async g=>{if(await g._isAvailable())return g}))).filter(g=>g);let f=c[0]||_n(Yp);const h=Ss(s,a.config.apiKey,a.name);let y=null;for(const g of r)try{const T=await g._get(h);if(T){let A;if(typeof T=="string"){const S=await Cs(a,{idToken:T}).catch(()=>{});if(!S)break;A=await jt._fromGetAccountInfoResponse(a,S,T)}else A=jt._fromJSON(a,T);g!==f&&(y=A),f=g;break}}catch{}const m=c.filter(g=>g._shouldAllowMigration);return!f._shouldAllowMigration||!m.length?new xi(f,a,s):(f=m[0],y&&await f._set(h,y.toJSON()),await Promise.all(r.map(async g=>{if(g!==f)try{await g._remove(h)}catch{}})),new xi(f,a,s))}}/**
756 * @license
757 * Copyright 2020 Google LLC
758 *
759 * Licensed under the Apache License, Version 2.0 (the "License");
760 * you may not use this file except in compliance with the License.
761 * You may obtain a copy of the License at
762 *
763 *   http://www.apache.org/licenses/LICENSE-2.0
764 *
765 * Unless required by applicable law or agreed to in writing, software
766 * distributed under the License is distributed on an "AS IS" BASIS,
767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
768 * See the License for the specific language governing permissions and
769 * limitations under the License.
770 */function Xp(i){const a=i.toLowerCase();if(a.includes("opera/")||a.includes("opr/")||a.includes("opios/"))return"Opera";if(ry(a))return"IEMobile";if(a.includes("msie")||a.includes("trident/"))return"IE";if(a.includes("edge/"))return"Edge";if(ay(a))return"Firefox";if(a.includes("silk/"))return"Silk";if(oy(a))return"Blackberry";if(uy(a))return"Webos";if(iy(a))return"Safari";if((a.includes("chrome/")||ly(a))&&!a.includes("edge/"))return"Chrome";if(sy(a))return"Android";{const r=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,s=i.match(r);if((s==null?void 0:s.length)===2)return s[1]}return"Other"}function ay(i=tt()){return/firefox\//i.test(i)}function iy(i=tt()){const a=i.toLowerCase();return a.includes("safari/")&&!a.includes("chrome/")&&!a.includes("crios/")&&!a.includes("android")}function ly(i=tt()){return/crios\//i.test(i)}function ry(i=tt()){return/iemobile/i.test(i)}function sy(i=tt()){return/android/i.test(i)}function oy(i=tt()){return/blackberry/i.test(i)}function uy(i=tt()){return/webos/i.test(i)}function tf(i=tt()){return/iphone|ipad|ipod/i.test(i)||/macintosh/i.test(i)&&/mobile/i.test(i)}function hE(i=tt()){var a;return tf(i)&&!!(!((a=window.navigator)===null||a===void 0)&&a.standalone)}function mE(){return AS()&&document.documentMode===10}function cy(i=tt()){return tf(i)||sy(i)||uy(i)||oy(i)||/windows phone/i.test(i)||ry(i)}/**
771 * @license
772 * Copyright 2020 Google LLC
773 *
774 * Licensed under the Apache License, Version 2.0 (the "License");
775 * you may not use this file except in compliance with the License.
776 * You may obtain a copy of the License at
777 *
778 *   http://www.apache.org/licenses/LICENSE-2.0
779 *
780 * Unless required by applicable law or agreed to in writing, software
781 * distributed under the License is distributed on an "AS IS" BASIS,
782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
783 * See the License for the specific language governing permissions and
784 * limitations under the License.
785 */function fy(i,a=[]){let r;switch(i){case"Browser":r=Xp(tt());break;case"Worker":r=`${Xp(tt())}-${i}`;break;default:r=i}const s=a.length?a.join(","):"FirebaseCore-web";return`${r}/JsCore/${Pl}/${s}`}/**
786 * @license
787 * Copyright 2022 Google LLC
788 *
789 * Licensed under the Apache License, Version 2.0 (the "License");
790 * you may not use this file except in compliance with the License.
791 * You may obtain a copy of the License at
792 *
793 *   http://www.apache.org/licenses/LICENSE-2.0
794 *
795 * Unless required by applicable law or agreed to in writing, software
796 * distributed under the License is distributed on an "AS IS" BASIS,
797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
798 * See the License for the specific language governing permissions and
799 * limitations under the License.
800 */class pE{constructor(a){this.auth=a,this.queue=[]}pushCallback(a,r){const s=f=>new Promise((h,y)=>{try{const m=a(f);h(m)}catch(m){y(m)}});s.onAbort=r,this.queue.push(s);const c=this.queue.length-1;return()=>{this.queue[c]=()=>Promise.resolve()}}async runMiddleware(a){if(this.auth.currentUser===a)return;const r=[];try{for(const s of this.queue)await s(a),s.onAbort&&r.push(s.onAbort)}catch(s){r.reverse();for(const c of r)try{c()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:s==null?void 0:s.message})}}}/**
801 * @license
802 * Copyright 2023 Google LLC
803 *
804 * Licensed under the Apache License, Version 2.0 (the "License");
805 * you may not use this file except in compliance with the License.
806 * You may obtain a copy of the License at
807 *
808 *   http://www.apache.org/licenses/LICENSE-2.0
809 *
810 * Unless required by applicable law or agreed to in writing, software
811 * distributed under the License is distributed on an "AS IS" BASIS,
812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
813 * See the License for the specific language governing permissions and
814 * limitations under the License.
815 */async function gE(i,a={}){return ha(i,"GET","/v2/passwordPolicy",da(i,a))}/**
816 * @license
817 * Copyright 2023 Google LLC
818 *
819 * Licensed under the Apache License, Version 2.0 (the "License");
820 * you may not use this file except in compliance with the License.
821 * You may obtain a copy of the License at
822 *
823 *   http://www.apache.org/licenses/LICENSE-2.0
824 *
825 * Unless required by applicable law or agreed to in writing, software
826 * distributed under the License is distributed on an "AS IS" BASIS,
827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
828 * See the License for the specific language governing permissions and
829 * limitations under the License.
830 */const yE=6;class vE{constructor(a){var r,s,c,f;const h=a.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(r=h.minPasswordLength)!==null&&r!==void 0?r:yE,h.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=h.maxPasswordLength),h.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=h.containsLowercaseCharacter),h.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=h.containsUppercaseCharacter),h.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=h.containsNumericCharacter),h.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=h.containsNonAlphanumericCharacter),this.enforcementState=a.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(c=(s=a.allowedNonAlphanumericCharacters)===null||s===void 0?void 0:s.join(""))!==null&&c!==void 0?c:"",this.forceUpgradeOnSignin=(f=a.force
830UpgradeOnSignin)!==null&&f!==void 0?f:!1,this.schemaVersion=a.schemaVersion}validatePassword(a){var r,s,c,f,h,y;const m={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(a,m),this.validatePasswordCharacterOptions(a,m),m.isValid&&(m.isValid=(r=m.meetsMinPasswordLength)!==null&&r!==void 0?r:!0),m.isValid&&(m.isValid=(s=m.meetsMaxPasswordLength)!==null&&s!==void 0?s:!0),m.isValid&&(m.isValid=(c=m.containsLowercaseLetter)!==null&&c!==void 0?c:!0),m.isValid&&(m.isValid=(f=m.containsUppercaseLetter)!==null&&f!==void 0?f:!0),m.isValid&&(m.isValid=(h=m.containsNumericCharacter)!==null&&h!==void 0?h:!0),m.isValid&&(m.isValid=(y=m.containsNonAlphanumericCharacter)!==null&&y!==void 0?y:!0),m}validatePasswordLengthOptions(a,r){const s=this.customStrengthOptions.minPasswordLength,c=this.customStrengthOptions.maxPasswordLength;s&&(r.meetsMinPasswordLength=a.length>=s),c&&(r.meetsMaxPasswordLength=a.length<=c)}validatePasswordCharacterOptions(a,r){this.updatePasswordCharacterOptionsStatuses(r,!1,!1,!1,!1);let s;for(let c=0;c<a.length;c++)s=a.charAt(c),this.updatePasswordCharacterOptionsStatuses(r,s>="a"&&s<="z",s>="A"&&s<="Z",s>="0"&&s<="9",this.allowedNonAlphanumericCharacters.includes(s))}updatePasswordCharacterOptionsStatuses(a,r,s,c,f){this.customStrengthOptions.containsLowercaseLetter&&(a.containsLowercaseLetter||(a.containsLowercaseLetter=r)),this.customStrengthOptions.containsUppercaseLetter&&(a.containsUppercaseLetter||(a.containsUppercaseLetter=s)),this.customStrengthOptions.containsNumericCharacter&&(a.containsNumericCharacter||(a.containsNumericCharacter=c)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(a.containsNonAlphanumericCharacter||(a.containsNonAlphanumericCharacter=f))}}/**
831 * @license
832 * Copyright 2020 Google LLC
833 *
834 * Licensed under the Apache License, Version 2.0 (the "License");
835 * you may not use this file except in compliance with the License.
836 * You may obtain a copy of the License at
837 *
838 *   http://www.apache.org/licenses/LICENSE-2.0
839 *
840 * Unless required by applicable law or agreed to in writing, software
841 * distributed under the License is distributed on an "AS IS" BASIS,
842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
843 * See the License for the specific language governing permissions and
844 * limitations under the License.
845 */class bE{constructor(a,r,s,c){this.app=a,this.heartbeatServiceProvider=r,this.appCheckServiceProvider=s,this.config=c,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Kp(this),this.idTokenSubscription=new Kp(this),this.beforeStateQueue=new pE(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=$g,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=a.name,this.clientVersion=c.sdkClientVersion,this._persistenceManagerAvailable=new Promise(f=>this._resolvePersistenceManagerAvailable=f)}_initializeWithPersistence(a,r){return r&&(this._popupRedirectResolver=_n(r)),this._initializationPromise=this.queue(async()=>{var s,c,f;if(!this._deleted&&(this.persistenceManager=await xi.create(this,a),(s=this._resolvePersistenceManagerAvailable)===null||s===void 0||s.call(this),!this._deleted)){if(!((c=this._popupRedirectResolver)===null||c===void 0)&&c._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(r),this.lastNotifiedUid=((f=this.currentUser)===null||f===void 0?void 0:f.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const a=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!a)){if(this.currentUser&&a&&this.currentUser.uid===a.uid){this._currentUser._assign(a),await this.currentUser.getIdToken();return}await this._updateCurrentUser(a,!0)}}async initializeCurrentUserFromIdToken(a){try{const r=await Cs(this,{idToken:a}),s=await jt._fromGetAccountInfoResponse(this,r,a);await this.directlySetCurrentUser(s)}catch(r){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",r),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(a){var r;if(Lt(this.app)){const h=this.app.settings.authIdToken;return h?new Promise(y=>
845{setTimeout(()=>this.initializeCurrentUserFromIdToken(h).then(y,y))}):this.directlySetCurrentUser(null)}const s=await this.assertedPersistence.getCurrentUser();let c=s,f=!1;if(a&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const h=(r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId,y=c==null?void 0:c._redirectEventId,m=await this.tryRedirectSignIn(a);(!h||h===y)&&(m!=null&&m.user)&&(c=m.user,f=!0)}if(!c)return this.directlySetCurrentUser(null);if(!c._redirectEventId){if(f)try{await this.beforeStateQueue.runMiddleware(c)}catch(h){c=s,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(h))}return c?this.reloadAndSetCurrentUserOrClear(c):this.directlySetCurrentUser(null)}return F(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===c._redirectEventId?this.directlySetCurrentUser(c):this.reloadAndSetCurrentUserOrClear(c)}async tryRedirectSignIn(a){let r=null;try{r=await this._popupRedirectResolver._completeRedirectFn(this,a,!0)}catch{await this._setRedirectUser(null)}return r}async reloadAndSetCurrentUserOrClear(a){try{await xs(a)}catch(r){if((r==null?void 0:r.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(a)}useDeviceLanguage(){this.languageCode=J_()}async _delete(){this._deleted=!0}async updateCurrentUser(a){if(Lt(this.app))return Promise.reject(wn(this));const r=a?Wt(a):null;return r&&F(r.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(r&&r._clone(this))}async _updateCurrentUser(a,r=!1){if(!this._deleted)return a&&F(this.tenantId===a.tenantId,this,"tenant-id-mismatch"),r||await this.beforeStateQueue.runMiddleware(a),this.queue(async()=>{await this.directlySetCurrentUser(a),this.notifyAuthListeners()})}async signOut(){return Lt(this.app)?Promise.reject(wn(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(a){return Lt(this.app)?Promise.reject(wn(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(_n(a))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(a){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const r=this._getPasswordPolicyInternal();return r.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):r.validatePassword(a)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const a=await gE(this),r=new vE(a);this.tenantId===null?this._projectPasswordPolicy=r:this._tenantPasswordPolicies[this.tenantId]=r}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(a){this._errorFactory=new Ha("auth","Firebase",a())}onAuthStateChanged(a,r,s){return this.registerStateListener(this.authStateSubscription,a,r,s)}beforeAuthStateChanged(a,r){return this.beforeStateQueue.pushCallback(a,r)}onIdTokenChanged(a,r,s){return this.registerStateListener(this.idTokenSubscription,a,r,s)}authStateReady(){return new Promise((a,r)=>{if(this.currentUser)a();else{const s=this.onAuthStateChanged(()=>{s(),a()},r)}})}async revokeAccessToken(a){if(this.currentUser){const r=await this.currentUser.getIdToken(),s={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:a,idToken:r};this.tenantId!=null&&(s.tenantId=this.tenantId),await dE(this,s)}}toJSON(){var a;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(a=this._currentUser)===null||a===void 0?void 0:a.toJSON()}}async _setRedirectUser(a,r){const s=await this.getOrInitRedirectPersistenceManager(r);return a===null?s.removeCurrentUser():s.setCurrentUser(a)}async getOrInitRedirectPersistenceManager(a){if(!this.redirectPersistenceManager){const r=a&&_n(a)||this._popupRedirectResolver;F(r,this,"argument-error"),this.redirectPersistenceManager=await xi.create(this,[_n(r._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(a){var r,s;return this._isInitialized&&await this.queue(async()=>{}),((r=this._currentUser)===null||r===void 0?void 0:r._redirectEventId)===a?this._currentUser:((s=this.redirectUser)===null||s===void 0?void 0:s._redirectEventId)===a?this.redirectUser:null}async _persistUserIfCurrent(a){if(a===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(a))}_notifyListenersIfCurrent(a){a===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 a,r;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const s=(r=(a=this.currentUser)===null||a===void 0?void 0:a.uid)!==null&&r!==void 0?r:null;this.lastNotifiedUid!==s&&(this.lastNotifiedUid=s,this.authStateSubscription.next(this.currentUser))}registerStateListener(a,r,s,c){if(this._deleted)return()=>{};const f=typeof r=="function"?r:r.next.bind(r);let h=!1;const y=this._isInitialized?Promise.resolve():this._initializationPromise;if(F(y,this,"internal-error"),y.then(()=>{h||f(this.currentUser)}),typeof r=="function"){const m=a.addObserver(r,s,c);return()=>{h=!0,m()}}else{const m=a.addObserver(r);return()=>{h=!0,m()}}}async directlySetCurrentUser(a){this.currentUser&&this.currentUser!==a&&this._currentUser._stopProactiveRefresh(),a&&this.isProactiveRefreshEnabled&&a._startProactiveRefresh(),this.currentUser=a,a?await this.assertedPersistence.setCurrentUser(a):await this.assertedPersistence.removeCurrentUser()}queue(a){return this.operations=this.operations.then(a,a),this.operations}get assertedPersistence(){return F(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(a){!a||this.frameworks.includes(a)||(this.frameworks.push(a),this.frameworks.sort(),this.clientVersion=fy(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var a;const r={"X-Client-Version":this.clientVersion};this.app.options.appId&&(r["X-Firebase-gmpid"]=this.app.options.appId);const s=await((a=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||a===void 0?void 0:a.getHeartbeatsHeader());s&&(r["X-Firebase-Client"]=s);const c=await this._getAppCheckToken();return c&&(r["X-Firebase-AppCheck"]=c),r}async _getAppCheckToken(){var a;if(Lt(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const r=await((a=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||a===void 0?void 0:a.getToken());return r!=null&&r.error&&Q_(`Error while retrieving App Check token: ${r.error}`),r==null?void 0:r.token}}function Ba(i){return Wt(i)}class Kp{constructor(a){this.auth=a,this.observer=null,this.addObserver=DS(r=>this.observer=r)}get next(){return F(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
846 * @license
847 * Copyright 2020 Google LLC
848 *
849 * Licensed under the Apache License, Version 2.0 (the "License");
850 * you may not use this file except in compliance with the License.
851 * You may obtain a copy of the License at
852 *
853 *   http://www.apache.org/licenses/LICENSE-2.0
854 *
855 * Unless required by applicable law or agreed to in writing, software
856 * distributed under the License is distributed on an "AS IS" BASIS,
857 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
858 * See the License for the specific language governing permissions and
859 * limitations under the License.
860 */let js={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function SE(i){js=i}function dy(i){return js.loadJS(i)}function _E(){return js.recaptchaEnterpriseScript}function EE(){return js.gapiScript}function TE(i){return`__${i}${Math.floor(Math.random()*1e6)}`}class wE{constructor(){this.enterprise=new AE}ready(a){a()}execute(a,r){return Promise.resolve("token")}render(a,r){return""}}class AE{ready(a){a()}execute(a,r){return Promise.resolve("token")}render(a,r){return""}}const CE="recaptcha-enterprise",hy="NO_RECAPTCHA";class xE{constructor(a){this.type=CE,this.auth=Ba(a)}async verify(a="verify",r=!1){async function s(f){if(!r){if(f.tenantId==null&&f._agentRecaptchaConfig!=null)return f._agentRecaptchaConfig.siteKey;if(f.tenantId!=null&&f._tenantRecaptchaConfigs[f.tenantId]!==void 0)return f._tenantRecaptchaConfigs[f.tenantId].siteKey}return new Promise(async(h,y)=>{iE(f,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(m=>{if(m.recaptchaKey===void 0)y(new Error("recaptcha Enterprise site key undefined"));else{const g=new aE(m);return f.tenantId==null?f._agentRecaptchaConfig=g:f._tenantRecaptchaConfigs[f.tenantId]=g,h(g.siteKey)}}).catch(m=>{y(m)})})}function c(f,h,y){const m=window.grecaptcha;Vp(m)?m.enterprise.ready(()=>{m.enterprise.execute(f,{action:a}).then(g=>{h(g)}).catch(()=>{h(hy)})}):y(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new wE().execute("siteKey",{action:"verify"}):new Promise((f,h)=>{s(this.auth).then(y=>{if(!r&&Vp(window.grecaptcha))c(y,f,h);else{if(typeof window>"u"){h(new Error("RecaptchaVerifier is only supported in browser"));return}let m=_E();m.length!==0&&(m+=y),dy(m).then(()=>{c(y,f,h)}).catch(g=>{h(g)})}}).catch(y=>{h(y)})})}}async function Qp(i,a,r,s=!1,c=!1){const f=new xE(i);let h;if(c)h=hy;else try{h=await f.verify(r)}catch{h=await f.verify(r,!0)}const y=Object.assign({},a);if(r==="mfaSmsEnrollment"||r==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in y){const m=y.phoneEnrollmentInfo.phoneNumber,g=y.phoneEnrollmentInfo.recaptchaToken;Object.assign(y,{phoneEnrollmentInfo:{phoneNumber:m,recaptchaToken:g,captchaResponse:h,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in y){const m=y.phoneSignInInfo.recaptchaToken;Object.assign(y,{phoneSignInInfo:{recaptchaToken:m,captchaResponse:h,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return y}return s?Object.assign(y,{captchaResp:h}):Object.assign(y,{captchaResponse:h}),Object.assign(y,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(y,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),y}async function Zp(i,a,r,s,c){var f;if(!((f=i._getRecaptchaConfig())===null||f===void 0)&&f.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const h=await Qp(i,a,r,r==="getOobCode");return s(i,h)}else return s(i,a).catch(async h=>{if(h.code==="auth/missing-recaptcha-token"){console.log(`${r} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const y=await Qp(i,a,r,r==="getOobCode");return s(i,y)}else return Promise.reject(h)})}/**
861 * @license
862 * Copyright 2020 Google LLC
863 *
864 * Licensed under the Apache License, Version 2.0 (the "License");
865 * you may not use this file except in compliance with the License.
866 * You may obtain a copy of the License at
867 *
868 *   http://www.apache.org/licenses/LICENSE-2.0
869 *
870 * Unless required by applicable law or agreed to in writing, software
871 * distributed under the License is distributed on an "AS IS" BASIS,
872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
873 * See the License for the specific language governing permissions and
874 * limitations under the License.
875 */function RE(i,a){const r=Di(i,"auth");if(r.isInitialized()){const c=r.getImmediate(),f=r.getOptions();if(za(f,a??{}))return c;Ht(c,"already-initialized")}return r.initialize({options:a})}function OE(i,a){const r=(a==null?void 0:a.persistence)||[],s=(Array.isArray(r)?r:[r]).map(_n);a!=null&&a.errorMap&&i._updateErrorMap(a.errorMap),i._initializeWithPersistence(s,a==null?void 0:a.popupRedirectResolver)}function NE(i,a,r){const s=Ba(i);F(/^https?:\/\//.test(a),s,"invalid-emulator-scheme");const c=!1,f=my(a),{host:h,port:y}=DE(a),m=y===null?"":`:${y}`,g={url:`${f}//${h}${m}/`},T=Object.freeze({host:h,port:y,protocol:f.replace(":",""),options:Object.freeze({disableWarnings:c})});
875if(!s._canInitEmulator){F(s.config.emulator&&s.emulatorConfig,s,"emulator-config-failed"),F(za(g,s.config.emulator)&&za(T,s.emulatorConfig),s,"emulator-config-failed");return}s.config.emulator=g,s.emulatorConfig=T,s.settings.appVerificationDisabledForTesting=!0,Qc(h)?(vS(`${f}//${h}${m}`),_S("Auth",!0)):ME()}function my(i){const a=i.indexOf(":");return a<0?"":i.substr(0,a+1)}function DE(i){const a=my(i),r=/(\/\/)?([^?#/]+)/.exec(i.substr(a.length));if(!r)return{host:"",port:null};const s=r[2].split("@").pop()||"",c=/^(\[[^\]]+\])(:|$)/.exec(s);if(c){const f=c[1];return{host:f,port:$p(s.substr(f.length+1))}}else{const[f,h]=s.split(":");return{host:f,port:$p(h)}}}function $p(i){if(!i)return null;const a=Number(i);return isNaN(a)?null:a}function ME(){function i(){const a=document.createElement("p"),r=a.style;a.innerText="Running in emulator mode. Do not use with production credentials.",r.position="fixed",r.width="100%",r.backgroundColor="#ffffff",r.border=".1em solid #000000",r.color="#b50000",r.bottom="0px",r.left="0px",r.margin="0px",r.zIndex="10000",r.textAlign="center",a.classList.add("firebase-emulator-warning"),document.body.appendChild(a)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",i):i())}/**
876 * @license
877 * Copyright 2020 Google LLC
878 *
879 * Licensed under the Apache License, Version 2.0 (the "License");
880 * you may not use this file except in compliance with the License.
881 * You may obtain a copy of the License at
882 *
883 *   http://www.apache.org/licenses/LICENSE-2.0
884 *
885 * Unless required by applicable law or agreed to in writing, software
886 * distributed under the License is distributed on an "AS IS" BASIS,
887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
888 * See the License for the specific language governing permissions and
889 * limitations under the License.
890 */class nf{constructor(a,r){this.providerId=a,this.signInMethod=r}toJSON(){return Sn("not implemented")}_getIdTokenResponse(a){return Sn("not implemented")}_linkToIdToken(a,r){return Sn("not implemented")}_getReauthenticationResolver(a){return Sn("not implemented")}}async function UE(i,a){return ha(i,"POST","/v1/accounts:signUp",a)}/**
891 * @license
892 * Copyright 2020 Google LLC
893 *
894 * Licensed under the Apache License, Version 2.0 (the "License");
895 * you may not use this file except in compliance with the License.
896 * You may obtain a copy of the License at
897 *
898 *   http://www.apache.org/licenses/LICENSE-2.0
899 *
900 * Unless required by applicable law or agreed to in writing, software
901 * distributed under the License is distributed on an "AS IS" BASIS,
902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
903 * See the License for the specific language governing permissions and
904 * limitations under the License.
905 */async function IE(i,a){return Xl(i,"POST","/v1/accounts:signInWithPassword",da(i,a))}/**
906 * @license
907 * Copyright 2020 Google LLC
908 *
909 * Licensed under the Apache License, Version 2.0 (the "License");
910 * you may not use this file except in compliance with the License.
911 * You may obtain a copy of the License at
912 *
913 *   http://www.apache.org/licenses/LICENSE-2.0
914 *
915 * Unless required by applicable law or agreed to in writing, software
916 * distributed under the License is distributed on an "AS IS" BASIS,
917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
918 * See the License for the specific language governing permissions and
919 * limitations under the License.
920 */async function zE(i,a){return Xl(i,"POST","/v1/accounts:signInWithEmailLink",da(i,a))}async function LE(i,a){return Xl(i,"POST","/v1/accounts:signInWithEmailLink",da(i,a))}/**
921 * @license
922 * Copyright 2020 Google LLC
923 *
924 * Licensed under the Apache License, Version 2.0 (the "License");
925 * you may not use this file except in compliance with the License.
926 * You may obtain a copy of the License at
927 *
928 *   http://www.apache.org/licenses/LICENSE-2.0
929 *
930 * Unless required by applicable law or agreed to in writing, softw
930are
931 * distributed under the License is distributed on an "AS IS" BASIS,
932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
933 * See the License for the specific language governing permissions and
934 * limitations under the License.
935 */class kl extends nf{constructor(a,r,s,c=null){super("password",s),this._email=a,this._password=r,this._tenantId=c}static _fromEmailAndPassword(a,r){return new kl(a,r,"password")}static _fromEmailAndCode(a,r,s=null){return new kl(a,r,"emailLink",s)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(a){const r=typeof a=="string"?JSON.parse(a):a;if(r!=null&&r.email&&(r!=null&&r.password)){if(r.signInMethod==="password")return this._fromEmailAndPassword(r.email,r.password);if(r.signInMethod==="emailLink")return this._fromEmailAndCode(r.email,r.password,r.tenantId)}return null}async _getIdTokenResponse(a){switch(this.signInMethod){case"password":const r={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Zp(a,r,"signInWithPassword",IE);case"emailLink":return zE(a,{email:this._email,oobCode:this._password});default:Ht(a,"internal-error")}}async _linkToIdToken(a,r){switch(this.signInMethod){case"password":const s={idToken:r,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Zp(a,s,"signUpPassword",UE);case"emailLink":return LE(a,{idToken:r,email:this._email,oobCode:this._password});default:Ht(a,"internal-error")}}_getReauthenticationResolver(a){return this._getIdTokenResponse(a)}}/**
936 * @license
937 * Copyright 2020 Google LLC
938 *
939 * Licensed under the Apache License, Version 2.0 (the "License");
940 * you may not use this file except in compliance with the License.
941 * You may obtain a copy of the License at
942 *
943 *   http://www.apache.org/licenses/LICENSE-2.0
944 *
945 * Unless required by applicable law or agreed to in writing, software
946 * distributed under the License is distributed on an "AS IS" BASIS,
947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
948 * See the License for the specific language governing permissions and
949 * limitations under the License.
950 */async function Ri(i,a){return Xl(i,"POST","/v1/accounts:signInWithIdp",da(i,a))}/**
951 * @license
952 * Copyright 2020 Google LLC
953 *
954 * Licensed under the Apache License, Version 2.0 (the "License");
955 * you may not use this file except in compliance with the License.
956 * You may obtain a copy of the License at
957 *
958 *   http://www.apache.org/licenses/LICENSE-2.0
959 *
960 * Unless required by applicable law or agreed to in writing, software
961 * distributed under the License is distributed on an "AS IS" BASIS,
962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
963 * See the License for the specific language governing permissions and
964 * limitations under the License.
965 */const jE="http://localhost";class La extends nf{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(a){const r=new La(a.providerId,a.signInMethod);return a.idToken||a.accessToken?(a.idToken&&(r.idToken=a.idToken),a.accessToken&&(r.accessToken=a.accessToken),a.nonce&&!a.pendingToken&&(r.nonce=a.nonce),a.pendingToken&&(r.pendingToken=a.pendingToken)):a.oauthToken&&a.oauthTokenSecret?(r.accessToken=a.oauthToken,r.secret=a.oauthTokenSecret):Ht("argument-error"),r}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
965once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(a){const r=typeof a=="string"?JSON.parse(a):a,{providerId:s,signInMethod:c}=r,f=Jc(r,["providerId","signInMethod"]);if(!s||!c)return null;const h=new La(s,c);return h.idToken=f.idToken||void 0,h.accessToken=f.accessToken||void 0,h.secret=f.secret,h.nonce=f.nonce,h.pendingToken=f.pendingToken||null,h}_getIdTokenResponse(a){const r=this.buildRequest();return Ri(a,r)}_linkToIdToken(a,r){const s=this.buildRequest();return s.idToken=r,Ri(a,s)}_getReauthenticationResolver(a){const r=this.buildRequest();return r.autoCreate=!1,Ri(a,r)}buildRequest(){const a={requestUri:jE,returnSecureToken:!0};if(this.pendingToken)a.pendingToken=this.pendingToken;else{const r={};this.idToken&&(r.id_token=this.idToken),this.accessToken&&(r.access_token=this.accessToken),this.secret&&(r.oauth_token_secret=this.secret),r.providerId=this.providerId,this.nonce&&!this.pendingToken&&(r.nonce=this.nonce),a.postBody=Gl(r)}return a}}/**
966 * @license
967 * Copyright 2020 Google LLC
968 *
969 * Licensed under the Apache License, Version 2.0 (the "License");
970 * you may not use this file except in compliance with the License.
971 * You may obtain a copy of the License at
972 *
973 *   http://www.apache.org/licenses/LICENSE-2.0
974 *
975 * Unless required by applicable law or agreed to in writing, software
976 * distributed under the License is distributed on an "AS IS" BASIS,
977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
978 * See the License for the specific language governing permissions and
979 * limitations under the License.
980 */function kE(i){switch(i){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}}function HE(i){const a=Nl(Dl(i)).link,r=a?Nl(Dl(a)).deep_link_id:null,s=Nl(Dl(i)).deep_link_id;return(s?Nl(Dl(s)).link:null)||s||r||a||i}class af{constructor(a){var r,s,c,f,h,y;const m=Nl(Dl(a)),g=(r=m.apiKey)!==null&&r!==void 0?r:null,T=(s=m.oobCode)!==null&&s!==void 0?s:null,A=kE((c=m.mode)!==null&&c!==void 0?c:null);F(g&&T&&A,"argument-error"),this.apiKey=g,this.operation=A,this.code=T,this.continueUrl=(f=m.continueUrl)!==null&&f!==void 0?f:null,this.languageCode=(h=m.lang)!==null&&h!==void 0?h:null,this.tenantId=(y=m.tenantId)!==null&&y!==void 0?y:null}static parseLink(a){const r=HE(a);try{return new af(r)}catch{return null}}}/**
981 * @license
982 * Copyright 2020 Google LLC
983 *
984 * Licensed under the Apache License, Version 2.0 (the "License");
985 * you may not use this file except in compliance with the License.
986 * You may obtain a copy of the License at
987 *
988 *   http://www.apache.org/licenses/LICENSE-2.0
989 *
990 * Unless required by applicable law or agreed to in writing, software
991 * distributed under the License is distributed on an "AS IS" BASIS,
992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
993 * See the License for the specific language governing permissions and
994 * limitations under the License.
995 */class Mi{constructor(){this.providerId=Mi.PROVIDER_ID}static credential(a,r){return kl._fromEmailAndPassword(a,r)}static credentialWithLink(a,r){const s=af.parseLink(r);return F(s,"argument-error"),kl._fromEmailAndCode(a,s.code,s.tenantId)}}Mi.PROVIDER_ID="password";Mi.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Mi.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
996 * @license
997 * Copyright 2020 Google LLC
998 *
999 * Licensed under the Apache License, Version 2.0 (the "License");
1000 * you may not use this file except in compliance with the License.
1001 * You may obtain a copy of the License at
1002 *
1003 *   http://www.apache.org/licenses/LICENSE-2.0
1004 *
1005 * Unless required by applicable law or agreed to in writing, software
1006 * distributed under the License is distributed on an "AS IS" BASIS,
1007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1008 * See the License for the specific language governing permissions and
1009 * limitations under the License.
1010 */class py{constructor(a){this.providerId=a,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(a){this.defaultLanguageCode=a}setCustomParameters(a){return this.customParameters=a,this}getCustomParameters(){return this.customParameters}}/**
1011 * @license
1012 * Copyright 2019 Google LLC
1013 *
1014 * Licensed under the Apache License, Version 2.0 (the "License");
1015 * you may not use this file except in compliance with the License.
1016 * You may obtain a copy of the License at
1017 *
1018 *   http://www.apache.org/licenses/LICENSE-2.0
1019 *
1020 * Unless required by applicable law or agreed to in writing, software
1021 * distributed under the License is distributed on an "AS IS" BASIS,
1022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1023 * See the License for the specific language governing permissions and
1024 * limitations under the License.
1025 */class Kl extends py{constructor(){super(...arguments),this.scopes=[]}addScope(a){return this.scopes.includes(a)||this.scopes.push(a),this}getScopes(){return[...this.scopes]}}/**
1026 * @license
1027 * Copyright 2020 Google LLC
1028 *
1029 * Licensed under the Apache License, Version 2.0 (the "License");
1030 * you may not use this file except in compliance with the License.
1031 * You may obtain a copy of the License at
1032 *
1033 *   http://www.apache.org/licenses/LICENSE-2.0
1034 *
1035 * Unless required by applicable law or agreed to in writing, software
1036 * distributed under the License is distributed on an "AS IS" BASIS,
1037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1038 * See the License for the specific language governing permissions and
1039 * limitations under the License.
1040 */class aa extends Kl{constructor(){super("facebook.com")}static credential(a){return La._fromParams({providerId:aa.PROVIDER_ID,signInMethod:aa.FACEBOOK_SIGN_IN_METHOD,accessToken:a})}static credentialFromResult(a){return aa.credentialFromTaggedObject(a)}static credentialFromError(a){return aa.credentialFromTaggedObject(a.customData||{})}static credentialFromTaggedObject({_tokenResponse:a}){if(!a||!("oauthAccessToken"in a)||!a.oauthAccessToken)return null;try{return aa.credential(a.oauthAccessToken)}catch{return null}}}aa.FACEBOOK_SIGN_IN_METHOD="facebook.com";aa.PROVIDER_ID="facebook.com";/**
1041 * @license
1042 * Copyright 2020 Google LLC
1043 *
1044 * Licensed under the Apache License, Version 2.0 (the "License");
1045 * you may not use this file except in compliance with the License.
1046 * You may obtain a copy of the License at
1047 *
1048 *   http://www.apache.org/licenses/LICENSE-2.0
1049 *
1050 * Unless required by applicable law or agreed to in writing, software
1051 * distributed under the License is distributed on an "AS IS" BASIS,
1052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1053 * See the License for the specific language governing permissions and
1054 * limitations under the License.
1055 */class ia extends Kl{constructor(){super("google.com"),this.addScope("profile")}static credential(a,r){return La._fromParams({providerId:ia.PROVIDER_ID,signInMethod:ia.GOOGLE_SIGN_IN_METHOD,idToken:a,accessToken:r})}static credentialFromResult(a){return ia.credentialFromTaggedObject(a)}static credentialFromError(a){return ia.credentialFromTaggedObject(a.customData||{})}static credentialFromTaggedObject({_tokenResponse:a}){if(!a)return null;const{oauthIdToken:r,oauthAccessToken:s}=a;if(!r&&!s)return null;try{return ia.credential(r,s)}catch{return null}}}ia.GOOGLE_SIGN_IN_METHOD="google.com";ia.PROVIDER_ID="google.com";/**
1056 * @license
1057 * Copyright 2020 Google LLC
1058 *
1059 * Licensed under the Apache License, Version 2.0 (the "License");
1060 * you may not use this file except in compliance with the License.
1061 * You may obtain a copy of the License at
1062 *
1063 *   http://www.apache.org/licenses/LICENSE-2.0
1064 *
1065 * Unless required by applicable law or agreed to in writing, software
1066 * distributed under the License is distributed on an "AS IS" BASIS,
1067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1068 * See the License for the specific language governing permissions and
1069 * limitations under the License.
1070 */class la extends Kl{constructor(){super("github.com")}static credential(a){return La._fromParams({providerId:la.PROVIDER_ID,signInMethod:la.GITHUB_SIGN_IN_METHOD,accessToken:a})}static credentialFromResult(a){return la.credentialFromTaggedObject(a)}static credentialFromError(a){return la.credentialFromTaggedObject(a.customData||{})}static credentialFromTaggedObject({_tokenResponse:a}){if(!a||!("oauthAccessToken"in a)||!a.oauthAccessToken)return null;try{return la.credential(a.oauthAccessToken)}catch{return null}}}la.GITHUB_SIGN_IN_METHOD="github.com";la.PROVIDER_ID="github.com";/**
1071 * @license
1072 * Copyright 2020 Google LLC
1073 *
1074 * Licensed under the Apache License, Version 2.0 (the "License");
1075 * you may not use this file except in compliance with the License.
1076 * You may obtain a copy of the License at
1077 *
1078 *   http://www.apache.org/licenses/LICENSE-2.0
1079 *
1080 * Unless required by applicable law or agreed to in writing, software
1081 * distributed under the License is distributed on an "AS IS" BASIS,
1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1083 * See the License for the specific language governing permissions and
1084 * limitations under the License.
1085 */class ra extends Kl{constructor(){super("twitter.com")}static credential(a,r){return La._fromParams({providerId:ra.PROVIDER_ID,signInMethod:ra.TWITTER_SIGN_IN_METHOD,oauthToken:a,oauthTokenSecret:r})}static credentialFromResult(a){return ra.credentialFromTaggedObject(a)}static credentialFromError(a){return ra.credentialFromTaggedObject(a.customData||{})}static credentialFromTaggedObject({_tokenResponse:a}){if(!a)return null;const{oauthAccessToken:r,oauthTokenSecret:s}=a;if(!r||!s)return null;try{return ra.credential(r,s)}catch{return null}}}ra.TWITTER_SIGN_IN_METHOD="twitter.com";ra.PROVIDER_ID="twitter.com";/**
1086 * @license
1087 * Copyright 2020 Google LLC
1088 *
1089 * Licensed under the Apache License, Version 2.0 (the "License");
1090 * you may not use this file except in compliance with the License.
1091 * You may obtain a copy of the License at
1092 *
1093 *   http://www.apache.org/licenses/LICENSE-2.0
1094 *
1095 * Unless required by applicable law or agreed to in writing, software
1096 * distributed under the License is distributed on an "AS IS" BASIS,
1097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1098 * See the License for the specific language governing permissions and
1099 * limitations under the License.
1100 */async function BE(i,a){return Xl(i,"POST","/v1/accounts:signUp",da(i,a))}/**
1101 * @license
1102 * Copyright 2020 Google LLC
1103 *
1104 * Licensed under the Apache License, Version 2.0 (the "License");
1105 * you may not use this file except in compliance with the License.
1106 * You may obtain a copy of the License at
1107 *
1108 *   http://www.apache.org/licenses/LICENSE-2.0
1109 *
1110 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1113 * See the License for the specific language governing permissions and
1114 * limitations under the License.
1115 */class ca{constructor(a){this.user=a.user,this.providerId=a.providerId,this._tokenResponse=a._tokenResponse,this.operationType=a.operationType}static async _fromIdTokenResponse(a,r,s,c=!1){const f=await jt._fromIdTokenResponse(a,s,c),h=Jp(s);return new ca({user:f,providerId:h,_tokenResponse:s,operationType:r})}static async _forOperation(a,r,s){await a._updateTokensIfNecessary(s,!0);const c=Jp(s);return new ca({user:a,providerId:c,_tokenResponse:s,operationType:r})}}function Jp(i){return i.providerId?i.providerId:"phoneNumber"in i?"phone":null}/**
1116 * @license
1117 * Copyright 2020 Google LLC
1118 *
1119 * Licensed under the Apache License, Version 2.0 (the "License");
1120 * you may not use this file except in compliance with the License.
1121 * You may obtain a copy of the License at
1122 *
1123 *   http://www.apache.org/licenses/LICENSE-2.0
1124 *
1125 * Unless required by applicable law or agreed to in writing, software
1126 * distributed under the License is distributed on an "AS IS" BASIS,
1127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1128 * See the License for the specific language governing permissions and
1129 * limitations under the License.
1130 */async function qE(i){var a;if(Lt(i.app))return Promise.reject(wn(i));const r=Ba(i);if(await r._initializationPromise,!((a=r.currentUser)===null||a===void 0)&&a.isAnonymous)return new ca({user:r.currentUser,providerId:null,operationType:"signIn"});const s=await BE(r,{returnSecureToken:!0}),c=await ca._fromIdTokenResponse(r,"signIn",s,!0);return await r._updateCurrentUser(c.user),c}/**
1131 * @license
1132 * Copyright 2020 Google LLC
1133 *
1134 * Licensed under the Apache License, Version 2.0 (the "License");
1135 * you may not use this file except in compliance with the License.
1136 * You may obtain a copy of the License at
1137 *
1138 *   http://www.apache.org/licenses/LICENSE-2.0
1139 *
1140 * Unless required by applicable law or agreed to in writing, softw
1140are
1141 * distributed under the License is distributed on an "AS IS" BASIS,
1142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1143 * See the License for the specific language governing permissions and
1144 * limitations under the License.
1145 */class Rs extends Ft{constructor(a,r,s,c){var f;super(r.code,r.message),this.operationType=s,this.user=c,Object.setPrototypeOf(this,Rs.prototype),this.customData={appName:a.name,tenantId:(f=a.tenantId)!==null&&f!==void 0?f:void 0,_serverResponse:r.customData._serverResponse,operationType:s}}static _fromErrorAndOperation(a,r,s,c){return new Rs(a,r,s,c)}}function gy(i,a,r,s){return(a==="reauthenticate"?r._getReauthenticationResolver(i):r._getIdTokenResponse(i)).catch(f=>{throw f.code==="auth/multi-factor-auth-required"?Rs._fromErrorAndOperation(i,f,a,s):f})}async function VE(i,a,r=!1){const s=await jl(i,a._linkToIdToken(i.auth,await i.getIdToken()),r);return ca._forOperation(i,"link",s)}/**
1146 * @license
1147 * Copyright 2019 Google LLC
1148 *
1149 * Licensed under the Apache License, Version 2.0 (the "License");
1150 * you may not use this file except in compliance with the License.
1151 * You may obtain a copy of the License at
1152 *
1153 *   http://www.apache.org/licenses/LICENSE-2.0
1154 *
1155 * Unless required by applicable law or agreed to in writing, software
1156 * distributed under the License is distributed on an "AS IS" BASIS,
1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1158 * See the License for the specific language governing permissions and
1159 * limitations under the License.
1160 */async function GE(i,a,r=!1){const{auth:s}=i;if(Lt(s.app))return Promise.reject(wn(s));const c="reauthenticate";try{const f=await jl(i,gy(s,c,a,i),r);F(f.idToken,s,"internal-error");const h=ef(f.idToken);F(h,s,"internal-error");const{sub:y}=h;return F(i.uid===y,s,"user-mismatch"),ca._forOperation(i,c,f)}catch(f){throw(f==null?void 0:f.code)==="auth/user-not-found"&&Ht(s,"user-mismatch"),f}}/**
1161 * @license
1162 * Copyright 2020 Google LLC
1163 *
1164 * Licensed under the Apache License, Version 2.0 (the "License");
1165 * you may not use this file except in compliance with the License.
1166 * You may obtain a copy of the License at
1167 *
1168 *   http://www.apache.org/licenses/LICENSE-2.0
1169 *
1170 * Unless required by applicable law or agreed to in writing, software
1171 * distributed under the License is distributed on an "AS IS" BASIS,
1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1173 * See the License for the specific language governing permissions and
1174 * limitations under the License.
1175 */async function yy(i,a,r=!1){if(Lt(i.app))return Promise.reject(wn(i));const s="signIn",c=await gy(i,s,a),f=await ca._fromIdTokenResponse(i,s,c);return r||await i._updateCurrentUser(f.user),f}async function PE(i,a){return yy(Ba(i),a)}/**
1176 * @license
1177 * Copyright 2020 Google LLC
1178 *
1179 * Licensed under the Apache License, Version 2.0 (the "License");
1180 * you may not use this file except in compliance with the License.
1181 * You may obtain a copy of the License at
1182 *
1183 *   http://www.apache.org/licenses/LICENSE-2.0
1184 *
1185 * Unless required by applicable law or agreed to in writing, software
1186 * distributed under the License is distributed on an "AS IS" BASIS,
1187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1188 * See the License for the specific language governing permissions and
1189 * limitations under the License.
1190 */async function YE(i){const a=Ba(i);a._getPasswordPolicyInternal()&&await a._updatePasswordPolicy()}function XE(i,a,r){return Lt(i.app)?Promise.reject(wn(i)):PE(Wt(i),Mi.credential(a,r)).catch(async s=>{throw s.code==="auth/password-does-not-meet-requirements"&&YE(i),s})}function KE(i,a,r,s){return Wt(i).onIdTokenChanged(a,r,s)}function QE(i,a,r){return Wt(i).beforeAuthStateChanged(a,r)}function ZE(i,a,r,s){return Wt(i).onAuthStateChanged(a,r,s)}const Os="__sak";/**
1191 * @license
1192 * Copyright 2019 Google LLC
1193 *
1194 * Licensed under the Apache License, Version 2.0 (the "License");
1195 * you may not use this file except in compliance with the License.
1196 * You may obtain a copy of the License at
1197 *
1198 *   http://www.apache.org/licenses/LICENSE-2.0
1199 *
1200 * Unless required by applicable law or agreed to in writing, softw
1200are
1201 * distributed under the License is distributed on an "AS IS" BASIS,
1202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1203 * See the License for the specific language governing permissions and
1204 * limitations under the License.
1205 */class vy{constructor(a,r){this.storageRetriever=a,this.type=r}_isAvailable(){try{return this.storage?(this.storage.setItem(Os,"1"),this.storage.removeItem(Os),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(a,r){return this.storage.setItem(a,JSON.stringify(r)),Promise.resolve()}_get(a){const r=this.storage.getItem(a);return Promise.resolve(r?JSON.parse(r):null)}_remove(a){return this.storage.removeItem(a),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
1206 * @license
1207 * Copyright 2020 Google LLC
1208 *
1209 * Licensed under the Apache License, Version 2.0 (the "License");
1210 * you may not use this file except in compliance with the License.
1211 * You may obtain a copy of the License at
1212 *
1213 *   http://www.apache.org/licenses/LICENSE-2.0
1214 *
1215 * Unless required by applicable law or agreed to in writing, software
1216 * distributed under the License is distributed on an "AS IS" BASIS,
1217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1218 * See the License for the specific language governing permissions and
1219 * limitations under the License.
1220 */const $E=1e3,JE=10;class by extends vy{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(a,r)=>this.onStorageEvent(a,r),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=cy(),this._shouldAllowMigration=!0}forAllChangedKeys(a){for(const r of Object.keys(this.listeners)){const s=this.storage.getItem(r),c=this.localCache[r];s!==c&&a(r,c,s)}}onStorageEvent(a,r=!1){if(!a.key){this.forAllChangedKeys((h,y,m)=>{this.notifyListeners(h,m)});return}const s=a.key;r?this.detachListener():this.stopPolling();const c=()=>{const h=this.storage.getItem(s);!r&&this.localCache[s]===h||this.notifyListeners(s,h)},f=this.storage.getItem(s);mE()&&f!==a.newValue&&a.newValue!==a.oldValue?setTimeout(c,JE):c()}notifyListeners(a,r){this.localCache[a]=r;const s=this.listeners[a];if(s)for(const c of Array.from(s))c(r&&JSON.parse(r))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((a,r,s)=>{this.onStorageEvent(new StorageEvent("storage",{key:a,oldValue:r,newValue:s}),!0)})},$E)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(a,r){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[a]||(this.listeners[a]=new Set,this.localCache[a]=this.storage.getItem(a)),this.listeners[a].add(r)}_removeListener(a,r){this.listeners[a]&&(this.listeners[a].delete(r),this.listeners[a].size===0&&delete this.listeners[a]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(a,r){await super._set(a,r),this.localCache[a]=JSON.stringify(r)}async _get(a){const r=await super._get(a);return this.localCache[a]=JSON.stringify(r),r}async _remove(a){await super._remove(a),delete this.localCache[a]}}by.type="LOCAL";const FE=by;/**
1221 * @license
1222 * Copyright 2020 Google LLC
1223 *
1224 * Licensed under the Apache License, Version 2.0 (the "License");
1225 * you may not use this file except in compliance with the License.
1226 * You may obtain a copy of the License at
1227 *
1228 *   http://www.apache.org/licenses/LICENSE-2.0
1229 *
1230 * Unless required by applicable law or agreed to in writing, software
1231 * distributed under the License is distributed on an "AS IS" BASIS,
1232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1233 * See the License for the specific language governing permissions and
1234 * limitations under the License.
1235 */class Sy extends vy{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(a,r){}_removeListener(a,r){}}Sy.type="SESSION";const _y=Sy;/**
1236 * @license
1237 * Copyright 2019 Google LLC
1238 *
1239 * Licensed under the Apache License, Version 2.0 (the "License");
1240 * you may not use this file except in compliance with the License.
1241 * You may obtain a copy of the License at
1242 *
1243 *   http://www.apache.org/licenses/LICENSE-2.0
1244 *
1245 * Unless required by applicable law or agreed to in writing, software
1246 * distributed under the License is distributed on an "AS IS" BASIS,
1247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1248 * See the License for the specific language governing permissions and
1249 * limitations under the License.
1250 */function WE(i){return Promise.all(i.map(async a=>{try{return{fulfilled:!0,value:await a}}catch(r){return{fulfilled:!1,reason:r}}}))}/**
1251 * @license
1252 * Copyright 2019 Google LLC
1253 *
1254 * Licensed under the Apache License, Version 2.0 (the "License");
1255 * you may not use this file except in compliance with the License.
1256 * You may obtain a copy of the License at
1257 *
1258 *   http://www.apache.org/licenses/LICENSE-2.0
1259 *
1260 * Unless required by applicable law or agreed to in writing, software
1261 * distributed under the License is distributed on an "AS IS" BASIS,
1262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1263 * See the License for the specific language governing permissions and
1264 * limitations under the License.
1265 */class ks{constructor(a){this.eventTarget=a,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(a){const r=this.receivers.find(c=>c.isListeningto(a));if(r)return r;const s=new ks(a);return this.receivers.push(s),s}isListeningto(a){return this.eventTarget===a}async handleEvent(a){const r=a,{eventId:s,eventType:c,data:f}=r.data,h=this.handlersMap[c];if(!(h!=null&&h.size))return;r.ports[0].postMessage({status:"ack",eventId:s,eventType:c});const y=Array.from(h).map(async g=>g(r.origin,f)),m=await WE(y);r.ports[0].postMessage({status:"done",eventId:s,eventType:c,response:m})}_subscribe(a,r){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[a]||(this.handlersMap[a]=new Set),this.handlersMap[a].add(r)}_unsubscribe(a,r){this.handlersMap[a]&&r&&this.handlersMap[a].delete(r),(!r||this.handlersMap[a].size===0)&&delete this.handlersMap[a],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}ks.receivers=[];/**
1266 * @license
1267 * Copyright 2020 Google LLC
1268 *
1269 * Licensed under the Apache License, Version 2.0 (the "License");
1270 * you may not use this file except in compliance with the License.
1271 * You may obtain a copy of the License at
1272 *
1273 *   http://www.apache.org/licenses/LICENSE-2.0
1274 *
1275 * Unless required by applicable law or agreed to in writing, software
1276 * distributed under the License is distributed on an "AS IS" BASIS,
1277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1278 * See the License for the specific language governing permissions and
1279 * limitations under the License.
1280 */function lf(i="",a=10){let r="";for(let s=0;s<a;s++)r+=Math.floor(Math.random()*10);return i+r}/**
1281 * @license
1282 * Copyright 2019 Google LLC
1283 *
1284 * Licensed under the Apache License, Version 2.0 (the "License");
1285 * you may not use this file except in compliance with the License.
1286 * You may obtain a copy of the License at
1287 *
1288 *   http://www.apache.org/licenses/LICENSE-2.0
1289 *
1290 * Unless required by applicable law or agreed to in writing, software
1291 * distributed under the License is distributed on an "AS IS" BASIS,
1292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1293 * See the License for the specific language governing permissions and
1294 * limitations under the License.
1295 */class eT{constructor(a){this.target=a,this.handlers=new Set}removeMessageHandler(a){a.messageChannel&&(a.messageChannel.port1.removeEventListener("message",a.onMessage),a.messageChannel.port1.close()),this.handlers.delete(a)}async _send(a,r,s=50){const c=typeof MessageChannel<"u"?new MessageChannel:null;if(!c)throw new Error("connection_unavailable");let f,h;return new Promise((y,m)=>{const g=lf("",20);c.port1.start();const T=setTimeout(()=>{m(new Error("unsupported_event"))},s);h={messageChannel:c,onMessage(A){const S=A;if(S.data.eventId===g)switch(S.data.status){case"ack":clearTimeout(T),f=setTimeout(()=>{m(new Error("timeout"))},3e3);break;case"done":clearTimeout(f),y(S.data.response);break;default:clearTimeout(T),clearTimeout(f),m(new Error("invalid_response"));break}}},this.handlers.add(h),c.port1.addEventListener("message",h.onMessage),this.target.postMessage({eventType:a,eventId:g,data:r},[c.port2])}).finally(()=>{h&&this.removeMessageHandler(h)})}}/**
1296 * @license
1297 * Copyright 2020 Google LLC
1298 *
1299 * Licensed under the Apache License, Version 2.0 (the "License");
1300 * you may not use this file except in compliance with the License.
1301 * You may obtain a copy of the License at
1302 *
1303 *   http://www.apache.org/licenses/LICENSE-2.0
1304 *
1305 * Unless required by applicable law or agreed to in writing, software
1306 * distributed under the License is distributed on an "AS IS" BASIS,
1307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1308 * See the License for the specific language governing permissions and
1309 * limitations under the License.
1310 */function Kt(){return window}function tT(i){Kt().location.href=i}/**
1311 * @license
1312 * Copyright 2020 Google LLC.
1313 *
1314 * Licensed under the Apache License, Version 2.0 (the "License");
1315 * you may not use this file except in compliance with the License.
1316 * You may obtain a copy of the License at
1317 *
1318 *   http://www.apache.org/licenses/LICENSE-2.0
1319 *
1320 * Unless required by applicable law or agreed to in writing, software
1321 * distributed under the License is distributed on an "AS IS" BASIS,
1322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1323 * See the License for the specific language governing permissions and
1324 * limitations under the License.
1325 */function Ey(){return typeof Kt().WorkerGlobalScope<"u"&&typeof Kt().importScripts=="function"}async function nT(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function aT(){var i;return((i=navigator==null?void 0:navigator.serviceWorker)===null||i===void 0?void 0:i.controller)||null}function iT(){return Ey()?self:null}/**
1326 * @license
1327 * Copyright 2019 Google LLC
1328 *
1329 * Licensed under the Apache License, Version 2.0 (the "License");
1330 * you may not use this file except in compliance with the License.
1331 * You may obtain a copy of the License at
1332 *
1333 *   http://www.apache.org/licenses/LICENSE-2.0
1334 *
1335 * Unless required by applicable law or agreed to in writing, software
1336 * distributed under the License is distributed on an "AS IS" BASIS,
1337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1338 * See the License for the specific language governing permissions and
1339 * limitations under the License.
1340 */const Ty="firebaseLocalStorageDb",lT=1,Ns="firebaseLocalStorage",wy="fbase_key";class Ql{constructor(a){this.request=a}toPromise(){return new Promise((a,r)=>{this.request.addEventListener("success",()=>{a(this.request.result)}),this.request.addEventListener("error",()=>{r(this.request.error)})})}}function Hs(i,a){return i.transaction([Ns],a?"readwrite":"readonly").objectStore(Ns)}function rT(){const i=indexedDB.deleteDatabase(Ty);return new Ql(i).toPromise()}function jc(){const i=indexedDB.open(Ty,lT);return new Promise((a,r)=>{i.addEventListener("error",()=>{r(i.error)}),i.addEventListener("upgradeneeded",()=>{const s=i.result;try{s.createObjectStore(Ns,{keyPath:wy})}catch(c){r(c)}}),i.addEventListener("success",async()=>{const s=i.result;s.objectStoreNames.contains(Ns)?a(s):(s.close(),await rT(),a(await jc()))})})}async function Fp(i,a,r){const s=Hs(i,!0).put({[wy]:a,value:r});return new Ql(s).toPromise()}async function sT(i,a){const r=Hs(i,!1).get(a),s=await new Ql(r).toPromise();return s===void 0?null:s.value}function Wp(i,a){const r=Hs(i,!0).delete(a);return new Ql(r).toPromise()}
1340const oT=800,uT=3;class Ay{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:(this.db=await jc(),this.db)}async _withRetries(a){let r=0;for(;;)try{const s=await this._openDb();return await a(s)}catch(s){if(r++>uT)throw s;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Ey()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=ks._getInstance(iT()),this.receiver._subscribe("keyChanged",async(a,r)=>({keyProcessed:(await this._poll()).includes(r.key)})),this.receiver._subscribe("ping",async(a,r)=>["keyChanged"])}async initializeSender(){var a,r;if(this.activeServiceWorker=await nT(),!this.activeServiceWorker)return;this.sender=new eT(this.activeServiceWorker);const s=await this.sender._send("ping",{},800);s&&!((a=s[0])===null||a===void 0)&&a.fulfilled&&!((r=s[0])===null||r===void 0)&&r.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(a){if(!(!this.sender||!this.activeServiceWorker||aT()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:a},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const a=await jc();return await Fp(a,Os,"1"),await Wp(a,Os),!0}catch{}return!1}async _withPendingWrite(a){this.pendingWrites++;try{await a()}finally{this.pendingWrites--}}async _set(a,r){return this._withPendingWrite(async()=>(await this._withRetries(s=>Fp(s,a,r)),this.localCache[a]=r,this.notifyServiceWorker(a)))}async _get(a){const r=await this._withRetries(s=>sT(s,a));return this.localCache[a]=r,r}async _remove(a){return this._withPendingWrite(async()=>(await this._withRetries(r=>Wp(r,a)),delete this.localCache[a],this.notifyServiceWorker(a)))}async _poll(){const a=await this._withRetries(c=>{const f=Hs(c,!1).getAll();return new Ql(f).toPromise()});if(!a)return[];if(this.pendingWrites!==0)return[];const r=[],s=new Set;if(a.length!==0)for(const{fbase_key:c,value:f}of a)s.add(c),JSON.stringify(this.localCache[c])!==JSON.stringify(f)&&(this.notifyListeners(c,f),r.push(c));for(const c of Object.keys(this.localCache))this.localCache[c]&&!s.has(c)&&(this.notifyListeners(c,null),r.push(c));return r}notifyListeners(a,r){this.localCache[a]=r;const s=this.listeners[a];if(s)for(const c of Array.from(s))c(r)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),oT)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(a,r){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[a]||(this.listeners[a]=new Set,this._get(a)),this.listeners[a].add(r)}_removeListener(a,r){this.listeners[a]&&(this.listeners[a].delete(r),this.listeners[a].size===0&&delete this.listeners[a]),Object.keys(this.listeners).length===0&&this.stopPolling()}}Ay.type="LOCAL";const cT=Ay;new Yl(3e4,6e4);/**
1341 * @license
1342 * Copyright 2021 Google LLC
1343 *
1344 * Licensed under the Apache License, Version 2.0 (the "License");
1345 * you may not use this file except in compliance with the License.
1346 * You may obtain a copy of the License at
1347 *
1348 *   http://www.apache.org/licenses/LICENSE-2.0
1349 *
1350 * Unless required by applicable law or agreed to in writing, software
1351 * distributed under the License is distributed on an "AS IS" BASIS,
1352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1353 * See the License for the specific language governing permissions and
1354 * limitations under the License.
1355 */function fT(i,a){return a?_n(a):(F(i._popupRedirectResolver,i,"argument-error"),i._popupRedirectResolver)}/**
1356 * @license
1357 * Copyright 2019 Google LLC
1358 *
1359 * Licensed under the Apache License, Version 2.0 (the "License");
1360 * you may not use this file except in compliance with the License.
1361 * You may obtain a copy of the License at
1362 *
1363 *   http://www.apache.org/licenses/LICENSE-2.0
1364 *
1365 * Unless required by applicable law or agreed to in writing, softw
1365are
1366 * distributed under the License is distributed on an "AS IS" BASIS,
1367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1368 * See the License for the specific language governing permissions and
1369 * limitations under the License.
1370 */class rf extends nf{constructor(a){super("custom","custom"),this.params=a}_getIdTokenResponse(a){return Ri(a,this._buildIdpRequest())}_linkToIdToken(a,r){return Ri(a,this._buildIdpRequest(r))}_getReauthenticationResolver(a){return Ri(a,this._buildIdpRequest())}_buildIdpRequest(a){const r={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 a&&(r.idToken=a),r}}function dT(i){return yy(i.auth,new rf(i),i.bypassAuthState)}function hT(i){const{auth:a,user:r}=i;return F(r,a,"internal-error"),GE(r,new rf(i),i.bypassAuthState)}async function mT(i){const{auth:a,user:r}=i;return F(r,a,"internal-error"),VE(r,new rf(i),i.bypassAuthState)}/**
1371 * @license
1372 * Copyright 2020 Google LLC
1373 *
1374 * Licensed under the Apache License, Version 2.0 (the "License");
1375 * you may not use this file except in compliance with the License.
1376 * You may obtain a copy of the License at
1377 *
1378 *   http://www.apache.org/licenses/LICENSE-2.0
1379 *
1380 * Unless required by applicable law or agreed to in writing, software
1381 * distributed under the License is distributed on an "AS IS" BASIS,
1382 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1383 * See the License for the specific language governing permissions and
1384 * limitations under the License.
1385 */class Cy{constructor(a,r,s,c,f=!1){this.auth=a,this.resolver=s,this.user=c,this.bypassAuthState=f,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(r)?r:[r]}execute(){return new Promise(async(a,r)=>{this.pendingPromise={resolve:a,reject:r};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(s){this.reject(s)}})}async onAuthEvent(a){const{urlResponse:r,sessionId:s,postBody:c,tenantId:f,error:h,type:y}=a;if(h){this.reject(h);return}const m={auth:this.auth,requestUri:r,sessionId:s,tenantId:f||void 0,postBody:c||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(y)(m))}catch(g){this.reject(g)}}onError(a){this.reject(a)}getIdpTask(a){switch(a){case"signInViaPopup":case"signInViaRedirect":return dT;case"linkViaPopup":case"linkViaRedirect":return mT;case"reauthViaPopup":case"reauthViaRedirect":return hT;default:Ht(this.auth,"internal-error")}}resolve(a){Rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(a),this.unregisterAndCleanUp()}reject(a){Rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(a),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1386 * @license
1387 * Copyright 2020 Google LLC
1388 *
1389 * Licensed under the Apache License, Version 2.0 (the "License");
1390 * you may not use this file except in compliance with the License.
1391 * You may obtain a copy of the License at
1392 *
1393 *   http://www.apache.org/licenses/LICENSE-2.0
1394 *
1395 * Unless required by applicable law or agreed to in writing, software
1396 * distributed under the License is distributed on an "AS IS" BASIS,
1397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1398 * See the License for the specific language governing permissions and
1399 * limitations under the License.
1400 */const pT=new Yl(2e3,1e4);class Ai extends Cy{constructor(a,r,s,c,f){super(a,r,c,f),this.provider=s,this.authWindow=null,this.pollId=null,Ai.currentPopupAction&&Ai.currentPopupAction.cancel(),Ai.currentPopupAction=this}async executeNotNull(){const a=await this.execute();return F(a,this.auth,"internal-error"),a}async onExecution(){Rn(this.filter.length===1,"Popup operations only handle one event");const a=lf();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],a),this.authWindow.associatedEvent=a,this.resolver._originValidation(this.auth).catch(r=>{this.reject(r)}),this.resolver._isIframeWebStorageSupported(this.auth,r=>{r||this.reject(Xt(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var a;return((a=this.authWindow)===null||a===void 0?void 0:a.associatedEvent)||null}cancel(){this.reject(Xt(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ai.currentPopupAction=null}pollUserCancellation(){const a=()=>{var r,s;if(!((s=(r=this.authWindow)===null||r===void 0?void 0:r.window)===null||s===void 0)&&s.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Xt(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(a,pT.get())};a()}}Ai.currentPopupAction=null;/**
1401 * @license
1402 * Copyright 2020 Google LLC
1403 *
1404 * Licensed under the Apache License, Version 2.0 (the "License");
1405 * you may not use this file except in compliance with the License.
1406 * You may obtain a copy of the License at
1407 *
1408 *   http://www.apache.org/licenses/LICENSE-2.0
1409 *
1410 * Unless required by applicable law or agreed to in writing, software
1411 * distributed under the License is distributed on an "AS IS" BASIS,
1412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1415 */const gT="pendingRedirect",_s=new Map;class yT extends Cy{constructor(a,r,s=!1){super(a,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,s),this.eventId=null}async execute(){let a=_s.get(this.auth._key());if(!a){try{const s=await vT(this.resolver,this.auth)?await super.execute():null;a=()=>Promise.resolve(s)}catch(r){a=()=>Promise.reject(r)}_s.set(this.auth._key(),a)}return this.bypassAuthState||_s.set(this.auth._key(),()=>Promise.resolve(null)),a()}async onAuthEvent(a){if(a.type==="signInViaRedirect")return super.onAuthEvent(a);if(a.type==="unknown"){this.resolve(null);return}if(a.eventId){const r=await this.auth._redirectUserForId(a.eventId);if(r)return this.user=r,super.onAuthEvent(a);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function vT(i,a){const r=_T(a),s=ST(i);if(!await s._isAvailable())return!1;const c=await s._get(r)==="true";return await s._remove(r),c}function bT(i,a){_s.set(i._key(),a)}function ST(i){return _n(i._redirectPersistence)}function _T(i){return Ss(gT,i.config.apiKey,i.name)}async function ET(i,a,r=!1){if(Lt(i.app))return Promise.reject(wn(i));const s=Ba(i),c=fT(s,a),h=await new yT(s,c,r).execute();return h&&!r&&(delete h.user._redirectEventId,await s._persistUserIfCurrent(h.user),await s._setRedirectUser(null,a)),h}/**
1416 * @license
1417 * Copyright 2020 Google LLC
1418 *
1419 * Licensed under the Apache License, Version 2.0 (the "License");
1420 * you may not use this file except in compliance with the License.
1421 * You may obtain a copy of the License at
1422 *
1423 *   http://www.apache.org/licenses/LICENSE-2.0
1424 *
1425 * Unless required by applicable law or agreed to in writing, software
1426 * distributed under the License is distributed on an "AS IS" BASIS,
1427 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1428 * See the License for the specific language governing permissions and
1429 * limitations under the License.
1430 */const TT=10*60*1e3;class wT{constructor(a){this.auth=a,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(a){this.consumers.add(a),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,a)&&(this.sendToConsumer(this.queuedRedirectEvent,a),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(a){this.consumers.delete(a)}onEvent(a){if(this.hasEventBeenHandled(a))return!1;let r=!1;return this.consumers.forEach(s=>{this.isEventForConsumer(a,s)&&(r=!0,this.sendToConsumer(a,s),this.saveEventToCache(a))}),this.hasHandledPotentialRedirect||!AT(a)||(this.hasHandledPotentialRedirect=!0,r||(this.queuedRedirectEvent=a,r=!0)),r}sendToConsumer(a,r){var s;if(a.error&&!xy(a)){const c=((s=a.error.code)===null||s===void 0?void 0:s.split("auth/")[1])||"internal-error";r.onError(Xt(this.auth,c))}else r.onAuthEvent(a)}isEventForConsumer(a,r){const s=r.eventId===null||!!a.eventId&&a.eventId===r.eventId;return r.filter.includes(a.type)&&s}hasEventBeenHandled(a){return Date.now()-this.lastProcessedEventTime>=TT&&this.cachedEventUids.clear(),this.cachedEventUids.has(eg(a))}saveEventToCache(a){this.cachedEventUids.add(eg(a)),this.lastProcessedEventTime=Date.now()}}function eg(i){return[i.type,i.eventId,i.sessionId,i.tenantId].filter(a=>a).join("-")}function xy({type:i,error:a}){return i==="unknown"&&(a==null?void 0:a.code)==="auth/no-auth-event"}function AT(i){switch(i.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return xy(i);default:return!1}}/**
1431 * @license
1432 * Copyright 2020 Google LLC
1433 *
1434 * Licensed under the Apache License, Version 2.0 (the "License");
1435 * you may not use this file except in compliance with the License.
1436 * You may obtain a copy of the License at
1437 *
1438 *   http://www.apache.org/licenses/LICENSE-2.0
1439 *
1440 * Unless required by applicable law or agreed to in writing, software
1441 * distributed under the License is distributed on an "AS IS" BASIS,
1442 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1443 * See the License for the specific language governing permissions and
1444 * limitations under the License.
1445 */async function CT(i,a={}){return ha(i,"GET","/v1/projects",a)}/**
1446 * @license
1447 * Copyright 2020 Google LLC
1448 *
1449 * Licensed under the Apache License, Version 2.0 (the "License");
1450 * you may not use this file except in compliance with the License.
1451 * You may obtain a copy of the License at
1452 *
1453 *   http://www.apache.org/licenses/LICENSE-2.0
1454 *
1455 * Unless required by applicable law or agreed to in writing, software
1456 * distributed under the License is distributed on an "AS IS" BASIS,
1457 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1458 * See the License for the specific language governing permissions and
1459 * limitations under the License.
1460 */const xT=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,RT=/^https?/;async function OT(i){if(i.config.emulator)return;const{authorizedDomains:a}=await CT(i);for(const r of a)try{if(NT(r))return}catch{}Ht(i,"unauthorized-domain")}function NT(i){const a=zc(),{protocol:r,hostname:s}=new URL(a);if(i.startsWith("chrome-extension://")){const h=new URL(i);return h.hostname===""&&s===""?r==="chrome-extension:"&&i.replace("chrome-extension://","")===a.replace("chrome-extension://",""):r==="chrome-extension:"&&h.hostname===s}if(!RT.test(r))return!1;if(xT.test(i))return s===i;const c=i.replace(/\./g,"\\.");return new RegExp("^(.+\\."+c+"|"+c+")$","i").test(s)}/**
1461 * @license
1462 * Copyright 2020 Google LLC.
1463 *
1464 * Licensed under the Apache License, Version 2.0 (the "License");
1465 * you may not use this file except in compliance with the License.
1466 * You may obtain a copy of the License at
1467 *
1468 *   http://www.apache.org/licenses/LICENSE-2.0
1469 *
1470 * Unless required by applicable law or agreed to in writing, software
1471 * distributed under the License is distributed on an "AS IS" BASIS,
1472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1473 * See the License for the specific language governing permissions and
1474 * limitations under the License.
1475 */const DT=new Yl(3e4,6e4);function tg(){const i=Kt().___jsl;if(i!=null&&i.H){for(const a of Object.keys(i.H))if(i.H[a].r=i.H[a].r||[],i.H[a].L=i.H[a].L||[],i.H[a].r=[...i.H[a].L],i.CP)for(let r=0;r<i.CP.length;r++)i.CP[r]=null}}function MT(i){return new Promise((a,r)=>{var s,c,f;function h(){tg(),gapi.load("gapi.iframes",{callback:()=>{a(gapi.iframes.getContext())},ontimeout:()=>{tg(),r(Xt(i,"network-request-failed"))},timeout:DT.get()})}if(!((c=(s=Kt().gapi)===null||s===void 0?void 0:s.iframes)===null||c===void 0)&&c.Iframe)a(gapi.iframes.getContext());else if(!((f=Kt().gapi)===null||f===void 0)&&f.load)h();else{const y=TE("iframefcb");return Kt()[y]=()=>{gapi.load?h():r(Xt(i,"network-request-failed"))},dy(`${EE()}?onload=${y}`).catch(m=>r(m))}}).catch(a=>{throw Es=null,a})}let Es=null;function UT(i){return Es=Es||MT(i),Es}/**
1476 * @license
1477 * Copyright 2020 Google LLC.
1478 *
1479 * Licensed under the Apache License, Version 2.0 (the "License");
1480 * you may not use this file except in compliance with the License.
1481 * You may obtain a copy of the License at
1482 *
1483 *   http://www.apache.org/licenses/LICENSE-2.0
1484 *
1485 * Unless required by applicable law or agreed to in writing, software
1486 * distributed under the License is distributed on an "AS IS" BASIS,
1487 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1488 * See the License for the specific language governing permissions and
1489 * limitations under the License.
1490 */const IT=new Yl(5e3,15e3),zT="__/auth/iframe",LT="emulator/auth/iframe",jT={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},kT=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function HT(i){const a=i.config;F(a.authDomain,i,"auth-domain-config-required");const r=a.emulator?Wc(a,LT):`https://${i.config.authDomain}/${zT}`,s={apiKey:a.apiKey,appName:i.name,v:Pl},c=kT.get(i.config.apiHost);c&&(s.eid=c);const f=i._getFrameworks();return f.length&&(s.fw=f.join(",")),`${r}?${Gl(s).slice(1)}`}async function BT(i){const a=await UT(i),r=Kt().gapi;return F(r,i,"internal-error"),a.open({where:document.body,url:HT(i),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:jT,dontclear:!0},s=>new Promise(async(c,f)=>{await s.restyle({setHideOnLeave:!1});const h=Xt(i,"network-request-failed"),y=Kt().setTimeout(()=>{f(h)},IT.get());function m(){Kt().clearTimeout(y),c(s)}s.ping(m).then(m,()=>{f(h)})}))}/**
1491 * @license
1492 * Copyright 2020 Google LLC.
1493 *
1494 * Licensed under the Apache License, Version 2.0 (the "License");
1495 * you may not use this file except in compliance with the License.
1496 * You may obtain a copy of the License at
1497 *
1498 *   http://www.apache.org/licenses/LICENSE-2.0
1499 *
1500 * Unless required by applicable law or agreed to in writing, software
1501 * distributed under the License is distributed on an "AS IS" BASIS,
1502 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1503 * See the License for the specific language governing permissions and
1504 * limitations under the License.
1505 */const qT={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},VT=500,GT=600,PT="_blank",YT="http://localhost";class ng{constructor(a){this.window=a,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function XT(i,a,r,s=VT,c=GT){const f=Math.max((window.screen.availHeight-c)/2,0).toString(),h=Math.max((window.screen.availWidth-s)/2,0).toString();let y="";const m=Object.assign(Object.assign({},qT),{width:s.toString(),height:c.toString(),top:f,left:h}),g=tt().toLowerCase();r&&(y=ly(g)?PT:r),ay(g)&&(a=a||YT,m.scrollbars="yes");const T=Object.entries(m).reduce((S,[L,N])=>`${S}${L}=${N},`,"");if(hE(g)&&y!=="_self")return KT(a||"",y),new ng(null);const A=window.open(a||"",y,T);F(A,i,"popup-blocked");try{A.focus()}catch{}return new ng(A)}function KT(i,a){const r=document.createElement("a");r.href=i,r.target=a;const s=document.createEvent("MouseEvent");s.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),r.dispatchEvent(s)}/**
1506 * @license
1507 * Copyright 2021 Google LLC
1508 *
1509 * Licensed under the Apache License, Version 2.0 (the "License");
1510 * you may not use this file except in compliance with the License.
1511 * You may obtain a copy of the License at
1512 *
1513 *   http://www.apache.org/licenses/LICENSE-2.0
1514 *
1515 * Unless required by applicable law or agreed to in writing, software
1516 * distributed under the License is distributed on an "AS IS" BASIS,
1517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1518 * See the License for the specific language governing permissions and
1519 * limitations under the License.
1520 */const QT="__/auth/handler",ZT="emulator/auth/handler",$T=encodeURIComponent("fac");async function ag(i,a,r,s,c,f){F(i.config.authDomain,i,"auth-domain-config-required"),F(i.config.apiKey,i,"invalid-api-key");const h={apiKey:i.config.apiKey,appName:i.name,authType:r,redirectUrl:s,v:Pl,eventId:c};if(a instanceof py){a.setDefaultLanguage(i.languageCode),h.providerId=a.providerId||"",NS(a.getCustomParameters())||(h.customParameters=JSON.stringify(a.getCustomParameters()));for(const[T,A]of Object.entries({}))h[T]=A}if(a instanceof Kl){const T=a.getScopes().filter(A=>A!=="");T.length>0&&(h.scopes=T.join(","))}i.tenantId&&(h.tid=i.tenantId);const y=h;for(const T of Object.keys(y))y[T]===void 0&&delete y[T];const m=await i._getAppCheckToken(),g=m?`#${$T}=${encodeURIComponent(m)}`:"";return`${JT(i)}?${Gl(y).slice(1)}${g}`}function JT({config:i}){return i.emulator?Wc(i,ZT):`https://${i.authDomain}/${QT}`}/**
1521 * @license
1522 * Copyright 2020 Google LLC
1523 *
1524 * Licensed under the Apache License, Version 2.0 (the "License");
1525 * you may not use this file except in compliance with the License.
1526 * You may obtain a copy of the License at
1527 *
1528 *   http://www.apache.org/licenses/LICENSE-2.0
1529 *
1530 * Unless required by applicable law or agreed to in writing, software
1531 * distributed under the License is distributed on an "AS IS" BASIS,
1532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1533 * See the License for the specific language governing permissions and
1534 * limitations under the License.
1535 */const wc="webStorageSupport";class FT{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=_y,this._completeRedirectFn=ET,this._overrideRedirectResult=bT}async _openPopup(a,r,s,c){var f;Rn((f=this.eventManagers[a._key()])===null||f===void 0?void 0:f.manager,"_initialize() not called before _openPopup()");const h=await ag(a,r,s,zc(),c);return XT(a,h,lf())}async _openRedirect(a,r,s,c){await this._originValidation(a);const f=await ag(a,r,s,zc(),c);return tT(f),new Promise(()=>{})}_initialize(a){const r=a._key();if(this.eventManagers[r]){const{manager:c,promise:f}=this.eventManagers[r];return c?Promise.resolve(c):(Rn(f,"If manager is not set, promise should be"),f)}const s=this.initAndGetManager(a);return this.eventManagers[r]={promise:s},s.catch(()=>{delete this.eventManagers[r]}),s}async initAndGetManager(a){const r=await BT(a),s=new wT(a);return r.register("authEvent",c=>(F(c==null?void 0:c.authEvent,a,"invalid-auth-event"),{status:s.onEvent(c.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[a._key()]={manager:s},this.iframes[a._key()]=r,s}_isIframeWebStorageSupported(a,r){this.iframes[a._key()].send(wc,{type:wc},c=>{var f;const h=(f=c==null?void 0:c[0])===null||f===void 0?void 0:f[wc];h!==void 0&&r(!!h),Ht(a,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(a){const r=a._key();return this.originValidationPromises[r]||(this.originValidationPromises[r]=OT(a)),this.originValidationPromises[r]}get _shouldInitProactively(){return cy()||iy()||tf()}}const WT=FT;var ig="@firebase/auth",lg="1.10.6";/**
1536 * @license
1537 * Copyright 2020 Google LLC
1538 *
1539 * Licensed under the Apache License, Version 2.0 (the "License");
1540 * you may not use this file except in compliance with the License.
1541 * You may obtain a copy of the License at
1542 *
1543 *   http://www.apache.org/licenses/LICENSE-2.0
1544 *
1545 * Unless required by applicable law or agreed to in writing, software
1546 * distributed under the License is distributed on an "AS IS" BASIS,
1547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1548 * See the License for the specific language governing permissions and
1549 * limitations under the License.
1550 */class ew{constructor(a){this.auth=a,this.internalListeners=new Map}getUid(){var a;return this.assertAuthConfigured(),((a=this.auth.currentUser)===null||a===void 0?void 0:a.uid)||null}async getToken(a){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(a)}:null}addAuthTokenListener(a){if(this.assertAuthConfigured(),this.internalListeners.has(a))return;const r=this.auth.onIdTokenChanged(s=>{a((s==null?void 0:s.stsTokenManager.accessToken)||null)});this.internalListeners.set(a,r),this.updateProactiveRefresh()}removeAuthTokenListener(a){this.assertAuthConfigured();const r=this.internalListeners.get(a);r&&(this.internalListeners.delete(a),r(),this.updateProactiveRefresh())}assertAuthConfigured(){F(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1551 * @license
1552 * Copyright 2020 Google LLC
1553 *
1554 * Licensed under the Apache License, Version 2.0 (the "License");
1555 * you may not use this file except in compliance with the License.
1556 * You may obtain a copy of the License at
1557 *
1558 *   http://www.apache.org/licenses/LICENSE-2.0
1559 *
1560 * Unless required by applicable law or agreed to in writing, software
1561 * distributed under the License is distributed on an "AS IS" BASIS,
1562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1563 * See the License for the specific language governing permissions and
1564 * limitations under the License.
1565 */function tw(i){switch(i){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function nw(i){xn(new Zt("auth",(a,{options:r})=>{const s=a.getProvider("app").getImmediate(),c=a.getProvider("heartbeat"),f=a.getProvider("app-check-internal"),{apiKey:h,authDomain:y}=s.options;F(h&&!h.includes(":"),"invalid-api-key",{appName:s.name});const m={apiKey:h,authDomain:y,clientPlatform:i,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:fy(i)},g=new bE(s,c,f,m);return OE(g,r),g},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((a,r,s)=>{a.getProvider("auth-internal").initialize()})),xn(new Zt("auth-internal",a=>{const r=Ba(a.getProvider("auth").getImmediate());return(s=>new ew(s))(r)},"PRIVATE").setInstantiationMode("EXPLICIT")),Yt(ig,lg,tw(i)),Yt(ig,lg,"esm2017")}/**
1566 * @license
1567 * Copyright 2021 Google LLC
1568 *
1569 * Licensed under the Apache License, Version 2.0 (the "License");
1570 * you may not use this file except in compliance with the License.
1571 * You may obtain a copy of the License at
1572 *
1573 *   http://www.apache.org/licenses/LICENSE-2.0
1574 *
1575 * Unless required by applicable law or agreed to in writing, software
1576 * distributed under the License is distributed on an "AS IS" BASIS,
1577 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1578 * See the License for the specific language governing permissions and
1579 * limitations under the License.
1580 */const aw=5*60,iw=kg("authIdTokenMaxAge")||aw;let rg=null;const lw=i=>async a=>{const r=a&&await a.getIdTokenResult(),s=r&&(new Date().getTime()-Date.parse(r.issuedAtTime))/1e3;if(s&&s>iw)return;const c=r==null?void 0:r.token;rg!==c&&(rg=c,await fetch(i,{method:c?"POST":"DELETE",headers:c?{Authorization:`Bearer ${c}`}:{}}))};function rw(i=Xg()){const a=Di(i,"auth");if(a.isInitialized())return a.getImmediate();const r=RE(i,{popupRedirectResolver:WT,persistence:[cT,FE,_y]}),s=kg("authTokenSyncURL");if(s&&typeof isSecureContext=="boolean"&&isSecureContext){const f=new URL(s,location.origin);if(location.origin===f.origin){const h=lw(f.toString());QE(r,h,()=>h(r.currentUser)),KE(r,y=>h(y))}}const c=gS("auth");return c&&NE(r,`http://${c}`),r}function sw(){var i,a;return(a=(i=document.getElementsByTagName("head"))===null||i===void 0?void 0:i[0])!==null&&a!==void 0?a:document}SE({loadJS(i){return new Promise((a,r)=>{const s=document.createElement("script");s.setAttribute("src",i),s.onload=a,s.onerror=c=>{const f=Xt("internal-error");f.customData=c,r(f)},s.type="text/javascript",s.charset="UTF-8",sw().appendChild(s)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});nw("Browser");const Ry="@firebase/installations",sf="0.6.17";/**
1581 * @license
1582 * Copyright 2019 Google LLC
1583 *
1584 * Licensed under the Apache License, Version 2.0 (the "License");
1585 * you may not use this file except in compliance with the License.
1586 * You may obtain a copy of the License at
1587 *
1588 *   http://www.apache.org/licenses/LICENSE-2.0
1589 *
1590 * Unless required by applicable law or agreed to in writing, software
1591 * distributed under the License is distributed on an "AS IS" BASIS,
1592 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1593 * See the License for the specific language governing permissions and
1594 * limitations under the License.
1595 */const Oy=1e4,Ny=`w:${sf}`,Dy="FIS_v2",ow="https://firebaseinstallations.googleapis.com/v1",uw=60*60*1e3,cw="installations",fw="Installations";/**
1596 * @license
1597 * Copyright 2019 Google LLC
1598 *
1599 * Licensed under the Apache License, Version 2.0 (the "License");
1600 * you may not use this file except in compliance with the License.
1601 * You may obtain a copy of the License at
1602 *
1603 *   http://www.apache.org/licenses/LICENSE-2.0
1604 *
1605 * Unless required by applicable law or agreed to in writing, software
1606 * distributed under the License is distributed on an "AS IS" BASIS,
1607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1608 * See the License for the specific language governing permissions and
1609 * limitations under the License.
1610 */const dw={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ja=new Ha(cw,fw,dw);function My(i){return i instanceof Ft&&i.code.includes("request-failed")}/**
1611 * @license
1612 * Copyright 2019 Google LLC
1613 *
1614 * Licensed under the Apache License, Version 2.0 (the "License");
1615 * you may not use this file except in compliance with the License.
1616 * You may obtain a copy of the License at
1617 *
1618 *   http://www.apache.org/licenses/LICENSE-2.0
1619 *
1620 * Unless required by applicable law or agreed to in writing, software
1621 * distributed under the License is distributed on an "AS IS" BASIS,
1622 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1623 * See the License for the specific language governing permissions and
1624 * limitations under the License.
1625 */function Uy({projectId:i}){return`${ow}/projects/${i}/installations`}function Iy(i){return{token:i.token,requestStatus:2,expiresIn:mw(i.expiresIn),creationTime:Date.now()}}async function zy(i,a){const s=(await a.json()).error;return ja.create("request-failed",{requestName:i,serverCode:s.code,serverMessage:s.message,serverStatus:s.status})}function Ly({apiKey:i}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":i})}function hw(i,{refreshToken:a}){const r=Ly(i);return r.append("Authorization",pw(a)),r}async function jy(i){const a=await i();return a.status>=500&&a.status<600?i():a}function mw(i){return Number(i.replace("s","000"))}function pw(i){return`${Dy} ${i}`}/**
1626 * @license
1627 * Copyright 2019 Google LLC
1628 *
1629 * Licensed under the Apache License, Version 2.0 (the "License");
1630 * you may not use this file except in compliance with the License.
1631 * You may obtain a copy of the License at
1632 *
1633 *   http://www.apache.org/licenses/LICENSE-2.0
1634 *
1635 * Unless required by applicable law or agreed to in writing, software
1636 * distributed under the License is distributed on an "AS IS" BASIS,
1637 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1638 * See the License for the specific language governing permissions and
1639 * limitations under the License.
1640 */async function gw({appConfig:i,heartbeatServiceProvider:a},{fid:r}){const s=Uy(i),c=Ly(i),f=a.getImmediate({optional:!0});if(f){const g=await f.getHeartbeatsHeader();g&&c.append("x-firebase-client",g)}const h={fid:r,authVersion:Dy,appId:i.appId,sdkVersion:Ny},y={method:"POST",headers:c,body:JSON.stringify(h)},m=await jy(()=>fetch(s,y));if(m.ok){const g=await m.json();return{fid:g.fid||r,registrationStatus:2,refreshToken:g.refreshToken,authToken:Iy(g.authToken)}}else throw await zy("Create Installation",m)}/**
1641 * @license
1642 * Copyright 2019 Google LLC
1643 *
1644 * Licensed under the Apache License, Version 2.0 (the "License");
1645 * you may not use this file except in compliance with the License.
1646 * You may obtain a copy of the License at
1647 *
1648 *   http://www.apache.org/licenses/LICENSE-2.0
1649 *
1650 * Unless required by applicable law or agreed to in writing, software
1651 * distributed under the License is distributed on an "AS IS" BASIS,
1652 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1653 * See the License for the specific language governing permissions and
1654 * limitations under the License.
1655 */function ky(i){return new Promise(a=>{setTimeout(a,i)})}/**
1656 * @license
1657 * Copyright 2019 Google LLC
1658 *
1659 * Licensed under the Apache License, Version 2.0 (the "License");
1660 * you may not use this file except in compliance with the License.
1661 * You may obtain a copy of the License at
1662 *
1663 *   http://www.apache.org/licenses/LICENSE-2.0
1664 *
1665 * Unless required by applicable law or agreed to in writing, software
1666 * distributed under the License is distributed on an "AS IS" BASIS,
1667 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1668 * See the License for the specific language governing permissions and
1669 * limitations under the License.
1670 */function yw(i){return btoa(String.fromCharCode(...i)).replace(/\+/g,"-").replace(/\//g,"_")}/**
1671 * @license
1672 * Copyright 2019 Google LLC
1673 *
1674 * Licensed under the Apache License, Version 2.0 (the "License");
1675 * you may not use this file except in compliance with the License.
1676 * You may obtain a copy of the License at
1677 *
1678 *   http://www.apache.org/licenses/LICENSE-2.0
1679 *
1680 * Unless required by applicable law or agreed to in writing, software
1681 * distributed under the License is distributed on an "AS IS" BASIS,
1682 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1683 * See the License for the specific language governing permissions and
1684 * limitations under the License.
1685 */const vw=/^[cdef][\w-]{21}$/,kc="";function bw(){try{const i=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(i),i[0]=112+i[0]%16;const r=Sw(i);return vw.test(r)?r:kc}catch{return kc}}function Sw(i){return yw(i).substr(0,22)}/**
1686 * @license
1687 * Copyright 2019 Google LLC
1688 *
1689 * Licensed under the Apache License, Version 2.0 (the "License");
1690 * you may not use this file except in compliance with the License.
1691 * You may obtain a copy of the License at
1692 *
1693 *   http://www.apache.org/licenses/LICENSE-2.0
1694 *
1695 * Unless required by applicable law or agreed to in writing, software
1696 * distributed under the License is distributed on an "AS IS" BASIS,
1697 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1698 * See the License for the specific language governing permissions and
1699 * limitations under the License.
1700 */function Bs(i){return`${i.appName}!${i.appId}`}/**
1701 * @license
1702 * Copyright 2019 Google LLC
1703 *
1704 * Licensed under the Apache License, Version 2.0 (the "License");
1705 * you may not use this file except in compliance with the License.
1706 * You may obtain a copy of the License at
1707 *
1708 *   http://www.apache.org/licenses/LICENSE-2.0
1709 *
1710 * Unless required by applicable law or agreed to in writing, software
1711 * distributed under the License is distributed on an "AS IS" BASIS,
1712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1713 * See the License for the specific language governing permissions and
1714 * limitations under the License.
1715 */const Hy=new Map;function By(i,a){const r=Bs(i);qy(r,a),_w(r,a)}function qy(i,a){const r=Hy.get(i);if(r)for(const s of r)s(a)}function _w(i,a){const r=Ew();r&&r.postMessage({key:i,fid:a}),Tw()}let Ia=null;function Ew(){return!Ia&&"BroadcastChannel"in self&&(Ia=new BroadcastChannel("[Firebase] FID Change"),Ia.onmessage=i=>{qy(i.data.key,i.data.fid)}),Ia}function Tw(){Hy.size===0&&Ia&&(Ia.close(),Ia=null)}/**
1716 * @license
1717 * Copyright 2019 Google LLC
1718 *
1719 * Licensed under the Apache License, Version 2.0 (the "License");
1720 * you may not use this file except in compliance with the License.
1721 * You may obtain a copy of the License at
1722 *
1723 *   http://www.apache.org/licenses/LICENSE-2.0
1724 *
1725 * Unless required by applicable law or agreed to in writing, software
1726 * distributed under the License is distributed on an "AS IS" BASIS,
1727 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1728 * See the License for the specific language governing permissions and
1729 * limitations under the License.
1730 */const ww="firebase-installations-database",Aw=1,ka="firebase-installations-store";let Ac=null;function of(){return Ac||(Ac=Pg(ww,Aw,{upgrade:(i,a)=>{switch(a){case 0:i.createObjectStore(ka)}}})),Ac}async function Ds(i,a){const r=Bs(i),c=(await of()).transaction(ka,"readwrite"),f=c.objectStore(ka),h=await f.get(r);return await f.put(a,r),await c.done,(!h||h.fid!==a.fid)&&By(i,a.fid),a}async function Vy(i){const a=Bs(i),s=(await of()).transaction(ka,"readwrite");await s.objectStore(ka).delete(a),await s.done}async function qs(i,a){const r=Bs(i),c=(await of()).transaction(ka,"readwrite"),f=c.objectStore(ka),h=await f.get(r),y=a(h);return y===void 0?await f.delete(r):await f.put(y,r),await c.done,y&&(!h||h.fid!==y.fid)&&By(i,y.fid),y}/**
1731 * @license
1732 * Copyright 2019 Google LLC
1733 *
1734 * Licensed under the Apache License, Version 2.0 (the "License");
1735 * you may not use this file except in compliance with the License.
1736 * You may obtain a copy of the License at
1737 *
1738 *   http://www.apache.org/licenses/LICENSE-2.0
1739 *
1740 * Unless required by applicable law or agreed to in writing, software
1741 * distributed under the License is distributed on an "AS IS" BASIS,
1742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1743 * See the License for the specific language governing permissions and
1744 * limitations under the License.
1745 */async function uf(i){let a;const r=await qs(i.appConfig,s=>{const c=Cw(s),f=xw(i,c);return a=f.registrationPromise,f.installationEntry});return r.fid===kc?{installationEntry:await a}:{installationEntry:r,registrationPromise:a}}function Cw(i){const a=i||{fid:bw(),registrationStatus:0};return Gy(a)}function xw(i,a){if(a.registrationStatus===0){if(!navigator.onLine){const c=Promise.reject(ja.create("app-offline"));return{installationEntry:a,registrationPromise:c}}const r={fid:a.fid,registrationStatus:1,registrationTime:Date.now()},s=Rw(i,r);return{installationEntry:r,registrationPromise:s}}else return a.registrationStatus===1?{installationEntry:a,registrationPromise:Ow(i)}:{installationEntry:a}}async function Rw(i,a){try{const r=await gw(i,a);return Ds(i.appConfig,r)}catch(r){throw My(r)&&r.customData.serverCode===409?await Vy(i.appConfig):await Ds(i.appConfig,{fid:a.fid,registrationStatus:0}),r}}async function Ow(i){let a=await sg(i.appConfig);for(;a.registrationStatus===1;)await ky(100),a=await sg(i.appConfig);if(a.registrationStatus===0){const{installationEntry:r,registrationPromise:s}=await uf(i);return s||r}return a}function sg(i){return qs(i,a=>{if(!a)throw ja.create("installation-not-found");return Gy(a)})}function Gy(i){return Nw(i)?{fid:i.fid,registrationStatus:0}:i}function Nw(i){return i.registrationStatus===1&&i.registrationTime+Oy<Date.now()}/**
1746 * @license
1747 * Copyright 2019 Google LLC
1748 *
1749 * Licensed under the Apache License, Version 2.0 (the "License");
1750 * you may not use this file except in compliance with the License.
1751 * You may obtain a copy of the License at
1752 *
1753 *   http://www.apache.org/licenses/LICENSE-2.0
1754 *
1755 * Unless required by applicable law or agreed to in writing, software
1756 * distributed under the License is distributed on an "AS IS" BASIS,
1757 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1758 * See the License for the specific language governing permissions and
1759 * limitations under the License.
1760 */async function Dw({appConfig:i,heartbeatServiceProvider:a},r){const s=Mw(i,r),c=hw(i,r),f=a.getImmediate({optional:!0});if(f){const g=await f.getHeartbeatsHeader();g&&c.append("x-firebase-client",g)}const h={installation:{sdkVersion:Ny,appId:i.appId}},y={method:"POST",headers:c,body:JSON.stringify(h)},m=await jy(()=>fetch(s,y));if(m.ok){const g=await m.json();return Iy(g)}else throw await zy("Generate Auth Token",m)}function Mw(i,{fid:a}){return`${Uy(i)}/${a}/authTokens:generate`}/**
1761 * @license
1762 * Copyright 2019 Google LLC
1763 *
1764 * Licensed under the Apache License, Version 2.0 (the "License");
1765 * you may not use this file except in compliance with the License.
1766 * You may obtain a copy of the License at
1767 *
1768 *   http://www.apache.org/licenses/LICENSE-2.0
1769 *
1770 * Unless required by applicable law or agreed to in writing, software
1771 * distributed under the License is distributed on an "AS IS" BASIS,
1772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1773 * See the License for the specific language governing permissions and
1774 * limitations under the License.
1775 */async function cf(i,a=!1){let r;const s=await qs(i.appConfig,f=>{if(!Py(f))throw ja.create("not-registered");const h=f.authToken;if(!a&&zw(h))return f;if(h.requestStatus===1)return r=Uw(i,a),f;{if(!navigator.onLine)throw ja.create("app-offline");const y=jw(f);return r=Iw(i,y),y}});return r?await r:s.authToken}async function Uw(i,a){let r=await og(i.appConfig);for(;r.authToken.requestStatus===1;)await ky(100),r=await og(i.appConfig);const s=r.authToken;return s.requestStatus===0?cf(i,a):s}function og(i){return qs(i,a=>{if(!Py(a))throw ja.create("not-registered");const r=a.authToken;return kw(r)?Object.assign(Object.assign({},a),{authToken:{requestStatus:0}}):a})}async function Iw(i,a){try{const r=await Dw(i,a),s=Object.assign(Object.assign({},a),{authToken:r});return await Ds(i.appConfig,s),r}catch(r){if(My(r)&&(r.customData.serverCode===401||r.customData.serverCode===404))await Vy(i.appConfig);else{const s=Object.assign(Object.assign({},a),{authToken:{requestStatus:0}});await Ds(i.appConfig,s)}throw r}}function Py(i){return i!==void 0&&i.registrationStatus===2}function zw(i){return i.requestStatus===2&&!Lw(i)}function Lw(i){const a=Date.now();return a<i.creationTime||i.creationTime+i.expiresIn<a+uw}function jw(i){const a={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},i),{authToken:a})}function kw(i){return i.requestStatus===1&&i.requestTime+Oy<Date.now()}/**
1776 * @license
1777 * Copyright 2019 Google LLC
1778 *
1779 * Licensed under the Apache License, Version 2.0 (the "License");
1780 * you may not use this file except in compliance with the License.
1781 * You may obtain a copy of the License at
1782 *
1783 *   http://www.apache.org/licenses/LICENSE-2.0
1784 *
1785 * Unless required by applicable law or agreed to in writing, software
1786 * distributed under the License is distributed on an "AS IS" BASIS,
1787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1788 * See the License for the specific language governing permissions and
1789 * limitations under the License.
1790 */async function Hw(i){const a=i,{installationEntry:r,registrationPromise:s}=await uf(a);return s?s.catch(console.error):cf(a).catch(console.error),r.fid}/**
1791 * @license
1792 * Copyright 2019 Google LLC
1793 *
1794 * Licensed under the Apache License, Version 2.0 (the "License");
1795 * you may not use this file except in compliance with the License.
1796 * You may obtain a copy of the License at
1797 *
1798 *   http://www.apache.org/licenses/LICENSE-2.0
1799 *
1800 * Unless required by applicable law or agreed to in writing, software
1801 * distributed under the License is distributed on an "AS IS" BASIS,
1802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1803 * See the License for the specific language governing permissions and
1804 * limitations under the License.
1805 */async function Bw(i,a=!1){const r=i;return await qw(r),(await cf(r,a)).token}async function qw(i){const{registrationPromise:a}=await uf(i);a&&await a}/**
1806 * @license
1807 * Copyright 2019 Google LLC
1808 *
1809 * Licensed under the Apache License, Version 2.0 (the "License");
1810 * you may not use this file except in compliance with the License.
1811 * You may obtain a copy of the License at
1812 *
1813 *   http://www.apache.org/licenses/LICENSE-2.0
1814 *
1815 * Unless required by applicable law or agreed to in writing, software
1816 * distributed under the License is distributed on an "AS IS" BASIS,
1817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1818 * See the License for the specific language governing permissions and
1819 * limitations under the License.
1820 */function Vw(i){if(!i||!i.options)throw Cc("App Configuration");if(!i.name)throw Cc("App Name");const a=["projectId","apiKey","appId"];for(const r of a)if(!i.options[r])throw Cc(r);return{appName:i.name,projectId:i.options.projectId,apiKey:i.options.apiKey,appId:i.options.appId}}function Cc(i){return ja.create("missing-app-config-values",{valueName:i})}/**
1821 * @license
1822 * Copyright 2020 Google LLC
1823 *
1824 * Licensed under the Apache License, Version 2.0 (the "License");
1825 * you may not use this file except in compliance with the License.
1826 * You may obtain a copy of the License at
1827 *
1828 *   http://www.apache.org/licenses/LICENSE-2.0
1829 *
1830 * Unless required by applicable law or agreed to in writing, software
1831 * distributed under the License is distributed on an "AS IS" BASIS,
1832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1833 * See the License for the specific language governing permissions and
1834 * limitations under the License.
1835 */const Yy="installations",Gw="installations-internal",Pw=i=>{const a=i.getProvider("app").getImmediate(),r=Vw(a),s=Di(a,"heartbeat");return{app:a,appConfig:r,heartbeatServiceProvider:s,_delete:()=>Promise.resolve()}},Yw=i=>{const a=i.getProvider("app").getImmediate(),r=Di(a,Yy).getImmediate();return{getId:()=>Hw(r),getToken:c=>Bw(r,c)}};function Xw(){xn(new Zt(Yy,Pw,"PUBLIC")),xn(new Zt(Gw,Yw,"PRIVATE"))}Xw();Yt(Ry,sf);Yt(Ry,sf,"esm2017");/**
1836 * @license
1837 * Copyright 2019 Google LLC
1838 *
1839 * Licensed under the Apache License, Version 2.0 (the "License");
1840 * you may not use this file except in compliance with the License.
1841 * You may obtain a copy of the License at
1842 *
1843 *   http://www.apache.org/licenses/LICENSE-2.0
1844 *
1845 * Unless required by applicable law or agreed to in writing, software
1846 * distributed under the License is distributed on an "AS IS" BASIS,
1847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1848 * See the License for the specific language governing permissions and
1849 * limitations under the License.
1850 */const Ms="analytics",Kw="firebase_id",Qw="origin",Zw=60*1e3,$w="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",ff="https://www.googletagmanager.com/gtag/js";/**
1851 * @license
1852 * Copyright 2019 Google LLC
1853 *
1854 * Licensed under the Apache License, Version 2.0 (the "License");
1855 * you may not use this file except in compliance with the License.
1856 * You may obtain a copy of the License at
1857 *
1858 *   http://www.apache.org/licenses/LICENSE-2.0
1859 *
1860 * Unless required by applicable law or agreed to in writing, software
1861 * distributed under the License is distributed on an "AS IS" BASIS,
1862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1863 * See the License for the specific language governing permissions and
1864 * limitations under the License.
1865 */const ut=new Zc("@firebase/analytics");/**
1866 * @license
1867 * Copyright 2019 Google LLC
1868 *
1869 * Licensed under the Apache License, Version 2.0 (the "License");
1870 * you may not use this file except in compliance with the License.
1871 * You may obtain a copy of the License at
1872 *
1873 *   http://www.apache.org/licenses/LICENSE-2.0
1874 *
1875 * Unless required by applicable law or agreed to in writing, software
1876 * distributed under the License is distributed on an "AS IS" BASIS,
1877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1878 * See the License for the specific language governing permissions and
1879 * limitations under the License.
1880 */const Jw={"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},St=new Ha("analytics","Analytics",Jw);/**
1881 * @license
1882 * Copyright 2019 Google LLC
1883 *
1884 * Licensed under the Apache License, Version 2.0 (the "License");
1885 * you may not use this file except in compliance with the License.
1886 * You may obtain a copy of the License at
1887 *
1888 *   http://www.apache.org/licenses/LICENSE-2.0
1889 *
1890 * Unless required by applicable law or agreed to in writing, software
1891 * distributed under the License is distributed on an "AS IS" BASIS,
1892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1893 * See the License for the specific language governing permissions and
1894 * limitations under the License.
1895 */function Fw(i){if(!i.startsWith(ff)){const a=St.create("invalid-gtag-resource",{gtagURL:i});return ut.warn(a.message),""}return i}function Xy(i){return Promise.all(i.map(a=>a.catch(r=>r)))}function Ww(i,a){let r;return window.trustedTypes&&(r=window.trustedTypes.createPolicy(i,a)),r}function eA(i,a){const r=Ww("firebase-js-sdk-policy",{createScriptURL:Fw}),s=document.createElement("script"),c=`${ff}?l=${i}&id=${a}`;s.src=r?r==null?void 0:r.createScriptURL(c):c,s.async=!0,document.head.appendChild(s)}function tA(i){let a=[];return Array.isArray(window[i])?a=window[i]:window[i]=a,a}async function nA(i,a,r,s,c,f){const h=s[c];try{if(h)await a[h];else{const m=(await Xy(r)).find(g=>g.measurementId===c);m&&await a[m.appId]}}catch(y){ut.error(y)}i("config",c,f)}async function aA(i,a,r,s,c){try{let f=[];if(c&&c.send_to){let h=c.send_to;Array.isArray(h)||(h=[h]);const y=await Xy(r);for(const m of h){const g=y.find(A=>A.measurementId===m),T=g&&a[g.appId];if(T)f.push(T);else{f=[];break}}}f.length===0&&(f=Object.values(a)),await Promise.all(f),i("event",s,c||{})}catch(f){ut.error(f)}}function iA(i,a,r,s){async function c(f,...h){try{if(f==="event"){const[y,m]=h;await aA(i,a,r,y,m)}else if(f==="config"){const[y,m]=h;await nA(i,a,r,s,y,m)}else if(f==="consent"){const[y,m]=h;i("consent",y,m)}else if(f==="get"){const[y,m,g]=h;i("get",y,m,g)}else if(f==="set"){const[y]=h;i("set",y)}else i(f,...h)}catch(y){ut.error(y)}}return c}function lA(i,a,r,s,c){let f=function(...h){window[s].push(arguments)};return window[c]&&typeof window[c]=="function"&&(f=window[c]),window[c]=iA(f,i,a,r),{gtagCore:f,wrappedGtag:window[c]}}function rA(i){const a=window.document.getElementsByTagName("script");for(const r of Object.values(a))if(r.src&&r.src.includes(ff)&&r.src.includes(i))return r;return null}/**
1896 * @license
1897 * Copyright 2020 Google LLC
1898 *
1899 * Licensed under the Apache License, Version 2.0 (the "License");
1900 * you may not use this file except in compliance with the License.
1901 * You may obtain a copy of the License at
1902 *
1903 *   http://www.apache.org/licenses/LICENSE-2.0
1904 *
1905 * Unless required by applicable law or agreed to in writing, software
1906 * distributed under the License is distributed on an "AS IS" BASIS,
1907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1908 * See the License for the specific language governing permissions and
1909 * limitations under the License.
1910 */const sA=30,oA=1e3;class uA{constructor(a={},r=oA){this.throttleMetadata=a,this.intervalMillis=r}getThrottleMetadata(a){return this.throttleMetadata[a]}setThrottleMetadata(a,r){this.throttleMetadata[a]=r}deleteThrottleMetadata(a){delete this.throttleMetadata[a]}}const Ky=new uA;function cA(i){return new Headers({Accept:"application/json","x-goog-api-key":i})}async function fA(i){var a;const{appId:r,apiKey:s}=i,c={method:"GET",headers:cA(s)},f=$w.replace("{app-id}",r),h=await fetch(f,c);if(h.status!==200&&h.status!==304){let y="";try{const m=await h.json();!((a=m.error)===null||a===void 0)&&a.message&&(y=m.error.message)}catch{}throw St.create("config-fetch-failed",{httpStatus:h.status,responseMessage:y})}return h.json()}async function dA(i,a=Ky,r){const{appId:s,apiKey:c,measurementId:f}=i.options;if(!s)throw St.create("no-app-id");if(!c){if(f)return{measurementId:f,appId:s};throw St.create("no-api-key")}const h=a.getThrottleMetadata(s)||{backoffCount:0,throttleEndTimeMillis:Date.now()},y=new pA;return setTimeout(async()=>{y.abort()},Zw),Qy({appId:s,apiKey:c,measurementId:f},h,y,a)}async function Qy(i,{throttleEndTimeMillis:a,backoffCount:r},s,c=Ky){var f;const{appId:h,measurementId:y}=i;try{await hA(s,a)}catch(m){if(y)return ut.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${y} provided in the "measurementId" field in the local Firebase config. [${m==null?void 0:m.message}]`),{appId:h,measurementId:y};throw m}try{const m=await fA(i);return c.deleteThrottleMetadata(h),m}catch(m){const g=m;if(!mA(g)){if(c.deleteThrottleMetadata(h),y)return ut.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${y} provided in the "measurementId" field in the local Firebase config. [${g==null?void 0:g.message}]`),{appId:h,measurementId:y};throw m}const T=Number((f=g==null?void 0:g.customData)===null||f===void 0?void 0:f.httpStatus)===503?Mp(r,c.intervalMillis,sA):Mp(r,c.intervalMillis),A={throttleEndTimeMillis:Date.now()+T,backoffCount:r+1};return c.setThrottleMetadata(h,A),ut.debug(`Calling attemptFetch again in ${T} millis`),Qy(i,A,s,c)}}function hA(i,a){return new Promise((r,s)=>{const c=Math.max(a-Date.now(),0),f=setTimeout(r,c);i.addEventListener(()=>{clearTimeout(f),s(St.create("fetch-throttle",{throttleEndTimeMillis:a}))})})}function mA(i){if(!(i instanceof Ft)||!i.customData)return!1;const a=Number(i.customData.httpStatus);return a===429||a===500||a===503||a===504}class pA{constructor(){this.listeners=[]}addEventListener(a){this.listeners.push(a)}abort(){this.listeners.forEach(a=>a())}}async function gA(i,a,r,s,c){if(c&&c.global){i("event",r,s);return}else{const f=await a,h=Object.assign(Object.assign({},s),{send_to:f});i("event",r,h)}}/**
1911 * @license
1912 * Copyright 2020 Google LLC
1913 *
1914 * Licensed under the Apache License, Version 2.0 (the "License");
1915 * you may not use this file except in compliance with the License.
1916 * You may obtain a copy of the License at
1917 *
1918 *   http://www.apache.org/licenses/LICENSE-2.0
1919 *
1920 * Unless required by applicable law or agreed to in writing, software
1921 * distributed under the License is distributed on an "AS IS" BASIS,
1922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1923 * See the License for the specific language governing permissions and
1924 * limitations under the License.
1925 */async function yA(){if(Bg())try{await qg()}catch(i){return ut.warn(St.create("indexeddb-unavailable",{errorInfo:i==null?void 0:i.toString()}).message),!1}else return ut.warn(St.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function vA(i,a,r,s,c,f,h){var y;const m=dA(i);m.then(L=>{r[L.measurementId]=L.appId,i.options.measurementId&&L.measurementId!==i.options.measurementId&&ut.warn(`The measurement ID in the local Firebase config (${i.options.measurementId}) does not match the measurement ID fetched from the server (${L.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(L=>ut.error(L)),a.push(m);const g=yA().then(L=>{if(L)return s.getId()}),[T,A]=await Promise.all([m,g]);
1925rA(f)||eA(f,T.measurementId),c("js",new Date);const S=(y=h==null?void 0:h.config)!==null&&y!==void 0?y:{};return S[Qw]="firebase",S.update=!0,A!=null&&(S[Kw]=A),c("config",T.measurementId,S),T.measurementId}/**
1926 * @license
1927 * Copyright 2019 Google LLC
1928 *
1929 * Licensed under the Apache License, Version 2.0 (the "License");
1930 * you may not use this file except in compliance with the License.
1931 * You may obtain a copy of the License at
1932 *
1933 *   http://www.apache.org/licenses/LICENSE-2.0
1934 *
1935 * Unless required by applicable law or agreed to in writing, software
1936 * distributed under the License is distributed on an "AS IS" BASIS,
1937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1938 * See the License for the specific language governing permissions and
1939 * limitations under the License.
1940 */class bA{constructor(a){this.app=a}_delete(){return delete Il[this.app.options.appId],Promise.resolve()}}let Il={},ug=[];const cg={};let xc="dataLayer",SA="gtag",fg,Zy,dg=!1;function _A(){const i=[];if(Hg()&&i.push("This is a browser extension environment."),CS()||i.push("Cookies are not available."),i.length>0){const a=i.map((s,c)=>`(${c+1}) ${s}`).join(" "),r=St.create("invalid-analytics-context",{errorInfo:a});ut.warn(r.message)}}function EA(i,a,r){_A();const s=i.options.appId;if(!s)throw St.create("no-app-id");if(!i.options.apiKey)if(i.options.measurementId)ut.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${i.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw St.create("no-api-key");if(Il[s]!=null)throw St.create("already-exists",{id:s});if(!dg){tA(xc);const{wrappedGtag:f,gtagCore:h}=lA(Il,ug,cg,xc,SA);Zy=f,fg=h,dg=!0}return Il[s]=vA(i,ug,cg,a,fg,xc,r),new bA(i)}function TA(i=Xg()){i=Wt(i);const a=Di(i,Ms);return a.isInitialized()?a.getImmediate():wA(i)}function wA(i,a={}){const r=Di(i,Ms);if(r.isInitialized()){const c=r.getImmediate();if(za(a,r.getOptions()))return c;throw St.create("already-initialized")}return r.initialize({options:a})}function Zl(i,a,r,s){i=Wt(i),gA(Zy,Il[i.app.options.appId],a,r,s).catch(c=>ut.error(c))}const hg="@firebase/analytics",mg="0.10.16";function AA(){xn(new Zt(Ms,(a,{options:r})=>{const s=a.getProvider("app").getImmediate(),c=a.getProvider("installations-internal").getImmediate();return EA(s,c,r)},"PUBLIC")),xn(new Zt("analytics-internal",i,"PRIVATE")),Yt(hg,mg),Yt(hg,mg,"esm2017");function i(a){try{const r=a.getProvider(Ms).getImmediate();return{logEvent:(s,c,f)=>Zl(r,s,c,f)}}catch(r){throw St.create("interop-component-reg-failed",{reason:r})}}}AA();const CA={apiKey:"AIzaSyBDcCDSc5B0fYGAOhBxPANftJq1KF_J3mc",authDomain:"readinglist-3f20e.firebaseapp.com",projectId:"readinglist-3f20e",storageBucket:"readinglist-3f20e.firebasestorage.app",messagingSenderId:"115932107988",appId:"1:115932107988:web:3030dbd2e8fc38e8665741",measurementId:"G-L7W0G0WQ02"},$y=Yg(CA),gs=rw($y),fa=TA($y);function Vs(i){const a=Bt();O.useEffect(()=>{if(fa){const r=a.pathname+a.search;Zl(fa,"screen_view",{firebase_screen:a.pathname,firebase_screen_class:"ReactApp",page_path:r,page_location:window.location.href,page_title:i})}},[a,i])}function xA(){return Vs("Home"),b.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 to-slate-700 flex flex-col items-center justify-center text-white p-4",children:[b.jsx("meta",{name:"author",content:"Imre"}),b.jsx("link",{rel:"author",href:"https://x.com/imrenagi/"}),b.jsxs("div",{className:"max-w-2xl text-center",children:[b.jsx("h1",{className:"text-5xl font-bold mb-6 tracking-tight",children:"Share Your Daily Reads"}),b.jsx("p",{className:"text-xl mb-10 text-slate-300",children:"Curate and share your favorite blogs, articles, and hidden gems with the world. Inspire others and discover new perspectives. It all starts here."}),b.jsx(kt,{to:"/login",className:"bg-sky-500 hover:bg-sky-600 text-white font-semibold py-3 px-8 rounded-lg text-lg shadow-lg hover:shadow-sky-500/50 transition duration-300 ease-in-out transform hover:-translate-y-1",children:"Share Your Reading List"})]}),b.jsxs("footer",{className:"absolute bottom-8 text-slate-400 text-sm flex flex-row items-center justify-between",children:[b.jsxs("p",{className:"text-center",children:["© ",new Date().getFullYear()," DailyReadingLog. All rights reserved.",b.jsx("span",{children:b.jsx(kt,{to:"/privacy-policy",className:"ml-2 hover:underline",children:"Privacy policy"})})]}),b.jsx(kt,{hidden:!0,to:"/imrenagi",className:"ml-2 hover:underline",children:"Imre Nagi"})]})]})}new TextEncoder;const Hc=new TextDecoder;function RA(i){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(i);
1940const a=atob(i),r=new Uint8Array(a.length);for(let s=0;s<a.length;s++)r[s]=a.charCodeAt(s);return r}function OA(i){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof i=="string"?i:Hc.decode(i),{alphabet:"base64url"});let a=i;a instanceof Uint8Array&&(a=Hc.decode(a)),a=a.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return RA(a)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}class Jy extends Error{constructor(r,s){var c;super(r,s);Je(this,"code","ERR_JOSE_GENERIC");this.name=this.constructor.name,(c=Error.captureStackTrace)==null||c.call(Error,this,this.constructor)}}Je(Jy,"code","ERR_JOSE_GENERIC");class na extends Jy{constructor(){super(...arguments);Je(this,"code","ERR_JWT_INVALID")}}Je(na,"code","ERR_JWT_INVALID");function NA(i){return typeof i=="object"&&i!==null}const DA=i=>{if(!NA(i)||Object.prototype.toString.call(i)!=="[object Object]")return!1;if(Object.getPrototypeOf(i)===null)return!0;let a=i;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(i)===a};function MA(i){if(typeof i!="string")throw new na("JWTs must use Compact JWS serialization, JWT must be a string");const{1:a,length:r}=i.split(".");if(r===5)throw new na("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new na("Invalid JWT");if(!a)throw new na("JWTs must contain a payload");let s;try{s=OA(a)}catch{throw new na("Failed to base64url decode the payload")}let c;try{c=JSON.parse(Hc.decode(s))}catch{throw new na("Failed to parse the decoded payload as JSON")}if(!DA(c))throw new na("Invalid JWT Claims Set");return c}class UA{constructor(a={}){Je(this,"baseUrl","");Je(this,"securityData",null);Je(this,"securityWorker");Je(this,"abortControllers",new Map);Je(this,"customFetch",(...a)=>fetch(...a));Je(this,"baseApiParams",{credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"});Je(this,"setSecurityData",a=>{this.securityData=a});Je(this,"contentFormatters",{"application/json":a=>a!==null&&(typeof a=="object"||typeof a=="string")?JSON.stringify(a):a,"text/plain":a=>a!==null&&typeof a!="string"?JSON.stringify(a):a,"multipart/form-data":a=>Object.keys(a||{}).reduce((r,s)=>{const c=a[s];return r.append(s,c instanceof Blob?c:typeof c=="object"&&c!==null?JSON.stringify(c):`${c}`),r},new FormData),"application/x-www-form-urlencoded":a=>this.toQueryString(a)});Je(this,"createAbortSignal",a=>{if(this.abortControllers.has(a)){const s=this.abortControllers.get(a);return s?s.signal:void 0}const r=new AbortController;return this.abortControllers.set(a,r),r.signal});Je(this,"abortRequest",a=>{const r=this.abortControllers.get(a);r&&(r.abort(),this.abortControllers.delete(a))});Je(this,"request",async({body:a,secure:r,path:s,type:c,query:f,format:h,baseUrl:y,cancelToken:m,...g})=>{const T=(typeof r=="boolean"?r:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{}
1940,A=this.mergeRequestParams(g,T),S=f&&this.toQueryString(f),L=this.contentFormatters[c||"application/json"],N=h||A.format;return this.customFetch(`${y||this.baseUrl||""}${s}${S?`?${S}`:""}`,{...A,headers:{...A.headers||{},...c&&c!=="multipart/form-data"?{"Content-Type":c}:{}},signal:(m?this.createAbortSignal(m):A.signal)||null,body:typeof a>"u"||a===null?null:L(a)}).then(async H=>{const B=H.clone();B.data=null,B.error=null;const k=N?await H[N]().then(q=>(B.ok?B.data=q:B.error=q,B)).catch(q=>(B.error=q,B)):B;if(m&&this.abortControllers.delete(m),!H.ok)throw k;return k})});Object.assign(this,a)}encodeQueryParam(a,r){return`${encodeURIComponent(a)}=${encodeURIComponent(typeof r=="number"?r:`${r}`)}`}addQueryParam(a,r){return this.encodeQueryParam(r,a[r])}addArrayQueryParam(a,r){return a[r].map(c=>this.encodeQueryParam(r,c)).join("&")}toQueryString(a){const r=a||{};return Object.keys(r).filter(c=>typeof r[c]<"u").map(c=>Array.isArray(r[c])?this.addArrayQueryParam(r,c):this.addQueryParam(r,c)).join("&")}addQueryParams(a){const r=this.toQueryString(a);return r?`?${r}`:""}
1940mergeRequestParams(a,r){return{...this.baseApiParams,...a,...r||{},headers:{...this.baseApiParams.headers||{},...a.headers||{},...r&&r.headers||{}}}}}class IA extends UA{constructor(){super(...arguments);Je(this,"api",{userServiceSignout:(r,s={})=>this.request({path:"/api/v1/auth/signout",method:"POST",body:r,secure:!0,type:"application/json",format:"json",...s}),userServiceVerifyToken:(r,s={})=>this.request({path:"/api/v1/auth/token/verify",method:"POST",body:r,secure:!0,type:"application/json",format:"json",...s}),userServiceGetMe:(r={})=>this.request({path:"/api/v1/me",method:"GET",secure:!0,format:"json",...r}),postServiceListPost:(r,s={})=>this.request({path:"/api/v1/posts",method:"GET",query:r,secure:!0,format:"json",...s}),postServiceCreatePost:(r,s={})=>this.request({path:"/api/v1/posts",method:"POST",body:r,secure:!0,type:"application/json",format:"json",...s}),postServiceDeletePost:(r,s={})=>this.request({path:`/api/v1/posts/${r}`,method:"DELETE",secure:!0,format:"json",...s}),userServiceCreateUser:(r,s={})=>this.request({path:"/api/v1/users",method:"POST",body:r,secure:!0,type:"application/json",format:"json",...s}),userServiceGetUser:(r,s={})=>this.request({path:`/api/v1/users/${r}`,method:"GET",secure:!0,format:"json",...s}),userServiceSendVerificationEmail:(r,s,c={})=>this.request({path:`/api/v1/users${r}`,method:"POST",body:s,secure:!0,type:"application/json",format:"json",...c})})}}const En=new IA({}),Fy=O.createContext(void 0),zA=({children:i})=>{const[a,r]=O.useState(null),[s,c]=O.useState(!1),[f,h]=O.useState(!0),[y,m]=O.useState(null),g=async(S,L)=>{h(!0),c(!1);const H=await(await XE(gs,S,L)).user.getIdToken(),B=await En.api.userServiceVerifyToken({},{headers:{Authorization:`Bearer ${H}`}});if(!B.ok)c(!1);
1940else{const k=B.data||null;m(k),c(!0)}h(!1)},T=async()=>{try{await gs.signOut(),m(null);const S=await En.api.userServiceSignout({credentials:"include"});S.ok||console.error("Backend signout failed:",S.status,await S.text())}catch(S){console.error("Error signing out:",S)}finally{c(!1),m(null)}},A=()=>{const S="readinglist.imrenagi.com";return document.cookie.split(";").map(H=>H.trim()).find(H=>H.startsWith(`${S}=`))};return O.useEffect(()=>{const S=ZE(gs,async L=>{var N;if(r(L),L)try{if(!s){console.log("[AuthContext] User is signed in: ",L);const H=await L.getIdToken(),B=A();if(console.log("[AuthContext] Cookie found:",B?"Yes":"No"),B){if(L.isAnonymous)c(!0);else{const k=B.split("=")[1];let q=!0;if(k){const J=((N=MA(k).firebase)==null?void 0:N.sign_in_provider)==="anonymous";q=!L.isAnonymous&&!J}if(q){const Y=await En.api.userServiceGetMe({credentials:"include"});if(!Y.ok)console.error("Failed to fetch user data from backend:",Y.status),c(!1);else{const J=Y.data||null;m(J),c(!0)}}}h(!1);return}else{const k=await En.api.userServiceVerifyToken({},{headers:{Authorization:`Bearer ${H}`}});if(!k.ok)console.error("Failed to fetch user data from backend:",k.status),c(!1);else{if(!L.isAnonymous){const q=k.data||null;console.log("User data from backend:",q),m(q)}c(!0)}}}}catch(H){console.error("Error verifying token with backend:",H),c(!1),m(null)}else{c(!1),console.log("[AnonymousLogin] No user is signed in. Signing in anonymously...");try{await qE(gs)}catch(H){console.log("[AnonymousLogin] Error signing in:",H)}}h(!1)});return()=>S()},[]),b.jsx(Fy.Provider,{value:{fbUser:a,isAuthenticatedWithBackend:s,loadingAuth:f,signOut:T,signInWithEmailPassword:g,setIsAuthenticatedWithBackend:c,setLoadingAuth:h,user:y,setUser:m},children:i})},Gs=()=>{const i=O.useContext(Fy);if(i===void 0)throw new Error("useAuth must be used within an AuthProvider");return i};function LA(){const[i,a]=O.useState(""),[r,s]=O.useState(""),[c,f]=O.useState(null),h=ql(),{user:y,signInWithEmailPassword:m}=Gs();Vs("Login"),O.useEffect(()=>{y&&h("/"+y.slug)},[y,h]);const g=async T=>{var A;T.preventDefault(),f(null);try{await m(i,r)}catch(S){if(S!=null&&S.error){const L=(A=S==null?void 0:S.error)==null?void 0:A.message;f(L||"An error occurred while signing in.")}else S instanceof Error?f(S.message):f("An unknown error occurred.")}};return b.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-slate-900 text-gray-100 px-4",children:[b.jsx("title",{children:"Login to DailyReadingLog"}),b.jsx("meta",{name:"description",content:"Login to your account. Create a new account or access your existing one to share your reading list."}),b.jsxs("div",{className:"bg-slate-800 p-4 rounded-lg shadow-md w-full max-w-md",children:[b.jsx("h2",{className:"text-2xl font-bold mb-6 text-center text-white",children:"Login"}),b.jsxs("form",{onSubmit:g,children:[b.jsxs("div",{className:"mb-4",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"email",children:"Email"}),b.jsx("input",{className:"shadow appearance-none border border-slate-600 rounded w-full py-2 px-3 bg-slate-700 text-gray-100 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400",id:"email",type:"email",placeholder:"Email",value:i,onChange:T=>a(T.target.value),required:!0})]}),b.jsxs("div",{className:"mb-2",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"password",children:"Password"}),b.jsx("input",{className:"shadow appearance-none border border-slate-600 rounded w-full py-2 px-3 bg-slate-700 text-gray-100 mb-3 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400",id:"password",type:"password",placeholder:"******************",value:r,onChange:T=>s(T.target.value),required:!0})]}),b.jsxs("div",{className:"flex flex-col items-center justify-center",children:[c&&b.jsx("p",{className:"text-red-400 text-xs italic mb-4",children:c}),b.jsxs("p",{className:"text-slate-400 text-sm mb-4",children:["Don't have an account?"," ",b.jsx(kt,{to:"/signup",className:"text-gray-500 underline transition-colors",children:"Sign up here"})]}),b.jsx("button",{className:"bg-sky-500 hover:bg-sky-600 text-white font-bold py-2 px-4 roun
1940ded focus:outline-none focus:shadow-outline transition duration-300 ease-in-out transform hover:-translate-y-1",type:"submit",children:"Sign In"})]})]})]})]})}const jA=()=>{const i=ql(),{setIsAuthenticatedWithBackend:a,setLoadingAuth:r,signOut:s}=Gs();return O.useEffect(()=>{(async()=>{r(!0),a(!1);try{await s(),console.log("User signed out from Firebase")}catch(f){console.error("Error during sign out:",f)}finally{i("/")}})()},[]),b.jsx("div",{children:"Logging out..."})};var Wy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pg=sa.createContext&&sa.createContext(Wy),kA=["attr","size","title"];function HA(i,a){if(i==null)return{};var r=BA(i,a),s,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(c=0;c<f.length;c++)s=f[c],!(a.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(i,s)&&(r[s]=i[s])}return r}function BA(i,a){if(i==null)return{};var r={};for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){if(a.indexOf(s)>=0)continue;r[s]=i[s]}return r}function Us(){return Us=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var r=arguments[a];
1940for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])}return i},Us.apply(this,arguments)}function gg(i,a){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);a&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),r.push.apply(r,s)}return r}function Is(i){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?gg(Object(r),!0).forEach(function(s){qA(i,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(r,s))})}return i}function qA(i,a,r){return a=VA(a),a in i?Object.defineProperty(i,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[a]=r,i}function VA(i){var a=GA(i,"string");return typeof a=="symbol"?a:a+""}function GA(i,a){if(typeof i!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var s=r.call(i,a);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)}function ev(i){return i&&i.map((a,r)=>sa.createElement(a.tag,Is({key:r},a.attr),ev(a.child)))}function Ps(i){return a=>sa.createElement(PA,Us({attr:Is({},i.attr)},a),ev(i.child))}function PA(i){var a=r=>{var{attr:s,size:c,title:f}=i,h=HA(i,kA),y=c||r.size||"1em",m;return r.className&&(m=r.className),i.className&&(m=(m?m+" ":"")+i.className),sa.createElement("svg",Us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,h,{className:m,style:Is(Is({color:i.color||r.color},r.style),i.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),f&&sa.createElement("title",null,f),i.children)};return pg!==void 0?sa.createElement(pg.Consumer,null,r=>a(r)):a(Wy)}function YA(i){return Ps({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zm2-8h6v8H5v-8zm5-6H6L5 5H2v2h12V5h-3z"},child:[]}]})(i)}function XA({onConfirmed:i,onCancel:a}){return b.jsxs("div",{className:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[b.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),b.jsx("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:b.jsx("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:b.jsxs("div",{className:"relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg",children:[b.jsx("div",{className:"bg-white px-4 pb-4 pt-5 sm:p-6 sm:pb-4",children:b.jsxs("div",{className:"sm:flex sm:items-start",children:[b.jsx("div",{className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10",children:b.jsx("svg",{className:"h-6 w-6 text-red-600",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true",children:b.jsx("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})})}),b.jsxs("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:[b.jsx("h3",{className:"text-base font-semibold leading-6 text-gray-900",id:"modal-title",children:"Delete Post"}),b.jsx("div",{className:"mt-2",children:b.jsx("p",{className:"text-sm text-gray-500",children:"Are you sure you want to delete your post? This action cannot be undone."})})]})]})}),b.jsxs("div",{className:"bg-gray-50 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6",children:[b.jsx("button",{type:"button",className:"inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 sm:ml-3 sm:w-auto",onClick:i,children:"Delete"}),b.jsx("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:a,children:"Cancel"})]})]})})})]})}const KA=({post:i,enableDelete:a,onDeleteSucceeded:r,onDeleteFailed:s})=>{var T;const[c,f]=O.useState(!1),h=A=>
1940new URL(A).hostname.replace("www.",""),y=Bt(),m=A=>{console.log("Logging post link click:",A),fa&&Zl(fa,"post_url_click",{link_url:A,page_path:y.pathname+y.search,location:window.location.href})},g=async()=>{var A;try{const S=await En.api.postServiceDeletePost((i==null?void 0:i.id)||"",{credentials:"include"});console.log("Post deleted successfully:",S),S.ok&&(r&&r(i),f(!1))}catch(S){if(S!=null&&S.error){const L=(A=S==null?void 0:S.error)==null?void 0:A.message;console.error("Error deleting post:",L),s&&s(L||"Failed to delete post")}else console.error("Error deleting post:",S),s&&s("Failed to delete post")}finally{f(!1)}};return b.jsxs(sa.Fragment,{children:[b.jsxs("tr",{children:[b.jsx("td",{className:"align-baseline",children:b.jsx("div",{className:"w-1.5 h-1.5 bg-gray-500 rounded-full mt-1.5"})}),b.jsx("td",{className:"px-2",children:b.jsxs("div",{children:[c&&b.jsx(XA,{onConfirmed:()=>g(),onCancel:()=>f(!1)}),b.jsxs("p",{className:"font-semibold text-sm text-gray-200 break-words",children:[b.jsxs(kt,{to:(i==null?void 0:i.url)||"#",target:"_blank",rel:"noopener noreferrer",onClick:()=>m((i==null?void 0:i.url)||""),children:[((T=i==null?void 0:i.metadata)==null?void 0:T.title)||"No Title",b.jsxs("span",{className:"ml-2 text-gray-500 text-xs font-normal",children:["(",h((i==null?void 0:i.url)||""),")"]})]}),a&&b.jsx(YA,{className:"ml-2 text-gray-400 text-lg hover:text-red-500 cursor-pointer inline-block",title:"Delete",onClick:()=>f(!0)})]})]})})]}),b.jsxs("tr",{children:[b.jsx("td",{colSpan:1}),b.jsx("td",{className:"px-2 pb-1",children:b.jsx("p",{className:"text-sm text-gray-400 break-words line-clamp-2 overflow-hidden",children:(i==null?void 0:i.description)||"No description available."})})]})]})};function QA(i){return Ps({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(i)}function Bc(i){return Ps({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"},child:[]}]})(i)}function ZA({onSuccess:i}){const[a,r]=O.useState(""),[s,c]=O.useState(!1),[f,h]=O.useState(null),y=Bt(),m=T=>{fa&&Zl(fa,"button_click",{url:T,button_id:"submit_post_button",page_path:y.pathname+y.search,location:window.location.href})},g=async T=>{if(T.preventDefault(),m(a),h(null),!a.trim()){h("Please enter a URL");return}c(!0);try{const A=await En.api.postServiceCreatePost({url:a},{credentials:"include"});if(!A.ok)throw new Error("Failed to add URL");r(""),i&&i(A.data)}catch(A){console.error("Failed to submit post:",A),h(A.message||"Failed to add URL")}finally{c(!1)}};return b.jsxs("div",{className:"p-4 md:max-w-3xl lg:max-w-7xl sm:max-w-xl w-full mx-auto",children:[b.jsxs("form",{onSubmit:g,className:"flex flex-row md:flex-urow gap-2",children:[b.jsxs("div",{className:"flex-grow",children:[b.jsx("input",{type:"text",value:a,onChange:T=>r(T.target.value),placeholder:"What you've just read?",className:"w-full p-2 border text-gray-100 bg-gray-700 border-blue-500 rounded placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-red-400",disabled:s}),f&&b.jsx("p",{className:"text-red-400 text-sm mt-1",children:f})]}),b.jsx("button",{type:"submit",className:"bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded disabled:opacity-50",disabled:s,children:s?b.jsx(Bc,{className:"animate-spin"}):b.jsx(QA,{})})]}),b.jsxs("p",{className:"text-gray-300 text-sm mt-1",children:["Try our Chrome web extension to share sites easily! Download it from"," ",b.jsx("a",{href:"https://chromewebstore.google.com/detail/daily-reading-log/medgoebcnjjdoajoaofohjkipahieekl",target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:underline",children:"here"}),"."]})]})}function $A(i){return Ps({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.76
19405 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"},child:[]}]})(i)}function JA({user:i}){const a=`https://dailyreadinglog.com/rss/v1/${i==null?void 0:i.slug}`;return b.jsxs("div",{className:"flex items-center p-4 md:max-w-3xl lg:max-w-7xl sm:max-w-xl w-full mx-auto",children:[b.jsxs("div",{className:"h-12 w-12 rounded-full overflow-hidden bg-red-500",children:[" ",b.jsx("img",{src:(i==null?void 0:i.imageUrl)||`https://eu.ui-avatars.com/api/?name=${i==null?void 0:i.name}&size=100`,alt:"Profile",className:"h-full w-full object-cover"})]}),b.jsxs("div",{className:"ml-4 flex-1",children:[b.jsx("div",{className:"flex items-center justify-between gap-2",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("h1",{className:"font-bold text-gray-200",children:i==null?void 0:i.name}),b.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-300",children:b.jsx($A,{size:18})})]})}),b.jsx("p",{className:"text-sm text-gray-400",children:i==null?void 0:i.slug})]})]})}function FA(){const{user:i}=h1(),[a,r]=O.useState(!0),[s,c]=O.useState(!0),[f,h]=O.useState(!1),[y,m]=O.useState([]),[g,T]=O.useState(null),{isAuthenticatedWithBackend:A,loadingAuth:S,signOut:L,user:N}=Gs(),H=ql(),[,B]=O.useState(null),k=Bt(),q=()=>{fa&&Zl(fa,"button_click",{button_id:"load_more_posts_button",page_path:k.pathname+k.search,location:window.location.href})};Vs("User's Reading List");const[Y,J]=O.useState(null),de=i===(N==null?void 0:N.slug),ye=async le=>{if(!i)throw new Error("No user ID provided in URL parameters");const Ce=await En.api.postServiceListPost({user:i,pageSize:50,pageToken:le},{credentials:"include"});if(!Ce.ok)throw new Error("Network response for posts was not ok");return Ce.json()},V=async()=>{if(q(),!(!g||!i)){h(!0);try{const le=await ye(g);m(Ce=>[...Ce,...le.posts||[]]),T(le.nextPageToken||null)}catch(le){console.error("Failed to load more posts:",le)}finally{h(!1)}}},be=le=>{if(!le){console.warn("No post ID provided to remove from list");return}m(Ce=>Ce.filter(he=>he.id!==le))};O.useEffect(()=>{if(console.log("App component mounted or updated"),S){console.log("Auth is still loading, setting isLoading to true"),c(!0);return}console.log("Auth loading finished, isAuthenticatedWithBackend:",A,"userIdFromParams:",i),A&&i?(console.log("User is authenticated, fetching data for userId:",i),(async()=>{var Ce;c(!0);try{console.log("Fetching user and posts for userId:",i);const[he,_t]=await Promise.all([En.api.userServiceGetUser(i,{credentials:"include"}),ye("")]);he.status===404&&(console.log("User not found for userId:",i),J(null),m([])),J(he.data),m(_t.posts||[]),T(_t.nextPageToken||null)}catch(he){if(console.error("Failed to load user or posts:",he),he){if(he.status===404)H("/404");else if(he!=null&&he.error){const _t=(Ce=he==null?void 0:he.error)==null?void 0:Ce.message;B(_t||"An error occurred  while fetching data.")}}else he instanceof Error?(console.error("Error:",he),B(he.message)):(console.error("Unknown error:",he),B("An unknown error occurred."));J(null),m([])}finally{c(!1),r(!1)}})()):(J(null),m([]),c(!1),r(!1))},[S,A,i]);const ie=le=>{m(Ce=>[le,...Ce])};return b.jsxs("div",{className:"min-h-screen flex flex-col items-center bg-gray-900 text-gray-100",children:[b.jsx("title",{children:`DailyReadingLog - ${(Y==null?void 0:Y.slug)||"this user"}'s Reading List`}),b.jsx("meta",{name:"description",content:`See what ${(Y==null?void 0:Y.slug)||"this user"} is reading. Share and discover articles, blogs, and more. Your reading journey starts here. You can also add your own URLs to your reading list and share them with others.`}),s?b.jsxs("div",{className:"fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center z-50",children:[b.jsx(Bc,{className:"animate-spin h-14 w-14 text-white"})," "]}):b.jsxs("div",{className:"flex flex-col w-full max-w-6xl mx-auto bg-gray-800 min-h-screen",children:[b.jsxs("header",{className:"flex items-center justify-end px-4 py-2 text-gray-200 bg-gray-800",children:[!N&&b.jsx(kt,{to:"/login",className:"hover:underline",children:"Log in"}),N&&b.jsx("button",{className:"hover:underline",onClick:L,children:"Log out"})]}),b.jsxs("main",{className:"w-full pt-0 flex-grow",children:[b.jsx(JA,{user:Y}),de&&b.jsx(ZA,{onSuccess:ie}),a&&!s?b.jsxs("div",{className:"text-center p-4 md:max-w-3xl lg:max-w-7xl sm:max-w-xl w-full mx-auto",children:[b.jsx("p",{className:"text-gray-300",children:"Loading reading list..."})," "]}):b.jsx("div",{className:"mx-auto md:max-w-3xl lg:max-w-7xl sm:max-w-xl w-full p-4",children:y.length>0?b.jsxs("div",{className:"flex flex-col items-center justify-center",children:[b.jsx("table",{className:"w-full border-collapse",children:b.jsx("tbody",{children:y.map((le,Ce)=>b.jsx(KA,{post:le,enableDelete:de,onDeleteSucceeded:()=>{be(le.id)}},le.id||Ce))})}),g&&b.jsx("button",{className:"mt-4 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded flex items-center justify-center min-w-28 disabled:opacity-50",onClick:V,disabled:f,children:f?b.jsx(Bc,{className:"animate-spin h-5 w-5"}):b.jsx("span",{children:"Load More"})})]}):b.jsxs("div",{className:"text-center text-gray-400 py-8",children:[" ",b.jsx("p",{children:A?"No articles in the reading list yet. Add some URLs to get started!":"Please log in to view or add articles."})]})})]}),b.jsx("footer",{className:"self-center text-slate-400 text-sm mb-4 flex flex-row justify-center items-center px-4",children:b.jsxs("p",{className:"text-center",children:["© ",new Date().getFullYear()," DailyReadingLog. All rights reserved.",b.jsx("span",{children:b.jsx("a",{href:"/privacy-policy",className:"ml-2 hover:underline",children:"Privacy policy"})})]})})]})]})}function WA(){const[i,a]=O.useState(""),[r,s]=O.useState(""),[c,f]=O.useState(""),[h,y]=O.useState(""),[m,g]=O.useState(""),[T,A]=O.useState(!1),[S,L]=O.useState(null),[N,H]=O.useState({}),B=ql();Vs("Signup");
1940const{user:k,setLoadingAuth:q,setIsAuthenticatedWithBackend:Y}=Gs();O.useEffect(()=>{k&&B("/"+k.slug)},[k,B]);const J=()=>{const V={};return i.trim()||(V.fullName="Full name is required."),r.trim()||(V.username="Username is required."),c.trim()?/\S+@\S+\.\S+/.test(c)||(V.email="Email address is invalid."):V.email="Email is required.",h?h.length<8&&(V.password="Password must be at least 8 characters."):V.password="Password is required.",m?h!==m&&(V.confirmPassword="Passwords do not match."):V.confirmPassword="Password confirmation is required.",T||(V.terms="You must agree to the terms and conditions."),H(V),Object.keys(V).length===0},de=()=>!i||!r||!c||!h||!m||!T||!/\S+@\S+\.\S+/.test(c)||h.length<8||h!==m,ye=async V=>{var be;if(V.preventDefault(),L(null),H({}),!!J()){q(!0),Y(!1);try{const le=await(await En.api.userServiceCreateUser({name:i,slug:r,email:c,password:h},{credentials:"include"})).json();console.log("User created successfully:",le),B("/login")}catch(ie){if(ie!=null&&ie.error){const le=(be=ie==null?void 0:ie.error)==null?void 0:be.message;L(le||"An error occurred while creating the user.")}else ie instanceof Error?L(ie.message):L("An unknown error occurred.");q(!1)}}};return b.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-slate-900 text-gray-100 px-4 py-8",children:[b.jsx("title",{children:"Create Account - DailyReadingLog"}),b.jsx("meta",{name:"description",content:"Create a new account to share your reading list and connect with others."}),b.jsxs("div",{className:"bg-slate-800 p-6 rounded-lg shadow-xl w-full max-w-lg",children:[b.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-white",children:"Create Account"}),b.jsxs("form",{onSubmit:ye,noValidate:!0,children:[b.jsxs("div",{className:"mb-4",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"fullName",children:"Full Name"}),b.jsx("input",{className:`shadow appearance-none border ${N.fullName?"border-red-500":"border-slate-600"} rounded w-full py-2 px-3 bg-slate-700 text-gray-100 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400`,id:"fullName",type:"text",placeholder:"John Doe",value:i,onChange:V=>a(V.target.value)}),N.fullName&&b.jsx("p",{className:"text-red-400 text-xs italic mt-1",children:N.fullName})]}),b.jsxs("div",{className:"mb-4",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"username",children:"User Handle"}),b.jsx("input",{className:`shadow appearance-none border ${N.username?"border-red-500":"border-slate-600"} rounded w-full py-2 px-3 bg-slate-700 text-gray-100 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400`,id:"username",type:"text",placeholder:"johndoe",value:r,onChange:V=>s(V.target.value)}),N.username&&b.jsx("p",{className:"text-red-400 text-xs italic mt-1",children:N.username})]}),b.jsxs("div",{className:"mb-4",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"email",children:"Email"}),b.jsx("input",{className:`shadow appearance-none border ${N.email?"border-red-500":"border-slate-600"} rounded w-full py-2 px-3 bg-slate-700 text-gray-100 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400`,id:"email",type:"email",placeholder:"[email protected]",value:c,onChange:V=>f(V.target.value)}),N.email&&b.jsx("p",{className:"text-red-400 text-xs italic mt-1",children:N.email})]}),b.jsxs("div",{className:"mb-4",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"password",children:"Password"}),b.jsx("input",{className:`shadow appearance-none border ${N.password?"border-red-500":"border-slate-600"} rounded w-full py-2 px-3 bg-slate-700 text-gray-100 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400`,id:"password",type:"password",placeholder:"******** (min. 8 characters)",value:h,onChange:V=>y(V.target.value)}),N.password&&b.jsx("p",{className:"text-red-400 text-xs italic mt-1",children:N.password})]}),b.jsxs("div",{className:"mb-6",children:[b.jsx("label",{className:"block text-slate-300 text-sm font-bold mb-2",htmlFor:"confirmPassword",children:"Confirm Password"}),b.jsx("input",{className:`shadow appearance-none border ${N.confirmPassword?"border-red-500":"border-slate-600"} rounded w-full py-2 px-3 bg-slate-700 text-gray-100 mb-3 leading-tight focus:outline-none focus:shadow-outline placeholder-slate-400`,id:"c
1940onfirmPassword",type:"password",placeholder:"********",value:m,onChange:V=>g(V.target.value)}),N.confirmPassword&&b.jsx("p",{className:"text-red-400 text-xs italic",children:N.confirmPassword})]}),b.jsxs("div",{className:"mb-6",children:[b.jsxs("label",{className:"flex items-center text-slate-300",children:[b.jsx("input",{type:"checkbox",className:"form-checkbox h-5 w-5 text-sky-500 bg-slate-700 border-slate-600 rounded focus:ring-sky-400",checked:T,onChange:V=>A(V.target.checked)}),b.jsxs("span",{className:"ml-2 text-sm",children:["I have read and agree to the"," ",b.jsx(kt,{to:"/privacy-policy",className:"text-sky-400 hover:text-sky-300 underline",children:"Privacy Policy and Terms of Service"})]})]}),N.terms&&b.jsx("p",{className:"text-red-400 text-xs italic mt-1",children:N.terms})]}),b.jsxs("div",{className:"flex flex-col items-center justify-center",children:[S&&b.jsx("p",{className:"text-red-400 text-xs italic mb-4",children:S}),b.jsx("button",{className:"bg-sky-500 hover:bg-sky-600 disabled:bg-slate-600 disabled:cursor-not-allowed text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline transition duration-300 ease-in-out transform hover:-translate-y-1",type:"submit",disabled:de(),children:"Sign Up"}),b.jsxs("p",{className:"text-slate-400 text-sm mt-4",children:["Already have an account?"," ",b.jsx(kt,{to:"/login",className:"text-gray-500 hover:text-gray-400 underline transition-colors",children:"Login here"})]})]})]})]})]})}const e2=()=>b.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-900 to-slate-700 flex flex-col items-center justify-center text-white p-4",children:[b.jsx("title",{children:"Privacy Policy - DailyReadingLog"}),b.jsx("meta",{name:"description",content:"Privacy Policy for DailyReadingLog. Learn how we collect, use, and protect your personal information."}),b.jsxs("div",{className:"max-w-2xl w-full bg-slate-800 shadow-xl rounded-lg p-8 md:p-12",children:[b.jsx("h1",{className:"text-4xl font-bold mb-8 text-center text-sky-400 tracking-tight",children:"Privacy Policy"}),b.jsxs("div",{className:"space-y-6 text-slate-300 text-lg",children:[b.jsx("p",{children:"At DailyReadingLog, we are committed to protecting your privacy. This Privacy Policy outlines how we collect, use, and safeguard your personal information."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"Information We Collect"}),b.jsx("p",{children:"We collect the following information from our users:"}),b.jsxs("ul",{className:"list-disc list-inside space-y-2 pl-4",children:[b.jsxs("li",{children:[b.jsx("strong",{children:"Username, Email Address, and Name:"})," This information is collected solely for authentication purposes, allowing you to access and use our services securely."]}),b.jsxs("li",{children:[b.jsx("strong",{children:"Submitted URLs:"})," We store the URLs that you intentionally submit to the application. These URLs are used to display your reading list and are not used for any other purpose."]})]}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"How We Use Your Information"}),b.jsx("p",{children:"The information we collect is used exclusively for the following purposes:"}),b.jsxs("ul",{className:"list-disc list-inside space-y-2 pl-4",children:[b.jsx("li",{children:"To provide and maintain our services."}),b.jsx("li",{children:"To authenticate users and ensure the security of accounts."}),b.jsx("li",{children:"To display your reading list as intended by the application."})]}),b.jsx("p",{children:"We do not sell, trade, or otherwise transfer your personally identifiable information to outside parties. We do not use your information for marketing purposes or share it with third-party advertisers."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"Data Security"}),b.jsx("p",{children:"We implement a variety of security measures to maintain the safety of your personal information when you enter, submit, or access your personal information."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"User Browsing Activity"}),b.jsx("p",{children:"We want to be clear that we do not track your general browsing activity. We only store the URLs that you explicitly submit to the DailyReadingLog application for the purpose of creating your reading list."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"Use of Cookies"}),b.jsx("p",{children:"We use cookies solely for authentication purposes. These cookies are essential for verifying your identity and ensuring secure access to your account. We do not use cookies for tracking or any other purposes."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"Changes to This Privacy Policy"}),b.jsx("p",{children:"We may update this Privacy Policy from time to time. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page."}),b.jsx("h2",{className:"text-2xl font-semibold text-sky-500 pt-4",children:"Contact Us"}),b.jsxs("p",{children:["If you have any questions about this Privacy Policy, please contact"," ",b.jsx("span",{children:b.jsx("a",{className:"text-sky-500 hover:underline",href:"mailto:[email protected]",children:"[email protected]"})})]})]})]}),b.jsx("footer",{className:"w-full text-center text-slate-400 text-sm mt-12 py-4",children:b.jsxs("p",{children:["© ",new Date().getFullYear()," DailyReadingLog. All rights reserved."]})})]});function t2(){return b.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-slate-900 text-gray-100 px-4",children:[b.jsx("title",{children:"Page Not Found - DailyReadingLog"}),b.jsx("meta",{name:"description",content:"The page you are looking for does not exist. Please check the URL or return to the homepage."}),b.jsxs("div",{className:"bg-slate-800 p-4 rounded-lg shadow-md w-full max-w-md",children:[b.jsx("h2",{className:"text-2xl font-bold mb-6 text-center text-white",children:"Page Not Found"}),b.jsxs("p",{className:"text-gray-300 text-center",children:["The page you are looking for does not exist. Please check the URL or return to the ",b.jsx(kt,{to:"/",children:"homepage"}),"."]})]})]})}Lb.createRoot(document.getElementById("root")).render(b.jsx(O.StrictMode,{children:b.jsx(zA,{children:b.jsx(F1,{children:b.jsxs(R1,{children:[b.jsx(ta,{path:"/",element:b.jsx(xA,{})}),b.jsx(ta,{path:"/:user",element:b.jsx(FA,{})}),b.jsx(ta,{path:"/signup",element:b.jsx(WA,{})}),b.jsx(ta,{path:"/login",element:b.jsx(LA,{})}),b.jsx(ta,{path:"/logout",element:b.jsx(jA,{})}),b.jsx(ta,{path:"/privacy-policy",element:b.jsx(e2,{})}),b.jsx(ta,{path:"/404",element:b.jsx(t2,{})})]})})})}));

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.