const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-BYxqau68.js","assets/arrow-left-9TYP7Fpd.js","assets/Onboard-2HWkTc5j.js","assets/sparkles-Gss2Wjoi.js","assets/chevron-left-9EHEcgG4.js","assets/chevron-right-hykONNQs.js","assets/MainLayout-B49jaYdI.js","assets/conv-DaFX9ZaY.js","assets/apns-sync-Dw6P_Lh0.js","assets/att-CTgp20Ao.js","assets/meta-pixel-BYUUXe_K.js","assets/message-square-HefswBIP.js","assets/inbox-C4l0c9lO.js","assets/shield-alert-BShbn47a.js","assets/ChatList-CBsU_7oT.js","assets/moon-DvqSzS6d.js","assets/EmailP2PChatView-O-dnRHMW.js","assets/utils-ByjjaO5W.js","assets/OverflowMenu-CYB7OOT6.js","assets/check-HjZSpkU-.js","assets/safety-wt09bV9n.js","assets/loader-circle-DTuiLvgi.js","assets/pencil-ZmNfLAlZ.js","assets/rotate-ccw-Cc2nEX_0.js","assets/send-ChXra_L3.js","assets/Discover-uUjSCeza.js","assets/useTopics-CdIjaoBn.js","assets/radio-CFA0TwIt.js","assets/Inbox-Mz9QEMO7.js","assets/tag-Boar7U4v.js","assets/InboxDetail-BwbPRSje.js","assets/circle-x-XH8TniG0.js","assets/TopicDetail-BaETh_lY.js","assets/zap-CwK8L-bE.js","assets/Notifications-Da5rIdFX.js","assets/Settings-K9zlN7bO.js","assets/email-DEPq3htr.js","assets/NotificationTest-BWTgdRH0.js","assets/Claiming-DRiIZ1Sx.js","assets/Signin-DUWOp3jS.js","assets/Demo-C--ZKTSK.js","assets/ChatKit-DYlO7Bcf.js","assets/motion-DqcSQDhM.js","assets/motion-D7dEiX5z.css","assets/TypingLoader-KnzKoTO7.js","assets/pgsl-llm-callbacks-Qx55scSK.js","assets/DemoOnboarding-DZxeYsOA.js","assets/useOnboardingFlow-BP5syyjj.js","assets/DemoBlankOnboarding-5CQg0ZKt.js","assets/JobChannel-BsGD6Rlq.js","assets/PlanCard-De9QS23q.js","assets/ConversationChannel-Dyz_ULIj.js","assets/BeckyAvatar-Ytbl_Jgd.js","assets/sleep-intake-CxC2Fwyw.js","assets/use-warm-theme-DCRMoRQ7.js","assets/AdminTrace-DgpIHcU4.js","assets/AdminReports-BIpVQi5F.js","assets/InChatFunnel-Yjmhs_Eq.js","assets/intake-sleep-VhqKU7tw.js","assets/Baby-Dkryp5R2.js","assets/BabyIntake-DDjuKGsB.js","assets/BabyQuiz-DQ1qstoq.js"])))=>i.map(i=>d[i]);
var zg=Object.defineProperty;var Og=(u,i,o)=>i in u?zg(u,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):u[i]=o;var Qh=(u,i,o)=>Og(u,typeof i!="symbol"?i+"":i,o);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const Ng="modulepreload",kg=function(u){return"/"+u},Zh={},Mt=function(i,o,r){let f=Promise.resolve();if(o&&o.length>0){let g=function(m){return Promise.all(m.map(T=>Promise.resolve(T).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),y=(b==null?void 0:b.nonce)||(b==null?void 0:b.getAttribute("nonce"));f=g(o.map(m=>{if(m=kg(m),m in Zh)return;Zh[m]=!0;const T=m.endsWith(".css"),A=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${A}`))return;const N=document.createElement("link");if(N.rel=T?"stylesheet":Ng,T||(N.as="script"),N.crossOrigin="",N.href=m,y&&N.setAttribute("nonce",y),document.head.appendChild(N),T)return new Promise((Q,Z)=>{N.addEventListener("load",Q),N.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return f.then(g=>{for(const b of g||[])b.status==="rejected"&&d(b.reason);return i().catch(d)})};var oo={exports:{}},ui={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kh;function Ug(){if(Kh)return ui;Kh=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var b in f)b!=="key"&&(d[b]=f[b])}else d=f;return f=d.ref,{$$typeof:u,type:r,key:g,ref:f!==void 0?f:null,props:d}}return ui.Fragment=i,ui.jsx=o,ui.jsxs=o,ui}var Jh;function jg(){return Jh||(Jh=1,oo.exports=Ug()),oo.exports}var S=jg(),co={exports:{}},ct={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $h;function Lg(){if($h)return ct;$h=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),N=Symbol.iterator;function Q(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,j={};function O(x,q,J){this.props=x,this.context=q,this.refs=j,this.updater=J||Z}O.prototype.isReactComponent={},O.prototype.setState=function(x,q){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,q,"setState")},O.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function k(){}k.prototype=O.prototype;function p(x,q,J){this.props=x,this.context=q,this.refs=j,this.updater=J||Z}var $=p.prototype=new k;$.constructor=p,G($,O.prototype),$.isPureReactComponent=!0;var X=Array.isArray;function tt(){}var K={H:null,A:null,T:null,S:null},Et=Object.prototype.hasOwnProperty;function Qt(x,q,J){var I=J.ref;return{$$typeof:u,type:x,key:q,ref:I!==void 0?I:null,props:J}}function re(x,q){return Qt(x.type,q,x.props)}function le(x){return typeof x=="object"&&x!==null&&x.$$typeof===u}function kt(x){var q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(J){return q[J]})}var ve=/\/+/g;function pe(x,q){return typeof x=="object"&&x!==null&&x.key!=null?kt(""+x.key):q.toString(36)}function Ht(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(tt,tt):(x.status="pending",x.then(function(q){x.status==="pending"&&(x.status="fulfilled",x.value=q)},function(q){x.status==="pending"&&(x.status="rejected",x.reason=q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function U(x,q,J,I,ot){var ht=typeof x;(ht==="undefined"||ht==="boolean")&&(x=null);var V=!1;if(x===null)V=!0;else switch(ht){case"bigint":case"string":case"number":V=!0;break;case"object":switch(x.$$typeof){case u:case i:V=!0;break;case T:return V=x._init,U(V(x._payload),q,J,I,ot)}}if(V)return ot=ot(x),V=I===""?"."+pe(x,0):I,X(ot)?(J="",V!=null&&(J=V.replace(ve,"$&/")+"/"),U(ot,q,J,"",function(st){return st})):ot!=null&&(le(ot)&&(ot=re(ot,J+(ot.key==null||x&&x.key===ot.key?"":(""+ot.key).replace(ve,"$&/")+"/")+V)),q.push(ot)),1;V=0;var Y=I===""?".":I+":";if(X(x))for(var W=0;W<x.length;W++)I=x[W],ht=Y+pe(I,W),V+=U(I,q,J,ht,ot);else if(W=Q(x),typeof W=="function")for(x=W.call(x),W=0;!(I=x.next()).done;)I=I.value,ht=Y+pe(I,W++),V+=U(I,q,J,ht,ot);else if(ht==="object"){if(typeof x.then=="function")return U(Ht(x),q,J,I,ot);throw q=String(x),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return V}function M(x,q,J){if(x==null)return x;var I=[],ot=0;return U(x,I,"","",function(ht){return q.call(J,ht,ot++)}),I}function P(x){if(x._status===-1){var q=x._result;q=q(),q.then(function(J){(x._status===0||x._status===-1)&&(x._status=1,x._result=J)},function(J){(x._status===0||x._status===-1)&&(x._status=2,x._result=J)}),x._status===-1&&(x._status=0,x._result=q)}if(x._status===1)return x._result.default;throw x._result}var rt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},nt={map:M,forEach:function(x,q,J){M(x,function(){q.apply(this,arguments)},J)},count:function(x){var q=0;return M(x,function(){q++}),q},toArray:function(x){return M(x,function(q){return q})||[]},only:function(x){if(!le(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ct.Activity=A,ct.Children=nt,ct.Component=O,ct.Fragment=o,ct.Profiler=f,ct.PureComponent=p,ct.StrictMode=r,ct.Suspense=y,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ct.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},ct.cache=function(x){return function(){return x.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(x,q,J){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var I=G({},x.props),ot=x.key;if(q!=null)for(ht in q.key!==void 0&&(ot=""+q.key),q)!Et.call(q,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&q.ref===void 0||(I[ht]=q[ht]);var ht=arguments.length-2;if(ht===1)I.children=J;else if(1<ht){for(var V=Array(ht),Y=0;Y<ht;Y++)V[Y]=arguments[Y+2];I.children=V}return Qt(x.type,ot,I)},ct.createContext=function(x){return x={$$typeof:g,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ct.createElement=function(x,q,J){var I,ot={},ht=null;if(q!=null)for(I in q.key!==void 0&&(ht=""+q.key),q)Et.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ot[I]=q[I]);var V=arguments.length-2;if(V===1)ot.children=J;else if(1<V){for(var Y=Array(V),W=0;W<V;W++)Y[W]=arguments[W+2];ot.children=Y}if(x&&x.defaultProps)for(I in V=x.defaultProps,V)ot[I]===void 0&&(ot[I]=V[I]);return Qt(x,ht,ot)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(x){return{$$typeof:b,render:x}},ct.isValidElement=le,ct.lazy=function(x){return{$$typeof:T,_payload:{_status:-1,_result:x},_init:P}},ct.memo=function(x,q){return{$$typeof:m,type:x,compare:q===void 0?null:q}},ct.startTransition=function(x){var q=K.T,J={};K.T=J;try{var I=x(),ot=K.S;ot!==null&&ot(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(tt,rt)}catch(ht){rt(ht)}finally{q!==null&&J.types!==null&&(q.types=J.types),K.T=q}},ct.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ct.use=function(x){return K.H.use(x)},ct.useActionState=function(x,q,J){return K.H.useActionState(x,q,J)},ct.useCallback=function(x,q){return K.H.useCallback(x,q)},ct.useContext=function(x){return K.H.useContext(x)},ct.useDebugValue=function(){},ct.useDeferredValue=function(x,q){return K.H.useDeferredValue(x,q)},ct.useEffect=function(x,q){return K.H.useEffect(x,q)},ct.useEffectEvent=function(x){return K.H.useEffectEvent(x)},ct.useId=function(){return K.H.useId()},ct.useImperativeHandle=function(x,q,J){return K.H.useImperativeHandle(x,q,J)},ct.useInsertionEffect=function(x,q){return K.H.useInsertionEffect(x,q)},ct.useLayoutEffect=function(x,q){return K.H.useLayoutEffect(x,q)},ct.useMemo=function(x,q){return K.H.useMemo(x,q)},ct.useOptimistic=function(x,q){return K.H.useOptimistic(x,q)},ct.useReducer=function(x,q,J){return K.H.useReducer(x,q,J)},ct.useRef=function(x){return K.H.useRef(x)},ct.useState=function(x){return K.H.useState(x)},ct.useSyncExternalStore=function(x,q,J){return K.H.useSyncExternalStore(x,q,J)},ct.useTransition=function(){return K.H.useTransition()},ct.version="19.2.7",ct}var Ph;function Oo(){return Ph||(Ph=1,co.exports=Lg()),co.exports}var E=Oo(),fo={exports:{}},si={},ho={exports:{}},mo={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wh;function Bg(){return Wh||(Wh=1,(function(u){function i(U,M){var P=U.length;U.push(M);t:for(;0<P;){var rt=P-1>>>1,nt=U[rt];if(0<f(nt,M))U[rt]=M,U[P]=nt,P=rt;else break t}}function o(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var M=U[0],P=U.pop();if(P!==M){U[0]=P;t:for(var rt=0,nt=U.length,x=nt>>>1;rt<x;){var q=2*(rt+1)-1,J=U[q],I=q+1,ot=U[I];if(0>f(J,P))I<nt&&0>f(ot,J)?(U[rt]=ot,U[I]=P,rt=I):(U[rt]=J,U[q]=P,rt=q);else if(I<nt&&0>f(ot,P))U[rt]=ot,U[I]=P,rt=I;else break t}}return M}function f(U,M){var P=U.sortIndex-M.sortIndex;return P!==0?P:U.id-M.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;u.unstable_now=function(){return d.now()}}else{var g=Date,b=g.now();u.unstable_now=function(){return g.now()-b}}var y=[],m=[],T=1,A=null,N=3,Q=!1,Z=!1,G=!1,j=!1,O=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function $(U){for(var M=o(m);M!==null;){if(M.callback===null)r(m);else if(M.startTime<=U)r(m),M.sortIndex=M.expirationTime,i(y,M);else break;M=o(m)}}function X(U){if(G=!1,$(U),!Z)if(o(y)!==null)Z=!0,tt||(tt=!0,kt());else{var M=o(m);M!==null&&Ht(X,M.startTime-U)}}var tt=!1,K=-1,Et=5,Qt=-1;function re(){return j?!0:!(u.unstable_now()-Qt<Et)}function le(){if(j=!1,tt){var U=u.unstable_now();Qt=U;var M=!0;try{t:{Z=!1,G&&(G=!1,k(K),K=-1),Q=!0;var P=N;try{e:{for($(U),A=o(y);A!==null&&!(A.expirationTime>U&&re());){var rt=A.callback;if(typeof rt=="function"){A.callback=null,N=A.priorityLevel;var nt=rt(A.expirationTime<=U);if(U=u.unstable_now(),typeof nt=="function"){A.callback=nt,$(U),M=!0;break e}A===o(y)&&r(y),$(U)}else r(y);A=o(y)}if(A!==null)M=!0;else{var x=o(m);x!==null&&Ht(X,x.startTime-U),M=!1}}break t}finally{A=null,N=P,Q=!1}M=void 0}}finally{M?kt():tt=!1}}}var kt;if(typeof p=="function")kt=function(){p(le)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,pe=ve.port2;ve.port1.onmessage=le,kt=function(){pe.postMessage(null)}}else kt=function(){O(le,0)};function Ht(U,M){K=O(function(){U(u.unstable_now())},M)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(U){U.callback=null},u.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"):Et=0<U?Math.floor(1e3/U):5},u.unstable_getCurrentPriorityLevel=function(){return N},u.unstable_next=function(U){switch(N){case 1:case 2:case 3:var M=3;break;default:M=N}var P=N;N=M;try{return U()}finally{N=P}},u.unstable_requestPaint=function(){j=!0},u.unstable_runWithPriority=function(U,M){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var P=N;N=U;try{return M()}finally{N=P}},u.unstable_scheduleCallback=function(U,M,P){var rt=u.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?rt+P:rt):P=rt,U){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=P+nt,U={id:T++,callback:M,priorityLevel:U,startTime:P,expirationTime:nt,sortIndex:-1},P>rt?(U.sortIndex=P,i(m,U),o(y)===null&&U===o(m)&&(G?(k(K),K=-1):G=!0,Ht(X,P-rt))):(U.sortIndex=nt,i(y,U),Z||Q||(Z=!0,tt||(tt=!0,kt()))),U},u.unstable_shouldYield=re,u.unstable_wrapCallback=function(U){var M=N;return function(){var P=N;N=M;try{return U.apply(this,arguments)}finally{N=P}}}})(mo)),mo}var Fh;function Hg(){return Fh||(Fh=1,ho.exports=Bg()),ho.exports}var po={exports:{}},me={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ih;function qg(){if(Ih)return me;Ih=1;var u=Oo();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)m+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,m,T){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:A==null?null:""+A,children:y,containerInfo:m,implementation:T}}var g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(y,m){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(y,m,null,T)},me.flushSync=function(y){var m=g.T,T=r.p;try{if(g.T=null,r.p=2,y)return y()}finally{g.T=m,r.p=T,r.d.f()}},me.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},me.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},me.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var T=m.as,A=b(T,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,Q=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;T==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:A,integrity:N,fetchPriority:Q}):T==="script"&&r.d.X(y,{crossOrigin:A,integrity:N,fetchPriority:Q,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var T=b(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},me.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var T=m.as,A=b(T,m.crossOrigin);r.d.L(y,T,{crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(y,m){if(typeof y=="string")if(m){var T=b(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},me.requestFormReset=function(y){r.d.r(y)},me.unstable_batchedUpdates=function(y,m){return y(m)},me.useFormState=function(y,m,T){return g.H.useFormState(y,m,T)},me.useFormStatus=function(){return g.H.useHostTransitionStatus()},me.version="19.2.7",me}var tm;function Yg(){if(tm)return po.exports;tm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),po.exports=qg(),po.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var em;function Vg(){if(em)return si;em=1;var u=Hg(),i=Oo(),o=Yg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function b(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,n=e;;){var l=a.return;if(l===null)break;var s=l.alternate;if(s===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===a)return y(l),t;if(s===n)return y(l),e;s=s.sibling}throw Error(r(188))}if(a.return!==n.return)a=l,n=s;else{for(var c=!1,h=l.child;h;){if(h===a){c=!0,a=l,n=s;break}if(h===n){c=!0,n=l,a=s;break}h=h.sibling}if(!c){for(h=s.child;h;){if(h===a){c=!0,a=s,n=l;break}if(h===n){c=!0,n=s,a=l;break}h=h.sibling}if(!c)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var A=Object.assign,N=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),p=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Et=Symbol.for("react.lazy"),Qt=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function kt(t){return t===null||typeof t!="object"?null:(t=le&&t[le]||t["@@iterator"],typeof t=="function"?t:null)}var ve=Symbol.for("react.client.reference");function pe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ve?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case O:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case tt:return"SuspenseList";case Qt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case p:return t.displayName||"Context";case k:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:pe(t.type)||"Memo";case Et:e=t._payload,t=t._init;try{return pe(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},rt=[],nt=-1;function x(t){return{current:t}}function q(t){0>nt||(t.current=rt[nt],rt[nt]=null,nt--)}function J(t,e){nt++,rt[nt]=t.current,t.current=e}var I=x(null),ot=x(null),ht=x(null),V=x(null);function Y(t,e){switch(J(ht,e),J(ot,t),J(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?mh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=mh(e),t=ph(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(I),J(I,t)}function W(){q(I),q(ot),q(ht)}function st(t){t.memoizedState!==null&&J(V,t);var e=I.current,a=ph(e,t.type);e!==a&&(J(ot,t),J(I,a))}function lt(t){ot.current===t&&(q(I),q(ot)),V.current===t&&(q(V),ai._currentValue=P)}var ut,Ct;function mt(t){if(ut===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ut=e&&e[1]||"",Ct=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ut+t+Ct}var xt=!1;function Zt(t,e){if(!t||xt)return"";xt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(z){var C=z}Reflect.construct(t,[],H)}else{try{H.call()}catch(z){C=z}t.call(H.prototype)}}else{try{throw Error()}catch(z){C=z}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),c=s[0],h=s[1];if(c&&h){var v=c.split(`
`),R=h.split(`
`);for(l=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;if(n===v.length||l===R.length)for(n=v.length-1,l=R.length-1;1<=n&&0<=l&&v[n]!==R[l];)l--;for(;1<=n&&0<=l;n--,l--)if(v[n]!==R[l]){if(n!==1||l!==1)do if(n--,l--,0>l||v[n]!==R[l]){var L=`
`+v[n].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=n&&0<=l);break}}}finally{xt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?mt(a):""}function zt(t,e){switch(t.tag){case 26:case 27:case 5:return mt(t.type);case 16:return mt("Lazy");case 13:return t.child!==e&&e!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Zt(t.type,!1);case 11:return Zt(t.type.render,!1);case 1:return Zt(t.type,!0);case 31:return mt("Activity");default:return""}}function Kt(t){try{var e="",a=null;do e+=zt(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var be=Object.prototype.hasOwnProperty,Jt=u.unstable_scheduleCallback,De=u.unstable_cancelCallback,ge=u.unstable_shouldYield,ie=u.unstable_requestPaint,qt=u.unstable_now,ia=u.unstable_getCurrentPriorityLevel,ua=u.unstable_ImmediatePriority,Zo=u.unstable_UserBlockingPriority,yi=u.unstable_NormalPriority,d0=u.unstable_LowPriority,Ko=u.unstable_IdlePriority,h0=u.log,m0=u.unstable_setDisableYieldValue,ml=null,Re=null;function Oa(t){if(typeof h0=="function"&&m0(t),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(ml,t)}catch{}}var Ce=Math.clz32?Math.clz32:y0,p0=Math.log,g0=Math.LN2;function y0(t){return t>>>=0,t===0?32:31-(p0(t)/g0|0)|0}var vi=256,bi=262144,Si=4194304;function ln(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function wi(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var l=0,s=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~s,n!==0?l=ln(n):(c&=h,c!==0?l=ln(c):a||(a=h&~t,a!==0&&(l=ln(a))))):(h=n&~s,h!==0?l=ln(h):c!==0?l=ln(c):a||(a=n&~t,a!==0&&(l=ln(a)))),l===0?0:e!==0&&e!==l&&(e&s)===0&&(s=l&-l,a=e&-e,s>=a||s===32&&(a&4194048)!==0)?e:l}function pl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function v0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Jo(){var t=Si;return Si<<=1,(Si&62914560)===0&&(Si=4194304),t}function Wu(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function gl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function b0(t,e,a,n,l,s){var c=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var h=t.entanglements,v=t.expirationTimes,R=t.hiddenUpdates;for(a=c&~a;0<a;){var L=31-Ce(a),H=1<<L;h[L]=0,v[L]=-1;var C=R[L];if(C!==null)for(R[L]=null,L=0;L<C.length;L++){var z=C[L];z!==null&&(z.lane&=-536870913)}a&=~H}n!==0&&$o(t,n,0),s!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=s&~(c&~e))}function $o(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Ce(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Po(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-Ce(a),l=1<<n;l&e|t[n]&e&&(t[n]|=e),a&=~l}}function Wo(t,e){var a=e&-e;return a=(a&42)!==0?1:Fu(a),(a&(t.suspendedLanes|e))!==0?0:a}function Fu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Iu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Fo(){var t=M.p;return t!==0?t:(t=window.event,t===void 0?32:Bh(t.type))}function Io(t,e){var a=M.p;try{return M.p=t,e()}finally{M.p=a}}var Na=Math.random().toString(36).slice(2),oe="__reactFiber$"+Na,Se="__reactProps$"+Na,Mn="__reactContainer$"+Na,ts="__reactEvents$"+Na,S0="__reactListeners$"+Na,w0="__reactHandles$"+Na,tc="__reactResources$"+Na,yl="__reactMarker$"+Na;function es(t){delete t[oe],delete t[Se],delete t[ts],delete t[S0],delete t[w0]}function Dn(t){var e=t[oe];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Mn]||a[oe]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Eh(t);t!==null;){if(a=t[oe])return a;t=Eh(t)}return e}t=a,a=t.parentNode}return null}function Rn(t){if(t=t[oe]||t[Mn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function vl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Cn(t){var e=t[tc];return e||(e=t[tc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[yl]=!0}var ec=new Set,ac={};function un(t,e){zn(t,e),zn(t+"Capture",e)}function zn(t,e){for(ac[t]=e,t=0;t<e.length;t++)ec.add(e[t])}var E0=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]*$"),nc={},lc={};function x0(t){return be.call(lc,t)?!0:be.call(nc,t)?!1:E0.test(t)?lc[t]=!0:(nc[t]=!0,!1)}function Ei(t,e,a){if(x0(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function xi(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function fa(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+n)}}function qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ic(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function A0(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(c){a=""+c,s.call(this,c)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function as(t){if(!t._valueTracker){var e=ic(t)?"checked":"value";t._valueTracker=A0(t,e,""+t[e])}}function uc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=ic(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function Ai(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var _0=/[\n"\\]/g;function Ye(t){return t.replace(_0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ns(t,e,a,n,l,s,c,h){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qe(e)):t.value!==""+qe(e)&&(t.value=""+qe(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?ls(t,c,qe(e)):a!=null?ls(t,c,qe(a)):n!=null&&t.removeAttribute("value"),l==null&&s!=null&&(t.defaultChecked=!!s),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+qe(h):t.removeAttribute("name")}function sc(t,e,a,n,l,s,c,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){as(t);return}a=a!=null?""+qe(a):"",e=e!=null?""+qe(e):a,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),as(t)}function ls(t,e,a){e==="number"&&Ai(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function On(t,e,a,n){if(t=t.options,e){e={};for(var l=0;l<a.length;l++)e["$"+a[l]]=!0;for(a=0;a<t.length;a++)l=e.hasOwnProperty("$"+t[a].value),t[a].selected!==l&&(t[a].selected=l),l&&n&&(t[a].defaultSelected=!0)}else{for(a=""+qe(a),e=null,l=0;l<t.length;l++){if(t[l].value===a){t[l].selected=!0,n&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function rc(t,e,a){if(e!=null&&(e=""+qe(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+qe(a):""}function oc(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(r(92));if(Ht(n)){if(1<n.length)throw Error(r(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=qe(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),as(t)}function Nn(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var T0=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 cc(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||T0.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function fc(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var l in e)n=e[l],e.hasOwnProperty(l)&&a[l]!==n&&cc(t,l,n)}else for(var s in e)e.hasOwnProperty(s)&&cc(t,s,e[s])}function is(t){if(t.indexOf("-")===-1)return!1;switch(t){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 M0=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"],["colorRendering","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"]]),D0=/^[\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 _i(t){return D0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function da(){}var us=null;function ss(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var kn=null,Un=null;function dc(t){var e=Rn(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(ns(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ye(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var l=n[Se]||null;if(!l)throw Error(r(90));ns(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&uc(n)}break t;case"textarea":rc(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&On(t,!!a.multiple,e,!1)}}}var rs=!1;function hc(t,e,a){if(rs)return t(e,a);rs=!0;try{var n=t(e);return n}finally{if(rs=!1,(kn!==null||Un!==null)&&(du(),kn&&(e=kn,t=Un,Un=kn=null,dc(e),t)))for(e=0;e<t.length;e++)dc(t[e])}}function bl(t,e){var a=t.stateNode;if(a===null)return null;var n=a[Se]||null;if(n===null)return null;a=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),os=!1;if(ha)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){os=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{os=!1}var ka=null,cs=null,Ti=null;function mc(){if(Ti)return Ti;var t,e=cs,a=e.length,n,l="value"in ka?ka.value:ka.textContent,s=l.length;for(t=0;t<a&&e[t]===l[t];t++);var c=a-t;for(n=1;n<=c&&e[a-n]===l[s-n];n++);return Ti=l.slice(t,1<n?1-n:void 0)}function Mi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Di(){return!0}function pc(){return!1}function we(t){function e(a,n,l,s,c){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(a=t[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Di:pc,this.isPropagationStopped=pc,this}return A(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Di)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),e}var sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ri=we(sn),wl=A({},sn,{view:0,detail:0}),R0=we(wl),fs,ds,El,Ci=A({},wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ms,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==El&&(El&&t.type==="mousemove"?(fs=t.screenX-El.screenX,ds=t.screenY-El.screenY):ds=fs=0,El=t),fs)},movementY:function(t){return"movementY"in t?t.movementY:ds}}),gc=we(Ci),C0=A({},Ci,{dataTransfer:0}),z0=we(C0),O0=A({},wl,{relatedTarget:0}),hs=we(O0),N0=A({},sn,{animationName:0,elapsedTime:0,pseudoElement:0}),k0=we(N0),U0=A({},sn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),j0=we(U0),L0=A({},sn,{data:0}),yc=we(L0),B0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H0={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"},q0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=q0[t])?!!e[t]:!1}function ms(){return Y0}var V0=A({},wl,{key:function(t){if(t.key){var e=B0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Mi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?H0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ms,charCode:function(t){return t.type==="keypress"?Mi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Mi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),G0=we(V0),X0=A({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vc=we(X0),Q0=A({},wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ms}),Z0=we(Q0),K0=A({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),J0=we(K0),$0=A({},Ci,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),P0=we($0),W0=A({},sn,{newState:0,oldState:0}),F0=we(W0),I0=[9,13,27,32],ps=ha&&"CompositionEvent"in window,xl=null;ha&&"documentMode"in document&&(xl=document.documentMode);var tp=ha&&"TextEvent"in window&&!xl,bc=ha&&(!ps||xl&&8<xl&&11>=xl),Sc=" ",wc=!1;function Ec(t,e){switch(t){case"keyup":return I0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var jn=!1;function ep(t,e){switch(t){case"compositionend":return xc(e);case"keypress":return e.which!==32?null:(wc=!0,Sc);case"textInput":return t=e.data,t===Sc&&wc?null:t;default:return null}}function ap(t,e){if(jn)return t==="compositionend"||!ps&&Ec(t,e)?(t=mc(),Ti=cs=ka=null,jn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bc&&e.locale!=="ko"?null:e.data;default:return null}}var np={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 Ac(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!np[t.type]:e==="textarea"}function _c(t,e,a,n){kn?Un?Un.push(n):Un=[n]:kn=n,e=bu(e,"onChange"),0<e.length&&(a=new Ri("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var Al=null,_l=null;function lp(t){rh(t,0)}function zi(t){var e=vl(t);if(uc(e))return t}function Tc(t,e){if(t==="change")return e}var Mc=!1;if(ha){var gs;if(ha){var ys="oninput"in document;if(!ys){var Dc=document.createElement("div");Dc.setAttribute("oninput","return;"),ys=typeof Dc.oninput=="function"}gs=ys}else gs=!1;Mc=gs&&(!document.documentMode||9<document.documentMode)}function Rc(){Al&&(Al.detachEvent("onpropertychange",Cc),_l=Al=null)}function Cc(t){if(t.propertyName==="value"&&zi(_l)){var e=[];_c(e,_l,t,ss(t)),hc(lp,e)}}function ip(t,e,a){t==="focusin"?(Rc(),Al=e,_l=a,Al.attachEvent("onpropertychange",Cc)):t==="focusout"&&Rc()}function up(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return zi(_l)}function sp(t,e){if(t==="click")return zi(e)}function rp(t,e){if(t==="input"||t==="change")return zi(e)}function op(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:op;function Tl(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!be.call(e,l)||!ze(t[l],e[l]))return!1}return!0}function zc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Oc(t,e){var a=zc(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=zc(a)}}function Nc(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nc(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kc(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ai(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Ai(t.document)}return e}function vs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cp=ha&&"documentMode"in document&&11>=document.documentMode,Ln=null,bs=null,Ml=null,Ss=!1;function Uc(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ss||Ln==null||Ln!==Ai(n)||(n=Ln,"selectionStart"in n&&vs(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ml&&Tl(Ml,n)||(Ml=n,n=bu(bs,"onSelect"),0<n.length&&(e=new Ri("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=Ln)))}function rn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Bn={animationend:rn("Animation","AnimationEnd"),animationiteration:rn("Animation","AnimationIteration"),animationstart:rn("Animation","AnimationStart"),transitionrun:rn("Transition","TransitionRun"),transitionstart:rn("Transition","TransitionStart"),transitioncancel:rn("Transition","TransitionCancel"),transitionend:rn("Transition","TransitionEnd")},ws={},jc={};ha&&(jc=document.createElement("div").style,"AnimationEvent"in window||(delete Bn.animationend.animation,delete Bn.animationiteration.animation,delete Bn.animationstart.animation),"TransitionEvent"in window||delete Bn.transitionend.transition);function on(t){if(ws[t])return ws[t];if(!Bn[t])return t;var e=Bn[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in jc)return ws[t]=e[a];return t}var Lc=on("animationend"),Bc=on("animationiteration"),Hc=on("animationstart"),fp=on("transitionrun"),dp=on("transitionstart"),hp=on("transitioncancel"),qc=on("transitionend"),Yc=new Map,Es="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(" ");Es.push("scrollEnd");function Ie(t,e){Yc.set(t,e),un(e,[t])}var Oi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ve=[],Hn=0,xs=0;function Ni(){for(var t=Hn,e=xs=Hn=0;e<t;){var a=Ve[e];Ve[e++]=null;var n=Ve[e];Ve[e++]=null;var l=Ve[e];Ve[e++]=null;var s=Ve[e];if(Ve[e++]=null,n!==null&&l!==null){var c=n.pending;c===null?l.next=l:(l.next=c.next,c.next=l),n.pending=l}s!==0&&Vc(a,l,s)}}function ki(t,e,a,n){Ve[Hn++]=t,Ve[Hn++]=e,Ve[Hn++]=a,Ve[Hn++]=n,xs|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function As(t,e,a,n){return ki(t,e,a,n),Ui(t)}function cn(t,e){return ki(t,null,null,e),Ui(t)}function Vc(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var l=!1,s=t.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(l=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,l&&e!==null&&(l=31-Ce(a),t=s.hiddenUpdates,n=t[l],n===null?t[l]=[e]:n.push(e),e.lane=a|536870912),s):null}function Ui(t){if(50<$l)throw $l=0,Nr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qn={};function mp(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,a,n){return new mp(t,e,a,n)}function _s(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ma(t,e){var a=t.alternate;return a===null?(a=Oe(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Gc(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ji(t,e,a,n,l,s){var c=0;if(n=t,typeof t=="function")_s(t)&&(c=1);else if(typeof t=="string")c=bg(t,a,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Qt:return t=Oe(31,a,e,l),t.elementType=Qt,t.lanes=s,t;case G:return fn(a.children,l,s,e);case j:c=8,l|=24;break;case O:return t=Oe(12,a,e,l|2),t.elementType=O,t.lanes=s,t;case X:return t=Oe(13,a,e,l),t.elementType=X,t.lanes=s,t;case tt:return t=Oe(19,a,e,l),t.elementType=tt,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case p:c=10;break t;case k:c=9;break t;case $:c=11;break t;case K:c=14;break t;case Et:c=16,n=null;break t}c=29,a=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=Oe(c,a,e,l),e.elementType=t,e.type=n,e.lanes=s,e}function fn(t,e,a,n){return t=Oe(7,t,n,e),t.lanes=a,t}function Ts(t,e,a){return t=Oe(6,t,null,e),t.lanes=a,t}function Xc(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function Ms(t,e,a){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Qc=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var a=Qc.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Kt(e)},Qc.set(t,e),e)}return{value:t,source:e,stack:Kt(e)}}var Yn=[],Vn=0,Li=null,Dl=0,Xe=[],Qe=0,Ua=null,sa=1,ra="";function pa(t,e){Yn[Vn++]=Dl,Yn[Vn++]=Li,Li=t,Dl=e}function Zc(t,e,a){Xe[Qe++]=sa,Xe[Qe++]=ra,Xe[Qe++]=Ua,Ua=t;var n=sa;t=ra;var l=32-Ce(n)-1;n&=~(1<<l),a+=1;var s=32-Ce(e)+l;if(30<s){var c=l-l%5;s=(n&(1<<c)-1).toString(32),n>>=c,l-=c,sa=1<<32-Ce(e)+l|a<<l|n,ra=s+t}else sa=1<<s|a<<l|n,ra=t}function Ds(t){t.return!==null&&(pa(t,1),Zc(t,1,0))}function Rs(t){for(;t===Li;)Li=Yn[--Vn],Yn[Vn]=null,Dl=Yn[--Vn],Yn[Vn]=null;for(;t===Ua;)Ua=Xe[--Qe],Xe[Qe]=null,ra=Xe[--Qe],Xe[Qe]=null,sa=Xe[--Qe],Xe[Qe]=null}function Kc(t,e){Xe[Qe++]=sa,Xe[Qe++]=ra,Xe[Qe++]=Ua,sa=e.id,ra=e.overflow,Ua=t}var ce=null,Yt=null,wt=!1,ja=null,Ze=!1,Cs=Error(r(519));function La(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rl(Ge(e,t)),Cs}function Jc(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[oe]=t,e[Se]=n,a){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(a=0;a<Wl.length;a++)yt(Wl[a],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),sc(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),oc(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||dh(e.textContent,a)?(n.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),n.onScroll!=null&&yt("scroll",e),n.onScrollEnd!=null&&yt("scrollend",e),n.onClick!=null&&(e.onclick=da),e=!0):e=!1,e||La(t,!0)}function $c(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:ce=ce.return}}function Gn(t){if(t!==ce)return!1;if(!wt)return $c(t),wt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Jr(t.type,t.memoizedProps)),a=!a),a&&Yt&&La(t),$c(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=wh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=wh(t)}else e===27?(e=Yt,Wa(t.type)?(t=Ir,Ir=null,Yt=t):Yt=e):Yt=ce?Je(t.stateNode.nextSibling):null;return!0}function dn(){Yt=ce=null,wt=!1}function zs(){var t=ja;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),ja=null),t}function Rl(t){ja===null?ja=[t]:ja.push(t)}var Os=x(null),hn=null,ga=null;function Ba(t,e,a){J(Os,e._currentValue),e._currentValue=a}function ya(t){t._currentValue=Os.current,q(Os)}function Ns(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function ks(t,e,a,n){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){var c=l.child;s=s.firstContext;t:for(;s!==null;){var h=s;s=l;for(var v=0;v<e.length;v++)if(h.context===e[v]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),Ns(s.return,a,t),n||(c=null);break t}s=h.next}}else if(l.tag===18){if(c=l.return,c===null)throw Error(r(341));c.lanes|=a,s=c.alternate,s!==null&&(s.lanes|=a),Ns(c,a,t),c=null}else c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===t){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}}function Xn(t,e,a,n){t=null;for(var l=e,s=!1;l!==null;){if(!s){if((l.flags&524288)!==0)s=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var c=l.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var h=l.type;ze(l.pendingProps.value,c.value)||(t!==null?t.push(h):t=[h])}}else if(l===V.current){if(c=l.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(ai):t=[ai])}l=l.return}t!==null&&ks(e,t,a,n),e.flags|=262144}function Bi(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function mn(t){hn=t,ga=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return Pc(hn,t)}function Hi(t,e){return hn===null&&mn(t),Pc(t,e)}function Pc(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ga===null){if(t===null)throw Error(r(308));ga=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ga=ga.next=e;return a}var pp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},gp=u.unstable_scheduleCallback,yp=u.unstable_NormalPriority,It={$$typeof:p,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Us(){return{controller:new pp,data:new Map,refCount:0}}function Cl(t){t.refCount--,t.refCount===0&&gp(yp,function(){t.controller.abort()})}var zl=null,js=0,Qn=0,Zn=null;function vp(t,e){if(zl===null){var a=zl=[];js=0,Qn=Hr(),Zn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return js++,e.then(Wc,Wc),e}function Wc(){if(--js===0&&zl!==null){Zn!==null&&(Zn.status="fulfilled");var t=zl;zl=null,Qn=0,Zn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function bp(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var l=0;l<a.length;l++)(0,a[l])(e)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var Fc=U.S;U.S=function(t,e){jd=qt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&vp(t,e),Fc!==null&&Fc(t,e)};var pn=x(null);function Ls(){var t=pn.current;return t!==null?t:Bt.pooledCache}function qi(t,e){e===null?J(pn,pn.current):J(pn,e.pool)}function Ic(){var t=Ls();return t===null?null:{parent:It._currentValue,pool:t}}var Kn=Error(r(460)),Bs=Error(r(474)),Yi=Error(r(542)),Vi={then:function(){}};function tf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ef(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(da,da),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nf(t),t;default:if(typeof e.status=="string")e.then(da,da);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=n}},function(n){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nf(t),t}throw yn=e,Kn}}function gn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(yn=a,Kn):a}}var yn=null;function af(){if(yn===null)throw Error(r(459));var t=yn;return yn=null,t}function nf(t){if(t===Kn||t===Yi)throw Error(r(483))}var Jn=null,Ol=0;function Gi(t){var e=Ol;return Ol+=1,Jn===null&&(Jn=[]),ef(Jn,t,e)}function Nl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Xi(t,e){throw e.$$typeof===N?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function lf(t){function e(_,w){if(t){var D=_.deletions;D===null?(_.deletions=[w],_.flags|=16):D.push(w)}}function a(_,w){if(!t)return null;for(;w!==null;)e(_,w),w=w.sibling;return null}function n(_){for(var w=new Map;_!==null;)_.key!==null?w.set(_.key,_):w.set(_.index,_),_=_.sibling;return w}function l(_,w){return _=ma(_,w),_.index=0,_.sibling=null,_}function s(_,w,D){return _.index=D,t?(D=_.alternate,D!==null?(D=D.index,D<w?(_.flags|=67108866,w):D):(_.flags|=67108866,w)):(_.flags|=1048576,w)}function c(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function h(_,w,D,B){return w===null||w.tag!==6?(w=Ts(D,_.mode,B),w.return=_,w):(w=l(w,D),w.return=_,w)}function v(_,w,D,B){var at=D.type;return at===G?L(_,w,D.props.children,B,D.key):w!==null&&(w.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&gn(at)===w.type)?(w=l(w,D.props),Nl(w,D),w.return=_,w):(w=ji(D.type,D.key,D.props,null,_.mode,B),Nl(w,D),w.return=_,w)}function R(_,w,D,B){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=Ms(D,_.mode,B),w.return=_,w):(w=l(w,D.children||[]),w.return=_,w)}function L(_,w,D,B,at){return w===null||w.tag!==7?(w=fn(D,_.mode,B,at),w.return=_,w):(w=l(w,D),w.return=_,w)}function H(_,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Ts(""+w,_.mode,D),w.return=_,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Q:return D=ji(w.type,w.key,w.props,null,_.mode,D),Nl(D,w),D.return=_,D;case Z:return w=Ms(w,_.mode,D),w.return=_,w;case Et:return w=gn(w),H(_,w,D)}if(Ht(w)||kt(w))return w=fn(w,_.mode,D,null),w.return=_,w;if(typeof w.then=="function")return H(_,Gi(w),D);if(w.$$typeof===p)return H(_,Hi(_,w),D);Xi(_,w)}return null}function C(_,w,D,B){var at=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return at!==null?null:h(_,w,""+D,B);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:return D.key===at?v(_,w,D,B):null;case Z:return D.key===at?R(_,w,D,B):null;case Et:return D=gn(D),C(_,w,D,B)}if(Ht(D)||kt(D))return at!==null?null:L(_,w,D,B,null);if(typeof D.then=="function")return C(_,w,Gi(D),B);if(D.$$typeof===p)return C(_,w,Hi(_,D),B);Xi(_,D)}return null}function z(_,w,D,B,at){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return _=_.get(D)||null,h(w,_,""+B,at);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return _=_.get(B.key===null?D:B.key)||null,v(w,_,B,at);case Z:return _=_.get(B.key===null?D:B.key)||null,R(w,_,B,at);case Et:return B=gn(B),z(_,w,D,B,at)}if(Ht(B)||kt(B))return _=_.get(D)||null,L(w,_,B,at,null);if(typeof B.then=="function")return z(_,w,D,Gi(B),at);if(B.$$typeof===p)return z(_,w,D,Hi(w,B),at);Xi(w,B)}return null}function F(_,w,D,B){for(var at=null,_t=null,et=w,dt=w=0,bt=null;et!==null&&dt<D.length;dt++){et.index>dt?(bt=et,et=null):bt=et.sibling;var Tt=C(_,et,D[dt],B);if(Tt===null){et===null&&(et=bt);break}t&&et&&Tt.alternate===null&&e(_,et),w=s(Tt,w,dt),_t===null?at=Tt:_t.sibling=Tt,_t=Tt,et=bt}if(dt===D.length)return a(_,et),wt&&pa(_,dt),at;if(et===null){for(;dt<D.length;dt++)et=H(_,D[dt],B),et!==null&&(w=s(et,w,dt),_t===null?at=et:_t.sibling=et,_t=et);return wt&&pa(_,dt),at}for(et=n(et);dt<D.length;dt++)bt=z(et,_,dt,D[dt],B),bt!==null&&(t&&bt.alternate!==null&&et.delete(bt.key===null?dt:bt.key),w=s(bt,w,dt),_t===null?at=bt:_t.sibling=bt,_t=bt);return t&&et.forEach(function(an){return e(_,an)}),wt&&pa(_,dt),at}function it(_,w,D,B){if(D==null)throw Error(r(151));for(var at=null,_t=null,et=w,dt=w=0,bt=null,Tt=D.next();et!==null&&!Tt.done;dt++,Tt=D.next()){et.index>dt?(bt=et,et=null):bt=et.sibling;var an=C(_,et,Tt.value,B);if(an===null){et===null&&(et=bt);break}t&&et&&an.alternate===null&&e(_,et),w=s(an,w,dt),_t===null?at=an:_t.sibling=an,_t=an,et=bt}if(Tt.done)return a(_,et),wt&&pa(_,dt),at;if(et===null){for(;!Tt.done;dt++,Tt=D.next())Tt=H(_,Tt.value,B),Tt!==null&&(w=s(Tt,w,dt),_t===null?at=Tt:_t.sibling=Tt,_t=Tt);return wt&&pa(_,dt),at}for(et=n(et);!Tt.done;dt++,Tt=D.next())Tt=z(et,_,dt,Tt.value,B),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?dt:Tt.key),w=s(Tt,w,dt),_t===null?at=Tt:_t.sibling=Tt,_t=Tt);return t&&et.forEach(function(Cg){return e(_,Cg)}),wt&&pa(_,dt),at}function Lt(_,w,D,B){if(typeof D=="object"&&D!==null&&D.type===G&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:t:{for(var at=D.key;w!==null;){if(w.key===at){if(at=D.type,at===G){if(w.tag===7){a(_,w.sibling),B=l(w,D.props.children),B.return=_,_=B;break t}}else if(w.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&gn(at)===w.type){a(_,w.sibling),B=l(w,D.props),Nl(B,D),B.return=_,_=B;break t}a(_,w);break}else e(_,w);w=w.sibling}D.type===G?(B=fn(D.props.children,_.mode,B,D.key),B.return=_,_=B):(B=ji(D.type,D.key,D.props,null,_.mode,B),Nl(B,D),B.return=_,_=B)}return c(_);case Z:t:{for(at=D.key;w!==null;){if(w.key===at)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){a(_,w.sibling),B=l(w,D.children||[]),B.return=_,_=B;break t}else{a(_,w);break}else e(_,w);w=w.sibling}B=Ms(D,_.mode,B),B.return=_,_=B}return c(_);case Et:return D=gn(D),Lt(_,w,D,B)}if(Ht(D))return F(_,w,D,B);if(kt(D)){if(at=kt(D),typeof at!="function")throw Error(r(150));return D=at.call(D),it(_,w,D,B)}if(typeof D.then=="function")return Lt(_,w,Gi(D),B);if(D.$$typeof===p)return Lt(_,w,Hi(_,D),B);Xi(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(a(_,w.sibling),B=l(w,D),B.return=_,_=B):(a(_,w),B=Ts(D,_.mode,B),B.return=_,_=B),c(_)):a(_,w)}return function(_,w,D,B){try{Ol=0;var at=Lt(_,w,D,B);return Jn=null,at}catch(et){if(et===Kn||et===Yi)throw et;var _t=Oe(29,et,null,_.mode);return _t.lanes=B,_t.return=_,_t}finally{}}}var vn=lf(!0),uf=lf(!1),Ha=!1;function Hs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function qa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ya(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Dt&2)!==0){var l=n.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),n.pending=e,e=Ui(t),Vc(t,null,a),e}return ki(t,n,e,a),Ui(t)}function kl(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Po(t,a)}}function Ys(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?l=s=c:s=s.next=c,a=a.next}while(a!==null);s===null?l=s=e:s=s.next=e}else l=s=e;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Vs=!1;function Ul(){if(Vs){var t=Zn;if(t!==null)throw t}}function jl(t,e,a,n){Vs=!1;var l=t.updateQueue;Ha=!1;var s=l.firstBaseUpdate,c=l.lastBaseUpdate,h=l.shared.pending;if(h!==null){l.shared.pending=null;var v=h,R=v.next;v.next=null,c===null?s=R:c.next=R,c=v;var L=t.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==c&&(h===null?L.firstBaseUpdate=R:h.next=R,L.lastBaseUpdate=v))}if(s!==null){var H=l.baseState;c=0,L=R=v=null,h=s;do{var C=h.lane&-536870913,z=C!==h.lane;if(z?(vt&C)===C:(n&C)===C){C!==0&&C===Qn&&(Vs=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var F=t,it=h;C=e;var Lt=a;switch(it.tag){case 1:if(F=it.payload,typeof F=="function"){H=F.call(Lt,H,C);break t}H=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=it.payload,C=typeof F=="function"?F.call(Lt,H,C):F,C==null)break t;H=A({},H,C);break t;case 2:Ha=!0}}C=h.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=l.callbacks,z===null?l.callbacks=[C]:z.push(C))}else z={lane:C,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(R=L=z,v=H):L=L.next=z,c|=C;if(h=h.next,h===null){if(h=l.shared.pending,h===null)break;z=h,h=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);L===null&&(v=H),l.baseState=v,l.firstBaseUpdate=R,l.lastBaseUpdate=L,s===null&&(l.shared.lanes=0),Za|=c,t.lanes=c,t.memoizedState=H}}function sf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function rf(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)sf(a[t],e)}var $n=x(null),Qi=x(0);function of(t,e){t=Ta,J(Qi,t),J($n,e),Ta=t|e.baseLanes}function Gs(){J(Qi,Ta),J($n,$n.current)}function Xs(){Ta=Qi.current,q($n),q(Qi)}var Ne=x(null),Ke=null;function Va(t){var e=t.alternate;J(Wt,Wt.current&1),J(Ne,t),Ke===null&&(e===null||$n.current!==null||e.memoizedState!==null)&&(Ke=t)}function Qs(t){J(Wt,Wt.current),J(Ne,t),Ke===null&&(Ke=t)}function cf(t){t.tag===22?(J(Wt,Wt.current),J(Ne,t),Ke===null&&(Ke=t)):Ga()}function Ga(){J(Wt,Wt.current),J(Ne,Ne.current)}function ke(t){q(Ne),Ke===t&&(Ke=null),q(Wt)}var Wt=x(0);function Zi(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Wr(a)||Fr(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var va=0,ft=null,Ut=null,te=null,Ki=!1,Pn=!1,bn=!1,Ji=0,Ll=0,Wn=null,Sp=0;function $t(){throw Error(r(321))}function Zs(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ze(t[a],e[a]))return!1;return!0}function Ks(t,e,a,n,l,s){return va=s,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Kf:rr,bn=!1,s=a(n,l),bn=!1,Pn&&(s=df(e,a,n,l)),ff(t),s}function ff(t){U.H=ql;var e=Ut!==null&&Ut.next!==null;if(va=0,te=Ut=ft=null,Ki=!1,Ll=0,Wn=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&Bi(t)&&(ee=!0))}function df(t,e,a,n){ft=t;var l=0;do{if(Pn&&(Wn=null),Ll=0,Pn=!1,25<=l)throw Error(r(301));if(l+=1,te=Ut=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}U.H=Jf,s=e(a,n)}while(Pn);return s}function wp(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Bl(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(ft.flags|=1024),e}function Js(){var t=Ji!==0;return Ji=0,t}function $s(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ps(t){if(Ki){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ki=!1}va=0,te=Ut=ft=null,Pn=!1,Ll=Ji=0,Wn=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?ft.memoizedState=te=t:te=te.next=t,te}function Ft(){if(Ut===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=te===null?ft.memoizedState:te.next;if(e!==null)te=e,Ut=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},te===null?ft.memoizedState=te=t:te=te.next=t}return te}function $i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(t){var e=Ll;return Ll+=1,Wn===null&&(Wn=[]),t=ef(Wn,t,e),e=ft,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Kf:rr),t}function Pi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Bl(t);if(t.$$typeof===p)return fe(t)}throw Error(r(438,String(t)))}function Ws(t){var e=null,a=ft.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=$i(),ft.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=re;return e.index++,a}function ba(t,e){return typeof e=="function"?e(t):e}function Wi(t){var e=Ft();return Fs(e,Ut,t)}function Fs(t,e,a){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var l=t.baseQueue,s=n.pending;if(s!==null){if(l!==null){var c=l.next;l.next=s.next,s.next=c}e.baseQueue=l=s,n.pending=null}if(s=t.baseState,l===null)t.memoizedState=s;else{e=l.next;var h=c=null,v=null,R=e,L=!1;do{var H=R.lane&-536870913;if(H!==R.lane?(vt&H)===H:(va&H)===H){var C=R.revertLane;if(C===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),H===Qn&&(L=!0);else if((va&C)===C){R=R.next,C===Qn&&(L=!0);continue}else H={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=H,c=s):v=v.next=H,ft.lanes|=C,Za|=C;H=R.action,bn&&a(s,H),s=R.hasEagerState?R.eagerState:a(s,H)}else C={lane:H,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=C,c=s):v=v.next=C,ft.lanes|=H,Za|=H;R=R.next}while(R!==null&&R!==e);if(v===null?c=s:v.next=h,!ze(s,t.memoizedState)&&(ee=!0,L&&(a=Zn,a!==null)))throw a;t.memoizedState=s,t.baseState=c,t.baseQueue=v,n.lastRenderedState=s}return l===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Is(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var n=a.dispatch,l=a.pending,s=e.memoizedState;if(l!==null){a.pending=null;var c=l=l.next;do s=t(s,c.action),c=c.next;while(c!==l);ze(s,e.memoizedState)||(ee=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),a.lastRenderedState=s}return[s,n]}function hf(t,e,a){var n=ft,l=Ft(),s=wt;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=e();var c=!ze((Ut||l).memoizedState,a);if(c&&(l.memoizedState=a,ee=!0),l=l.queue,ar(gf.bind(null,n,l,t),[t]),l.getSnapshot!==e||c||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,Fn(9,{destroy:void 0},pf.bind(null,n,l,a,e),null),Bt===null)throw Error(r(349));s||(va&127)!==0||mf(n,e,a)}return a}function mf(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ft.updateQueue,e===null?(e=$i(),ft.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function pf(t,e,a,n){e.value=a,e.getSnapshot=n,yf(e)&&vf(t)}function gf(t,e,a){return a(function(){yf(e)&&vf(t)})}function yf(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ze(t,a)}catch{return!0}}function vf(t){var e=cn(t,2);e!==null&&Te(e,t,2)}function tr(t){var e=ye();if(typeof t=="function"){var a=t;if(t=a(),bn){Oa(!0);try{a()}finally{Oa(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:t},e}function bf(t,e,a,n){return t.baseState=a,Fs(t,Ut,typeof n=="function"?n:ba)}function Ep(t,e,a,n,l){if(tu(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};U.T!==null?a(!0):s.isTransition=!1,n(s),a=e.pending,a===null?(s.next=e.pending=s,Sf(e,s)):(s.next=a.next,e.pending=a.next=s)}}function Sf(t,e){var a=e.action,n=e.payload,l=t.state;if(e.isTransition){var s=U.T,c={};U.T=c;try{var h=a(l,n),v=U.S;v!==null&&v(c,h),wf(t,e,h)}catch(R){er(t,e,R)}finally{s!==null&&c.types!==null&&(s.types=c.types),U.T=s}}else try{s=a(l,n),wf(t,e,s)}catch(R){er(t,e,R)}}function wf(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Ef(t,e,n)},function(n){return er(t,e,n)}):Ef(t,e,a)}function Ef(t,e,a){e.status="fulfilled",e.value=a,xf(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Sf(t,a)))}function er(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,xf(e),e=e.next;while(e!==n)}t.action=null}function xf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Af(t,e){return e}function _f(t,e){if(wt){var a=Bt.formState;if(a!==null){t:{var n=ft;if(wt){if(Yt){e:{for(var l=Yt,s=Ze;l.nodeType!==8;){if(!s){l=null;break e}if(l=Je(l.nextSibling),l===null){l=null;break e}}s=l.data,l=s==="F!"||s==="F"?l:null}if(l){Yt=Je(l.nextSibling),n=l.data==="F!";break t}}La(n)}n=!1}n&&(e=a[0])}}return a=ye(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Af,lastRenderedState:e},a.queue=n,a=Xf.bind(null,ft,n),n.dispatch=a,n=tr(!1),s=sr.bind(null,ft,!1,n.queue),n=ye(),l={state:e,dispatch:null,action:t,pending:null},n.queue=l,a=Ep.bind(null,ft,l,s,a),l.dispatch=a,n.memoizedState=t,[e,a,!1]}function Tf(t){var e=Ft();return Mf(e,Ut,t)}function Mf(t,e,a){if(e=Fs(t,e,Af)[0],t=Wi(ba)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Bl(e)}catch(c){throw c===Kn?Yi:c}else n=e;e=Ft();var l=e.queue,s=l.dispatch;return a!==e.memoizedState&&(ft.flags|=2048,Fn(9,{destroy:void 0},xp.bind(null,l,a),null)),[n,s,t]}function xp(t,e){t.action=e}function Df(t){var e=Ft(),a=Ut;if(a!==null)return Mf(e,a,t);Ft(),e=e.memoizedState,a=Ft();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Fn(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=ft.updateQueue,e===null&&(e=$i(),ft.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function Rf(){return Ft().memoizedState}function Fi(t,e,a,n){var l=ye();ft.flags|=t,l.memoizedState=Fn(1|e,{destroy:void 0},a,n===void 0?null:n)}function Ii(t,e,a,n){var l=Ft();n=n===void 0?null:n;var s=l.memoizedState.inst;Ut!==null&&n!==null&&Zs(n,Ut.memoizedState.deps)?l.memoizedState=Fn(e,s,a,n):(ft.flags|=t,l.memoizedState=Fn(1|e,s,a,n))}function Cf(t,e){Fi(8390656,8,t,e)}function ar(t,e){Ii(2048,8,t,e)}function Ap(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=$i(),ft.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function zf(t){var e=Ft().memoizedState;return Ap({ref:e,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Of(t,e){return Ii(4,2,t,e)}function Nf(t,e){return Ii(4,4,t,e)}function kf(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Uf(t,e,a){a=a!=null?a.concat([t]):null,Ii(4,4,kf.bind(null,e,t),a)}function nr(){}function jf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&Zs(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function Lf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&Zs(e,n[1]))return n[0];if(n=t(),bn){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[n,e],n}function lr(t,e,a){return a===void 0||(va&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Bd(),ft.lanes|=t,Za|=t,a)}function Bf(t,e,a,n){return ze(a,e)?a:$n.current!==null?(t=lr(t,a,n),ze(t,e)||(ee=!0),t):(va&42)===0||(va&1073741824)!==0&&(vt&261930)===0?(ee=!0,t.memoizedState=a):(t=Bd(),ft.lanes|=t,Za|=t,e)}function Hf(t,e,a,n,l){var s=M.p;M.p=s!==0&&8>s?s:8;var c=U.T,h={};U.T=h,sr(t,!1,e,a);try{var v=l(),R=U.S;if(R!==null&&R(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var L=bp(v,n);Hl(t,e,L,Le(t))}else Hl(t,e,n,Le(t))}catch(H){Hl(t,e,{then:function(){},status:"rejected",reason:H},Le())}finally{M.p=s,c!==null&&h.types!==null&&(c.types=h.types),U.T=c}}function _p(){}function ir(t,e,a,n){if(t.tag!==5)throw Error(r(476));var l=qf(t).queue;Hf(t,l,e,P,a===null?_p:function(){return Yf(t),a(n)})}function qf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:P},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Yf(t){var e=qf(t);e.next===null&&(e=t.alternate.memoizedState),Hl(t,e.next.queue,{},Le())}function ur(){return fe(ai)}function Vf(){return Ft().memoizedState}function Gf(){return Ft().memoizedState}function Tp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Le();t=qa(a);var n=Ya(e,t,a);n!==null&&(Te(n,e,a),kl(n,e,a)),e={cache:Us()},t.payload=e;return}e=e.return}}function Mp(t,e,a){var n=Le();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},tu(t)?Qf(e,a):(a=As(t,e,a,n),a!==null&&(Te(a,t,n),Zf(a,e,n)))}function Xf(t,e,a){var n=Le();Hl(t,e,a,n)}function Hl(t,e,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(tu(t))Qf(e,l);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var c=e.lastRenderedState,h=s(c,a);if(l.hasEagerState=!0,l.eagerState=h,ze(h,c))return ki(t,e,l,0),Bt===null&&Ni(),!1}catch{}finally{}if(a=As(t,e,l,n),a!==null)return Te(a,t,n),Zf(a,e,n),!0}return!1}function sr(t,e,a,n){if(n={lane:2,revertLane:Hr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},tu(t)){if(e)throw Error(r(479))}else e=As(t,a,n,2),e!==null&&Te(e,t,2)}function tu(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Qf(t,e){Pn=Ki=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Zf(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Po(t,a)}}var ql={readContext:fe,use:Pi,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};ql.useEffectEvent=$t;var Kf={readContext:fe,use:Pi,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Cf,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Fi(4194308,4,kf.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Fi(4194308,4,t,e)},useInsertionEffect:function(t,e){Fi(4,2,t,e)},useMemo:function(t,e){var a=ye();e=e===void 0?null:e;var n=t();if(bn){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=ye();if(a!==void 0){var l=a(e);if(bn){Oa(!0);try{a(e)}finally{Oa(!1)}}}else l=e;return n.memoizedState=n.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},n.queue=t,t=t.dispatch=Mp.bind(null,ft,t),[n.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=tr(t);var e=t.queue,a=Xf.bind(null,ft,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:nr,useDeferredValue:function(t,e){var a=ye();return lr(a,t,e)},useTransition:function(){var t=tr(!1);return t=Hf.bind(null,ft,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=ft,l=ye();if(wt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(vt&127)!==0||mf(n,e,a)}l.memoizedState=a;var s={value:a,getSnapshot:e};return l.queue=s,Cf(gf.bind(null,n,s,t),[t]),n.flags|=2048,Fn(9,{destroy:void 0},pf.bind(null,n,s,a,e),null),a},useId:function(){var t=ye(),e=Bt.identifierPrefix;if(wt){var a=ra,n=sa;a=(n&~(1<<32-Ce(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Ji++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Sp++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ur,useFormState:_f,useActionState:_f,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=sr.bind(null,ft,!0,a),a.dispatch=e,[t,e]},useMemoCache:Ws,useCacheRefresh:function(){return ye().memoizedState=Tp.bind(null,ft)},useEffectEvent:function(t){var e=ye(),a={impl:t};return e.memoizedState=a,function(){if((Dt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},rr={readContext:fe,use:Pi,useCallback:jf,useContext:fe,useEffect:ar,useImperativeHandle:Uf,useInsertionEffect:Of,useLayoutEffect:Nf,useMemo:Lf,useReducer:Wi,useRef:Rf,useState:function(){return Wi(ba)},useDebugValue:nr,useDeferredValue:function(t,e){var a=Ft();return Bf(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Wi(ba)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Bl(t),e]},useSyncExternalStore:hf,useId:Vf,useHostTransitionStatus:ur,useFormState:Tf,useActionState:Tf,useOptimistic:function(t,e){var a=Ft();return bf(a,Ut,t,e)},useMemoCache:Ws,useCacheRefresh:Gf};rr.useEffectEvent=zf;var Jf={readContext:fe,use:Pi,useCallback:jf,useContext:fe,useEffect:ar,useImperativeHandle:Uf,useInsertionEffect:Of,useLayoutEffect:Nf,useMemo:Lf,useReducer:Is,useRef:Rf,useState:function(){return Is(ba)},useDebugValue:nr,useDeferredValue:function(t,e){var a=Ft();return Ut===null?lr(a,t,e):Bf(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Is(ba)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Bl(t),e]},useSyncExternalStore:hf,useId:Vf,useHostTransitionStatus:ur,useFormState:Df,useActionState:Df,useOptimistic:function(t,e){var a=Ft();return Ut!==null?bf(a,Ut,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Ws,useCacheRefresh:Gf};Jf.useEffectEvent=zf;function or(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:A({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var cr={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=Le(),l=qa(n);l.payload=e,a!=null&&(l.callback=a),e=Ya(t,l,n),e!==null&&(Te(e,t,n),kl(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=Le(),l=qa(n);l.tag=1,l.payload=e,a!=null&&(l.callback=a),e=Ya(t,l,n),e!==null&&(Te(e,t,n),kl(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Le(),n=qa(a);n.tag=2,e!=null&&(n.callback=e),e=Ya(t,n,a),e!==null&&(Te(e,t,a),kl(e,t,a))}};function $f(t,e,a,n,l,s,c){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,c):e.prototype&&e.prototype.isPureReactComponent?!Tl(a,n)||!Tl(l,s):!0}function Pf(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&cr.enqueueReplaceState(e,e.state,null)}function Sn(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=A({},a));for(var l in t)a[l]===void 0&&(a[l]=t[l])}return a}function Wf(t){Oi(t)}function Ff(t){console.error(t)}function If(t){Oi(t)}function eu(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function td(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function fr(t,e,a){return a=qa(a),a.tag=3,a.payload={element:null},a.callback=function(){eu(t,e)},a}function ed(t){return t=qa(t),t.tag=3,t}function ad(t,e,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var s=n.value;t.payload=function(){return l(s)},t.callback=function(){td(e,a,n)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(t.callback=function(){td(e,a,n),typeof l!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Dp(t,e,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&Xn(e,a,l,!0),a=Ne.current,a!==null){switch(a.tag){case 31:case 13:return Ke===null?hu():a.alternate===null&&Pt===0&&(Pt=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Vi?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),jr(t,n,l)),!1;case 22:return a.flags|=65536,n===Vi?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),jr(t,n,l)),!1}throw Error(r(435,a.tag))}return jr(t,n,l),hu(),!1}if(wt)return e=Ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,n!==Cs&&(t=Error(r(422),{cause:n}),Rl(Ge(t,a)))):(n!==Cs&&(e=Error(r(423),{cause:n}),Rl(Ge(e,a))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,n=Ge(n,a),l=fr(t.stateNode,n,l),Ys(t,l),Pt!==4&&(Pt=2)),!1;var s=Error(r(520),{cause:n});if(s=Ge(s,a),Jl===null?Jl=[s]:Jl.push(s),Pt!==4&&(Pt=2),e===null)return!0;n=Ge(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=l&-l,a.lanes|=t,t=fr(a.stateNode,n,t),Ys(a,t),!1;case 1:if(e=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ka===null||!Ka.has(s))))return a.flags|=65536,l&=-l,a.lanes|=l,l=ed(l),ad(l,t,a,n),Ys(a,l),!1}a=a.return}while(a!==null);return!1}var dr=Error(r(461)),ee=!1;function de(t,e,a,n){e.child=t===null?uf(e,null,a,n):vn(e,t.child,a,n)}function nd(t,e,a,n,l){a=a.render;var s=e.ref;if("ref"in n){var c={};for(var h in n)h!=="ref"&&(c[h]=n[h])}else c=n;return mn(e),n=Ks(t,e,a,c,s,l),h=Js(),t!==null&&!ee?($s(t,e,l),Sa(t,e,l)):(wt&&h&&Ds(e),e.flags|=1,de(t,e,n,l),e.child)}function ld(t,e,a,n,l){if(t===null){var s=a.type;return typeof s=="function"&&!_s(s)&&s.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=s,id(t,e,s,n,l)):(t=ji(a.type,null,n,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Sr(t,l)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:Tl,a(c,n)&&t.ref===e.ref)return Sa(t,e,l)}return e.flags|=1,t=ma(s,n),t.ref=e.ref,t.return=e,e.child=t}function id(t,e,a,n,l){if(t!==null){var s=t.memoizedProps;if(Tl(s,n)&&t.ref===e.ref)if(ee=!1,e.pendingProps=n=s,Sr(t,l))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Sa(t,e,l)}return hr(t,e,a,n,l)}function ud(t,e,a,n){var l=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,t!==null){for(n=e.child=t.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~s}else n=0,e.child=null;return sd(t,e,s,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&qi(e,s!==null?s.cachePool:null),s!==null?of(e,s):Gs(),cf(e);else return n=e.lanes=536870912,sd(t,e,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(qi(e,s.cachePool),of(e,s),Ga(),e.memoizedState=null):(t!==null&&qi(e,null),Gs(),Ga());return de(t,e,l,a),e.child}function Yl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function sd(t,e,a,n,l){var s=Ls();return s=s===null?null:{parent:It._currentValue,pool:s},e.memoizedState={baseLanes:a,cachePool:s},t!==null&&qi(e,null),Gs(),cf(e),t!==null&&Xn(t,e,n,!0),e.childLanes=l,null}function au(t,e){return e=lu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function rd(t,e,a){return vn(e,t.child,null,a),t=au(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function Rp(t,e,a){var n=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(n.mode==="hidden")return t=au(e,n),e.lanes=536870912,Yl(null,t);if(Qs(e),(t=Yt)?(t=Sh(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Xc(t),a.return=e,e.child=a,ce=e,Yt=null)):t=null,t===null)throw La(e);return e.lanes=536870912,null}return au(e,n)}var s=t.memoizedState;if(s!==null){var c=s.dehydrated;if(Qs(e),l)if(e.flags&256)e.flags&=-257,e=rd(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||Xn(t,e,a,!1),l=(a&t.childLanes)!==0,ee||l){if(n=Bt,n!==null&&(c=Wo(n,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,cn(t,c),Te(n,t,c),dr;hu(),e=rd(t,e,a)}else t=s.treeContext,Yt=Je(c.nextSibling),ce=e,wt=!0,ja=null,Ze=!1,t!==null&&Kc(e,t),e=au(e,n),e.flags|=4096;return e}return t=ma(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function nu(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function hr(t,e,a,n,l){return mn(e),a=Ks(t,e,a,n,void 0,l),n=Js(),t!==null&&!ee?($s(t,e,l),Sa(t,e,l)):(wt&&n&&Ds(e),e.flags|=1,de(t,e,a,l),e.child)}function od(t,e,a,n,l,s){return mn(e),e.updateQueue=null,a=df(e,n,a,l),ff(t),n=Js(),t!==null&&!ee?($s(t,e,s),Sa(t,e,s)):(wt&&n&&Ds(e),e.flags|=1,de(t,e,a,s),e.child)}function cd(t,e,a,n,l){if(mn(e),e.stateNode===null){var s=qn,c=a.contextType;typeof c=="object"&&c!==null&&(s=fe(c)),s=new a(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=cr,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},Hs(e),c=a.contextType,s.context=typeof c=="object"&&c!==null?fe(c):qn,s.state=e.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(or(e,a,c,n),s.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&cr.enqueueReplaceState(s,s.state,null),jl(e,n,s,l),Ul(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var h=e.memoizedProps,v=Sn(a,h);s.props=v;var R=s.context,L=a.contextType;c=qn,typeof L=="object"&&L!==null&&(c=fe(L));var H=a.getDerivedStateFromProps;L=typeof H=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,L||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||R!==c)&&Pf(e,s,n,c),Ha=!1;var C=e.memoizedState;s.state=C,jl(e,n,s,l),Ul(),R=e.memoizedState,h||C!==R||Ha?(typeof H=="function"&&(or(e,a,H,n),R=e.memoizedState),(v=Ha||$f(e,a,v,n,C,R,c))?(L||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=R),s.props=n,s.state=R,s.context=c,n=v):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,qs(t,e),c=e.memoizedProps,L=Sn(a,c),s.props=L,H=e.pendingProps,C=s.context,R=a.contextType,v=qn,typeof R=="object"&&R!==null&&(v=fe(R)),h=a.getDerivedStateFromProps,(R=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==H||C!==v)&&Pf(e,s,n,v),Ha=!1,C=e.memoizedState,s.state=C,jl(e,n,s,l),Ul();var z=e.memoizedState;c!==H||C!==z||Ha||t!==null&&t.dependencies!==null&&Bi(t.dependencies)?(typeof h=="function"&&(or(e,a,h,n),z=e.memoizedState),(L=Ha||$f(e,a,L,n,C,z,v)||t!==null&&t.dependencies!==null&&Bi(t.dependencies))?(R||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,z,v),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,z,v)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=z),s.props=n,s.state=z,s.context=v,n=L):(typeof s.componentDidUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,nu(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=vn(e,t.child,null,l),e.child=vn(e,null,a,l)):de(t,e,a,l),e.memoizedState=s.state,t=e.child):t=Sa(t,e,l),t}function fd(t,e,a,n){return dn(),e.flags|=256,de(t,e,a,n),e.child}var mr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pr(t){return{baseLanes:t,cachePool:Ic()}}function gr(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=je),t}function dd(t,e,a){var n=e.pendingProps,l=!1,s=(e.flags&128)!==0,c;if((c=s)||(c=t!==null&&t.memoizedState===null?!1:(Wt.current&2)!==0),c&&(l=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(l?Va(e):Ga(),(t=Yt)?(t=Sh(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Xc(t),a.return=e,e.child=a,ce=e,Yt=null)):t=null,t===null)throw La(e);return Fr(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,l?(Ga(),l=e.mode,h=lu({mode:"hidden",children:h},l),n=fn(n,l,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=pr(a),n.childLanes=gr(t,c,a),e.memoizedState=mr,Yl(null,n)):(Va(e),yr(e,h))}var v=t.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(s)e.flags&256?(Va(e),e.flags&=-257,e=vr(t,e,a)):e.memoizedState!==null?(Ga(),e.child=t.child,e.flags|=128,e=null):(Ga(),h=n.fallback,l=e.mode,n=lu({mode:"visible",children:n.children},l),h=fn(h,l,a,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,vn(e,t.child,null,a),n=e.child,n.memoizedState=pr(a),n.childLanes=gr(t,c,a),e.memoizedState=mr,e=Yl(null,n));else if(Va(e),Fr(h)){if(c=h.nextSibling&&h.nextSibling.dataset,c)var R=c.dgst;c=R,n=Error(r(419)),n.stack="",n.digest=c,Rl({value:n,source:null,stack:null}),e=vr(t,e,a)}else if(ee||Xn(t,e,a,!1),c=(a&t.childLanes)!==0,ee||c){if(c=Bt,c!==null&&(n=Wo(c,a),n!==0&&n!==v.retryLane))throw v.retryLane=n,cn(t,n),Te(c,t,n),dr;Wr(h)||hu(),e=vr(t,e,a)}else Wr(h)?(e.flags|=192,e.child=t.child,e=null):(t=v.treeContext,Yt=Je(h.nextSibling),ce=e,wt=!0,ja=null,Ze=!1,t!==null&&Kc(e,t),e=yr(e,n.children),e.flags|=4096);return e}return l?(Ga(),h=n.fallback,l=e.mode,v=t.child,R=v.sibling,n=ma(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,R!==null?h=ma(R,h):(h=fn(h,l,a,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,Yl(null,n),n=e.child,h=t.child.memoizedState,h===null?h=pr(a):(l=h.cachePool,l!==null?(v=It._currentValue,l=l.parent!==v?{parent:v,pool:v}:l):l=Ic(),h={baseLanes:h.baseLanes|a,cachePool:l}),n.memoizedState=h,n.childLanes=gr(t,c,a),e.memoizedState=mr,Yl(t.child,n)):(Va(e),a=t.child,t=a.sibling,a=ma(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(c=e.deletions,c===null?(e.deletions=[t],e.flags|=16):c.push(t)),e.child=a,e.memoizedState=null,a)}function yr(t,e){return e=lu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function lu(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function vr(t,e,a){return vn(e,t.child,null,a),t=yr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function hd(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ns(t.return,e,a)}function br(t,e,a,n,l,s){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:s}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=a,c.tailMode=l,c.treeForkCount=s)}function md(t,e,a){var n=e.pendingProps,l=n.revealOrder,s=n.tail;n=n.children;var c=Wt.current,h=(c&2)!==0;if(h?(c=c&1|2,e.flags|=128):c&=1,J(Wt,c),de(t,e,n,a),n=wt?Dl:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&hd(t,a,e);else if(t.tag===19)hd(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(a=e.child,l=null;a!==null;)t=a.alternate,t!==null&&Zi(t)===null&&(l=a),a=a.sibling;a=l,a===null?(l=e.child,e.child=null):(l=a.sibling,a.sibling=null),br(e,!1,l,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Zi(t)===null){e.child=l;break}t=l.sibling,l.sibling=a,a=l,l=t}br(e,!0,a,null,s,n);break;case"together":br(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Sa(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Za|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Xn(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ma(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ma(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Sr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Bi(t)))}function Cp(t,e,a){switch(e.tag){case 3:Y(e,e.stateNode.containerInfo),Ba(e,It,t.memoizedState.cache),dn();break;case 27:case 5:st(e);break;case 4:Y(e,e.stateNode.containerInfo);break;case 10:Ba(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Qs(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Va(e),e.flags|=128,null):(a&e.child.childLanes)!==0?dd(t,e,a):(Va(e),t=Sa(t,e,a),t!==null?t.sibling:null);Va(e);break;case 19:var l=(t.flags&128)!==0;if(n=(a&e.childLanes)!==0,n||(Xn(t,e,a,!1),n=(a&e.childLanes)!==0),l){if(n)return md(t,e,a);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),J(Wt,Wt.current),n)break;return null;case 22:return e.lanes=0,ud(t,e,a,e.pendingProps);case 24:Ba(e,It,t.memoizedState.cache)}return Sa(t,e,a)}function pd(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Sr(t,a)&&(e.flags&128)===0)return ee=!1,Cp(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,wt&&(e.flags&1048576)!==0&&Zc(e,Dl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=gn(e.elementType),e.type=t,typeof t=="function")_s(t)?(n=Sn(t,n),e.tag=1,e=cd(null,e,t,n,a)):(e.tag=0,e=hr(null,e,t,n,a));else{if(t!=null){var l=t.$$typeof;if(l===$){e.tag=11,e=nd(null,e,t,n,a);break t}else if(l===K){e.tag=14,e=ld(null,e,t,n,a);break t}}throw e=pe(t)||t,Error(r(306,e,""))}}return e;case 0:return hr(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,l=Sn(n,e.pendingProps),cd(t,e,n,l,a);case 3:t:{if(Y(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var s=e.memoizedState;l=s.element,qs(t,e),jl(e,n,null,a);var c=e.memoizedState;if(n=c.cache,Ba(e,It,n),n!==s.cache&&ks(e,[It],a,!0),Ul(),n=c.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=fd(t,e,n,a);break t}else if(n!==l){l=Ge(Error(r(424)),e),Rl(l),e=fd(t,e,n,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Yt=Je(t.firstChild),ce=e,wt=!0,ja=null,Ze=!0,a=uf(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dn(),n===l){e=Sa(t,e,a);break t}de(t,e,n,a)}e=e.child}return e;case 26:return nu(t,e),t===null?(a=Th(e.type,null,e.pendingProps,null))?e.memoizedState=a:wt||(a=e.type,t=e.pendingProps,n=Su(ht.current).createElement(a),n[oe]=e,n[Se]=t,he(n,a,t),ue(n),e.stateNode=n):e.memoizedState=Th(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return st(e),t===null&&wt&&(n=e.stateNode=xh(e.type,e.pendingProps,ht.current),ce=e,Ze=!0,l=Yt,Wa(e.type)?(Ir=l,Yt=Je(n.firstChild)):Yt=l),de(t,e,e.pendingProps.children,a),nu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((l=n=Yt)&&(n=ug(n,e.type,e.pendingProps,Ze),n!==null?(e.stateNode=n,ce=e,Yt=Je(n.firstChild),Ze=!1,l=!0):l=!1),l||La(e)),st(e),l=e.type,s=e.pendingProps,c=t!==null?t.memoizedProps:null,n=s.children,Jr(l,s)?n=null:c!==null&&Jr(l,c)&&(e.flags|=32),e.memoizedState!==null&&(l=Ks(t,e,wp,null,null,a),ai._currentValue=l),nu(t,e),de(t,e,n,a),e.child;case 6:return t===null&&wt&&((t=a=Yt)&&(a=sg(a,e.pendingProps,Ze),a!==null?(e.stateNode=a,ce=e,Yt=null,t=!0):t=!1),t||La(e)),null;case 13:return dd(t,e,a);case 4:return Y(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=vn(e,null,n,a):de(t,e,n,a),e.child;case 11:return nd(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return n=e.pendingProps,Ba(e,e.type,n.value),de(t,e,n.children,a),e.child;case 9:return l=e.type._context,n=e.pendingProps.children,mn(e),l=fe(l),n=n(l),e.flags|=1,de(t,e,n,a),e.child;case 14:return ld(t,e,e.type,e.pendingProps,a);case 15:return id(t,e,e.type,e.pendingProps,a);case 19:return md(t,e,a);case 31:return Rp(t,e,a);case 22:return ud(t,e,a,e.pendingProps);case 24:return mn(e),n=fe(It),t===null?(l=Ls(),l===null&&(l=Bt,s=Us(),l.pooledCache=s,s.refCount++,s!==null&&(l.pooledCacheLanes|=a),l=s),e.memoizedState={parent:n,cache:l},Hs(e),Ba(e,It,l)):((t.lanes&a)!==0&&(qs(t,e),jl(e,null,null,a),Ul()),l=t.memoizedState,s=e.memoizedState,l.parent!==n?(l={parent:n,cache:n},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Ba(e,It,n)):(n=s.cache,Ba(e,It,n),n!==l.cache&&ks(e,[It],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function wa(t){t.flags|=4}function wr(t,e,a,n,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(Vd())t.flags|=8192;else throw yn=Vi,Bs}else t.flags&=-16777217}function gd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zh(e))if(Vd())t.flags|=8192;else throw yn=Vi,Bs}function iu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Jo():536870912,t.lanes|=e,al|=e)}function Vl(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function zp(t,e,a){var n=e.pendingProps;switch(Rs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ya(It),W(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Gn(e)?wa(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,zs())),Vt(e),null;case 26:var l=e.type,s=e.memoizedState;return t===null?(wa(e),s!==null?(Vt(e),gd(e,s)):(Vt(e),wr(e,l,null,n,a))):s?s!==t.memoizedState?(wa(e),Vt(e),gd(e,s)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&wa(e),Vt(e),wr(e,l,t,n,a)),null;case 27:if(lt(e),a=ht.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}t=I.current,Gn(e)?Jc(e):(t=xh(l,n,a),e.stateNode=t,wa(e))}return Vt(e),null;case 5:if(lt(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}if(s=I.current,Gn(e))Jc(e);else{var c=Su(ht.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?c.createElement(l,{is:n.is}):c.createElement(l)}}s[oe]=e,s[Se]=n;t:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=s;t:switch(he(s,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&wa(e)}}return Vt(e),wr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=ht.current,Gn(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,l=ce,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}t[oe]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||dh(t.nodeValue,a)),t||La(e,!0)}else t=Su(t).createTextNode(n),t[oe]=e,e.stateNode=t}return Vt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Gn(e),a!==null){if(t===null){if(!n)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[oe]=e}else dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else a=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Vt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Gn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[oe]=e}else dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),l=!1}else l=zs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==l&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),iu(e,e.updateQueue),Vt(e),null);case 4:return W(),t===null&&Gr(e.stateNode.containerInfo),Vt(e),null;case 10:return ya(e.type),Vt(e),null;case 19:if(q(Wt),n=e.memoizedState,n===null)return Vt(e),null;if(l=(e.flags&128)!==0,s=n.rendering,s===null)if(l)Vl(n,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Zi(t),s!==null){for(e.flags|=128,Vl(n,!1),t=s.updateQueue,e.updateQueue=t,iu(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Gc(a,t),a=a.sibling;return J(Wt,Wt.current&1|2),wt&&pa(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&qt()>cu&&(e.flags|=128,l=!0,Vl(n,!1),e.lanes=4194304)}else{if(!l)if(t=Zi(s),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,iu(e,t),Vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!wt)return Vt(e),null}else 2*qt()-n.renderingStartTime>cu&&a!==536870912&&(e.flags|=128,l=!0,Vl(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=qt(),t.sibling=null,a=Wt.current,J(Wt,l?a&1|2:a&1),wt&&pa(e,n.treeForkCount),t):(Vt(e),null);case 22:case 23:return ke(e),Xs(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),a=e.updateQueue,a!==null&&iu(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&q(pn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ya(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Op(t,e){switch(Rs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ya(It),W(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return lt(e),null;case 31:if(e.memoizedState!==null){if(ke(e),e.alternate===null)throw Error(r(340));dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Wt),null;case 4:return W(),null;case 10:return ya(e.type),null;case 22:case 23:return ke(e),Xs(),t!==null&&q(pn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ya(It),null;case 25:return null;default:return null}}function yd(t,e){switch(Rs(e),e.tag){case 3:ya(It),W();break;case 26:case 27:case 5:lt(e);break;case 4:W();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:q(Wt);break;case 10:ya(e.type);break;case 22:case 23:ke(e),Xs(),t!==null&&q(pn);break;case 24:ya(It)}}function Gl(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&t)===t){n=void 0;var s=a.create,c=a.inst;n=s(),c.destroy=n}a=a.next}while(a!==l)}}catch(h){Nt(e,e.return,h)}}function Xa(t,e,a){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){var c=n.inst,h=c.destroy;if(h!==void 0){c.destroy=void 0,l=e;var v=a,R=h;try{R()}catch(L){Nt(l,v,L)}}}n=n.next}while(n!==s)}}catch(L){Nt(e,e.return,L)}}function vd(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{rf(e,a)}catch(n){Nt(t,t.return,n)}}}function bd(t,e,a){a.props=Sn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Nt(t,e,n)}}function Xl(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(l){Nt(t,e,l)}}function oa(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Nt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Nt(t,e,l)}else a.current=null}function Sd(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break t;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Nt(t,t.return,l)}}function Er(t,e,a){try{var n=t.stateNode;tg(n,t.type,a,e),n[Se]=e}catch(l){Nt(t,t.return,l)}}function wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wa(t.type)||t.tag===4}function xr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Wa(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ar(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=da));else if(n!==4&&(n===27&&Wa(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Ar(t,e,a),t=t.sibling;t!==null;)Ar(t,e,a),t=t.sibling}function uu(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(n===27&&Wa(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(uu(t,e,a),t=t.sibling;t!==null;)uu(t,e,a),t=t.sibling}function Ed(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);he(e,n,a),e[oe]=t,e[Se]=a}catch(s){Nt(t,t.return,s)}}var Ea=!1,ae=!1,_r=!1,xd=typeof WeakSet=="function"?WeakSet:Set,se=null;function Np(t,e){if(t=t.containerInfo,Zr=Mu,t=kc(t),vs(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break t}var c=0,h=-1,v=-1,R=0,L=0,H=t,C=null;e:for(;;){for(var z;H!==a||l!==0&&H.nodeType!==3||(h=c+l),H!==s||n!==0&&H.nodeType!==3||(v=c+n),H.nodeType===3&&(c+=H.nodeValue.length),(z=H.firstChild)!==null;)C=H,H=z;for(;;){if(H===t)break e;if(C===a&&++R===l&&(h=c),C===s&&++L===n&&(v=c),(z=H.nextSibling)!==null)break;H=C,C=H.parentNode}H=z}a=h===-1||v===-1?null:{start:h,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Kr={focusedElem:t,selectionRange:a},Mu=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)l=t[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,a=e,l=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var F=Sn(a.type,l);t=n.getSnapshotBeforeUpdate(F,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(it){Nt(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Pr(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}}function Ad(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(t,a),n&4&&Gl(5,a);break;case 1:if(Aa(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(c){Nt(a,a.return,c)}else{var l=Sn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(c){Nt(a,a.return,c)}}n&64&&vd(a),n&512&&Xl(a,a.return);break;case 3:if(Aa(t,a),n&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{rf(t,e)}catch(c){Nt(a,a.return,c)}}break;case 27:e===null&&n&4&&Ed(a);case 26:case 5:Aa(t,a),e===null&&n&4&&Sd(a),n&512&&Xl(a,a.return);break;case 12:Aa(t,a);break;case 31:Aa(t,a),n&4&&Md(t,a);break;case 13:Aa(t,a),n&4&&Dd(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Vp.bind(null,a),rg(t,a))));break;case 22:if(n=a.memoizedState!==null||Ea,!n){e=e!==null&&e.memoizedState!==null||ae,l=Ea;var s=ae;Ea=n,(ae=e)&&!s?_a(t,a,(a.subtreeFlags&8772)!==0):Aa(t,a),Ea=l,ae=s}break;case 30:break;default:Aa(t,a)}}function _d(t){var e=t.alternate;e!==null&&(t.alternate=null,_d(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&es(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,Ee=!1;function xa(t,e,a){for(a=a.child;a!==null;)Td(t,e,a),a=a.sibling}function Td(t,e,a){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(ml,a)}catch{}switch(a.tag){case 26:ae||oa(a,e),xa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||oa(a,e);var n=Gt,l=Ee;Wa(a.type)&&(Gt=a.stateNode,Ee=!1),xa(t,e,a),Il(a.stateNode),Gt=n,Ee=l;break;case 5:ae||oa(a,e);case 6:if(n=Gt,l=Ee,Gt=null,xa(t,e,a),Gt=n,Ee=l,Gt!==null)if(Ee)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(s){Nt(a,e,s)}else try{Gt.removeChild(a.stateNode)}catch(s){Nt(a,e,s)}break;case 18:Gt!==null&&(Ee?(t=Gt,vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),cl(t)):vh(Gt,a.stateNode));break;case 4:n=Gt,l=Ee,Gt=a.stateNode.containerInfo,Ee=!0,xa(t,e,a),Gt=n,Ee=l;break;case 0:case 11:case 14:case 15:Xa(2,a,e),ae||Xa(4,a,e),xa(t,e,a);break;case 1:ae||(oa(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&bd(a,e,n)),xa(t,e,a);break;case 21:xa(t,e,a);break;case 22:ae=(n=ae)||a.memoizedState!==null,xa(t,e,a),ae=n;break;default:xa(t,e,a)}}function Md(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{cl(t)}catch(a){Nt(e,e.return,a)}}}function Dd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{cl(t)}catch(a){Nt(e,e.return,a)}}function kp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xd),e;default:throw Error(r(435,t.tag))}}function su(t,e){var a=kp(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var l=Gp.bind(null,t,n);n.then(l,l)}})}function xe(t,e){var a=e.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],s=t,c=e,h=c;t:for(;h!==null;){switch(h.tag){case 27:if(Wa(h.type)){Gt=h.stateNode,Ee=!1;break t}break;case 5:Gt=h.stateNode,Ee=!1;break t;case 3:case 4:Gt=h.stateNode.containerInfo,Ee=!0;break t}h=h.return}if(Gt===null)throw Error(r(160));Td(s,c,l),Gt=null,Ee=!1,s=l.alternate,s!==null&&(s.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Rd(e,t),e=e.sibling}var ta=null;function Rd(t,e){var a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Ae(t),n&4&&(Xa(3,t,t.return),Gl(3,t),Xa(5,t,t.return));break;case 1:xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),n&64&&Ea&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=ta;if(xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=t.memoizedState,a===null)if(n===null)if(t.stateNode===null){t:{n=t.type,a=t.memoizedProps,l=l.ownerDocument||l;e:switch(n){case"title":s=l.getElementsByTagName("title")[0],(!s||s[yl]||s[oe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=l.createElement(n),l.head.insertBefore(s,l.querySelector("head > title"))),he(s,n,a),s[oe]=t,ue(s),n=s;break t;case"link":var c=Rh("link","href",l).get(n+(a.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(h,1);break e}}s=l.createElement(n),he(s,n,a),l.head.appendChild(s);break;case"meta":if(c=Rh("meta","content",l).get(n+(a.content||""))){for(h=0;h<c.length;h++)if(s=c[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(h,1);break e}}s=l.createElement(n),he(s,n,a),l.head.appendChild(s);break;default:throw Error(r(468,n))}s[oe]=t,ue(s),n=s}t.stateNode=n}else Ch(l,t.type,t.stateNode);else t.stateNode=Dh(l,n,t.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Ch(l,t.type,t.stateNode):Dh(l,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Er(t,t.memoizedProps,a.memoizedProps)}break;case 27:xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),a!==null&&n&4&&Er(t,t.memoizedProps,a.memoizedProps);break;case 5:if(xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),t.flags&32){l=t.stateNode;try{Nn(l,"")}catch(F){Nt(t,t.return,F)}}n&4&&t.stateNode!=null&&(l=t.memoizedProps,Er(t,l,a!==null?a.memoizedProps:l)),n&1024&&(_r=!0);break;case 6:if(xe(e,t),Ae(t),n&4){if(t.stateNode===null)throw Error(r(162));n=t.memoizedProps,a=t.stateNode;try{a.nodeValue=n}catch(F){Nt(t,t.return,F)}}break;case 3:if(xu=null,l=ta,ta=wu(e.containerInfo),xe(e,t),ta=l,Ae(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{cl(e.containerInfo)}catch(F){Nt(t,t.return,F)}_r&&(_r=!1,Cd(t));break;case 4:n=ta,ta=wu(t.stateNode.containerInfo),xe(e,t),Ae(t),ta=n;break;case 12:xe(e,t),Ae(t);break;case 31:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,su(t,n)));break;case 13:xe(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ou=qt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,su(t,n)));break;case 22:l=t.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,R=Ea,L=ae;if(Ea=R||l,ae=L||v,xe(e,t),ae=L,Ea=R,Ae(t),n&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(a===null||v||Ea||ae||wn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){v=a=e;try{if(s=v.stateNode,l)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{h=v.stateNode;var H=v.memoizedProps.style,C=H!=null&&H.hasOwnProperty("display")?H.display:null;h.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(F){Nt(v,v.return,F)}}}else if(e.tag===6){if(a===null){v=e;try{v.stateNode.nodeValue=l?"":v.memoizedProps}catch(F){Nt(v,v.return,F)}}}else if(e.tag===18){if(a===null){v=e;try{var z=v.stateNode;l?bh(z,!0):bh(v.stateNode,!1)}catch(F){Nt(v,v.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,su(t,a))));break;case 19:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,su(t,n)));break;case 30:break;case 21:break;default:xe(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(wd(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var l=a.stateNode,s=xr(t);uu(t,s,l);break;case 5:var c=a.stateNode;a.flags&32&&(Nn(c,""),a.flags&=-33);var h=xr(t);uu(t,h,c);break;case 3:case 4:var v=a.stateNode.containerInfo,R=xr(t);Ar(t,R,v);break;default:throw Error(r(161))}}catch(L){Nt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Cd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Cd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Aa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ad(t,e.alternate,e),e=e.sibling}function wn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Xa(4,e,e.return),wn(e);break;case 1:oa(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&bd(e,e.return,a),wn(e);break;case 27:Il(e.stateNode);case 26:case 5:oa(e,e.return),wn(e);break;case 22:e.memoizedState===null&&wn(e);break;case 30:wn(e);break;default:wn(e)}t=t.sibling}}function _a(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,l=t,s=e,c=s.flags;switch(s.tag){case 0:case 11:case 15:_a(l,s,a),Gl(4,s);break;case 1:if(_a(l,s,a),n=s,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(R){Nt(n,n.return,R)}if(n=s,l=n.updateQueue,l!==null){var h=n.stateNode;try{var v=l.shared.hiddenCallbacks;if(v!==null)for(l.shared.hiddenCallbacks=null,l=0;l<v.length;l++)sf(v[l],h)}catch(R){Nt(n,n.return,R)}}a&&c&64&&vd(s),Xl(s,s.return);break;case 27:Ed(s);case 26:case 5:_a(l,s,a),a&&n===null&&c&4&&Sd(s),Xl(s,s.return);break;case 12:_a(l,s,a);break;case 31:_a(l,s,a),a&&c&4&&Md(l,s);break;case 13:_a(l,s,a),a&&c&4&&Dd(l,s);break;case 22:s.memoizedState===null&&_a(l,s,a),Xl(s,s.return);break;case 30:break;default:_a(l,s,a)}e=e.sibling}}function Tr(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Cl(a))}function Mr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t))}function ea(t,e,a,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zd(t,e,a,n),e=e.sibling}function zd(t,e,a,n){var l=e.flags;switch(e.tag){case 0:case 11:case 15:ea(t,e,a,n),l&2048&&Gl(9,e);break;case 1:ea(t,e,a,n);break;case 3:ea(t,e,a,n),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t)));break;case 12:if(l&2048){ea(t,e,a,n),t=e.stateNode;try{var s=e.memoizedProps,c=s.id,h=s.onPostCommit;typeof h=="function"&&h(c,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(v){Nt(e,e.return,v)}}else ea(t,e,a,n);break;case 31:ea(t,e,a,n);break;case 13:ea(t,e,a,n);break;case 23:break;case 22:s=e.stateNode,c=e.alternate,e.memoizedState!==null?s._visibility&2?ea(t,e,a,n):Ql(t,e):s._visibility&2?ea(t,e,a,n):(s._visibility|=2,In(t,e,a,n,(e.subtreeFlags&10256)!==0||!1)),l&2048&&Tr(c,e);break;case 24:ea(t,e,a,n),l&2048&&Mr(e.alternate,e);break;default:ea(t,e,a,n)}}function In(t,e,a,n,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,c=e,h=a,v=n,R=c.flags;switch(c.tag){case 0:case 11:case 15:In(s,c,h,v,l),Gl(8,c);break;case 23:break;case 22:var L=c.stateNode;c.memoizedState!==null?L._visibility&2?In(s,c,h,v,l):Ql(s,c):(L._visibility|=2,In(s,c,h,v,l)),l&&R&2048&&Tr(c.alternate,c);break;case 24:In(s,c,h,v,l),l&&R&2048&&Mr(c.alternate,c);break;default:In(s,c,h,v,l)}e=e.sibling}}function Ql(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,l=n.flags;switch(n.tag){case 22:Ql(a,n),l&2048&&Tr(n.alternate,n);break;case 24:Ql(a,n),l&2048&&Mr(n.alternate,n);break;default:Ql(a,n)}e=e.sibling}}var Zl=8192;function tl(t,e,a){if(t.subtreeFlags&Zl)for(t=t.child;t!==null;)Od(t,e,a),t=t.sibling}function Od(t,e,a){switch(t.tag){case 26:tl(t,e,a),t.flags&Zl&&t.memoizedState!==null&&Sg(a,ta,t.memoizedState,t.memoizedProps);break;case 5:tl(t,e,a);break;case 3:case 4:var n=ta;ta=wu(t.stateNode.containerInfo),tl(t,e,a),ta=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Zl,Zl=16777216,tl(t,e,a),Zl=n):tl(t,e,a));break;default:tl(t,e,a)}}function Nd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Kl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Ud(n,t)}Nd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kd(t),t=t.sibling}function kd(t){switch(t.tag){case 0:case 11:case 15:Kl(t),t.flags&2048&&Xa(9,t,t.return);break;case 3:Kl(t);break;case 12:Kl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ru(t)):Kl(t);break;default:Kl(t)}}function ru(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Ud(n,t)}Nd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Xa(8,e,e.return),ru(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,ru(e));break;default:ru(e)}t=t.sibling}}function Ud(t,e){for(;se!==null;){var a=se;switch(a.tag){case 0:case 11:case 15:Xa(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,se=n;else t:for(a=t;se!==null;){n=se;var l=n.sibling,s=n.return;if(_d(n),n===a){se=null;break t}if(l!==null){l.return=s,se=l;break t}se=s}}}var Up={getCacheForType:function(t){var e=fe(It),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(It).controller.signal}},jp=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Bt=null,gt=null,vt=0,Ot=0,Ue=null,Qa=!1,el=!1,Dr=!1,Ta=0,Pt=0,Za=0,En=0,Rr=0,je=0,al=0,Jl=null,_e=null,Cr=!1,ou=0,jd=0,cu=1/0,fu=null,Ka=null,ne=0,Ja=null,nl=null,Ma=0,zr=0,Or=null,Ld=null,$l=0,Nr=null;function Le(){return(Dt&2)!==0&&vt!==0?vt&-vt:U.T!==null?Hr():Fo()}function Bd(){if(je===0)if((vt&536870912)===0||wt){var t=bi;bi<<=1,(bi&3932160)===0&&(bi=262144),je=t}else je=536870912;return t=Ne.current,t!==null&&(t.flags|=32),je}function Te(t,e,a){(t===Bt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(ll(t,0),$a(t,vt,je,!1)),gl(t,a),((Dt&2)===0||t!==Bt)&&(t===Bt&&((Dt&2)===0&&(En|=a),Pt===4&&$a(t,vt,je,!1)),ca(t))}function Hd(t,e,a){if((Dt&6)!==0)throw Error(r(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||pl(t,e),l=n?Hp(t,e):Ur(t,e,!0),s=n;do{if(l===0){el&&!n&&$a(t,e,0,!1);break}else{if(a=t.current.alternate,s&&!Lp(a)){l=Ur(t,e,!1),s=!1;continue}if(l===2){if(s=e,t.errorRecoveryDisabledLanes&s)var c=0;else c=t.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;t:{var h=t;l=Jl;var v=h.current.memoizedState.isDehydrated;if(v&&(ll(h,c).flags|=256),c=Ur(h,c,!1),c!==2){if(Dr&&!v){h.errorRecoveryDisabledLanes|=s,En|=s,l=4;break t}s=_e,_e=l,s!==null&&(_e===null?_e=s:_e.push.apply(_e,s))}l=c}if(s=!1,l!==2)continue}}if(l===1){ll(t,0),$a(t,e,0,!0);break}t:{switch(n=t,s=l,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:$a(n,e,je,!Qa);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=ou+300-qt(),10<l)){if($a(n,e,je,!Qa),wi(n,0,!0)!==0)break t;Ma=e,n.timeoutHandle=gh(qd.bind(null,n,a,_e,fu,Cr,e,je,En,al,Qa,s,"Throttled",-0,0),l);break t}qd(n,a,_e,fu,Cr,e,je,En,al,Qa,s,null,-0,0)}}break}while(!0);ca(t)}function qd(t,e,a,n,l,s,c,h,v,R,L,H,C,z){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:da},Od(e,s,H);var F=(s&62914560)===s?ou-qt():(s&4194048)===s?jd-qt():0;if(F=wg(H,F),F!==null){Ma=s,t.cancelPendingCommit=F(Jd.bind(null,t,e,s,a,n,l,c,h,v,L,H,null,C,z)),$a(t,s,c,!R);return}}Jd(t,e,s,a,n,l,c,h,v)}function Lp(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],s=l.getSnapshot;l=l.value;try{if(!ze(s(),l))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function $a(t,e,a,n){e&=~Rr,e&=~En,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var l=e;0<l;){var s=31-Ce(l),c=1<<s;n[s]=-1,l&=~c}a!==0&&$o(t,a,e)}function du(){return(Dt&6)===0?(Pl(0),!1):!0}function kr(){if(gt!==null){if(Ot===0)var t=gt.return;else t=gt,ga=hn=null,Ps(t),Jn=null,Ol=0,t=gt;for(;t!==null;)yd(t.alternate,t),t=t.return;gt=null}}function ll(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,ng(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Ma=0,kr(),Bt=t,gt=a=ma(t.current,null),vt=e,Ot=0,Ue=null,Qa=!1,el=pl(t,e),Dr=!1,al=je=Rr=En=Za=Pt=0,_e=Jl=null,Cr=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var l=31-Ce(n),s=1<<l;e|=t[l],n&=~s}return Ta=e,Ni(),a}function Yd(t,e){ft=null,U.H=ql,e===Kn||e===Yi?(e=af(),Ot=3):e===Bs?(e=af(),Ot=4):Ot=e===dr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,gt===null&&(Pt=1,eu(t,Ge(e,t.current)))}function Vd(){var t=Ne.current;return t===null?!0:(vt&4194048)===vt?Ke===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Ke:!1}function Gd(){var t=U.H;return U.H=ql,t===null?ql:t}function Xd(){var t=U.A;return U.A=Up,t}function hu(){Pt=4,Qa||(vt&4194048)!==vt&&Ne.current!==null||(el=!0),(Za&134217727)===0&&(En&134217727)===0||Bt===null||$a(Bt,vt,je,!1)}function Ur(t,e,a){var n=Dt;Dt|=2;var l=Gd(),s=Xd();(Bt!==t||vt!==e)&&(fu=null,ll(t,e)),e=!1;var c=Pt;t:do try{if(Ot!==0&>!==null){var h=gt,v=Ue;switch(Ot){case 8:kr(),c=6;break t;case 3:case 2:case 9:case 6:Ne.current===null&&(e=!0);var R=Ot;if(Ot=0,Ue=null,il(t,h,v,R),a&&el){c=0;break t}break;default:R=Ot,Ot=0,Ue=null,il(t,h,v,R)}}Bp(),c=Pt;break}catch(L){Yd(t,L)}while(!0);return e&&t.shellSuspendCounter++,ga=hn=null,Dt=n,U.H=l,U.A=s,gt===null&&(Bt=null,vt=0,Ni()),c}function Bp(){for(;gt!==null;)Qd(gt)}function Hp(t,e){var a=Dt;Dt|=2;var n=Gd(),l=Xd();Bt!==t||vt!==e?(fu=null,cu=qt()+500,ll(t,e)):el=pl(t,e);t:do try{if(Ot!==0&>!==null){e=gt;var s=Ue;e:switch(Ot){case 1:Ot=0,Ue=null,il(t,e,s,1);break;case 2:case 9:if(tf(s)){Ot=0,Ue=null,Zd(e);break}e=function(){Ot!==2&&Ot!==9||Bt!==t||(Ot=7),ca(t)},s.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:tf(s)?(Ot=0,Ue=null,Zd(e)):(Ot=0,Ue=null,il(t,e,s,7));break;case 5:var c=null;switch(gt.tag){case 26:c=gt.memoizedState;case 5:case 27:var h=gt;if(c?zh(c):h.stateNode.complete){Ot=0,Ue=null;var v=h.sibling;if(v!==null)gt=v;else{var R=h.return;R!==null?(gt=R,mu(R)):gt=null}break e}}Ot=0,Ue=null,il(t,e,s,5);break;case 6:Ot=0,Ue=null,il(t,e,s,6);break;case 8:kr(),Pt=6;break t;default:throw Error(r(462))}}qp();break}catch(L){Yd(t,L)}while(!0);return ga=hn=null,U.H=n,U.A=l,Dt=a,gt!==null?0:(Bt=null,vt=0,Ni(),Pt)}function qp(){for(;gt!==null&&!ge();)Qd(gt)}function Qd(t){var e=pd(t.alternate,t,Ta);t.memoizedProps=t.pendingProps,e===null?mu(t):gt=e}function Zd(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=od(a,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=od(a,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Ps(e);default:yd(a,e),e=gt=Gc(e,Ta),e=pd(a,e,Ta)}t.memoizedProps=t.pendingProps,e===null?mu(t):gt=e}function il(t,e,a,n){ga=hn=null,Ps(e),Jn=null,Ol=0;var l=e.return;try{if(Dp(t,l,e,a,vt)){Pt=1,eu(t,Ge(a,t.current)),gt=null;return}}catch(s){if(l!==null)throw gt=l,s;Pt=1,eu(t,Ge(a,t.current)),gt=null;return}e.flags&32768?(wt||n===1?t=!0:el||(vt&536870912)!==0?t=!1:(Qa=t=!0,(n===2||n===9||n===3||n===6)&&(n=Ne.current,n!==null&&n.tag===13&&(n.flags|=16384))),Kd(e,t)):mu(e)}function mu(t){var e=t;do{if((e.flags&32768)!==0){Kd(e,Qa);return}t=e.return;var a=zp(e.alternate,e,Ta);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Pt===0&&(Pt=5)}function Kd(t,e){do{var a=Op(t.alternate,t);if(a!==null){a.flags&=32767,gt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=a}while(t!==null);Pt=6,gt=null}function Jd(t,e,a,n,l,s,c,h,v){t.cancelPendingCommit=null;do pu();while(ne!==0);if((Dt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(s=e.lanes|e.childLanes,s|=xs,b0(t,a,s,c,h,v),t===Bt&&(gt=Bt=null,vt=0),nl=e,Ja=t,Ma=a,zr=s,Or=l,Ld=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Xp(yi,function(){return Id(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null,l=M.p,M.p=2,c=Dt,Dt|=4;try{Np(t,e,a)}finally{Dt=c,M.p=l,U.T=n}}ne=1,$d(),Pd(),Wd()}}function $d(){if(ne===1){ne=0;var t=Ja,e=nl,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var n=M.p;M.p=2;var l=Dt;Dt|=4;try{Rd(e,t);var s=Kr,c=kc(t.containerInfo),h=s.focusedElem,v=s.selectionRange;if(c!==h&&h&&h.ownerDocument&&Nc(h.ownerDocument.documentElement,h)){if(v!==null&&vs(h)){var R=v.start,L=v.end;if(L===void 0&&(L=R),"selectionStart"in h)h.selectionStart=R,h.selectionEnd=Math.min(L,h.value.length);else{var H=h.ownerDocument||document,C=H&&H.defaultView||window;if(C.getSelection){var z=C.getSelection(),F=h.textContent.length,it=Math.min(v.start,F),Lt=v.end===void 0?it:Math.min(v.end,F);!z.extend&&it>Lt&&(c=Lt,Lt=it,it=c);var _=Oc(h,it),w=Oc(h,Lt);if(_&&w&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==w.node||z.focusOffset!==w.offset)){var D=H.createRange();D.setStart(_.node,_.offset),z.removeAllRanges(),it>Lt?(z.addRange(D),z.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),z.addRange(D))}}}}for(H=[],z=h;z=z.parentNode;)z.nodeType===1&&H.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<H.length;h++){var B=H[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Mu=!!Zr,Kr=Zr=null}finally{Dt=l,M.p=n,U.T=a}}t.current=e,ne=2}}function Pd(){if(ne===2){ne=0;var t=Ja,e=nl,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var n=M.p;M.p=2;var l=Dt;Dt|=4;try{Ad(t,e.alternate,e)}finally{Dt=l,M.p=n,U.T=a}}ne=3}}function Wd(){if(ne===4||ne===3){ne=0,ie();var t=Ja,e=nl,a=Ma,n=Ld;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,nl=Ja=null,Fd(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Ka=null),Iu(a),e=e.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(ml,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=U.T,l=M.p,M.p=2,U.T=null;try{for(var s=t.onRecoverableError,c=0;c<n.length;c++){var h=n[c];s(h.value,{componentStack:h.stack})}}finally{U.T=e,M.p=l}}(Ma&3)!==0&&pu(),ca(t),l=t.pendingLanes,(a&261930)!==0&&(l&42)!==0?t===Nr?$l++:($l=0,Nr=t):$l=0,Pl(0)}}function Fd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Cl(e)))}function pu(){return $d(),Pd(),Wd(),Id()}function Id(){if(ne!==5)return!1;var t=Ja,e=zr;zr=0;var a=Iu(Ma),n=U.T,l=M.p;try{M.p=32>a?32:a,U.T=null,a=Or,Or=null;var s=Ja,c=Ma;if(ne=0,nl=Ja=null,Ma=0,(Dt&6)!==0)throw Error(r(331));var h=Dt;if(Dt|=4,kd(s.current),zd(s,s.current,c,a),Dt=h,Pl(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(ml,s)}catch{}return!0}finally{M.p=l,U.T=n,Fd(t,e)}}function th(t,e,a){e=Ge(a,e),e=fr(t.stateNode,e,2),t=Ya(t,e,2),t!==null&&(gl(t,2),ca(t))}function Nt(t,e,a){if(t.tag===3)th(t,t,a);else for(;e!==null;){if(e.tag===3){th(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ka===null||!Ka.has(n))){t=Ge(a,t),a=ed(2),n=Ya(e,a,2),n!==null&&(ad(a,n,e,t),gl(n,2),ca(n));break}}e=e.return}}function jr(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new jp;var l=new Set;n.set(e,l)}else l=n.get(e),l===void 0&&(l=new Set,n.set(e,l));l.has(a)||(Dr=!0,l.add(a),t=Yp.bind(null,t,e,a),e.then(t,t))}function Yp(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(vt&a)===a&&(Pt===4||Pt===3&&(vt&62914560)===vt&&300>qt()-ou?(Dt&2)===0&&ll(t,0):Rr|=a,al===vt&&(al=0)),ca(t)}function eh(t,e){e===0&&(e=Jo()),t=cn(t,e),t!==null&&(gl(t,e),ca(t))}function Vp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),eh(t,a)}function Gp(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,l=t.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(e),eh(t,a)}function Xp(t,e){return Jt(t,e)}var gu=null,ul=null,Lr=!1,yu=!1,Br=!1,Pa=0;function ca(t){t!==ul&&t.next===null&&(ul===null?gu=ul=t:ul=ul.next=t),yu=!0,Lr||(Lr=!0,Zp())}function Pl(t,e){if(!Br&&yu){Br=!0;do for(var a=!1,n=gu;n!==null;){if(t!==0){var l=n.pendingLanes;if(l===0)var s=0;else{var c=n.suspendedLanes,h=n.pingedLanes;s=(1<<31-Ce(42|t)+1)-1,s&=l&~(c&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,ih(n,s))}else s=vt,s=wi(n,n===Bt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||pl(n,s)||(a=!0,ih(n,s));n=n.next}while(a);Br=!1}}function Qp(){ah()}function ah(){yu=Lr=!1;var t=0;Pa!==0&&ag()&&(t=Pa);for(var e=qt(),a=null,n=gu;n!==null;){var l=n.next,s=nh(n,e);s===0?(n.next=null,a===null?gu=l:a.next=l,l===null&&(ul=a)):(a=n,(t!==0||(s&3)!==0)&&(yu=!0)),n=l}ne!==0&&ne!==5||Pl(t),Pa!==0&&(Pa=0)}function nh(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,l=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var c=31-Ce(s),h=1<<c,v=l[c];v===-1?((h&a)===0||(h&n)!==0)&&(l[c]=v0(h,e)):v<=e&&(t.expiredLanes|=h),s&=~h}if(e=Bt,a=vt,a=wi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&De(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||pl(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&De(n),Iu(a)){case 2:case 8:a=Zo;break;case 32:a=yi;break;case 268435456:a=Ko;break;default:a=yi}return n=lh.bind(null,t),a=Jt(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&De(n),t.callbackPriority=2,t.callbackNode=null,2}function lh(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(pu()&&t.callbackNode!==a)return null;var n=vt;return n=wi(t,t===Bt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Hd(t,n,e),nh(t,qt()),t.callbackNode!=null&&t.callbackNode===a?lh.bind(null,t):null)}function ih(t,e){if(pu())return null;Hd(t,e,!0)}function Zp(){lg(function(){(Dt&6)!==0?Jt(ua,Qp):ah()})}function Hr(){if(Pa===0){var t=Qn;t===0&&(t=vi,vi<<=1,(vi&261888)===0&&(vi=256)),Pa=t}return Pa}function uh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:_i(""+t)}function sh(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function Kp(t,e,a,n,l){if(e==="submit"&&a&&a.stateNode===l){var s=uh((l[Se]||null).action),c=n.submitter;c&&(e=(e=c[Se]||null)?uh(e.formAction):c.getAttribute("formAction"),e!==null&&(s=e,c=null));var h=new Ri("action","action",null,n,l);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Pa!==0){var v=c?sh(l,c):new FormData(l);ir(a,{pending:!0,data:v,method:l.method,action:s},null,v)}}else typeof s=="function"&&(h.preventDefault(),v=c?sh(l,c):new FormData(l),ir(a,{pending:!0,data:v,method:l.method,action:s},s,v))},currentTarget:l}]})}}for(var qr=0;qr<Es.length;qr++){var Yr=Es[qr],Jp=Yr.toLowerCase(),$p=Yr[0].toUpperCase()+Yr.slice(1);Ie(Jp,"on"+$p)}Ie(Lc,"onAnimationEnd"),Ie(Bc,"onAnimationIteration"),Ie(Hc,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(fp,"onTransitionRun"),Ie(dp,"onTransitionStart"),Ie(hp,"onTransitionCancel"),Ie(qc,"onTransitionEnd"),zn("onMouseEnter",["mouseout","mouseover"]),zn("onMouseLeave",["mouseout","mouseover"]),zn("onPointerEnter",["pointerout","pointerover"]),zn("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="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(" "),Pp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function rh(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],l=n.event;n=n.listeners;t:{var s=void 0;if(e)for(var c=n.length-1;0<=c;c--){var h=n[c],v=h.instance,R=h.currentTarget;if(h=h.listener,v!==s&&l.isPropagationStopped())break t;s=h,l.currentTarget=R;try{s(l)}catch(L){Oi(L)}l.currentTarget=null,s=v}else for(c=0;c<n.length;c++){if(h=n[c],v=h.instance,R=h.currentTarget,h=h.listener,v!==s&&l.isPropagationStopped())break t;s=h,l.currentTarget=R;try{s(l)}catch(L){Oi(L)}l.currentTarget=null,s=v}}}}function yt(t,e){var a=e[ts];a===void 0&&(a=e[ts]=new Set);var n=t+"__bubble";a.has(n)||(oh(e,t,2,!1),a.add(n))}function Vr(t,e,a){var n=0;e&&(n|=4),oh(a,t,n,e)}var vu="_reactListening"+Math.random().toString(36).slice(2);function Gr(t){if(!t[vu]){t[vu]=!0,ec.forEach(function(a){a!=="selectionchange"&&(Pp.has(a)||Vr(a,!1,t),Vr(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[vu]||(e[vu]=!0,Vr("selectionchange",!1,e))}}function oh(t,e,a,n){switch(Bh(e)){case 2:var l=Ag;break;case 8:l=_g;break;default:l=lo}a=l.bind(null,e,a,t),l=void 0,!os||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),n?l!==void 0?t.addEventListener(e,a,{capture:!0,passive:l}):t.addEventListener(e,a,!0):l!==void 0?t.addEventListener(e,a,{passive:l}):t.addEventListener(e,a,!1)}function Xr(t,e,a,n,l){var s=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var h=n.stateNode.containerInfo;if(h===l)break;if(c===4)for(c=n.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===l)return;c=c.return}for(;h!==null;){if(c=Dn(h),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){n=s=c;continue t}h=h.parentNode}}n=n.return}hc(function(){var R=s,L=ss(a),H=[];t:{var C=Yc.get(t);if(C!==void 0){var z=Ri,F=t;switch(t){case"keypress":if(Mi(a)===0)break t;case"keydown":case"keyup":z=G0;break;case"focusin":F="focus",z=hs;break;case"focusout":F="blur",z=hs;break;case"beforeblur":case"afterblur":z=hs;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=gc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Z0;break;case Lc:case Bc:case Hc:z=k0;break;case qc:z=J0;break;case"scroll":case"scrollend":z=R0;break;case"wheel":z=P0;break;case"copy":case"cut":case"paste":z=j0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=vc;break;case"toggle":case"beforetoggle":z=F0}var it=(e&4)!==0,Lt=!it&&(t==="scroll"||t==="scrollend"),_=it?C!==null?C+"Capture":null:C;it=[];for(var w=R,D;w!==null;){var B=w;if(D=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||D===null||_===null||(B=bl(w,_),B!=null&&it.push(Fl(w,B,D))),Lt)break;w=w.return}0<it.length&&(C=new z(C,F,null,a,L),H.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&a!==us&&(F=a.relatedTarget||a.fromElement)&&(Dn(F)||F[Mn]))break t;if((z||C)&&(C=L.window===L?L:(C=L.ownerDocument)?C.defaultView||C.parentWindow:window,z?(F=a.relatedTarget||a.toElement,z=R,F=F?Dn(F):null,F!==null&&(Lt=d(F),it=F.tag,F!==Lt||it!==5&&it!==27&&it!==6)&&(F=null)):(z=null,F=R),z!==F)){if(it=gc,B="onMouseLeave",_="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(it=vc,B="onPointerLeave",_="onPointerEnter",w="pointer"),Lt=z==null?C:vl(z),D=F==null?C:vl(F),C=new it(B,w+"leave",z,a,L),C.target=Lt,C.relatedTarget=D,B=null,Dn(L)===R&&(it=new it(_,w+"enter",F,a,L),it.target=D,it.relatedTarget=Lt,B=it),Lt=B,z&&F)e:{for(it=Wp,_=z,w=F,D=0,B=_;B;B=it(B))D++;B=0;for(var at=w;at;at=it(at))B++;for(;0<D-B;)_=it(_),D--;for(;0<B-D;)w=it(w),B--;for(;D--;){if(_===w||w!==null&&_===w.alternate){it=_;break e}_=it(_),w=it(w)}it=null}else it=null;z!==null&&ch(H,C,z,it,!1),F!==null&&Lt!==null&&ch(H,Lt,F,it,!0)}}t:{if(C=R?vl(R):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var _t=Tc;else if(Ac(C))if(Mc)_t=rp;else{_t=up;var et=ip}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?R&&is(R.elementType)&&(_t=Tc):_t=sp;if(_t&&(_t=_t(t,R))){_c(H,_t,a,L);break t}et&&et(t,C,R),t==="focusout"&&R&&C.type==="number"&&R.memoizedProps.value!=null&&ls(C,"number",C.value)}switch(et=R?vl(R):window,t){case"focusin":(Ac(et)||et.contentEditable==="true")&&(Ln=et,bs=R,Ml=null);break;case"focusout":Ml=bs=Ln=null;break;case"mousedown":Ss=!0;break;case"contextmenu":case"mouseup":case"dragend":Ss=!1,Uc(H,a,L);break;case"selectionchange":if(cp)break;case"keydown":case"keyup":Uc(H,a,L)}var dt;if(ps)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else jn?Ec(t,a)&&(bt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(bt="onCompositionStart");bt&&(bc&&a.locale!=="ko"&&(jn||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&jn&&(dt=mc()):(ka=L,cs="value"in ka?ka.value:ka.textContent,jn=!0)),et=bu(R,bt),0<et.length&&(bt=new yc(bt,t,null,a,L),H.push({event:bt,listeners:et}),dt?bt.data=dt:(dt=xc(a),dt!==null&&(bt.data=dt)))),(dt=tp?ep(t,a):ap(t,a))&&(bt=bu(R,"onBeforeInput"),0<bt.length&&(et=new yc("onBeforeInput","beforeinput",null,a,L),H.push({event:et,listeners:bt}),et.data=dt)),Kp(H,t,R,a,L)}rh(H,e)})}function Fl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function bu(t,e){for(var a=e+"Capture",n=[];t!==null;){var l=t,s=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||s===null||(l=bl(t,a),l!=null&&n.unshift(Fl(t,l,s)),l=bl(t,e),l!=null&&n.push(Fl(t,l,s))),t.tag===3)return n;t=t.return}return[]}function Wp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ch(t,e,a,n,l){for(var s=e._reactName,c=[];a!==null&&a!==n;){var h=a,v=h.alternate,R=h.stateNode;if(h=h.tag,v!==null&&v===n)break;h!==5&&h!==26&&h!==27||R===null||(v=R,l?(R=bl(a,s),R!=null&&c.unshift(Fl(a,R,v))):l||(R=bl(a,s),R!=null&&c.push(Fl(a,R,v)))),a=a.return}c.length!==0&&t.push({event:e,listeners:c})}var Fp=/\r\n?/g,Ip=/\u0000|\uFFFD/g;function fh(t){return(typeof t=="string"?t:""+t).replace(Fp,`
`).replace(Ip,"")}function dh(t,e){return e=fh(e),fh(t)===e}function jt(t,e,a,n,l,s){switch(a){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Nn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Nn(t,""+n);break;case"className":xi(t,"class",n);break;case"tabIndex":xi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(t,a,n);break;case"style":fc(t,n,s);break;case"data":if(e!=="object"){xi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=_i(""+n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(a,"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 s=="function"&&(a==="formAction"?(e!=="input"&&jt(t,e,"name",l.name,l,null),jt(t,e,"formEncType",l.formEncType,l,null),jt(t,e,"formMethod",l.formMethod,l,null),jt(t,e,"formTarget",l.formTarget,l,null)):(jt(t,e,"encType",l.encType,l,null),jt(t,e,"method",l.method,l,null),jt(t,e,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=_i(""+n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=da);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=_i(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""+n):t.removeAttribute(a);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":yt("beforetoggle",t),yt("toggle",t),Ei(t,"popover",n);break;case"xlinkActuate":fa(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":fa(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":fa(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":fa(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":fa(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":fa(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":fa(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":fa(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":fa(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ei(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=M0.get(a)||a,Ei(t,a,n))}}function Qr(t,e,a,n,l,s){switch(a){case"style":fc(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof n=="string"?Nn(t,n):(typeof n=="number"||typeof n=="bigint")&&Nn(t,""+n);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ac.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),e=a.slice(2,l?a.length-7:void 0),s=t[Se]||null,s=s!=null?s[a]:null,typeof s=="function"&&t.removeEventListener(e,s,l),typeof n=="function")){typeof s!="function"&&s!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,n,l);break t}a in t?t[a]=n:n===!0?t.setAttribute(a,""):Ei(t,a,n)}}}function he(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var n=!1,l=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,s,c,a,null)}}l&&jt(t,e,"srcSet",a.srcSet,a,null),n&&jt(t,e,"src",a.src,a,null);return;case"input":yt("invalid",t);var h=s=c=l=null,v=null,R=null;for(n in a)if(a.hasOwnProperty(n)){var L=a[n];if(L!=null)switch(n){case"name":l=L;break;case"type":c=L;break;case"checked":v=L;break;case"defaultChecked":R=L;break;case"value":s=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,e));break;default:jt(t,e,n,L,a,null)}}sc(t,s,h,v,R,c,l,!1);return;case"select":yt("invalid",t),n=c=s=null;for(l in a)if(a.hasOwnProperty(l)&&(h=a[l],h!=null))switch(l){case"value":s=h;break;case"defaultValue":c=h;break;case"multiple":n=h;default:jt(t,e,l,h,a,null)}e=s,a=c,t.multiple=!!n,e!=null?On(t,!!n,e,!1):a!=null&&On(t,!!n,a,!0);return;case"textarea":yt("invalid",t),s=l=n=null;for(c in a)if(a.hasOwnProperty(c)&&(h=a[c],h!=null))switch(c){case"value":n=h;break;case"defaultValue":l=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:jt(t,e,c,h,a,null)}oc(t,n,l,s);return;case"option":for(v in a)if(a.hasOwnProperty(v)&&(n=a[v],n!=null))switch(v){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:jt(t,e,v,n,a,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(n=0;n<Wl.length;n++)yt(Wl[n],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in a)if(a.hasOwnProperty(R)&&(n=a[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,R,n,a,null)}return;default:if(is(e)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&Qr(t,e,L,n,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(n=a[h],n!=null&&jt(t,e,h,n,a,null))}function tg(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,s=null,c=null,h=null,v=null,R=null,L=null;for(z in a){var H=a[z];if(a.hasOwnProperty(z)&&H!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":v=H;default:n.hasOwnProperty(z)||jt(t,e,z,null,n,H)}}for(var C in n){var z=n[C];if(H=a[C],n.hasOwnProperty(C)&&(z!=null||H!=null))switch(C){case"type":s=z;break;case"name":l=z;break;case"checked":R=z;break;case"defaultChecked":L=z;break;case"value":c=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==H&&jt(t,e,C,z,n,H)}}ns(t,c,h,v,R,L,s,l);return;case"select":z=c=h=C=null;for(s in a)if(v=a[s],a.hasOwnProperty(s)&&v!=null)switch(s){case"value":break;case"multiple":z=v;default:n.hasOwnProperty(s)||jt(t,e,s,null,n,v)}for(l in n)if(s=n[l],v=a[l],n.hasOwnProperty(l)&&(s!=null||v!=null))switch(l){case"value":C=s;break;case"defaultValue":h=s;break;case"multiple":c=s;default:s!==v&&jt(t,e,l,s,n,v)}e=h,a=c,n=z,C!=null?On(t,!!a,C,!1):!!n!=!!a&&(e!=null?On(t,!!a,e,!0):On(t,!!a,a?[]:"",!1));return;case"textarea":z=C=null;for(h in a)if(l=a[h],a.hasOwnProperty(h)&&l!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:jt(t,e,h,null,n,l)}for(c in n)if(l=n[c],s=a[c],n.hasOwnProperty(c)&&(l!=null||s!=null))switch(c){case"value":C=l;break;case"defaultValue":z=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==s&&jt(t,e,c,l,n,s)}rc(t,C,z);return;case"option":for(var F in a)if(C=a[F],a.hasOwnProperty(F)&&C!=null&&!n.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:jt(t,e,F,null,n,C)}for(v in n)if(C=n[v],z=a[v],n.hasOwnProperty(v)&&C!==z&&(C!=null||z!=null))switch(v){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:jt(t,e,v,C,n,z)}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 it in a)C=a[it],a.hasOwnProperty(it)&&C!=null&&!n.hasOwnProperty(it)&&jt(t,e,it,null,n,C);for(R in n)if(C=n[R],z=a[R],n.hasOwnProperty(R)&&C!==z&&(C!=null||z!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:jt(t,e,R,C,n,z)}return;default:if(is(e)){for(var Lt in a)C=a[Lt],a.hasOwnProperty(Lt)&&C!==void 0&&!n.hasOwnProperty(Lt)&&Qr(t,e,Lt,void 0,n,C);for(L in n)C=n[L],z=a[L],!n.hasOwnProperty(L)||C===z||C===void 0&&z===void 0||Qr(t,e,L,C,n,z);return}}for(var _ in a)C=a[_],a.hasOwnProperty(_)&&C!=null&&!n.hasOwnProperty(_)&&jt(t,e,_,null,n,C);for(H in n)C=n[H],z=a[H],!n.hasOwnProperty(H)||C===z||C==null&&z==null||jt(t,e,H,C,n,z)}function hh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],s=l.transferSize,c=l.initiatorType,h=l.duration;if(s&&h&&hh(c)){for(c=0,h=l.responseEnd,n+=1;n<a.length;n++){var v=a[n],R=v.startTime;if(R>h)break;var L=v.transferSize,H=v.initiatorType;L&&hh(H)&&(v=v.responseEnd,c+=L*(v<h?1:(h-R)/(v-R)))}if(--n,e+=8*(s+c)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Zr=null,Kr=null;function Su(t){return t.nodeType===9?t:t.ownerDocument}function mh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ph(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Jr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var $r=null;function ag(){var t=window.event;return t&&t.type==="popstate"?t===$r?!1:($r=t,!0):($r=null,!1)}var gh=typeof setTimeout=="function"?setTimeout:void 0,ng=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,lg=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(t){return yh.resolve(null).then(t).catch(ig)}:gh;function ig(t){setTimeout(function(){throw t})}function Wa(t){return t==="head"}function vh(t,e){var a=e,n=0;do{var l=a.nextSibling;if(t.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(l),cl(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Il(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Il(a);for(var s=a.firstChild;s;){var c=s.nextSibling,h=s.nodeName;s[yl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a==="body"&&Il(t.ownerDocument.body);a=l}while(a);cl(e)}function bh(t,e){var a=t;t=0;do{var n=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function Pr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Pr(a),es(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function ug(t,e,a,n){for(;t.nodeType===1;){var l=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[yl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Je(t.nextSibling),t===null)break}return null}function sg(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Je(t.nextSibling),t===null))return null;return t}function Sh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Je(t.nextSibling),t===null))return null;return t}function Wr(t){return t.data==="$?"||t.data==="$~"}function Fr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function rg(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Je(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ir=null;function wh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Je(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Eh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function xh(t,e,a){switch(e=Su(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Il(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);es(t)}var $e=new Map,Ah=new Set;function wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Da=M.d;M.d={f:og,r:cg,D:fg,C:dg,L:hg,m:mg,X:gg,S:pg,M:yg};function og(){var t=Da.f(),e=du();return t||e}function cg(t){var e=Rn(t);e!==null&&e.tag===5&&e.type==="form"?Yf(e):Da.r(t)}var sl=typeof document>"u"?null:document;function _h(t,e,a){var n=sl;if(n&&typeof e=="string"&&e){var l=Ye(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Ah.has(l)||(Ah.add(l),t={rel:t,crossOrigin:a,href:e},n.querySelector(l)===null&&(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function fg(t){Da.D(t),_h("dns-prefetch",t,null)}function dg(t,e){Da.C(t,e),_h("preconnect",t,e)}function hg(t,e,a){Da.L(t,e,a);var n=sl;if(n&&t&&e){var l='link[rel="preload"][as="'+Ye(e)+'"]';e==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ye(a.imageSizes)+'"]')):l+='[href="'+Ye(t)+'"]';var s=l;switch(e){case"style":s=rl(t);break;case"script":s=ol(t)}$e.has(s)||(t=A({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),$e.set(s,t),n.querySelector(l)!==null||e==="style"&&n.querySelector(ti(s))||e==="script"&&n.querySelector(ei(s))||(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function mg(t,e){Da.m(t,e);var a=sl;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+Ye(n)+'"][href="'+Ye(t)+'"]',s=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ol(t)}if(!$e.has(s)&&(t=A({rel:"modulepreload",href:t},e),$e.set(s,t),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ei(s)))return}n=a.createElement("link"),he(n,"link",t),ue(n),a.head.appendChild(n)}}}function pg(t,e,a){Da.S(t,e,a);var n=sl;if(n&&t){var l=Cn(n).hoistableStyles,s=rl(t);e=e||"default";var c=l.get(s);if(!c){var h={loading:0,preload:null};if(c=n.querySelector(ti(s)))h.loading=5;else{t=A({rel:"stylesheet",href:t,"data-precedence":e},a),(a=$e.get(s))&&to(t,a);var v=c=n.createElement("link");ue(v),he(v,"link",t),v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Eu(c,e,n)}c={type:"stylesheet",instance:c,count:1,state:h},l.set(s,c)}}}function gg(t,e){Da.X(t,e);var a=sl;if(a&&t){var n=Cn(a).hoistableScripts,l=ol(t),s=n.get(l);s||(s=a.querySelector(ei(l)),s||(t=A({src:t,async:!0},e),(e=$e.get(l))&&eo(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function yg(t,e){Da.M(t,e);var a=sl;if(a&&t){var n=Cn(a).hoistableScripts,l=ol(t),s=n.get(l);s||(s=a.querySelector(ei(l)),s||(t=A({src:t,async:!0,type:"module"},e),(e=$e.get(l))&&eo(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function Th(t,e,a,n){var l=(l=ht.current)?wu(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=rl(a.href),a=Cn(l).hoistableStyles,n=a.get(e),n||(n={type:"style",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=rl(a.href);var s=Cn(l).hoistableStyles,c=s.get(t);if(c||(l=l.ownerDocument||l,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,c),(s=l.querySelector(ti(t)))&&!s._p&&(c.instance=s,c.state.loading=5),$e.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$e.set(t,a),s||vg(l,t,a,c.state))),e&&n===null)throw Error(r(528,""));return c}if(e&&n!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ol(a),a=Cn(l).hoistableScripts,n=a.get(e),n||(n={type:"script",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function rl(t){return'href="'+Ye(t)+'"'}function ti(t){return'link[rel="stylesheet"]['+t+"]"}function Mh(t){return A({},t,{"data-precedence":t.precedence,precedence:null})}function vg(t,e,a,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),he(e,"link",a),ue(e),t.head.appendChild(e))}function ol(t){return'[src="'+Ye(t)+'"]'}function ei(t){return"script[async]"+t}function Dh(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ye(a.href)+'"]');if(n)return e.instance=n,ue(n),n;var l=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ue(n),he(n,"style",l),Eu(n,a.precedence,t),e.instance=n;case"stylesheet":l=rl(a.href);var s=t.querySelector(ti(l));if(s)return e.state.loading|=4,e.instance=s,ue(s),s;n=Mh(a),(l=$e.get(l))&&to(n,l),s=(t.ownerDocument||t).createElement("link"),ue(s);var c=s;return c._p=new Promise(function(h,v){c.onload=h,c.onerror=v}),he(s,"link",n),e.state.loading|=4,Eu(s,a.precedence,t),e.instance=s;case"script":return s=ol(a.src),(l=t.querySelector(ei(s)))?(e.instance=l,ue(l),l):(n=a,(l=$e.get(s))&&(n=A({},a),eo(n,l)),t=t.ownerDocument||t,l=t.createElement("script"),ue(l),he(l,"link",n),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Eu(n,a.precedence,t));return e.instance}function Eu(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,s=l,c=0;c<n.length;c++){var h=n[c];if(h.dataset.precedence===e)s=h;else if(s!==l)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function to(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var xu=null;function Rh(t,e,a){if(xu===null){var n=new Map,l=xu=new Map;l.set(a,n)}else l=xu,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),l=0;l<a.length;l++){var s=a[l];if(!(s[yl]||s[oe]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(e)||"";c=t+c;var h=n.get(c);h?h.push(s):n.set(c,[s])}}return n}function Ch(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function bg(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function zh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Sg(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=rl(n.href),s=e.querySelector(ti(l));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Au.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=s,ue(s);return}s=e.ownerDocument||e,n=Mh(n),(l=$e.get(l))&&to(n,l),s=s.createElement("link"),ue(s);var c=s;c._p=new Promise(function(h,v){c.onload=h,c.onerror=v}),he(s,"link",n),a.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Au.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var ao=0;function wg(t,e){return t.stylesheets&&t.count===0&&Tu(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&Tu(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&ao===0&&(ao=62500*eg());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Tu(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>ao?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function Au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _u=null;function Tu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_u=new Map,e.forEach(Eg,t),_u=null,Au.call(t))}function Eg(t,e){if(!(e.state.loading&4)){var a=_u.get(t);if(a)var n=a.get(null);else{a=new Map,_u.set(t,a);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<l.length;s++){var c=l[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),n=c)}n&&a.set(null,n)}l=e.instance,c=l.getAttribute("data-precedence"),s=a.get(c)||n,s===n&&a.set(null,l),a.set(c,l),this.count++,n=Au.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),s?s.parentNode.insertBefore(l,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var ai={$$typeof:p,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function xg(t,e,a,n,l,s,c,h,v){this.tag=1,this.containerInfo=t,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=Wu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wu(0),this.hiddenUpdates=Wu(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Oh(t,e,a,n,l,s,c,h,v,R,L,H){return t=new xg(t,e,a,c,v,R,L,H,h),e=1,s===!0&&(e|=24),s=Oe(3,null,null,e),t.current=s,s.stateNode=t,e=Us(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:e},Hs(s),t}function Nh(t){return t?(t=qn,t):qn}function kh(t,e,a,n,l,s){l=Nh(l),n.context===null?n.context=l:n.pendingContext=l,n=qa(e),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=Ya(t,n,e),a!==null&&(Te(a,t,e),kl(a,t,e))}function Uh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function no(t,e){Uh(t,e),(t=t.alternate)&&Uh(t,e)}function jh(t){if(t.tag===13||t.tag===31){var e=cn(t,67108864);e!==null&&Te(e,t,67108864),no(t,67108864)}}function Lh(t){if(t.tag===13||t.tag===31){var e=Le();e=Fu(e);var a=cn(t,e);a!==null&&Te(a,t,e),no(t,e)}}var Mu=!0;function Ag(t,e,a,n){var l=U.T;U.T=null;var s=M.p;try{M.p=2,lo(t,e,a,n)}finally{M.p=s,U.T=l}}function _g(t,e,a,n){var l=U.T;U.T=null;var s=M.p;try{M.p=8,lo(t,e,a,n)}finally{M.p=s,U.T=l}}function lo(t,e,a,n){if(Mu){var l=io(n);if(l===null)Xr(t,e,n,Du,a),Hh(t,n);else if(Mg(l,t,e,a,n))n.stopPropagation();else if(Hh(t,n),e&4&&-1<Tg.indexOf(t)){for(;l!==null;){var s=Rn(l);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=ln(s.pendingLanes);if(c!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;c;){var v=1<<31-Ce(c);h.entanglements[1]|=v,c&=~v}ca(s),(Dt&6)===0&&(cu=qt()+500,Pl(0))}}break;case 31:case 13:h=cn(s,2),h!==null&&Te(h,s,2),du(),no(s,2)}if(s=io(n),s===null&&Xr(t,e,n,Du,a),s===l)break;l=s}l!==null&&n.stopPropagation()}else Xr(t,e,n,null,a)}}function io(t){return t=ss(t),uo(t)}var Du=null;function uo(t){if(Du=null,t=Dn(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=g(e),t!==null)return t;t=null}else if(a===31){if(t=b(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Du=t,null}function Bh(t){switch(t){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(ia()){case ua:return 2;case Zo:return 8;case yi:case d0:return 32;case Ko:return 268435456;default:return 32}default:return 32}}var so=!1,Fa=null,Ia=null,tn=null,ni=new Map,li=new Map,en=[],Tg="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 Hh(t,e){switch(t){case"focusin":case"focusout":Fa=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":li.delete(e.pointerId)}}function ii(t,e,a,n,l,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[l]},e!==null&&(e=Rn(e),e!==null&&jh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function Mg(t,e,a,n,l){switch(e){case"focusin":return Fa=ii(Fa,t,e,a,n,l),!0;case"dragenter":return Ia=ii(Ia,t,e,a,n,l),!0;case"mouseover":return tn=ii(tn,t,e,a,n,l),!0;case"pointerover":var s=l.pointerId;return ni.set(s,ii(ni.get(s)||null,t,e,a,n,l)),!0;case"gotpointercapture":return s=l.pointerId,li.set(s,ii(li.get(s)||null,t,e,a,n,l)),!0}return!1}function qh(t){var e=Dn(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=g(a),e!==null){t.blockedOn=e,Io(t.priority,function(){Lh(a)});return}}else if(e===31){if(e=b(a),e!==null){t.blockedOn=e,Io(t.priority,function(){Lh(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ru(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=io(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);us=n,a.target.dispatchEvent(n),us=null}else return e=Rn(a),e!==null&&jh(e),t.blockedOn=a,!1;e.shift()}return!0}function Yh(t,e,a){Ru(t)&&a.delete(e)}function Dg(){so=!1,Fa!==null&&Ru(Fa)&&(Fa=null),Ia!==null&&Ru(Ia)&&(Ia=null),tn!==null&&Ru(tn)&&(tn=null),ni.forEach(Yh),li.forEach(Yh)}function Cu(t,e){t.blockedOn===e&&(t.blockedOn=null,so||(so=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Dg)))}var zu=null;function Vh(t){zu!==t&&(zu=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){zu===t&&(zu=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],l=t[e+2];if(typeof n!="function"){if(uo(n||a)===null)continue;break}var s=Rn(a);s!==null&&(t.splice(e,3),e-=3,ir(s,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function cl(t){function e(v){return Cu(v,t)}Fa!==null&&Cu(Fa,t),Ia!==null&&Cu(Ia,t),tn!==null&&Cu(tn,t),ni.forEach(e),li.forEach(e);for(var a=0;a<en.length;a++){var n=en[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<en.length&&(a=en[0],a.blockedOn===null);)qh(a),a.blockedOn===null&&en.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],s=a[n+1],c=l[Se]||null;if(typeof s=="function")c||Vh(a);else if(c){var h=null;if(s&&s.hasAttribute("formAction")){if(l=s,c=s[Se]||null)h=c.formAction;else if(uo(l)!==null)continue}else h=c.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),Vh(a)}}}function Gh(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return l=c})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function ro(t){this._internalRoot=t}Ou.prototype.render=ro.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,n=Le();kh(a,n,t,e,null,null)},Ou.prototype.unmount=ro.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kh(t.current,2,null,t,null,null),du(),e[Mn]=null}};function Ou(t){this._internalRoot=t}Ou.prototype.unstable_scheduleHydration=function(t){if(t){var e=Fo();t={blockedOn:null,target:t,priority:e};for(var a=0;a<en.length&&e!==0&&e<en[a].priority;a++);en.splice(a,0,t),a===0&&qh(t)}};var Xh=i.version;if(Xh!=="19.2.7")throw Error(r(527,Xh,"19.2.7"));M.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var Rg={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ml=Nu.inject(Rg),Re=Nu}catch{}}return si.createRoot=function(t,e){if(!f(t))throw Error(r(299));var a=!1,n="",l=Wf,s=Ff,c=If;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=Oh(t,1,!1,null,null,a,n,null,l,s,c,Gh),t[Mn]=e.current,Gr(t),new ro(e)},si.hydrateRoot=function(t,e,a){if(!f(t))throw Error(r(299));var n=!1,l="",s=Wf,c=Ff,h=If,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),e=Oh(t,1,!0,e,a??null,n,l,v,s,c,h,Gh),e.context=Nh(null),a=e.current,n=Le(),n=Fu(n),l=qa(n),l.callback=null,Ya(a,l,n),a=n,e.current.lanes=a,gl(e,a),ca(e),t[Mn]=e.current,Gr(t),new Ou(e)},si.version="19.2.7",si}var am;function Gg(){if(am)return fo.exports;am=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),fo.exports=Vg(),fo.exports}var Xg=Gg();/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var nm="popstate";function lm(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function Qg(u={}){function i(r,f){var m;let d=(m=f.state)==null?void 0:m.masked,{pathname:g,search:b,hash:y}=d||r.location;return Ao("",{pathname:g,search:b,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function o(r,f){return typeof f=="string"?f:hi(f)}return Kg(i,o,null,u)}function Xt(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Pe(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Zg(){return Math.random().toString(36).substring(2,10)}function im(u,i){return{usr:u.state,key:u.key,idx:i,masked:u.mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function Ao(u,i,o=null,r,f){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?fl(i):i,state:o,key:i&&i.key||r||Zg(),mask:f}}function hi({pathname:u="/",search:i="",hash:o=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(u+=o.charAt(0)==="#"?o:"#"+o),u}function fl(u){let i={};if(u){let o=u.indexOf("#");o>=0&&(i.hash=u.substring(o),u=u.substring(0,o));let r=u.indexOf("?");r>=0&&(i.search=u.substring(r),u=u.substring(0,r)),u&&(i.pathname=u)}return i}function Kg(u,i,o,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,g=f.history,b="POP",y=null,m=T();m==null&&(m=0,g.replaceState({...g.state,idx:m},""));function T(){return(g.state||{idx:null}).idx}function A(){b="POP";let j=T(),O=j==null?null:j-m;m=j,y&&y({action:b,location:G.location,delta:O})}function N(j,O){b="PUSH";let k=lm(j)?j:Ao(G.location,j,O);m=T()+1;let p=im(k,m),$=G.createHref(k.mask||k);try{g.pushState(p,"",$)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;f.location.assign($)}d&&y&&y({action:b,location:G.location,delta:1})}function Q(j,O){b="REPLACE";let k=lm(j)?j:Ao(G.location,j,O);m=T();let p=im(k,m),$=G.createHref(k.mask||k);g.replaceState(p,"",$),d&&y&&y({action:b,location:G.location,delta:0})}function Z(j){return Jg(f,j)}let G={get action(){return b},get location(){return u(f,g)},listen(j){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(nm,A),y=j,()=>{f.removeEventListener(nm,A),y=null}},createHref(j){return i(f,j)},createURL:Z,encodeLocation(j){let O=Z(j);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:N,replace:Q,go(j){return g.go(j)}};return G}function Jg(u,i,o=!1){let r="http://localhost";u&&(r=u.location.origin!=="null"?u.location.origin:u.location.href),Xt(r,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:hi(i);return f=f.replace(/ $/,"%20"),!o&&f.startsWith("//")&&(f=r+f),new URL(f,r)}function zm(u,i,o="/"){return $g(u,i,o,!1)}function $g(u,i,o,r,f){let d=typeof i=="string"?fl(i):i,g=Ca(d.pathname||"/",o);if(g==null)return null;let b=Pg(u),y=null,m=ry(g);for(let T=0;y==null&&T<b.length;++T)y=uy(b[T],m,r);return y}function Pg(u){let i=Om(u);return Wg(i),i}function Om(u,i=[],o=[],r="",f=!1){let d=(g,b,y=f,m)=>{let T={relativePath:m===void 0?g.path||"":m,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(r)&&y)return;Xt(T.relativePath.startsWith(r),`Absolute route path "${T.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(r.length)}let A=na([r,T.relativePath]),N=o.concat(T);g.children&&g.children.length>0&&(Xt(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Om(g.children,i,N,A,y)),!(g.path==null&&!g.index)&&i.push({path:A,score:ly(A,g.index),routesMeta:N})};return u.forEach((g,b)=>{var y;if(g.path===""||!((y=g.path)!=null&&y.includes("?")))d(g,b);else for(let m of Nm(g.path))d(g,b,!0,m)}),i}function Nm(u){let i=u.split("/");if(i.length===0)return[];let[o,...r]=i,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let g=Nm(r.join("/")),b=[];return b.push(...g.map(y=>y===""?d:[d,y].join("/"))),f&&b.push(...g),b.map(y=>u.startsWith("/")&&y===""?"/":y)}function Wg(u){u.sort((i,o)=>i.score!==o.score?o.score-i.score:iy(i.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Fg=/^:[\w-]+$/,Ig=3,ty=2,ey=1,ay=10,ny=-2,um=u=>u==="*";function ly(u,i){let o=u.split("/"),r=o.length;return o.some(um)&&(r+=ny),i&&(r+=ty),o.filter(f=>!um(f)).reduce((f,d)=>f+(Fg.test(d)?Ig:d===""?ey:ay),r)}function iy(u,i){return u.length===i.length&&u.slice(0,-1).every((r,f)=>r===i[f])?u[u.length-1]-i[i.length-1]:0}function uy(u,i,o=!1){let{routesMeta:r}=u,f={},d="/",g=[];for(let b=0;b<r.length;++b){let y=r[b],m=b===r.length-1,T=d==="/"?i:i.slice(d.length)||"/",A=Vu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},T),N=y.route;if(!A&&m&&o&&!r[r.length-1].route.index&&(A=Vu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},T)),!A)return null;Object.assign(f,A.params),g.push({params:f,pathname:na([d,A.pathname]),pathnameBase:dy(na([d,A.pathnameBase])),route:N}),A.pathnameBase!=="/"&&(d=na([d,A.pathnameBase]))}return g}function Vu(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[o,r]=sy(u.path,u.caseSensitive,u.end),f=i.match(o);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),b=f.slice(1);return{params:r.reduce((m,{paramName:T,isOptional:A},N)=>{if(T==="*"){let Z=b[N]||"";g=d.slice(0,d.length-Z.length).replace(/(.)\/+$/,"$1")}const Q=b[N];return A&&!Q?m[T]=void 0:m[T]=(Q||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:g,pattern:u}}function sy(u,i=!1,o=!0){Pe(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],f="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,y,m,T)=>{if(r.push({paramName:b,isOptional:y!=null}),y){let A=T.charAt(m+g.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),f+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":u!==""&&u!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function ry(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Pe(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Ca(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,r=u.charAt(o);return r&&r!=="/"?null:u.slice(o)||"/"}var oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function cy(u,i="/"){let{pathname:o,search:r="",hash:f=""}=typeof u=="string"?fl(u):u,d;return o?(o=km(o),o.startsWith("/")?d=sm(o.substring(1),"/"):d=sm(o,i)):d=i,{pathname:d,search:hy(r),hash:my(f)}}function sm(u,i){let o=Gu(i).split("/");return u.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function go(u,i,o,r){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function fy(u){return u.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function No(u){let i=fy(u);return i.map((o,r)=>r===i.length-1?o.pathname:o.pathnameBase)}function Zu(u,i,o,r=!1){let f;typeof u=="string"?f=fl(u):(f={...u},Xt(!f.pathname||!f.pathname.includes("?"),go("?","pathname","search",f)),Xt(!f.pathname||!f.pathname.includes("#"),go("#","pathname","hash",f)),Xt(!f.search||!f.search.includes("#"),go("#","search","hash",f)));let d=u===""||f.pathname==="",g=d?"/":f.pathname,b;if(g==null)b=o;else{let A=i.length-1;if(!r&&g.startsWith("..")){let N=g.split("/");for(;N[0]==="..";)N.shift(),A-=1;f.pathname=N.join("/")}b=A>=0?i[A]:"/"}let y=cy(f,b),m=g&&g!=="/"&&g.endsWith("/"),T=(d||g===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(m||T)&&(y.pathname+="/"),y}var km=u=>u.replace(/\/\/+/g,"/"),na=u=>km(u.join("/")),Gu=u=>u.replace(/\/+$/,""),dy=u=>Gu(u).replace(/^\/*/,"/"),hy=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,my=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,py=class{constructor(u,i,o,r=!1){this.status=u,this.statusText=i||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function gy(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function yy(u){let i=u.map(o=>o.route.path).filter(Boolean);return na(i)||"/"}var Um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jm(u,i){let o=u;if(typeof o!="string"||!oy.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,f=!1;if(Um)try{let d=new URL(window.location.href),g=o.startsWith("//")?new URL(d.protocol+o):new URL(o),b=Ca(g.pathname,i);g.origin===d.origin&&b!=null?o=b+g.search+g.hash:f=!0}catch{Pe(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Lm=["POST","PUT","PATCH","DELETE"];new Set(Lm);var vy=["GET",...Lm];new Set(vy);var dl=E.createContext(null);dl.displayName="DataRouter";var Ku=E.createContext(null);Ku.displayName="DataRouterState";var Bm=E.createContext(!1);function by(){return E.useContext(Bm)}var Hm=E.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Sy=E.createContext(new Map);Sy.displayName="Fetchers";var wy=E.createContext(null);wy.displayName="Await";var He=E.createContext(null);He.displayName="Navigation";var pi=E.createContext(null);pi.displayName="Location";var Fe=E.createContext({outlet:null,matches:[],isDataRoute:!1});Fe.displayName="Route";var ko=E.createContext(null);ko.displayName="RouteError";var qm="REACT_ROUTER_ERROR",Ey="REDIRECT",xy="ROUTE_ERROR_RESPONSE";function Ay(u){if(u.startsWith(`${qm}:${Ey}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function _y(u){if(u.startsWith(`${qm}:${xy}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new py(i.status,i.statusText,i.data)}catch{}}function Ty(u,{relative:i}={}){Xt(hl(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=E.useContext(He),{hash:f,pathname:d,search:g}=gi(u,{relative:i}),b=d;return o!=="/"&&(b=d==="/"?o:na([o,d])),r.createHref({pathname:b,search:g,hash:f})}function hl(){return E.useContext(pi)!=null}function la(){return Xt(hl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(pi).location}var Ym="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vm(u){E.useContext(He).static||E.useLayoutEffect(u)}function An(){let{isDataRoute:u}=E.useContext(Fe);return u?Vy():My()}function My(){Xt(hl(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(dl),{basename:i,navigator:o}=E.useContext(He),{matches:r}=E.useContext(Fe),{pathname:f}=la(),d=JSON.stringify(No(r)),g=E.useRef(!1);return Vm(()=>{g.current=!0}),E.useCallback((y,m={})=>{if(Pe(g.current,Ym),!g.current)return;if(typeof y=="number"){o.go(y);return}let T=Zu(y,JSON.parse(d),f,m.relative==="path");u==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:na([i,T.pathname])),(m.replace?o.replace:o.push)(T,m.state,m)},[i,o,d,f,u])}var Dy=E.createContext(null);function Ry(u){let i=E.useContext(Fe).outlet;return E.useMemo(()=>i&&E.createElement(Dy.Provider,{value:u},i),[i,u])}function Cy(){let{matches:u}=E.useContext(Fe),i=u[u.length-1];return(i==null?void 0:i.params)??{}}function gi(u,{relative:i}={}){let{matches:o}=E.useContext(Fe),{pathname:r}=la(),f=JSON.stringify(No(o));return E.useMemo(()=>Zu(u,JSON.parse(f),r,i==="path"),[u,f,r,i])}function zy(u,i){return Gm(u,i)}function Gm(u,i,o){var j;Xt(hl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(He),{matches:f}=E.useContext(Fe),d=f[f.length-1],g=d?d.params:{},b=d?d.pathname:"/",y=d?d.pathnameBase:"/",m=d&&d.route;{let O=m&&m.path||"";Qm(b,!m||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${O}">) 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.

Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let T=la(),A;if(i){let O=typeof i=="string"?fl(i):i;Xt(y==="/"||((j=O.pathname)==null?void 0:j.startsWith(y)),`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 "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),A=O}else A=T;let N=A.pathname||"/",Q=N;if(y!=="/"){let O=y.replace(/^\//,"").split("/");Q="/"+N.replace(/^\//,"").split("/").slice(O.length).join("/")}let Z=o&&o.state.matches.length?o.state.matches.map(O=>Object.assign(O,{route:o.manifest[O.route.id]||O.route})):zm(u,{pathname:Q});Pe(m||Z!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Pe(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.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 G=jy(Z&&Z.map(O=>Object.assign({},O,{params:Object.assign({},g,O.params),pathname:na([y,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:na([y,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,o);return i&&G?E.createElement(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},G):G}function Oy(){let u=Yy(),i=gy(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),o=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",u),g=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:d},"ErrorBoundary")," or"," ",E.createElement("code",{style:d},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),o?E.createElement("pre",{style:f},o):null,g)}var Ny=E.createElement(Oy,null),Xm=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const o=_y(u.digest);o&&(u=o)}let i=u!==void 0?E.createElement(Fe.Provider,{value:this.props.routeContext},E.createElement(ko.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(ky,{error:u},i):i}};Xm.contextType=Bm;var yo=new WeakMap;function ky({children:u,error:i}){let{basename:o}=E.useContext(He);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Ay(i.digest);if(r){let f=yo.get(i);if(f)throw f;let d=jm(r.location,o);if(Um&&!yo.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw yo.set(i,g),g}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return u}function Uy({routeContext:u,match:i,children:o}){let r=E.useContext(dl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(Fe.Provider,{value:u},o)}function jy(u,i=[],o){let r=o==null?void 0:o.state;if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let f=u,d=r==null?void 0:r.errors;if(d!=null){let T=f.findIndex(A=>A.route.id&&(d==null?void 0:d[A.route.id])!==void 0);Xt(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,T+1))}let g=!1,b=-1;if(o&&r){g=r.renderFallback;for(let T=0;T<f.length;T++){let A=f[T];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(b=T),A.route.id){let{loaderData:N,errors:Q}=r,Z=A.route.loader&&!N.hasOwnProperty(A.route.id)&&(!Q||Q[A.route.id]===void 0);if(A.route.lazy||Z){o.isStatic&&(g=!0),b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}}let y=o==null?void 0:o.onError,m=r&&y?(T,A)=>{var N,Q;y(T,{location:r.location,params:((Q=(N=r.matches)==null?void 0:N[0])==null?void 0:Q.params)??{},pattern:yy(r.matches),errorInfo:A})}:void 0;return f.reduceRight((T,A,N)=>{let Q,Z=!1,G=null,j=null;r&&(Q=d&&A.route.id?d[A.route.id]:void 0,G=A.route.errorElement||Ny,g&&(b<0&&N===0?(Qm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,j=null):b===N&&(Z=!0,j=A.route.hydrateFallbackElement||null)));let O=i.concat(f.slice(0,N+1)),k=()=>{let p;return Q?p=G:Z?p=j:A.route.Component?p=E.createElement(A.route.Component,null):A.route.element?p=A.route.element:p=T,E.createElement(Uy,{match:A,routeContext:{outlet:T,matches:O,isDataRoute:r!=null},children:p})};return r&&(A.route.ErrorBoundary||A.route.errorElement||N===0)?E.createElement(Xm,{location:r.location,revalidation:r.revalidation,component:G,error:Q,children:k(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):k()},null)}function Uo(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ly(u){let i=E.useContext(dl);return Xt(i,Uo(u)),i}function By(u){let i=E.useContext(Ku);return Xt(i,Uo(u)),i}function Hy(u){let i=E.useContext(Fe);return Xt(i,Uo(u)),i}function jo(u){let i=Hy(u),o=i.matches[i.matches.length-1];return Xt(o.route.id,`${u} can only be used on routes that contain a unique "id"`),o.route.id}function qy(){return jo("useRouteId")}function Yy(){var r;let u=E.useContext(ko),i=By("useRouteError"),o=jo("useRouteError");return u!==void 0?u:(r=i.errors)==null?void 0:r[o]}function Vy(){let{router:u}=Ly("useNavigate"),i=jo("useNavigate"),o=E.useRef(!1);return Vm(()=>{o.current=!0}),E.useCallback(async(f,d={})=>{Pe(o.current,Ym),o.current&&(typeof f=="number"?await u.navigate(f):await u.navigate(f,{fromRouteId:i,...d}))},[u,i])}var rm={};function Qm(u,i,o){!i&&!rm[u]&&(rm[u]=!0,Pe(!1,o))}E.memo(Gy);function Gy({routes:u,manifest:i,future:o,state:r,isStatic:f,onError:d}){return Gm(u,void 0,{manifest:i,state:r,isStatic:f,onError:d})}function xn({to:u,replace:i,state:o,relative:r}){Xt(hl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=E.useContext(He);Pe(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=E.useContext(Fe),{pathname:g}=la(),b=An(),y=Zu(u,No(d),g,r==="path"),m=JSON.stringify(y);return E.useEffect(()=>{b(JSON.parse(m),{replace:i,state:o,relative:r})},[b,m,r,i,o]),null}function Xy(u){return Ry(u.context)}function At(u){Xt(!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 Qy({basename:u="/",children:i=null,location:o,navigationType:r="POP",navigator:f,static:d=!1,useTransitions:g}){Xt(!hl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:b,navigator:f,static:d,useTransitions:g,future:{}}),[b,f,d,g]);typeof o=="string"&&(o=fl(o));let{pathname:m="/",search:T="",hash:A="",state:N=null,key:Q="default",mask:Z}=o,G=E.useMemo(()=>{let j=Ca(m,b);return j==null?null:{location:{pathname:j,search:T,hash:A,state:N,key:Q,mask:Z},navigationType:r}},[b,m,T,A,N,Q,r,Z]);return Pe(G!=null,`<Router basename="${b}"> is not able to match the URL "${m}${T}${A}" because it does not start with the basename, so the <Router> won't render anything.`),G==null?null:E.createElement(He.Provider,{value:y},E.createElement(pi.Provider,{children:i,value:G}))}function Zy({children:u,location:i}){return zy(_o(u),i)}function _o(u,i=[]){let o=[];return E.Children.forEach(u,(r,f)=>{if(!E.isValidElement(r))return;let d=[...i,f];if(r.type===E.Fragment){o.push.apply(o,_o(r.props.children,d));return}Xt(r.type===At,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let g={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=_o(r.props.children,d)),o.push(g)}),o}var Bu="get",Hu="application/x-www-form-urlencoded";function Ju(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Ky(u){return Ju(u)&&u.tagName.toLowerCase()==="button"}function Jy(u){return Ju(u)&&u.tagName.toLowerCase()==="form"}function $y(u){return Ju(u)&&u.tagName.toLowerCase()==="input"}function Py(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Wy(u,i){return u.button===0&&(!i||i==="_self")&&!Py(u)}function To(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((i,o)=>{let r=u[o];return i.concat(Array.isArray(r)?r.map(f=>[o,f]):[[o,r]])},[]))}function Fy(u,i){let o=To(u);return i&&i.forEach((r,f)=>{o.has(f)||i.getAll(f).forEach(d=>{o.append(f,d)})}),o}var ku=null;function Iy(){if(ku===null)try{new FormData(document.createElement("form"),0),ku=!1}catch{ku=!0}return ku}var tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vo(u){return u!=null&&!tv.has(u)?(Pe(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hu}"`),null):u}function ev(u,i){let o,r,f,d,g;if(Jy(u)){let b=u.getAttribute("action");r=b?Ca(b,i):null,o=u.getAttribute("method")||Bu,f=vo(u.getAttribute("enctype"))||Hu,d=new FormData(u)}else if(Ky(u)||$y(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=u.getAttribute("formaction")||b.getAttribute("action");if(r=y?Ca(y,i):null,o=u.getAttribute("formmethod")||b.getAttribute("method")||Bu,f=vo(u.getAttribute("formenctype"))||vo(b.getAttribute("enctype"))||Hu,d=new FormData(b,u),!Iy()){let{name:m,type:T,value:A}=u;if(T==="image"){let N=m?`${m}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else m&&d.append(m,A)}}else{if(Ju(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Bu,r=null,f=Hu,g=u}return d&&f==="text/plain"&&(g=d,d=void 0),{action:r,method:o.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Zm(u,i,o,r){let f=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:i&&Ca(f.pathname,i)==="/"?f.pathname=`${Gu(i)}/_root.${r}`:f.pathname=`${Gu(f.pathname)}.${r}`,f}async function av(u,i){if(u.id in i)return i[u.id];try{let o=await import(u.module);return i[u.id]=o,o}catch(o){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nv(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function lv(u,i,o){let r=await Promise.all(u.map(async f=>{let d=i.routes[f.route.id];if(d){let g=await av(d,o);return g.links?g.links():[]}return[]}));return rv(r.flat(1).filter(nv).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function om(u,i,o,r,f,d){let g=(y,m)=>o[m]?y.route.id!==o[m].route.id:!0,b=(y,m)=>{var T;return o[m].pathname!==y.pathname||((T=o[m].route.path)==null?void 0:T.endsWith("*"))&&o[m].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,m)=>g(y,m)||b(y,m)):d==="data"?i.filter((y,m)=>{var A;let T=r.routes[y.route.id];if(!T||!T.hasLoader)return!1;if(g(y,m)||b(y,m))return!0;if(y.route.shouldRevalidate){let N=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((A=o[0])==null?void 0:A.params)||{},nextUrl:new URL(u,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function iv(u,i,{includeHydrateFallback:o}={}){return uv(u.map(r=>{let f=i.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function uv(u){return[...new Set(u)]}function sv(u){let i={},o=Object.keys(u).sort();for(let r of o)i[r]=u[r];return i}function rv(u,i){let o=new Set;return new Set(i),u.reduce((r,f)=>{let d=JSON.stringify(sv(f));return o.has(d)||(o.add(d),r.push({key:d,link:f})),r},[])}function Bo(){let u=E.useContext(dl);return Lo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function ov(){let u=E.useContext(Ku);return Lo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Ho=E.createContext(void 0);Ho.displayName="FrameworkContext";function qo(){let u=E.useContext(Ho);return Lo(u,"You must render this element inside a <HydratedRouter> element"),u}function cv(u,i){let o=E.useContext(Ho),[r,f]=E.useState(!1),[d,g]=E.useState(!1),{onFocus:b,onBlur:y,onMouseEnter:m,onMouseLeave:T,onTouchStart:A}=i,N=E.useRef(null);E.useEffect(()=>{if(u==="render"&&g(!0),u==="viewport"){let G=O=>{O.forEach(k=>{g(k.isIntersecting)})},j=new IntersectionObserver(G,{threshold:.5});return N.current&&j.observe(N.current),()=>{j.disconnect()}}},[u]),E.useEffect(()=>{if(r){let G=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(G)}}},[r]);let Q=()=>{f(!0)},Z=()=>{f(!1),g(!1)};return o?u!=="intent"?[d,N,{}]:[d,N,{onFocus:ri(b,Q),onBlur:ri(y,Z),onMouseEnter:ri(m,Q),onMouseLeave:ri(T,Z),onTouchStart:ri(A,Q)}]:[!1,N,{}]}function ri(u,i){return o=>{u&&u(o),o.defaultPrevented||i(o)}}function fv({page:u,...i}){let o=by(),{router:r}=Bo(),f=E.useMemo(()=>zm(r.routes,u,r.basename),[r.routes,u,r.basename]);return f?o?E.createElement(hv,{page:u,matches:f,...i}):E.createElement(mv,{page:u,matches:f,...i}):null}function dv(u){let{manifest:i,routeModules:o}=qo(),[r,f]=E.useState([]);return E.useEffect(()=>{let d=!1;return lv(u,i,o).then(g=>{d||f(g)}),()=>{d=!0}},[u,i,o]),r}function hv({page:u,matches:i,...o}){let r=la(),{future:f}=qo(),{basename:d}=Bo(),g=E.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let b=Zm(u,d,f.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let T of i)typeof T.route.shouldRevalidate=="function"?y=!0:m.push(T.route.id);return y&&m.length>0&&b.searchParams.set("_routes",m.join(",")),[b.pathname+b.search]},[d,f.v8_trailingSlashAwareDataRequests,u,r,i]);return E.createElement(E.Fragment,null,g.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...o})))}function mv({page:u,matches:i,...o}){let r=la(),{future:f,manifest:d,routeModules:g}=qo(),{basename:b}=Bo(),{loaderData:y,matches:m}=ov(),T=E.useMemo(()=>om(u,i,m,d,r,"data"),[u,i,m,d,r]),A=E.useMemo(()=>om(u,i,m,d,r,"assets"),[u,i,m,d,r]),N=E.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let G=new Set,j=!1;if(i.forEach(k=>{var $;let p=d.routes[k.route.id];!p||!p.hasLoader||(!T.some(X=>X.route.id===k.route.id)&&k.route.id in y&&(($=g[k.route.id])!=null&&$.shouldRevalidate)||p.hasClientLoader?j=!0:G.add(k.route.id))}),G.size===0)return[];let O=Zm(u,b,f.v8_trailingSlashAwareDataRequests,"data");return j&&G.size>0&&O.searchParams.set("_routes",i.filter(k=>G.has(k.route.id)).map(k=>k.route.id).join(",")),[O.pathname+O.search]},[b,f.v8_trailingSlashAwareDataRequests,y,r,d,T,i,u,g]),Q=E.useMemo(()=>iv(A,d),[A,d]),Z=dv(A);return E.createElement(E.Fragment,null,N.map(G=>E.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...o})),Q.map(G=>E.createElement("link",{key:G,rel:"modulepreload",href:G,...o})),Z.map(({key:G,link:j})=>E.createElement("link",{key:G,nonce:o.nonce,...j,crossOrigin:j.crossOrigin??o.crossOrigin})))}function pv(...u){return i=>{u.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gv&&(window.__reactRouterVersion="7.17.0")}catch{}function yv({basename:u,children:i,useTransitions:o,window:r}){let f=E.useRef();f.current==null&&(f.current=Qg({window:r,v5Compat:!0}));let d=f.current,[g,b]=E.useState({action:d.action,location:d.location}),y=E.useCallback(m=>{o===!1?b(m):E.startTransition(()=>b(m))},[o]);return E.useLayoutEffect(()=>d.listen(y),[d,y]),E.createElement(Qy,{basename:u,children:i,location:g.location,navigationType:g.action,navigator:d,useTransitions:o})}var Km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yo=E.forwardRef(function({onClick:i,discover:o="render",prefetch:r="none",relative:f,reloadDocument:d,replace:g,mask:b,state:y,target:m,to:T,preventScrollReset:A,viewTransition:N,defaultShouldRevalidate:Q,...Z},G){let{basename:j,navigator:O,useTransitions:k}=E.useContext(He),p=typeof T=="string"&&Km.test(T),$=jm(T,j);T=$.to;let X=Ty(T,{relative:f}),tt=la(),K=null;if(b){let Ht=Zu(b,[],tt.mask?tt.mask.pathname:"/",!0);j!=="/"&&(Ht.pathname=Ht.pathname==="/"?j:na([j,Ht.pathname])),K=O.createHref(Ht)}let[Et,Qt,re]=cv(r,Z),le=wv(T,{replace:g,mask:b,state:y,target:m,preventScrollReset:A,relative:f,viewTransition:N,defaultShouldRevalidate:Q,useTransitions:k});function kt(Ht){i&&i(Ht),Ht.defaultPrevented||le(Ht)}let ve=!($.isExternal||d),pe=E.createElement("a",{...Z,...re,href:(ve?K:void 0)||$.absoluteURL||X,onClick:ve?kt:i,ref:pv(G,Qt),target:m,"data-discover":!p&&o==="render"?"true":void 0});return Et&&!p?E.createElement(E.Fragment,null,pe,E.createElement(fv,{page:X})):pe});Yo.displayName="Link";var vv=E.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:r="",end:f=!1,style:d,to:g,viewTransition:b,children:y,...m},T){let A=gi(g,{relative:m.relative}),N=la(),Q=E.useContext(Ku),{navigator:Z,basename:G}=E.useContext(He),j=Q!=null&&Tv(A)&&b===!0,O=Z.encodeLocation?Z.encodeLocation(A).pathname:A.pathname,k=N.pathname,p=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;o||(k=k.toLowerCase(),p=p?p.toLowerCase():null,O=O.toLowerCase()),p&&G&&(p=Ca(p,G)||p);const $=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let X=k===O||!f&&k.startsWith(O)&&k.charAt($)==="/",tt=p!=null&&(p===O||!f&&p.startsWith(O)&&p.charAt(O.length)==="/"),K={isActive:X,isPending:tt,isTransitioning:j},Et=X?i:void 0,Qt;typeof r=="function"?Qt=r(K):Qt=[r,X?"active":null,tt?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(K):d;return E.createElement(Yo,{...m,"aria-current":Et,className:Qt,ref:T,style:re,to:g,viewTransition:b},typeof y=="function"?y(K):y)});vv.displayName="NavLink";var bv=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:o,reloadDocument:r,replace:f,state:d,method:g=Bu,action:b,onSubmit:y,relative:m,preventScrollReset:T,viewTransition:A,defaultShouldRevalidate:N,...Q},Z)=>{let{useTransitions:G}=E.useContext(He),j=Av(),O=_v(b,{relative:m}),k=g.toLowerCase()==="get"?"get":"post",p=typeof b=="string"&&Km.test(b),$=X=>{if(y&&y(X),X.defaultPrevented)return;X.preventDefault();let tt=X.nativeEvent.submitter,K=(tt==null?void 0:tt.getAttribute("formmethod"))||g,Et=()=>j(tt||X.currentTarget,{fetcherKey:i,method:K,navigate:o,replace:f,state:d,relative:m,preventScrollReset:T,viewTransition:A,defaultShouldRevalidate:N});G&&o!==!1?E.startTransition(()=>Et()):Et()};return E.createElement("form",{ref:Z,method:k,action:O,onSubmit:r?y:$,...Q,"data-discover":!p&&u==="render"?"true":void 0})});bv.displayName="Form";function Sv(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jm(u){let i=E.useContext(dl);return Xt(i,Sv(u)),i}function wv(u,{target:i,replace:o,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y,useTransitions:m}={}){let T=An(),A=la(),N=gi(u,{relative:g});return E.useCallback(Q=>{if(Wy(Q,i)){Q.preventDefault();let Z=o!==void 0?o:hi(A)===hi(N),G=()=>T(u,{replace:Z,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y});m?E.startTransition(()=>G()):G()}},[A,T,N,o,r,f,i,u,d,g,b,y,m])}function LS(u){Pe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=E.useRef(To(u)),o=E.useRef(!1),r=la(),f=E.useMemo(()=>Fy(r.search,o.current?null:i.current),[r.search]),d=An(),g=E.useCallback((b,y)=>{const m=To(typeof b=="function"?b(new URLSearchParams(f)):b);o.current=!0,d("?"+m,y)},[d,f]);return[f,g]}var Ev=0,xv=()=>`__${String(++Ev)}__`;function Av(){let{router:u}=Jm("useSubmit"),{basename:i}=E.useContext(He),o=qy(),r=u.fetch,f=u.navigate;return E.useCallback(async(d,g={})=>{let{action:b,method:y,encType:m,formData:T,body:A}=ev(d,i);if(g.navigate===!1){let N=g.fetcherKey||xv();await r(N,o,g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:T,body:A,formMethod:g.method||y,formEncType:g.encType||m,flushSync:g.flushSync})}else await f(g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:T,body:A,formMethod:g.method||y,formEncType:g.encType||m,replace:g.replace,state:g.state,fromRouteId:o,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,f,i,o])}function _v(u,{relative:i}={}){let{basename:o}=E.useContext(He),r=E.useContext(Fe);Xt(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...gi(u||".",{relative:i})},g=la();if(u==null){d.search=g.search;let b=new URLSearchParams(d.search),y=b.getAll("index");if(y.some(T=>T==="")){b.delete("index"),y.filter(A=>A).forEach(A=>b.append("index",A));let T=b.toString();d.search=T?`?${T}`:""}}return(!u||u===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:na([o,d.pathname])),hi(d)}function Tv(u,{relative:i}={}){let o=E.useContext(Hm);Xt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Jm("useViewTransitionState"),f=gi(u,{relative:i});if(!o.isTransitioning)return!1;let d=Ca(o.currentLocation.pathname,r)||o.currentLocation.pathname,g=Ca(o.nextLocation.pathname,r)||o.nextLocation.pathname;return Vu(f.pathname,g)!=null||Vu(f.pathname,d)!=null}const Mv={storage:{publicUrl:()=>"#"},auth:{restore:()=>{},onAuthStateChange:()=>()=>{},adoptAnonIdentity:()=>"",whenTokenReady:()=>Promise.resolve()},flags:{get:()=>{},isEnabled:()=>!1,variant:()=>"",all:()=>({}),subscribe:()=>()=>{},keys:()=>[],setCookieOverride:()=>{},clearCookieOverride:()=>{}},log:{debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},db:{get:()=>Promise.resolve(null),set:()=>Promise.resolve(),on:()=>()=>{},onChild:()=>()=>{},connect:()=>Promise.resolve(),disconnect:()=>{}}},Dv=new Set(["auth","storage","leads","log","flags","db"]);function Rv(){return new Proxy({},{get:(u,i)=>Dv.has(i)?new Proxy({},{get:(o,r)=>{var f;return((f=Mv[i])==null?void 0:f[r])??(()=>Promise.resolve(null))}}):()=>{}})}const pt=typeof window<"u"&&window.Bodify?window.Bodify:Rv(),BS=Object.freeze(Object.defineProperty({__proto__:null,Bodify:pt},Symbol.toStringTag,{value:"Module"}));function Cv(u){const i=u.split("/"),o=[];for(let r=i.length-1;r>0;r--)o.push(i.slice(0,r).join("/"));return o}class zv{constructor(){this.maxAge=10080*60*1e3,this.maxMemoryEntries=500,this.dbName="boddb-cache",this.enabled=!0}}class Ov{constructor(i,o){this.memory=new Map,this.subscribedPaths=new Set,this.idb=null,this._vfs=null,this._vfsUnsub=null,this.options={...new zv,...o},this.client=i}async init(){this.options.enabled&&(this.idb=await this.openIDB(),await this.sweepExpired())}openIDB(){return new Promise(i=>{try{if(typeof indexedDB>"u"){i(null);return}const o=indexedDB.open(this.options.dbName,1);o.onupgradeneeded=()=>{const r=o.result;r&&!r.objectStoreNames.contains("entries")&&r.createObjectStore("entries",{keyPath:"path"})},o.onsuccess=()=>i(o.result??null),o.onerror=()=>i(null),o.onblocked=()=>i(null)}catch{i(null)}})}async sweepExpired(){if(!this.idb)return;const i=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();return new Promise(d=>{f.onsuccess=()=>{const g=f.result;if(!g){d();return}g.value.cachedAt<i&&g.delete(),g.continue()},f.onerror=()=>d()})}async get(i){if(!this.options.enabled)return this.client.get(i);const o=this.memory.get(i);if(o&&this.subscribedPaths.has(i))return o.data;if(o)return this.revalidate(i),o.data;const r=await this.idbGet(i);if(r&&Date.now()-r.cachedAt<this.options.maxAge)return this.memSet(i,r),this.revalidate(i),r.data;const f=await this.client.getSnapshot(i),d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};return this.memSet(i,d),this.idbSet(d),d.data}revalidate(i){this.client.getSnapshot(i).then(o=>{const r={path:i,data:o.val(),updatedAt:o.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,r),this.idbSet(r)}).catch(()=>{})}on(i,o){this.subscribedPaths.add(i);const r=this.client.on(i,f=>{const d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,d),this.idbSet(d),o(f)});return()=>{r(),this.subscribedPaths.delete(i)}}onChild(i,o,r){this.subscribedPaths.add(i);const f=this.client.onChild(i,d=>{const g=this.memory.get(i);if(g&&g.data&&typeof g.data=="object"&&!Array.isArray(g.data)){const b={...g.data};d.type==="removed"?delete b[d.key]:b[d.key]=d.val();const y={path:i,data:b,updatedAt:Date.now(),cachedAt:Date.now()};this.memSet(i,y),this.idbSet(y)}o(d)},r);return()=>{f(),this.subscribedPaths.delete(i)}}connect(){return this.client.connect()}disconnect(){var i,o;(o=(i=this.client).disconnect)==null||o.call(i)}get serverInfo(){return this.client.serverInfo}onWelcome(i){return this.client.onWelcome(i)}async push(i,o,r){return await this.client.push(i,o,r)}query(i){return this.client.query(i)}async set(i,o,r){await this.client.set(i,o,r),this.invalidatePath(i)}async update(i,o,r){await this.client.update(i,o,r),this.invalidatePath(i)}async updateMulti(i){await this.client.updateMulti(i);for(const o of Object.keys(i))this.invalidatePath(o)}async delete(i){await this.client.delete(i),this.invalidatePath(i)}invalidatePath(i){this.invalidate(i);for(const o of Cv(i))this.invalidate(o)}invalidate(i){this.memory.delete(i),this.idbDelete(i)}async warmup(i){if(!this.idb)return;const o=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readonly").objectStore("entries"),d=i.map(g=>new Promise(b=>{const y=f.get(g);y.onsuccess=()=>{const m=y.result;m&&m.cachedAt>=o&&this.memSet(g,m),b()},y.onerror=()=>b()}));await Promise.all(d)}vfs(){return this._vfs||(this._vfs=new Nv(this.client.vfs(),this.options.maxAge,this.idb),this._vfsUnsub=this.client.onChild("_vfs",()=>{var i;(i=this._vfs)==null||i.clear()})),this._vfs}close(){var i,o;this._vfsUnsub&&(this._vfsUnsub(),this._vfsUnsub=null),(i=this._vfs)==null||i.clear(),this._vfs=null,this.memory.clear(),this.subscribedPaths.clear(),(o=this.idb)==null||o.close(),this.idb=null}memSet(i,o){for(this.memory.delete(i),this.memory.set(i,o);this.memory.size>this.options.maxMemoryEntries;){const r=this.memory.keys().next().value;if(r!==void 0)this.memory.delete(r);else break}}idbGet(i){if(!this.idb)return Promise.resolve(null);const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>f(r.result??null),r.onerror=()=>f(null)})}idbSet(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put(i)}catch{}}idbDelete(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}}class Nv{constructor(i,o,r=null){this.raw=i,this.maxAge=o,this.idb=r,this.listCache=new Map,this.statCache=new Map,this._stats={hits:0,misses:0,invalidations:0,pushClears:0}}async stat(i){const o=this.statCache.get(i);if(o&&Date.now()-o.cachedAt<this.maxAge)return this._stats.hits++,this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),o.data;const r=await this.idbGetVfs(`vfs:stat:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.statCache.set(i,r),this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.stat(i);return this.statCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:f,cachedAt:Date.now()}),f}async list(i){const o=this.listCache.get(i);if(o&&Date.now()-o.cachedAt<this.maxAge)return this._stats.hits++,this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),o.data;const r=await this.idbGetVfs(`vfs:list:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.listCache.set(i,r),this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.list(i);return this.listCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:f,cachedAt:Date.now()}),f}async tree(i,o){return this.raw.tree(i,o)}async upload(i,o,r){const f=await this.raw.upload(i,o,r);return this.invalidatePath(i),f}async delete(i){await this.raw.delete(i),this.invalidatePath(i)}async mkdir(i){const o=await this.raw.mkdir(i);return this.invalidatePath(i),this.listCache.delete(i),this.idbDeleteVfs(`vfs:list:${i}`),o}async move(i,o){const r=await this.raw.move(i,o);return this.invalidatePath(i),this.invalidatePath(o),r}async download(i){return this.raw.download(i)}invalidatePath(i){this._stats.invalidations++,this.statCache.delete(i),this.idbDeleteVfs(`vfs:stat:${i}`);const o=i.includes("/")?i.slice(0,i.lastIndexOf("/")):"";this.listCache.delete(o),this.idbDeleteVfs(`vfs:list:${o}`)}clear(){this._stats.pushClears++,this.listCache.clear(),this.statCache.clear(),this.idbClearVfs()}get stats(){const i=this._stats.hits+this._stats.misses;return{...this._stats,total:i,hitRate:i?Math.round(this._stats.hits/i*100)+"%":"n/a",listCacheSize:this.listCache.size,statCacheSize:this.statCache.size}}idbGetVfs(i){if(!this.idb)return Promise.resolve(null);try{const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>{const d=r.result;f(d?{data:d.data,cachedAt:d.cachedAt}:null)},r.onerror=()=>f(null)})}catch{return Promise.resolve(null)}}idbSetVfs(i,o){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put({path:i,data:o.data,cachedAt:o.cachedAt,updatedAt:Date.now()})}catch{}}idbDeleteVfs(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}idbClearVfs(){if(this.idb)try{const r=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();r.onsuccess=()=>{const f=r.result;f&&(typeof f.key=="string"&&f.key.startsWith("vfs:")&&f.delete(),f.continue())}}catch{}}}const kv="DEBUG";function cm(u){try{const i=localStorage.getItem(kv)??"";return i==="*"||i.split(",").includes(u)}catch{return!1}}function Uv(u){const i=`[${u}]`;return{debug:(...o)=>{cm(u)&&console.debug(i,...o)},verbose:(...o)=>{cm(u)&&console.debug(i,...o)},info:(...o)=>console.info(i,...o),warn:(...o)=>console.warn(i,...o),error:(...o)=>console.error(i,...o)}}const _n={forComponent:u=>Uv(u)},Vo=_n.forComponent("bod");var Cm;const $m=(Cm=window.Bodify)==null?void 0:Cm.db;$m||Vo.error("Bodify SDK not loaded (window.Bodify is undefined) — /_bodify/sdk.js failed to load; BodDB is unavailable.");const We=new Ov($m);We.init();if(typeof window<"u"){const u=()=>{typeof document<"u"&&document.visibilityState==="hidden"||We.connect().catch(i=>Vo.warn("wake-reconnect failed",i))};window.addEventListener("online",u),window.addEventListener("focus",u),document.addEventListener("visibilitychange",u)}async function nn(){var r,f,d;const u=We.client;if(!u)return;const i=((r=pt==null?void 0:pt.auth)==null?void 0:r._token)??null,o=g=>Promise.race([g,new Promise((b,y)=>setTimeout(()=>y(new Error("reauthWs timeout")),3e3))]);try{if(!u.connected)return;i?await o(u._send("auth",{token:i})):((f=u.disconnect)==null||f.call(u),await((d=u.connect)==null?void 0:d.call(u)))}catch(g){Vo.warn("reauthWs failed",g)}}localStorage.getItem("BOD_WS_RECORD")&&(window.bod=We,window.bodWs=We.client);const jv=Object.freeze(Object.defineProperty({__proto__:null,client:We,reauthWs:nn},Symbol.toStringTag,{value:"Module"}));function Lv(){const u=navigator.userAgent;return/FBAN|FBAV|FB_IAB|FBIOS/.test(u)?"fb":/Instagram/i.test(u)?"ig":"none"}let fm=!1;function bo(){try{performance.mark("para:auth-resolved")}catch{}}function Bv(){var f;const u=performance.getEntriesByType("resource"),i=d=>d.replace(/^https?:\/\/[^/]+/,"").split("?")[0].slice(-60),o=d=>{const g=u.filter(d).sort((b,y)=>y.duration-b.duration)[0];return g?{start:Math.round(g.startTime),dur:Math.round(g.duration)}:void 0},r=(f=performance.getEntriesByName("para:auth-resolved")[0])==null?void 0:f.startTime;return{authResolved:r!=null?Math.round(r):-1,resourceCount:u.length,me:o(d=>d.name.includes("/auth/me")),sdk:o(d=>d.name.includes("/_bodify/sdk.js")),entry:o(d=>/\/assets\/index-|\/src\/main\.tsx/.test(d.name)),slowest:u.slice().sort((d,g)=>g.duration-d.duration).slice(0,3).map(d=>({n:i(d.name),start:Math.round(d.startTime),dur:Math.round(d.duration)}))}}function Hv(){var u;if(!fm){fm=!0;try{const i=performance.getEntriesByType("navigation")[0],o=(u=performance.getEntriesByType("paint").find(d=>d.name==="first-contentful-paint"))==null?void 0:u.startTime;let r=null;try{r=localStorage.getItem("para-funnel")}catch{}const f={ttfb:Math.round((i==null?void 0:i.responseStart)??-1),domInteractive:Math.round((i==null?void 0:i.domInteractive)??-1),fcp:o!=null?Math.round(o):-1,appMounted:Math.round(performance.now()),slowBoot:performance.now()>=5e3,webview:Lv(),path:location.pathname,...Bv(),...r?{funnel:r}:{}};pt.event("boot_timing",f)}catch{}}}const Pm=E.createContext(null);function dm(){const u="para_dau_date",i=new Date,o=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;localStorage.getItem(u)!==o&&(localStorage.setItem(u,o),pt.event("session_active"))}function qv({children:u}){const[i,o]=E.useState(null),[r,f]=E.useState(null),[d,g]=E.useState(!0);E.useEffect(()=>{const O=window.Bodify;if(!(O!=null&&O.auth)){bo(),g(!1);return}return O.auth.getUser().then(k=>{k&&(o(k),pt.analytics.identify(k.id,{email:k.email,name:k.name}),dm(),nn()),bo(),g(!1)}).catch(()=>{bo(),g(!1)}),O.auth.onAuthStateChange((k,p)=>{o(k),f(p),nn(),k&&(pt.analytics.identify(k.id,{email:k.email,name:k.name}),dm())})},[]);const b=async(O,k,p)=>{const $=await pt.auth.signUp({email:O,password:k,name:p});$!=null&&$.emailVerificationRequired?f($.user):$!=null&&$.user&&o($.user)},y=async(O,k)=>{const p=await pt.auth.signIn({email:O,password:k});p!=null&&p.emailVerificationRequired?f(p.user):p!=null&&p.user&&o(p.user)},m=async O=>{const k=await pt.auth.verifyEmail(O);k!=null&&k.user&&(o(k.user),f(null))},T=async()=>{await pt.auth.resendVerification()},A=async()=>{await pt.auth.signOut(),o(null),f(null)},N=async()=>{var X,tt;const O=await pt.auth.getUser().catch(()=>null);if(O)return o(O),nn(),O;const k=(X=pt==null?void 0:pt.auth)==null?void 0:X._token;if(k)try{const K=(tt=JSON.parse(atob(k.split(".")[1])))==null?void 0:tt.sub;if(K){const Et=i&&i.id===K?i:{id:K,isAnonymous:!1};return o(Et),nn(),Et}}catch{}const $={id:pt.auth.adoptAnonIdentity(),isAnonymous:!0};return o($),(async()=>{try{const K=await pt.auth.signInAnonymously();o(K.user),await nn()}catch(K){console.error("[auth] anon token sign failed:",K)}})(),$},Q=async(O,k)=>{const p=await pt.auth.linkEmail(O,k);return o(p),await nn(),p},Z=async O=>{const k=await pt.auth.attachEmail(O);return o(k),await nn(),k},G=async O=>pt.auth.startPhoneSignIn(O),j=async(O,k)=>{const p=await pt.auth.linkPhone(O,k);return o(p),p};return S.jsx(Pm.Provider,{value:{user:i,pendingVerification:r,loading:d,signUp:b,signIn:y,verifyEmail:m,resendVerification:T,signOut:A,ensureAnonymousSession:N,linkEmail:Q,attachEmail:Z,startPhoneSignIn:G,linkPhone:j},children:u})}const Tn=()=>E.useContext(Pm),Wm=E.createContext({theme:"system",resolved:"dark",setTheme:()=>{}});function Yv(){const u=new Date().getHours();return u<7||u>=19?"dark":"light"}function mi(){return Yv()}function hm(u){return u==="system"?mi():u}function mm(u){document.documentElement.classList.toggle("dark",u==="dark")}function pm(u){const i=localStorage.getItem(u);if(!i)return"system";if(i==="light"||i==="dark"||i==="system")return i==="system"?"system":(localStorage.setItem(u,JSON.stringify({theme:i,setUnder:mi()})),i);try{const o=JSON.parse(i);return!["light","dark","system"].includes(o.theme)||o.theme==="system"?"system":o.setUnder&&mi()!==o.setUnder?(localStorage.removeItem(u),"system"):o.theme}catch{return"system"}}function Vv(u,i){if(i==="system"){localStorage.removeItem(u);return}localStorage.setItem(u,JSON.stringify({theme:i,setUnder:mi()}))}function Gv({children:u,storageKey:i="theme",defaultTheme:o="system"}){const[r,f]=E.useState(()=>{const y=pm(i);return y!=="system"?y:o}),[d,g]=E.useState(()=>hm(r)),b=E.useCallback(y=>{Vv(i,y),f(y)},[i]);return E.useEffect(()=>{const y=hm(r);g(y),mm(y)},[r]),E.useEffect(()=>{const y=()=>{const T=pm(i);if(T!==r){f(T);return}if(r==="system"){const A=mi();g(A),mm(A)}};document.addEventListener("visibilitychange",y),window.addEventListener("focus",y);const m=setInterval(y,5*6e4);return()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("focus",y),clearInterval(m)}},[r,i]),S.jsx(Wm.Provider,{value:{theme:r,resolved:d,setTheme:b},children:u})}const Xv=()=>E.useContext(Wm),Qv=200,gm=new Map,Uu=new Map;function Mo(u,i,o){u.delete(i),u.set(i,o),u.size>Qv&&u.delete(u.keys().next().value)}function Zv(u,i,o){const r=i?gm.get(i):void 0,[f,d]=E.useState(r??null),[g,b]=E.useState(r===void 0);return E.useEffect(()=>{let m=!0;const T=u.on(i,A=>{if(m){const N=A.val();d(N),b(!1),i&&Mo(gm,i,N)}},void 0);return()=>{m=!1,T()}},[u,i,!1]),{data:f,loading:g}}function HS(u,i){const o=i?Uu.get(i):void 0,[r,f]=E.useState(o?new Map(o):new Map),[d,g]=E.useState(!o);return E.useEffect(()=>{let b=!0;const y=i?Uu.get(i):void 0;if(g(!y),f(y?new Map(y):new Map),!i){g(!1);return}const m=()=>u.get(i).then(N=>{if(b){if(N&&typeof N=="object"&&!Array.isArray(N)){const Q=new Map(Object.entries(N));f(Z=>{const G=new Map(Q);for(const[j,O]of Z)G.has(j)||G.set(j,O);return Mo(Uu,i,G),G})}g(!1)}});let T=null;m().catch(()=>{T=setTimeout(()=>{b&&m().catch(()=>{b&&g(!1)})},500)});const A=u.onChild(i,N=>{b&&(g(!1),f(Q=>{const Z=new Map(Q);return N.type==="removed"?Z.delete(N.key):Z.set(N.key,N.val()),Mo(Uu,i,Z),Z}))},{deep:!0});return()=>{b=!1,A(),T&&clearTimeout(T)}},[u,i]),{children:r,loading:d}}function Rt(u,i=2,o=350){return E.lazy(async()=>{let r;for(let f=0;f<=i;f++)try{return await u()}catch(d){if(r=d,f===i)break;await new Promise(g=>setTimeout(g,o*(f+1)))}throw r})}function Fm(){return typeof window>"u"?!1:location.protocol==="app:"||location.protocol==="file:"||location.hostname==="appwrap.local"}const ym="para:native";function $u(){var u;if(typeof window>"u")return!1;if((u=window.__APPWRAP__)!=null&&u.native||Fm())return!0;try{return new URLSearchParams(window.location.search).get("native")==="1"?(sessionStorage.setItem(ym,"1"),!0):sessionStorage.getItem(ym)==="1"}catch{return new URLSearchParams(window.location.search).get("native")==="1"}}function Kv(){var u;return typeof window>"u"?!1:((u=window.__APPWRAP__)==null?void 0:u.platform)==="android"||location.hostname==="appwrap.local"}function qS(){return $u()&&!Kv()}class Jv extends E.Component{constructor(){super(...arguments);Qh(this,"state",{failed:!1})}static getDerivedStateFromError(o){const r=String((o==null?void 0:o.message)??o??"");return{failed:/import|module script|Loading chunk|dynamically imported|Failed to fetch/i.test(r)}}render(){return this.state.failed?S.jsxs("div",{id:"boot-splash",children:[S.jsx("div",{className:"bs-brand",children:"Para"}),S.jsx("button",{onClick:()=>location.reload(),className:"mt-6 rounded-full px-5 py-2 text-body",style:{background:"var(--color-accent, #10b981)",color:"#fff",border:"none"},children:"Tap to reload"})]}):this.props.children}}const $v=[{sign:"Capricorn",startMonth:1,startDay:1,endMonth:1,endDay:19,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"},{sign:"Aquarius",startMonth:1,startDay:20,endMonth:2,endDay:18,element:"Air",modality:"Fixed",ruler:"Uranus",range:"Jan 20 – Feb 18"},{sign:"Pisces",startMonth:2,startDay:19,endMonth:3,endDay:20,element:"Water",modality:"Mutable",ruler:"Neptune",range:"Feb 19 – Mar 20"},{sign:"Aries",startMonth:3,startDay:21,endMonth:4,endDay:19,element:"Fire",modality:"Cardinal",ruler:"Mars",range:"Mar 21 – Apr 19"},{sign:"Taurus",startMonth:4,startDay:20,endMonth:5,endDay:20,element:"Earth",modality:"Fixed",ruler:"Venus",range:"Apr 20 – May 20"},{sign:"Gemini",startMonth:5,startDay:21,endMonth:6,endDay:20,element:"Air",modality:"Mutable",ruler:"Mercury",range:"May 21 – Jun 20"},{sign:"Cancer",startMonth:6,startDay:21,endMonth:7,endDay:22,element:"Water",modality:"Cardinal",ruler:"Moon",range:"Jun 21 – Jul 22"},{sign:"Leo",startMonth:7,startDay:23,endMonth:8,endDay:22,element:"Fire",modality:"Fixed",ruler:"Sun",range:"Jul 23 – Aug 22"},{sign:"Virgo",startMonth:8,startDay:23,endMonth:9,endDay:22,element:"Earth",modality:"Mutable",ruler:"Mercury",range:"Aug 23 – Sep 22"},{sign:"Libra",startMonth:9,startDay:23,endMonth:10,endDay:22,element:"Air",modality:"Cardinal",ruler:"Venus",range:"Sep 23 – Oct 22"},{sign:"Scorpio",startMonth:10,startDay:23,endMonth:11,endDay:21,element:"Water",modality:"Fixed",ruler:"Pluto",range:"Oct 23 – Nov 21"},{sign:"Sagittarius",startMonth:11,startDay:22,endMonth:12,endDay:21,element:"Fire",modality:"Mutable",ruler:"Jupiter",range:"Nov 22 – Dec 21"},{sign:"Capricorn",startMonth:12,startDay:22,endMonth:12,endDay:31,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"}],Pv=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],Wv=["Wood","Fire","Earth","Metal","Water"],Fv=["Garnet","Amethyst","Aquamarine","Diamond","Emerald","Pearl","Ruby","Peridot","Sapphire","Opal","Topaz","Tanzanite"];function Im(u,i){return $v.find(r=>r.startMonth===r.endMonth?u===r.startMonth&&i>=r.startDay&&i<=r.endDay:u===r.startMonth?i>=r.startDay:u===r.endMonth?i<=r.endDay:!1)}function Iv(u,i,o){let r;return u===o.startMonth?r=i-o.startDay:u===o.endMonth?r=new Date(2e3,o.startMonth,0).getDate()-o.startDay+i:r=new Date(2e3,o.startMonth,0).getDate()-o.startDay+new Date(2e3,u-1,0).getDate()+i,r<10?1:r<20?2:3}function tb(u){const i=u-1924,o=(i%12+12)%12,r=Math.floor((i%10+10)%10/2);return{animal:Pv[o],element:Wv[r]}}function eb(u){let o=[...u.replace(/-/g,"")].reduce((r,f)=>r+Number(f),0);for(;o>9&&o!==11&&o!==22&&o!==33;)o=[...String(o)].reduce((r,f)=>r+Number(f),0);return o}function ab(u){return u>=3&&u<=5?"Spring":u>=6&&u<=8?"Summer":u>=9&&u<=11?"Autumn":"Winter"}function nb(u){if(!(u!=null&&u.trim()))return null;const i=new Date(u+"T00:00:00"),o=i.getMonth()+1,r=i.getDate();return isNaN(o)||isNaN(r)?null:Im(o,r).sign}function YS(u){if(!(u!=null&&u.trim()))return null;const i=u.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!i)return null;const o=Number(i[1]),r=Number(i[2]),f=Number(i[3]),d=new Date(o,r-1,f);if(d.getFullYear()!==o||d.getMonth()!==r-1||d.getDate()!==f)return null;const g=Im(r,f);return{zodiac:{sign:g.sign,element:g.element,modality:g.modality,rulingPlanet:g.ruler,decan:Iv(r,f,g),dateRange:g.range},chineseZodiac:tb(o),numerology:{lifePath:eb(u)},birthstone:Fv[r-1],season:ab(r)}}function lb(){var i;if(typeof window>"u")return!1;const u=window.__APPWRAP__;return u&&(u.reduceMotion||u.isEmulator)?!0:((i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches)??!1}const ib={Aries:{stars:[[.28,.52,1],[.38,.44,.8],[.52,.38,.6],[.68,.41,.9],[.73,.44,.5]],lines:[[0,1],[1,2],[2,3],[3,4]]},Taurus:{stars:[[.22,.58,1],[.33,.47,.7],[.43,.39,.9],[.54,.34,.8],[.61,.28,.6],[.48,.52,.5],[.63,.46,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[2,5],[5,6]]},Gemini:{stars:[[.33,.23,1],[.34,.38,.7],[.36,.54,.6],[.37,.68,.5],[.58,.22,.9],[.59,.39,.7],[.61,.53,.6],[.62,.69,.5]],lines:[[0,1],[1,2],[2,3],[4,5],[5,6],[6,7],[1,5],[2,6]]},Cancer:{stars:[[.33,.43,.7],[.44,.33,1],[.56,.44,.8],[.51,.57,.6],[.62,.31,.5]],lines:[[0,1],[1,2],[2,3],[1,4]]},Leo:{stars:[[.23,.53,.7],[.29,.36,1],[.39,.28,.9],[.51,.34,.8],[.57,.46,.6],[.67,.51,.5],[.56,.62,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6],[6,0]]},Virgo:{stars:[[.28,.28,1],[.34,.41,.7],[.44,.51,.8],[.56,.44,.9],[.62,.56,.6],[.67,.38,.5],[.51,.62,.7],[.39,.61,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[3,5],[2,6],[6,7],[7,1]]},Libra:{stars:[[.31,.32,.8],[.48,.27,1],[.66,.34,.7],[.38,.56,.9],[.62,.58,.6],[.5,.48,.5]],lines:[[0,1],[1,2],[0,3],[2,4],[3,5],[5,4]]},Scorpio:{stars:[[.18,.44,1],[.27,.38,.8],[.38,.41,.7],[.48,.46,.9],[.54,.52,.6],[.59,.57,.7],[.66,.61,.5],[.72,.56,.8],[.74,.47,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8]]},Sagittarius:{stars:[[.33,.57,.7],[.39,.44,1],[.49,.33,.9],[.56,.44,.6],[.62,.56,.7],[.48,.51,.8],[.43,.63,.5],[.54,.27,.6]],lines:[[0,1],[1,2],[2,7],[1,5],[5,3],[3,4],[5,6]]},Capricorn:{stars:[[.28,.42,.8],[.38,.34,1],[.49,.37,.7],[.61,.43,.9],[.67,.52,.6],[.56,.57,.7],[.44,.51,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,2]]},Aquarius:{stars:[[.18,.41,.6],[.28,.37,1],[.39,.43,.8],[.49,.37,.7],[.59,.43,.9],[.66,.51,.6],[.72,.57,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]},Pisces:{stars:[[.23,.47,.7],[.29,.36,1],[.38,.29,.8],[.49,.34,.6],[.56,.44,.9],[.61,.52,.7],[.56,.58,.5],[.44,.57,.6],[.34,.51,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,0]]}};function ub(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647),f=["#fff","#fff","#fff","#fff","#ccd6ff","#d4e0ff","#fff4e0","#ffe8c8","#ffd6d6"];return Array.from({length:u},()=>{const d=r()<.5?0:r()<.6?1:2,g=r()<.015,b=g||r()<.2,y=r(),m=r(),T=y-.5,A=m-.5;return{angle:Math.atan2(A,T),dist:Math.sqrt(T*T+A*A),r:g?2+r()*1:b?1.3+r()*1.2:d===0?.4+r()*.4:d===1?.6+r()*.6:1+r()*.8,phase:r()*Math.PI*2,speed:g?.1+r()*.3:.3+r()*1.2,color:f[Math.floor(r()*f.length)],layer:d,baseAlpha:b?.85+r()*.15:.45+r()*.45,shimmer:g}})}function sb(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647);return Array.from({length:u},()=>({x:r(),y:r(),speed:.003+r()*.008,alpha:.3+r()*.4}))}function rb(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647);return Array.from({length:u},()=>({x:.05+r()*.9,y:.05+r()*.7,r:120+r()*220,hue:r()<.4?160+r()*40:r()<.7?270+r()*50:30+r()*20,phase:r()*Math.PI*2,speed:.1+r()*.25}))}const ob={Fire:{r:255,g:120,b:50},Earth:{r:120,g:180,b:80},Air:{r:140,g:170,b:255},Water:{r:80,g:140,b:220}},cb={Garnet:"#9b2335",Amethyst:"#9966cc",Aquamarine:"#7fffd4",Diamond:"#e8e8e8",Emerald:"#50c878",Pearl:"#eae0c8",Ruby:"#e0115f",Peridot:"#b4c424",Sapphire:"#0f52ba",Opal:"#a8c3bc",Topaz:"#ffc87c",Tanzanite:"#5a4fcf"},fb={Sun:1,Moon:.7,Mercury:.35,Venus:.5,Mars:.45,Jupiter:.85,Saturn:.75,Uranus:.55,Neptune:.55,Pluto:.3};function db({date:u,intensity:i,nebulaOpacity:o,showConstellation:r=!1,artifact:f="none",cosmic:d=null,darkMode:g=!0}){const b=E.useRef(null),y=E.useRef(0),m=E.useRef(!0),T=E.useRef(u),A=E.useRef({rotation:0,targetRotation:0,angVel:0,mouseX:0,mouseY:0,tMouseX:0,tMouseY:0,curI:0,curArtifact:0,sign:null,cAlpha:0,lineProgress:0,labelAlpha:0,prevSign:null,prevAlpha:0,planetAlpha:0,elementTintAlpha:0,shootingStars:[],nextShootAt:2e3,pulsars:[],nextPulsarAt:8e3,births:[],nextBirthAt:15e3,auroraPhase:0,t:0}),N=typeof window<"u"&&window.innerWidth<640,Q=E.useMemo(()=>ub(N?600:1200,42),[N]),Z=E.useMemo(()=>rb(N?6:10,77),[N]),G=E.useMemo(()=>sb(N?300:600,99),[N]);E.useEffect(()=>{const O=A.current,k=(X,tt)=>{O.tMouseX=(X/window.innerWidth-.5)*2,O.tMouseY=(tt/window.innerHeight-.5)*2},p=X=>k(X.clientX,X.clientY),$=X=>{X.touches[0]&&k(X.touches[0].clientX,X.touches[0].clientY)};return window.addEventListener("mousemove",p,{passive:!0}),window.addEventListener("touchmove",$,{passive:!0}),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",$)}},[]),E.useEffect(()=>{const O=A.current,k=T.current,p=u;if(T.current=p,p&&k!==p){const[X,tt,K]=(k||"2000-01-01").split("-").map(Number),[Et,Qt,re]=p.split("-").map(Number);if(!isNaN(Et)&&!isNaN(Qt)&&!isNaN(re)){const le=Et-(isNaN(X)?Et:X),kt=Qt-(isNaN(tt)?Qt:tt),ve=re-(isNaN(K)?re:K),Ht=!k||k===""?.8:ve*.12+kt*.4+le*1.5;O.angVel+=Ht,O.angVel=Math.max(-5,Math.min(5,O.angVel)),O.targetRotation+=Ht*.6}}const $=nb(p);$!==O.sign&&(O.prevSign=O.sign,O.prevAlpha=O.cAlpha,O.sign=$,O.cAlpha=0,O.lineProgress=0,O.labelAlpha=0)},[u]);const j=E.useCallback(O=>{const k=b.current;if(!k)return;const p=k.getContext("2d");if(!p)return;const $=Math.min(window.devicePixelRatio||1,2),X=k.clientWidth,tt=k.clientHeight;(k.width!==X*$||k.height!==tt*$)&&(k.width=X*$,k.height=tt*$),p.setTransform($,0,0,$,0,0),p.clearRect(0,0,X,tt);const K=g,Et=K?"255,255,255":"0,0,0",Qt=K?"#fff":"#000",re=K?"220,240,255":"30,30,60",le=K?"255,240,220":"180,140,60",kt=K?[255,250,235,255,220,180,200,170,130]:[210,170,60,190,145,50,160,120,40],ve=K?"255,230,200":"170,130,50",pe=K?"210,255,235":"5,80,50",Ht=K?{}:{"#fff":"#222","#ccd6ff":"#1a2040","#d4e0ff":"#102030","#fff4e0":"#3a2800","#ffe8c8":"#402000","#ffd6d6":"#401010"},U=V=>Ht[V]||V,M=A.current,P=1/60;M.t+=P;const rt=M.t;M.curI+=(i-M.curI)*.04;const nt=M.curI,x=f==="none"?0:1;M.curArtifact+=(x-M.curArtifact)*.06,M.mouseX+=(M.tMouseX-M.mouseX)*.04,M.mouseY+=(M.tMouseY-M.mouseY)*.04,M.targetRotation+=P*.015,M.rotation+=(M.targetRotation-M.rotation)*.05;const q=Math.abs(M.angVel);M.angVel*=.95,q<5e-4&&(M.angVel=0);const J=Math.min(1,q*.8),I=X*.5,ot=tt*.5;if(M.sign&&r?(M.cAlpha=Math.min(1,M.cAlpha+P*1.5),M.lineProgress=Math.min(1,M.lineProgress+P*.8),M.labelAlpha=Math.min(1,M.labelAlpha+P*.6)):r||(M.cAlpha=Math.max(0,M.cAlpha-P*2)),M.prevSign&&(M.prevAlpha=Math.max(0,M.prevAlpha-P*2.5),M.prevAlpha<=0&&(M.prevSign=null)),M.nextShootAt-=P*1e3,M.nextShootAt<=0&&nt>.15&&(M.shootingStars.push({x:Math.random()*X,y:Math.random()*tt*.5,angle:Math.PI*.1+Math.random()*Math.PI*.3,speed:400+Math.random()*500,life:0,maxLife:.3+Math.random()*.35,len:80+Math.random()*150}),M.nextShootAt=3e3+Math.random()*7e3),M.curArtifact>.005&&f==="nebula"){const V=o??nt*.25;for(const Y of Z){const W=Y.x*X+Math.sin(rt*Y.speed+Y.phase)*50,st=Y.y*tt+Math.cos(rt*Y.speed*.7+Y.phase)*35,lt=.5+.5*Math.sin(rt*Y.speed*.4+Y.phase),ut=Y.r*(.8+lt*.5),Ct=M.curArtifact*V*(.5+lt*.5);p.globalAlpha=1;const mt=p.createRadialGradient(W,st,0,W,st,ut);mt.addColorStop(0,`hsla(${Y.hue}, 80%, 55%, ${Ct})`),mt.addColorStop(.3,`hsla(${Y.hue}, 70%, 45%, ${Ct*.5})`),mt.addColorStop(.7,`hsla(${Y.hue}, 60%, 35%, ${Ct*.15})`),mt.addColorStop(1,`hsla(${Y.hue}, 50%, 30%, 0)`),p.fillStyle=mt,p.beginPath(),p.arc(W,st,ut,0,Math.PI*2),p.fill()}}if(M.curArtifact>.005&&f==="stardust"){const V=X*.5+Math.sin(rt*.15)*35,Y=tt*.32+Math.cos(rt*.12)*25,W=.6+.4*Math.sin(rt*.35),st=M.curArtifact*nt,lt=180+W*80,ut=p.createRadialGradient(V,Y,0,V,Y,lt);ut.addColorStop(0,`rgba(16, 185, 129, ${st*.25*W})`),ut.addColorStop(.2,`rgba(16, 185, 129, ${st*.12})`),ut.addColorStop(.5,`rgba(80, 100, 220, ${st*.06})`),ut.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=1,p.fillStyle=ut,p.beginPath(),p.arc(V,Y,lt,0,Math.PI*2),p.fill();const Ct=p.createRadialGradient(V,Y,0,V,Y,40);Ct.addColorStop(0,K?`rgba(200, 255, 230, ${st*.4})`:`rgba(5, 80, 40, ${st*.4})`),Ct.addColorStop(.5,`rgba(16, 185, 129, ${st*.15})`),Ct.addColorStop(1,"rgba(16, 185, 129, 0)"),p.fillStyle=Ct,p.beginPath(),p.arc(V,Y,40,0,Math.PI*2),p.fill();for(let mt=0;mt<8;mt++){const xt=rt*.08+mt/8*Math.PI*2,Zt=80+40*Math.sin(rt*.4+mt*1.3),zt=V+Math.cos(xt)*Zt,Kt=Y+Math.sin(xt)*Zt,be=p.createLinearGradient(V,Y,zt,Kt);be.addColorStop(0,`rgba(16,185,129,${st*.15})`),be.addColorStop(1,"rgba(16,185,129,0)"),p.strokeStyle=be,p.lineWidth=2.5,p.globalAlpha=1,p.beginPath(),p.moveTo(V,Y),p.lineTo(zt,Kt),p.stroke()}}if(nt>.1){p.fillStyle=Qt;for(const V of G)V.y-=V.speed*P,V.x+=Math.sin(rt*.3+V.y*5)*3e-4,V.y<-.01&&(V.y=1.01,V.x=Math.random()),p.globalAlpha=V.alpha*nt*.7,p.fillRect(V.x*X,V.y*tt,1,1)}if(nt>.15){M.auroraPhase+=P*.08,p.save(),p.globalCompositeOperation=K?"screen":"multiply";const V=[{hue:160,y:.18,amp:40,freq:1.2,alpha:.04},{hue:270,y:.25,amp:30,freq:.9,alpha:.03},{hue:190,y:.15,amp:50,freq:1.5,alpha:.025}];for(const Y of V){const W=Y.y*tt;p.beginPath(),p.moveTo(0,W);for(let lt=0;lt<=X;lt+=8){const ut=W+Math.sin(lt*Y.freq*.005+M.auroraPhase+Y.hue)*Y.amp+Math.sin(lt*.003+M.auroraPhase*1.7)*Y.amp*.5;p.lineTo(lt,ut)}p.lineTo(X,0),p.lineTo(0,0),p.closePath();const st=p.createLinearGradient(0,W-60,0,W+80);st.addColorStop(0,"rgba(0,0,0,0)"),st.addColorStop(.4,`hsla(${Y.hue},60%,50%,${Y.alpha*nt})`),st.addColorStop(.6,`hsla(${Y.hue},60%,40%,${Y.alpha*nt*.6})`),st.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=st,p.fill()}p.restore()}for(const V of Q){const Y=V.layer===0?.3:V.layer===1?.65:1,W=V.angle+M.rotation*Y,st=Math.sqrt(X*X+tt*tt)*.75,lt=I+Math.cos(W)*V.dist*st+M.mouseX*25*Y,ut=ot+Math.sin(W)*V.dist*st+M.mouseY*15*Y;if(lt<-60||lt>X+60||ut<-60||ut>tt+60)continue;const mt=V.baseAlpha*(.3+.5*(.5+.35*Math.sin(rt*V.speed+V.phase)+.15*Math.sin(rt*V.speed*2.7+V.phase*1.4)))*nt;if(!(mt<.008)){if(J>.02&&nt>.2){const xt=M.angVel*V.dist*st*Y,Zt=Math.max(-80,Math.min(80,xt));if(Math.abs(Zt)>1.5){const zt=-Math.sin(W),Kt=Math.cos(W);p.beginPath(),p.moveTo(lt-zt*Zt*.5,ut-Kt*Zt*.5),p.lineTo(lt+zt*Zt*.5,ut+Kt*Zt*.5),p.lineWidth=V.r*1.8,p.strokeStyle=U(V.color),p.globalAlpha=mt*.3,p.stroke()}}if(p.globalAlpha=mt,p.fillStyle=U(V.color),p.beginPath(),p.arc(lt,ut,V.r,0,Math.PI*2),p.fill(),V.shimmer&&mt>.1){const xt=.5+.5*Math.sin(rt*V.speed*.7+V.phase),Zt=V.r*(8+xt*6),zt=p.createRadialGradient(lt,ut,0,lt,ut,Zt);zt.addColorStop(0,U(V.color)),zt.addColorStop(.15,U(V.color)),zt.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=mt*.25*xt,p.fillStyle=zt,p.beginPath(),p.arc(lt,ut,Zt,0,Math.PI*2),p.fill();const Kt=V.r*(4+xt*3);p.globalAlpha=mt*.4*xt,p.strokeStyle=U(V.color),p.lineWidth=.8,p.beginPath(),p.moveTo(lt-Kt,ut),p.lineTo(lt+Kt,ut),p.moveTo(lt,ut-Kt),p.lineTo(lt,ut+Kt),p.stroke()}}}for(let V=M.shootingStars.length-1;V>=0;V--){const Y=M.shootingStars[V];if(Y.life+=P,Y.life>Y.maxLife){M.shootingStars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.2?W/.2:1-(W-.2)/.8,lt=Y.x+Math.cos(Y.angle)*Y.speed*Y.life,ut=Y.y+Math.sin(Y.angle)*Y.speed*Y.life,Ct=lt-Math.cos(Y.angle)*Y.len*st,mt=ut-Math.sin(Y.angle)*Y.len*st,xt=p.createLinearGradient(Ct,mt,lt,ut);xt.addColorStop(0,`rgba(${Et},0)`),xt.addColorStop(.6,`rgba(${Et},${st*.3*nt})`),xt.addColorStop(1,`rgba(${Et},${st*.9*nt})`),p.strokeStyle=xt,p.lineWidth=1.8,p.globalAlpha=1,p.beginPath(),p.moveTo(Ct,mt),p.lineTo(lt,ut),p.stroke(),p.fillStyle=`rgba(${Et},${st*nt})`,p.beginPath(),p.arc(lt,ut,2,0,Math.PI*2),p.fill()}M.nextPulsarAt-=P*1e3,M.nextPulsarAt<=0&&nt>.2&&M.pulsars.length<2&&(M.pulsars.push({x:Math.random()*X,y:Math.random()*tt,life:0,maxLife:2.5+Math.random()*1.5}),M.nextPulsarAt=6e3+Math.random()*1e4);for(let V=M.pulsars.length-1;V>=0;V--){const Y=M.pulsars[V];if(Y.life+=P,Y.life>Y.maxLife){M.pulsars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W*60,lt=W<.1?W/.1:1-(W-.1)/.9;if(p.strokeStyle=`rgba(${re},${lt*.3*nt})`,p.lineWidth=1.5*(1-W),p.globalAlpha=1,p.beginPath(),p.arc(Y.x,Y.y,st,0,Math.PI*2),p.stroke(),W<.3){const ut=(1-W/.3)*.6*nt;p.fillStyle=`rgba(${re},${ut})`,p.beginPath(),p.arc(Y.x,Y.y,2,0,Math.PI*2),p.fill()}}if(M.nextBirthAt-=P*1e3,M.nextBirthAt<=0&&nt>.2&&M.births.length<1){const V=K?["#fff","#ccd6ff","#fff4e0","#ffe8c8"]:["#000","#1a2040","#3a2800","#402000"];M.births.push({x:X*.1+Math.random()*X*.8,y:tt*.1+Math.random()*tt*.6,life:0,maxLife:2+Math.random()*1,color:V[Math.floor(Math.random()*V.length)]}),M.nextBirthAt=18e3+Math.random()*15e3}for(let V=M.births.length-1;V>=0;V--){const Y=M.births[V];if(Y.life+=P,Y.life>Y.maxLife){M.births.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.15?W/.15:1,lt=W<.3?1:1-(W-.3)/.7,ut=st*20,Ct=p.createRadialGradient(Y.x,Y.y,0,Y.x,Y.y,ut);Ct.addColorStop(0,Y.color),Ct.addColorStop(.3,Y.color),Ct.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=lt*.4*nt,p.fillStyle=Ct,p.beginPath(),p.arc(Y.x,Y.y,ut,0,Math.PI*2),p.fill();const mt=1+st*2*lt;if(p.globalAlpha=lt*.9*nt,p.fillStyle=Qt,p.beginPath(),p.arc(Y.x,Y.y,mt,0,Math.PI*2),p.fill(),W<.3){const xt=st*15*lt;p.strokeStyle=Y.color,p.lineWidth=.6,p.globalAlpha=lt*.5*nt,p.beginPath(),p.moveTo(Y.x-xt,Y.y),p.lineTo(Y.x+xt,Y.y),p.moveTo(Y.x,Y.y-xt),p.lineTo(Y.x,Y.y+xt),p.stroke()}}if(p.globalAlpha=1,d&&r?(M.planetAlpha=Math.min(1,M.planetAlpha+P*.8),M.elementTintAlpha=Math.min(1,M.elementTintAlpha+P*.6)):(M.planetAlpha=Math.max(0,M.planetAlpha-P*1.5),M.elementTintAlpha=Math.max(0,M.elementTintAlpha-P*1.5)),d&&M.elementTintAlpha>.01){const V=ob[d.zodiac.element];if(V){const zt=M.elementTintAlpha*nt*.12,Kt=p.createRadialGradient(X*.5,tt*.72,0,X*.5,tt*.72,tt*.7);Kt.addColorStop(0,`rgba(${V.r},${V.g},${V.b},${zt})`),Kt.addColorStop(.5,`rgba(${V.r},${V.g},${V.b},${zt*.3})`),Kt.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=Kt,p.beginPath(),p.arc(X*.5,tt*.72,tt*.7,0,Math.PI*2),p.fill()}const W=5+(fb[d.zodiac.rulingPlanet]||.5)*8,st=W*5,lt=X*.73+Math.sin(rt*.1)*8,ut=tt*.68+Math.cos(rt*.08)*6,Ct=M.planetAlpha*(K?nt:Math.max(nt,.7)),mt=p.createRadialGradient(lt,ut,0,lt,ut,st);mt.addColorStop(0,`rgba(${le},${Ct*.08})`),mt.addColorStop(.3,`rgba(${le},${Ct*.03})`),mt.addColorStop(1,`rgba(${le},0)`),p.fillStyle=mt,p.globalAlpha=1,p.beginPath(),p.arc(lt,ut,st,0,Math.PI*2),p.fill();const xt=p.createRadialGradient(lt-W*.2,ut-W*.2,0,lt,ut,W);xt.addColorStop(0,`rgba(${kt[0]},${kt[1]},${kt[2]},${Ct*.5})`),xt.addColorStop(.7,`rgba(${kt[3]},${kt[4]},${kt[5]},${Ct*.25})`),xt.addColorStop(1,`rgba(${kt[6]},${kt[7]},${kt[8]},${Ct*.1})`),p.fillStyle=xt,p.beginPath(),p.arc(lt,ut,W,0,Math.PI*2),p.fill(),d.zodiac.rulingPlanet==="Saturn"&&(p.strokeStyle=`rgba(${ve},${Ct*.2})`,p.lineWidth=1,p.beginPath(),p.ellipse(lt,ut,W*2.2,W*.5,-.2,0,Math.PI*2),p.stroke());const Zt=cb[d.birthstone];if(Zt)for(let zt=0;zt<8;zt++){const Kt=X*.25+zt*.07*X+Math.sin(rt*.25+zt*1.1)*25,be=tt*.65+Math.cos(rt*.2+zt*.9)*30+zt%3*15,Jt=M.elementTintAlpha*nt*.3*(.4+.6*Math.sin(rt*.4+zt*2));p.fillStyle=Zt,p.globalAlpha=Jt,p.beginPath(),p.arc(Kt,be,1.5+zt%3*.5,0,Math.PI*2),p.fill()}p.globalAlpha=1}const ht=(V,Y,W)=>{const st=ib[V];if(!st||Y<=0)return;const lt=M.rotation*.65,ut=X*.5+M.mouseX*25*.65,Ct=tt*.72+M.mouseY*15*.65,mt=Math.min(X*.45,tt*.22),xt=st.stars.map(([Jt,De])=>{const ge=(Jt-.5)*mt,ie=(De-.42)*mt,qt=Math.cos(lt*.15),ia=Math.sin(lt*.15);return[ut+ge*qt-ie*ia,Ct+ge*ia+ie*qt]}),Zt=st.lines.length,zt=Math.floor(W*Zt),Kt=W*Zt-zt,be=K?1:3;p.strokeStyle=`rgba(16,185,129,${Y*.3*nt*be})`,p.lineWidth=K?1:1.5,p.shadowColor=`rgba(16,185,129,${Y*.5*be})`,p.shadowBlur=6,p.beginPath();for(let Jt=0;Jt<=zt&&Jt<Zt;Jt++){const[De,ge]=st.lines[Jt],[ie,qt]=xt[De],[ia,ua]=xt[ge];p.moveTo(ie,qt),p.lineTo(Jt<zt?ia:ie+(ia-ie)*Kt,Jt<zt?ua:qt+(ua-qt)*Kt)}p.stroke(),p.shadowBlur=0;for(let Jt=0;Jt<st.stars.length;Jt++){const[,,De]=st.stars[Jt],[ge,ie]=xt[Jt],qt=Y*De*Math.min(1,W*Zt/Math.max(1,Jt))*nt;if(qt<=0)continue;const ia=5+De*5,ua=p.createRadialGradient(ge,ie,0,ge,ie,ia);ua.addColorStop(0,`rgba(16,185,129,${qt*.7*be})`),ua.addColorStop(.4,`rgba(16,185,129,${qt*.2*be})`),ua.addColorStop(1,"rgba(16,185,129,0)"),p.fillStyle=ua,p.globalAlpha=1,p.beginPath(),p.arc(ge,ie,ia,0,Math.PI*2),p.fill(),p.fillStyle=`rgba(${pe},${qt})`,p.beginPath(),p.arc(ge,ie,1.2+De*1.3,0,Math.PI*2),p.fill()}if(V===M.sign&&M.labelAlpha>0){const Jt=Math.max(13,Math.min(16,X*.035)),De=Math.max(10,Math.min(12,X*.025)),ge=Math.max(...xt.map(ie=>ie[1]));if(p.textAlign="center",p.globalAlpha=M.labelAlpha*(K?.5:1),p.fillStyle=K?"#34d399":"#047857",p.font=`500 ${Jt}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="3px",p.fillText(V.toUpperCase(),ut,ge+24),p.letterSpacing="0px",d&&M.labelAlpha>.4){const ie=(M.labelAlpha-.4)/.6;p.font=`400 ${De}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="1.5px",p.globalAlpha=ie*(K?.6:1),p.fillStyle=K?"#a1a1aa":"#71717a",p.fillText(`${d.zodiac.element} · ${d.zodiac.rulingPlanet}`,ut,ge+42),p.globalAlpha=ie*(K?.45:.85),p.fillStyle=K?"#a1a1aa":"#71717a",p.fillText(`${d.chineseZodiac.element} ${d.chineseZodiac.animal} · Path ${d.numerology.lifePath}`,ut,ge+58),p.letterSpacing="0px"}p.globalAlpha=1}};M.prevSign&&ht(M.prevSign,M.prevAlpha,1),M.sign&&M.cAlpha>0&&ht(M.sign,M.cAlpha,M.lineProgress),m.current&&(y.current=requestAnimationFrame(j))},[Q,Z,G,i,o,r,f,d,g]);return E.useEffect(()=>{if(lb()){m.current=!1,requestAnimationFrame(j);return}const O=()=>{const k=!document.hidden;k!==m.current&&(m.current=k,cancelAnimationFrame(y.current),k&&(y.current=requestAnimationFrame(j)))};return m.current=!document.hidden,m.current&&(y.current=requestAnimationFrame(j)),document.addEventListener("visibilitychange",O),()=>{cancelAnimationFrame(y.current),document.removeEventListener("visibilitychange",O)}},[j]),S.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none z-0","aria-hidden":"true",children:[S.jsx("canvas",{ref:b,className:"absolute inset-0 w-full h-full"}),S.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/4",style:{background:"linear-gradient(to top, var(--color-bg) 0%, transparent 100%)"}}),S.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 140% 90% at 50% 10%, transparent 50%, var(--color-bg) 100%)"}})]})}const hb={date:"",intensity:.5,nebulaOpacity:.05,artifact:"nebula",cosmic:null},t0=E.createContext(()=>{}),VS=()=>E.useContext(t0);function mb(){const[u,i]=E.useState(hb),o=E.useCallback(f=>i(d=>({...d,...f})),[]),{resolved:r}=Xv();return S.jsx(t0.Provider,{value:o,children:S.jsxs("div",{className:"relative min-h-screen",children:[S.jsx(db,{...u,darkMode:r==="dark"}),S.jsx("div",{className:"relative z-10",children:S.jsx(Xy,{})})]})})}function e0(u){const[i,o]=E.useState(()=>pt.flags.get(u));return E.useEffect(()=>pt.flags.subscribe(f=>{(!f||f===u)&&o(pt.flags.get(u))}),[u]),i}const vm=1;class St extends Error{constructor(i,o){super(o),this.code=i,this.name="KitError"}}class pb{constructor(){this.kind="appwrap",this.pending=new Map,this.listeners=new Map,this.seq=0}detect(){var i,o;return typeof window<"u"&&(!!((o=(i=window.webkit)==null?void 0:i.messageHandlers)!=null&&o.appwrap)||!!window.appwrapNative)}async handshake(i){return this.installDeliver(),this.request("app.handshake",void 0,i)}invoke(i,o,r){return this.request(i,o,(r==null?void 0:r.timeoutMs)??1e4)}on(i,o){let r=this.listeners.get(i);return r||this.listeners.set(i,r=new Set),r.add(o),()=>r.delete(o)}request(i,o,r){const f=`k${++this.seq}`,d={v:1,id:f,kind:"request",method:i,params:o};return new Promise((g,b)=>{const y=setTimeout(()=>{this.pending.delete(f),b(new St("TIMEOUT",`${i} timed out after ${r}ms`))},r);this.pending.set(f,{resolve:m=>{clearTimeout(y),g(m)},reject:m=>{clearTimeout(y),b(m)}}),this.post(d)})}post(i){var r,f;const o=JSON.stringify(i);if((f=(r=window.webkit)==null?void 0:r.messageHandlers)!=null&&f.appwrap)window.webkit.messageHandlers.appwrap.postMessage(o);else if(window.appwrapNative)window.appwrapNative.postMessage(o);else{const d=this.pending.get(i.id);this.pending.delete(i.id),d==null||d.reject(new St("NOT_READY","No native transport present"))}}installDeliver(){window.__appwrapDeliver||(window.__appwrapDeliver=i=>{var r;let o;try{o=JSON.parse(i)}catch{return}o.kind==="response"?this.handleResponse(o):o.kind==="event"&&((r=this.listeners.get(o.event))==null||r.forEach(f=>f(o.payload)))})}handleResponse(i){const o=this.pending.get(i.id);o&&(this.pending.delete(i.id),i.error?o.reject(new St(i.error.code,i.error.message)):o.resolve(i.result))}}function gb(u){const i=atob(u),o=new Uint8Array(i.length);for(let r=0;r<i.length;r++)o[r]=i.charCodeAt(r);return o.buffer}function yb(u){switch(u){case"portrait-upside-down":return"portrait-secondary";case"landscape-left":return"landscape-primary";case"landscape-right":return"landscape-secondary";default:return u}}class vb{constructor(){this.kind="web",this.toastEl=null,this.wakeLock=null,this.listeners=new Map,this.geoWatchId=null,this.motionHandler=null}detect(){return typeof window<"u"}async handshake(){var r,f;const i=navigator,o={haptics:"vibrate"in navigator?"web":"none",share:"share"in navigator?"web":"none",shareFiles:typeof i.canShare=="function"?"web":"none",orientation:screen!=null&&screen.orientation?"web":"none",storage:"web",secureStorage:"none",toast:"web",statusBar:"none",device:"web",clipboard:navigator.clipboard?"web":"none",notifications:"Notification"in window?"web":"none",biometrics:"none",geo:"geolocation"in navigator?"web":"none",photos:"web",network:"web",screen:"wakeLock"in i?"web":"none",dialogs:"web",reviews:"none",themeColor:"web",motion:typeof DeviceMotionEvent<"u"?"web":"none",contacts:(r=i.contacts)!=null&&r.select?"web":"none",calendar:"none",camera:"web",media:(f=navigator.mediaDevices)!=null&&f.getUserMedia?"web":"none",app:"web",browser:"web",billing:"none",push:"none"};return{protocol:1,platform:"web",app:{id:location.hostname,name:document.title||location.hostname,version:"0.0.0"},capabilities:o}}async invoke(i,o){var f,d,g,b,y,m,T,A,N,Q,Z,G;const r=o??{};switch(i){case"haptics.impact":(f=navigator.vibrate)==null||f.call(navigator,10);return;case"haptics.notify":(d=navigator.vibrate)==null||d.call(navigator,r.type==="error"?[40,60,40]:[20,40,20]);return;case"share.share":if(!navigator.share)throw new St("UNSUPPORTED","Web Share API unavailable");await navigator.share({title:r.title,text:r.text,url:r.url}).catch(j=>{if(j.name!=="AbortError")throw new St("NATIVE_ERROR",j.message)});return;case"share.files":{const O={files:(r.files??[]).map(k=>new File([gb(k.base64)],k.name,{type:k.mimeType})),title:r.title,text:r.text};if(!((g=navigator.canShare)!=null&&g.call(navigator,O)))throw new St("UNSUPPORTED","Sharing files is unavailable here");await navigator.share(O).catch(k=>{if(k.name!=="AbortError")throw new St("NATIVE_ERROR",k.message)});return}case"storage.get":return JSON.parse(localStorage.getItem(`kit:${r.key}`)??"null");case"storage.set":localStorage.setItem(`kit:${r.key}`,JSON.stringify(r.value??null));return;case"storage.remove":localStorage.removeItem(`kit:${r.key}`);return;case"storage.clear":for(const j of Object.keys(localStorage))j.startsWith("kit:")&&localStorage.removeItem(j);return;case"storage.secure.get":case"storage.secure.set":case"storage.secure.remove":throw new St("UNSUPPORTED","No secure storage on web");case"toast.show":this.showToast(String(r.message??""),r.duration==="long"?3500:2e3);return;case"ui.statusBar.setStyle":return;case"ui.safeArea":return this.readSafeArea();case"ui.brightness.get":case"ui.brightness.set":throw new St("UNSUPPORTED","No brightness control on web");case"ui.keepAwake":{const j=navigator.wakeLock;if(!j)throw new St("UNSUPPORTED","Wake Lock API unavailable");r.on?this.wakeLock=await j.request("screen"):(await((b=this.wakeLock)==null?void 0:b.release()),this.wakeLock=null);return}case"ui.alert":window.alert([r.title,r.message].filter(Boolean).join(`

`));return;case"ui.confirm":return window.confirm([r.title,r.message].filter(Boolean).join(`

`));case"ui.action":return this.showActionSheet(r.title,r.options??[],r.cancel??"Cancel");case"ui.setBackgroundColor":{let j=document.querySelector('meta[name="theme-color"]');j||(j=document.createElement("meta"),j.name="theme-color",document.head.appendChild(j)),j.content=String(r.color??"");return}case"screen.orientation.lock":{const j=screen==null?void 0:screen.orientation;if(!(j!=null&&j.lock))throw new St("UNSUPPORTED","Screen orientation lock unavailable");await j.lock(yb(String(r.orientation))).catch(O=>{throw new St("UNSUPPORTED",O.message||"Lock rejected (fullscreen may be required)")});return}case"screen.orientation.unlock":(m=(y=screen==null?void 0:screen.orientation)==null?void 0:y.unlock)==null||m.call(y);return;case"screen.orientation.current":return(((T=screen==null?void 0:screen.orientation)==null?void 0:T.type)??"").startsWith("landscape")?"landscape":"portrait";case"reviews.requestReview":throw new St("UNSUPPORTED","No in-app review prompt on web");case"device.info":{const j=await((A=navigator.getBattery)==null?void 0:A.call(navigator).catch(()=>null));return{model:navigator.userAgent.replace(/^Mozilla\/\d+\.\d+\s*/,"").slice(0,64),os:"web",osVersion:navigator.platform??"",language:navigator.language,battery:j?{level:j.level,charging:j.charging}:void 0}}case"clipboard.copy":if(!navigator.clipboard)throw new St("UNSUPPORTED","Clipboard API unavailable");await navigator.clipboard.writeText(String(r.text??""));return;case"clipboard.read":if(!((N=navigator.clipboard)!=null&&N.readText))throw new St("UNSUPPORTED","Clipboard read unavailable");return await navigator.clipboard.readText().catch(j=>{throw new St("DENIED",j.message)});case"notifications.requestPermission":if(!("Notification"in window))throw new St("UNSUPPORTED","Notifications unavailable");return await Notification.requestPermission();case"notifications.schedule":{if(Notification.permission!=="granted")throw new St("DENIED","Permission not granted");const j=(r.delaySec??1)*1e3;return setTimeout(()=>new Notification(r.title,{body:r.body}),j),{id:r.id??Date.now()%1e5}}case"notifications.pending":return 0;case"notifications.setBadge":{const j=(Q=navigator.setAppBadge)==null?void 0:Q.bind(navigator);if(!j)throw new St("UNSUPPORTED","Badging API unavailable");await j(r.count);return}case"notifications.clear":return;case"biometrics.available":return{available:!1,type:"none"};case"biometrics.authenticate":throw new St("UNSUPPORTED","No biometrics on web");case"geo.current":return new Promise((j,O)=>{navigator.geolocation.getCurrentPosition(k=>j({lat:k.coords.latitude,lng:k.coords.longitude,accuracy:k.coords.accuracy}),k=>O(new St(k.code===1?"DENIED":"NATIVE_ERROR",k.message)),{timeout:1e4})});case"geo.watch.start":this.geoWatchId===null&&(this.geoWatchId=navigator.geolocation.watchPosition(j=>this.emit("geo.position",{lat:j.coords.latitude,lng:j.coords.longitude,accuracy:j.coords.accuracy}),j=>console.warn("[native-kit] geo.watch error",j.message)));return;case"geo.watch.stop":this.geoWatchId!==null&&(navigator.geolocation.clearWatch(this.geoWatchId),this.geoWatchId=null);return;case"motion.start":{if(typeof DeviceMotionEvent>"u")throw new St("UNSUPPORTED","No motion sensors on this browser");const j=DeviceMotionEvent.requestPermission;if(j&&await j().catch(k=>{throw new St("DENIED",k.message)})!=="granted")throw new St("DENIED","Motion permission not granted");if(!this.motionHandler){let O=0;this.motionHandler=k=>{const p=performance.now();if(p-O<100)return;O=p;const $=k.accelerationIncludingGravity,X=k.rotationRate;this.emit("motion.data",{ax:($==null?void 0:$.x)??0,ay:($==null?void 0:$.y)??0,az:($==null?void 0:$.z)??0,rx:(X==null?void 0:X.alpha)??void 0,ry:(X==null?void 0:X.beta)??void 0,rz:(X==null?void 0:X.gamma)??void 0})},window.addEventListener("devicemotion",this.motionHandler)}return}case"motion.stop":this.motionHandler&&(window.removeEventListener("devicemotion",this.motionHandler),this.motionHandler=null);return;case"contacts.pick":{if(!((Z=navigator.contacts)==null?void 0:Z.select))throw new St("UNSUPPORTED","Contact Picker API unavailable");const O=await navigator.contacts.select(["name","tel","email"]).catch(p=>{throw new St("DENIED",p.message)}),k=O==null?void 0:O[0];return k?{picked:!0,name:(G=k.name)==null?void 0:G[0],phones:k.tel,emails:k.email}:{picked:!1}}case"calendar.createEvent":throw new St("UNSUPPORTED","No calendar access on web");case"photos.pick":return this.pickImageFile(!1,!!r.dataUrl,r.maxSize);case"camera.capture":return this.pickImageFile(!0,!!r.dataUrl,r.maxSize);case"media.configureAudio":return;case"network.status":{const j=navigator.connection;return{online:navigator.onLine,type:(j==null?void 0:j.type)??(navigator.onLine?"unknown":"none")}}case"app.openUrl":case"browser.open":{if(!window.open(String(r.url??""),"_blank","noopener"))throw new St("DENIED","Popup blocked");return}case"app.openSettings":throw new St("UNSUPPORTED","No app settings page on web");case"billing.products":case"billing.purchase":case"billing.restore":case"billing.entitlements":case"billing.manageSubscriptions":throw new St("UNSUPPORTED","No in-app purchases on web — use a web checkout");case"push.requestPermission":case"push.register":case"push.unregister":throw new St("UNSUPPORTED","No native remote push on web — use Web Push (VAPID) in your app, or run inside the appwrap shell");default:throw new St("UNSUPPORTED",`Unknown method: ${i}`)}}on(i,o){if(i==="network.change"){const f=()=>o({online:navigator.onLine,type:navigator.onLine?"unknown":"none"});return window.addEventListener("online",f),window.addEventListener("offline",f),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",f)}}if(i==="screen.orientation.change"){const f=screen==null?void 0:screen.orientation;if(!f)return()=>{};const d=()=>o(String(f.type??"").startsWith("landscape")?"landscape":"portrait");return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}if(i==="app.pause"||i==="app.resume"){const f=()=>{const d=document.visibilityState==="hidden";i==="app.pause"===d&&o(void 0)};return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)}let r=this.listeners.get(i);return r||(r=new Set,this.listeners.set(i,r)),r.add(o),()=>r.delete(o)}emit(i,o){var r;(r=this.listeners.get(i))==null||r.forEach(f=>f(o))}pickImageFile(i,o=!1,r=1024){return new Promise(f=>{const d=document.createElement("input");d.type="file",d.accept="image/*",i&&d.setAttribute("capture","environment"),d.onchange=()=>{var y;const g=(y=d.files)==null?void 0:y[0];if(!g)return f({picked:!1});const b=new Image;b.onload=()=>{var T;const m={picked:!0,width:b.naturalWidth,height:b.naturalHeight};if(o){const A=Math.min(1,r/Math.max(b.naturalWidth,b.naturalHeight)),N=document.createElement("canvas");N.width=Math.round(b.naturalWidth*A),N.height=Math.round(b.naturalHeight*A),(T=N.getContext("2d"))==null||T.drawImage(b,0,0,N.width,N.height),m.dataUrl=N.toDataURL("image/jpeg",.85)}URL.revokeObjectURL(b.src),f(m)},b.onerror=()=>f({picked:!0}),b.src=URL.createObjectURL(g)},d.oncancel=()=>f({picked:!1}),d.click()})}showActionSheet(i,o,r){return new Promise(f=>{const d=document.createElement("div");d.style.cssText="position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:99999;display:flex;align-items:flex-end";const g=document.createElement("div");g.style.cssText="width:100%;background:#1c1c22;color:#fff;border-radius:16px 16px 0 0;padding:12px;font:15px system-ui;display:flex;flex-direction:column;gap:6px";const b=m=>{d.remove(),f(m)};if(i){const m=document.createElement("div");m.textContent=i,m.style.cssText="text-align:center;opacity:.6;font-size:13px;padding:4px",g.appendChild(m)}const y=(m,T)=>{const A=document.createElement("button");A.textContent=m,A.style.cssText="background:#2a2a32;color:inherit;border:0;border-radius:10px;padding:12px;font:inherit;cursor:pointer",A.onclick=T,g.appendChild(A)};o.forEach((m,T)=>y(m,()=>b(T))),y(r,()=>b(null)),d.onclick=m=>{m.target===d&&b(null)},d.appendChild(g),document.body.appendChild(d)})}readSafeArea(){const i=document.createElement("div");i.style.cssText="position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)",document.body.appendChild(i);const o=getComputedStyle(i),r={top:parseFloat(o.paddingTop)||0,right:parseFloat(o.paddingRight)||0,bottom:parseFloat(o.paddingBottom)||0,left:parseFloat(o.paddingLeft)||0};return i.remove(),r}showToast(i,o){var f;(f=this.toastEl)==null||f.remove();const r=document.createElement("div");r.textContent=i,r.style.cssText="position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:rgba(20,20,24,.92);color:#fff;padding:10px 18px;border-radius:20px;font:14px/1.3 system-ui;z-index:99999;max-width:80vw;text-align:center;box-shadow:0 4px 16px rgba(0,0,0,.25)",document.body.appendChild(r),this.toastEl=r,setTimeout(()=>{r.remove(),this.toastEl===r&&(this.toastEl=null)},o)}}class bb{constructor(i){this.kit=i}get capability(){return this.kit.capability("app")}openUrl(i){return this.kit.invoke("app.openUrl",{url:i})}openSettings(){return this.kit.invoke("app.openSettings")}}class Sb{constructor(i){this.readNative=i}async validate(i){return[{productId:i.productId,active:!0,purchasedAt:Date.now()}]}entitlements(){return this.readNative()}}class wb{constructor(i){this.kit=i,this.validator=new Sb(()=>this.nativeEntitlements())}get capability(){return this.kit.is.native?this.kit.capability("billing"):this.webProvider?"web":"none"}configure(i){i.validator&&(this.validator=i.validator),i.webProvider&&(this.webProvider=i.webProvider)}webProviderOrThrow(){if(!this.webProvider)throw new St("UNSUPPORTED","No web billing provider configured. On the web, wire one: kit.billing.configure({ webProvider: new HttpBillingProvider({ baseUrl: '/api/billing' }) })");return this.webProvider}async products(i){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().products(i):this.kit.invoke("billing.products",{ids:i})}async purchase(i){if(await this.kit.ready(),this.kit.is.web){const r=await this.webProviderOrThrow().purchase(i);return{receipt:{platform:"web",productId:i,raw:null},entitlements:r}}const o=await this.kit.invoke("billing.purchase",{productId:i},{timeoutMs:12e4});return{receipt:o,entitlements:await this.validator.validate(o)}}async restore(){if(await this.kit.ready(),this.kit.is.web){const r=this.webProviderOrThrow();return(r.restore??r.entitlements).call(r)}const i=await this.kit.invoke("billing.restore",void 0,{timeoutMs:6e4}),o=[];for(const r of i)o.push(...await this.validator.validate(r));return o}async entitlements(){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().entitlements():this.validator.entitlements()}async manageSubscriptions(){if(await this.kit.ready(),this.kit.is.web){const i=this.webProviderOrThrow();if(!i.manageSubscriptions)throw new St("UNSUPPORTED","This web billing provider has no subscription-management portal");return i.manageSubscriptions()}return this.kit.invoke("billing.manageSubscriptions")}onTransaction(i){return this.kit.on("billing.transaction",o=>i(o))}nativeEntitlements(){return this.kit.invoke("billing.entitlements")}}class Eb{constructor(i){this.kit=i}get capability(){return this.kit.capability("biometrics")}available(){return this.kit.invoke("biometrics.available")}authenticate(i){return this.kit.invoke("biometrics.authenticate",{reason:i},{timeoutMs:6e4})}}class xb{constructor(i){this.kit=i}get capability(){return this.kit.capability("browser")}open(i,o={}){return this.kit.invoke("browser.open",{url:i,...o})}}class Ab{constructor(i){this.kit=i}get capability(){return this.kit.capability("calendar")}createEvent(i){return this.kit.invoke("calendar.createEvent",i,{timeoutMs:12e4})}}class _b{constructor(i){this.kit=i}get capability(){return this.kit.capability("clipboard")}copy(i){return this.kit.invoke("clipboard.copy",{text:i})}read(){return this.kit.invoke("clipboard.read")}}class Tb{constructor(i){this.kit=i}get capability(){return this.kit.capability("contacts")}pick(){return this.kit.invoke("contacts.pick",void 0,{timeoutMs:12e4})}}class Mb{constructor(i){this.kit=i}get capability(){return this.kit.capability("device")}info(){return this.kit.invoke("device.info")}}class Db{constructor(i){this.kit=i}get capability(){return this.kit.capability("geo")}current(){return this.kit.invoke("geo.current",void 0,{timeoutMs:6e4})}async watch(i){const o=this.kit.on("geo.position",f=>i(f));try{await this.kit.invoke("geo.watch.start",void 0,{timeoutMs:6e4})}catch(f){throw o(),f}let r=!1;return()=>{r||(r=!0,o(),this.kit.invoke("geo.watch.stop").catch(f=>console.warn("[native-kit] geo.watch.stop failed",f)))}}}class Rb{constructor(i){this.kit=i}get capability(){return this.kit.capability("haptics")}impact(i="medium"){return this.kit.invoke("haptics.impact",{style:i})}notify(i){return this.kit.invoke("haptics.notify",{type:i})}}class Cb{constructor(i){this.kit=i}onPause(i){return this.kit.on("app.pause",()=>i())}onResume(i){return this.kit.on("app.resume",()=>i())}onDeepLink(i){return this.kit.on("deeplink.open",o=>i(o.url))}}class zb{constructor(i){this.kit=i}get capability(){return this.kit.capability("media")}get available(){var i;return typeof navigator<"u"&&!!((i=navigator.mediaDevices)!=null&&i.getUserMedia)}ensurePermission(i){return this.capability!=="native"?Promise.resolve({}):this.kit.invoke("media.ensurePermission",i)}async getUserMedia(i){if(!this.available)throw Object.assign(new Error("getUserMedia unavailable (insecure context?)"),{code:"UNSUPPORTED"});return await this.ensurePermission({audio:!!i.audio,video:!!i.video}).catch(()=>{}),navigator.mediaDevices.getUserMedia(i)}async devices(){var o;return(o=navigator.mediaDevices)!=null&&o.enumerateDevices?(await navigator.mediaDevices.enumerateDevices()).map(r=>({kind:r.kind,label:r.label,deviceId:r.deviceId})):[]}configureAudio(i="playback"){return this.capability!=="native"?Promise.resolve():this.kit.invoke("media.configureAudio",{mode:i})}stop(i){i==null||i.getTracks().forEach(o=>o.stop())}}class Ob{constructor(i){this.kit=i}get capability(){return this.kit.capability("motion")}async watch(i){const o=this.kit.on("motion.data",f=>i(f));try{await this.kit.invoke("motion.start")}catch(f){throw o(),f}let r=!1;return()=>{r||(r=!0,o(),this.kit.invoke("motion.stop").catch(f=>console.warn("[native-kit] motion.stop failed",f)))}}}class Nb{constructor(i){this.kit=i}get capability(){return this.kit.capability("network")}status(){return this.kit.invoke("network.status")}onChange(i){return this.kit.on("network.change",o=>i(o))}}class kb{constructor(i){this.kit=i}get capability(){return this.kit.capability("notifications")}requestPermission(){return this.kit.invoke("notifications.requestPermission",void 0,{timeoutMs:6e4})}schedule(i){return this.kit.invoke("notifications.schedule",i)}pending(){return this.kit.invoke("notifications.pending")}setBadge(i){return this.kit.invoke("notifications.setBadge",{count:i})}clear(){return this.kit.invoke("notifications.clear")}}class Ub{constructor(i){this.kit=i}get capability(){return this.kit.capability("photos")}get cameraCapability(){return this.kit.capability("camera")}pick(i){return this.kit.invoke("photos.pick",i,{timeoutMs:12e4})}capture(i){return this.kit.invoke("camera.capture",i,{timeoutMs:12e4})}}class jb{constructor(i){this.kit=i}get capability(){return this.kit.is.native?this.kit.capability("push"):"none"}requestPermission(){return this.kit.invoke("push.requestPermission",void 0,{timeoutMs:6e4})}register(){return this.kit.invoke("push.register",void 0,{timeoutMs:3e4})}unregister(){return this.kit.invoke("push.unregister")}onMessage(i){return this.kit.on("push.message",o=>i(o))}onTap(i){return this.kit.on("push.tap",o=>i(o))}}class Lb{constructor(i){this.kit=i}get capability(){return this.kit.capability("reviews")}requestReview(){return this.kit.invoke("reviews.requestReview")}}class Bb{constructor(i){this.orientation=new Hb(i)}}class Hb{constructor(i){this.kit=i}get capability(){return this.kit.capability("orientation")}lock(i){return this.kit.invoke("screen.orientation.lock",{orientation:i})}unlock(){return this.kit.invoke("screen.orientation.unlock")}current(){return this.kit.invoke("screen.orientation.current")}onChange(i){return this.kit.on("screen.orientation.change",o=>i(o))}}class qb{constructor(i){this.kit=i}get capability(){return this.kit.capability("share")}get filesCapability(){return this.kit.capability("shareFiles")}share(i){return this.kit.invoke("share.share",i)}files(i,o){return this.kit.invoke("share.files",{files:i,...o})}}class Yb{constructor(i){this.kit=i}get capability(){return this.kit.capability("secureStorage")}get(i){return this.kit.invoke("storage.secure.get",{key:i})}set(i,o){return this.kit.invoke("storage.secure.set",{key:i,value:o})}remove(i){return this.kit.invoke("storage.secure.remove",{key:i})}}class Vb{constructor(i){this.kit=i,this.secure=new Yb(i)}get capability(){return this.kit.capability("storage")}get(i){return this.kit.invoke("storage.get",{key:i})}set(i,o){return this.kit.invoke("storage.set",{key:i,value:o})}remove(i){return this.kit.invoke("storage.remove",{key:i})}clear(){return this.kit.invoke("storage.clear")}}class Gb{constructor(i){this.kit=i}get capability(){return this.kit.capability("toast")}show(i,o="short"){return this.kit.invoke("toast.show",{message:i,duration:o})}}function Xb(u){const i=u.trim().replace("#",""),o=i.length===3?i.split("").map(g=>g+g).join(""):i;if(o.length<6)return!1;const r=parseInt(o.slice(0,2),16),f=parseInt(o.slice(2,4),16),d=parseInt(o.slice(4,6),16);return(.299*r+.587*f+.114*d)/255>.6}class Qb{constructor(i){this.kit=i}get statusBarCapability(){return this.kit.capability("statusBar")}get screenCapability(){return this.kit.capability("screen")}get dialogsCapability(){return this.kit.capability("dialogs")}get themeColorCapability(){return this.kit.capability("themeColor")}setStatusBarStyle(i){return this.kit.invoke("ui.statusBar.setStyle",{style:i})}safeArea(){return this.kit.invoke("ui.safeArea")}getBrightness(){return this.kit.invoke("ui.brightness.get")}setBrightness(i){return this.kit.invoke("ui.brightness.set",{level:i})}keepAwake(i){return this.kit.invoke("ui.keepAwake",{on:i})}alert(i){return this.kit.invoke("ui.alert",i,{timeoutMs:12e4})}confirm(i){return this.kit.invoke("ui.confirm",i,{timeoutMs:12e4})}action(i){return this.kit.invoke("ui.action",i,{timeoutMs:12e4})}setBackgroundColor(i){return this.kit.invoke("ui.setBackgroundColor",{color:i})}syncThemeColor(){if(this.themeColorCapability!=="native")return()=>{};const i=()=>{const r=document.querySelector('meta[name="theme-color"]');r!=null&&r.content&&(this.setBackgroundColor(r.content).catch(f=>console.warn("[native-kit] setBackgroundColor failed",f)),this.setStatusBarStyle(Xb(r.content)?"dark":"light").catch(()=>{}))};i();const o=new MutationObserver(i);return o.observe(document.head,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["content"]}),()=>o.disconnect()}}class Zb{constructor(){this.adapters=[new pb,new vb],this.handshakeTimeoutMs=3e3}}class Kb{constructor(i){this.haptics=new Rb(this),this.share=new qb(this),this.screen=new Bb(this),this.storage=new Vb(this),this.toast=new Gb(this),this.ui=new Qb(this),this.device=new Mb(this),this.clipboard=new _b(this),this.notifications=new kb(this),this.push=new jb(this),this.biometrics=new Eb(this),this.geo=new Db(this),this.photos=new Ub(this),this.network=new Nb(this),this.lifecycle=new Cb(this),this.reviews=new Lb(this),this.motion=new Ob(this),this.media=new zb(this),this.contacts=new Tb(this),this.calendar=new Ab(this),this.app=new bb(this),this.browser=new xb(this),this.billing=new wb(this),this.handshakeInfo=null,this.adapter=null,this.readyPromise=null,this.options={...new Zb,...i}}ready(){return this.readyPromise||(this.readyPromise=(async()=>{const i=this.options.adapters.find(r=>r.detect());if(!i)throw new St("NOT_READY","No adapter detected this environment");this.adapter=i;const o=await i.handshake(this.options.handshakeTimeoutMs);if(o.protocol!==vm)throw new St("UNSUPPORTED",`Shell protocol v${o.protocol} ≠ kit protocol v${vm} — the native wrapper is out of date. Re-run \`appwrap init\` to regenerate it.`);return this.handshakeInfo=o,this.handshakeInfo})()),this.readyPromise}get is(){var i,o;return{native:((i=this.adapter)==null?void 0:i.kind)==="appwrap",web:((o=this.adapter)==null?void 0:o.kind)==="web"}}get platform(){var i;return((i=this.handshakeInfo)==null?void 0:i.platform)??"web"}capability(i){var o;return((o=this.handshakeInfo)==null?void 0:o.capabilities[i])??"none"}async invoke(i,o,r){return this.adapter||await this.ready(),this.adapter.invoke(i,o,r)}on(i,o){if(!this.adapter){let r=null,f=!1;return this.ready().then(()=>{f||(r=this.adapter.on(i,o))}).catch(()=>{}),()=>{f=!0,r==null||r()}}return this.adapter.on(i,o)}}const a0=new Kb,Jb=_n.forComponent("DeepLinks");function $b(u){try{const i=new URL(u);return i.protocol==="http:"||i.protocol==="https:"?`${i.pathname}${i.search}${i.hash}`||"/":`${i.hostname?`/${i.hostname}`:""}${i.pathname}${i.search}${i.hash}`||"/"}catch{return null}}function Pb(){const u=An();E.useEffect(()=>a0.lifecycle.onDeepLink(o=>{const r=$b(o);Jb.info("deep link",o,"→",r),r&&u(r)}),[u])}function n0(u){return u!=null&&u.topic?"topic":u!=null&&u.convId?"conversation":"info"}function Wb(u){switch(n0(u)){case"topic":return`/t/${encodeURIComponent(String(u.topic))}`;case"conversation":return`/chat/${String(u.convId)}`;default:return"/notifications"}}function GS(u){return n0(u)!=="info"}const Go=_n.forComponent("NativePushTap");let qu=null,Xu=null;function Fb(u){if(Xu){Xu(u);return}Go.debug("tap arrived before the router was ready — buffering",u),qu=u}function Ib(u){const i=(u==null?void 0:u.data)??{};return typeof i.route=="string"&&i.route.startsWith("/")?i.route:Wb({convId:typeof i.convId=="string"?i.convId:null,topic:typeof i.topic=="string"?i.topic:null})}a0.push.onTap(u=>{const i=Ib(u);Go.info("native push tap",{data:u==null?void 0:u.data,route:i}),Fb(i)});function t1(){const u=An();E.useEffect(()=>{if(Xu=i=>u(i),qu){const i=qu;qu=null,Go.info("draining buffered native push tap",i),u(i)}return()=>{Xu=null}},[u])}/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l0=(...u)=>u.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e1=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a1=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,r)=>r?r.toUpperCase():o.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bm=u=>{const i=a1(u);return i.charAt(0).toUpperCase()+i.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var n1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l1=u=>{for(const i in u)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i1=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:f="",children:d,iconNode:g,...b},y)=>E.createElement("svg",{ref:y,...n1,width:i,height:i,stroke:u,strokeWidth:r?Number(o)*24/Number(i):o,className:l0("lucide",f),...!d&&!l1(b)&&{"aria-hidden":"true"},...b},[...g.map(([m,T])=>E.createElement(m,T)),...Array.isArray(d)?d:[d]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const za=(u,i)=>{const o=E.forwardRef(({className:r,...f},d)=>E.createElement(i1,{ref:d,iconNode:i,className:l0(`lucide-${e1(bm(u))}`,`lucide-${u}`,r),...f}));return o.displayName=bm(u),o};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Sm=za("bell",u1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s1=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],r1=za("brain",s1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],c1=za("chevron-down",o1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],d1=za("download",f1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],m1=za("mail",h1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],g1=za("refresh-cw",p1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],v1=za("shield",y1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],S1=za("smartphone",b1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],i0=za("x",w1),Me=_n.forComponent("PWA");function So(u){if(Fm()){Me.debug("Baked native bundle — skipping deploy watch (reload cannot pull a newer build)");return}let i="0.81.22";We.on("_meta/buildId",o=>{const r=o.val(),f=r==null?void 0:r.version;!f||f===i||(Me.info("Deploy detected:",i,"→",f,r==null?void 0:r.sha),i=f,window.dispatchEvent(new Event("sw-update-available")),u&&u.update().catch(()=>{}))})}async function E1(){if(!("serviceWorker"in navigator))return So(null),null;try{const u=await navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"});So(u),u.addEventListener("updatefound",()=>{const r=u.installing;r&&r.addEventListener("statechange",()=>{r.state==="installed"&&navigator.serviceWorker.controller&&(Me.info("New version available"),window.dispatchEvent(new Event("sw-update-available")))})});const i=!!navigator.serviceWorker.controller;let o=!1;return navigator.serviceWorker.addEventListener("controllerchange",()=>{o||!i||(o=!0,window.location.reload())}),u}catch(u){return Me.error("Registration failed:",u),So(null),null}}function Do(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function u0(){return"BJbImCE9AHcqUcia8T2874gKINQDB4aPyNZgAg0fEuS5GrAgCOIuYeGbLGI5aBhPKmuG64SHDW-XtBJXE7B2-Xw"}const wm="push-device-id";let ju=null;function Pu(){if(ju)return ju;try{const i=localStorage.getItem(wm);if(i)return ju=i}catch(i){Me.warn("device id read failed, using a session-only id",i)}const u=`dev_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}`;ju=u;try{localStorage.setItem(wm,u)}catch(i){Me.warn("device id persist failed",i)}return u}async function x1(){return"Notification"in window?Notification.permission==="granted"?"granted":Notification.requestPermission():"denied"}async function s0(u,i){Me.debug("subscribeToPush called, key:",(u==null?void 0:u.slice(0,20))+"...");const o=await navigator.serviceWorker.ready;if(!o.pushManager)return Me.error("No pushManager on registration"),null;try{let r=await o.pushManager.getSubscription();if(Me.debug("existing subscription:",r?"yes":"none"),r&&(i!=null&&i.force)&&(await r.unsubscribe().catch(f=>(Me.warn("unsubscribe before resubscribe failed",f),!1)),r=null),!r){Me.debug("creating new subscription...");const f=A1(u);Me.debug("appServerKey length:",f.length),r=await o.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:f}),Me.debug("subscribed! endpoint:",r.endpoint.slice(0,60))}return{endpoint:r.endpoint,keys:{p256dh:Em(r.getKey("p256dh")),auth:Em(r.getKey("auth"))}}}catch(r){return Me.error("Push subscription failed:",r),null}}function A1(u){const i="=".repeat((4-u.length%4)%4),o=(u+i).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(o),f=new Uint8Array(r.length);for(let d=0;d<r.length;++d)f[d]=r.charCodeAt(d);return f}function Em(u){const i=new Uint8Array(u);let o="";for(let r=0;r<i.byteLength;r++)o+=String.fromCharCode(i[r]);return window.btoa(o)}function _1(){const{user:u}=Tn(),[i,o]=E.useState(null),[r,f]=E.useState(!1);E.useEffect(()=>{if(!u||Do()||localStorage.getItem("pwa-install-dismissed")==="true"||!localStorage.getItem("para-has-returned"))return;const m=N=>{N.preventDefault(),o(N),f(!0)};window.addEventListener("beforeinstallprompt",m);const T=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);let A;return T&&(A=setTimeout(()=>f(!0),5e3)),()=>{window.removeEventListener("beforeinstallprompt",m),clearTimeout(A)}},[u]);const d=async()=>{if(i)try{await i.prompt();const{outcome:m}=await i.userChoice;m==="accepted"&&f(!1),o(null)}catch{}},g=()=>{f(!1),localStorage.setItem("pwa-install-dismissed","true")};if(!u||!r||Do())return null;const b=/iPhone|iPad|iPod/i.test(navigator.userAgent),y=/Android/i.test(navigator.userAgent);return S.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[S.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:S.jsx(i0,{className:"w-4 h-4"})}),S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:S.jsx(S1,{className:"w-5 h-5 text-accent"})}),S.jsxs("div",{className:"flex-1 space-y-2",children:[S.jsx("h3",{className:"font-semibold text-micro",children:"Install Para"}),i?S.jsxs(S.Fragment,{children:[S.jsx("p",{className:"text-micro text-muted",children:"Add Para to your home screen for quick access."}),S.jsxs("button",{onClick:d,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors",children:[S.jsx(d1,{className:"w-4 h-4"}),"Install App"]})]}):b?S.jsxs("div",{className:"text-micro text-muted space-y-1",children:[S.jsx("p",{children:"To install on iOS:"}),S.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[S.jsx("li",{children:"Tap the Share button"}),S.jsx("li",{children:'Tap "Add to Home Screen"'}),S.jsx("li",{children:'Tap "Add"'})]})]}):y?S.jsxs("div",{className:"text-micro text-muted space-y-1",children:[S.jsx("p",{children:"To install on Android:"}),S.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[S.jsx("li",{children:"Tap the menu button (⋮)"}),S.jsx("li",{children:'Tap "Install app"'})]})]}):S.jsx("p",{className:"text-micro text-muted",children:"Visit on your mobile device to install."})]})]})]})}const T1=u=>`users/${u}/pushSubscriptions`,Xo=(u,i)=>`${T1(u)}/${i}`,M1=u=>`users/${u}/pushSubscription`;function D1(u){return!!u&&(u.type===void 0||u.type==="webpush")}function Yu(u){if(!D1(u))return!1;const i=o=>typeof o=="string"&&o.length>0;return i(u.endpoint)&&!!u.keys&&i(u.keys.p256dh)&&i(u.keys.auth)}function R1(u){return!!u&&u.type==="apns"}function XS(u){return R1(u)?typeof u.token=="string"&&u.token.length>=64&&/^[0-9a-f]+$/i.test(u.token):!1}function QS(u,i){return{type:"apns",token:u.token.toLowerCase(),...u.topic?{bundleId:u.topic}:{},updatedAt:Date.now(),...i!=null&&i.ua?{ua:i.ua}:{}}}function r0(u,i){return{type:"webpush",endpoint:u.endpoint,keys:{p256dh:u.keys.p256dh,auth:u.keys.auth},updatedAt:Date.now(),...i!=null&&i.ua?{ua:i.ua}:{}}}const Be=_n.forComponent("PushSync"),C1=3600*1e3,wo=u=>`push-sync-last-repair:${u}`,di=u=>`push-sync-had-record:${u}:${Pu()}`;function aa(u,i){try{if(u==="get")return localStorage.getItem(i);u==="set"?localStorage.setItem(i,"1"):localStorage.removeItem(i)}catch(o){Be.warn(`localStorage ${u} failed for ${i}`,o)}return null}const z1="push-prompt-dismissed",Qu=u=>`push-prompt-rearmed:${u}`;function o0(u){aa("del",z1),aa("del",Qu(u))}function O1(u){return aa("get",Qu(u))!==null?!1:(o0(u),aa("set",Qu(u)),Be.info("push is gone on both sides — re-arming the enable card once"),!0)}function c0(u){return aa("get",di(u))!==null}function xm(u){aa("del",Qu(u))}async function N1(u,i){const o=await Ro(u,Xo(i,Pu()));return o===void 0?null:Yu(o)}const Am=new Set;async function f0(u,i,o){const r=typeof navigator<"u"?navigator.userAgent.slice(0,120):void 0;await u.set(Xo(i,Pu()),r0(o,{ua:r})),aa("set",di(i))}async function Ro(u,i){try{return(await u.client.getSnapshot(i)).val()??null}catch(o){Be.warn("could not read stored subscription",o);return}}function ZS(u,i){E.useEffect(()=>{!i||Am.has(i)||!("Notification"in window)||!("PushManager"in window)||!("serviceWorker"in navigator)||Notification.permission==="granted"&&(Am.add(i),k1(u,i).catch(o=>Be.error("push sync failed",o)))},[i])}async function k1(u,i){var A,N;const r=(N=await((A=(await navigator.serviceWorker.ready).pushManager)==null?void 0:A.getSubscription()))==null?void 0:N.endpoint,f=Xo(i,Pu()),d=await Ro(u,f);if(d===void 0)return;if(d===null){const Q=await Ro(u,M1(i));if(Q===void 0)return;if(r&&Yu(Q)&&Q.endpoint===r){await u.set(f,r0(Q,{ua:navigator.userAgent.slice(0,120)})).then(()=>{aa("set",di(i)),Be.info("migrated legacy push subscription to a device record")}).catch(Z=>Be.error("legacy push subscription migration failed",Z));return}}if(Yu(d)&&d.endpoint===r){aa("set",di(i)),Be.debug("in sync, no write");return}if(!r&&d===null){Be.debug("no subscription on either side — nothing to reconcile");return}const g=Number(localStorage.getItem(wo(i))??0);if(Date.now()-g<C1){Be.warn("subscription drift, but a repair was attempted recently — skipping");return}localStorage.setItem(wo(i),String(Date.now()));const b=u0(),y=c0(i),m=d===null&&!!r&&y;Be.info("push subscription drift — reconciling",{browser:r?"present":"none",server:d===null?"missing":Yu(d)?"stale":"malformed",hadRecord:y,remint:m});const T=await s0(b,{force:m});if(!T){m&&(aa("del",di(i)),aa("del",wo(i)),o0(i)),Be.warn("resubscribe failed — left without a push subscription",{remint:m});return}await f0(u,i,T).then(()=>Be.info("push subscription repaired")).catch(Q=>Be.error("failed to store repaired subscription",Q))}const Ra=_n.forComponent("PushPrompt");function U1(){const{user:u}=Tn(),[i,o]=E.useState(!1),[r,f]=E.useState("pitch"),[d,g]=E.useState(!1);E.useEffect(()=>{if(!u||!("Notification"in window)||!("PushManager"in window)||!("serviceWorker"in navigator)||Notification.permission==="denied")return;const m=Do(),T=localStorage.getItem("push-prompt-dismissed")==="true";if(Notification.permission==="granted"){navigator.serviceWorker.ready.then(async N=>{if(await N.pushManager.getSubscription()){xm(u.id);return}const G=await N1(We,u.id)===!1,j=G&&c0(u.id);if(!(!m&&!j)){if(f(j?"recovery":"pitch"),!T){o(!0);return}G&&O1(u.id)&&o(!0)}}).catch(N=>Ra.warn("could not check push state",N));return}if(T||!m)return;const A=setTimeout(()=>o(!0),3e3);return()=>clearTimeout(A)},[u]);const b=async()=>{if(u){g(!0);try{Ra.debug("requesting permission...");const m=await x1();if(Ra.debug("permission:",m),m!=="granted"){o(!1),localStorage.setItem("push-prompt-dismissed","true");return}const T=u0();Ra.debug("VAPID key:",T?T.slice(0,20)+"...":"NOT SET"),Ra.debug("subscribing to push...");const A=await s0(T);if(Ra.debug("subscription:",A?"ok":"null"),!A)return;Ra.debug("saving subscription to DB..."),await f0(We,u.id,A),xm(u.id),Ra.debug("done!"),o(!1)}catch(m){Ra.error("failed:",m)}finally{g(!1)}}},y=()=>{o(!1),localStorage.setItem("push-prompt-dismissed","true")};return i?S.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[S.jsx("button",{onClick:y,className:"absolute top-2 right-2 text-muted hover:text-text",children:S.jsx(i0,{className:"w-4 h-4"})}),S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:S.jsx(Sm,{className:"w-5 h-5 text-accent"})}),S.jsxs("div",{className:"flex-1 space-y-2",children:[S.jsx("h3",{className:"font-semibold text-micro",children:r==="recovery"?"Notifications stopped working":"Enable Notifications"}),S.jsx("p",{className:"text-micro text-muted",children:r==="recovery"?"This device lost its connection to Para, so notifications are not arriving. Turn them back on to fix it.":"Get notified when Para replies, even when the app is in the background."}),S.jsxs("button",{onClick:b,disabled:d,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors disabled:opacity-50",children:[S.jsx(Sm,{className:"w-4 h-4"}),d?r==="recovery"?"Reconnecting...":"Enabling...":r==="recovery"?"Turn notifications back on":"Enable Notifications"]})]})]})]}):null}function j1(){const[u,i]=E.useState(!1);return E.useEffect(()=>{var r;const o=()=>i(!0);return window.addEventListener("sw-update-available",o),(r=navigator.serviceWorker)==null||r.getRegistration().then(f=>{f!=null&&f.waiting&&o()}),()=>window.removeEventListener("sw-update-available",o)},[]),u?S.jsx("div",{className:"fixed top-4 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(g1,{className:"w-5 h-5 text-accent shrink-0"}),S.jsx("p",{className:"text-micro flex-1",children:"A new version is available."}),S.jsx("button",{onClick:async()=>{var r;const o=await((r=navigator.serviceWorker)==null?void 0:r.getRegistration());o!=null&&o.waiting?o.waiting.postMessage({type:"SKIP_WAITING"}):window.location.reload()},className:"px-3 py-1.5 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors shrink-0",children:"Reload"})]})}):null}const _m=[{id:"A",headline:"Give out an email that fights back",subtitle:"Agent proxy email for busy founders"},{id:"B",headline:"Your inbox has a bouncer now",subtitle:"An AI that screens, qualifies, and replies for you"},{id:"C",headline:"Cold outreach is AI now. Your reply should be too.",subtitle:"Put an AI between you and your inbox"},{id:"D",headline:"Your AI finally has an email address",subtitle:"you@para.li — people email it, your Para handles the rest"},{id:"E",headline:"Never give out your real email again",subtitle:"you@para.li screens strangers so your inbox stays clean"}],L1=["para","paraai","parali","para_ai","para_li","bod","bodee","bodify","system","official","verified","staff","team","moderator","mod","assistant","bot","ai","me","you","self","everyone","everybody","anyone","someone","nobody","anon","anonymous","guest","user"],B1=["_domainkey","about","aboutus","abuse","access","account","accounts","activate","activities","activity","add","address","adm","admin","administration","administrator","ads","adstxt","adult","advertise","advertising","aes128ctr","aes128gcm","aes192ctr","aes256ctr","aes256gcm","affiliate","affiliates","ajax","alert","alerts","all","alpha","amp","analysis","analytics","android","anon","anonymous","api","app","appadstxt","apps","archive","archives","article","asc","asct","asset","assets","atom","auth","authentication","authorize","autoconfig","autodiscover","avatar","backup","balancermanager","banner","banners","bbs","beta","billing","billings","bin","blog","blogs","board","book","bookmark","bookmarks","bot","bots","broadcasthost","bug","business","buy","cache","cadastro","calendar","call","campaign","cancel","captcha","career","careers","cart","cas","categories","category","cdn","cgi","cgibin","chacha20poly1305","change","changelog","channel","channels","chart","chat","check","checking","checkout","clear","client","cliente","clients","close","cloud","cms","code","codereview","com","comercial","comment","comments","communities","community","company","compare","compose","compras","config","configuration","connect","contact","contact_us","contactus","contest","contribute","cookies","copy","copyright","corp","count","cpanel","create","crossdomainxml","css","curve25519sha256","customer","customers","customize","dashboard","data","deals","debug","default","delete","demo","desc","design","designer","destroy","dev","devel","developer","developers","diagram","diary","dict","dictionary","die","dir","direct_messages","directory","disconnect","discuss","dist","dns","dns0","dns1","dns2","dns3","dns4","doc","docs","documentation","domain","download","downloads","downvote","draft","drop","ecdhsha2nistp256","ecdhsha2nistp384","ecdhsha2nistp521","ecommerce","edit","editor","edu","education","email","employment","empty","end","enterprise","entries","entry","error","errors","eval","event","events","everyone","example","exception","exit","explore","export","extensions","false","family","faq","faqs","faviconico","favorite","favorites","feature","features","feed","feedback","feeds","file","files","filter","first","flash","fleet","fleets","flog","follow","follower","followers","following","fonts","forgot","forgotpassword","form","forms","forum","forums","founder","free","friend","friends","ftp","gadget","gadgets","game","games","get","ghost","gift","gifts","gist","git","graph","graphql","group","groups","guest","guests","guidelines","guides","head","header","help","hide","hmacsha","hmacsha1","hmacsha1etm","hmacsha2256","hmacsha2256etm","hmacsha2512","hmacsha2512etm","home","homepage","host","hosting","hostmaster","hostname","howto","hpg","htaccess","html","htpasswd","http","httpd","https","humanstxt","iamges","icon","icons","idea","ideas","image","images","imap","img","import","index","indice","info","information","inquiry","insert","intranet","investors","invitations","invite","invites","invoice","ipad","iphone","irc","isatap","issue","issues","item","items","java","javascript","job","jobs","join","json","jump","keybasetxt","knowledgebase","language","languages","last","ldapstatus","learn","legal","license","licensing","like","limit","link","links","linux","list","lists","live","load","local","localdomain","localhost","lock","log","log_in","log_out","login","logout","logs","lostpassword","mac","mail","mail0","mail1","mail2","mail3","mail4","mail5","mail6","mail7","mail8","mail9","mailer","mailerdaemon","mailing","maintenance","manager","manual","map","maps","marketing","marketplace","master","media","member","members","message","messages","messenger","metrics","microblog","microblogs","mine","mis","mob","mobile","moderator","modify","more","movie","movies","mp3","msg","msn","music","musicas","mx1","mysql","name","named","nan","navi","navigation","net","network","new","news","newsletter","newsletters","next","nick","nickname","nil","nobody","noc","none","noreply","notes","noticias","notification","notifications","notify","ns0","ns1","ns10","ns2","ns3","ns4","ns5","ns6","ns7","ns8","ns9","null","oauth","oauth2","oauth_clients","offer","offers","official","old","online","openid","operator","order","orders","organization","organizations","overview","owa","owner","owners","page","pager","pages","panel","partners","passwd","password","pay","payment","payments","perl","phone","photo","photoalbum","photos","php","phpmyadmin","phppgadmin","phpredisadmin","pic","pics","ping","pixel","plan","plans","plugin","plugins","policies","policy","pop","pop3","popular","portal","portfolio","post","postfix","postmaster","posts","poweruser","preferences","premium","press","previous","price","pricing","print","privacy","privacy_policy","privacypolicy","private","prod","product","production","products","profile","profiles","project","projects","promo","pub","public","purchase","purpose","put","python","query","quota","random","ranking","read","readme","recent","recruit","recruitment","redirect","reduce","refund","refunds","register","registration","release","remove","replies","reply","report","reports","repositories","repository","req","request","requestpassword","requests","reset","resetpassword","response","return","returns","review","reviews","robotstxt","roc","root","rootuser","rsasha22","rsasha2512","rss","ruby","rule","rules","sag","sale","sales","sample","samples","save","school","script","scripts","sdk","search","secure","security","select","self","send","server","serverinfo","serverstatus","service","services","session","sessions","setting","settings","setup","share","shift","shop","show","sign_in","sign_up","signin","signout","signup","site","sitemap","sites","smartphone","smtp","soporte","sort","source","spec","special","sql","src","ssh","sshrsa","ssl","ssladmin","ssladministrator","sslwebmaster","staff","stage","staging","start","stat","state","static","statistics","stats","status","store","stores","stories","style","styleguide","styles","stylesheet","stylesheets","subdomain","subscribe","subscriptions","sudo","super","superuser","suporte","support","survey","svn","swf","sync","sys","sysadmin","sysadministrator","system","tablet","tablets","tag","tags","talk","task","tasks","team","teams","tech","telnet","term","terms","terms_of_service","termsofservice","termsofuse","test","test1","test2","test3","teste","testimonials","testing","tests","theme","themes","thread","threads","tmp","today","todo","tool","tools","top","topic","topics","tos","tour","training","translate","translations","trending","trends","trial","true","tutorial","tux","umac128","umac128etm","umac64","umac64etm","undef","undefined","unfollow","unlike","unsubscribe","update","upgrade","upload","uploads","url","usage","usenet","user","username","users","usuario","uucp","var","vendas","ver","verify","version","video","videos","view","visitor","void","vote","vpn","watch","weather","web","webhook","webhooks","webmail","webmaster","website","websites","welcome","wellknown","widget","widgets","wiki","win","windows","word","work","works","workshop","wpad","write","wws","www","www1","www2","www3","www4","www5","www6","www7","wwwdata","wwws","wwww","xfn","xml","xmpp","xpg","xxx","yaml","year","yml","you","yourdomain","yourname","yoursite","yourusername","zlib0"],H1=["google","apple","microsoft","amazon","meta","facebook","instagram","whatsapp","messenger","threads","tiktok","twitter","youtube","snapchat","pinterest","reddit","discord","slack","zoom","linkedin","github","gitlab","bitbucket","dropbox","notion","figma","adobe","atlassian","jira","confluence","salesforce","oracle","ibm","intel","nvidia","amd","cisco","samsung","sony","lg","huawei","xiaomi","netflix","spotify","hulu","disney","disneyplus","hbo","hbomax","primevideo","twitch","vimeo","openai","chatgpt","anthropic","claude","gemini","bard","copilot","perplexity","mistral","deepmind","xai","grok","midjourney","stability","runway","huggingface","paypal","venmo","cashapp","stripe","square","wise","revolut","robinhood","coinbase","binance","kraken","bitcoin","ethereum","solana","tether","usdc","metamask","ledger","visa","mastercard","amex","americanexpress","chase","citibank","bankofamerica","wellsfargo","goldmansachs","jpmorgan","ebay","etsy","walmart","target","costco","bestbuy","ikea","homedepot","shopify","alibaba","aliexpress","wish","temu","shein","nike","adidas","puma","reebok","underarmour","lululemon","zara","hm","uniqlo","gucci","prada","louisvuitton","chanel","hermes","rolex","cocacola","pepsi","nestle","starbucks","mcdonalds","burgerking","kfc","subway","dominos","pizzahut","chipotle","tacobell","wendys","dunkin","redbull","heineken","budweiser","guinness","uber","lyft","doordash","grubhub","instacart","airbnb","booking","expedia","tripadvisor","kayak","tesla","spacex","boeing","airbus","toyota","ford","gm","chevrolet","bmw","mercedes","mercedesbenz","audi","volkswagen","porsche","honda","hyundai","kia","nissan","volvo","ferrari","lamborghini","verizon","att","tmobile","sprint","comcast","xfinity","spectrum","vodafone","orange","telefonica","cnn","bbc","nytimes","washingtonpost","wsj","reuters","ap","bloomberg","forbes","fortune","economist","wired","techcrunch","verge","arstechnica","engadget","foxnews","msnbc","aljazeera","gov","whitehouse","congress","senate","fbi","cia","nsa","dod","irs","usps","nasa","noaa","cdc","nih","fda","epa","sec","doj","dhs","ice","tsa","un","nato","who","imf","worldbank","europa","harvard","mit","stanford","yale","princeton","oxford","cambridge","berkeley","cmu","caltech","stackoverflow","npm","pypi","dockerhub","cloudflare","akamai","fastly","digitalocean","linode","heroku","vercel","netlify","render","fly","supabase","firebase","aws","gcp","azure"],q1=["afghanistan","albania","algeria","americansamoa","andorra","angola","anguilla","antarctica","antiguaandbarbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","bosniaandherzegovina","botswana","bouvetisland","brazil","britishvirginislands","brunei","bulgaria","burkinafaso","burundi","cambodia","cameroon","canada","capeverde","caribbeannetherlands","caymanislands","chad","chile","china","christmasisland","cocoskeelingislands","colombia","comoros","cookislands","costarica","croatia","cuba","curaao","cyprus","czechia","czechrepublic","denmark","djibouti","dominica","dominicanrepublic","drcongo","ecuador","egypt","elsalvador","england","equatorialguinea","eritrea","estonia","eswatini","ethiopia","falklandislands","faroeislands","fiji","finland","france","frenchguiana","frenchpolynesia","gabon","gambia","georgia","germany","ghana","gibraltar","greatbritain","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guineabissau","guyana","haiti","holland","honduras","hongkong","hungary","iceland","india","indonesia","iran","iraq","ireland","isleofman","israel","italy","ivorycoast","jamaica","japan","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","landislands","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshallislands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","newcaledonia","newzealand","nicaragua","niger","nigeria","niue","norfolkisland","northernireland","northkorea","northmacedonia","norway","oman","pakistan","palau","palestine","panama","papuanewguinea","paraguay","peru","philippines","pitcairnislands","poland","portugal","puertorico","qatar","republicofthecongo","romania","runion","russia","rwanda","saintbarthlemy","saintkittsandnevis","saintlucia","saintmartin","samoa","sanmarino","saudiarabia","scotland","senegal","serbia","seychelles","sierraleone","singapore","sintmaarten","slovakia","slovenia","solomonislands","somalia","sotomandprncipe","southafrica","southgeorgia","southkorea","southsudan","spain","srilanka","sudan","suriname","svalbardandjanmayen","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timorleste","togo","tokelau","tonga","trinidadandtobago","tunisia","turkey","turkiye","turkmenistan","tuvalu","uganda","ukraine","unitedarabemirates","unitedkingdom","unitedstates","uruguay","uzbekistan","vanuatu","vaticancity","venezuela","vietnam","wales","wallisandfutuna","westernsahara","yemen","zambia","zimbabwe","usa","u_s_a","u_s","america","uk","u_k","britain","uae","u_a_e","ussr","eu","nato","asean","european_union","statesofamerica"],Y1=["liv","livshitz","elya"],V1=new Set([...L1,...B1,...H1,...q1,...Y1]);function G1(u){return u.toLowerCase().replace(/\./g,"")}function X1(u){return V1.has(G1(u))}function Q1({variant:u,ctaLabel:i="Claim your handle"}){const o=An(),[r,f]=E.useState(""),[d,g]=E.useState(""),[b,y]=E.useState("idle"),[m,T]=E.useState(""),[A,N]=E.useState(!1),Q=E.useRef(null),Z=E.useRef({handle:!1,email:!1}),G=E.useCallback(k=>{Z.current[k]||(Z.current[k]=!0,pt.event(`lp_${k}_focus`,{variant:u}))},[u]),j=k=>{const p=k.toLowerCase().replace(/[^a-z0-9_.]/g,"");f(p);const $=p.replace(/\./g,"");if(Q.current&&clearTimeout(Q.current),!$){y("idle");return}if(!/^[a-z0-9_]{3,20}$/.test($)){y("invalid");return}if(X1($)){y("reserved");return}y("checking"),Q.current=setTimeout(async()=>{try{const tt=await We.get(`_handle_avail/${$}`)?"taken":"available";tt==="taken"&&pt.event("lp_handle_taken",{handle:$,variant:u}),y(tt)}catch{y("available")}},400)},O=async k=>{if(k.preventDefault(),!(b!=="available"||!d)){T(""),N(!0),pt.event("lp_claim_attempt",{handle:r,variant:u}),pt.metric("lp_claim_attempt",1,{variant:u});try{pt.leads.collect({email:d,name:r,source:`lp-${u}`,meta:{handle:r,variant:u}}).catch(()=>{});const p=r.replace(/\./g,""),$=`claim_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,6)}`;await We.set(`_handle_claims/${$}`,{handle:p,email:d,variant:u,ts:Date.now()}),o(`/claiming/${p}?claim=${$}`)}catch(p){pt.event("lp_claim_error",{handle:r,variant:u,error:p.message}),T(p.message??"Failed to claim handle")}finally{N(!1)}}};return S.jsxs("form",{onSubmit:O,className:"space-y-4",children:[S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center bg-bg border border-border rounded-lg overflow-hidden focus-within:border-accent",children:[S.jsx("input",{type:"text",placeholder:"yourname",value:r,onChange:k=>j(k.target.value),onFocus:()=>G("handle"),maxLength:20,autoFocus:!0,className:"flex-1 px-3 py-3 bg-transparent text-text text-body text-right focus:outline-none"}),S.jsx("span",{className:"pr-3 text-muted text-body",children:"@para.li"})]}),S.jsxs("div",{className:"h-5 mt-1 text-micro text-left pl-1",children:[b==="checking"&&S.jsx("span",{className:"text-muted",children:"Checking..."}),b==="available"&&S.jsxs("span",{className:"text-green-400",children:["@",r," is yours"]}),b==="taken"&&S.jsxs("span",{className:"text-danger",children:["@",r," is taken"]}),b==="reserved"&&S.jsxs("span",{className:"text-danger",children:["@",r," is reserved"]}),b==="invalid"&&r&&S.jsx("span",{className:"text-danger",children:"3-20 chars: letters, numbers, underscore"})]})]}),S.jsx("input",{type:"email",inputMode:"email",placeholder:"Your email",value:d,onChange:k=>g(k.target.value),onFocus:()=>G("email"),required:!0,autoComplete:"email",className:"w-full px-3 py-3 bg-bg border border-border rounded-lg text-text text-body focus:outline-none focus:border-accent"}),S.jsx("button",{type:"submit",disabled:b!=="available"||!d||A,className:"w-full py-3 bg-accent hover:bg-accent-hover text-bg font-semibold rounded-lg text-body transition-colors disabled:opacity-40",children:A?"Claiming...":i}),m&&S.jsx("p",{className:"text-danger text-micro text-center",children:m})]})}function Z1(){const u=e0("lp-variant"),i=(u==null?void 0:u.toUpperCase())??"A",o=_m.find(r=>r.id===i)??_m[0];return E.useEffect(()=>{pt.event("lp_view",{variant:o.id}),pt.metric("lp_load_ms",performance.now(),{unit:"ms",variant:o.id})},[o.id]),S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:"relative min-h-screen flex items-center justify-center px-4",children:[S.jsxs("div",{className:"relative z-10 text-center space-y-8 w-full max-w-md",children:[S.jsxs("div",{className:"space-y-3",children:[S.jsx("h1",{className:"text-hero font-bold text-text tracking-tight text-balance",children:o.headline}),S.jsx("p",{className:"text-body text-muted",children:o.subtitle})]}),S.jsx(Q1,{variant:o.id})]}),S.jsx(Yo,{to:"/chat-auth",onClick:()=>pt.event("lp_signin_click",{variant:o.id}),className:"absolute bottom-14 left-1/2 -translate-x-1/2 text-micro text-muted hover:text-text no-underline",children:"Already have an account? Sign in"}),S.jsx("button",{onClick:()=>{var r;pt.event("lp_scroll_how",{variant:o.id}),(r=document.getElementById("how-it-works"))==null||r.scrollIntoView({behavior:"smooth"})},className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-muted/50 hover:text-muted animate-bounce","aria-label":"Scroll down",children:S.jsx(c1,{size:20})}),!1]}),S.jsx("section",{id:"how-it-works",className:"relative py-24 px-4 bg-surface/80 backdrop-blur-sm border-t border-border",children:S.jsxs("div",{className:"max-w-3xl mx-auto",children:[S.jsx("p",{className:"text-micro font-medium text-accent text-center tracking-widest uppercase mb-3",children:"How it works"}),S.jsx("h2",{className:"text-title font-bold text-text text-center mb-16",children:"Three steps. No setup."}),S.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10 sm:gap-6",children:K1.map((r,f)=>S.jsxs("div",{className:"relative bg-bg rounded-xl border border-border p-6 text-center space-y-4",children:[S.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 w-7 h-7 rounded-full bg-accent text-bg text-micro font-bold flex items-center justify-center",children:f+1}),S.jsx("div",{className:"w-12 h-12 mx-auto rounded-lg bg-accent/10 flex items-center justify-center mt-2",children:S.jsx(r.icon,{size:24,className:"text-accent"})}),S.jsx("h3",{className:"text-body font-semibold text-text",children:r.title}),S.jsx("p",{className:"text-body text-text-secondary",children:r.desc})]},r.title))})]})})]})}const K1=[{icon:m1,title:"Claim your handle",desc:"Pick your @para.li email. It's yours — forever."},{icon:r1,title:"Your AI learns your style",desc:"Reply once and your Para picks up your tone, priorities, and boundaries."},{icon:v1,title:"It handles the rest",desc:"Para screens strangers, replies on your behalf, and only pings you when it matters."}],J1=Rt(()=>Mt(()=>import("./Auth-BYxqau68.js"),__vite__mapDeps([0,1])).then(u=>({default:u.ChatAuthPage}))),$1=Rt(()=>Mt(()=>import("./Onboard-2HWkTc5j.js"),__vite__mapDeps([2,0,1,3,4,5])).then(u=>({default:u.OnboardPage}))),P1=Rt(()=>Mt(()=>import("./Creating-ChrDC1PP.js"),[]).then(u=>({default:u.CreatingPage}))),W1=Rt(()=>Mt(()=>import("./MainLayout-B49jaYdI.js"),__vite__mapDeps([6,7,8,9,10,11,12,13])).then(u=>({default:u.MainLayout}))),F1=Rt(()=>Mt(()=>import("./ChatList-CBsU_7oT.js"),__vite__mapDeps([14,7,11,15])).then(u=>({default:u.ChatList}))),I1=Rt(()=>Mt(()=>import("./EmailP2PChatView-O-dnRHMW.js"),__vite__mapDeps([16,17,7,18,19,20,1,21,22,23,24])).then(u=>({default:u.EmailP2PChatView}))),tS=Rt(()=>Mt(()=>import("./Discover-uUjSCeza.js"),__vite__mapDeps([25,26,20,15,27,11,21])).then(u=>({default:u.DiscoverView}))),eS=Rt(()=>Mt(()=>import("./Inbox-Mz9QEMO7.js"),__vite__mapDeps([28,18,19,12,29])).then(u=>({default:u.InboxListView}))),aS=Rt(()=>Mt(()=>import("./InboxDetail-BwbPRSje.js"),__vite__mapDeps([30,18,19,1,29,5,31,21,24,22])).then(u=>({default:u.InboxDetailView}))),nS=Rt(()=>Mt(()=>import("./TopicDetail-BaETh_lY.js"),__vite__mapDeps([32,26,17,4,27,33])).then(u=>({default:u.TopicDetailView}))),lS=Rt(()=>Mt(()=>import("./Notifications-Da5rIdFX.js"),__vite__mapDeps([34,17,27,11,5])).then(u=>({default:u.NotificationsView}))),iS=Rt(()=>Mt(()=>import("./Settings-K9zlN7bO.js"),__vite__mapDeps([35,36,7,20])).then(u=>({default:u.SettingsView}))),uS=Rt(()=>Mt(()=>import("./NotificationTest-BWTgdRH0.js"),__vite__mapDeps([37,8,1,24,21,31])).then(u=>({default:u.NotificationTestPage}))),sS=Rt(()=>Mt(()=>import("./Share-CYUQJvQI.js"),[]).then(u=>({default:u.SharePage}))),rS=Rt(()=>Mt(()=>import("./Claiming-DRiIZ1Sx.js"),__vite__mapDeps([38,19])).then(u=>({default:u.ClaimingPage}))),oS=Rt(()=>Mt(()=>import("./Signin-DUWOp3jS.js"),__vite__mapDeps([39,19])).then(u=>({default:u.SigninPage}))),cS=Rt(()=>Mt(()=>import("./Demo-C--ZKTSK.js"),__vite__mapDeps([40,41,42,43,44,21,45,36])).then(u=>({default:u.DemoPage}))),fS=Rt(()=>Mt(()=>import("./DemoOnboarding-DZxeYsOA.js"),__vite__mapDeps([46,42,43,47,44,21,1])).then(u=>({default:u.DemoOnboardingPage}))),dS=Rt(()=>Mt(()=>import("./DemoBlankOnboarding-5CQg0ZKt.js"),__vite__mapDeps([48,42,43,47,44,21,1,33,3])).then(u=>({default:u.DemoBlankOnboardingPage}))),hS=Rt(()=>Mt(()=>import("./JobChannel-BsGD6Rlq.js"),__vite__mapDeps([49,50,51,7,17,19,1,3,23,11,24,52,53,54])).then(u=>({default:u.JobChannel}))),mS=Rt(()=>Mt(()=>import("./JobChannel-BsGD6Rlq.js"),__vite__mapDeps([49,50,51,7,17,19,1,3,23,11,24,52,53,54])).then(u=>({default:u.JobLauncher}))),pS=Rt(()=>Mt(()=>import("./AdminTrace-DgpIHcU4.js"),__vite__mapDeps([55,11,1,5])).then(u=>({default:u.AdminTraceView}))),gS=Rt(()=>Mt(()=>import("./AdminReports-BIpVQi5F.js"),__vite__mapDeps([56,13])).then(u=>({default:u.AdminReportsView}))),yS=Rt(()=>Mt(()=>import("./InChatFunnel-Yjmhs_Eq.js"),__vite__mapDeps([57,41,42,43,44,21,58,50,51,7,17,19,1,3,23,11,24,52,10,36,45,53,54])).then(u=>({default:u.InChatFunnelPage}))),vS=Rt(()=>Mt(()=>import("./ConversationChannel-Dyz_ULIj.js"),__vite__mapDeps([51,7,17,50,19,1,3,23,11,24])).then(u=>({default:u.ConversationChannel}))),bS=Rt(()=>Mt(()=>import("./Baby-Dkryp5R2.js"),__vite__mapDeps([59,54])).then(u=>({default:u.BabyPage}))),SS=Rt(()=>Mt(()=>import("./BabyIntake-DDjuKGsB.js"),__vite__mapDeps([60,41,42,43,44,21,58,50,10,36,45,53,54])).then(u=>({default:u.BabyIntakePage}))),wS=Rt(()=>Mt(()=>import("./BabyQuiz-DQ1qstoq.js"),__vite__mapDeps([61,42,43,58,50,53,9,10,36,45,54])).then(u=>({default:u.BabyQuizPage}))),ES=Rt(()=>Mt(()=>import("./Legal-BZr4m0uG.js"),[]).then(u=>({default:u.PrivacyPage}))),xS=Rt(()=>Mt(()=>import("./Legal-BZr4m0uG.js"),[]).then(u=>({default:u.TermsPage}))),AS=Rt(()=>Mt(()=>import("./Legal-BZr4m0uG.js"),[]).then(u=>({default:u.DataDeletionPage})));function _S(){const{conversationId:u}=Cy(),{user:i}=Tn(),o=An();return u!=null&&u.startsWith("conv_sleep_")?$u()?S.jsx(xn,{to:"/chat",replace:!0}):S.jsx(hS,{convId:u}):i&&(u!=null&&u.startsWith(`conv_${i.id}_`))&&!u.slice(`conv_${i.id}_`.length).includes("_")?S.jsx(TS,{convId:u,onBack:()=>o("/chat")}):S.jsx(I1,{})}function TS({convId:u,onBack:i}){var d;const{user:o}=Tn(),{data:r}=Zv(We,o?`users/${o.id}/profile`:""),f=(d=r==null?void 0:r.name)==null?void 0:d.trim();return S.jsx(vS,{convId:u,title:"Para",subtitle:"your Para",ownerName:f||"Your",openSubtitle:f?`${f}'s Para`:"Your Para",enableVoice:!0,focusUid:o==null?void 0:o.id,onBack:i})}function Eo({children:u}){const{user:i,pendingVerification:o,loading:r}=Tn();return r?S.jsx(Qo,{}):o||!i?S.jsx(xn,{to:"/chat-auth",replace:!0}):S.jsx(S.Fragment,{children:u})}function xo({children:u}){return e0("sleep-consumer-funnel")===!1?S.jsx(xn,{to:"/",replace:!0}):S.jsx(S.Fragment,{children:u})}function oi({children:u}){return $u()?S.jsx(xn,{to:"/",replace:!0}):S.jsx(S.Fragment,{children:u})}function Qo(){return S.jsxs("div",{id:"boot-splash",children:[S.jsx("div",{className:"bs-brand",children:"Para"}),S.jsx("div",{className:"bs-spin"})]})}function MS(){const{loading:u}=Tn();return E.useEffect(()=>{u||Hv()},[u]),null}function DS(){const{user:u,loading:i}=Tn();return i?S.jsx(Qo,{}):u?S.jsx(xn,{to:"/chat",replace:!0}):$u()?S.jsx(xn,{to:"/chat-auth",replace:!0}):S.jsx(Z1,{})}function RS(){return Pb(),t1(),S.jsxs(S.Fragment,{children:[S.jsx(j1,{}),S.jsx(_1,{}),S.jsx(U1,{}),S.jsx(Jv,{children:S.jsxs(E.Suspense,{fallback:S.jsx(Qo,{}),children:[S.jsxs(Zy,{children:[S.jsxs(At,{element:S.jsx(mb,{}),children:[S.jsx(At,{index:!0,element:S.jsx(DS,{})}),S.jsx(At,{path:"/claiming/:handle",element:S.jsx(rS,{})}),S.jsx(At,{path:"/signin",element:S.jsx(oS,{})}),S.jsx(At,{path:"/chat-auth",element:S.jsx(J1,{})}),S.jsx(At,{path:"/onboard",element:S.jsx($1,{})}),S.jsx(At,{path:"/chat/:handle/:jobId",element:S.jsx(oi,{children:S.jsx(yS,{})})}),S.jsx(At,{path:"/baby",element:S.jsx(oi,{children:S.jsx(xo,{children:S.jsx(bS,{})})})}),S.jsx(At,{path:"/baby/intake",element:S.jsx(oi,{children:S.jsx(xo,{children:S.jsx(SS,{})})})}),S.jsx(At,{path:"/baby/quiz",element:S.jsx(oi,{children:S.jsx(xo,{children:S.jsx(wS,{})})})}),S.jsx(At,{path:"/privacy",element:S.jsx(ES,{})}),S.jsx(At,{path:"/terms",element:S.jsx(xS,{})}),S.jsx(At,{path:"/data-deletion",element:S.jsx(AS,{})})]}),S.jsx(At,{path:"/share",element:S.jsx(Eo,{children:S.jsx(sS,{})})}),S.jsx(At,{path:"/onboard/creating",element:S.jsx(Eo,{children:S.jsx(P1,{})})}),S.jsxs(At,{element:S.jsx(Eo,{children:S.jsx(W1,{})}),children:[S.jsx(At,{path:"/chat",element:S.jsx(F1,{})}),S.jsx(At,{path:"/chat/:conversationId",element:S.jsx(_S,{})}),S.jsx(At,{path:"/job/:jobId",element:S.jsx(oi,{children:S.jsx(mS,{})})}),S.jsx(At,{path:"/discover",element:S.jsx(tS,{})}),S.jsx(At,{path:"/inbox",element:S.jsx(eS,{})}),S.jsx(At,{path:"/inbox/:emailId",element:S.jsx(aS,{})}),S.jsx(At,{path:"/t/:topic",element:S.jsx(nS,{})}),S.jsx(At,{path:"/notifications",element:S.jsx(lS,{})}),S.jsx(At,{path:"/settings",element:S.jsx(iS,{})}),S.jsx(At,{path:"/settings/notifications",element:S.jsx(uS,{})}),S.jsx(At,{path:"/admin/trace",element:S.jsx(pS,{})}),S.jsx(At,{path:"/admin/reports",element:S.jsx(gS,{})})]}),S.jsx(At,{path:"/demo-chat-kit",element:S.jsx(cS,{})}),S.jsx(At,{path:"/demo-onboarding",element:S.jsx(fS,{})}),S.jsx(At,{path:"/demo-onboarding-blank",element:S.jsx(dS,{})}),S.jsx(At,{path:"*",element:S.jsx(xn,{to:"/",replace:!0})})]}),S.jsx(MS,{})]})})]})}const Co="para_attribution",CS=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","fbclid","ttclid","gclid"];function KS(){try{const u=localStorage.getItem(Co);if(u){const r=JSON.parse(u);return Tm(r),r}const i=new URLSearchParams(window.location.search),o={};for(const r of CS){const f=i.get(r);f&&(o[r]=f.slice(0,120))}return o.landing=window.location.pathname,o.landed_at=Date.now(),localStorage.setItem(Co,JSON.stringify(o)),Tm(o),o}catch{return{}}}function Tm(u){try{pt.analytics.register(u)}catch{}}function zS(){try{const u=localStorage.getItem(Co);if(u)return JSON.parse(u)}catch{}return{}}let zo="init",Mm=!1;const Dm=new Set;function JS(u){zo=u}function $S(u,i={}){ci(u,{kind:"stall",...i})}function OS(){try{if(window.matchMedia("(pointer: coarse)").matches||navigator.maxTouchPoints>0)return"mobile"}catch{}return"desktop"}function Rm(u){var i;if(u instanceof Error){const o=(i=u.stack)==null?void 0:i.split(`
`).map(r=>r.trim()).find(r=>r.startsWith("at "));return{name:u.name,message:u.message||u.name||"Error",frame:o==null?void 0:o.slice(0,160)}}if(typeof u=="string")return{message:u};if(u&&typeof u=="object"){const o=u,r=typeof o.message=="string"?o.message:(()=>{try{return JSON.stringify(o).slice(0,200)}catch{return String(u)}})();return{name:typeof o.name=="string"?o.name:void 0,message:r}}return{message:String(u)}}function ci(u,i={}){try{const o=window.location.pathname,r=`${o}|${zo}|${i.name??""}|${u}|${i.at??""}`.slice(0,240);if(Dm.has(r))return;Dm.add(r),pt.event("client_error",{msg:String(u).slice(0,300),route:o,step:zo,device:OS(),...i,...zS()})}catch{}}function NS(){Mm||typeof window>"u"||(Mm=!0,window.addEventListener("error",u=>{var r;if(!u.error&&u.target&&u.target!==window){const f=u.target,d=f.src||f.href||"";if(d){ci(`resource load failed: ${d}`.slice(0,200),{kind:"resource",name:(r=f.tagName)==null?void 0:r.toLowerCase(),src:d.slice(0,160)});return}}if(!u.error&&(!u.message||u.message==="Script error.")){ci("Script error (cross-origin — detail blocked; add crossorigin+CORS to see it)",{kind:"cross-origin",src:(u.filename||"").slice(0,160)});return}const i=Rm(u.error??u.message),o=u.filename?`${u.filename.split("/").pop()}:${u.lineno??0}:${u.colno??0}`:void 0;ci(i.message,{kind:"error",name:i.name,at:o,frame:i.frame,src:(u.filename||"").slice(0,160)})},!0),window.addEventListener("unhandledrejection",u=>{const i=u.reason;if((i==null?void 0:i.name)==="AbortError")return;const o=Rm(i);ci(o.message,{kind:"rejection",name:o.name,frame:o.frame})}))}const Lu=()=>{},kS={debug:Lu,info:Lu,warn:Lu,error:Lu};let fi=kS;function US(u){fi=u}const PS={debug:(...u)=>fi.debug(...u),info:(...u)=>fi.info(...u),warn:(...u)=>fi.warn(...u),error:(...u)=>fi.error(...u)};NS();US(_n.forComponent("Pgsl"));window.addEventListener("vite:preloadError",u=>{const i="chunk-reload-at";let o=0;try{o=Number(sessionStorage.getItem(i)??0)}catch{}if(!(Date.now()-o<3e4)){u.preventDefault();try{sessionStorage.setItem(i,String(Date.now()))}catch{}window.location.reload()}});E1();"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",u=>{var i,o;((i=u.data)==null?void 0:i.type)==="NAVIGATE"&&u.data.url&&(window.location.href=u.data.url),((o=u.data)==null?void 0:o.type)==="MARK_READ"&&u.data.nid&&Mt(async()=>{const{client:r}=await Promise.resolve().then(()=>jv);return{client:r}},void 0).then(({client:r})=>{const f=localStorage.getItem("bodify_auth_token");if(f)try{const g=JSON.parse(atob(f.split(".")[1])).sub;if(!g)return;r.get(`users/${g}/notifications/${u.data.nid}`).then(b=>{b&&!b.read&&r.set(`users/${g}/notifications/${u.data.nid}`,{...b,read:!0})})}catch{}})});Xg.createRoot(document.getElementById("root")).render(S.jsx(E.StrictMode,{children:S.jsx(yv,{children:S.jsx(Gv,{children:S.jsx(qv,{children:S.jsx(RS,{})})})})}));export{s0 as A,pt as B,c1 as C,f0 as D,u0 as E,QS as F,XS as G,kS as H,v1 as I,zS as J,KS as K,Yo as L,m1 as M,xn as N,Xy as O,JS as P,$S as Q,g1 as R,S1 as S,qS as T,Yg as U,PS as V,BS as W,i0 as X,Mt as _,An as a,VS as b,za as c,We as d,e0 as e,Zv as f,YS as g,HS as h,$u as i,S as j,ZS as k,Sm as l,vv as m,_n as n,Cy as o,LS as p,n0 as q,E as r,GS as s,Wb as t,Tn as u,Xv as v,a0 as w,Xo as x,Pu as y,Do as z};