const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-Ym3-J4kv.js","assets/arrow-left-BK77bEV_.js","assets/Onboard-D78ZBRTM.js","assets/sparkles-DvEYWBnB.js","assets/chevron-left-Bzybo1Sk.js","assets/chevron-right-D6OIVcme.js","assets/MainLayout-CP878H3U.js","assets/hooks-BUkk_pTb.js","assets/conv-DEM1T9zy.js","assets/message-square-Zxf1AfxL.js","assets/inbox-ypsoJg77.js","assets/ChatList-Cl6N9oIr.js","assets/moon-CecWlzuq.js","assets/ChatView-TOhMp0Qp.js","assets/useVoiceSession-D2Xp970r.js","assets/utils-ByjjaO5W.js","assets/arrow-down-CLjmmigi.js","assets/loader-circle-C3wHMPZS.js","assets/pencil-DkLxrz6L.js","assets/send-CYiRuvy-.js","assets/check-BQoAFQLD.js","assets/Discover-CRWsJEB-.js","assets/useTopics-Begsm1wr.js","assets/radio-CEiBj_Ul.js","assets/Inbox-p2SQnKH2.js","assets/OverflowMenu-DwuM5P7-.js","assets/InboxDetail-DgvkWDI1.js","assets/circle-x-CGTxJnGe.js","assets/TopicDetail-DSFjJ5Zb.js","assets/Notifications-CIkvjuT3.js","assets/Settings-D7WcciSp.js","assets/email-BWje3GSO.js","assets/NotificationTest-oEnYp_hI.js","assets/Claiming-CI_YuuY4.js","assets/Signin-B0yk7iXo.js","assets/Demo-FwwND-Ay.js","assets/ChatKit-C0FluugO.js","assets/pgsl-driver-CCJPKxDN.js","assets/TypingLoader-deHBDDll.js","assets/pgsl-llm-callbacks-RHbK7kvN.js","assets/DemoOnboarding-B4ya9h1l.js","assets/DemoOnboarding-DWhtEAT3.css","assets/JobChannel-CkinpDDt.js","assets/PlanCard-DESBaW6H.js","assets/ConversationChannel-Dl7uXbXm.js","assets/BeckyAvatar-BSUaVJKJ.js","assets/sleep-intake-CP99XX76.js","assets/use-warm-theme-R73T5YPD.js","assets/AdminTrace-B21DFg8i.js","assets/InChatFunnel-CqUecNGA.js","assets/intake-sleep-VhqKU7tw.js","assets/meta-pixel-oND_FF6D.js","assets/Baby-C6XOLo-e.js","assets/BabyIntake-Body5rCl.js","assets/BabyQuiz-D0GQpVyI.js"])))=>i.map(i=>d[i]);
var ag=Object.defineProperty;var ng=(s,i,c)=>i in s?ag(s,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[i]=c;var Dh=(s,i,c)=>ng(s,typeof i!="symbol"?i+"":i,c);(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 c(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=c(f);fetch(f.href,d)}})();const lg="modulepreload",ig=function(s){return"/"+s},Rh={},Dt=function(i,c,r){let f=Promise.resolve();if(c&&c.length>0){let g=function(p){return Promise.all(p.map(R=>Promise.resolve(R).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(c.map(p=>{if(p=ig(p),p in Rh)return;Rh[p]=!0;const R=p.endsWith(".css"),A=R?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${A}`))return;const q=document.createElement("link");if(q.rel=R?"stylesheet":lg,R||(q.as="script"),q.crossOrigin="",q.href=p,y&&q.setAttribute("nonce",y),document.head.appendChild(q),R)return new Promise((W,P)=>{q.addEventListener("load",W),q.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${p}`)))})}))}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 Wr={exports:{}},ni={};/**
 * @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 Ch;function ug(){if(Ch)return ni;Ch=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(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:s,type:r,key:g,ref:f!==void 0?f:null,props:d}}return ni.Fragment=i,ni.jsx=c,ni.jsxs=c,ni}var zh;function sg(){return zh||(zh=1,Wr.exports=ug()),Wr.exports}var w=sg(),Pr={exports:{}},ot={};/**
 * @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 Oh;function rg(){if(Oh)return ot;Oh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=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"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),q=Symbol.iterator;function W(E){return E===null||typeof E!="object"?null:(E=q&&E[q]||E["@@iterator"],typeof E=="function"?E:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,j={};function O(E,H,Q){this.props=E,this.context=H,this.refs=j,this.updater=Q||P}O.prototype.isReactComponent={},O.prototype.setState=function(E,H){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,H,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function N(){}N.prototype=O.prototype;function m(E,H,Q){this.props=E,this.context=H,this.refs=j,this.updater=Q||P}var J=m.prototype=new N;J.constructor=m,Z(J,O.prototype),J.isPureReactComponent=!0;var G=Array.isArray;function tt(){}var X={H:null,A:null,T:null,S:null},Et=Object.prototype.hasOwnProperty;function Qt(E,H,Q){var I=Q.ref;return{$$typeof:s,type:E,key:H,ref:I!==void 0?I:null,props:Q}}function re(E,H){return Qt(E.type,H,E.props)}function le(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function Ut(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Q){return H[Q]})}var ve=/\/+/g;function pe(E,H){return typeof E=="object"&&E!==null&&E.key!=null?Ut(""+E.key):H.toString(36)}function Ht(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(tt,tt):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function U(E,H,Q,I,ct){var ht=typeof E;(ht==="undefined"||ht==="boolean")&&(E=null);var V=!1;if(E===null)V=!0;else switch(ht){case"bigint":case"string":case"number":V=!0;break;case"object":switch(E.$$typeof){case s:case i:V=!0;break;case R:return V=E._init,U(V(E._payload),H,Q,I,ct)}}if(V)return ct=ct(E),V=I===""?"."+pe(E,0):I,G(ct)?(Q="",V!=null&&(Q=V.replace(ve,"$&/")+"/"),U(ct,H,Q,"",function(st){return st})):ct!=null&&(le(ct)&&(ct=re(ct,Q+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(ve,"$&/")+"/")+V)),H.push(ct)),1;V=0;var Y=I===""?".":I+":";if(G(E))for(var $=0;$<E.length;$++)I=E[$],ht=Y+pe(I,$),V+=U(I,H,Q,ht,ct);else if($=W(E),typeof $=="function")for(E=$.call(E),$=0;!(I=E.next()).done;)I=I.value,ht=Y+pe(I,$++),V+=U(I,H,Q,ht,ct);else if(ht==="object"){if(typeof E.then=="function")return U(Ht(E),H,Q,I,ct);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return V}function T(E,H,Q){if(E==null)return E;var I=[],ct=0;return U(E,I,"","",function(ht){return H.call(Q,ht,ct++)}),I}function K(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(Q){(E._status===0||E._status===-1)&&(E._status=1,E._result=Q)},function(Q){(E._status===0||E._status===-1)&&(E._status=2,E._result=Q)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var rt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},nt={map:T,forEach:function(E,H,Q){T(E,function(){H.apply(this,arguments)},Q)},count:function(E){var H=0;return T(E,function(){H++}),H},toArray:function(E){return T(E,function(H){return H})||[]},only:function(E){if(!le(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ot.Activity=A,ot.Children=nt,ot.Component=O,ot.Fragment=c,ot.Profiler=f,ot.PureComponent=m,ot.StrictMode=r,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ot.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},ot.cache=function(E){return function(){return E.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(E,H,Q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var I=Z({},E.props),ct=E.key;if(H!=null)for(ht in H.key!==void 0&&(ct=""+H.key),H)!Et.call(H,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&H.ref===void 0||(I[ht]=H[ht]);var ht=arguments.length-2;if(ht===1)I.children=Q;else if(1<ht){for(var V=Array(ht),Y=0;Y<ht;Y++)V[Y]=arguments[Y+2];I.children=V}return Qt(E.type,ct,I)},ot.createContext=function(E){return E={$$typeof:g,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ot.createElement=function(E,H,Q){var I,ct={},ht=null;if(H!=null)for(I in H.key!==void 0&&(ht=""+H.key),H)Et.call(H,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ct[I]=H[I]);var V=arguments.length-2;if(V===1)ct.children=Q;else if(1<V){for(var Y=Array(V),$=0;$<V;$++)Y[$]=arguments[$+2];ct.children=Y}if(E&&E.defaultProps)for(I in V=E.defaultProps,V)ct[I]===void 0&&(ct[I]=V[I]);return Qt(E,ht,ct)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(E){return{$$typeof:b,render:E}},ot.isValidElement=le,ot.lazy=function(E){return{$$typeof:R,_payload:{_status:-1,_result:E},_init:K}},ot.memo=function(E,H){return{$$typeof:p,type:E,compare:H===void 0?null:H}},ot.startTransition=function(E){var H=X.T,Q={};X.T=Q;try{var I=E(),ct=X.S;ct!==null&&ct(Q,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(tt,rt)}catch(ht){rt(ht)}finally{H!==null&&Q.types!==null&&(H.types=Q.types),X.T=H}},ot.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ot.use=function(E){return X.H.use(E)},ot.useActionState=function(E,H,Q){return X.H.useActionState(E,H,Q)},ot.useCallback=function(E,H){return X.H.useCallback(E,H)},ot.useContext=function(E){return X.H.useContext(E)},ot.useDebugValue=function(){},ot.useDeferredValue=function(E,H){return X.H.useDeferredValue(E,H)},ot.useEffect=function(E,H){return X.H.useEffect(E,H)},ot.useEffectEvent=function(E){return X.H.useEffectEvent(E)},ot.useId=function(){return X.H.useId()},ot.useImperativeHandle=function(E,H,Q){return X.H.useImperativeHandle(E,H,Q)},ot.useInsertionEffect=function(E,H){return X.H.useInsertionEffect(E,H)},ot.useLayoutEffect=function(E,H){return X.H.useLayoutEffect(E,H)},ot.useMemo=function(E,H){return X.H.useMemo(E,H)},ot.useOptimistic=function(E,H){return X.H.useOptimistic(E,H)},ot.useReducer=function(E,H,Q){return X.H.useReducer(E,H,Q)},ot.useRef=function(E){return X.H.useRef(E)},ot.useState=function(E){return X.H.useState(E)},ot.useSyncExternalStore=function(E,H,Q){return X.H.useSyncExternalStore(E,H,Q)},ot.useTransition=function(){return X.H.useTransition()},ot.version="19.2.7",ot}var Nh;function pc(){return Nh||(Nh=1,Pr.exports=rg()),Pr.exports}var x=pc(),Fr={exports:{}},li={},Ir={exports:{}},tc={};/**
 * @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 Uh;function cg(){return Uh||(Uh=1,(function(s){function i(U,T){var K=U.length;U.push(T);t:for(;0<K;){var rt=K-1>>>1,nt=U[rt];if(0<f(nt,T))U[rt]=T,U[K]=nt,K=rt;else break t}}function c(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var T=U[0],K=U.pop();if(K!==T){U[0]=K;t:for(var rt=0,nt=U.length,E=nt>>>1;rt<E;){var H=2*(rt+1)-1,Q=U[H],I=H+1,ct=U[I];if(0>f(Q,K))I<nt&&0>f(ct,Q)?(U[rt]=ct,U[I]=K,rt=I):(U[rt]=Q,U[H]=K,rt=H);else if(I<nt&&0>f(ct,K))U[rt]=ct,U[I]=K,rt=I;else break t}}return T}function f(U,T){var K=U.sortIndex-T.sortIndex;return K!==0?K:U.id-T.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var g=Date,b=g.now();s.unstable_now=function(){return g.now()-b}}var y=[],p=[],R=1,A=null,q=3,W=!1,P=!1,Z=!1,j=!1,O=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function J(U){for(var T=c(p);T!==null;){if(T.callback===null)r(p);else if(T.startTime<=U)r(p),T.sortIndex=T.expirationTime,i(y,T);else break;T=c(p)}}function G(U){if(Z=!1,J(U),!P)if(c(y)!==null)P=!0,tt||(tt=!0,Ut());else{var T=c(p);T!==null&&Ht(G,T.startTime-U)}}var tt=!1,X=-1,Et=5,Qt=-1;function re(){return j?!0:!(s.unstable_now()-Qt<Et)}function le(){if(j=!1,tt){var U=s.unstable_now();Qt=U;var T=!0;try{t:{P=!1,Z&&(Z=!1,N(X),X=-1),W=!0;var K=q;try{e:{for(J(U),A=c(y);A!==null&&!(A.expirationTime>U&&re());){var rt=A.callback;if(typeof rt=="function"){A.callback=null,q=A.priorityLevel;var nt=rt(A.expirationTime<=U);if(U=s.unstable_now(),typeof nt=="function"){A.callback=nt,J(U),T=!0;break e}A===c(y)&&r(y),J(U)}else r(y);A=c(y)}if(A!==null)T=!0;else{var E=c(p);E!==null&&Ht(G,E.startTime-U),T=!1}}break t}finally{A=null,q=K,W=!1}T=void 0}}finally{T?Ut():tt=!1}}}var Ut;if(typeof m=="function")Ut=function(){m(le)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,pe=ve.port2;ve.port1.onmessage=le,Ut=function(){pe.postMessage(null)}}else Ut=function(){O(le,0)};function Ht(U,T){X=O(function(){U(s.unstable_now())},T)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(U){U.callback=null},s.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},s.unstable_getCurrentPriorityLevel=function(){return q},s.unstable_next=function(U){switch(q){case 1:case 2:case 3:var T=3;break;default:T=q}var K=q;q=T;try{return U()}finally{q=K}},s.unstable_requestPaint=function(){j=!0},s.unstable_runWithPriority=function(U,T){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var K=q;q=U;try{return T()}finally{q=K}},s.unstable_scheduleCallback=function(U,T,K){var rt=s.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?rt+K:rt):K=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=K+nt,U={id:R++,callback:T,priorityLevel:U,startTime:K,expirationTime:nt,sortIndex:-1},K>rt?(U.sortIndex=K,i(p,U),c(y)===null&&U===c(p)&&(Z?(N(X),X=-1):Z=!0,Ht(G,K-rt))):(U.sortIndex=nt,i(y,U),P||W||(P=!0,tt||(tt=!0,Ut()))),U},s.unstable_shouldYield=re,s.unstable_wrapCallback=function(U){var T=q;return function(){var K=q;q=T;try{return U.apply(this,arguments)}finally{q=K}}}})(tc)),tc}var kh;function og(){return kh||(kh=1,Ir.exports=cg()),Ir.exports}var ec={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 jh;function fg(){if(jh)return me;jh=1;var s=pc();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)p+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,p,R){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:A==null?null:""+A,children:y,containerInfo:p,implementation:R}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(y,p){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(y,p,null,R)},me.flushSync=function(y){var p=g.T,R=r.p;try{if(g.T=null,r.p=2,y)return y()}finally{g.T=p,r.p=R,r.d.f()}},me.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(y,p))},me.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},me.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var R=p.as,A=b(R,p.crossOrigin),q=typeof p.integrity=="string"?p.integrity:void 0,W=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;R==="style"?r.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:q,fetchPriority:W}):R==="script"&&r.d.X(y,{crossOrigin:A,integrity:q,fetchPriority:W,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},me.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var R=b(p.as,p.crossOrigin);r.d.M(y,{crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(y)},me.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var R=p.as,A=b(R,p.crossOrigin);r.d.L(y,R,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},me.preloadModule=function(y,p){if(typeof y=="string")if(p){var R=b(p.as,p.crossOrigin);r.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:R,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(y)},me.requestFormReset=function(y){r.d.r(y)},me.unstable_batchedUpdates=function(y,p){return y(p)},me.useFormState=function(y,p,R){return g.H.useFormState(y,p,R)},me.useFormStatus=function(){return g.H.useHostTransitionStatus()},me.version="19.2.7",me}var Lh;function dg(){if(Lh)return ec.exports;Lh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),ec.exports=fg(),ec.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 Bh;function hg(){if(Bh)return li;Bh=1;var s=og(),i=pc(),c=dg();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 p(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 u=l.alternate;if(u===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===a)return y(l),t;if(u===n)return y(l),e;u=u.sibling}throw Error(r(188))}if(a.return!==n.return)a=l,n=u;else{for(var o=!1,h=l.child;h;){if(h===a){o=!0,a=l,n=u;break}if(h===n){o=!0,n=l,a=u;break}h=h.sibling}if(!o){for(h=u.child;h;){if(h===a){o=!0,a=u,n=l;break}if(h===n){o=!0,n=u,a=l;break}h=h.sibling}if(!o)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 R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var A=Object.assign,q=Symbol.for("react.element"),W=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),m=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),X=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 Ut(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 Z:return"Fragment";case O:return"Profiler";case j:return"StrictMode";case G:return"Suspense";case tt:return"SuspenseList";case Qt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case P:return"Portal";case m:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case X: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,T=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},rt=[],nt=-1;function E(t){return{current:t}}function H(t){0>nt||(t.current=rt[nt],rt[nt]=null,nt--)}function Q(t,e){nt++,rt[nt]=t.current,t.current=e}var I=E(null),ct=E(null),ht=E(null),V=E(null);function Y(t,e){switch(Q(ht,e),Q(ct,t),Q(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Pd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Pd(e),t=Fd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(I),Q(I,t)}function $(){H(I),H(ct),H(ht)}function st(t){t.memoizedState!==null&&Q(V,t);var e=I.current,a=Fd(e,t.type);e!==a&&(Q(ct,t),Q(I,a))}function lt(t){ct.current===t&&(H(I),H(ct)),V.current===t&&(H(V),Il._currentValue=K)}var ut,Rt;function mt(t){if(ut===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ut=e&&e[1]||"",Rt=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ut+t+Rt}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 B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(z){var C=z}Reflect.construct(t,[],B)}else{try{B.call()}catch(z){C=z}t.call(B.prototype)}}else{try{throw Error()}catch(z){C=z}(B=t())&&typeof B.catch=="function"&&B.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 u=n.DetermineComponentFrameRoot(),o=u[0],h=u[1];if(o&&h){var v=o.split(`
`),D=h.split(`
`);for(l=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;if(n===v.length||l===D.length)for(n=v.length-1,l=D.length-1;1<=n&&0<=l&&v[n]!==D[l];)l--;for(;1<=n&&0<=l;n--,l--)if(v[n]!==D[l]){if(n!==1||l!==1)do if(n--,l--,0>l||v[n]!==D[l]){var k=`
`+v[n].replace(" at new "," at ");return t.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",t.displayName)),k}while(1<=n&&0<=l);break}}}finally{xt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?mt(a):""}function Ct(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 Jt(t){try{var e="",a=null;do e+=Ct(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,Kt=s.unstable_scheduleCallback,Me=s.unstable_cancelCallback,ge=s.unstable_shouldYield,ie=s.unstable_requestPaint,qt=s.unstable_now,aa=s.unstable_getCurrentPriorityLevel,na=s.unstable_ImmediatePriority,Dc=s.unstable_UserBlockingPriority,di=s.unstable_NormalPriority,Lm=s.unstable_LowPriority,Rc=s.unstable_IdlePriority,Bm=s.log,Hm=s.unstable_setDisableYieldValue,fl=null,De=null;function Ra(t){if(typeof Bm=="function"&&Hm(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(fl,t)}catch{}}var Re=Math.clz32?Math.clz32:Vm,qm=Math.log,Ym=Math.LN2;function Vm(t){return t>>>=0,t===0?32:31-(qm(t)/Ym|0)|0}var hi=256,mi=262144,pi=4194304;function an(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 gi(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var l=0,u=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?l=an(n):(o&=h,o!==0?l=an(o):a||(a=h&~t,a!==0&&(l=an(a))))):(h=n&~u,h!==0?l=an(h):o!==0?l=an(o):a||(a=n&~t,a!==0&&(l=an(a)))),l===0?0:e!==0&&e!==l&&(e&u)===0&&(u=l&-l,a=e&-e,u>=a||u===32&&(a&4194048)!==0)?e:l}function dl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gm(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 Cc(){var t=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),t}function Bu(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function hl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xm(t,e,a,n,l,u){var o=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,D=t.hiddenUpdates;for(a=o&~a;0<a;){var k=31-Re(a),B=1<<k;h[k]=0,v[k]=-1;var C=D[k];if(C!==null)for(D[k]=null,k=0;k<C.length;k++){var z=C[k];z!==null&&(z.lane&=-536870913)}a&=~B}n!==0&&zc(t,n,0),u!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=u&~(o&~e))}function zc(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Re(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Oc(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-Re(a),l=1<<n;l&e|t[n]&e&&(t[n]|=e),a&=~l}}function Nc(t,e){var a=e&-e;return a=(a&42)!==0?1:Hu(a),(a&(t.suspendedLanes|e))!==0?0:a}function Hu(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 qu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Uc(){var t=T.p;return t!==0?t:(t=window.event,t===void 0?32:wh(t.type))}function kc(t,e){var a=T.p;try{return T.p=t,e()}finally{T.p=a}}var Ca=Math.random().toString(36).slice(2),ce="__reactFiber$"+Ca,Se="__reactProps$"+Ca,En="__reactContainer$"+Ca,Yu="__reactEvents$"+Ca,Qm="__reactListeners$"+Ca,Zm="__reactHandles$"+Ca,jc="__reactResources$"+Ca,ml="__reactMarker$"+Ca;function Vu(t){delete t[ce],delete t[Se],delete t[Yu],delete t[Qm],delete t[Zm]}function xn(t){var e=t[ce];if(e)return e;for(var a=t.parentNode;a;){if(e=a[En]||a[ce]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=ih(t);t!==null;){if(a=t[ce])return a;t=ih(t)}return e}t=a,a=t.parentNode}return null}function An(t){if(t=t[ce]||t[En]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function pl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function _n(t){var e=t[jc];return e||(e=t[jc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[ml]=!0}var Lc=new Set,Bc={};function nn(t,e){Tn(t,e),Tn(t+"Capture",e)}function Tn(t,e){for(Bc[t]=e,t=0;t<e.length;t++)Lc.add(e[t])}var Jm=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]*$"),Hc={},qc={};function Km(t){return be.call(qc,t)?!0:be.call(Hc,t)?!1:Jm.test(t)?qc[t]=!0:(Hc[t]=!0,!1)}function yi(t,e,a){if(Km(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 vi(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 ca(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 Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Yc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $m(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,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gu(t){if(!t._valueTracker){var e=Yc(t)?"checked":"value";t._valueTracker=$m(t,e,""+t[e])}}function Vc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=Yc(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function bi(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 Wm=/[\n"\\]/g;function He(t){return t.replace(Wm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Xu(t,e,a,n,l,u,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Qu(t,o,Be(e)):a!=null?Qu(t,o,Be(a)):n!=null&&t.removeAttribute("value"),l==null&&u!=null&&(t.defaultChecked=!!u),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Be(h):t.removeAttribute("name")}function Gc(t,e,a,n,l,u,o,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Gu(t);return}a=a!=null?""+Be(a):"",e=e!=null?""+Be(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,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Gu(t)}function Qu(t,e,a){e==="number"&&bi(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Mn(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=""+Be(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 Xc(t,e,a){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Be(a):""}function Qc(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=Be(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),Gu(t)}function Dn(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Pm=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 Zc(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||Pm.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function Jc(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&&Zc(t,l,n)}else for(var u in e)e.hasOwnProperty(u)&&Zc(t,u,e[u])}function Zu(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 Fm=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"]]),Im=/^[\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 Si(t){return Im.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function oa(){}var Ju=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rn=null,Cn=null;function Kc(t){var e=An(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Xu(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="'+He(""+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));Xu(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&&Vc(n)}break t;case"textarea":Xc(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Mn(t,!!a.multiple,e,!1)}}}var $u=!1;function $c(t,e,a){if($u)return t(e,a);$u=!0;try{var n=t(e);return n}finally{if($u=!1,(Rn!==null||Cn!==null)&&(su(),Rn&&(e=Rn,t=Cn,Cn=Rn=null,Kc(e),t)))for(e=0;e<t.length;e++)Kc(t[e])}}function gl(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 fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(fa)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{Wu=!1}var za=null,Pu=null,wi=null;function Wc(){if(wi)return wi;var t,e=Pu,a=e.length,n,l="value"in za?za.value:za.textContent,u=l.length;for(t=0;t<a&&e[t]===l[t];t++);var o=a-t;for(n=1;n<=o&&e[a-n]===l[u-n];n++);return wi=l.slice(t,1<n?1-n:void 0)}function Ei(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 xi(){return!0}function Pc(){return!1}function we(t){function e(a,n,l,u,o){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(a=t[h],this[h]=a?a(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?xi: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=xi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),e}var ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=we(ln),vl=A({},ln,{view:0,detail:0}),t0=we(vl),Fu,Iu,bl,_i=A({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:es,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!==bl&&(bl&&t.type==="mousemove"?(Fu=t.screenX-bl.screenX,Iu=t.screenY-bl.screenY):Iu=Fu=0,bl=t),Fu)},movementY:function(t){return"movementY"in t?t.movementY:Iu}}),Fc=we(_i),e0=A({},_i,{dataTransfer:0}),a0=we(e0),n0=A({},vl,{relatedTarget:0}),ts=we(n0),l0=A({},ln,{animationName:0,elapsedTime:0,pseudoElement:0}),i0=we(l0),u0=A({},ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),s0=we(u0),r0=A({},ln,{data:0}),Ic=we(r0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o0={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"},f0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=f0[t])?!!e[t]:!1}function es(){return d0}var h0=A({},vl,{key:function(t){if(t.key){var e=c0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ei(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?o0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:es,charCode:function(t){return t.type==="keypress"?Ei(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ei(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),m0=we(h0),p0=A({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=we(p0),g0=A({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:es}),y0=we(g0),v0=A({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),b0=we(v0),S0=A({},_i,{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}),w0=we(S0),E0=A({},ln,{newState:0,oldState:0}),x0=we(E0),A0=[9,13,27,32],as=fa&&"CompositionEvent"in window,Sl=null;fa&&"documentMode"in document&&(Sl=document.documentMode);var _0=fa&&"TextEvent"in window&&!Sl,eo=fa&&(!as||Sl&&8<Sl&&11>=Sl),ao=" ",no=!1;function lo(t,e){switch(t){case"keyup":return A0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function io(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zn=!1;function T0(t,e){switch(t){case"compositionend":return io(e);case"keypress":return e.which!==32?null:(no=!0,ao);case"textInput":return t=e.data,t===ao&&no?null:t;default:return null}}function M0(t,e){if(zn)return t==="compositionend"||!as&&lo(t,e)?(t=Wc(),wi=Pu=za=null,zn=!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 eo&&e.locale!=="ko"?null:e.data;default:return null}}var D0={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 uo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!D0[t.type]:e==="textarea"}function so(t,e,a,n){Rn?Cn?Cn.push(n):Cn=[n]:Rn=n,e=mu(e,"onChange"),0<e.length&&(a=new Ai("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var wl=null,El=null;function R0(t){Qd(t,0)}function Ti(t){var e=pl(t);if(Vc(e))return t}function ro(t,e){if(t==="change")return e}var co=!1;if(fa){var ns;if(fa){var ls="oninput"in document;if(!ls){var oo=document.createElement("div");oo.setAttribute("oninput","return;"),ls=typeof oo.oninput=="function"}ns=ls}else ns=!1;co=ns&&(!document.documentMode||9<document.documentMode)}function fo(){wl&&(wl.detachEvent("onpropertychange",ho),El=wl=null)}function ho(t){if(t.propertyName==="value"&&Ti(El)){var e=[];so(e,El,t,Ku(t)),$c(R0,e)}}function C0(t,e,a){t==="focusin"?(fo(),wl=e,El=a,wl.attachEvent("onpropertychange",ho)):t==="focusout"&&fo()}function z0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ti(El)}function O0(t,e){if(t==="click")return Ti(e)}function N0(t,e){if(t==="input"||t==="change")return Ti(e)}function U0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:U0;function xl(t,e){if(Ce(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)||!Ce(t[l],e[l]))return!1}return!0}function mo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function po(t,e){var a=mo(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=mo(a)}}function go(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?go(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function yo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=bi(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=bi(t.document)}return e}function is(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 k0=fa&&"documentMode"in document&&11>=document.documentMode,On=null,us=null,Al=null,ss=!1;function vo(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ss||On==null||On!==bi(n)||(n=On,"selectionStart"in n&&is(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}),Al&&xl(Al,n)||(Al=n,n=mu(us,"onSelect"),0<n.length&&(e=new Ai("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=On)))}function un(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Nn={animationend:un("Animation","AnimationEnd"),animationiteration:un("Animation","AnimationIteration"),animationstart:un("Animation","AnimationStart"),transitionrun:un("Transition","TransitionRun"),transitionstart:un("Transition","TransitionStart"),transitioncancel:un("Transition","TransitionCancel"),transitionend:un("Transition","TransitionEnd")},rs={},bo={};fa&&(bo=document.createElement("div").style,"AnimationEvent"in window||(delete Nn.animationend.animation,delete Nn.animationiteration.animation,delete Nn.animationstart.animation),"TransitionEvent"in window||delete Nn.transitionend.transition);function sn(t){if(rs[t])return rs[t];if(!Nn[t])return t;var e=Nn[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in bo)return rs[t]=e[a];return t}var So=sn("animationend"),wo=sn("animationiteration"),Eo=sn("animationstart"),j0=sn("transitionrun"),L0=sn("transitionstart"),B0=sn("transitioncancel"),xo=sn("transitionend"),Ao=new Map,cs="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(" ");cs.push("scrollEnd");function We(t,e){Ao.set(t,e),nn(e,[t])}var Mi=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)},qe=[],Un=0,os=0;function Di(){for(var t=Un,e=os=Un=0;e<t;){var a=qe[e];qe[e++]=null;var n=qe[e];qe[e++]=null;var l=qe[e];qe[e++]=null;var u=qe[e];if(qe[e++]=null,n!==null&&l!==null){var o=n.pending;o===null?l.next=l:(l.next=o.next,o.next=l),n.pending=l}u!==0&&_o(a,l,u)}}function Ri(t,e,a,n){qe[Un++]=t,qe[Un++]=e,qe[Un++]=a,qe[Un++]=n,os|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function fs(t,e,a,n){return Ri(t,e,a,n),Ci(t)}function rn(t,e){return Ri(t,null,null,e),Ci(t)}function _o(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var l=!1,u=t.return;u!==null;)u.childLanes|=a,n=u.alternate,n!==null&&(n.childLanes|=a),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(l=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,l&&e!==null&&(l=31-Re(a),t=u.hiddenUpdates,n=t[l],n===null?t[l]=[e]:n.push(e),e.lane=a|536870912),u):null}function Ci(t){if(50<Zl)throw Zl=0,Sr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var kn={};function H0(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 ze(t,e,a,n){return new H0(t,e,a,n)}function ds(t){return t=t.prototype,!(!t||!t.isReactComponent)}function da(t,e){var a=t.alternate;return a===null?(a=ze(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 To(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 zi(t,e,a,n,l,u){var o=0;if(n=t,typeof t=="function")ds(t)&&(o=1);else if(typeof t=="string")o=Xp(t,a,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Qt:return t=ze(31,a,e,l),t.elementType=Qt,t.lanes=u,t;case Z:return cn(a.children,l,u,e);case j:o=8,l|=24;break;case O:return t=ze(12,a,e,l|2),t.elementType=O,t.lanes=u,t;case G:return t=ze(13,a,e,l),t.elementType=G,t.lanes=u,t;case tt:return t=ze(19,a,e,l),t.elementType=tt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case m:o=10;break t;case N:o=9;break t;case J:o=11;break t;case X:o=14;break t;case Et:o=16,n=null;break t}o=29,a=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=ze(o,a,e,l),e.elementType=t,e.type=n,e.lanes=u,e}function cn(t,e,a,n){return t=ze(7,t,n,e),t.lanes=a,t}function hs(t,e,a){return t=ze(6,t,null,e),t.lanes=a,t}function Mo(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function ms(t,e,a){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Do=new WeakMap;function Ye(t,e){if(typeof t=="object"&&t!==null){var a=Do.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Jt(e)},Do.set(t,e),e)}return{value:t,source:e,stack:Jt(e)}}var jn=[],Ln=0,Oi=null,_l=0,Ve=[],Ge=0,Oa=null,la=1,ia="";function ha(t,e){jn[Ln++]=_l,jn[Ln++]=Oi,Oi=t,_l=e}function Ro(t,e,a){Ve[Ge++]=la,Ve[Ge++]=ia,Ve[Ge++]=Oa,Oa=t;var n=la;t=ia;var l=32-Re(n)-1;n&=~(1<<l),a+=1;var u=32-Re(e)+l;if(30<u){var o=l-l%5;u=(n&(1<<o)-1).toString(32),n>>=o,l-=o,la=1<<32-Re(e)+l|a<<l|n,ia=u+t}else la=1<<u|a<<l|n,ia=t}function ps(t){t.return!==null&&(ha(t,1),Ro(t,1,0))}function gs(t){for(;t===Oi;)Oi=jn[--Ln],jn[Ln]=null,_l=jn[--Ln],jn[Ln]=null;for(;t===Oa;)Oa=Ve[--Ge],Ve[Ge]=null,ia=Ve[--Ge],Ve[Ge]=null,la=Ve[--Ge],Ve[Ge]=null}function Co(t,e){Ve[Ge++]=la,Ve[Ge++]=ia,Ve[Ge++]=Oa,la=e.id,ia=e.overflow,Oa=t}var oe=null,Yt=null,wt=!1,Na=null,Xe=!1,ys=Error(r(519));function Ua(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Ye(e,t)),ys}function zo(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[ce]=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<Kl.length;a++)yt(Kl[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),Gc(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),Qc(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||$d(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=oa),e=!0):e=!1,e||Ua(t,!0)}function Oo(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:oe=oe.return}}function Bn(t){if(t!==oe)return!1;if(!wt)return Oo(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")||kr(t.type,t.memoizedProps)),a=!a),a&&Yt&&Ua(t),Oo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=lh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=lh(t)}else e===27?(e=Yt,Ka(t.type)?(t=qr,qr=null,Yt=t):Yt=e):Yt=oe?Ze(t.stateNode.nextSibling):null;return!0}function on(){Yt=oe=null,wt=!1}function vs(){var t=Na;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Na=null),t}function Tl(t){Na===null?Na=[t]:Na.push(t)}var bs=E(null),fn=null,ma=null;function ka(t,e,a){Q(bs,e._currentValue),e._currentValue=a}function pa(t){t._currentValue=bs.current,H(bs)}function Ss(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 ws(t,e,a,n){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){var o=l.child;u=u.firstContext;t:for(;u!==null;){var h=u;u=l;for(var v=0;v<e.length;v++)if(h.context===e[v]){u.lanes|=a,h=u.alternate,h!==null&&(h.lanes|=a),Ss(u.return,a,t),n||(o=null);break t}u=h.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(r(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Ss(o,a,t),o=null}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function Hn(t,e,a,n){t=null;for(var l=e,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var h=l.type;Ce(l.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(l===V.current){if(o=l.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Il):t=[Il])}l=l.return}t!==null&&ws(e,t,a,n),e.flags|=262144}function Ni(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function dn(t){fn=t,ma=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return No(fn,t)}function Ui(t,e){return fn===null&&dn(t),No(t,e)}function No(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ma===null){if(t===null)throw Error(r(308));ma=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ma=ma.next=e;return a}var q0=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()})}},Y0=s.unstable_scheduleCallback,V0=s.unstable_NormalPriority,It={$$typeof:m,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Es(){return{controller:new q0,data:new Map,refCount:0}}function Ml(t){t.refCount--,t.refCount===0&&Y0(V0,function(){t.controller.abort()})}var Dl=null,xs=0,qn=0,Yn=null;function G0(t,e){if(Dl===null){var a=Dl=[];xs=0,qn=Tr(),Yn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return xs++,e.then(Uo,Uo),e}function Uo(){if(--xs===0&&Dl!==null){Yn!==null&&(Yn.status="fulfilled");var t=Dl;Dl=null,qn=0,Yn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function X0(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 ko=U.S;U.S=function(t,e){bd=qt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&G0(t,e),ko!==null&&ko(t,e)};var hn=E(null);function As(){var t=hn.current;return t!==null?t:Bt.pooledCache}function ki(t,e){e===null?Q(hn,hn.current):Q(hn,e.pool)}function jo(){var t=As();return t===null?null:{parent:It._currentValue,pool:t}}var Vn=Error(r(460)),_s=Error(r(474)),ji=Error(r(542)),Li={then:function(){}};function Lo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Bo(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(oa,oa),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,qo(t),t;default:if(typeof e.status=="string")e.then(oa,oa);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,qo(t),t}throw pn=e,Vn}}function mn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(pn=a,Vn):a}}var pn=null;function Ho(){if(pn===null)throw Error(r(459));var t=pn;return pn=null,t}function qo(t){if(t===Vn||t===ji)throw Error(r(483))}var Gn=null,Rl=0;function Bi(t){var e=Rl;return Rl+=1,Gn===null&&(Gn=[]),Bo(Gn,t,e)}function Cl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Hi(t,e){throw e.$$typeof===q?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Yo(t){function e(_,S){if(t){var M=_.deletions;M===null?(_.deletions=[S],_.flags|=16):M.push(S)}}function a(_,S){if(!t)return null;for(;S!==null;)e(_,S),S=S.sibling;return null}function n(_){for(var S=new Map;_!==null;)_.key!==null?S.set(_.key,_):S.set(_.index,_),_=_.sibling;return S}function l(_,S){return _=da(_,S),_.index=0,_.sibling=null,_}function u(_,S,M){return _.index=M,t?(M=_.alternate,M!==null?(M=M.index,M<S?(_.flags|=67108866,S):M):(_.flags|=67108866,S)):(_.flags|=1048576,S)}function o(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function h(_,S,M,L){return S===null||S.tag!==6?(S=hs(M,_.mode,L),S.return=_,S):(S=l(S,M),S.return=_,S)}function v(_,S,M,L){var at=M.type;return at===Z?k(_,S,M.props.children,L,M.key):S!==null&&(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&mn(at)===S.type)?(S=l(S,M.props),Cl(S,M),S.return=_,S):(S=zi(M.type,M.key,M.props,null,_.mode,L),Cl(S,M),S.return=_,S)}function D(_,S,M,L){return S===null||S.tag!==4||S.stateNode.containerInfo!==M.containerInfo||S.stateNode.implementation!==M.implementation?(S=ms(M,_.mode,L),S.return=_,S):(S=l(S,M.children||[]),S.return=_,S)}function k(_,S,M,L,at){return S===null||S.tag!==7?(S=cn(M,_.mode,L,at),S.return=_,S):(S=l(S,M),S.return=_,S)}function B(_,S,M){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=hs(""+S,_.mode,M),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case W:return M=zi(S.type,S.key,S.props,null,_.mode,M),Cl(M,S),M.return=_,M;case P:return S=ms(S,_.mode,M),S.return=_,S;case Et:return S=mn(S),B(_,S,M)}if(Ht(S)||Ut(S))return S=cn(S,_.mode,M,null),S.return=_,S;if(typeof S.then=="function")return B(_,Bi(S),M);if(S.$$typeof===m)return B(_,Ui(_,S),M);Hi(_,S)}return null}function C(_,S,M,L){var at=S!==null?S.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return at!==null?null:h(_,S,""+M,L);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case W:return M.key===at?v(_,S,M,L):null;case P:return M.key===at?D(_,S,M,L):null;case Et:return M=mn(M),C(_,S,M,L)}if(Ht(M)||Ut(M))return at!==null?null:k(_,S,M,L,null);if(typeof M.then=="function")return C(_,S,Bi(M),L);if(M.$$typeof===m)return C(_,S,Ui(_,M),L);Hi(_,M)}return null}function z(_,S,M,L,at){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return _=_.get(M)||null,h(S,_,""+L,at);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case W:return _=_.get(L.key===null?M:L.key)||null,v(S,_,L,at);case P:return _=_.get(L.key===null?M:L.key)||null,D(S,_,L,at);case Et:return L=mn(L),z(_,S,M,L,at)}if(Ht(L)||Ut(L))return _=_.get(M)||null,k(S,_,L,at,null);if(typeof L.then=="function")return z(_,S,M,Bi(L),at);if(L.$$typeof===m)return z(_,S,M,Ui(S,L),at);Hi(S,L)}return null}function F(_,S,M,L){for(var at=null,At=null,et=S,dt=S=0,bt=null;et!==null&&dt<M.length;dt++){et.index>dt?(bt=et,et=null):bt=et.sibling;var _t=C(_,et,M[dt],L);if(_t===null){et===null&&(et=bt);break}t&&et&&_t.alternate===null&&e(_,et),S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t,et=bt}if(dt===M.length)return a(_,et),wt&&ha(_,dt),at;if(et===null){for(;dt<M.length;dt++)et=B(_,M[dt],L),et!==null&&(S=u(et,S,dt),At===null?at=et:At.sibling=et,At=et);return wt&&ha(_,dt),at}for(et=n(et);dt<M.length;dt++)bt=z(et,_,dt,M[dt],L),bt!==null&&(t&&bt.alternate!==null&&et.delete(bt.key===null?dt:bt.key),S=u(bt,S,dt),At===null?at=bt:At.sibling=bt,At=bt);return t&&et.forEach(function(Ia){return e(_,Ia)}),wt&&ha(_,dt),at}function it(_,S,M,L){if(M==null)throw Error(r(151));for(var at=null,At=null,et=S,dt=S=0,bt=null,_t=M.next();et!==null&&!_t.done;dt++,_t=M.next()){et.index>dt?(bt=et,et=null):bt=et.sibling;var Ia=C(_,et,_t.value,L);if(Ia===null){et===null&&(et=bt);break}t&&et&&Ia.alternate===null&&e(_,et),S=u(Ia,S,dt),At===null?at=Ia:At.sibling=Ia,At=Ia,et=bt}if(_t.done)return a(_,et),wt&&ha(_,dt),at;if(et===null){for(;!_t.done;dt++,_t=M.next())_t=B(_,_t.value,L),_t!==null&&(S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return wt&&ha(_,dt),at}for(et=n(et);!_t.done;dt++,_t=M.next())_t=z(et,_,dt,_t.value,L),_t!==null&&(t&&_t.alternate!==null&&et.delete(_t.key===null?dt:_t.key),S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return t&&et.forEach(function(eg){return e(_,eg)}),wt&&ha(_,dt),at}function Lt(_,S,M,L){if(typeof M=="object"&&M!==null&&M.type===Z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case W:t:{for(var at=M.key;S!==null;){if(S.key===at){if(at=M.type,at===Z){if(S.tag===7){a(_,S.sibling),L=l(S,M.props.children),L.return=_,_=L;break t}}else if(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&mn(at)===S.type){a(_,S.sibling),L=l(S,M.props),Cl(L,M),L.return=_,_=L;break t}a(_,S);break}else e(_,S);S=S.sibling}M.type===Z?(L=cn(M.props.children,_.mode,L,M.key),L.return=_,_=L):(L=zi(M.type,M.key,M.props,null,_.mode,L),Cl(L,M),L.return=_,_=L)}return o(_);case P:t:{for(at=M.key;S!==null;){if(S.key===at)if(S.tag===4&&S.stateNode.containerInfo===M.containerInfo&&S.stateNode.implementation===M.implementation){a(_,S.sibling),L=l(S,M.children||[]),L.return=_,_=L;break t}else{a(_,S);break}else e(_,S);S=S.sibling}L=ms(M,_.mode,L),L.return=_,_=L}return o(_);case Et:return M=mn(M),Lt(_,S,M,L)}if(Ht(M))return F(_,S,M,L);if(Ut(M)){if(at=Ut(M),typeof at!="function")throw Error(r(150));return M=at.call(M),it(_,S,M,L)}if(typeof M.then=="function")return Lt(_,S,Bi(M),L);if(M.$$typeof===m)return Lt(_,S,Ui(_,M),L);Hi(_,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,S!==null&&S.tag===6?(a(_,S.sibling),L=l(S,M),L.return=_,_=L):(a(_,S),L=hs(M,_.mode,L),L.return=_,_=L),o(_)):a(_,S)}return function(_,S,M,L){try{Rl=0;var at=Lt(_,S,M,L);return Gn=null,at}catch(et){if(et===Vn||et===ji)throw et;var At=ze(29,et,null,_.mode);return At.lanes=L,At.return=_,At}finally{}}}var gn=Yo(!0),Vo=Yo(!1),ja=!1;function Ts(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ms(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 La(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ba(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Tt&2)!==0){var l=n.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),n.pending=e,e=Ci(t),_o(t,null,a),e}return Ri(t,n,e,a),Ci(t)}function zl(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,Oc(t,a)}}function Ds(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?l=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?l=u=e:u=u.next=e}else l=u=e;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:u,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 Rs=!1;function Ol(){if(Rs){var t=Yn;if(t!==null)throw t}}function Nl(t,e,a,n){Rs=!1;var l=t.updateQueue;ja=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,h=l.shared.pending;if(h!==null){l.shared.pending=null;var v=h,D=v.next;v.next=null,o===null?u=D:o.next=D,o=v;var k=t.alternate;k!==null&&(k=k.updateQueue,h=k.lastBaseUpdate,h!==o&&(h===null?k.firstBaseUpdate=D:h.next=D,k.lastBaseUpdate=v))}if(u!==null){var B=l.baseState;o=0,k=D=v=null,h=u;do{var C=h.lane&-536870913,z=C!==h.lane;if(z?(vt&C)===C:(n&C)===C){C!==0&&C===qn&&(Rs=!0),k!==null&&(k=k.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"){B=F.call(Lt,B,C);break t}B=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=it.payload,C=typeof F=="function"?F.call(Lt,B,C):F,C==null)break t;B=A({},B,C);break t;case 2:ja=!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},k===null?(D=k=z,v=B):k=k.next=z,o|=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);k===null&&(v=B),l.baseState=v,l.firstBaseUpdate=D,l.lastBaseUpdate=k,u===null&&(l.shared.lanes=0),Ga|=o,t.lanes=o,t.memoizedState=B}}function Go(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Xo(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Go(a[t],e)}var Xn=E(null),qi=E(0);function Qo(t,e){t=Aa,Q(qi,t),Q(Xn,e),Aa=t|e.baseLanes}function Cs(){Q(qi,Aa),Q(Xn,Xn.current)}function zs(){Aa=qi.current,H(Xn),H(qi)}var Oe=E(null),Qe=null;function Ha(t){var e=t.alternate;Q(Pt,Pt.current&1),Q(Oe,t),Qe===null&&(e===null||Xn.current!==null||e.memoizedState!==null)&&(Qe=t)}function Os(t){Q(Pt,Pt.current),Q(Oe,t),Qe===null&&(Qe=t)}function Zo(t){t.tag===22?(Q(Pt,Pt.current),Q(Oe,t),Qe===null&&(Qe=t)):qa()}function qa(){Q(Pt,Pt.current),Q(Oe,Oe.current)}function Ne(t){H(Oe),Qe===t&&(Qe=null),H(Pt)}var Pt=E(0);function Yi(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Br(a)||Hr(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 ga=0,ft=null,kt=null,te=null,Vi=!1,Qn=!1,yn=!1,Gi=0,Ul=0,Zn=null,Q0=0;function $t(){throw Error(r(321))}function Ns(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ce(t[a],e[a]))return!1;return!0}function Us(t,e,a,n,l,u){return ga=u,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Cf:$s,yn=!1,u=a(n,l),yn=!1,Qn&&(u=Ko(e,a,n,l)),Jo(t),u}function Jo(t){U.H=Ll;var e=kt!==null&&kt.next!==null;if(ga=0,te=kt=ft=null,Vi=!1,Ul=0,Zn=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&Ni(t)&&(ee=!0))}function Ko(t,e,a,n){ft=t;var l=0;do{if(Qn&&(Zn=null),Ul=0,Qn=!1,25<=l)throw Error(r(301));if(l+=1,te=kt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=zf,u=e(a,n)}while(Qn);return u}function Z0(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?kl(e):e,t=t.useState()[0],(kt!==null?kt.memoizedState:null)!==t&&(ft.flags|=1024),e}function ks(){var t=Gi!==0;return Gi=0,t}function js(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ls(t){if(Vi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Vi=!1}ga=0,te=kt=ft=null,Qn=!1,Ul=Gi=0,Zn=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(kt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=kt.next;var e=te===null?ft.memoizedState:te.next;if(e!==null)te=e,kt=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));kt=t,t={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},te===null?ft.memoizedState=te=t:te=te.next=t}return te}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(t){var e=Ul;return Ul+=1,Zn===null&&(Zn=[]),t=Bo(Zn,t,e),e=ft,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Cf:$s),t}function Qi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return kl(t);if(t.$$typeof===m)return fe(t)}throw Error(r(438,String(t)))}function Bs(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=Xi(),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 ya(t,e){return typeof e=="function"?e(t):e}function Zi(t){var e=Ft();return Hs(e,kt,t)}function Hs(t,e,a){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var l=t.baseQueue,u=n.pending;if(u!==null){if(l!==null){var o=l.next;l.next=u.next,u.next=o}e.baseQueue=l=u,n.pending=null}if(u=t.baseState,l===null)t.memoizedState=u;else{e=l.next;var h=o=null,v=null,D=e,k=!1;do{var B=D.lane&-536870913;if(B!==D.lane?(vt&B)===B:(ga&B)===B){var C=D.revertLane;if(C===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),B===qn&&(k=!0);else if((ga&C)===C){D=D.next,C===qn&&(k=!0);continue}else B={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(h=v=B,o=u):v=v.next=B,ft.lanes|=C,Ga|=C;B=D.action,yn&&a(u,B),u=D.hasEagerState?D.eagerState:a(u,B)}else C={lane:B,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},v===null?(h=v=C,o=u):v=v.next=C,ft.lanes|=B,Ga|=B;D=D.next}while(D!==null&&D!==e);if(v===null?o=u:v.next=h,!Ce(u,t.memoizedState)&&(ee=!0,k&&(a=Yn,a!==null)))throw a;t.memoizedState=u,t.baseState=o,t.baseQueue=v,n.lastRenderedState=u}return l===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function qs(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var n=a.dispatch,l=a.pending,u=e.memoizedState;if(l!==null){a.pending=null;var o=l=l.next;do u=t(u,o.action),o=o.next;while(o!==l);Ce(u,e.memoizedState)||(ee=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),a.lastRenderedState=u}return[u,n]}function $o(t,e,a){var n=ft,l=Ft(),u=wt;if(u){if(a===void 0)throw Error(r(407));a=a()}else a=e();var o=!Ce((kt||l).memoizedState,a);if(o&&(l.memoizedState=a,ee=!0),l=l.queue,Gs(Fo.bind(null,n,l,t),[t]),l.getSnapshot!==e||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,Jn(9,{destroy:void 0},Po.bind(null,n,l,a,e),null),Bt===null)throw Error(r(349));u||(ga&127)!==0||Wo(n,e,a)}return a}function Wo(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ft.updateQueue,e===null?(e=Xi(),ft.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Po(t,e,a,n){e.value=a,e.getSnapshot=n,Io(e)&&tf(t)}function Fo(t,e,a){return a(function(){Io(e)&&tf(t)})}function Io(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ce(t,a)}catch{return!0}}function tf(t){var e=rn(t,2);e!==null&&Te(e,t,2)}function Ys(t){var e=ye();if(typeof t=="function"){var a=t;if(t=a(),yn){Ra(!0);try{a()}finally{Ra(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:t},e}function ef(t,e,a,n){return t.baseState=a,Hs(t,kt,typeof n=="function"?n:ya)}function J0(t,e,a,n,l){if($i(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};U.T!==null?a(!0):u.isTransition=!1,n(u),a=e.pending,a===null?(u.next=e.pending=u,af(e,u)):(u.next=a.next,e.pending=a.next=u)}}function af(t,e){var a=e.action,n=e.payload,l=t.state;if(e.isTransition){var u=U.T,o={};U.T=o;try{var h=a(l,n),v=U.S;v!==null&&v(o,h),nf(t,e,h)}catch(D){Vs(t,e,D)}finally{u!==null&&o.types!==null&&(u.types=o.types),U.T=u}}else try{u=a(l,n),nf(t,e,u)}catch(D){Vs(t,e,D)}}function nf(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){lf(t,e,n)},function(n){return Vs(t,e,n)}):lf(t,e,a)}function lf(t,e,a){e.status="fulfilled",e.value=a,uf(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,af(t,a)))}function Vs(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,uf(e),e=e.next;while(e!==n)}t.action=null}function uf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function sf(t,e){return e}function rf(t,e){if(wt){var a=Bt.formState;if(a!==null){t:{var n=ft;if(wt){if(Yt){e:{for(var l=Yt,u=Xe;l.nodeType!==8;){if(!u){l=null;break e}if(l=Ze(l.nextSibling),l===null){l=null;break e}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){Yt=Ze(l.nextSibling),n=l.data==="F!";break t}}Ua(n)}n=!1}n&&(e=a[0])}}return a=ye(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:e},a.queue=n,a=Mf.bind(null,ft,n),n.dispatch=a,n=Ys(!1),u=Ks.bind(null,ft,!1,n.queue),n=ye(),l={state:e,dispatch:null,action:t,pending:null},n.queue=l,a=J0.bind(null,ft,l,u,a),l.dispatch=a,n.memoizedState=t,[e,a,!1]}function cf(t){var e=Ft();return of(e,kt,t)}function of(t,e,a){if(e=Hs(t,e,sf)[0],t=Zi(ya)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=kl(e)}catch(o){throw o===Vn?ji:o}else n=e;e=Ft();var l=e.queue,u=l.dispatch;return a!==e.memoizedState&&(ft.flags|=2048,Jn(9,{destroy:void 0},K0.bind(null,l,a),null)),[n,u,t]}function K0(t,e){t.action=e}function ff(t){var e=Ft(),a=kt;if(a!==null)return of(e,a,t);Ft(),e=e.memoizedState,a=Ft();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Jn(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Xi(),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 df(){return Ft().memoizedState}function Ji(t,e,a,n){var l=ye();ft.flags|=t,l.memoizedState=Jn(1|e,{destroy:void 0},a,n===void 0?null:n)}function Ki(t,e,a,n){var l=Ft();n=n===void 0?null:n;var u=l.memoizedState.inst;kt!==null&&n!==null&&Ns(n,kt.memoizedState.deps)?l.memoizedState=Jn(e,u,a,n):(ft.flags|=t,l.memoizedState=Jn(1|e,u,a,n))}function hf(t,e){Ji(8390656,8,t,e)}function Gs(t,e){Ki(2048,8,t,e)}function $0(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Xi(),ft.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function mf(t){var e=Ft().memoizedState;return $0({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function pf(t,e){return Ki(4,2,t,e)}function gf(t,e){return Ki(4,4,t,e)}function yf(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 vf(t,e,a){a=a!=null?a.concat([t]):null,Ki(4,4,yf.bind(null,e,t),a)}function Xs(){}function bf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&Ns(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function Sf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&Ns(e,n[1]))return n[0];if(n=t(),yn){Ra(!0);try{t()}finally{Ra(!1)}}return a.memoizedState=[n,e],n}function Qs(t,e,a){return a===void 0||(ga&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=wd(),ft.lanes|=t,Ga|=t,a)}function wf(t,e,a,n){return Ce(a,e)?a:Xn.current!==null?(t=Qs(t,a,n),Ce(t,e)||(ee=!0),t):(ga&42)===0||(ga&1073741824)!==0&&(vt&261930)===0?(ee=!0,t.memoizedState=a):(t=wd(),ft.lanes|=t,Ga|=t,e)}function Ef(t,e,a,n,l){var u=T.p;T.p=u!==0&&8>u?u:8;var o=U.T,h={};U.T=h,Ks(t,!1,e,a);try{var v=l(),D=U.S;if(D!==null&&D(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var k=X0(v,n);jl(t,e,k,je(t))}else jl(t,e,n,je(t))}catch(B){jl(t,e,{then:function(){},status:"rejected",reason:B},je())}finally{T.p=u,o!==null&&h.types!==null&&(o.types=h.types),U.T=o}}function W0(){}function Zs(t,e,a,n){if(t.tag!==5)throw Error(r(476));var l=xf(t).queue;Ef(t,l,e,K,a===null?W0:function(){return Af(t),a(n)})}function xf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:K},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Af(t){var e=xf(t);e.next===null&&(e=t.alternate.memoizedState),jl(t,e.next.queue,{},je())}function Js(){return fe(Il)}function _f(){return Ft().memoizedState}function Tf(){return Ft().memoizedState}function P0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=je();t=La(a);var n=Ba(e,t,a);n!==null&&(Te(n,e,a),zl(n,e,a)),e={cache:Es()},t.payload=e;return}e=e.return}}function F0(t,e,a){var n=je();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$i(t)?Df(e,a):(a=fs(t,e,a,n),a!==null&&(Te(a,t,n),Rf(a,e,n)))}function Mf(t,e,a){var n=je();jl(t,e,a,n)}function jl(t,e,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($i(t))Df(e,l);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var o=e.lastRenderedState,h=u(o,a);if(l.hasEagerState=!0,l.eagerState=h,Ce(h,o))return Ri(t,e,l,0),Bt===null&&Di(),!1}catch{}finally{}if(a=fs(t,e,l,n),a!==null)return Te(a,t,n),Rf(a,e,n),!0}return!1}function Ks(t,e,a,n){if(n={lane:2,revertLane:Tr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},$i(t)){if(e)throw Error(r(479))}else e=fs(t,a,n,2),e!==null&&Te(e,t,2)}function $i(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Df(t,e){Qn=Vi=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Rf(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Oc(t,a)}}var Ll={readContext:fe,use:Qi,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};Ll.useEffectEvent=$t;var Cf={readContext:fe,use:Qi,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:hf,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Ji(4194308,4,yf.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Ji(4194308,4,t,e)},useInsertionEffect:function(t,e){Ji(4,2,t,e)},useMemo:function(t,e){var a=ye();e=e===void 0?null:e;var n=t();if(yn){Ra(!0);try{t()}finally{Ra(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=ye();if(a!==void 0){var l=a(e);if(yn){Ra(!0);try{a(e)}finally{Ra(!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=F0.bind(null,ft,t),[n.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Ys(t);var e=t.queue,a=Mf.bind(null,ft,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Xs,useDeferredValue:function(t,e){var a=ye();return Qs(a,t,e)},useTransition:function(){var t=Ys(!1);return t=Ef.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||Wo(n,e,a)}l.memoizedState=a;var u={value:a,getSnapshot:e};return l.queue=u,hf(Fo.bind(null,n,u,t),[t]),n.flags|=2048,Jn(9,{destroy:void 0},Po.bind(null,n,u,a,e),null),a},useId:function(){var t=ye(),e=Bt.identifierPrefix;if(wt){var a=ia,n=la;a=(n&~(1<<32-Re(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Gi++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Q0++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Js,useFormState:rf,useActionState:rf,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=Ks.bind(null,ft,!0,a),a.dispatch=e,[t,e]},useMemoCache:Bs,useCacheRefresh:function(){return ye().memoizedState=P0.bind(null,ft)},useEffectEvent:function(t){var e=ye(),a={impl:t};return e.memoizedState=a,function(){if((Tt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},$s={readContext:fe,use:Qi,useCallback:bf,useContext:fe,useEffect:Gs,useImperativeHandle:vf,useInsertionEffect:pf,useLayoutEffect:gf,useMemo:Sf,useReducer:Zi,useRef:df,useState:function(){return Zi(ya)},useDebugValue:Xs,useDeferredValue:function(t,e){var a=Ft();return wf(a,kt.memoizedState,t,e)},useTransition:function(){var t=Zi(ya)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:$o,useId:_f,useHostTransitionStatus:Js,useFormState:cf,useActionState:cf,useOptimistic:function(t,e){var a=Ft();return ef(a,kt,t,e)},useMemoCache:Bs,useCacheRefresh:Tf};$s.useEffectEvent=mf;var zf={readContext:fe,use:Qi,useCallback:bf,useContext:fe,useEffect:Gs,useImperativeHandle:vf,useInsertionEffect:pf,useLayoutEffect:gf,useMemo:Sf,useReducer:qs,useRef:df,useState:function(){return qs(ya)},useDebugValue:Xs,useDeferredValue:function(t,e){var a=Ft();return kt===null?Qs(a,t,e):wf(a,kt.memoizedState,t,e)},useTransition:function(){var t=qs(ya)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:$o,useId:_f,useHostTransitionStatus:Js,useFormState:ff,useActionState:ff,useOptimistic:function(t,e){var a=Ft();return kt!==null?ef(a,kt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Bs,useCacheRefresh:Tf};zf.useEffectEvent=mf;function Ws(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 Ps={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=je(),l=La(n);l.payload=e,a!=null&&(l.callback=a),e=Ba(t,l,n),e!==null&&(Te(e,t,n),zl(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=je(),l=La(n);l.tag=1,l.payload=e,a!=null&&(l.callback=a),e=Ba(t,l,n),e!==null&&(Te(e,t,n),zl(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=je(),n=La(a);n.tag=2,e!=null&&(n.callback=e),e=Ba(t,n,a),e!==null&&(Te(e,t,a),zl(e,t,a))}};function Of(t,e,a,n,l,u,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,o):e.prototype&&e.prototype.isPureReactComponent?!xl(a,n)||!xl(l,u):!0}function Nf(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&&Ps.enqueueReplaceState(e,e.state,null)}function vn(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 Uf(t){Mi(t)}function kf(t){console.error(t)}function jf(t){Mi(t)}function Wi(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Lf(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 Fs(t,e,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){Wi(t,e)},a}function Bf(t){return t=La(t),t.tag=3,t}function Hf(t,e,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var u=n.value;t.payload=function(){return l(u)},t.callback=function(){Lf(e,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Lf(e,a,n),typeof l!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function I0(t,e,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&Hn(e,a,l,!0),a=Oe.current,a!==null){switch(a.tag){case 31:case 13:return Qe===null?ru():a.alternate===null&&Wt===0&&(Wt=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Li?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),xr(t,n,l)),!1;case 22:return a.flags|=65536,n===Li?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)),xr(t,n,l)),!1}throw Error(r(435,a.tag))}return xr(t,n,l),ru(),!1}if(wt)return e=Oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,n!==ys&&(t=Error(r(422),{cause:n}),Tl(Ye(t,a)))):(n!==ys&&(e=Error(r(423),{cause:n}),Tl(Ye(e,a))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,n=Ye(n,a),l=Fs(t.stateNode,n,l),Ds(t,l),Wt!==4&&(Wt=2)),!1;var u=Error(r(520),{cause:n});if(u=Ye(u,a),Ql===null?Ql=[u]:Ql.push(u),Wt!==4&&(Wt=2),e===null)return!0;n=Ye(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=l&-l,a.lanes|=t,t=Fs(a.stateNode,n,t),Ds(a,t),!1;case 1:if(e=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xa===null||!Xa.has(u))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Bf(l),Hf(l,t,a,n),Ds(a,l),!1}a=a.return}while(a!==null);return!1}var Is=Error(r(461)),ee=!1;function de(t,e,a,n){e.child=t===null?Vo(e,null,a,n):gn(e,t.child,a,n)}function qf(t,e,a,n,l){a=a.render;var u=e.ref;if("ref"in n){var o={};for(var h in n)h!=="ref"&&(o[h]=n[h])}else o=n;return dn(e),n=Us(t,e,a,o,u,l),h=ks(),t!==null&&!ee?(js(t,e,l),va(t,e,l)):(wt&&h&&ps(e),e.flags|=1,de(t,e,n,l),e.child)}function Yf(t,e,a,n,l){if(t===null){var u=a.type;return typeof u=="function"&&!ds(u)&&u.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=u,Vf(t,e,u,n,l)):(t=zi(a.type,null,n,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!sr(t,l)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:xl,a(o,n)&&t.ref===e.ref)return va(t,e,l)}return e.flags|=1,t=da(u,n),t.ref=e.ref,t.return=e,e.child=t}function Vf(t,e,a,n,l){if(t!==null){var u=t.memoizedProps;if(xl(u,n)&&t.ref===e.ref)if(ee=!1,e.pendingProps=n=u,sr(t,l))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,va(t,e,l)}return tr(t,e,a,n,l)}function Gf(t,e,a,n){var l=n.children,u=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(u=u!==null?u.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&~u}else n=0,e.child=null;return Xf(t,e,u,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ki(e,u!==null?u.cachePool:null),u!==null?Qo(e,u):Cs(),Zo(e);else return n=e.lanes=536870912,Xf(t,e,u!==null?u.baseLanes|a:a,a,n)}else u!==null?(ki(e,u.cachePool),Qo(e,u),qa(),e.memoizedState=null):(t!==null&&ki(e,null),Cs(),qa());return de(t,e,l,a),e.child}function Bl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Xf(t,e,a,n,l){var u=As();return u=u===null?null:{parent:It._currentValue,pool:u},e.memoizedState={baseLanes:a,cachePool:u},t!==null&&ki(e,null),Cs(),Zo(e),t!==null&&Hn(t,e,n,!0),e.childLanes=l,null}function Pi(t,e){return e=Ii({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Qf(t,e,a){return gn(e,t.child,null,a),t=Pi(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function tp(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=Pi(e,n),e.lanes=536870912,Bl(null,t);if(Os(e),(t=Yt)?(t=nh(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Oa!==null?{id:la,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Mo(t),a.return=e,e.child=a,oe=e,Yt=null)):t=null,t===null)throw Ua(e);return e.lanes=536870912,null}return Pi(e,n)}var u=t.memoizedState;if(u!==null){var o=u.dehydrated;if(Os(e),l)if(e.flags&256)e.flags&=-257,e=Qf(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||Hn(t,e,a,!1),l=(a&t.childLanes)!==0,ee||l){if(n=Bt,n!==null&&(o=Nc(n,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,rn(t,o),Te(n,t,o),Is;ru(),e=Qf(t,e,a)}else t=u.treeContext,Yt=Ze(o.nextSibling),oe=e,wt=!0,Na=null,Xe=!1,t!==null&&Co(e,t),e=Pi(e,n),e.flags|=4096;return e}return t=da(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Fi(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 tr(t,e,a,n,l){return dn(e),a=Us(t,e,a,n,void 0,l),n=ks(),t!==null&&!ee?(js(t,e,l),va(t,e,l)):(wt&&n&&ps(e),e.flags|=1,de(t,e,a,l),e.child)}function Zf(t,e,a,n,l,u){return dn(e),e.updateQueue=null,a=Ko(e,n,a,l),Jo(t),n=ks(),t!==null&&!ee?(js(t,e,u),va(t,e,u)):(wt&&n&&ps(e),e.flags|=1,de(t,e,a,u),e.child)}function Jf(t,e,a,n,l){if(dn(e),e.stateNode===null){var u=kn,o=a.contextType;typeof o=="object"&&o!==null&&(u=fe(o)),u=new a(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ps,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Ts(e),o=a.contextType,u.context=typeof o=="object"&&o!==null?fe(o):kn,u.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ws(e,a,o,n),u.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&Ps.enqueueReplaceState(u,u.state,null),Nl(e,n,u,l),Ol(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var h=e.memoizedProps,v=vn(a,h);u.props=v;var D=u.context,k=a.contextType;o=kn,typeof k=="object"&&k!==null&&(o=fe(k));var B=a.getDerivedStateFromProps;k=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||D!==o)&&Nf(e,u,n,o),ja=!1;var C=e.memoizedState;u.state=C,Nl(e,n,u,l),Ol(),D=e.memoizedState,h||C!==D||ja?(typeof B=="function"&&(Ws(e,a,B,n),D=e.memoizedState),(v=ja||Of(e,a,v,n,C,D,o))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=D),u.props=n,u.state=D,u.context=o,n=v):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,Ms(t,e),o=e.memoizedProps,k=vn(a,o),u.props=k,B=e.pendingProps,C=u.context,D=a.contextType,v=kn,typeof D=="object"&&D!==null&&(v=fe(D)),h=a.getDerivedStateFromProps,(D=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==B||C!==v)&&Nf(e,u,n,v),ja=!1,C=e.memoizedState,u.state=C,Nl(e,n,u,l),Ol();var z=e.memoizedState;o!==B||C!==z||ja||t!==null&&t.dependencies!==null&&Ni(t.dependencies)?(typeof h=="function"&&(Ws(e,a,h,n),z=e.memoizedState),(k=ja||Of(e,a,k,n,C,z,v)||t!==null&&t.dependencies!==null&&Ni(t.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,z,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,z,v)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=z),u.props=n,u.state=z,u.context=v,n=k):(typeof u.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Fi(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=gn(e,t.child,null,l),e.child=gn(e,null,a,l)):de(t,e,a,l),e.memoizedState=u.state,t=e.child):t=va(t,e,l),t}function Kf(t,e,a,n){return on(),e.flags|=256,de(t,e,a,n),e.child}var er={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ar(t){return{baseLanes:t,cachePool:jo()}}function nr(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ke),t}function $f(t,e,a){var n=e.pendingProps,l=!1,u=(e.flags&128)!==0,o;if((o=u)||(o=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),o&&(l=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(l?Ha(e):qa(),(t=Yt)?(t=nh(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Oa!==null?{id:la,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},a=Mo(t),a.return=e,e.child=a,oe=e,Yt=null)):t=null,t===null)throw Ua(e);return Hr(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,l?(qa(),l=e.mode,h=Ii({mode:"hidden",children:h},l),n=cn(n,l,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=ar(a),n.childLanes=nr(t,o,a),e.memoizedState=er,Bl(null,n)):(Ha(e),lr(e,h))}var v=t.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(u)e.flags&256?(Ha(e),e.flags&=-257,e=ir(t,e,a)):e.memoizedState!==null?(qa(),e.child=t.child,e.flags|=128,e=null):(qa(),h=n.fallback,l=e.mode,n=Ii({mode:"visible",children:n.children},l),h=cn(h,l,a,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,gn(e,t.child,null,a),n=e.child,n.memoizedState=ar(a),n.childLanes=nr(t,o,a),e.memoizedState=er,e=Bl(null,n));else if(Ha(e),Hr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var D=o.dgst;o=D,n=Error(r(419)),n.stack="",n.digest=o,Tl({value:n,source:null,stack:null}),e=ir(t,e,a)}else if(ee||Hn(t,e,a,!1),o=(a&t.childLanes)!==0,ee||o){if(o=Bt,o!==null&&(n=Nc(o,a),n!==0&&n!==v.retryLane))throw v.retryLane=n,rn(t,n),Te(o,t,n),Is;Br(h)||ru(),e=ir(t,e,a)}else Br(h)?(e.flags|=192,e.child=t.child,e=null):(t=v.treeContext,Yt=Ze(h.nextSibling),oe=e,wt=!0,Na=null,Xe=!1,t!==null&&Co(e,t),e=lr(e,n.children),e.flags|=4096);return e}return l?(qa(),h=n.fallback,l=e.mode,v=t.child,D=v.sibling,n=da(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,D!==null?h=da(D,h):(h=cn(h,l,a,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,Bl(null,n),n=e.child,h=t.child.memoizedState,h===null?h=ar(a):(l=h.cachePool,l!==null?(v=It._currentValue,l=l.parent!==v?{parent:v,pool:v}:l):l=jo(),h={baseLanes:h.baseLanes|a,cachePool:l}),n.memoizedState=h,n.childLanes=nr(t,o,a),e.memoizedState=er,Bl(t.child,n)):(Ha(e),a=t.child,t=a.sibling,a=da(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function lr(t,e){return e=Ii({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ii(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function ir(t,e,a){return gn(e,t.child,null,a),t=lr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wf(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ss(t.return,e,a)}function ur(t,e,a,n,l,u){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:u}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=l,o.treeForkCount=u)}function Pf(t,e,a){var n=e.pendingProps,l=n.revealOrder,u=n.tail;n=n.children;var o=Pt.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,Q(Pt,o),de(t,e,n,a),n=wt?_l:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wf(t,a,e);else if(t.tag===19)Wf(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&&Yi(t)===null&&(l=a),a=a.sibling;a=l,a===null?(l=e.child,e.child=null):(l=a.sibling,a.sibling=null),ur(e,!1,l,a,u,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&&Yi(t)===null){e.child=l;break}t=l.sibling,l.sibling=a,a=l,l=t}ur(e,!0,a,null,u,n);break;case"together":ur(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function va(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Ga|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Hn(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=da(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=da(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&&Ni(t)))}function ep(t,e,a){switch(e.tag){case 3:Y(e,e.stateNode.containerInfo),ka(e,It,t.memoizedState.cache),on();break;case 27:case 5:st(e);break;case 4:Y(e,e.stateNode.containerInfo);break;case 10:ka(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Os(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Ha(e),e.flags|=128,null):(a&e.child.childLanes)!==0?$f(t,e,a):(Ha(e),t=va(t,e,a),t!==null?t.sibling:null);Ha(e);break;case 19:var l=(t.flags&128)!==0;if(n=(a&e.childLanes)!==0,n||(Hn(t,e,a,!1),n=(a&e.childLanes)!==0),l){if(n)return Pf(t,e,a);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(Pt,Pt.current),n)break;return null;case 22:return e.lanes=0,Gf(t,e,a,e.pendingProps);case 24:ka(e,It,t.memoizedState.cache)}return va(t,e,a)}function Ff(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,ep(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,wt&&(e.flags&1048576)!==0&&Ro(e,_l,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=mn(e.elementType),e.type=t,typeof t=="function")ds(t)?(n=vn(t,n),e.tag=1,e=Jf(null,e,t,n,a)):(e.tag=0,e=tr(null,e,t,n,a));else{if(t!=null){var l=t.$$typeof;if(l===J){e.tag=11,e=qf(null,e,t,n,a);break t}else if(l===X){e.tag=14,e=Yf(null,e,t,n,a);break t}}throw e=pe(t)||t,Error(r(306,e,""))}}return e;case 0:return tr(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,l=vn(n,e.pendingProps),Jf(t,e,n,l,a);case 3:t:{if(Y(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var u=e.memoizedState;l=u.element,Ms(t,e),Nl(e,n,null,a);var o=e.memoizedState;if(n=o.cache,ka(e,It,n),n!==u.cache&&ws(e,[It],a,!0),Ol(),n=o.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Kf(t,e,n,a);break t}else if(n!==l){l=Ye(Error(r(424)),e),Tl(l),e=Kf(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=Ze(t.firstChild),oe=e,wt=!0,Na=null,Xe=!0,a=Vo(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(on(),n===l){e=va(t,e,a);break t}de(t,e,n,a)}e=e.child}return e;case 26:return Fi(t,e),t===null?(a=ch(e.type,null,e.pendingProps,null))?e.memoizedState=a:wt||(a=e.type,t=e.pendingProps,n=pu(ht.current).createElement(a),n[ce]=e,n[Se]=t,he(n,a,t),ue(n),e.stateNode=n):e.memoizedState=ch(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return st(e),t===null&&wt&&(n=e.stateNode=uh(e.type,e.pendingProps,ht.current),oe=e,Xe=!0,l=Yt,Ka(e.type)?(qr=l,Yt=Ze(n.firstChild)):Yt=l),de(t,e,e.pendingProps.children,a),Fi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((l=n=Yt)&&(n=zp(n,e.type,e.pendingProps,Xe),n!==null?(e.stateNode=n,oe=e,Yt=Ze(n.firstChild),Xe=!1,l=!0):l=!1),l||Ua(e)),st(e),l=e.type,u=e.pendingProps,o=t!==null?t.memoizedProps:null,n=u.children,kr(l,u)?n=null:o!==null&&kr(l,o)&&(e.flags|=32),e.memoizedState!==null&&(l=Us(t,e,Z0,null,null,a),Il._currentValue=l),Fi(t,e),de(t,e,n,a),e.child;case 6:return t===null&&wt&&((t=a=Yt)&&(a=Op(a,e.pendingProps,Xe),a!==null?(e.stateNode=a,oe=e,Yt=null,t=!0):t=!1),t||Ua(e)),null;case 13:return $f(t,e,a);case 4:return Y(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=gn(e,null,n,a):de(t,e,n,a),e.child;case 11:return qf(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,ka(e,e.type,n.value),de(t,e,n.children,a),e.child;case 9:return l=e.type._context,n=e.pendingProps.children,dn(e),l=fe(l),n=n(l),e.flags|=1,de(t,e,n,a),e.child;case 14:return Yf(t,e,e.type,e.pendingProps,a);case 15:return Vf(t,e,e.type,e.pendingProps,a);case 19:return Pf(t,e,a);case 31:return tp(t,e,a);case 22:return Gf(t,e,a,e.pendingProps);case 24:return dn(e),n=fe(It),t===null?(l=As(),l===null&&(l=Bt,u=Es(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=a),l=u),e.memoizedState={parent:n,cache:l},Ts(e),ka(e,It,l)):((t.lanes&a)!==0&&(Ms(t,e),Nl(e,null,null,a),Ol()),l=t.memoizedState,u=e.memoizedState,l.parent!==n?(l={parent:n,cache:n},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),ka(e,It,n)):(n=u.cache,ka(e,It,n),n!==l.cache&&ws(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 ba(t){t.flags|=4}function rr(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(_d())t.flags|=8192;else throw pn=Li,_s}else t.flags&=-16777217}function If(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!mh(e))if(_d())t.flags|=8192;else throw pn=Li,_s}function tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Cc():536870912,t.lanes|=e,Pn|=e)}function Hl(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 ap(t,e,a){var n=e.pendingProps;switch(gs(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),pa(It),$(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Bn(e)?ba(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,vs())),Vt(e),null;case 26:var l=e.type,u=e.memoizedState;return t===null?(ba(e),u!==null?(Vt(e),If(e,u)):(Vt(e),rr(e,l,null,n,a))):u?u!==t.memoizedState?(ba(e),Vt(e),If(e,u)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&ba(e),Vt(e),rr(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&&ba(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}t=I.current,Bn(e)?zo(e):(t=uh(l,n,a),e.stateNode=t,ba(e))}return Vt(e),null;case 5:if(lt(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ba(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}if(u=I.current,Bn(e))zo(e);else{var o=pu(ht.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?o.createElement(l,{is:n.is}):o.createElement(l)}}u[ce]=e,u[Se]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=u;t:switch(he(u,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&&ba(e)}}return Vt(e),rr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ba(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=ht.current,Bn(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,l=oe,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}t[ce]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||$d(t.nodeValue,a)),t||Ua(e,!0)}else t=pu(t).createTextNode(n),t[ce]=e,e.stateNode=t}return Vt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Bn(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[ce]=e}else on(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else a=vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(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=Bn(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[ce]=e}else on(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),l=!1}else l=vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(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),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==l&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),tu(e,e.updateQueue),Vt(e),null);case 4:return $(),t===null&&Cr(e.stateNode.containerInfo),Vt(e),null;case 10:return pa(e.type),Vt(e),null;case 19:if(H(Pt),n=e.memoizedState,n===null)return Vt(e),null;if(l=(e.flags&128)!==0,u=n.rendering,u===null)if(l)Hl(n,!1);else{if(Wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Yi(t),u!==null){for(e.flags|=128,Hl(n,!1),t=u.updateQueue,e.updateQueue=t,tu(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)To(a,t),a=a.sibling;return Q(Pt,Pt.current&1|2),wt&&ha(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&qt()>iu&&(e.flags|=128,l=!0,Hl(n,!1),e.lanes=4194304)}else{if(!l)if(t=Yi(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,tu(e,t),Hl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!wt)return Vt(e),null}else 2*qt()-n.renderingStartTime>iu&&a!==536870912&&(e.flags|=128,l=!0,Hl(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=qt(),t.sibling=null,a=Pt.current,Q(Pt,l?a&1|2:a&1),wt&&ha(e,n.treeForkCount),t):(Vt(e),null);case 22:case 23:return Ne(e),zs(),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&&tu(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&&H(hn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),pa(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function np(t,e){switch(gs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pa(It),$(),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(Ne(e),e.alternate===null)throw Error(r(340));on()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));on()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Pt),null;case 4:return $(),null;case 10:return pa(e.type),null;case 22:case 23:return Ne(e),zs(),t!==null&&H(hn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return pa(It),null;case 25:return null;default:return null}}function td(t,e){switch(gs(e),e.tag){case 3:pa(It),$();break;case 26:case 27:case 5:lt(e);break;case 4:$();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:H(Pt);break;case 10:pa(e.type);break;case 22:case 23:Ne(e),zs(),t!==null&&H(hn);break;case 24:pa(It)}}function ql(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 u=a.create,o=a.inst;n=u(),o.destroy=n}a=a.next}while(a!==l)}}catch(h){Ot(e,e.return,h)}}function Ya(t,e,a){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){var o=n.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,l=e;var v=a,D=h;try{D()}catch(k){Ot(l,v,k)}}}n=n.next}while(n!==u)}}catch(k){Ot(e,e.return,k)}}function ed(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Xo(e,a)}catch(n){Ot(t,t.return,n)}}}function ad(t,e,a){a.props=vn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Ot(t,e,n)}}function Yl(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){Ot(t,e,l)}}function ua(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Ot(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){Ot(t,e,l)}else a.current=null}function nd(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){Ot(t,t.return,l)}}function cr(t,e,a){try{var n=t.stateNode;_p(n,t.type,a,e),n[Se]=e}catch(l){Ot(t,t.return,l)}}function ld(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ka(t.type)||t.tag===4}function or(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ld(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&&Ka(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 fr(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=oa));else if(n!==4&&(n===27&&Ka(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(fr(t,e,a),t=t.sibling;t!==null;)fr(t,e,a),t=t.sibling}function eu(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&&Ka(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(eu(t,e,a),t=t.sibling;t!==null;)eu(t,e,a),t=t.sibling}function id(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[ce]=t,e[Se]=a}catch(u){Ot(t,t.return,u)}}var Sa=!1,ae=!1,dr=!1,ud=typeof WeakSet=="function"?WeakSet:Set,se=null;function lp(t,e){if(t=t.containerInfo,Nr=Eu,t=yo(t),is(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,u=n.focusNode;n=n.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break t}var o=0,h=-1,v=-1,D=0,k=0,B=t,C=null;e:for(;;){for(var z;B!==a||l!==0&&B.nodeType!==3||(h=o+l),B!==u||n!==0&&B.nodeType!==3||(v=o+n),B.nodeType===3&&(o+=B.nodeValue.length),(z=B.firstChild)!==null;)C=B,B=z;for(;;){if(B===t)break e;if(C===a&&++D===l&&(h=o),C===u&&++k===n&&(v=o),(z=B.nextSibling)!==null)break;B=C,C=B.parentNode}B=z}a=h===-1||v===-1?null:{start:h,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ur={focusedElem:t,selectionRange:a},Eu=!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,u=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&&u!==null){t=void 0,a=e,l=u.memoizedProps,u=u.memoizedState,n=a.stateNode;try{var F=vn(a.type,l);t=n.getSnapshotBeforeUpdate(F,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(it){Ot(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Lr(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lr(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 sd(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ea(t,a),n&4&&ql(5,a);break;case 1:if(Ea(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Ot(a,a.return,o)}else{var l=vn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Ot(a,a.return,o)}}n&64&&ed(a),n&512&&Yl(a,a.return);break;case 3:if(Ea(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{Xo(t,e)}catch(o){Ot(a,a.return,o)}}break;case 27:e===null&&n&4&&id(a);case 26:case 5:Ea(t,a),e===null&&n&4&&nd(a),n&512&&Yl(a,a.return);break;case 12:Ea(t,a);break;case 31:Ea(t,a),n&4&&od(t,a);break;case 13:Ea(t,a),n&4&&fd(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=hp.bind(null,a),Np(t,a))));break;case 22:if(n=a.memoizedState!==null||Sa,!n){e=e!==null&&e.memoizedState!==null||ae,l=Sa;var u=ae;Sa=n,(ae=e)&&!u?xa(t,a,(a.subtreeFlags&8772)!==0):Ea(t,a),Sa=l,ae=u}break;case 30:break;default:Ea(t,a)}}function rd(t){var e=t.alternate;e!==null&&(t.alternate=null,rd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Vu(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 wa(t,e,a){for(a=a.child;a!==null;)cd(t,e,a),a=a.sibling}function cd(t,e,a){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:ae||ua(a,e),wa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||ua(a,e);var n=Gt,l=Ee;Ka(a.type)&&(Gt=a.stateNode,Ee=!1),wa(t,e,a),Wl(a.stateNode),Gt=n,Ee=l;break;case 5:ae||ua(a,e);case 6:if(n=Gt,l=Ee,Gt=null,wa(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(u){Ot(a,e,u)}else try{Gt.removeChild(a.stateNode)}catch(u){Ot(a,e,u)}break;case 18:Gt!==null&&(Ee?(t=Gt,eh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),il(t)):eh(Gt,a.stateNode));break;case 4:n=Gt,l=Ee,Gt=a.stateNode.containerInfo,Ee=!0,wa(t,e,a),Gt=n,Ee=l;break;case 0:case 11:case 14:case 15:Ya(2,a,e),ae||Ya(4,a,e),wa(t,e,a);break;case 1:ae||(ua(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&ad(a,e,n)),wa(t,e,a);break;case 21:wa(t,e,a);break;case 22:ae=(n=ae)||a.memoizedState!==null,wa(t,e,a),ae=n;break;default:wa(t,e,a)}}function od(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{il(t)}catch(a){Ot(e,e.return,a)}}}function fd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{il(t)}catch(a){Ot(e,e.return,a)}}function ip(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ud),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ud),e;default:throw Error(r(435,t.tag))}}function au(t,e){var a=ip(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var l=mp.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],u=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if(Ka(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));cd(u,o,l),Gt=null,Ee=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)dd(e,t),e=e.sibling}var Pe=null;function dd(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&&(Ya(3,t,t.return),ql(3,t),Ya(5,t,t.return));break;case 1:xe(e,t),Ae(t),n&512&&(ae||a===null||ua(a,a.return)),n&64&&Sa&&(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=Pe;if(xe(e,t),Ae(t),n&512&&(ae||a===null||ua(a,a.return)),n&4){var u=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":u=l.getElementsByTagName("title")[0],(!u||u[ml]||u[ce]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(n),l.head.insertBefore(u,l.querySelector("head > title"))),he(u,n,a),u[ce]=t,ue(u),n=u;break t;case"link":var o=dh("link","href",l).get(n+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(u=o[h],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break e}}u=l.createElement(n),he(u,n,a),l.head.appendChild(u);break;case"meta":if(o=dh("meta","content",l).get(n+(a.content||""))){for(h=0;h<o.length;h++)if(u=o[h],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break e}}u=l.createElement(n),he(u,n,a),l.head.appendChild(u);break;default:throw Error(r(468,n))}u[ce]=t,ue(u),n=u}t.stateNode=n}else hh(l,t.type,t.stateNode);else t.stateNode=fh(l,n,t.memoizedProps);else u!==n?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,n===null?hh(l,t.type,t.stateNode):fh(l,n,t.memoizedProps)):n===null&&t.stateNode!==null&&cr(t,t.memoizedProps,a.memoizedProps)}break;case 27:xe(e,t),Ae(t),n&512&&(ae||a===null||ua(a,a.return)),a!==null&&n&4&&cr(t,t.memoizedProps,a.memoizedProps);break;case 5:if(xe(e,t),Ae(t),n&512&&(ae||a===null||ua(a,a.return)),t.flags&32){l=t.stateNode;try{Dn(l,"")}catch(F){Ot(t,t.return,F)}}n&4&&t.stateNode!=null&&(l=t.memoizedProps,cr(t,l,a!==null?a.memoizedProps:l)),n&1024&&(dr=!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){Ot(t,t.return,F)}}break;case 3:if(vu=null,l=Pe,Pe=gu(e.containerInfo),xe(e,t),Pe=l,Ae(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{il(e.containerInfo)}catch(F){Ot(t,t.return,F)}dr&&(dr=!1,hd(t));break;case 4:n=Pe,Pe=gu(t.stateNode.containerInfo),xe(e,t),Ae(t),Pe=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,au(t,n)));break;case 13:xe(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lu=qt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,au(t,n)));break;case 22:l=t.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,D=Sa,k=ae;if(Sa=D||l,ae=k||v,xe(e,t),ae=k,Sa=D,Ae(t),n&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(a===null||v||Sa||ae||bn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){v=a=e;try{if(u=v.stateNode,l)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=v.stateNode;var B=v.memoizedProps.style,C=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(F){Ot(v,v.return,F)}}}else if(e.tag===6){if(a===null){v=e;try{v.stateNode.nodeValue=l?"":v.memoizedProps}catch(F){Ot(v,v.return,F)}}}else if(e.tag===18){if(a===null){v=e;try{var z=v.stateNode;l?ah(z,!0):ah(v.stateNode,!1)}catch(F){Ot(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,au(t,a))));break;case 19:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,au(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(ld(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var l=a.stateNode,u=or(t);eu(t,u,l);break;case 5:var o=a.stateNode;a.flags&32&&(Dn(o,""),a.flags&=-33);var h=or(t);eu(t,h,o);break;case 3:case 4:var v=a.stateNode.containerInfo,D=or(t);fr(t,D,v);break;default:throw Error(r(161))}}catch(k){Ot(t,t.return,k)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function hd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;hd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ea(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)sd(t,e.alternate,e),e=e.sibling}function bn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ya(4,e,e.return),bn(e);break;case 1:ua(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&ad(e,e.return,a),bn(e);break;case 27:Wl(e.stateNode);case 26:case 5:ua(e,e.return),bn(e);break;case 22:e.memoizedState===null&&bn(e);break;case 30:bn(e);break;default:bn(e)}t=t.sibling}}function xa(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,l=t,u=e,o=u.flags;switch(u.tag){case 0:case 11:case 15:xa(l,u,a),ql(4,u);break;case 1:if(xa(l,u,a),n=u,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(D){Ot(n,n.return,D)}if(n=u,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++)Go(v[l],h)}catch(D){Ot(n,n.return,D)}}a&&o&64&&ed(u),Yl(u,u.return);break;case 27:id(u);case 26:case 5:xa(l,u,a),a&&n===null&&o&4&&nd(u),Yl(u,u.return);break;case 12:xa(l,u,a);break;case 31:xa(l,u,a),a&&o&4&&od(l,u);break;case 13:xa(l,u,a),a&&o&4&&fd(l,u);break;case 22:u.memoizedState===null&&xa(l,u,a),Yl(u,u.return);break;case 30:break;default:xa(l,u,a)}e=e.sibling}}function hr(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&&Ml(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&&Ml(t))}function Fe(t,e,a,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)md(t,e,a,n),e=e.sibling}function md(t,e,a,n){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,a,n),l&2048&&ql(9,e);break;case 1:Fe(t,e,a,n);break;case 3:Fe(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&&Ml(t)));break;case 12:if(l&2048){Fe(t,e,a,n),t=e.stateNode;try{var u=e.memoizedProps,o=u.id,h=u.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(v){Ot(e,e.return,v)}}else Fe(t,e,a,n);break;case 31:Fe(t,e,a,n);break;case 13:Fe(t,e,a,n);break;case 23:break;case 22:u=e.stateNode,o=e.alternate,e.memoizedState!==null?u._visibility&2?Fe(t,e,a,n):Vl(t,e):u._visibility&2?Fe(t,e,a,n):(u._visibility|=2,Kn(t,e,a,n,(e.subtreeFlags&10256)!==0||!1)),l&2048&&hr(o,e);break;case 24:Fe(t,e,a,n),l&2048&&mr(e.alternate,e);break;default:Fe(t,e,a,n)}}function Kn(t,e,a,n,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,o=e,h=a,v=n,D=o.flags;switch(o.tag){case 0:case 11:case 15:Kn(u,o,h,v,l),ql(8,o);break;case 23:break;case 22:var k=o.stateNode;o.memoizedState!==null?k._visibility&2?Kn(u,o,h,v,l):Vl(u,o):(k._visibility|=2,Kn(u,o,h,v,l)),l&&D&2048&&hr(o.alternate,o);break;case 24:Kn(u,o,h,v,l),l&&D&2048&&mr(o.alternate,o);break;default:Kn(u,o,h,v,l)}e=e.sibling}}function Vl(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:Vl(a,n),l&2048&&hr(n.alternate,n);break;case 24:Vl(a,n),l&2048&&mr(n.alternate,n);break;default:Vl(a,n)}e=e.sibling}}var Gl=8192;function $n(t,e,a){if(t.subtreeFlags&Gl)for(t=t.child;t!==null;)pd(t,e,a),t=t.sibling}function pd(t,e,a){switch(t.tag){case 26:$n(t,e,a),t.flags&Gl&&t.memoizedState!==null&&Qp(a,Pe,t.memoizedState,t.memoizedProps);break;case 5:$n(t,e,a);break;case 3:case 4:var n=Pe;Pe=gu(t.stateNode.containerInfo),$n(t,e,a),Pe=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Gl,Gl=16777216,$n(t,e,a),Gl=n):$n(t,e,a));break;default:$n(t,e,a)}}function gd(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 Xl(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,vd(n,t)}gd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yd(t),t=t.sibling}function yd(t){switch(t.tag){case 0:case 11:case 15:Xl(t),t.flags&2048&&Ya(9,t,t.return);break;case 3:Xl(t);break;case 12:Xl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nu(t)):Xl(t);break;default:Xl(t)}}function nu(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,vd(n,t)}gd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ya(8,e,e.return),nu(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,nu(e));break;default:nu(e)}t=t.sibling}}function vd(t,e){for(;se!==null;){var a=se;switch(a.tag){case 0:case 11:case 15:Ya(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:Ml(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,u=n.return;if(rd(n),n===a){se=null;break t}if(l!==null){l.return=u,se=l;break t}se=u}}}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}},sp=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Bt=null,gt=null,vt=0,zt=0,Ue=null,Va=!1,Wn=!1,pr=!1,Aa=0,Wt=0,Ga=0,Sn=0,gr=0,ke=0,Pn=0,Ql=null,_e=null,yr=!1,lu=0,bd=0,iu=1/0,uu=null,Xa=null,ne=0,Qa=null,Fn=null,_a=0,vr=0,br=null,Sd=null,Zl=0,Sr=null;function je(){return(Tt&2)!==0&&vt!==0?vt&-vt:U.T!==null?Tr():Uc()}function wd(){if(ke===0)if((vt&536870912)===0||wt){var t=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),ke=t}else ke=536870912;return t=Oe.current,t!==null&&(t.flags|=32),ke}function Te(t,e,a){(t===Bt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(In(t,0),Za(t,vt,ke,!1)),hl(t,a),((Tt&2)===0||t!==Bt)&&(t===Bt&&((Tt&2)===0&&(Sn|=a),Wt===4&&Za(t,vt,ke,!1)),sa(t))}function Ed(t,e,a){if((Tt&6)!==0)throw Error(r(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||dl(t,e),l=n?op(t,e):Er(t,e,!0),u=n;do{if(l===0){Wn&&!n&&Za(t,e,0,!1);break}else{if(a=t.current.alternate,u&&!rp(a)){l=Er(t,e,!1),u=!1;continue}if(l===2){if(u=e,t.errorRecoveryDisabledLanes&u)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;l=Ql;var v=h.current.memoizedState.isDehydrated;if(v&&(In(h,o).flags|=256),o=Er(h,o,!1),o!==2){if(pr&&!v){h.errorRecoveryDisabledLanes|=u,Sn|=u,l=4;break t}u=_e,_e=l,u!==null&&(_e===null?_e=u:_e.push.apply(_e,u))}l=o}if(u=!1,l!==2)continue}}if(l===1){In(t,0),Za(t,e,0,!0);break}t:{switch(n=t,u=l,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Za(n,e,ke,!Va);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=lu+300-qt(),10<l)){if(Za(n,e,ke,!Va),gi(n,0,!0)!==0)break t;_a=e,n.timeoutHandle=Id(xd.bind(null,n,a,_e,uu,yr,e,ke,Sn,Pn,Va,u,"Throttled",-0,0),l);break t}xd(n,a,_e,uu,yr,e,ke,Sn,Pn,Va,u,null,-0,0)}}break}while(!0);sa(t)}function xd(t,e,a,n,l,u,o,h,v,D,k,B,C,z){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},pd(e,u,B);var F=(u&62914560)===u?lu-qt():(u&4194048)===u?bd-qt():0;if(F=Zp(B,F),F!==null){_a=u,t.cancelPendingCommit=F(zd.bind(null,t,e,u,a,n,l,o,h,v,k,B,null,C,z)),Za(t,u,o,!D);return}}zd(t,e,u,a,n,l,o,h,v)}function rp(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],u=l.getSnapshot;l=l.value;try{if(!Ce(u(),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 Za(t,e,a,n){e&=~gr,e&=~Sn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var l=e;0<l;){var u=31-Re(l),o=1<<u;n[u]=-1,l&=~o}a!==0&&zc(t,a,e)}function su(){return(Tt&6)===0?(Jl(0),!1):!0}function wr(){if(gt!==null){if(zt===0)var t=gt.return;else t=gt,ma=fn=null,Ls(t),Gn=null,Rl=0,t=gt;for(;t!==null;)td(t.alternate,t),t=t.return;gt=null}}function In(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Dp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),_a=0,wr(),Bt=t,gt=a=da(t.current,null),vt=e,zt=0,Ue=null,Va=!1,Wn=dl(t,e),pr=!1,Pn=ke=gr=Sn=Ga=Wt=0,_e=Ql=null,yr=!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-Re(n),u=1<<l;e|=t[l],n&=~u}return Aa=e,Di(),a}function Ad(t,e){ft=null,U.H=Ll,e===Vn||e===ji?(e=Ho(),zt=3):e===_s?(e=Ho(),zt=4):zt=e===Is?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,gt===null&&(Wt=1,Wi(t,Ye(e,t.current)))}function _d(){var t=Oe.current;return t===null?!0:(vt&4194048)===vt?Qe===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Qe:!1}function Td(){var t=U.H;return U.H=Ll,t===null?Ll:t}function Md(){var t=U.A;return U.A=up,t}function ru(){Wt=4,Va||(vt&4194048)!==vt&&Oe.current!==null||(Wn=!0),(Ga&134217727)===0&&(Sn&134217727)===0||Bt===null||Za(Bt,vt,ke,!1)}function Er(t,e,a){var n=Tt;Tt|=2;var l=Td(),u=Md();(Bt!==t||vt!==e)&&(uu=null,In(t,e)),e=!1;var o=Wt;t:do try{if(zt!==0&>!==null){var h=gt,v=Ue;switch(zt){case 8:wr(),o=6;break t;case 3:case 2:case 9:case 6:Oe.current===null&&(e=!0);var D=zt;if(zt=0,Ue=null,tl(t,h,v,D),a&&Wn){o=0;break t}break;default:D=zt,zt=0,Ue=null,tl(t,h,v,D)}}cp(),o=Wt;break}catch(k){Ad(t,k)}while(!0);return e&&t.shellSuspendCounter++,ma=fn=null,Tt=n,U.H=l,U.A=u,gt===null&&(Bt=null,vt=0,Di()),o}function cp(){for(;gt!==null;)Dd(gt)}function op(t,e){var a=Tt;Tt|=2;var n=Td(),l=Md();Bt!==t||vt!==e?(uu=null,iu=qt()+500,In(t,e)):Wn=dl(t,e);t:do try{if(zt!==0&>!==null){e=gt;var u=Ue;e:switch(zt){case 1:zt=0,Ue=null,tl(t,e,u,1);break;case 2:case 9:if(Lo(u)){zt=0,Ue=null,Rd(e);break}e=function(){zt!==2&&zt!==9||Bt!==t||(zt=7),sa(t)},u.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:Lo(u)?(zt=0,Ue=null,Rd(e)):(zt=0,Ue=null,tl(t,e,u,7));break;case 5:var o=null;switch(gt.tag){case 26:o=gt.memoizedState;case 5:case 27:var h=gt;if(o?mh(o):h.stateNode.complete){zt=0,Ue=null;var v=h.sibling;if(v!==null)gt=v;else{var D=h.return;D!==null?(gt=D,cu(D)):gt=null}break e}}zt=0,Ue=null,tl(t,e,u,5);break;case 6:zt=0,Ue=null,tl(t,e,u,6);break;case 8:wr(),Wt=6;break t;default:throw Error(r(462))}}fp();break}catch(k){Ad(t,k)}while(!0);return ma=fn=null,U.H=n,U.A=l,Tt=a,gt!==null?0:(Bt=null,vt=0,Di(),Wt)}function fp(){for(;gt!==null&&!ge();)Dd(gt)}function Dd(t){var e=Ff(t.alternate,t,Aa);t.memoizedProps=t.pendingProps,e===null?cu(t):gt=e}function Rd(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Zf(a,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=Zf(a,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Ls(e);default:td(a,e),e=gt=To(e,Aa),e=Ff(a,e,Aa)}t.memoizedProps=t.pendingProps,e===null?cu(t):gt=e}function tl(t,e,a,n){ma=fn=null,Ls(e),Gn=null,Rl=0;var l=e.return;try{if(I0(t,l,e,a,vt)){Wt=1,Wi(t,Ye(a,t.current)),gt=null;return}}catch(u){if(l!==null)throw gt=l,u;Wt=1,Wi(t,Ye(a,t.current)),gt=null;return}e.flags&32768?(wt||n===1?t=!0:Wn||(vt&536870912)!==0?t=!1:(Va=t=!0,(n===2||n===9||n===3||n===6)&&(n=Oe.current,n!==null&&n.tag===13&&(n.flags|=16384))),Cd(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){Cd(e,Va);return}t=e.return;var a=ap(e.alternate,e,Aa);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Wt===0&&(Wt=5)}function Cd(t,e){do{var a=np(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);Wt=6,gt=null}function zd(t,e,a,n,l,u,o,h,v){t.cancelPendingCommit=null;do ou();while(ne!==0);if((Tt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=os,Xm(t,a,u,o,h,v),t===Bt&&(gt=Bt=null,vt=0),Fn=e,Qa=t,_a=a,vr=u,br=l,Sd=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,pp(di,function(){return jd(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null,l=T.p,T.p=2,o=Tt,Tt|=4;try{lp(t,e,a)}finally{Tt=o,T.p=l,U.T=n}}ne=1,Od(),Nd(),Ud()}}function Od(){if(ne===1){ne=0;var t=Qa,e=Fn,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var n=T.p;T.p=2;var l=Tt;Tt|=4;try{dd(e,t);var u=Ur,o=yo(t.containerInfo),h=u.focusedElem,v=u.selectionRange;if(o!==h&&h&&h.ownerDocument&&go(h.ownerDocument.documentElement,h)){if(v!==null&&is(h)){var D=v.start,k=v.end;if(k===void 0&&(k=D),"selectionStart"in h)h.selectionStart=D,h.selectionEnd=Math.min(k,h.value.length);else{var B=h.ownerDocument||document,C=B&&B.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&&(o=Lt,Lt=it,it=o);var _=po(h,it),S=po(h,Lt);if(_&&S&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var M=B.createRange();M.setStart(_.node,_.offset),z.removeAllRanges(),it>Lt?(z.addRange(M),z.extend(S.node,S.offset)):(M.setEnd(S.node,S.offset),z.addRange(M))}}}}for(B=[],z=h;z=z.parentNode;)z.nodeType===1&&B.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var L=B[h];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Eu=!!Nr,Ur=Nr=null}finally{Tt=l,T.p=n,U.T=a}}t.current=e,ne=2}}function Nd(){if(ne===2){ne=0;var t=Qa,e=Fn,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var n=T.p;T.p=2;var l=Tt;Tt|=4;try{sd(t,e.alternate,e)}finally{Tt=l,T.p=n,U.T=a}}ne=3}}function Ud(){if(ne===4||ne===3){ne=0,ie();var t=Qa,e=Fn,a=_a,n=Sd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,Fn=Qa=null,kd(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Xa=null),qu(a),e=e.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(fl,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=U.T,l=T.p,T.p=2,U.T=null;try{for(var u=t.onRecoverableError,o=0;o<n.length;o++){var h=n[o];u(h.value,{componentStack:h.stack})}}finally{U.T=e,T.p=l}}(_a&3)!==0&&ou(),sa(t),l=t.pendingLanes,(a&261930)!==0&&(l&42)!==0?t===Sr?Zl++:(Zl=0,Sr=t):Zl=0,Jl(0)}}function kd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ml(e)))}function ou(){return Od(),Nd(),Ud(),jd()}function jd(){if(ne!==5)return!1;var t=Qa,e=vr;vr=0;var a=qu(_a),n=U.T,l=T.p;try{T.p=32>a?32:a,U.T=null,a=br,br=null;var u=Qa,o=_a;if(ne=0,Fn=Qa=null,_a=0,(Tt&6)!==0)throw Error(r(331));var h=Tt;if(Tt|=4,yd(u.current),md(u,u.current,o,a),Tt=h,Jl(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(fl,u)}catch{}return!0}finally{T.p=l,U.T=n,kd(t,e)}}function Ld(t,e,a){e=Ye(a,e),e=Fs(t.stateNode,e,2),t=Ba(t,e,2),t!==null&&(hl(t,2),sa(t))}function Ot(t,e,a){if(t.tag===3)Ld(t,t,a);else for(;e!==null;){if(e.tag===3){Ld(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Xa===null||!Xa.has(n))){t=Ye(a,t),a=Bf(2),n=Ba(e,a,2),n!==null&&(Hf(a,n,e,t),hl(n,2),sa(n));break}}e=e.return}}function xr(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new sp;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)||(pr=!0,l.add(a),t=dp.bind(null,t,e,a),e.then(t,t))}function dp(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&&(Wt===4||Wt===3&&(vt&62914560)===vt&&300>qt()-lu?(Tt&2)===0&&In(t,0):gr|=a,Pn===vt&&(Pn=0)),sa(t)}function Bd(t,e){e===0&&(e=Cc()),t=rn(t,e),t!==null&&(hl(t,e),sa(t))}function hp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Bd(t,a)}function mp(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),Bd(t,a)}function pp(t,e){return Kt(t,e)}var fu=null,el=null,Ar=!1,du=!1,_r=!1,Ja=0;function sa(t){t!==el&&t.next===null&&(el===null?fu=el=t:el=el.next=t),du=!0,Ar||(Ar=!0,yp())}function Jl(t,e){if(!_r&&du){_r=!0;do for(var a=!1,n=fu;n!==null;){if(t!==0){var l=n.pendingLanes;if(l===0)var u=0;else{var o=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-Re(42|t)+1)-1,u&=l&~(o&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Vd(n,u))}else u=vt,u=gi(n,n===Bt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||dl(n,u)||(a=!0,Vd(n,u));n=n.next}while(a);_r=!1}}function gp(){Hd()}function Hd(){du=Ar=!1;var t=0;Ja!==0&&Mp()&&(t=Ja);for(var e=qt(),a=null,n=fu;n!==null;){var l=n.next,u=qd(n,e);u===0?(n.next=null,a===null?fu=l:a.next=l,l===null&&(el=a)):(a=n,(t!==0||(u&3)!==0)&&(du=!0)),n=l}ne!==0&&ne!==5||Jl(t),Ja!==0&&(Ja=0)}function qd(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,l=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var o=31-Re(u),h=1<<o,v=l[o];v===-1?((h&a)===0||(h&n)!==0)&&(l[o]=Gm(h,e)):v<=e&&(t.expiredLanes|=h),u&=~h}if(e=Bt,a=vt,a=gi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Me(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||dl(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&Me(n),qu(a)){case 2:case 8:a=Dc;break;case 32:a=di;break;case 268435456:a=Rc;break;default:a=di}return n=Yd.bind(null,t),a=Kt(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&Me(n),t.callbackPriority=2,t.callbackNode=null,2}function Yd(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(ou()&&t.callbackNode!==a)return null;var n=vt;return n=gi(t,t===Bt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Ed(t,n,e),qd(t,qt()),t.callbackNode!=null&&t.callbackNode===a?Yd.bind(null,t):null)}function Vd(t,e){if(ou())return null;Ed(t,e,!0)}function yp(){Rp(function(){(Tt&6)!==0?Kt(na,gp):Hd()})}function Tr(){if(Ja===0){var t=qn;t===0&&(t=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Ja=t}return Ja}function Gd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Si(""+t)}function Xd(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 vp(t,e,a,n,l){if(e==="submit"&&a&&a.stateNode===l){var u=Gd((l[Se]||null).action),o=n.submitter;o&&(e=(e=o[Se]||null)?Gd(e.formAction):o.getAttribute("formAction"),e!==null&&(u=e,o=null));var h=new Ai("action","action",null,n,l);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ja!==0){var v=o?Xd(l,o):new FormData(l);Zs(a,{pending:!0,data:v,method:l.method,action:u},null,v)}}else typeof u=="function"&&(h.preventDefault(),v=o?Xd(l,o):new FormData(l),Zs(a,{pending:!0,data:v,method:l.method,action:u},u,v))},currentTarget:l}]})}}for(var Mr=0;Mr<cs.length;Mr++){var Dr=cs[Mr],bp=Dr.toLowerCase(),Sp=Dr[0].toUpperCase()+Dr.slice(1);We(bp,"on"+Sp)}We(So,"onAnimationEnd"),We(wo,"onAnimationIteration"),We(Eo,"onAnimationStart"),We("dblclick","onDoubleClick"),We("focusin","onFocus"),We("focusout","onBlur"),We(j0,"onTransitionRun"),We(L0,"onTransitionStart"),We(B0,"onTransitionCancel"),We(xo,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),wp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function Qd(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 u=void 0;if(e)for(var o=n.length-1;0<=o;o--){var h=n[o],v=h.instance,D=h.currentTarget;if(h=h.listener,v!==u&&l.isPropagationStopped())break t;u=h,l.currentTarget=D;try{u(l)}catch(k){Mi(k)}l.currentTarget=null,u=v}else for(o=0;o<n.length;o++){if(h=n[o],v=h.instance,D=h.currentTarget,h=h.listener,v!==u&&l.isPropagationStopped())break t;u=h,l.currentTarget=D;try{u(l)}catch(k){Mi(k)}l.currentTarget=null,u=v}}}}function yt(t,e){var a=e[Yu];a===void 0&&(a=e[Yu]=new Set);var n=t+"__bubble";a.has(n)||(Zd(e,t,2,!1),a.add(n))}function Rr(t,e,a){var n=0;e&&(n|=4),Zd(a,t,n,e)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Cr(t){if(!t[hu]){t[hu]=!0,Lc.forEach(function(a){a!=="selectionchange"&&(wp.has(a)||Rr(a,!1,t),Rr(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hu]||(e[hu]=!0,Rr("selectionchange",!1,e))}}function Zd(t,e,a,n){switch(wh(e)){case 2:var l=$p;break;case 8:l=Wp;break;default:l=Qr}a=l.bind(null,e,a,t),l=void 0,!Wu||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 zr(t,e,a,n,l){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var h=n.stateNode.containerInfo;if(h===l)break;if(o===4)for(o=n.return;o!==null;){var v=o.tag;if((v===3||v===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;h!==null;){if(o=xn(h),o===null)return;if(v=o.tag,v===5||v===6||v===26||v===27){n=u=o;continue t}h=h.parentNode}}n=n.return}$c(function(){var D=u,k=Ku(a),B=[];t:{var C=Ao.get(t);if(C!==void 0){var z=Ai,F=t;switch(t){case"keypress":if(Ei(a)===0)break t;case"keydown":case"keyup":z=m0;break;case"focusin":F="focus",z=ts;break;case"focusout":F="blur",z=ts;break;case"beforeblur":case"afterblur":z=ts;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=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=a0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=y0;break;case So:case wo:case Eo:z=i0;break;case xo:z=b0;break;case"scroll":case"scrollend":z=t0;break;case"wheel":z=w0;break;case"copy":case"cut":case"paste":z=s0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=to;break;case"toggle":case"beforetoggle":z=x0}var it=(e&4)!==0,Lt=!it&&(t==="scroll"||t==="scrollend"),_=it?C!==null?C+"Capture":null:C;it=[];for(var S=D,M;S!==null;){var L=S;if(M=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||M===null||_===null||(L=gl(S,_),L!=null&&it.push($l(S,L,M))),Lt)break;S=S.return}0<it.length&&(C=new z(C,F,null,a,k),B.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&a!==Ju&&(F=a.relatedTarget||a.fromElement)&&(xn(F)||F[En]))break t;if((z||C)&&(C=k.window===k?k:(C=k.ownerDocument)?C.defaultView||C.parentWindow:window,z?(F=a.relatedTarget||a.toElement,z=D,F=F?xn(F):null,F!==null&&(Lt=d(F),it=F.tag,F!==Lt||it!==5&&it!==27&&it!==6)&&(F=null)):(z=null,F=D),z!==F)){if(it=Fc,L="onMouseLeave",_="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(it=to,L="onPointerLeave",_="onPointerEnter",S="pointer"),Lt=z==null?C:pl(z),M=F==null?C:pl(F),C=new it(L,S+"leave",z,a,k),C.target=Lt,C.relatedTarget=M,L=null,xn(k)===D&&(it=new it(_,S+"enter",F,a,k),it.target=M,it.relatedTarget=Lt,L=it),Lt=L,z&&F)e:{for(it=Ep,_=z,S=F,M=0,L=_;L;L=it(L))M++;L=0;for(var at=S;at;at=it(at))L++;for(;0<M-L;)_=it(_),M--;for(;0<L-M;)S=it(S),L--;for(;M--;){if(_===S||S!==null&&_===S.alternate){it=_;break e}_=it(_),S=it(S)}it=null}else it=null;z!==null&&Jd(B,C,z,it,!1),F!==null&&Lt!==null&&Jd(B,Lt,F,it,!0)}}t:{if(C=D?pl(D):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var At=ro;else if(uo(C))if(co)At=N0;else{At=z0;var et=C0}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?D&&Zu(D.elementType)&&(At=ro):At=O0;if(At&&(At=At(t,D))){so(B,At,a,k);break t}et&&et(t,C,D),t==="focusout"&&D&&C.type==="number"&&D.memoizedProps.value!=null&&Qu(C,"number",C.value)}switch(et=D?pl(D):window,t){case"focusin":(uo(et)||et.contentEditable==="true")&&(On=et,us=D,Al=null);break;case"focusout":Al=us=On=null;break;case"mousedown":ss=!0;break;case"contextmenu":case"mouseup":case"dragend":ss=!1,vo(B,a,k);break;case"selectionchange":if(k0)break;case"keydown":case"keyup":vo(B,a,k)}var dt;if(as)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 zn?lo(t,a)&&(bt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(bt="onCompositionStart");bt&&(eo&&a.locale!=="ko"&&(zn||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&zn&&(dt=Wc()):(za=k,Pu="value"in za?za.value:za.textContent,zn=!0)),et=mu(D,bt),0<et.length&&(bt=new Ic(bt,t,null,a,k),B.push({event:bt,listeners:et}),dt?bt.data=dt:(dt=io(a),dt!==null&&(bt.data=dt)))),(dt=_0?T0(t,a):M0(t,a))&&(bt=mu(D,"onBeforeInput"),0<bt.length&&(et=new Ic("onBeforeInput","beforeinput",null,a,k),B.push({event:et,listeners:bt}),et.data=dt)),vp(B,t,D,a,k)}Qd(B,e)})}function $l(t,e,a){return{instance:t,listener:e,currentTarget:a}}function mu(t,e){for(var a=e+"Capture",n=[];t!==null;){var l=t,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=gl(t,a),l!=null&&n.unshift($l(t,l,u)),l=gl(t,e),l!=null&&n.push($l(t,l,u))),t.tag===3)return n;t=t.return}return[]}function Ep(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Jd(t,e,a,n,l){for(var u=e._reactName,o=[];a!==null&&a!==n;){var h=a,v=h.alternate,D=h.stateNode;if(h=h.tag,v!==null&&v===n)break;h!==5&&h!==26&&h!==27||D===null||(v=D,l?(D=gl(a,u),D!=null&&o.unshift($l(a,D,v))):l||(D=gl(a,u),D!=null&&o.push($l(a,D,v)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var xp=/\r\n?/g,Ap=/\u0000|\uFFFD/g;function Kd(t){return(typeof t=="string"?t:""+t).replace(xp,`
`).replace(Ap,"")}function $d(t,e){return e=Kd(e),Kd(t)===e}function jt(t,e,a,n,l,u){switch(a){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Dn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Dn(t,""+n);break;case"className":vi(t,"class",n);break;case"tabIndex":vi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(t,a,n);break;case"style":Jc(t,n,u);break;case"data":if(e!=="object"){vi(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=Si(""+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 u=="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=Si(""+n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=oa);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=Si(""+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),yi(t,"popover",n);break;case"xlinkActuate":ca(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ca(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ca(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ca(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ca(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ca(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ca(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ca(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ca(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":yi(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=Fm.get(a)||a,yi(t,a,n))}}function Or(t,e,a,n,l,u){switch(a){case"style":Jc(t,n,u);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"?Dn(t,n):(typeof n=="number"||typeof n=="bigint")&&Dn(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=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bc.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),e=a.slice(2,l?a.length-7:void 0),u=t[Se]||null,u=u!=null?u[a]:null,typeof u=="function"&&t.removeEventListener(e,u,l),typeof n=="function")){typeof u!="function"&&u!==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,""):yi(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,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,u,o,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=u=o=l=null,v=null,D=null;for(n in a)if(a.hasOwnProperty(n)){var k=a[n];if(k!=null)switch(n){case"name":l=k;break;case"type":o=k;break;case"checked":v=k;break;case"defaultChecked":D=k;break;case"value":u=k;break;case"defaultValue":h=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,e));break;default:jt(t,e,n,k,a,null)}}Gc(t,u,h,v,D,o,l,!1);return;case"select":yt("invalid",t),n=o=u=null;for(l in a)if(a.hasOwnProperty(l)&&(h=a[l],h!=null))switch(l){case"value":u=h;break;case"defaultValue":o=h;break;case"multiple":n=h;default:jt(t,e,l,h,a,null)}e=u,a=o,t.multiple=!!n,e!=null?Mn(t,!!n,e,!1):a!=null&&Mn(t,!!n,a,!0);return;case"textarea":yt("invalid",t),u=l=n=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":n=h;break;case"defaultValue":l=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:jt(t,e,o,h,a,null)}Qc(t,n,l,u);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<Kl.length;n++)yt(Kl[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(D in a)if(a.hasOwnProperty(D)&&(n=a[D],n!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,D,n,a,null)}return;default:if(Zu(e)){for(k in a)a.hasOwnProperty(k)&&(n=a[k],n!==void 0&&Or(t,e,k,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 _p(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,u=null,o=null,h=null,v=null,D=null,k=null;for(z in a){var B=a[z];if(a.hasOwnProperty(z)&&B!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":v=B;default:n.hasOwnProperty(z)||jt(t,e,z,null,n,B)}}for(var C in n){var z=n[C];if(B=a[C],n.hasOwnProperty(C)&&(z!=null||B!=null))switch(C){case"type":u=z;break;case"name":l=z;break;case"checked":D=z;break;case"defaultChecked":k=z;break;case"value":o=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==B&&jt(t,e,C,z,n,B)}}Xu(t,o,h,v,D,k,u,l);return;case"select":z=o=h=C=null;for(u in a)if(v=a[u],a.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":z=v;default:n.hasOwnProperty(u)||jt(t,e,u,null,n,v)}for(l in n)if(u=n[l],v=a[l],n.hasOwnProperty(l)&&(u!=null||v!=null))switch(l){case"value":C=u;break;case"defaultValue":h=u;break;case"multiple":o=u;default:u!==v&&jt(t,e,l,u,n,v)}e=h,a=o,n=z,C!=null?Mn(t,!!a,C,!1):!!n!=!!a&&(e!=null?Mn(t,!!a,e,!0):Mn(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(o in n)if(l=n[o],u=a[o],n.hasOwnProperty(o)&&(l!=null||u!=null))switch(o){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!==u&&jt(t,e,o,l,n,u)}Xc(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(D in n)if(C=n[D],z=a[D],n.hasOwnProperty(D)&&C!==z&&(C!=null||z!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:jt(t,e,D,C,n,z)}return;default:if(Zu(e)){for(var Lt in a)C=a[Lt],a.hasOwnProperty(Lt)&&C!==void 0&&!n.hasOwnProperty(Lt)&&Or(t,e,Lt,void 0,n,C);for(k in n)C=n[k],z=a[k],!n.hasOwnProperty(k)||C===z||C===void 0&&z===void 0||Or(t,e,k,C,n,z);return}}for(var _ in a)C=a[_],a.hasOwnProperty(_)&&C!=null&&!n.hasOwnProperty(_)&&jt(t,e,_,null,n,C);for(B in n)C=n[B],z=a[B],!n.hasOwnProperty(B)||C===z||C==null&&z==null||jt(t,e,B,C,n,z)}function Wd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tp(){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],u=l.transferSize,o=l.initiatorType,h=l.duration;if(u&&h&&Wd(o)){for(o=0,h=l.responseEnd,n+=1;n<a.length;n++){var v=a[n],D=v.startTime;if(D>h)break;var k=v.transferSize,B=v.initiatorType;k&&Wd(B)&&(v=v.responseEnd,o+=k*(v<h?1:(h-D)/(v-D)))}if(--n,e+=8*(u+o)/(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 Nr=null,Ur=null;function pu(t){return t.nodeType===9?t:t.ownerDocument}function Pd(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 Fd(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 kr(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 jr=null;function Mp(){var t=window.event;return t&&t.type==="popstate"?t===jr?!1:(jr=t,!0):(jr=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,Dp=typeof clearTimeout=="function"?clearTimeout:void 0,th=typeof Promise=="function"?Promise:void 0,Rp=typeof queueMicrotask=="function"?queueMicrotask:typeof th<"u"?function(t){return th.resolve(null).then(t).catch(Cp)}:Id;function Cp(t){setTimeout(function(){throw t})}function Ka(t){return t==="head"}function eh(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),il(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Wl(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Wl(a);for(var u=a.firstChild;u;){var o=u.nextSibling,h=u.nodeName;u[ml]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&Wl(t.ownerDocument.body);a=l}while(a);il(e)}function ah(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 Lr(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":Lr(a),Vu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function zp(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[ml])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==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(u=t.getAttribute("src"),(u!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function Op(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ze(t.nextSibling),t===null))return null;return t}function nh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function Br(t){return t.data==="$?"||t.data==="$~"}function Hr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Np(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 Ze(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 qr=null;function lh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Ze(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function ih(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 uh(t,e,a){switch(e=pu(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 Wl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Vu(t)}var Je=new Map,sh=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ta=T.d;T.d={f:Up,r:kp,D:jp,C:Lp,L:Bp,m:Hp,X:Yp,S:qp,M:Vp};function Up(){var t=Ta.f(),e=su();return t||e}function kp(t){var e=An(t);e!==null&&e.tag===5&&e.type==="form"?Af(e):Ta.r(t)}var al=typeof document>"u"?null:document;function rh(t,e,a){var n=al;if(n&&typeof e=="string"&&e){var l=He(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),sh.has(l)||(sh.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 jp(t){Ta.D(t),rh("dns-prefetch",t,null)}function Lp(t,e){Ta.C(t,e),rh("preconnect",t,e)}function Bp(t,e,a){Ta.L(t,e,a);var n=al;if(n&&t&&e){var l='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+He(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+He(a.imageSizes)+'"]')):l+='[href="'+He(t)+'"]';var u=l;switch(e){case"style":u=nl(t);break;case"script":u=ll(t)}Je.has(u)||(t=A({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Je.set(u,t),n.querySelector(l)!==null||e==="style"&&n.querySelector(Pl(u))||e==="script"&&n.querySelector(Fl(u))||(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function Hp(t,e){Ta.m(t,e);var a=al;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+He(n)+'"][href="'+He(t)+'"]',u=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ll(t)}if(!Je.has(u)&&(t=A({rel:"modulepreload",href:t},e),Je.set(u,t),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fl(u)))return}n=a.createElement("link"),he(n,"link",t),ue(n),a.head.appendChild(n)}}}function qp(t,e,a){Ta.S(t,e,a);var n=al;if(n&&t){var l=_n(n).hoistableStyles,u=nl(t);e=e||"default";var o=l.get(u);if(!o){var h={loading:0,preload:null};if(o=n.querySelector(Pl(u)))h.loading=5;else{t=A({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Je.get(u))&&Yr(t,a);var v=o=n.createElement("link");ue(v),he(v,"link",t),v._p=new Promise(function(D,k){v.onload=D,v.onerror=k}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,yu(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:h},l.set(u,o)}}}function Yp(t,e){Ta.X(t,e);var a=al;if(a&&t){var n=_n(a).hoistableScripts,l=ll(t),u=n.get(l);u||(u=a.querySelector(Fl(l)),u||(t=A({src:t,async:!0},e),(e=Je.get(l))&&Vr(t,e),u=a.createElement("script"),ue(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(l,u))}}function Vp(t,e){Ta.M(t,e);var a=al;if(a&&t){var n=_n(a).hoistableScripts,l=ll(t),u=n.get(l);u||(u=a.querySelector(Fl(l)),u||(t=A({src:t,async:!0,type:"module"},e),(e=Je.get(l))&&Vr(t,e),u=a.createElement("script"),ue(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(l,u))}}function ch(t,e,a,n){var l=(l=ht.current)?gu(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=nl(a.href),a=_n(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=nl(a.href);var u=_n(l).hoistableStyles,o=u.get(t);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,o),(u=l.querySelector(Pl(t)))&&!u._p&&(o.instance=u,o.state.loading=5),Je.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},Je.set(t,a),u||Gp(l,t,a,o.state))),e&&n===null)throw Error(r(528,""));return o}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=ll(a),a=_n(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 nl(t){return'href="'+He(t)+'"'}function Pl(t){return'link[rel="stylesheet"]['+t+"]"}function oh(t){return A({},t,{"data-precedence":t.precedence,precedence:null})}function Gp(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 ll(t){return'[src="'+He(t)+'"]'}function Fl(t){return"script[async]"+t}function fh(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+He(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),yu(n,a.precedence,t),e.instance=n;case"stylesheet":l=nl(a.href);var u=t.querySelector(Pl(l));if(u)return e.state.loading|=4,e.instance=u,ue(u),u;n=oh(a),(l=Je.get(l))&&Yr(n,l),u=(t.ownerDocument||t).createElement("link"),ue(u);var o=u;return o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),he(u,"link",n),e.state.loading|=4,yu(u,a.precedence,t),e.instance=u;case"script":return u=ll(a.src),(l=t.querySelector(Fl(u)))?(e.instance=l,ue(l),l):(n=a,(l=Je.get(u))&&(n=A({},a),Vr(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,yu(n,a.precedence,t));return e.instance}function yu(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,u=l,o=0;o<n.length;o++){var h=n[o];if(h.dataset.precedence===e)u=h;else if(u!==l)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Yr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Vr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function dh(t,e,a){if(vu===null){var n=new Map,l=vu=new Map;l.set(a,n)}else l=vu,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 u=a[l];if(!(u[ml]||u[ce]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(e)||"";o=t+o;var h=n.get(o);h?h.push(u):n.set(o,[u])}}return n}function hh(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Xp(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 mh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Qp(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=nl(n.href),u=e.querySelector(Pl(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=bu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=u,ue(u);return}u=e.ownerDocument||e,n=oh(n),(l=Je.get(l))&&Yr(n,l),u=u.createElement("link"),ue(u);var o=u;o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),he(u,"link",n),a.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=bu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Gr=0;function Zp(t,e){return t.stylesheets&&t.count===0&&wu(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&wu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Gr===0&&(Gr=62500*Tp());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&wu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Gr?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Su=null;function wu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Su=new Map,e.forEach(Jp,t),Su=null,bu.call(t))}function Jp(t,e){if(!(e.state.loading&4)){var a=Su.get(t);if(a)var n=a.get(null);else{a=new Map,Su.set(t,a);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var o=l[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}l=e.instance,o=l.getAttribute("data-precedence"),u=a.get(o)||n,u===n&&a.set(null,l),a.set(o,l),this.count++,n=bu.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),u?u.parentNode.insertBefore(l,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Il={$$typeof:m,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Kp(t,e,a,n,l,u,o,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=Bu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.hiddenUpdates=Bu(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function ph(t,e,a,n,l,u,o,h,v,D,k,B){return t=new Kp(t,e,a,o,v,D,k,B,h),e=1,u===!0&&(e|=24),u=ze(3,null,null,e),t.current=u,u.stateNode=t,e=Es(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:a,cache:e},Ts(u),t}function gh(t){return t?(t=kn,t):kn}function yh(t,e,a,n,l,u){l=gh(l),n.context===null?n.context=l:n.pendingContext=l,n=La(e),n.payload={element:a},u=u===void 0?null:u,u!==null&&(n.callback=u),a=Ba(t,n,e),a!==null&&(Te(a,t,e),zl(a,t,e))}function vh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Xr(t,e){vh(t,e),(t=t.alternate)&&vh(t,e)}function bh(t){if(t.tag===13||t.tag===31){var e=rn(t,67108864);e!==null&&Te(e,t,67108864),Xr(t,67108864)}}function Sh(t){if(t.tag===13||t.tag===31){var e=je();e=Hu(e);var a=rn(t,e);a!==null&&Te(a,t,e),Xr(t,e)}}var Eu=!0;function $p(t,e,a,n){var l=U.T;U.T=null;var u=T.p;try{T.p=2,Qr(t,e,a,n)}finally{T.p=u,U.T=l}}function Wp(t,e,a,n){var l=U.T;U.T=null;var u=T.p;try{T.p=8,Qr(t,e,a,n)}finally{T.p=u,U.T=l}}function Qr(t,e,a,n){if(Eu){var l=Zr(n);if(l===null)zr(t,e,n,xu,a),Eh(t,n);else if(Fp(l,t,e,a,n))n.stopPropagation();else if(Eh(t,n),e&4&&-1<Pp.indexOf(t)){for(;l!==null;){var u=An(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=an(u.pendingLanes);if(o!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var v=1<<31-Re(o);h.entanglements[1]|=v,o&=~v}sa(u),(Tt&6)===0&&(iu=qt()+500,Jl(0))}}break;case 31:case 13:h=rn(u,2),h!==null&&Te(h,u,2),su(),Xr(u,2)}if(u=Zr(n),u===null&&zr(t,e,n,xu,a),u===l)break;l=u}l!==null&&n.stopPropagation()}else zr(t,e,n,null,a)}}function Zr(t){return t=Ku(t),Jr(t)}var xu=null;function Jr(t){if(xu=null,t=xn(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 xu=t,null}function wh(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(aa()){case na:return 2;case Dc:return 8;case di:case Lm:return 32;case Rc:return 268435456;default:return 32}default:return 32}}var Kr=!1,$a=null,Wa=null,Pa=null,ti=new Map,ei=new Map,Fa=[],Pp="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 Eh(t,e){switch(t){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":ti.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(e.pointerId)}}function ai(t,e,a,n,l,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:u,targetContainers:[l]},e!==null&&(e=An(e),e!==null&&bh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function Fp(t,e,a,n,l){switch(e){case"focusin":return $a=ai($a,t,e,a,n,l),!0;case"dragenter":return Wa=ai(Wa,t,e,a,n,l),!0;case"mouseover":return Pa=ai(Pa,t,e,a,n,l),!0;case"pointerover":var u=l.pointerId;return ti.set(u,ai(ti.get(u)||null,t,e,a,n,l)),!0;case"gotpointercapture":return u=l.pointerId,ei.set(u,ai(ei.get(u)||null,t,e,a,n,l)),!0}return!1}function xh(t){var e=xn(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,kc(t.priority,function(){Sh(a)});return}}else if(e===31){if(e=b(a),e!==null){t.blockedOn=e,kc(t.priority,function(){Sh(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 Au(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Zr(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);Ju=n,a.target.dispatchEvent(n),Ju=null}else return e=An(a),e!==null&&bh(e),t.blockedOn=a,!1;e.shift()}return!0}function Ah(t,e,a){Au(t)&&a.delete(e)}function Ip(){Kr=!1,$a!==null&&Au($a)&&($a=null),Wa!==null&&Au(Wa)&&(Wa=null),Pa!==null&&Au(Pa)&&(Pa=null),ti.forEach(Ah),ei.forEach(Ah)}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,Kr||(Kr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Ip)))}var Tu=null;function _h(t){Tu!==t&&(Tu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Tu===t&&(Tu=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(Jr(n||a)===null)continue;break}var u=An(a);u!==null&&(t.splice(e,3),e-=3,Zs(u,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function il(t){function e(v){return _u(v,t)}$a!==null&&_u($a,t),Wa!==null&&_u(Wa,t),Pa!==null&&_u(Pa,t),ti.forEach(e),ei.forEach(e);for(var a=0;a<Fa.length;a++){var n=Fa[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)xh(a),a.blockedOn===null&&Fa.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],u=a[n+1],o=l[Se]||null;if(typeof u=="function")o||_h(a);else if(o){var h=null;if(u&&u.hasAttribute("formAction")){if(l=u,o=u[Se]||null)h=o.formAction;else if(Jr(l)!==null)continue}else h=o.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),_h(a)}}}function Th(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var 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 $r(t){this._internalRoot=t}Mu.prototype.render=$r.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,n=je();yh(a,n,t,e,null,null)},Mu.prototype.unmount=$r.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;yh(t.current,2,null,t,null,null),su(),e[En]=null}};function Mu(t){this._internalRoot=t}Mu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Uc();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Fa.length&&e!==0&&e<Fa[a].priority;a++);Fa.splice(a,0,t),a===0&&xh(t)}};var Mh=i.version;if(Mh!=="19.2.7")throw Error(r(527,Mh,"19.2.7"));T.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=p(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var tg={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Du.isDisabled&&Du.supportsFiber)try{fl=Du.inject(tg),De=Du}catch{}}return li.createRoot=function(t,e){if(!f(t))throw Error(r(299));var a=!1,n="",l=Uf,u=kf,o=jf;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&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=ph(t,1,!1,null,null,a,n,null,l,u,o,Th),t[En]=e.current,Cr(t),new $r(e)},li.hydrateRoot=function(t,e,a){if(!f(t))throw Error(r(299));var n=!1,l="",u=Uf,o=kf,h=jf,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),e=ph(t,1,!0,e,a??null,n,l,v,u,o,h,Th),e.context=gh(null),a=e.current,n=je(),n=Hu(n),l=La(n),l.callback=null,Ba(a,l,n),a=n,e.current.lanes=a,hl(e,a),sa(e),t[En]=e.current,Cr(t),new Mu(e)},li.version="19.2.7",li}var Hh;function mg(){if(Hh)return Fr.exports;Hh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Fr.exports=hg(),Fr.exports}var pg=mg();/**
 * 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 qh="popstate";function Yh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function gg(s={}){function i(r,f){var p;let d=(p=f.state)==null?void 0:p.masked,{pathname:g,search:b,hash:y}=d||r.location;return cc("",{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 c(r,f){return typeof f=="string"?f:ri(f)}return vg(i,c,null,s)}function Xt(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Ke(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function yg(){return Math.random().toString(36).substring(2,10)}function Vh(s,i){return{usr:s.state,key:s.key,idx:i,masked:s.mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function cc(s,i,c=null,r,f){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?ul(i):i,state:c,key:i&&i.key||r||yg(),mask:f}}function ri({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function ul(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function vg(s,i,c,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,g=f.history,b="POP",y=null,p=R();p==null&&(p=0,g.replaceState({...g.state,idx:p},""));function R(){return(g.state||{idx:null}).idx}function A(){b="POP";let j=R(),O=j==null?null:j-p;p=j,y&&y({action:b,location:Z.location,delta:O})}function q(j,O){b="PUSH";let N=Yh(j)?j:cc(Z.location,j,O);p=R()+1;let m=Vh(N,p),J=Z.createHref(N.mask||N);try{g.pushState(m,"",J)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;f.location.assign(J)}d&&y&&y({action:b,location:Z.location,delta:1})}function W(j,O){b="REPLACE";let N=Yh(j)?j:cc(Z.location,j,O);p=R();let m=Vh(N,p),J=Z.createHref(N.mask||N);g.replaceState(m,"",J),d&&y&&y({action:b,location:Z.location,delta:0})}function P(j){return bg(f,j)}let Z={get action(){return b},get location(){return s(f,g)},listen(j){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(qh,A),y=j,()=>{f.removeEventListener(qh,A),y=null}},createHref(j){return i(f,j)},createURL:P,encodeLocation(j){let O=P(j);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:q,replace:W,go(j){return g.go(j)}};return Z}function bg(s,i,c=!1){let r="http://localhost";s&&(r=s.location.origin!=="null"?s.location.origin:s.location.href),Xt(r,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:ri(i);return f=f.replace(/ $/,"%20"),!c&&f.startsWith("//")&&(f=r+f),new URL(f,r)}function om(s,i,c="/"){return Sg(s,i,c,!1)}function Sg(s,i,c,r,f){let d=typeof i=="string"?ul(i):i,g=Ma(d.pathname||"/",c);if(g==null)return null;let b=wg(s),y=null,p=Ng(g);for(let R=0;y==null&&R<b.length;++R)y=zg(b[R],p,r);return y}function wg(s){let i=fm(s);return Eg(i),i}function fm(s,i=[],c=[],r="",f=!1){let d=(g,b,y=f,p)=>{let R={relativePath:p===void 0?g.path||"":p,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(r)&&y)return;Xt(R.relativePath.startsWith(r),`Absolute route path "${R.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(r.length)}let A=ta([r,R.relativePath]),q=c.concat(R);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}".`),fm(g.children,i,q,A,y)),!(g.path==null&&!g.index)&&i.push({path:A,score:Rg(A,g.index),routesMeta:q})};return s.forEach((g,b)=>{var y;if(g.path===""||!((y=g.path)!=null&&y.includes("?")))d(g,b);else for(let p of dm(g.path))d(g,b,!0,p)}),i}function dm(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,f=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let g=dm(r.join("/")),b=[];return b.push(...g.map(y=>y===""?d:[d,y].join("/"))),f&&b.push(...g),b.map(y=>s.startsWith("/")&&y===""?"/":y)}function Eg(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Cg(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var xg=/^:[\w-]+$/,Ag=3,_g=2,Tg=1,Mg=10,Dg=-2,Gh=s=>s==="*";function Rg(s,i){let c=s.split("/"),r=c.length;return c.some(Gh)&&(r+=Dg),i&&(r+=_g),c.filter(f=>!Gh(f)).reduce((f,d)=>f+(xg.test(d)?Ag:d===""?Tg:Mg),r)}function Cg(s,i){return s.length===i.length&&s.slice(0,-1).every((r,f)=>r===i[f])?s[s.length-1]-i[i.length-1]:0}function zg(s,i,c=!1){let{routesMeta:r}=s,f={},d="/",g=[];for(let b=0;b<r.length;++b){let y=r[b],p=b===r.length-1,R=d==="/"?i:i.slice(d.length)||"/",A=Ou({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},R),q=y.route;if(!A&&p&&c&&!r[r.length-1].route.index&&(A=Ou({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},R)),!A)return null;Object.assign(f,A.params),g.push({params:f,pathname:ta([d,A.pathname]),pathnameBase:Lg(ta([d,A.pathnameBase])),route:q}),A.pathnameBase!=="/"&&(d=ta([d,A.pathnameBase]))}return g}function Ou(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Og(s.path,s.caseSensitive,s.end),f=i.match(c);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),b=f.slice(1);return{params:r.reduce((p,{paramName:R,isOptional:A},q)=>{if(R==="*"){let P=b[q]||"";g=d.slice(0,d.length-P.length).replace(/(.)\/+$/,"$1")}const W=b[q];return A&&!W?p[R]=void 0:p[R]=(W||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:g,pattern:s}}function Og(s,i=!1,c=!0){Ke(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],f="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,y,p,R)=>{if(r.push({paramName:b,isOptional:y!=null}),y){let A=R.charAt(p+g.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),f+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":s!==""&&s!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function Ng(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ke(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function Ma(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var Ug=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function kg(s,i="/"){let{pathname:c,search:r="",hash:f=""}=typeof s=="string"?ul(s):s,d;return c?(c=hm(c),c.startsWith("/")?d=Xh(c.substring(1),"/"):d=Xh(c,i)):d=i,{pathname:d,search:Bg(r),hash:Hg(f)}}function Xh(s,i){let c=Nu(i).split("/");return s.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function ac(s,i,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jg(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function gc(s){let i=jg(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Uu(s,i,c,r=!1){let f;typeof s=="string"?f=ul(s):(f={...s},Xt(!f.pathname||!f.pathname.includes("?"),ac("?","pathname","search",f)),Xt(!f.pathname||!f.pathname.includes("#"),ac("#","pathname","hash",f)),Xt(!f.search||!f.search.includes("#"),ac("#","search","hash",f)));let d=s===""||f.pathname==="",g=d?"/":f.pathname,b;if(g==null)b=c;else{let A=i.length-1;if(!r&&g.startsWith("..")){let q=g.split("/");for(;q[0]==="..";)q.shift(),A-=1;f.pathname=q.join("/")}b=A>=0?i[A]:"/"}let y=kg(f,b),p=g&&g!=="/"&&g.endsWith("/"),R=(d||g===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(p||R)&&(y.pathname+="/"),y}var hm=s=>s.replace(/\/\/+/g,"/"),ta=s=>hm(s.join("/")),Nu=s=>s.replace(/\/+$/,""),Lg=s=>Nu(s).replace(/^\/*/,"/"),Bg=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Hg=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,qg=class{constructor(s,i,c,r=!1){this.status=s,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Yg(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Vg(s){let i=s.map(c=>c.route.path).filter(Boolean);return ta(i)||"/"}var mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function pm(s,i){let c=s;if(typeof c!="string"||!Ug.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,f=!1;if(mm)try{let d=new URL(window.location.href),g=c.startsWith("//")?new URL(d.protocol+c):new URL(c),b=Ma(g.pathname,i);g.origin===d.origin&&b!=null?c=b+g.search+g.hash:f=!0}catch{Ke(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gm=["POST","PUT","PATCH","DELETE"];new Set(gm);var Gg=["GET",...gm];new Set(Gg);var sl=x.createContext(null);sl.displayName="DataRouter";var ku=x.createContext(null);ku.displayName="DataRouterState";var ym=x.createContext(!1);function Xg(){return x.useContext(ym)}var vm=x.createContext({isTransitioning:!1});vm.displayName="ViewTransition";var Qg=x.createContext(new Map);Qg.displayName="Fetchers";var Zg=x.createContext(null);Zg.displayName="Await";var Le=x.createContext(null);Le.displayName="Navigation";var oi=x.createContext(null);oi.displayName="Location";var $e=x.createContext({outlet:null,matches:[],isDataRoute:!1});$e.displayName="Route";var yc=x.createContext(null);yc.displayName="RouteError";var bm="REACT_ROUTER_ERROR",Jg="REDIRECT",Kg="ROUTE_ERROR_RESPONSE";function $g(s){if(s.startsWith(`${bm}:${Jg}:{`))try{let i=JSON.parse(s.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 Wg(s){if(s.startsWith(`${bm}:${Kg}:{`))try{let i=JSON.parse(s.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new qg(i.status,i.statusText,i.data)}catch{}}function Pg(s,{relative:i}={}){Xt(rl(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=x.useContext(Le),{hash:f,pathname:d,search:g}=fi(s,{relative:i}),b=d;return c!=="/"&&(b=d==="/"?c:ta([c,d])),r.createHref({pathname:b,search:g,hash:f})}function rl(){return x.useContext(oi)!=null}function ea(){return Xt(rl(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(oi).location}var Sm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wm(s){x.useContext(Le).static||x.useLayoutEffect(s)}function cl(){let{isDataRoute:s}=x.useContext($e);return s?hy():Fg()}function Fg(){Xt(rl(),"useNavigate() may be used only in the context of a <Router> component.");let s=x.useContext(sl),{basename:i,navigator:c}=x.useContext(Le),{matches:r}=x.useContext($e),{pathname:f}=ea(),d=JSON.stringify(gc(r)),g=x.useRef(!1);return wm(()=>{g.current=!0}),x.useCallback((y,p={})=>{if(Ke(g.current,Sm),!g.current)return;if(typeof y=="number"){c.go(y);return}let R=Uu(y,JSON.parse(d),f,p.relative==="path");s==null&&i!=="/"&&(R.pathname=R.pathname==="/"?i:ta([i,R.pathname])),(p.replace?c.replace:c.push)(R,p.state,p)},[i,c,d,f,s])}var Ig=x.createContext(null);function ty(s){let i=x.useContext($e).outlet;return x.useMemo(()=>i&&x.createElement(Ig.Provider,{value:s},i),[i,s])}function ey(){let{matches:s}=x.useContext($e),i=s[s.length-1];return(i==null?void 0:i.params)??{}}function fi(s,{relative:i}={}){let{matches:c}=x.useContext($e),{pathname:r}=ea(),f=JSON.stringify(gc(c));return x.useMemo(()=>Uu(s,JSON.parse(f),r,i==="path"),[s,f,r,i])}function ay(s,i){return Em(s,i)}function Em(s,i,c){var j;Xt(rl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=x.useContext(Le),{matches:f}=x.useContext($e),d=f[f.length-1],g=d?d.params:{},b=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let O=p&&p.path||"";Am(b,!p||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 R=ea(),A;if(i){let O=typeof i=="string"?ul(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=R;let q=A.pathname||"/",W=q;if(y!=="/"){let O=y.replace(/^\//,"").split("/");W="/"+q.replace(/^\//,"").split("/").slice(O.length).join("/")}let P=c&&c.state.matches.length?c.state.matches.map(O=>Object.assign(O,{route:c.manifest[O.route.id]||O.route})):om(s,{pathname:W});Ke(p||P!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Ke(P==null||P[P.length-1].route.element!==void 0||P[P.length-1].route.Component!==void 0||P[P.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 Z=sy(P&&P.map(O=>Object.assign({},O,{params:Object.assign({},g,O.params),pathname:ta([y,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:ta([y,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,c);return i&&Z?x.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},Z):Z}function ny(){let s=dy(),i=Yg(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.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:",s),g=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:d},"ErrorBoundary")," or"," ",x.createElement("code",{style:d},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},i),c?x.createElement("pre",{style:f},c):null,g)}var ly=x.createElement(ny,null),xm=class extends x.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Wg(s.digest);c&&(s=c)}let i=s!==void 0?x.createElement($e.Provider,{value:this.props.routeContext},x.createElement(yc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?x.createElement(iy,{error:s},i):i}};xm.contextType=ym;var nc=new WeakMap;function iy({children:s,error:i}){let{basename:c}=x.useContext(Le);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=$g(i.digest);if(r){let f=nc.get(i);if(f)throw f;let d=pm(r.location,c);if(mm&&!nc.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 nc.set(i,g),g}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function uy({routeContext:s,match:i,children:c}){let r=x.useContext(sl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement($e.Provider,{value:s},c)}function sy(s,i=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let f=s,d=r==null?void 0:r.errors;if(d!=null){let R=f.findIndex(A=>A.route.id&&(d==null?void 0:d[A.route.id])!==void 0);Xt(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,R+1))}let g=!1,b=-1;if(c&&r){g=r.renderFallback;for(let R=0;R<f.length;R++){let A=f[R];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(b=R),A.route.id){let{loaderData:q,errors:W}=r,P=A.route.loader&&!q.hasOwnProperty(A.route.id)&&(!W||W[A.route.id]===void 0);if(A.route.lazy||P){c.isStatic&&(g=!0),b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}}let y=c==null?void 0:c.onError,p=r&&y?(R,A)=>{var q,W;y(R,{location:r.location,params:((W=(q=r.matches)==null?void 0:q[0])==null?void 0:W.params)??{},pattern:Vg(r.matches),errorInfo:A})}:void 0;return f.reduceRight((R,A,q)=>{let W,P=!1,Z=null,j=null;r&&(W=d&&A.route.id?d[A.route.id]:void 0,Z=A.route.errorElement||ly,g&&(b<0&&q===0?(Am("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),P=!0,j=null):b===q&&(P=!0,j=A.route.hydrateFallbackElement||null)));let O=i.concat(f.slice(0,q+1)),N=()=>{let m;return W?m=Z:P?m=j:A.route.Component?m=x.createElement(A.route.Component,null):A.route.element?m=A.route.element:m=R,x.createElement(uy,{match:A,routeContext:{outlet:R,matches:O,isDataRoute:r!=null},children:m})};return r&&(A.route.ErrorBoundary||A.route.errorElement||q===0)?x.createElement(xm,{location:r.location,revalidation:r.revalidation,component:Z,error:W,children:N(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:p}):N()},null)}function vc(s){return`${s} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ry(s){let i=x.useContext(sl);return Xt(i,vc(s)),i}function cy(s){let i=x.useContext(ku);return Xt(i,vc(s)),i}function oy(s){let i=x.useContext($e);return Xt(i,vc(s)),i}function bc(s){let i=oy(s),c=i.matches[i.matches.length-1];return Xt(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function fy(){return bc("useRouteId")}function dy(){var r;let s=x.useContext(yc),i=cy("useRouteError"),c=bc("useRouteError");return s!==void 0?s:(r=i.errors)==null?void 0:r[c]}function hy(){let{router:s}=ry("useNavigate"),i=bc("useNavigate"),c=x.useRef(!1);return wm(()=>{c.current=!0}),x.useCallback(async(f,d={})=>{Ke(c.current,Sm),c.current&&(typeof f=="number"?await s.navigate(f):await s.navigate(f,{fromRouteId:i,...d}))},[s,i])}var Qh={};function Am(s,i,c){!i&&!Qh[s]&&(Qh[s]=!0,Ke(!1,c))}x.memo(my);function my({routes:s,manifest:i,future:c,state:r,isStatic:f,onError:d}){return Em(s,void 0,{manifest:i,state:r,isStatic:f,onError:d})}function wn({to:s,replace:i,state:c,relative:r}){Xt(rl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(Le);Ke(!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}=x.useContext($e),{pathname:g}=ea(),b=cl(),y=Uu(s,gc(d),g,r==="path"),p=JSON.stringify(y);return x.useEffect(()=>{b(JSON.parse(p),{replace:i,state:c,relative:r})},[b,p,r,i,c]),null}function py(s){return ty(s.context)}function Mt(s){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 gy({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:f,static:d=!1,useTransitions:g}){Xt(!rl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=s.replace(/^\/*/,"/"),y=x.useMemo(()=>({basename:b,navigator:f,static:d,useTransitions:g,future:{}}),[b,f,d,g]);typeof c=="string"&&(c=ul(c));let{pathname:p="/",search:R="",hash:A="",state:q=null,key:W="default",mask:P}=c,Z=x.useMemo(()=>{let j=Ma(p,b);return j==null?null:{location:{pathname:j,search:R,hash:A,state:q,key:W,mask:P},navigationType:r}},[b,p,R,A,q,W,r,P]);return Ke(Z!=null,`<Router basename="${b}"> is not able to match the URL "${p}${R}${A}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:x.createElement(Le.Provider,{value:y},x.createElement(oi.Provider,{children:i,value:Z}))}function yy({children:s,location:i}){return ay(oc(s),i)}function oc(s,i=[]){let c=[];return x.Children.forEach(s,(r,f)=>{if(!x.isValidElement(r))return;let d=[...i,f];if(r.type===x.Fragment){c.push.apply(c,oc(r.props.children,d));return}Xt(r.type===Mt,`[${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=oc(r.props.children,d)),c.push(g)}),c}var Cu="get",zu="application/x-www-form-urlencoded";function ju(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function vy(s){return ju(s)&&s.tagName.toLowerCase()==="button"}function by(s){return ju(s)&&s.tagName.toLowerCase()==="form"}function Sy(s){return ju(s)&&s.tagName.toLowerCase()==="input"}function wy(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function Ey(s,i){return s.button===0&&(!i||i==="_self")&&!wy(s)}function fc(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((i,c)=>{let r=s[c];return i.concat(Array.isArray(r)?r.map(f=>[c,f]):[[c,r]])},[]))}function xy(s,i){let c=fc(s);return i&&i.forEach((r,f)=>{c.has(f)||i.getAll(f).forEach(d=>{c.append(f,d)})}),c}var Ru=null;function Ay(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var _y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lc(s){return s!=null&&!_y.has(s)?(Ke(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):s}function Ty(s,i){let c,r,f,d,g;if(by(s)){let b=s.getAttribute("action");r=b?Ma(b,i):null,c=s.getAttribute("method")||Cu,f=lc(s.getAttribute("enctype"))||zu,d=new FormData(s)}else if(vy(s)||Sy(s)&&(s.type==="submit"||s.type==="image")){let b=s.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||b.getAttribute("action");if(r=y?Ma(y,i):null,c=s.getAttribute("formmethod")||b.getAttribute("method")||Cu,f=lc(s.getAttribute("formenctype"))||lc(b.getAttribute("enctype"))||zu,d=new FormData(b,s),!Ay()){let{name:p,type:R,value:A}=s;if(R==="image"){let q=p?`${p}.`:"";d.append(`${q}x`,"0"),d.append(`${q}y`,"0")}else p&&d.append(p,A)}}else{if(ju(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Cu,r=null,f=zu,g=s}return d&&f==="text/plain"&&(g=d,d=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sc(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function _m(s,i,c,r){let f=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:i&&Ma(f.pathname,i)==="/"?f.pathname=`${Nu(i)}/_root.${r}`:f.pathname=`${Nu(f.pathname)}.${r}`,f}async function My(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Dy(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function Ry(s,i,c){let r=await Promise.all(s.map(async f=>{let d=i.routes[f.route.id];if(d){let g=await My(d,c);return g.links?g.links():[]}return[]}));return Ny(r.flat(1).filter(Dy).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Zh(s,i,c,r,f,d){let g=(y,p)=>c[p]?y.route.id!==c[p].route.id:!0,b=(y,p)=>{var R;return c[p].pathname!==y.pathname||((R=c[p].route.path)==null?void 0:R.endsWith("*"))&&c[p].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,p)=>g(y,p)||b(y,p)):d==="data"?i.filter((y,p)=>{var A;let R=r.routes[y.route.id];if(!R||!R.hasLoader)return!1;if(g(y,p)||b(y,p))return!0;if(y.route.shouldRevalidate){let q=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((A=c[0])==null?void 0:A.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof q=="boolean")return q}return!0}):[]}function Cy(s,i,{includeHydrateFallback:c}={}){return zy(s.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)),c&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function zy(s){return[...new Set(s)]}function Oy(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function Ny(s,i){let c=new Set;return new Set(i),s.reduce((r,f)=>{let d=JSON.stringify(Oy(f));return c.has(d)||(c.add(d),r.push({key:d,link:f})),r},[])}function wc(){let s=x.useContext(sl);return Sc(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Uy(){let s=x.useContext(ku);return Sc(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ec=x.createContext(void 0);Ec.displayName="FrameworkContext";function xc(){let s=x.useContext(Ec);return Sc(s,"You must render this element inside a <HydratedRouter> element"),s}function ky(s,i){let c=x.useContext(Ec),[r,f]=x.useState(!1),[d,g]=x.useState(!1),{onFocus:b,onBlur:y,onMouseEnter:p,onMouseLeave:R,onTouchStart:A}=i,q=x.useRef(null);x.useEffect(()=>{if(s==="render"&&g(!0),s==="viewport"){let Z=O=>{O.forEach(N=>{g(N.isIntersecting)})},j=new IntersectionObserver(Z,{threshold:.5});return q.current&&j.observe(q.current),()=>{j.disconnect()}}},[s]),x.useEffect(()=>{if(r){let Z=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(Z)}}},[r]);let W=()=>{f(!0)},P=()=>{f(!1),g(!1)};return c?s!=="intent"?[d,q,{}]:[d,q,{onFocus:ii(b,W),onBlur:ii(y,P),onMouseEnter:ii(p,W),onMouseLeave:ii(R,P),onTouchStart:ii(A,W)}]:[!1,q,{}]}function ii(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function jy({page:s,...i}){let c=Xg(),{router:r}=wc(),f=x.useMemo(()=>om(r.routes,s,r.basename),[r.routes,s,r.basename]);return f?c?x.createElement(By,{page:s,matches:f,...i}):x.createElement(Hy,{page:s,matches:f,...i}):null}function Ly(s){let{manifest:i,routeModules:c}=xc(),[r,f]=x.useState([]);return x.useEffect(()=>{let d=!1;return Ry(s,i,c).then(g=>{d||f(g)}),()=>{d=!0}},[s,i,c]),r}function By({page:s,matches:i,...c}){let r=ea(),{future:f}=xc(),{basename:d}=wc(),g=x.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let b=_m(s,d,f.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,p=[];for(let R of i)typeof R.route.shouldRevalidate=="function"?y=!0:p.push(R.route.id);return y&&p.length>0&&b.searchParams.set("_routes",p.join(",")),[b.pathname+b.search]},[d,f.v8_trailingSlashAwareDataRequests,s,r,i]);return x.createElement(x.Fragment,null,g.map(b=>x.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...c})))}function Hy({page:s,matches:i,...c}){let r=ea(),{future:f,manifest:d,routeModules:g}=xc(),{basename:b}=wc(),{loaderData:y,matches:p}=Uy(),R=x.useMemo(()=>Zh(s,i,p,d,r,"data"),[s,i,p,d,r]),A=x.useMemo(()=>Zh(s,i,p,d,r,"assets"),[s,i,p,d,r]),q=x.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let Z=new Set,j=!1;if(i.forEach(N=>{var J;let m=d.routes[N.route.id];!m||!m.hasLoader||(!R.some(G=>G.route.id===N.route.id)&&N.route.id in y&&((J=g[N.route.id])!=null&&J.shouldRevalidate)||m.hasClientLoader?j=!0:Z.add(N.route.id))}),Z.size===0)return[];let O=_m(s,b,f.v8_trailingSlashAwareDataRequests,"data");return j&&Z.size>0&&O.searchParams.set("_routes",i.filter(N=>Z.has(N.route.id)).map(N=>N.route.id).join(",")),[O.pathname+O.search]},[b,f.v8_trailingSlashAwareDataRequests,y,r,d,R,i,s,g]),W=x.useMemo(()=>Cy(A,d),[A,d]),P=Ly(A);return x.createElement(x.Fragment,null,q.map(Z=>x.createElement("link",{key:Z,rel:"prefetch",as:"fetch",href:Z,...c})),W.map(Z=>x.createElement("link",{key:Z,rel:"modulepreload",href:Z,...c})),P.map(({key:Z,link:j})=>x.createElement("link",{key:Z,nonce:c.nonce,...j,crossOrigin:j.crossOrigin??c.crossOrigin})))}function qy(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var Yy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Yy&&(window.__reactRouterVersion="7.17.0")}catch{}function Vy({basename:s,children:i,useTransitions:c,window:r}){let f=x.useRef();f.current==null&&(f.current=gg({window:r,v5Compat:!0}));let d=f.current,[g,b]=x.useState({action:d.action,location:d.location}),y=x.useCallback(p=>{c===!1?b(p):x.startTransition(()=>b(p))},[c]);return x.useLayoutEffect(()=>d.listen(y),[d,y]),x.createElement(gy,{basename:s,children:i,location:g.location,navigationType:g.action,navigator:d,useTransitions:c})}var Tm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ac=x.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:f,reloadDocument:d,replace:g,mask:b,state:y,target:p,to:R,preventScrollReset:A,viewTransition:q,defaultShouldRevalidate:W,...P},Z){let{basename:j,navigator:O,useTransitions:N}=x.useContext(Le),m=typeof R=="string"&&Tm.test(R),J=pm(R,j);R=J.to;let G=Pg(R,{relative:f}),tt=ea(),X=null;if(b){let Ht=Uu(b,[],tt.mask?tt.mask.pathname:"/",!0);j!=="/"&&(Ht.pathname=Ht.pathname==="/"?j:ta([j,Ht.pathname])),X=O.createHref(Ht)}let[Et,Qt,re]=ky(r,P),le=Zy(R,{replace:g,mask:b,state:y,target:p,preventScrollReset:A,relative:f,viewTransition:q,defaultShouldRevalidate:W,useTransitions:N});function Ut(Ht){i&&i(Ht),Ht.defaultPrevented||le(Ht)}let ve=!(J.isExternal||d),pe=x.createElement("a",{...P,...re,href:(ve?X:void 0)||J.absoluteURL||G,onClick:ve?Ut:i,ref:qy(Z,Qt),target:p,"data-discover":!m&&c==="render"?"true":void 0});return Et&&!m?x.createElement(x.Fragment,null,pe,x.createElement(jy,{page:G})):pe});Ac.displayName="Link";var Gy=x.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:f=!1,style:d,to:g,viewTransition:b,children:y,...p},R){let A=fi(g,{relative:p.relative}),q=ea(),W=x.useContext(ku),{navigator:P,basename:Z}=x.useContext(Le),j=W!=null&&Py(A)&&b===!0,O=P.encodeLocation?P.encodeLocation(A).pathname:A.pathname,N=q.pathname,m=W&&W.navigation&&W.navigation.location?W.navigation.location.pathname:null;c||(N=N.toLowerCase(),m=m?m.toLowerCase():null,O=O.toLowerCase()),m&&Z&&(m=Ma(m,Z)||m);const J=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let G=N===O||!f&&N.startsWith(O)&&N.charAt(J)==="/",tt=m!=null&&(m===O||!f&&m.startsWith(O)&&m.charAt(O.length)==="/"),X={isActive:G,isPending:tt,isTransitioning:j},Et=G?i:void 0,Qt;typeof r=="function"?Qt=r(X):Qt=[r,G?"active":null,tt?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(X):d;return x.createElement(Ac,{...p,"aria-current":Et,className:Qt,ref:R,style:re,to:g,viewTransition:b},typeof y=="function"?y(X):y)});Gy.displayName="NavLink";var Xy=x.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:f,state:d,method:g=Cu,action:b,onSubmit:y,relative:p,preventScrollReset:R,viewTransition:A,defaultShouldRevalidate:q,...W},P)=>{let{useTransitions:Z}=x.useContext(Le),j=$y(),O=Wy(b,{relative:p}),N=g.toLowerCase()==="get"?"get":"post",m=typeof b=="string"&&Tm.test(b),J=G=>{if(y&&y(G),G.defaultPrevented)return;G.preventDefault();let tt=G.nativeEvent.submitter,X=(tt==null?void 0:tt.getAttribute("formmethod"))||g,Et=()=>j(tt||G.currentTarget,{fetcherKey:i,method:X,navigate:c,replace:f,state:d,relative:p,preventScrollReset:R,viewTransition:A,defaultShouldRevalidate:q});Z&&c!==!1?x.startTransition(()=>Et()):Et()};return x.createElement("form",{ref:P,method:N,action:O,onSubmit:r?y:J,...W,"data-discover":!m&&s==="render"?"true":void 0})});Xy.displayName="Form";function Qy(s){return`${s} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mm(s){let i=x.useContext(sl);return Xt(i,Qy(s)),i}function Zy(s,{target:i,replace:c,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y,useTransitions:p}={}){let R=cl(),A=ea(),q=fi(s,{relative:g});return x.useCallback(W=>{if(Ey(W,i)){W.preventDefault();let P=c!==void 0?c:ri(A)===ri(q),Z=()=>R(s,{replace:P,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y});p?x.startTransition(()=>Z()):Z()}},[A,R,q,c,r,f,i,s,d,g,b,y,p])}function X1(s){Ke(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=x.useRef(fc(s)),c=x.useRef(!1),r=ea(),f=x.useMemo(()=>xy(r.search,c.current?null:i.current),[r.search]),d=cl(),g=x.useCallback((b,y)=>{const p=fc(typeof b=="function"?b(new URLSearchParams(f)):b);c.current=!0,d("?"+p,y)},[d,f]);return[f,g]}var Jy=0,Ky=()=>`__${String(++Jy)}__`;function $y(){let{router:s}=Mm("useSubmit"),{basename:i}=x.useContext(Le),c=fy(),r=s.fetch,f=s.navigate;return x.useCallback(async(d,g={})=>{let{action:b,method:y,encType:p,formData:R,body:A}=Ty(d,i);if(g.navigate===!1){let q=g.fetcherKey||Ky();await r(q,c,g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:R,body:A,formMethod:g.method||y,formEncType:g.encType||p,flushSync:g.flushSync})}else await f(g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:R,body:A,formMethod:g.method||y,formEncType:g.encType||p,replace:g.replace,state:g.state,fromRouteId:c,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,f,i,c])}function Wy(s,{relative:i}={}){let{basename:c}=x.useContext(Le),r=x.useContext($e);Xt(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...fi(s||".",{relative:i})},g=ea();if(s==null){d.search=g.search;let b=new URLSearchParams(d.search),y=b.getAll("index");if(y.some(R=>R==="")){b.delete("index"),y.filter(A=>A).forEach(A=>b.append("index",A));let R=b.toString();d.search=R?`?${R}`:""}}return(!s||s===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:ta([c,d.pathname])),ri(d)}function Py(s,{relative:i}={}){let c=x.useContext(vm);Xt(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mm("useViewTransitionState"),f=fi(s,{relative:i});if(!c.isTransitioning)return!1;let d=Ma(c.currentLocation.pathname,r)||c.currentLocation.pathname,g=Ma(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Ou(f.pathname,g)!=null||Ou(f.pathname,d)!=null}const Fy={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:()=>{}}},Iy=new Set(["auth","storage","leads","log","flags","db"]);function tv(){return new Proxy({},{get:(s,i)=>Iy.has(i)?new Proxy({},{get:(c,r)=>{var f;return((f=Fy[i])==null?void 0:f[r])??(()=>Promise.resolve(null))}}):()=>{}})}const pt=typeof window<"u"&&window.Bodify?window.Bodify:tv(),Q1=Object.freeze(Object.defineProperty({__proto__:null,Bodify:pt},Symbol.toStringTag,{value:"Module"}));function ev(s){const i=s.split("/"),c=[];for(let r=i.length-1;r>0;r--)c.push(i.slice(0,r).join("/"));return c}class av{constructor(){this.maxAge=10080*60*1e3,this.maxMemoryEntries=500,this.dbName="boddb-cache",this.enabled=!0}}class nv{constructor(i,c){this.memory=new Map,this.subscribedPaths=new Set,this.idb=null,this._vfs=null,this._vfsUnsub=null,this.options={...new av,...c},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 c=indexedDB.open(this.options.dbName,1);c.onupgradeneeded=()=>{const r=c.result;r&&!r.objectStoreNames.contains("entries")&&r.createObjectStore("entries",{keyPath:"path"})},c.onsuccess=()=>i(c.result??null),c.onerror=()=>i(null),c.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 c=this.memory.get(i);if(c&&this.subscribedPaths.has(i))return c.data;if(c)return this.revalidate(i),c.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(c=>{const r={path:i,data:c.val(),updatedAt:c.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,r),this.idbSet(r)}).catch(()=>{})}on(i,c){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),c(f)});return()=>{r(),this.subscribedPaths.delete(i)}}onChild(i,c,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)}c(d)},r);return()=>{f(),this.subscribedPaths.delete(i)}}connect(){return this.client.connect()}disconnect(){var i,c;(c=(i=this.client).disconnect)==null||c.call(i)}get serverInfo(){return this.client.serverInfo}onWelcome(i){return this.client.onWelcome(i)}async push(i,c,r){return await this.client.push(i,c,r)}query(i){return this.client.query(i)}async set(i,c,r){await this.client.set(i,c,r),this.invalidatePath(i)}async update(i,c,r){await this.client.update(i,c,r),this.invalidatePath(i)}async updateMulti(i){await this.client.updateMulti(i);for(const c of Object.keys(i))this.invalidatePath(c)}async delete(i){await this.client.delete(i),this.invalidatePath(i)}invalidatePath(i){this.invalidate(i);for(const c of ev(i))this.invalidate(c)}invalidate(i){this.memory.delete(i),this.idbDelete(i)}async warmup(i){if(!this.idb)return;const c=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 p=y.result;p&&p.cachedAt>=c&&this.memSet(g,p),b()},y.onerror=()=>b()}));await Promise.all(d)}vfs(){return this._vfs||(this._vfs=new lv(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,c;this._vfsUnsub&&(this._vfsUnsub(),this._vfsUnsub=null),(i=this._vfs)==null||i.clear(),this._vfs=null,this.memory.clear(),this.subscribedPaths.clear(),(c=this.idb)==null||c.close(),this.idb=null}memSet(i,c){for(this.memory.delete(i),this.memory.set(i,c);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 lv{constructor(i,c,r=null){this.raw=i,this.maxAge=c,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 c=this.statCache.get(i);if(c&&Date.now()-c.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(()=>{}),c.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 c=this.listCache.get(i);if(c&&Date.now()-c.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(()=>{}),c.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,c){return this.raw.tree(i,c)}async upload(i,c,r){const f=await this.raw.upload(i,c,r);return this.invalidatePath(i),f}async delete(i){await this.raw.delete(i),this.invalidatePath(i)}async mkdir(i){const c=await this.raw.mkdir(i);return this.invalidatePath(i),this.listCache.delete(i),this.idbDeleteVfs(`vfs:list:${i}`),c}async move(i,c){const r=await this.raw.move(i,c);return this.invalidatePath(i),this.invalidatePath(c),r}async download(i){return this.raw.download(i)}invalidatePath(i){this._stats.invalidations++,this.statCache.delete(i),this.idbDeleteVfs(`vfs:stat:${i}`);const c=i.includes("/")?i.slice(0,i.lastIndexOf("/")):"";this.listCache.delete(c),this.idbDeleteVfs(`vfs:list:${c}`)}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,c){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put({path:i,data:c.data,cachedAt:c.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 iv="DEBUG";function Jh(s){try{const i=localStorage.getItem(iv)??"";return i==="*"||i.split(",").includes(s)}catch{return!1}}function uv(s){const i=`[${s}]`;return{debug:(...c)=>{Jh(s)&&console.debug(i,...c)},verbose:(...c)=>{Jh(s)&&console.debug(i,...c)},info:(...c)=>console.info(i,...c),warn:(...c)=>console.warn(i,...c),error:(...c)=>console.error(i,...c)}}const Lu={forComponent:s=>uv(s)},_c=Lu.forComponent("bod");var cm;const Dm=(cm=window.Bodify)==null?void 0:cm.db;Dm||_c.error("Bodify SDK not loaded (window.Bodify is undefined) — /_bodify/sdk.js failed to load; BodDB is unavailable.");const ra=new nv(Dm);ra.init();if(typeof window<"u"){const s=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ra.connect().catch(i=>_c.warn("wake-reconnect failed",i))};window.addEventListener("online",s),window.addEventListener("focus",s),document.addEventListener("visibilitychange",s)}async function en(){var r,f,d;const s=ra.client;if(!s)return;const i=((r=pt==null?void 0:pt.auth)==null?void 0:r._token)??null,c=g=>Promise.race([g,new Promise((b,y)=>setTimeout(()=>y(new Error("reauthWs timeout")),3e3))]);try{if(!s.connected)return;i?await c(s._send("auth",{token:i})):((f=s.disconnect)==null||f.call(s),await((d=s.connect)==null?void 0:d.call(s)))}catch(g){_c.warn("reauthWs failed",g)}}localStorage.getItem("BOD_WS_RECORD")&&(window.bod=ra,window.bodWs=ra.client);const sv=Object.freeze(Object.defineProperty({__proto__:null,client:ra,reauthWs:en},Symbol.toStringTag,{value:"Module"}));function rv(){const s=navigator.userAgent;return/FBAN|FBAV|FB_IAB|FBIOS/.test(s)?"fb":/Instagram/i.test(s)?"ig":"none"}let Kh=!1;function ic(){try{performance.mark("para:auth-resolved")}catch{}}function cv(){var f;const s=performance.getEntriesByType("resource"),i=d=>d.replace(/^https?:\/\/[^/]+/,"").split("?")[0].slice(-60),c=d=>{const g=s.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:s.length,me:c(d=>d.name.includes("/auth/me")),sdk:c(d=>d.name.includes("/_bodify/sdk.js")),entry:c(d=>/\/assets\/index-|\/src\/main\.tsx/.test(d.name)),slowest:s.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 ov(){var s;if(!Kh){Kh=!0;try{const i=performance.getEntriesByType("navigation")[0],c=(s=performance.getEntriesByType("paint").find(d=>d.name==="first-contentful-paint"))==null?void 0:s.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:c!=null?Math.round(c):-1,appMounted:Math.round(performance.now()),slowBoot:performance.now()>=5e3,webview:rv(),path:location.pathname,...cv(),...r?{funnel:r}:{}};pt.event("boot_timing",f)}catch{}}}const Rm=x.createContext(null);function $h(){const s="para_dau_date",i=new Date,c=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;localStorage.getItem(s)!==c&&(localStorage.setItem(s,c),pt.event("session_active"))}function fv({children:s}){const[i,c]=x.useState(null),[r,f]=x.useState(null),[d,g]=x.useState(!0);x.useEffect(()=>{const O=window.Bodify;if(!(O!=null&&O.auth)){ic(),g(!1);return}return O.auth.getUser().then(N=>{N&&(c(N),pt.analytics.identify(N.id,{email:N.email,name:N.name}),$h(),en()),ic(),g(!1)}).catch(()=>{ic(),g(!1)}),O.auth.onAuthStateChange((N,m)=>{c(N),f(m),en(),N&&(pt.analytics.identify(N.id,{email:N.email,name:N.name}),$h())})},[]);const b=async(O,N,m)=>{const J=await pt.auth.signUp({email:O,password:N,name:m});J!=null&&J.emailVerificationRequired?f(J.user):J!=null&&J.user&&c(J.user)},y=async(O,N)=>{const m=await pt.auth.signIn({email:O,password:N});m!=null&&m.emailVerificationRequired?f(m.user):m!=null&&m.user&&c(m.user)},p=async O=>{const N=await pt.auth.verifyEmail(O);N!=null&&N.user&&(c(N.user),f(null))},R=async()=>{await pt.auth.resendVerification()},A=async()=>{await pt.auth.signOut(),c(null),f(null)},q=async()=>{var G,tt;const O=await pt.auth.getUser().catch(()=>null);if(O)return c(O),en(),O;const N=(G=pt==null?void 0:pt.auth)==null?void 0:G._token;if(N)try{const X=(tt=JSON.parse(atob(N.split(".")[1])))==null?void 0:tt.sub;if(X){const Et=i&&i.id===X?i:{id:X,isAnonymous:!1};return c(Et),en(),Et}}catch{}const J={id:pt.auth.adoptAnonIdentity(),isAnonymous:!0};return c(J),(async()=>{try{const X=await pt.auth.signInAnonymously();c(X.user),await en()}catch(X){console.error("[auth] anon token sign failed:",X)}})(),J},W=async(O,N)=>{const m=await pt.auth.linkEmail(O,N);return c(m),await en(),m},P=async O=>{const N=await pt.auth.attachEmail(O);return c(N),await en(),N},Z=async O=>pt.auth.startPhoneSignIn(O),j=async(O,N)=>{const m=await pt.auth.linkPhone(O,N);return c(m),m};return w.jsx(Rm.Provider,{value:{user:i,pendingVerification:r,loading:d,signUp:b,signIn:y,verifyEmail:p,resendVerification:R,signOut:A,ensureAnonymousSession:q,linkEmail:W,attachEmail:P,startPhoneSignIn:Z,linkPhone:j},children:s})}const ol=()=>x.useContext(Rm),Cm=x.createContext({theme:"system",resolved:"dark",setTheme:()=>{}});function dv(){const s=new Date().getHours();return s<7||s>=19?"dark":"light"}function ci(){return dv()}function Wh(s){return s==="system"?ci():s}function Ph(s){document.documentElement.classList.toggle("dark",s==="dark")}function Fh(s){const i=localStorage.getItem(s);if(!i)return"system";if(i==="light"||i==="dark"||i==="system")return i==="system"?"system":(localStorage.setItem(s,JSON.stringify({theme:i,setUnder:ci()})),i);try{const c=JSON.parse(i);return!["light","dark","system"].includes(c.theme)||c.theme==="system"?"system":c.setUnder&&ci()!==c.setUnder?(localStorage.removeItem(s),"system"):c.theme}catch{return"system"}}function hv(s,i){if(i==="system"){localStorage.removeItem(s);return}localStorage.setItem(s,JSON.stringify({theme:i,setUnder:ci()}))}function mv({children:s,storageKey:i="theme",defaultTheme:c="system"}){const[r,f]=x.useState(()=>{const y=Fh(i);return y!=="system"?y:c}),[d,g]=x.useState(()=>Wh(r)),b=x.useCallback(y=>{hv(i,y),f(y)},[i]);return x.useEffect(()=>{const y=Wh(r);g(y),Ph(y)},[r]),x.useEffect(()=>{const y=()=>{const R=Fh(i);if(R!==r){f(R);return}if(r==="system"){const A=ci();g(A),Ph(A)}};document.addEventListener("visibilitychange",y),window.addEventListener("focus",y);const p=setInterval(y,5*6e4);return()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("focus",y),clearInterval(p)}},[r,i]),w.jsx(Cm.Provider,{value:{theme:r,resolved:d,setTheme:b},children:s})}const pv=()=>x.useContext(Cm);function Nt(s,i=2,c=350){return x.lazy(async()=>{let r;for(let f=0;f<=i;f++)try{return await s()}catch(d){if(r=d,f===i)break;await new Promise(g=>setTimeout(g,c*(f+1)))}throw r})}function zm(){return typeof window>"u"?!1:location.protocol==="app:"||location.protocol==="file:"||location.hostname==="appwrap.local"}const Ih="para:native";function Tc(){var s;if(typeof window>"u")return!1;if((s=window.__APPWRAP__)!=null&&s.native||zm())return!0;try{return new URLSearchParams(window.location.search).get("native")==="1"?(sessionStorage.setItem(Ih,"1"),!0):sessionStorage.getItem(Ih)==="1"}catch{return new URLSearchParams(window.location.search).get("native")==="1"}}class gv extends x.Component{constructor(){super(...arguments);Dh(this,"state",{failed:!1})}static getDerivedStateFromError(c){const r=String((c==null?void 0:c.message)??c??"");return{failed:/import|module script|Loading chunk|dynamically imported|Failed to fetch/i.test(r)}}render(){return this.state.failed?w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.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 yv=[{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"}],vv=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],bv=["Wood","Fire","Earth","Metal","Water"],Sv=["Garnet","Amethyst","Aquamarine","Diamond","Emerald","Pearl","Ruby","Peridot","Sapphire","Opal","Topaz","Tanzanite"];function Om(s,i){return yv.find(r=>r.startMonth===r.endMonth?s===r.startMonth&&i>=r.startDay&&i<=r.endDay:s===r.startMonth?i>=r.startDay:s===r.endMonth?i<=r.endDay:!1)}function wv(s,i,c){let r;return s===c.startMonth?r=i-c.startDay:s===c.endMonth?r=new Date(2e3,c.startMonth,0).getDate()-c.startDay+i:r=new Date(2e3,c.startMonth,0).getDate()-c.startDay+new Date(2e3,s-1,0).getDate()+i,r<10?1:r<20?2:3}function Ev(s){const i=s-1924,c=(i%12+12)%12,r=Math.floor((i%10+10)%10/2);return{animal:vv[c],element:bv[r]}}function xv(s){let c=[...s.replace(/-/g,"")].reduce((r,f)=>r+Number(f),0);for(;c>9&&c!==11&&c!==22&&c!==33;)c=[...String(c)].reduce((r,f)=>r+Number(f),0);return c}function Av(s){return s>=3&&s<=5?"Spring":s>=6&&s<=8?"Summer":s>=9&&s<=11?"Autumn":"Winter"}function _v(s){if(!(s!=null&&s.trim()))return null;const i=new Date(s+"T00:00:00"),c=i.getMonth()+1,r=i.getDate();return isNaN(c)||isNaN(r)?null:Om(c,r).sign}function Z1(s){if(!(s!=null&&s.trim()))return null;const i=s.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!i)return null;const c=Number(i[1]),r=Number(i[2]),f=Number(i[3]),d=new Date(c,r-1,f);if(d.getFullYear()!==c||d.getMonth()!==r-1||d.getDate()!==f)return null;const g=Om(r,f);return{zodiac:{sign:g.sign,element:g.element,modality:g.modality,rulingPlanet:g.ruler,decan:wv(r,f,g),dateRange:g.range},chineseZodiac:Ev(c),numerology:{lifePath:xv(s)},birthstone:Sv[r-1],season:Av(r)}}function Tv(){var i;if(typeof window>"u")return!1;const s=window.__APPWRAP__;return s&&(s.reduceMotion||s.isEmulator)?!0:((i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches)??!1}const Mv={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 Dv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647),f=["#fff","#fff","#fff","#fff","#ccd6ff","#d4e0ff","#fff4e0","#ffe8c8","#ffd6d6"];return Array.from({length:s},()=>{const d=r()<.5?0:r()<.6?1:2,g=r()<.015,b=g||r()<.2,y=r(),p=r(),R=y-.5,A=p-.5;return{angle:Math.atan2(A,R),dist:Math.sqrt(R*R+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 Rv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647);return Array.from({length:s},()=>({x:r(),y:r(),speed:.003+r()*.008,alpha:.3+r()*.4}))}function Cv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647);return Array.from({length:s},()=>({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 zv={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}},Ov={Garnet:"#9b2335",Amethyst:"#9966cc",Aquamarine:"#7fffd4",Diamond:"#e8e8e8",Emerald:"#50c878",Pearl:"#eae0c8",Ruby:"#e0115f",Peridot:"#b4c424",Sapphire:"#0f52ba",Opal:"#a8c3bc",Topaz:"#ffc87c",Tanzanite:"#5a4fcf"},Nv={Sun:1,Moon:.7,Mercury:.35,Venus:.5,Mars:.45,Jupiter:.85,Saturn:.75,Uranus:.55,Neptune:.55,Pluto:.3};function Uv({date:s,intensity:i,nebulaOpacity:c,showConstellation:r=!1,artifact:f="none",cosmic:d=null,darkMode:g=!0}){const b=x.useRef(null),y=x.useRef(0),p=x.useRef(!0),R=x.useRef(s),A=x.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}),q=typeof window<"u"&&window.innerWidth<640,W=x.useMemo(()=>Dv(q?600:1200,42),[q]),P=x.useMemo(()=>Cv(q?6:10,77),[q]),Z=x.useMemo(()=>Rv(q?300:600,99),[q]);x.useEffect(()=>{const O=A.current,N=(G,tt)=>{O.tMouseX=(G/window.innerWidth-.5)*2,O.tMouseY=(tt/window.innerHeight-.5)*2},m=G=>N(G.clientX,G.clientY),J=G=>{G.touches[0]&&N(G.touches[0].clientX,G.touches[0].clientY)};return window.addEventListener("mousemove",m,{passive:!0}),window.addEventListener("touchmove",J,{passive:!0}),()=>{window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",J)}},[]),x.useEffect(()=>{const O=A.current,N=R.current,m=s;if(R.current=m,m&&N!==m){const[G,tt,X]=(N||"2000-01-01").split("-").map(Number),[Et,Qt,re]=m.split("-").map(Number);if(!isNaN(Et)&&!isNaN(Qt)&&!isNaN(re)){const le=Et-(isNaN(G)?Et:G),Ut=Qt-(isNaN(tt)?Qt:tt),ve=re-(isNaN(X)?re:X),Ht=!N||N===""?.8:ve*.12+Ut*.4+le*1.5;O.angVel+=Ht,O.angVel=Math.max(-5,Math.min(5,O.angVel)),O.targetRotation+=Ht*.6}}const J=_v(m);J!==O.sign&&(O.prevSign=O.sign,O.prevAlpha=O.cAlpha,O.sign=J,O.cAlpha=0,O.lineProgress=0,O.labelAlpha=0)},[s]);const j=x.useCallback(O=>{const N=b.current;if(!N)return;const m=N.getContext("2d");if(!m)return;const J=Math.min(window.devicePixelRatio||1,2),G=N.clientWidth,tt=N.clientHeight;(N.width!==G*J||N.height!==tt*J)&&(N.width=G*J,N.height=tt*J),m.setTransform(J,0,0,J,0,0),m.clearRect(0,0,G,tt);const X=g,Et=X?"255,255,255":"0,0,0",Qt=X?"#fff":"#000",re=X?"220,240,255":"30,30,60",le=X?"255,240,220":"180,140,60",Ut=X?[255,250,235,255,220,180,200,170,130]:[210,170,60,190,145,50,160,120,40],ve=X?"255,230,200":"170,130,50",pe=X?"210,255,235":"5,80,50",Ht=X?{}:{"#fff":"#222","#ccd6ff":"#1a2040","#d4e0ff":"#102030","#fff4e0":"#3a2800","#ffe8c8":"#402000","#ffd6d6":"#401010"},U=V=>Ht[V]||V,T=A.current,K=1/60;T.t+=K;const rt=T.t;T.curI+=(i-T.curI)*.04;const nt=T.curI,E=f==="none"?0:1;T.curArtifact+=(E-T.curArtifact)*.06,T.mouseX+=(T.tMouseX-T.mouseX)*.04,T.mouseY+=(T.tMouseY-T.mouseY)*.04,T.targetRotation+=K*.015,T.rotation+=(T.targetRotation-T.rotation)*.05;const H=Math.abs(T.angVel);T.angVel*=.95,H<5e-4&&(T.angVel=0);const Q=Math.min(1,H*.8),I=G*.5,ct=tt*.5;if(T.sign&&r?(T.cAlpha=Math.min(1,T.cAlpha+K*1.5),T.lineProgress=Math.min(1,T.lineProgress+K*.8),T.labelAlpha=Math.min(1,T.labelAlpha+K*.6)):r||(T.cAlpha=Math.max(0,T.cAlpha-K*2)),T.prevSign&&(T.prevAlpha=Math.max(0,T.prevAlpha-K*2.5),T.prevAlpha<=0&&(T.prevSign=null)),T.nextShootAt-=K*1e3,T.nextShootAt<=0&&nt>.15&&(T.shootingStars.push({x:Math.random()*G,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}),T.nextShootAt=3e3+Math.random()*7e3),T.curArtifact>.005&&f==="nebula"){const V=c??nt*.25;for(const Y of P){const $=Y.x*G+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),Rt=T.curArtifact*V*(.5+lt*.5);m.globalAlpha=1;const mt=m.createRadialGradient($,st,0,$,st,ut);mt.addColorStop(0,`hsla(${Y.hue}, 80%, 55%, ${Rt})`),mt.addColorStop(.3,`hsla(${Y.hue}, 70%, 45%, ${Rt*.5})`),mt.addColorStop(.7,`hsla(${Y.hue}, 60%, 35%, ${Rt*.15})`),mt.addColorStop(1,`hsla(${Y.hue}, 50%, 30%, 0)`),m.fillStyle=mt,m.beginPath(),m.arc($,st,ut,0,Math.PI*2),m.fill()}}if(T.curArtifact>.005&&f==="stardust"){const V=G*.5+Math.sin(rt*.15)*35,Y=tt*.32+Math.cos(rt*.12)*25,$=.6+.4*Math.sin(rt*.35),st=T.curArtifact*nt,lt=180+$*80,ut=m.createRadialGradient(V,Y,0,V,Y,lt);ut.addColorStop(0,`rgba(16, 185, 129, ${st*.25*$})`),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)"),m.globalAlpha=1,m.fillStyle=ut,m.beginPath(),m.arc(V,Y,lt,0,Math.PI*2),m.fill();const Rt=m.createRadialGradient(V,Y,0,V,Y,40);Rt.addColorStop(0,X?`rgba(200, 255, 230, ${st*.4})`:`rgba(5, 80, 40, ${st*.4})`),Rt.addColorStop(.5,`rgba(16, 185, 129, ${st*.15})`),Rt.addColorStop(1,"rgba(16, 185, 129, 0)"),m.fillStyle=Rt,m.beginPath(),m.arc(V,Y,40,0,Math.PI*2),m.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),Ct=V+Math.cos(xt)*Zt,Jt=Y+Math.sin(xt)*Zt,be=m.createLinearGradient(V,Y,Ct,Jt);be.addColorStop(0,`rgba(16,185,129,${st*.15})`),be.addColorStop(1,"rgba(16,185,129,0)"),m.strokeStyle=be,m.lineWidth=2.5,m.globalAlpha=1,m.beginPath(),m.moveTo(V,Y),m.lineTo(Ct,Jt),m.stroke()}}if(nt>.1){m.fillStyle=Qt;for(const V of Z)V.y-=V.speed*K,V.x+=Math.sin(rt*.3+V.y*5)*3e-4,V.y<-.01&&(V.y=1.01,V.x=Math.random()),m.globalAlpha=V.alpha*nt*.7,m.fillRect(V.x*G,V.y*tt,1,1)}if(nt>.15){T.auroraPhase+=K*.08,m.save(),m.globalCompositeOperation=X?"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 $=Y.y*tt;m.beginPath(),m.moveTo(0,$);for(let lt=0;lt<=G;lt+=8){const ut=$+Math.sin(lt*Y.freq*.005+T.auroraPhase+Y.hue)*Y.amp+Math.sin(lt*.003+T.auroraPhase*1.7)*Y.amp*.5;m.lineTo(lt,ut)}m.lineTo(G,0),m.lineTo(0,0),m.closePath();const st=m.createLinearGradient(0,$-60,0,$+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)"),m.fillStyle=st,m.fill()}m.restore()}for(const V of W){const Y=V.layer===0?.3:V.layer===1?.65:1,$=V.angle+T.rotation*Y,st=Math.sqrt(G*G+tt*tt)*.75,lt=I+Math.cos($)*V.dist*st+T.mouseX*25*Y,ut=ct+Math.sin($)*V.dist*st+T.mouseY*15*Y;if(lt<-60||lt>G+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(Q>.02&&nt>.2){const xt=T.angVel*V.dist*st*Y,Zt=Math.max(-80,Math.min(80,xt));if(Math.abs(Zt)>1.5){const Ct=-Math.sin($),Jt=Math.cos($);m.beginPath(),m.moveTo(lt-Ct*Zt*.5,ut-Jt*Zt*.5),m.lineTo(lt+Ct*Zt*.5,ut+Jt*Zt*.5),m.lineWidth=V.r*1.8,m.strokeStyle=U(V.color),m.globalAlpha=mt*.3,m.stroke()}}if(m.globalAlpha=mt,m.fillStyle=U(V.color),m.beginPath(),m.arc(lt,ut,V.r,0,Math.PI*2),m.fill(),V.shimmer&&mt>.1){const xt=.5+.5*Math.sin(rt*V.speed*.7+V.phase),Zt=V.r*(8+xt*6),Ct=m.createRadialGradient(lt,ut,0,lt,ut,Zt);Ct.addColorStop(0,U(V.color)),Ct.addColorStop(.15,U(V.color)),Ct.addColorStop(1,"rgba(0,0,0,0)"),m.globalAlpha=mt*.25*xt,m.fillStyle=Ct,m.beginPath(),m.arc(lt,ut,Zt,0,Math.PI*2),m.fill();const Jt=V.r*(4+xt*3);m.globalAlpha=mt*.4*xt,m.strokeStyle=U(V.color),m.lineWidth=.8,m.beginPath(),m.moveTo(lt-Jt,ut),m.lineTo(lt+Jt,ut),m.moveTo(lt,ut-Jt),m.lineTo(lt,ut+Jt),m.stroke()}}}for(let V=T.shootingStars.length-1;V>=0;V--){const Y=T.shootingStars[V];if(Y.life+=K,Y.life>Y.maxLife){T.shootingStars.splice(V,1);continue}const $=Y.life/Y.maxLife,st=$<.2?$/.2:1-($-.2)/.8,lt=Y.x+Math.cos(Y.angle)*Y.speed*Y.life,ut=Y.y+Math.sin(Y.angle)*Y.speed*Y.life,Rt=lt-Math.cos(Y.angle)*Y.len*st,mt=ut-Math.sin(Y.angle)*Y.len*st,xt=m.createLinearGradient(Rt,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})`),m.strokeStyle=xt,m.lineWidth=1.8,m.globalAlpha=1,m.beginPath(),m.moveTo(Rt,mt),m.lineTo(lt,ut),m.stroke(),m.fillStyle=`rgba(${Et},${st*nt})`,m.beginPath(),m.arc(lt,ut,2,0,Math.PI*2),m.fill()}T.nextPulsarAt-=K*1e3,T.nextPulsarAt<=0&&nt>.2&&T.pulsars.length<2&&(T.pulsars.push({x:Math.random()*G,y:Math.random()*tt,life:0,maxLife:2.5+Math.random()*1.5}),T.nextPulsarAt=6e3+Math.random()*1e4);for(let V=T.pulsars.length-1;V>=0;V--){const Y=T.pulsars[V];if(Y.life+=K,Y.life>Y.maxLife){T.pulsars.splice(V,1);continue}const $=Y.life/Y.maxLife,st=$*60,lt=$<.1?$/.1:1-($-.1)/.9;if(m.strokeStyle=`rgba(${re},${lt*.3*nt})`,m.lineWidth=1.5*(1-$),m.globalAlpha=1,m.beginPath(),m.arc(Y.x,Y.y,st,0,Math.PI*2),m.stroke(),$<.3){const ut=(1-$/.3)*.6*nt;m.fillStyle=`rgba(${re},${ut})`,m.beginPath(),m.arc(Y.x,Y.y,2,0,Math.PI*2),m.fill()}}if(T.nextBirthAt-=K*1e3,T.nextBirthAt<=0&&nt>.2&&T.births.length<1){const V=X?["#fff","#ccd6ff","#fff4e0","#ffe8c8"]:["#000","#1a2040","#3a2800","#402000"];T.births.push({x:G*.1+Math.random()*G*.8,y:tt*.1+Math.random()*tt*.6,life:0,maxLife:2+Math.random()*1,color:V[Math.floor(Math.random()*V.length)]}),T.nextBirthAt=18e3+Math.random()*15e3}for(let V=T.births.length-1;V>=0;V--){const Y=T.births[V];if(Y.life+=K,Y.life>Y.maxLife){T.births.splice(V,1);continue}const $=Y.life/Y.maxLife,st=$<.15?$/.15:1,lt=$<.3?1:1-($-.3)/.7,ut=st*20,Rt=m.createRadialGradient(Y.x,Y.y,0,Y.x,Y.y,ut);Rt.addColorStop(0,Y.color),Rt.addColorStop(.3,Y.color),Rt.addColorStop(1,"rgba(0,0,0,0)"),m.globalAlpha=lt*.4*nt,m.fillStyle=Rt,m.beginPath(),m.arc(Y.x,Y.y,ut,0,Math.PI*2),m.fill();const mt=1+st*2*lt;if(m.globalAlpha=lt*.9*nt,m.fillStyle=Qt,m.beginPath(),m.arc(Y.x,Y.y,mt,0,Math.PI*2),m.fill(),$<.3){const xt=st*15*lt;m.strokeStyle=Y.color,m.lineWidth=.6,m.globalAlpha=lt*.5*nt,m.beginPath(),m.moveTo(Y.x-xt,Y.y),m.lineTo(Y.x+xt,Y.y),m.moveTo(Y.x,Y.y-xt),m.lineTo(Y.x,Y.y+xt),m.stroke()}}if(m.globalAlpha=1,d&&r?(T.planetAlpha=Math.min(1,T.planetAlpha+K*.8),T.elementTintAlpha=Math.min(1,T.elementTintAlpha+K*.6)):(T.planetAlpha=Math.max(0,T.planetAlpha-K*1.5),T.elementTintAlpha=Math.max(0,T.elementTintAlpha-K*1.5)),d&&T.elementTintAlpha>.01){const V=zv[d.zodiac.element];if(V){const Ct=T.elementTintAlpha*nt*.12,Jt=m.createRadialGradient(G*.5,tt*.72,0,G*.5,tt*.72,tt*.7);Jt.addColorStop(0,`rgba(${V.r},${V.g},${V.b},${Ct})`),Jt.addColorStop(.5,`rgba(${V.r},${V.g},${V.b},${Ct*.3})`),Jt.addColorStop(1,"rgba(0,0,0,0)"),m.fillStyle=Jt,m.beginPath(),m.arc(G*.5,tt*.72,tt*.7,0,Math.PI*2),m.fill()}const $=5+(Nv[d.zodiac.rulingPlanet]||.5)*8,st=$*5,lt=G*.73+Math.sin(rt*.1)*8,ut=tt*.68+Math.cos(rt*.08)*6,Rt=T.planetAlpha*(X?nt:Math.max(nt,.7)),mt=m.createRadialGradient(lt,ut,0,lt,ut,st);mt.addColorStop(0,`rgba(${le},${Rt*.08})`),mt.addColorStop(.3,`rgba(${le},${Rt*.03})`),mt.addColorStop(1,`rgba(${le},0)`),m.fillStyle=mt,m.globalAlpha=1,m.beginPath(),m.arc(lt,ut,st,0,Math.PI*2),m.fill();const xt=m.createRadialGradient(lt-$*.2,ut-$*.2,0,lt,ut,$);xt.addColorStop(0,`rgba(${Ut[0]},${Ut[1]},${Ut[2]},${Rt*.5})`),xt.addColorStop(.7,`rgba(${Ut[3]},${Ut[4]},${Ut[5]},${Rt*.25})`),xt.addColorStop(1,`rgba(${Ut[6]},${Ut[7]},${Ut[8]},${Rt*.1})`),m.fillStyle=xt,m.beginPath(),m.arc(lt,ut,$,0,Math.PI*2),m.fill(),d.zodiac.rulingPlanet==="Saturn"&&(m.strokeStyle=`rgba(${ve},${Rt*.2})`,m.lineWidth=1,m.beginPath(),m.ellipse(lt,ut,$*2.2,$*.5,-.2,0,Math.PI*2),m.stroke());const Zt=Ov[d.birthstone];if(Zt)for(let Ct=0;Ct<8;Ct++){const Jt=G*.25+Ct*.07*G+Math.sin(rt*.25+Ct*1.1)*25,be=tt*.65+Math.cos(rt*.2+Ct*.9)*30+Ct%3*15,Kt=T.elementTintAlpha*nt*.3*(.4+.6*Math.sin(rt*.4+Ct*2));m.fillStyle=Zt,m.globalAlpha=Kt,m.beginPath(),m.arc(Jt,be,1.5+Ct%3*.5,0,Math.PI*2),m.fill()}m.globalAlpha=1}const ht=(V,Y,$)=>{const st=Mv[V];if(!st||Y<=0)return;const lt=T.rotation*.65,ut=G*.5+T.mouseX*25*.65,Rt=tt*.72+T.mouseY*15*.65,mt=Math.min(G*.45,tt*.22),xt=st.stars.map(([Kt,Me])=>{const ge=(Kt-.5)*mt,ie=(Me-.42)*mt,qt=Math.cos(lt*.15),aa=Math.sin(lt*.15);return[ut+ge*qt-ie*aa,Rt+ge*aa+ie*qt]}),Zt=st.lines.length,Ct=Math.floor($*Zt),Jt=$*Zt-Ct,be=X?1:3;m.strokeStyle=`rgba(16,185,129,${Y*.3*nt*be})`,m.lineWidth=X?1:1.5,m.shadowColor=`rgba(16,185,129,${Y*.5*be})`,m.shadowBlur=6,m.beginPath();for(let Kt=0;Kt<=Ct&&Kt<Zt;Kt++){const[Me,ge]=st.lines[Kt],[ie,qt]=xt[Me],[aa,na]=xt[ge];m.moveTo(ie,qt),m.lineTo(Kt<Ct?aa:ie+(aa-ie)*Jt,Kt<Ct?na:qt+(na-qt)*Jt)}m.stroke(),m.shadowBlur=0;for(let Kt=0;Kt<st.stars.length;Kt++){const[,,Me]=st.stars[Kt],[ge,ie]=xt[Kt],qt=Y*Me*Math.min(1,$*Zt/Math.max(1,Kt))*nt;if(qt<=0)continue;const aa=5+Me*5,na=m.createRadialGradient(ge,ie,0,ge,ie,aa);na.addColorStop(0,`rgba(16,185,129,${qt*.7*be})`),na.addColorStop(.4,`rgba(16,185,129,${qt*.2*be})`),na.addColorStop(1,"rgba(16,185,129,0)"),m.fillStyle=na,m.globalAlpha=1,m.beginPath(),m.arc(ge,ie,aa,0,Math.PI*2),m.fill(),m.fillStyle=`rgba(${pe},${qt})`,m.beginPath(),m.arc(ge,ie,1.2+Me*1.3,0,Math.PI*2),m.fill()}if(V===T.sign&&T.labelAlpha>0){const Kt=Math.max(13,Math.min(16,G*.035)),Me=Math.max(10,Math.min(12,G*.025)),ge=Math.max(...xt.map(ie=>ie[1]));if(m.textAlign="center",m.globalAlpha=T.labelAlpha*(X?.5:1),m.fillStyle=X?"#34d399":"#047857",m.font=`500 ${Kt}px -apple-system, Inter, system-ui, sans-serif`,m.letterSpacing="3px",m.fillText(V.toUpperCase(),ut,ge+24),m.letterSpacing="0px",d&&T.labelAlpha>.4){const ie=(T.labelAlpha-.4)/.6;m.font=`400 ${Me}px -apple-system, Inter, system-ui, sans-serif`,m.letterSpacing="1.5px",m.globalAlpha=ie*(X?.6:1),m.fillStyle=X?"#a1a1aa":"#71717a",m.fillText(`${d.zodiac.element} · ${d.zodiac.rulingPlanet}`,ut,ge+42),m.globalAlpha=ie*(X?.45:.85),m.fillStyle=X?"#a1a1aa":"#71717a",m.fillText(`${d.chineseZodiac.element} ${d.chineseZodiac.animal} · Path ${d.numerology.lifePath}`,ut,ge+58),m.letterSpacing="0px"}m.globalAlpha=1}};T.prevSign&&ht(T.prevSign,T.prevAlpha,1),T.sign&&T.cAlpha>0&&ht(T.sign,T.cAlpha,T.lineProgress),p.current&&(y.current=requestAnimationFrame(j))},[W,P,Z,i,c,r,f,d,g]);return x.useEffect(()=>{if(Tv()){p.current=!1,requestAnimationFrame(j);return}const O=()=>{const N=!document.hidden;N!==p.current&&(p.current=N,cancelAnimationFrame(y.current),N&&(y.current=requestAnimationFrame(j)))};return p.current=!document.hidden,p.current&&(y.current=requestAnimationFrame(j)),document.addEventListener("visibilitychange",O),()=>{cancelAnimationFrame(y.current),document.removeEventListener("visibilitychange",O)}},[j]),w.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none z-0","aria-hidden":"true",children:[w.jsx("canvas",{ref:b,className:"absolute inset-0 w-full h-full"}),w.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/4",style:{background:"linear-gradient(to top, var(--color-bg) 0%, transparent 100%)"}}),w.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 140% 90% at 50% 10%, transparent 50%, var(--color-bg) 100%)"}})]})}const kv={date:"",intensity:.5,nebulaOpacity:.05,artifact:"nebula",cosmic:null},Nm=x.createContext(()=>{}),J1=()=>x.useContext(Nm);function jv(){const[s,i]=x.useState(kv),c=x.useCallback(f=>i(d=>({...d,...f})),[]),{resolved:r}=pv();return w.jsx(Nm.Provider,{value:c,children:w.jsxs("div",{className:"relative min-h-screen",children:[w.jsx(Uv,{...s,darkMode:r==="dark"}),w.jsx("div",{className:"relative z-10",children:w.jsx(py,{})})]})})}function Um(s){const[i,c]=x.useState(()=>pt.flags.get(s));return x.useEffect(()=>pt.flags.subscribe(f=>{(!f||f===s)&&c(pt.flags.get(s))}),[s]),i}const tm=1;class St extends Error{constructor(i,c){super(c),this.code=i,this.name="KitError"}}class Lv{constructor(){this.kind="appwrap",this.pending=new Map,this.listeners=new Map,this.seq=0}detect(){var i,c;return typeof window<"u"&&(!!((c=(i=window.webkit)==null?void 0:i.messageHandlers)!=null&&c.appwrap)||!!window.appwrapNative)}async handshake(i){return this.installDeliver(),this.request("app.handshake",void 0,i)}invoke(i,c,r){return this.request(i,c,(r==null?void 0:r.timeoutMs)??1e4)}on(i,c){let r=this.listeners.get(i);return r||this.listeners.set(i,r=new Set),r.add(c),()=>r.delete(c)}request(i,c,r){const f=`k${++this.seq}`,d={v:1,id:f,kind:"request",method:i,params:c};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:p=>{clearTimeout(y),g(p)},reject:p=>{clearTimeout(y),b(p)}}),this.post(d)})}post(i){var r,f;const c=JSON.stringify(i);if((f=(r=window.webkit)==null?void 0:r.messageHandlers)!=null&&f.appwrap)window.webkit.messageHandlers.appwrap.postMessage(c);else if(window.appwrapNative)window.appwrapNative.postMessage(c);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 c;try{c=JSON.parse(i)}catch{return}c.kind==="response"?this.handleResponse(c):c.kind==="event"&&((r=this.listeners.get(c.event))==null||r.forEach(f=>f(c.payload)))})}handleResponse(i){const c=this.pending.get(i.id);c&&(this.pending.delete(i.id),i.error?c.reject(new St(i.error.code,i.error.message)):c.resolve(i.result))}}function Bv(s){const i=atob(s),c=new Uint8Array(i.length);for(let r=0;r<i.length;r++)c[r]=i.charCodeAt(r);return c.buffer}function Hv(s){switch(s){case"portrait-upside-down":return"portrait-secondary";case"landscape-left":return"landscape-primary";case"landscape-right":return"landscape-secondary";default:return s}}class qv{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,c={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:c}}async invoke(i,c){var f,d,g,b,y,p,R,A,q,W,P,Z;const r=c??{};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(N=>new File([Bv(N.base64)],N.name,{type:N.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(N=>{if(N.name!=="AbortError")throw new St("NATIVE_ERROR",N.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(Hv(String(r.orientation))).catch(O=>{throw new St("UNSUPPORTED",O.message||"Lock rejected (fullscreen may be required)")});return}case"screen.orientation.unlock":(p=(y=screen==null?void 0:screen.orientation)==null?void 0:y.unlock)==null||p.call(y);return;case"screen.orientation.current":return(((R=screen==null?void 0:screen.orientation)==null?void 0:R.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(!((q=navigator.clipboard)!=null&&q.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=(W=navigator.setAppBadge)==null?void 0:W.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(N=>j({lat:N.coords.latitude,lng:N.coords.longitude,accuracy:N.coords.accuracy}),N=>O(new St(N.code===1?"DENIED":"NATIVE_ERROR",N.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(N=>{throw new St("DENIED",N.message)})!=="granted")throw new St("DENIED","Motion permission not granted");if(!this.motionHandler){let O=0;this.motionHandler=N=>{const m=performance.now();if(m-O<100)return;O=m;const J=N.accelerationIncludingGravity,G=N.rotationRate;this.emit("motion.data",{ax:(J==null?void 0:J.x)??0,ay:(J==null?void 0:J.y)??0,az:(J==null?void 0:J.z)??0,rx:(G==null?void 0:G.alpha)??void 0,ry:(G==null?void 0:G.beta)??void 0,rz:(G==null?void 0:G.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(!((P=navigator.contacts)==null?void 0:P.select))throw new St("UNSUPPORTED","Contact Picker API unavailable");const O=await navigator.contacts.select(["name","tel","email"]).catch(m=>{throw new St("DENIED",m.message)}),N=O==null?void 0:O[0];return N?{picked:!0,name:(Z=N.name)==null?void 0:Z[0],phones:N.tel,emails:N.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,c){if(i==="network.change"){const f=()=>c({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=()=>c(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&&c(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(c),()=>r.delete(c)}emit(i,c){var r;(r=this.listeners.get(i))==null||r.forEach(f=>f(c))}pickImageFile(i,c=!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 R;const p={picked:!0,width:b.naturalWidth,height:b.naturalHeight};if(c){const A=Math.min(1,r/Math.max(b.naturalWidth,b.naturalHeight)),q=document.createElement("canvas");q.width=Math.round(b.naturalWidth*A),q.height=Math.round(b.naturalHeight*A),(R=q.getContext("2d"))==null||R.drawImage(b,0,0,q.width,q.height),p.dataUrl=q.toDataURL("image/jpeg",.85)}URL.revokeObjectURL(b.src),f(p)},b.onerror=()=>f({picked:!0}),b.src=URL.createObjectURL(g)},d.oncancel=()=>f({picked:!1}),d.click()})}showActionSheet(i,c,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=p=>{d.remove(),f(p)};if(i){const p=document.createElement("div");p.textContent=i,p.style.cssText="text-align:center;opacity:.6;font-size:13px;padding:4px",g.appendChild(p)}const y=(p,R)=>{const A=document.createElement("button");A.textContent=p,A.style.cssText="background:#2a2a32;color:inherit;border:0;border-radius:10px;padding:12px;font:inherit;cursor:pointer",A.onclick=R,g.appendChild(A)};c.forEach((p,R)=>y(p,()=>b(R))),y(r,()=>b(null)),d.onclick=p=>{p.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 c=getComputedStyle(i),r={top:parseFloat(c.paddingTop)||0,right:parseFloat(c.paddingRight)||0,bottom:parseFloat(c.paddingBottom)||0,left:parseFloat(c.paddingLeft)||0};return i.remove(),r}showToast(i,c){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)},c)}}class Yv{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 Vv{constructor(i){this.readNative=i}async validate(i){return[{productId:i.productId,active:!0,purchasedAt:Date.now()}]}entitlements(){return this.readNative()}}class Gv{constructor(i){this.kit=i,this.validator=new Vv(()=>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 c=await this.kit.invoke("billing.purchase",{productId:i},{timeoutMs:12e4});return{receipt:c,entitlements:await this.validator.validate(c)}}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}),c=[];for(const r of i)c.push(...await this.validator.validate(r));return c}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",c=>i(c))}nativeEntitlements(){return this.kit.invoke("billing.entitlements")}}class Xv{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 Qv{constructor(i){this.kit=i}get capability(){return this.kit.capability("browser")}open(i,c={}){return this.kit.invoke("browser.open",{url:i,...c})}}class Zv{constructor(i){this.kit=i}get capability(){return this.kit.capability("calendar")}createEvent(i){return this.kit.invoke("calendar.createEvent",i,{timeoutMs:12e4})}}class Jv{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 Kv{constructor(i){this.kit=i}get capability(){return this.kit.capability("contacts")}pick(){return this.kit.invoke("contacts.pick",void 0,{timeoutMs:12e4})}}class $v{constructor(i){this.kit=i}get capability(){return this.kit.capability("device")}info(){return this.kit.invoke("device.info")}}class Wv{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 c=this.kit.on("geo.position",f=>i(f));try{await this.kit.invoke("geo.watch.start",void 0,{timeoutMs:6e4})}catch(f){throw c(),f}let r=!1;return()=>{r||(r=!0,c(),this.kit.invoke("geo.watch.stop").catch(f=>console.warn("[native-kit] geo.watch.stop failed",f)))}}}class Pv{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 Fv{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",c=>i(c.url))}}class Iv{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 c;return(c=navigator.mediaDevices)!=null&&c.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(c=>c.stop())}}class tb{constructor(i){this.kit=i}get capability(){return this.kit.capability("motion")}async watch(i){const c=this.kit.on("motion.data",f=>i(f));try{await this.kit.invoke("motion.start")}catch(f){throw c(),f}let r=!1;return()=>{r||(r=!0,c(),this.kit.invoke("motion.stop").catch(f=>console.warn("[native-kit] motion.stop failed",f)))}}}class eb{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",c=>i(c))}}class ab{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 nb{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 lb{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",c=>i(c))}onTap(i){return this.kit.on("push.tap",c=>i(c))}}class ib{constructor(i){this.kit=i}get capability(){return this.kit.capability("reviews")}requestReview(){return this.kit.invoke("reviews.requestReview")}}class ub{constructor(i){this.orientation=new sb(i)}}class sb{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",c=>i(c))}}class rb{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,c){return this.kit.invoke("share.files",{files:i,...c})}}class cb{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,c){return this.kit.invoke("storage.secure.set",{key:i,value:c})}remove(i){return this.kit.invoke("storage.secure.remove",{key:i})}}class ob{constructor(i){this.kit=i,this.secure=new cb(i)}get capability(){return this.kit.capability("storage")}get(i){return this.kit.invoke("storage.get",{key:i})}set(i,c){return this.kit.invoke("storage.set",{key:i,value:c})}remove(i){return this.kit.invoke("storage.remove",{key:i})}clear(){return this.kit.invoke("storage.clear")}}class fb{constructor(i){this.kit=i}get capability(){return this.kit.capability("toast")}show(i,c="short"){return this.kit.invoke("toast.show",{message:i,duration:c})}}function db(s){const i=s.trim().replace("#",""),c=i.length===3?i.split("").map(g=>g+g).join(""):i;if(c.length<6)return!1;const r=parseInt(c.slice(0,2),16),f=parseInt(c.slice(2,4),16),d=parseInt(c.slice(4,6),16);return(.299*r+.587*f+.114*d)/255>.6}class hb{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(db(r.content)?"dark":"light").catch(()=>{}))};i();const c=new MutationObserver(i);return c.observe(document.head,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["content"]}),()=>c.disconnect()}}class mb{constructor(){this.adapters=[new Lv,new qv],this.handshakeTimeoutMs=3e3}}class pb{constructor(i){this.haptics=new Pv(this),this.share=new rb(this),this.screen=new ub(this),this.storage=new ob(this),this.toast=new fb(this),this.ui=new hb(this),this.device=new $v(this),this.clipboard=new Jv(this),this.notifications=new ab(this),this.push=new lb(this),this.biometrics=new Xv(this),this.geo=new Wv(this),this.photos=new nb(this),this.network=new eb(this),this.lifecycle=new Fv(this),this.reviews=new ib(this),this.motion=new tb(this),this.media=new Iv(this),this.contacts=new Kv(this),this.calendar=new Zv(this),this.app=new Yv(this),this.browser=new Qv(this),this.billing=new Gv(this),this.handshakeInfo=null,this.adapter=null,this.readyPromise=null,this.options={...new mb,...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 c=await i.handshake(this.options.handshakeTimeoutMs);if(c.protocol!==tm)throw new St("UNSUPPORTED",`Shell protocol v${c.protocol} ≠ kit protocol v${tm} — the native wrapper is out of date. Re-run \`appwrap init\` to regenerate it.`);return this.handshakeInfo=c,this.handshakeInfo})()),this.readyPromise}get is(){var i,c;return{native:((i=this.adapter)==null?void 0:i.kind)==="appwrap",web:((c=this.adapter)==null?void 0:c.kind)==="web"}}get platform(){var i;return((i=this.handshakeInfo)==null?void 0:i.platform)??"web"}capability(i){var c;return((c=this.handshakeInfo)==null?void 0:c.capabilities[i])??"none"}async invoke(i,c,r){return this.adapter||await this.ready(),this.adapter.invoke(i,c,r)}on(i,c){if(!this.adapter){let r=null,f=!1;return this.ready().then(()=>{f||(r=this.adapter.on(i,c))}).catch(()=>{}),()=>{f=!0,r==null||r()}}return this.adapter.on(i,c)}}const gb=new pb,yb=Lu.forComponent("DeepLinks");function vb(s){try{const i=new URL(s);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 bb(){const s=cl();x.useEffect(()=>gb.lifecycle.onDeepLink(c=>{const r=vb(c);yb.info("deep link",c,"→",r),r&&s(r)}),[s])}/**
 * @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 km=(...s)=>s.filter((i,c,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===c).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 Sb=s=>s.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 wb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,c,r)=>r?r.toUpperCase():c.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 em=s=>{const i=wb(s);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 Eb={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 xb=s=>{for(const i in s)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 Ab=x.forwardRef(({color:s="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:r,className:f="",children:d,iconNode:g,...b},y)=>x.createElement("svg",{ref:y,...Eb,width:i,height:i,stroke:s,strokeWidth:r?Number(c)*24/Number(i):c,className:km("lucide",f),...!d&&!xb(b)&&{"aria-hidden":"true"},...b},[...g.map(([p,R])=>x.createElement(p,R)),...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 Da=(s,i)=>{const c=x.forwardRef(({className:r,...f},d)=>x.createElement(Ab,{ref:d,iconNode:i,className:km(`lucide-${Sb(em(s))}`,`lucide-${s}`,r),...f}));return c.displayName=em(s),c};/**
 * @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 _b=[["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"}]],am=Da("bell",_b);/**
 * @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 Tb=[["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"}]],Mb=Da("brain",Tb);/**
 * @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 Db=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rb=Da("chevron-down",Db);/**
 * @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 Cb=[["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"}]],zb=Da("download",Cb);/**
 * @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 Ob=[["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"}]],Nb=Da("mail",Ob);/**
 * @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 Ub=[["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"}]],kb=Da("refresh-cw",Ub);/**
 * @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 jb=[["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"}]],Lb=Da("shield",jb);/**
 * @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 Bb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Hb=Da("smartphone",Bb);/**
 * @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 qb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jm=Da("x",qb),Ie=Lu.forComponent("PWA");function uc(s){if(zm()){Ie.debug("Baked native bundle — skipping deploy watch (reload cannot pull a newer build)");return}let i="0.81.22";ra.on("_meta/buildId",c=>{const r=c.val(),f=r==null?void 0:r.version;!f||f===i||(Ie.info("Deploy detected:",i,"→",f,r==null?void 0:r.sha),i=f,window.dispatchEvent(new Event("sw-update-available")),s&&s.update().catch(()=>{}))})}async function Yb(){if(!("serviceWorker"in navigator))return uc(null),null;try{const s=await navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"});uc(s),s.addEventListener("updatefound",()=>{const r=s.installing;r&&r.addEventListener("statechange",()=>{r.state==="installed"&&navigator.serviceWorker.controller&&(Ie.info("New version available"),window.dispatchEvent(new Event("sw-update-available")))})});const i=!!navigator.serviceWorker.controller;let c=!1;return navigator.serviceWorker.addEventListener("controllerchange",()=>{c||!i||(c=!0,window.location.reload())}),s}catch(s){return Ie.error("Registration failed:",s),uc(null),null}}function dc(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function Vb(){return"BJbImCE9AHcqUcia8T2874gKINQDB4aPyNZgAg0fEuS5GrAgCOIuYeGbLGI5aBhPKmuG64SHDW-XtBJXE7B2-Xw"}async function Gb(){return"Notification"in window?Notification.permission==="granted"?"granted":Notification.requestPermission():"denied"}async function Xb(s){Ie.debug("subscribeToPush called, key:",(s==null?void 0:s.slice(0,20))+"...");const i=await navigator.serviceWorker.ready;if(!i.pushManager)return Ie.error("No pushManager on registration"),null;try{let c=await i.pushManager.getSubscription();if(Ie.debug("existing subscription:",c?"yes":"none"),!c){Ie.debug("creating new subscription...");const r=Qb(s);Ie.debug("appServerKey length:",r.length),c=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:r}),Ie.debug("subscribed! endpoint:",c.endpoint.slice(0,60))}return{endpoint:c.endpoint,keys:{p256dh:nm(c.getKey("p256dh")),auth:nm(c.getKey("auth"))}}}catch(c){return Ie.error("Push subscription failed:",c),null}}function Qb(s){const i="=".repeat((4-s.length%4)%4),c=(s+i).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(c),f=new Uint8Array(r.length);for(let d=0;d<r.length;++d)f[d]=r.charCodeAt(d);return f}function nm(s){const i=new Uint8Array(s);let c="";for(let r=0;r<i.byteLength;r++)c+=String.fromCharCode(i[r]);return window.btoa(c)}function Zb(){const{user:s}=ol(),[i,c]=x.useState(null),[r,f]=x.useState(!1);x.useEffect(()=>{if(!s||dc()||localStorage.getItem("pwa-install-dismissed")==="true"||!localStorage.getItem("para-has-returned"))return;const p=q=>{q.preventDefault(),c(q),f(!0)};window.addEventListener("beforeinstallprompt",p);const R=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);let A;return R&&(A=setTimeout(()=>f(!0),5e3)),()=>{window.removeEventListener("beforeinstallprompt",p),clearTimeout(A)}},[s]);const d=async()=>{if(i)try{await i.prompt();const{outcome:p}=await i.userChoice;p==="accepted"&&f(!1),c(null)}catch{}},g=()=>{f(!1),localStorage.setItem("pwa-install-dismissed","true")};if(!s||!r||dc())return null;const b=/iPhone|iPad|iPod/i.test(navigator.userAgent),y=/Android/i.test(navigator.userAgent);return w.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:[w.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(jm,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(Hb,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:"Install Para"}),i?w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"text-micro text-muted",children:"Add Para to your home screen for quick access."}),w.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:[w.jsx(zb,{className:"w-4 h-4"}),"Install App"]})]}):b?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on iOS:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the Share button"}),w.jsx("li",{children:'Tap "Add to Home Screen"'}),w.jsx("li",{children:'Tap "Add"'})]})]}):y?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on Android:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the menu button (⋮)"}),w.jsx("li",{children:'Tap "Install app"'})]})]}):w.jsx("p",{className:"text-micro text-muted",children:"Visit on your mobile device to install."})]})]})]})}const tn=Lu.forComponent("PushPrompt");function Jb(){const{user:s}=ol(),[i,c]=x.useState(!1),[r,f]=x.useState(!1);x.useEffect(()=>{if(!s||!dc()||localStorage.getItem("push-prompt-dismissed")==="true"||!("Notification"in window)||!("PushManager"in window))return;if(Notification.permission==="granted"){navigator.serviceWorker.ready.then(async y=>{await y.pushManager.getSubscription()||c(!0)});return}if(Notification.permission==="denied")return;const b=setTimeout(()=>c(!0),3e3);return()=>clearTimeout(b)},[s]);const d=async()=>{if(s){f(!0);try{tn.debug("requesting permission...");const b=await Gb();if(tn.debug("permission:",b),b!=="granted"){c(!1),localStorage.setItem("push-prompt-dismissed","true");return}const y=Vb();tn.debug("VAPID key:",y?y.slice(0,20)+"...":"NOT SET"),tn.debug("subscribing to push...");const p=await Xb(y);if(tn.debug("subscription:",p?"ok":"null"),!p)return;tn.debug("saving subscription to DB..."),await ra.set(`users/${s.id}/pushSubscription`,p),tn.debug("done!"),c(!1)}catch(b){tn.error("failed:",b)}finally{f(!1)}}},g=()=>{c(!1),localStorage.setItem("push-prompt-dismissed","true")};return i?w.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:[w.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(jm,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(am,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:"Enable Notifications"}),w.jsx("p",{className:"text-micro text-muted",children:"Get notified when Para replies, even when the app is in the background."}),w.jsxs("button",{onClick:d,disabled:r,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:[w.jsx(am,{className:"w-4 h-4"}),r?"Enabling...":"Enable Notifications"]})]})]})]}):null}function Kb(){const[s,i]=x.useState(!1);return x.useEffect(()=>{var r;const c=()=>i(!0);return window.addEventListener("sw-update-available",c),(r=navigator.serviceWorker)==null||r.getRegistration().then(f=>{f!=null&&f.waiting&&c()}),()=>window.removeEventListener("sw-update-available",c)},[]),s?w.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:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx(kb,{className:"w-5 h-5 text-accent shrink-0"}),w.jsx("p",{className:"text-micro flex-1",children:"A new version is available."}),w.jsx("button",{onClick:async()=>{var r;const c=await((r=navigator.serviceWorker)==null?void 0:r.getRegistration());c!=null&&c.waiting?c.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 lm=[{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"}],$b=["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"],Wb=["_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"],Pb=["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"],Fb=["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"],Ib=["liv","livshitz","elya"],t1=new Set([...$b,...Wb,...Pb,...Fb,...Ib]);function e1(s){return s.toLowerCase().replace(/\./g,"")}function a1(s){return t1.has(e1(s))}function n1({variant:s,ctaLabel:i="Claim your handle"}){const c=cl(),[r,f]=x.useState(""),[d,g]=x.useState(""),[b,y]=x.useState("idle"),[p,R]=x.useState(""),[A,q]=x.useState(!1),W=x.useRef(null),P=x.useRef({handle:!1,email:!1}),Z=x.useCallback(N=>{P.current[N]||(P.current[N]=!0,pt.event(`lp_${N}_focus`,{variant:s}))},[s]),j=N=>{const m=N.toLowerCase().replace(/[^a-z0-9_.]/g,"");f(m);const J=m.replace(/\./g,"");if(W.current&&clearTimeout(W.current),!J){y("idle");return}if(!/^[a-z0-9_]{3,20}$/.test(J)){y("invalid");return}if(a1(J)){y("reserved");return}y("checking"),W.current=setTimeout(async()=>{try{const tt=await ra.get(`_handle_avail/${J}`)?"taken":"available";tt==="taken"&&pt.event("lp_handle_taken",{handle:J,variant:s}),y(tt)}catch{y("available")}},400)},O=async N=>{if(N.preventDefault(),!(b!=="available"||!d)){R(""),q(!0),pt.event("lp_claim_attempt",{handle:r,variant:s}),pt.metric("lp_claim_attempt",1,{variant:s});try{pt.leads.collect({email:d,name:r,source:`lp-${s}`,meta:{handle:r,variant:s}}).catch(()=>{});const m=r.replace(/\./g,""),J=`claim_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,6)}`;await ra.set(`_handle_claims/${J}`,{handle:m,email:d,variant:s,ts:Date.now()}),c(`/claiming/${m}?claim=${J}`)}catch(m){pt.event("lp_claim_error",{handle:r,variant:s,error:m.message}),R(m.message??"Failed to claim handle")}finally{q(!1)}}};return w.jsxs("form",{onSubmit:O,className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center bg-bg border border-border rounded-lg overflow-hidden focus-within:border-accent",children:[w.jsx("input",{type:"text",placeholder:"yourname",value:r,onChange:N=>j(N.target.value),onFocus:()=>Z("handle"),maxLength:20,autoFocus:!0,className:"flex-1 px-3 py-3 bg-transparent text-text text-body text-right focus:outline-none"}),w.jsx("span",{className:"pr-3 text-muted text-body",children:"@para.li"})]}),w.jsxs("div",{className:"h-5 mt-1 text-micro text-left pl-1",children:[b==="checking"&&w.jsx("span",{className:"text-muted",children:"Checking..."}),b==="available"&&w.jsxs("span",{className:"text-green-400",children:["@",r," is yours"]}),b==="taken"&&w.jsxs("span",{className:"text-danger",children:["@",r," is taken"]}),b==="reserved"&&w.jsxs("span",{className:"text-danger",children:["@",r," is reserved"]}),b==="invalid"&&r&&w.jsx("span",{className:"text-danger",children:"3-20 chars: letters, numbers, underscore"})]})]}),w.jsx("input",{type:"email",inputMode:"email",placeholder:"Your email",value:d,onChange:N=>g(N.target.value),onFocus:()=>Z("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"}),w.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}),p&&w.jsx("p",{className:"text-danger text-micro text-center",children:p})]})}function l1(){const s=Um("lp-variant"),i=(s==null?void 0:s.toUpperCase())??"A",c=lm.find(r=>r.id===i)??lm[0];return x.useEffect(()=>{pt.event("lp_view",{variant:c.id}),pt.metric("lp_load_ms",performance.now(),{unit:"ms",variant:c.id})},[c.id]),w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"relative min-h-screen flex items-center justify-center px-4",children:[w.jsxs("div",{className:"relative z-10 text-center space-y-8 w-full max-w-md",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsx("h1",{className:"text-hero font-bold text-text tracking-tight text-balance",children:c.headline}),w.jsx("p",{className:"text-body text-muted",children:c.subtitle})]}),w.jsx(n1,{variant:c.id})]}),w.jsx(Ac,{to:"/chat-auth",onClick:()=>pt.event("lp_signin_click",{variant:c.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"}),w.jsx("button",{onClick:()=>{var r;pt.event("lp_scroll_how",{variant:c.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:w.jsx(Rb,{size:20})}),!1]}),w.jsx("section",{id:"how-it-works",className:"relative py-24 px-4 bg-surface/80 backdrop-blur-sm border-t border-border",children:w.jsxs("div",{className:"max-w-3xl mx-auto",children:[w.jsx("p",{className:"text-micro font-medium text-accent text-center tracking-widest uppercase mb-3",children:"How it works"}),w.jsx("h2",{className:"text-title font-bold text-text text-center mb-16",children:"Three steps. No setup."}),w.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10 sm:gap-6",children:i1.map((r,f)=>w.jsxs("div",{className:"relative bg-bg rounded-xl border border-border p-6 text-center space-y-4",children:[w.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}),w.jsx("div",{className:"w-12 h-12 mx-auto rounded-lg bg-accent/10 flex items-center justify-center mt-2",children:w.jsx(r.icon,{size:24,className:"text-accent"})}),w.jsx("h3",{className:"text-body font-semibold text-text",children:r.title}),w.jsx("p",{className:"text-body text-text-secondary",children:r.desc})]},r.title))})]})})]})}const i1=[{icon:Nb,title:"Claim your handle",desc:"Pick your @para.li email. It's yours — forever."},{icon:Mb,title:"Your AI learns your style",desc:"Reply once and your Para picks up your tone, priorities, and boundaries."},{icon:Lb,title:"It handles the rest",desc:"Para screens strangers, replies on your behalf, and only pings you when it matters."}],u1=Nt(()=>Dt(()=>import("./Auth-Ym3-J4kv.js"),__vite__mapDeps([0,1])).then(s=>({default:s.ChatAuthPage}))),s1=Nt(()=>Dt(()=>import("./Onboard-D78ZBRTM.js"),__vite__mapDeps([2,0,1,3,4,5])).then(s=>({default:s.OnboardPage}))),r1=Nt(()=>Dt(()=>import("./Creating-DK9uKMSm.js"),[]).then(s=>({default:s.CreatingPage}))),c1=Nt(()=>Dt(()=>import("./MainLayout-CP878H3U.js"),__vite__mapDeps([6,7,8,9,10])).then(s=>({default:s.MainLayout}))),o1=Nt(()=>Dt(()=>import("./ChatList-Cl6N9oIr.js"),__vite__mapDeps([11,7,8,9,12])).then(s=>({default:s.ChatList}))),f1=Nt(()=>Dt(()=>import("./ChatView-TOhMp0Qp.js"),__vite__mapDeps([13,7,14,15,8,1,16,17,18,19,20])).then(s=>({default:s.ChatView}))),d1=Nt(()=>Dt(()=>import("./Discover-CRWsJEB-.js"),__vite__mapDeps([21,7,22,12,23,9,17])).then(s=>({default:s.DiscoverView}))),h1=Nt(()=>Dt(()=>import("./Inbox-p2SQnKH2.js"),__vite__mapDeps([24,7,25,20,10,16])).then(s=>({default:s.InboxListView}))),m1=Nt(()=>Dt(()=>import("./InboxDetail-DgvkWDI1.js"),__vite__mapDeps([26,7,25,20,1,16,5,27,17,19,18])).then(s=>({default:s.InboxDetailView}))),p1=Nt(()=>Dt(()=>import("./TopicDetail-DSFjJ5Zb.js"),__vite__mapDeps([28,22,7,15,4,23])).then(s=>({default:s.TopicDetailView}))),g1=Nt(()=>Dt(()=>import("./Notifications-CIkvjuT3.js"),__vite__mapDeps([29,7,15,23,9])).then(s=>({default:s.NotificationsView}))),y1=Nt(()=>Dt(()=>import("./Settings-D7WcciSp.js"),__vite__mapDeps([30,7,31,8])).then(s=>({default:s.SettingsView}))),v1=Nt(()=>Dt(()=>import("./NotificationTest-oEnYp_hI.js"),__vite__mapDeps([32,7,1,19,17,27])).then(s=>({default:s.NotificationTestPage}))),b1=Nt(()=>Dt(()=>import("./Share-BXS14fBl.js"),[]).then(s=>({default:s.SharePage}))),S1=Nt(()=>Dt(()=>import("./Claiming-CI_YuuY4.js"),__vite__mapDeps([33,7,20])).then(s=>({default:s.ClaimingPage}))),w1=Nt(()=>Dt(()=>import("./Signin-B0yk7iXo.js"),__vite__mapDeps([34,20])).then(s=>({default:s.SigninPage}))),E1=Nt(()=>Dt(()=>import("./Demo-FwwND-Ay.js"),__vite__mapDeps([35,36,37,38,17,39,31])).then(s=>({default:s.DemoPage}))),x1=Nt(()=>Dt(()=>import("./DemoOnboarding-B4ya9h1l.js"),__vite__mapDeps([40,37,38,17,1,41])).then(s=>({default:s.DemoOnboardingPage}))),A1=Nt(()=>Dt(()=>import("./JobChannel-CkinpDDt.js"),__vite__mapDeps([42,7,43,44,15,14,1,3,9,19,45,46,47])).then(s=>({default:s.JobChannel}))),_1=Nt(()=>Dt(()=>import("./JobChannel-CkinpDDt.js"),__vite__mapDeps([42,7,43,44,15,14,1,3,9,19,45,46,47])).then(s=>({default:s.JobLauncher}))),T1=Nt(()=>Dt(()=>import("./AdminTrace-B21DFg8i.js"),__vite__mapDeps([48,7,9,1,5])).then(s=>({default:s.AdminTraceView}))),M1=Nt(()=>Dt(()=>import("./InChatFunnel-CqUecNGA.js"),__vite__mapDeps([49,7,36,37,38,17,50,43,44,15,14,1,3,9,19,45,51,31,39,46,47])).then(s=>({default:s.InChatFunnelPage}))),D1=Nt(()=>Dt(()=>import("./ConversationChannel-Dl7uXbXm.js"),__vite__mapDeps([44,7,15,43,14,1,3,9,19])).then(s=>({default:s.ConversationChannel}))),R1=Nt(()=>Dt(()=>import("./Baby-C6XOLo-e.js"),__vite__mapDeps([52,47])).then(s=>({default:s.BabyPage}))),C1=Nt(()=>Dt(()=>import("./BabyIntake-Body5rCl.js"),__vite__mapDeps([53,7,36,37,38,17,50,43,51,31,39,46,47])).then(s=>({default:s.BabyIntakePage}))),z1=Nt(()=>Dt(()=>import("./BabyQuiz-D0GQpVyI.js"),__vite__mapDeps([54,7,37,50,43,46,31,39,47])).then(s=>({default:s.BabyQuizPage}))),O1=Nt(()=>Dt(()=>import("./Legal-CaYg38Mc.js"),[]).then(s=>({default:s.PrivacyPage}))),N1=Nt(()=>Dt(()=>import("./Legal-CaYg38Mc.js"),[]).then(s=>({default:s.TermsPage}))),U1=Nt(()=>Dt(()=>import("./Legal-CaYg38Mc.js"),[]).then(s=>({default:s.DataDeletionPage})));function k1(){const{conversationId:s}=ey(),{user:i}=ol(),c=cl();return s!=null&&s.startsWith("conv_sleep_")?Tc()?w.jsx(wn,{to:"/chat",replace:!0}):w.jsx(A1,{convId:s}):i&&(s!=null&&s.startsWith(`conv_${i.id}_`))&&!s.slice(`conv_${i.id}_`.length).includes("_")?w.jsx(D1,{convId:s,title:"Para",subtitle:"your Para",ownerName:"Para",enableVoice:!0,onBack:()=>c("/chat")}):w.jsx(f1,{})}function sc({children:s}){const{user:i,pendingVerification:c,loading:r}=ol();return r?w.jsx(Mc,{}):c||!i?w.jsx(wn,{to:"/chat-auth",replace:!0}):w.jsx(w.Fragment,{children:s})}function rc({children:s}){return Um("sleep-consumer-funnel")===!1?w.jsx(wn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:s})}function ui({children:s}){return Tc()?w.jsx(wn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:s})}function Mc(){return w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.jsx("div",{className:"bs-spin"})]})}function j1(){const{loading:s}=ol();return x.useEffect(()=>{s||ov()},[s]),null}function L1(){const{user:s,loading:i}=ol();return i?w.jsx(Mc,{}):s?w.jsx(wn,{to:"/chat",replace:!0}):Tc()?w.jsx(wn,{to:"/chat-auth",replace:!0}):w.jsx(l1,{})}function B1(){return bb(),w.jsxs(w.Fragment,{children:[w.jsx(Kb,{}),w.jsx(Zb,{}),w.jsx(Jb,{}),w.jsx(gv,{children:w.jsxs(x.Suspense,{fallback:w.jsx(Mc,{}),children:[w.jsxs(yy,{children:[w.jsxs(Mt,{element:w.jsx(jv,{}),children:[w.jsx(Mt,{index:!0,element:w.jsx(L1,{})}),w.jsx(Mt,{path:"/claiming/:handle",element:w.jsx(S1,{})}),w.jsx(Mt,{path:"/signin",element:w.jsx(w1,{})}),w.jsx(Mt,{path:"/chat-auth",element:w.jsx(u1,{})}),w.jsx(Mt,{path:"/onboard",element:w.jsx(s1,{})}),w.jsx(Mt,{path:"/chat/:handle/:jobId",element:w.jsx(ui,{children:w.jsx(M1,{})})}),w.jsx(Mt,{path:"/baby",element:w.jsx(ui,{children:w.jsx(rc,{children:w.jsx(R1,{})})})}),w.jsx(Mt,{path:"/baby/intake",element:w.jsx(ui,{children:w.jsx(rc,{children:w.jsx(C1,{})})})}),w.jsx(Mt,{path:"/baby/quiz",element:w.jsx(ui,{children:w.jsx(rc,{children:w.jsx(z1,{})})})}),w.jsx(Mt,{path:"/privacy",element:w.jsx(O1,{})}),w.jsx(Mt,{path:"/terms",element:w.jsx(N1,{})}),w.jsx(Mt,{path:"/data-deletion",element:w.jsx(U1,{})})]}),w.jsx(Mt,{path:"/share",element:w.jsx(sc,{children:w.jsx(b1,{})})}),w.jsx(Mt,{path:"/onboard/creating",element:w.jsx(sc,{children:w.jsx(r1,{})})}),w.jsxs(Mt,{element:w.jsx(sc,{children:w.jsx(c1,{})}),children:[w.jsx(Mt,{path:"/chat",element:w.jsx(o1,{})}),w.jsx(Mt,{path:"/chat/:conversationId",element:w.jsx(k1,{})}),w.jsx(Mt,{path:"/job/:jobId",element:w.jsx(ui,{children:w.jsx(_1,{})})}),w.jsx(Mt,{path:"/discover",element:w.jsx(d1,{})}),w.jsx(Mt,{path:"/inbox",element:w.jsx(h1,{})}),w.jsx(Mt,{path:"/inbox/:emailId",element:w.jsx(m1,{})}),w.jsx(Mt,{path:"/t/:topic",element:w.jsx(p1,{})}),w.jsx(Mt,{path:"/notifications",element:w.jsx(g1,{})}),w.jsx(Mt,{path:"/settings",element:w.jsx(y1,{})}),w.jsx(Mt,{path:"/settings/notifications",element:w.jsx(v1,{})}),w.jsx(Mt,{path:"/admin/trace",element:w.jsx(T1,{})})]}),w.jsx(Mt,{path:"/demo-chat-kit",element:w.jsx(E1,{})}),w.jsx(Mt,{path:"/demo-onboarding",element:w.jsx(x1,{})}),w.jsx(Mt,{path:"*",element:w.jsx(wn,{to:"/",replace:!0})})]}),w.jsx(j1,{})]})})]})}const hc="para_attribution",H1=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","fbclid","ttclid","gclid"];function K1(){try{const s=localStorage.getItem(hc);if(s){const r=JSON.parse(s);return im(r),r}const i=new URLSearchParams(window.location.search),c={};for(const r of H1){const f=i.get(r);f&&(c[r]=f.slice(0,120))}return c.landing=window.location.pathname,c.landed_at=Date.now(),localStorage.setItem(hc,JSON.stringify(c)),im(c),c}catch{return{}}}function im(s){try{pt.analytics.register(s)}catch{}}function q1(){try{const s=localStorage.getItem(hc);if(s)return JSON.parse(s)}catch{}return{}}let mc="init",um=!1;const sm=new Set;function $1(s){mc=s}function W1(s,i={}){si(s,{kind:"stall",...i})}function Y1(){try{if(window.matchMedia("(pointer: coarse)").matches||navigator.maxTouchPoints>0)return"mobile"}catch{}return"desktop"}function rm(s){var i;if(s instanceof Error){const c=(i=s.stack)==null?void 0:i.split(`
`).map(r=>r.trim()).find(r=>r.startsWith("at "));return{name:s.name,message:s.message||s.name||"Error",frame:c==null?void 0:c.slice(0,160)}}if(typeof s=="string")return{message:s};if(s&&typeof s=="object"){const c=s,r=typeof c.message=="string"?c.message:(()=>{try{return JSON.stringify(c).slice(0,200)}catch{return String(s)}})();return{name:typeof c.name=="string"?c.name:void 0,message:r}}return{message:String(s)}}function si(s,i={}){try{const c=window.location.pathname,r=`${c}|${mc}|${i.name??""}|${s}|${i.at??""}`.slice(0,240);if(sm.has(r))return;sm.add(r),pt.event("client_error",{msg:String(s).slice(0,300),route:c,step:mc,device:Y1(),...i,...q1()})}catch{}}function V1(){um||typeof window>"u"||(um=!0,window.addEventListener("error",s=>{var r;if(!s.error&&s.target&&s.target!==window){const f=s.target,d=f.src||f.href||"";if(d){si(`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(!s.error&&(!s.message||s.message==="Script error.")){si("Script error (cross-origin — detail blocked; add crossorigin+CORS to see it)",{kind:"cross-origin",src:(s.filename||"").slice(0,160)});return}const i=rm(s.error??s.message),c=s.filename?`${s.filename.split("/").pop()}:${s.lineno??0}:${s.colno??0}`:void 0;si(i.message,{kind:"error",name:i.name,at:c,frame:i.frame,src:(s.filename||"").slice(0,160)})},!0),window.addEventListener("unhandledrejection",s=>{const i=s.reason;if((i==null?void 0:i.name)==="AbortError")return;const c=rm(i);si(c.message,{kind:"rejection",name:c.name,frame:c.frame})}))}V1();window.addEventListener("vite:preloadError",s=>{const i="chunk-reload-at";let c=0;try{c=Number(sessionStorage.getItem(i)??0)}catch{}if(!(Date.now()-c<3e4)){s.preventDefault();try{sessionStorage.setItem(i,String(Date.now()))}catch{}window.location.reload()}});Yb();"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",s=>{var i,c;((i=s.data)==null?void 0:i.type)==="NAVIGATE"&&s.data.url&&(window.location.href=s.data.url),((c=s.data)==null?void 0:c.type)==="MARK_READ"&&s.data.nid&&Dt(async()=>{const{client:r}=await Promise.resolve().then(()=>sv);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/${s.data.nid}`).then(b=>{b&&!b.read&&r.set(`users/${g}/notifications/${s.data.nid}`,{...b,read:!0})})}catch{}})});pg.createRoot(document.getElementById("root")).render(w.jsx(x.StrictMode,{children:w.jsx(Vy,{children:w.jsx(mv,{children:w.jsx(fv,{children:w.jsx(B1,{})})})})}));export{pt as B,Rb as C,Ac as L,Nb as M,wn as N,py as O,kb as R,Hb as S,jm as X,Dt as _,cl as a,J1 as b,Da as c,ra as d,Um as e,am as f,Z1 as g,Gy as h,Tc as i,w as j,ey as k,Lu as l,X1 as m,pv as n,gb as o,dc as p,Vb as q,x as r,Xb as s,q1 as t,ol as u,K1 as v,dg as w,$1 as x,W1 as y,Q1 as z};