autoglm-gui 0.4.12__py3-none-any.whl → 0.4.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +0,0 @@
1
- function uv(l,s){for(var u=0;u<s.length;u++){const c=s[u];if(typeof c!="string"&&!Array.isArray(c)){for(const r in c)if(r!=="default"&&!(r in l)){const d=Object.getOwnPropertyDescriptor(c,r);d&&Object.defineProperty(l,r,d.get?d:{enumerable:!0,get:()=>c[r]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))c(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function u(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(r){if(r.ep)return;r.ep=!0;const d=u(r);fetch(r.href,d)}})();function nr(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var zs={exports:{}},si={};var pm;function cv(){if(pm)return si;pm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(c,r,d){var m=null;if(d!==void 0&&(m=""+d),r.key!==void 0&&(m=""+r.key),"key"in r){d={};for(var g in r)g!=="key"&&(d[g]=r[g])}else d=r;return r=d.ref,{$$typeof:l,type:c,key:m,ref:r!==void 0?r:null,props:d}}return si.Fragment=s,si.jsx=u,si.jsxs=u,si}var ym;function sv(){return ym||(ym=1,zs.exports=cv()),zs.exports}var Z=sv(),Os={exports:{}},ri={},ws={exports:{}},Ds={};var gm;function rv(){return gm||(gm=1,(function(l){function s(O,Q){var Y=O.length;O.push(Q);t:for(;0<Y;){var _t=Y-1>>>1,Et=O[_t];if(0<r(Et,Q))O[_t]=Q,O[Y]=Et,Y=_t;else break t}}function u(O){return O.length===0?null:O[0]}function c(O){if(O.length===0)return null;var Q=O[0],Y=O.pop();if(Y!==Q){O[0]=Y;t:for(var _t=0,Et=O.length,T=Et>>>1;_t<T;){var H=2*(_t+1)-1,V=O[H],K=H+1,it=O[K];if(0>r(V,Y))K<Et&&0>r(it,V)?(O[_t]=it,O[K]=Y,_t=K):(O[_t]=V,O[H]=Y,_t=H);else if(K<Et&&0>r(it,Y))O[_t]=it,O[K]=Y,_t=K;else break t}}return Q}function r(O,Q){var Y=O.sortIndex-Q.sortIndex;return Y!==0?Y:O.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,g=m.now();l.unstable_now=function(){return m.now()-g}}var p=[],h=[],S=1,v=null,b=3,E=!1,w=!1,U=!1,B=!1,q=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function W(O){for(var Q=u(h);Q!==null;){if(Q.callback===null)c(h);else if(Q.startTime<=O)c(h),Q.sortIndex=Q.expirationTime,s(p,Q);else break;Q=u(h)}}function at(O){if(U=!1,W(O),!w)if(u(p)!==null)w=!0,X||(X=!0,St());else{var Q=u(h);Q!==null&&At(at,Q.startTime-O)}}var X=!1,G=-1,L=5,P=-1;function ft(){return B?!0:!(l.unstable_now()-P<L)}function ct(){if(B=!1,X){var O=l.unstable_now();P=O;var Q=!0;try{t:{w=!1,U&&(U=!1,J(G),G=-1),E=!0;var Y=b;try{e:{for(W(O),v=u(p);v!==null&&!(v.expirationTime>O&&ft());){var _t=v.callback;if(typeof _t=="function"){v.callback=null,b=v.priorityLevel;var Et=_t(v.expirationTime<=O);if(O=l.unstable_now(),typeof Et=="function"){v.callback=Et,W(O),Q=!0;break e}v===u(p)&&c(p),W(O)}else c(p);v=u(p)}if(v!==null)Q=!0;else{var T=u(h);T!==null&&At(at,T.startTime-O),Q=!1}}break t}finally{v=null,b=Y,E=!1}Q=void 0}}finally{Q?St():X=!1}}}var St;if(typeof k=="function")St=function(){k(ct)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Ut=jt.port2;jt.port1.onmessage=ct,St=function(){Ut.postMessage(null)}}else St=function(){q(ct,0)};function At(O,Q){G=q(function(){O(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(O){O.callback=null},l.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<O?Math.floor(1e3/O):5},l.unstable_getCurrentPriorityLevel=function(){return b},l.unstable_next=function(O){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var Y=b;b=Q;try{return O()}finally{b=Y}},l.unstable_requestPaint=function(){B=!0},l.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Y=b;b=O;try{return Q()}finally{b=Y}},l.unstable_scheduleCallback=function(O,Q,Y){var _t=l.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?_t+Y:_t):Y=_t,O){case 1:var Et=-1;break;case 2:Et=250;break;case 5:Et=1073741823;break;case 4:Et=1e4;break;default:Et=5e3}return Et=Y+Et,O={id:S++,callback:Q,priorityLevel:O,startTime:Y,expirationTime:Et,sortIndex:-1},Y>_t?(O.sortIndex=Y,s(h,O),u(p)===null&&O===u(h)&&(U?(J(G),G=-1):U=!0,At(at,Y-_t))):(O.sortIndex=Et,s(p,O),w||E||(w=!0,X||(X=!0,St()))),O},l.unstable_shouldYield=ft,l.unstable_wrapCallback=function(O){var Q=b;return function(){var Y=b;b=Q;try{return O.apply(this,arguments)}finally{b=Y}}}})(Ds)),Ds}var vm;function fv(){return vm||(vm=1,ws.exports=rv()),ws.exports}var Ls={exports:{}},st={};var Sm;function dv(){if(Sm)return st;Sm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,B={};function q(T,H,V){this.props=T,this.context=H,this.refs=B,this.updater=V||w}q.prototype.isReactComponent={},q.prototype.setState=function(T,H){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,H,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function J(){}J.prototype=q.prototype;function k(T,H,V){this.props=T,this.context=H,this.refs=B,this.updater=V||w}var W=k.prototype=new J;W.constructor=k,U(W,q.prototype),W.isPureReactComponent=!0;var at=Array.isArray;function X(){}var G={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function P(T,H,V){var K=V.ref;return{$$typeof:l,type:T,key:H,ref:K!==void 0?K:null,props:V}}function ft(T,H){return P(T.type,H,T.props)}function ct(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function St(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(V){return H[V]})}var jt=/\/+/g;function Ut(T,H){return typeof T=="object"&&T!==null&&T.key!=null?St(""+T.key):H.toString(36)}function At(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(X,X):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function O(T,H,V,K,it){var ut=typeof T;(ut==="undefined"||ut==="boolean")&&(T=null);var lt=!1;if(T===null)lt=!0;else switch(ut){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(T.$$typeof){case l:case s:lt=!0;break;case S:return lt=T._init,O(lt(T._payload),H,V,K,it)}}if(lt)return it=it(T),lt=K===""?"."+Ut(T,0):K,at(it)?(V="",lt!=null&&(V=lt.replace(jt,"$&/")+"/"),O(it,H,V,"",function(ue){return ue})):it!=null&&(ct(it)&&(it=ft(it,V+(it.key==null||T&&T.key===it.key?"":(""+it.key).replace(jt,"$&/")+"/")+lt)),H.push(it)),1;lt=0;var Gt=K===""?".":K+":";if(at(T))for(var bt=0;bt<T.length;bt++)K=T[bt],ut=Gt+Ut(K,bt),lt+=O(K,H,V,ut,it);else if(bt=E(T),typeof bt=="function")for(T=bt.call(T),bt=0;!(K=T.next()).done;)K=K.value,ut=Gt+Ut(K,bt++),lt+=O(K,H,V,ut,it);else if(ut==="object"){if(typeof T.then=="function")return O(At(T),H,V,K,it);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return lt}function Q(T,H,V){if(T==null)return T;var K=[],it=0;return O(T,K,"","",function(ut){return H.call(V,ut,it++)}),K}function Y(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(V){(T._status===0||T._status===-1)&&(T._status=1,T._result=V)},function(V){(T._status===0||T._status===-1)&&(T._status=2,T._result=V)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var _t=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Et={map:Q,forEach:function(T,H,V){Q(T,function(){H.apply(this,arguments)},V)},count:function(T){var H=0;return Q(T,function(){H++}),H},toArray:function(T){return Q(T,function(H){return H})||[]},only:function(T){if(!ct(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return st.Activity=v,st.Children=Et,st.Component=q,st.Fragment=u,st.Profiler=r,st.PureComponent=k,st.StrictMode=c,st.Suspense=p,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,st.__COMPILER_RUNTIME={__proto__:null,c:function(T){return G.H.useMemoCache(T)}},st.cache=function(T){return function(){return T.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(T,H,V){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var K=U({},T.props),it=T.key;if(H!=null)for(ut in H.key!==void 0&&(it=""+H.key),H)!L.call(H,ut)||ut==="key"||ut==="__self"||ut==="__source"||ut==="ref"&&H.ref===void 0||(K[ut]=H[ut]);var ut=arguments.length-2;if(ut===1)K.children=V;else if(1<ut){for(var lt=Array(ut),Gt=0;Gt<ut;Gt++)lt[Gt]=arguments[Gt+2];K.children=lt}return P(T.type,it,K)},st.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},st.createElement=function(T,H,V){var K,it={},ut=null;if(H!=null)for(K in H.key!==void 0&&(ut=""+H.key),H)L.call(H,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(it[K]=H[K]);var lt=arguments.length-2;if(lt===1)it.children=V;else if(1<lt){for(var Gt=Array(lt),bt=0;bt<lt;bt++)Gt[bt]=arguments[bt+2];it.children=Gt}if(T&&T.defaultProps)for(K in lt=T.defaultProps,lt)it[K]===void 0&&(it[K]=lt[K]);return P(T,ut,it)},st.createRef=function(){return{current:null}},st.forwardRef=function(T){return{$$typeof:g,render:T}},st.isValidElement=ct,st.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:Y}},st.memo=function(T,H){return{$$typeof:h,type:T,compare:H===void 0?null:H}},st.startTransition=function(T){var H=G.T,V={};G.T=V;try{var K=T(),it=G.S;it!==null&&it(V,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(X,_t)}catch(ut){_t(ut)}finally{H!==null&&V.types!==null&&(H.types=V.types),G.T=H}},st.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},st.use=function(T){return G.H.use(T)},st.useActionState=function(T,H,V){return G.H.useActionState(T,H,V)},st.useCallback=function(T,H){return G.H.useCallback(T,H)},st.useContext=function(T){return G.H.useContext(T)},st.useDebugValue=function(){},st.useDeferredValue=function(T,H){return G.H.useDeferredValue(T,H)},st.useEffect=function(T,H){return G.H.useEffect(T,H)},st.useEffectEvent=function(T){return G.H.useEffectEvent(T)},st.useId=function(){return G.H.useId()},st.useImperativeHandle=function(T,H,V){return G.H.useImperativeHandle(T,H,V)},st.useInsertionEffect=function(T,H){return G.H.useInsertionEffect(T,H)},st.useLayoutEffect=function(T,H){return G.H.useLayoutEffect(T,H)},st.useMemo=function(T,H){return G.H.useMemo(T,H)},st.useOptimistic=function(T,H){return G.H.useOptimistic(T,H)},st.useReducer=function(T,H,V){return G.H.useReducer(T,H,V)},st.useRef=function(T){return G.H.useRef(T)},st.useState=function(T){return G.H.useState(T)},st.useSyncExternalStore=function(T,H,V){return G.H.useSyncExternalStore(T,H,V)},st.useTransition=function(){return G.H.useTransition()},st.version="19.2.1",st}var bm;function Ri(){return bm||(bm=1,Ls.exports=dv()),Ls.exports}var Ns={exports:{}},ie={};var _m;function hv(){if(_m)return ie;_m=1;var l=Ri();function s(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)h+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(s(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(p,h,S){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:v==null?null:""+v,children:p,containerInfo:h,implementation:S}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ie.createPortal=function(p,h){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(s(299));return d(p,h,null,S)},ie.flushSync=function(p){var h=m.T,S=c.p;try{if(m.T=null,c.p=2,p)return p()}finally{m.T=h,c.p=S,c.d.f()}},ie.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,c.d.C(p,h))},ie.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},ie.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var S=h.as,v=g(S,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;S==="style"?c.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:E}):S==="script"&&c.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ie.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var S=g(h.as,h.crossOrigin);c.d.M(p,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&c.d.M(p)},ie.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var S=h.as,v=g(S,h.crossOrigin);c.d.L(p,S,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ie.preloadModule=function(p,h){if(typeof p=="string")if(h){var S=g(h.as,h.crossOrigin);c.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else c.d.m(p)},ie.requestFormReset=function(p){c.d.r(p)},ie.unstable_batchedUpdates=function(p,h){return p(h)},ie.useFormState=function(p,h,S){return m.H.useFormState(p,h,S)},ie.useFormStatus=function(){return m.H.useHostTransitionStatus()},ie.version="19.2.1",ie}var Rm;function Im(){if(Rm)return Ns.exports;Rm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Ns.exports=hv(),Ns.exports}var Tm;function mv(){if(Tm)return ri;Tm=1;var l=fv(),s=Ri(),u=Im();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(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 g(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 p(t){if(d(t)!==t)throw Error(c(188))}function h(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var n=t,a=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return p(i),t;if(o===a)return p(i),e;o=o.sibling}throw Error(c(188))}if(n.return!==a.return)n=i,a=o;else{for(var f=!1,y=i.child;y;){if(y===n){f=!0,n=i,a=o;break}if(y===a){f=!0,a=i,n=o;break}y=y.sibling}if(!f){for(y=o.child;y;){if(y===n){f=!0,n=o,a=i;break}if(y===a){f=!0,a=o,n=i;break}y=y.sibling}if(!f)throw Error(c(189))}}if(n.alternate!==a)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),k=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),at=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),ft=Symbol.for("react.memo_cache_sentinel"),ct=Symbol.iterator;function St(t){return t===null||typeof t!="object"?null:(t=ct&&t[ct]||t["@@iterator"],typeof t=="function"?t:null)}var jt=Symbol.for("react.client.reference");function Ut(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case q:return"Profiler";case B:return"StrictMode";case at:return"Suspense";case X:return"SuspenseList";case P:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case k:return t.displayName||"Context";case J:return(t._context.displayName||"Context")+".Consumer";case W:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return e=t.displayName||null,e!==null?e:Ut(t.type)||"Memo";case L:e=t._payload,t=t._init;try{return Ut(t(e))}catch{}}return null}var At=Array.isArray,O=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},_t=[],Et=-1;function T(t){return{current:t}}function H(t){0>Et||(t.current=_t[Et],_t[Et]=null,Et--)}function V(t,e){Et++,_t[Et]=t.current,t.current=e}var K=T(null),it=T(null),ut=T(null),lt=T(null);function Gt(t,e){switch(V(ut,e),V(it,t),V(K,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?jh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=jh(e),t=qh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(K),V(K,t)}function bt(){H(K),H(it),H(ut)}function ue(t){t.memoizedState!==null&&V(lt,t);var e=K.current,n=qh(e,t.type);e!==n&&(V(it,t),V(K,n))}function ze(t){it.current===t&&(H(K),H(it)),lt.current===t&&(H(lt),ii._currentValue=Y)}var le,Ti;function Pe(t){if(le===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);le=e&&e[1]||"",Ti=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+le+t+Ti}var Ra=!1;function pl(t,e){if(!t||Ra)return"";Ra=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(z){var C=z}Reflect.construct(t,[],j)}else{try{j.call()}catch(z){C=z}t.call(j.prototype)}}else{try{throw Error()}catch(z){C=z}(j=t())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),f=o[0],y=o[1];if(f&&y){var _=f.split(`
4
- `),A=y.split(`
5
- `);for(i=a=0;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;for(;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;if(a===_.length||i===A.length)for(a=_.length-1,i=A.length-1;1<=a&&0<=i&&_[a]!==A[i];)i--;for(;1<=a&&0<=i;a--,i--)if(_[a]!==A[i]){if(a!==1||i!==1)do if(a--,i--,0>i||_[a]!==A[i]){var D=`
6
- `+_[a].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=a&&0<=i);break}}}finally{Ra=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Pe(n):""}function yu(t,e){switch(t.tag){case 26:case 27:case 5:return Pe(t.type);case 16:return Pe("Lazy");case 13:return t.child!==e&&e!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return pl(t.type,!1);case 11:return pl(t.type.render,!1);case 1:return pl(t.type,!0);case 31:return Pe("Activity");default:return""}}function Ei(t){try{var e="",n=null;do e+=yu(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var Sn=Object.prototype.hasOwnProperty,bn=l.unstable_scheduleCallback,Ta=l.unstable_cancelCallback,xi=l.unstable_shouldYield,Ot=l.unstable_requestPaint,xt=l.unstable_now,ye=l.unstable_getCurrentPriorityLevel,yl=l.unstable_ImmediatePriority,yr=l.unstable_UserBlockingPriority,Mi=l.unstable_NormalPriority,Vp=l.unstable_LowPriority,gr=l.unstable_IdlePriority,Xp=l.log,kp=l.unstable_setDisableYieldValue,gl=null,ge=null;function _n(t){if(typeof Xp=="function"&&kp(t),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(gl,t)}catch{}}var ve=Math.clz32?Math.clz32:Kp,Qp=Math.log,Zp=Math.LN2;function Kp(t){return t>>>=0,t===0?32:31-(Qp(t)/Zp|0)|0}var Ai=256,Ci=262144,zi=4194304;function Pn(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 Oi(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,o=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var y=a&134217727;return y!==0?(a=y&~o,a!==0?i=Pn(a):(f&=y,f!==0?i=Pn(f):n||(n=y&~t,n!==0&&(i=Pn(n))))):(y=a&~o,y!==0?i=Pn(y):f!==0?i=Pn(f):n||(n=a&~t,n!==0&&(i=Pn(n)))),i===0?0:e!==0&&e!==i&&(e&o)===0&&(o=i&-i,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:i}function vl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Jp(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 vr(){var t=zi;return zi<<=1,(zi&62914560)===0&&(zi=4194304),t}function gu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Sl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Fp(t,e,n,a,i,o){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,_=t.expirationTimes,A=t.hiddenUpdates;for(n=f&~n;0<n;){var D=31-ve(n),j=1<<D;y[D]=0,_[D]=-1;var C=A[D];if(C!==null)for(A[D]=null,D=0;D<C.length;D++){var z=C[D];z!==null&&(z.lane&=-536870913)}n&=~j}a!==0&&Sr(t,a,0),o!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=o&~(f&~e))}function Sr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ve(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function br(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ve(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function _r(t,e){var n=e&-e;return n=(n&42)!==0?1:vu(n),(n&(t.suspendedLanes|e))!==0?0:n}function vu(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 Su(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Rr(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:cm(t.type))}function Tr(t,e){var n=Q.p;try{return Q.p=t,e()}finally{Q.p=n}}var Rn=Math.random().toString(36).slice(2),It="__reactFiber$"+Rn,ce="__reactProps$"+Rn,Ea="__reactContainer$"+Rn,bu="__reactEvents$"+Rn,Wp="__reactListeners$"+Rn,Pp="__reactHandles$"+Rn,Er="__reactResources$"+Rn,bl="__reactMarker$"+Rn;function _u(t){delete t[It],delete t[ce],delete t[bu],delete t[Wp],delete t[Pp]}function xa(t){var e=t[It];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ea]||n[It]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Zh(t);t!==null;){if(n=t[It])return n;t=Zh(t)}return e}t=n,n=t.parentNode}return null}function Ma(t){if(t=t[It]||t[Ea]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function _l(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Aa(t){var e=t[Er];return e||(e=t[Er]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[bl]=!0}var xr=new Set,Mr={};function $n(t,e){Ca(t,e),Ca(t+"Capture",e)}function Ca(t,e){for(Mr[t]=e,t=0;t<e.length;t++)xr.add(e[t])}var $p=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]*$"),Ar={},Cr={};function Ip(t){return Sn.call(Cr,t)?!0:Sn.call(Ar,t)?!1:$p.test(t)?Cr[t]=!0:(Ar[t]=!0,!1)}function wi(t,e,n){if(Ip(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Di(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function $e(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function zr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ty(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,o.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ru(t){if(!t._valueTracker){var e=zr(t)?"checked":"value";t._valueTracker=ty(t,e,""+t[e])}}function Or(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=zr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Li(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 ey=/[\n"\\]/g;function we(t){return t.replace(ey,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Tu(t,e,n,a,i,o,f,y){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Eu(t,f,Oe(e)):n!=null?Eu(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),i==null&&o!=null&&(t.defaultChecked=!!o),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Oe(y):t.removeAttribute("name")}function wr(t,e,n,a,i,o,f,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){Ru(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=y?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Ru(t)}function Eu(t,e,n){e==="number"&&Li(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function za(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Dr(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Lr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(c(92));if(At(a)){if(1<a.length)throw Error(c(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Ru(t)}function Oa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ny=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 Nr(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||ny.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ur(t,e,n){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&Nr(t,i,a)}else for(var o in e)e.hasOwnProperty(o)&&Nr(t,o,e[o])}function xu(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 ay=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"]]),ly=/^[\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 Ni(t){return ly.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var Mu=null;function Au(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wa=null,Da=null;function Br(t){var e=Ma(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Tu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+we(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var i=a[ce]||null;if(!i)throw Error(c(90));Tu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Or(a)}break t;case"textarea":Dr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&za(t,!!n.multiple,e,!1)}}}var Cu=!1;function Hr(t,e,n){if(Cu)return t(e,n);Cu=!0;try{var a=t(e);return a}finally{if(Cu=!1,(wa!==null||Da!==null)&&(Ro(),wa&&(e=wa,t=Da,Da=wa=null,Br(e),t)))for(e=0;e<t.length;e++)Br(t[e])}}function Rl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ce]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(c(231,e,typeof n));return n}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zu=!1;if(tn)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){zu=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{zu=!1}var Tn=null,Ou=null,Ui=null;function jr(){if(Ui)return Ui;var t,e=Ou,n=e.length,a,i="value"in Tn?Tn.value:Tn.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===i[o-a];a++);return Ui=i.slice(t,1<a?1-a:void 0)}function Bi(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 Hi(){return!0}function qr(){return!1}function se(t){function e(n,a,i,o,f){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=f,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(o):o[y]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Hi:qr,this.isPropagationStopped=qr,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),e}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ji=se(In),El=v({},In,{view:0,detail:0}),iy=se(El),wu,Du,xl,qi=v({},El,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nu,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!==xl&&(xl&&t.type==="mousemove"?(wu=t.screenX-xl.screenX,Du=t.screenY-xl.screenY):Du=wu=0,xl=t),wu)},movementY:function(t){return"movementY"in t?t.movementY:Du}}),Gr=se(qi),oy=v({},qi,{dataTransfer:0}),uy=se(oy),cy=v({},El,{relatedTarget:0}),Lu=se(cy),sy=v({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),ry=se(sy),fy=v({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),dy=se(fy),hy=v({},In,{data:0}),Yr=se(hy),my={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},py={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"},yy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=yy[t])?!!e[t]:!1}function Nu(){return gy}var vy=v({},El,{key:function(t){if(t.key){var e=my[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Bi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?py[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nu,charCode:function(t){return t.type==="keypress"?Bi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Sy=se(vy),by=v({},qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vr=se(by),_y=v({},El,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nu}),Ry=se(_y),Ty=v({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ey=se(Ty),xy=v({},qi,{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}),My=se(xy),Ay=v({},In,{newState:0,oldState:0}),Cy=se(Ay),zy=[9,13,27,32],Uu=tn&&"CompositionEvent"in window,Ml=null;tn&&"documentMode"in document&&(Ml=document.documentMode);var Oy=tn&&"TextEvent"in window&&!Ml,Xr=tn&&(!Uu||Ml&&8<Ml&&11>=Ml),kr=" ",Qr=!1;function Zr(t,e){switch(t){case"keyup":return zy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var La=!1;function wy(t,e){switch(t){case"compositionend":return Kr(e);case"keypress":return e.which!==32?null:(Qr=!0,kr);case"textInput":return t=e.data,t===kr&&Qr?null:t;default:return null}}function Dy(t,e){if(La)return t==="compositionend"||!Uu&&Zr(t,e)?(t=jr(),Ui=Ou=Tn=null,La=!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 Xr&&e.locale!=="ko"?null:e.data;default:return null}}var Ly={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 Jr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ly[t.type]:e==="textarea"}function Fr(t,e,n,a){wa?Da?Da.push(a):Da=[a]:wa=a,e=zo(e,"onChange"),0<e.length&&(n=new ji("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Al=null,Cl=null;function Ny(t){Dh(t,0)}function Gi(t){var e=_l(t);if(Or(e))return t}function Wr(t,e){if(t==="change")return e}var Pr=!1;if(tn){var Bu;if(tn){var Hu="oninput"in document;if(!Hu){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Hu=typeof $r.oninput=="function"}Bu=Hu}else Bu=!1;Pr=Bu&&(!document.documentMode||9<document.documentMode)}function Ir(){Al&&(Al.detachEvent("onpropertychange",tf),Cl=Al=null)}function tf(t){if(t.propertyName==="value"&&Gi(Cl)){var e=[];Fr(e,Cl,t,Au(t)),Hr(Ny,e)}}function Uy(t,e,n){t==="focusin"?(Ir(),Al=e,Cl=n,Al.attachEvent("onpropertychange",tf)):t==="focusout"&&Ir()}function By(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gi(Cl)}function Hy(t,e){if(t==="click")return Gi(e)}function jy(t,e){if(t==="input"||t==="change")return Gi(e)}function qy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Se=typeof Object.is=="function"?Object.is:qy;function zl(t,e){if(Se(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Sn.call(e,i)||!Se(t[i],e[i]))return!1}return!0}function ef(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function nf(t,e){var n=ef(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ef(n)}}function af(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?af(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Li(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Li(t.document)}return e}function ju(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 Gy=tn&&"documentMode"in document&&11>=document.documentMode,Na=null,qu=null,Ol=null,Gu=!1;function of(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||Na==null||Na!==Li(a)||(a=Na,"selectionStart"in a&&ju(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ol&&zl(Ol,a)||(Ol=a,a=zo(qu,"onSelect"),0<a.length&&(e=new ji("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Na)))}function ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ua={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},Yu={},uf={};tn&&(uf=document.createElement("div").style,"AnimationEvent"in window||(delete Ua.animationend.animation,delete Ua.animationiteration.animation,delete Ua.animationstart.animation),"TransitionEvent"in window||delete Ua.transitionend.transition);function ea(t){if(Yu[t])return Yu[t];if(!Ua[t])return t;var e=Ua[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in uf)return Yu[t]=e[n];return t}var cf=ea("animationend"),sf=ea("animationiteration"),rf=ea("animationstart"),Yy=ea("transitionrun"),Vy=ea("transitionstart"),Xy=ea("transitioncancel"),ff=ea("transitionend"),df=new Map,Vu="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(" ");Vu.push("scrollEnd");function Ve(t,e){df.set(t,e),$n(e,[t])}var Yi=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)},De=[],Ba=0,Xu=0;function Vi(){for(var t=Ba,e=Xu=Ba=0;e<t;){var n=De[e];De[e++]=null;var a=De[e];De[e++]=null;var i=De[e];De[e++]=null;var o=De[e];if(De[e++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}o!==0&&hf(n,i,o)}}function Xi(t,e,n,a){De[Ba++]=t,De[Ba++]=e,De[Ba++]=n,De[Ba++]=a,Xu|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ku(t,e,n,a){return Xi(t,e,n,a),ki(t)}function na(t,e){return Xi(t,null,null,e),ki(t)}function hf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=t.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(i=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,i&&e!==null&&(i=31-ve(n),t=o.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),o):null}function ki(t){if(50<$l)throw $l=0,Ic=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ha={};function ky(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,n,a){return new ky(t,e,n,a)}function Qu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function en(t,e){var n=t.alternate;return n===null?(n=be(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function mf(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Qi(t,e,n,a,i,o){var f=0;if(a=t,typeof t=="function")Qu(t)&&(f=1);else if(typeof t=="string")f=Fg(t,n,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case P:return t=be(31,n,e,i),t.elementType=P,t.lanes=o,t;case U:return aa(n.children,i,o,e);case B:f=8,i|=24;break;case q:return t=be(12,n,e,i|2),t.elementType=q,t.lanes=o,t;case at:return t=be(13,n,e,i),t.elementType=at,t.lanes=o,t;case X:return t=be(19,n,e,i),t.elementType=X,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case k:f=10;break t;case J:f=9;break t;case W:f=11;break t;case G:f=14;break t;case L:f=16,a=null;break t}f=29,n=Error(c(130,t===null?"null":typeof t,"")),a=null}return e=be(f,n,e,i),e.elementType=t,e.type=a,e.lanes=o,e}function aa(t,e,n,a){return t=be(7,t,a,e),t.lanes=n,t}function Zu(t,e,n){return t=be(6,t,null,e),t.lanes=n,t}function pf(t){var e=be(18,null,null,0);return e.stateNode=t,e}function Ku(t,e,n){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var yf=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var n=yf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ei(e)},yf.set(t,e),e)}return{value:t,source:e,stack:Ei(e)}}var ja=[],qa=0,Zi=null,wl=0,Ne=[],Ue=0,En=null,Ze=1,Ke="";function nn(t,e){ja[qa++]=wl,ja[qa++]=Zi,Zi=t,wl=e}function gf(t,e,n){Ne[Ue++]=Ze,Ne[Ue++]=Ke,Ne[Ue++]=En,En=t;var a=Ze;t=Ke;var i=32-ve(a)-1;a&=~(1<<i),n+=1;var o=32-ve(e)+i;if(30<o){var f=i-i%5;o=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Ze=1<<32-ve(e)+i|n<<i|a,Ke=o+t}else Ze=1<<o|n<<i|a,Ke=t}function Ju(t){t.return!==null&&(nn(t,1),gf(t,1,0))}function Fu(t){for(;t===Zi;)Zi=ja[--qa],ja[qa]=null,wl=ja[--qa],ja[qa]=null;for(;t===En;)En=Ne[--Ue],Ne[Ue]=null,Ke=Ne[--Ue],Ne[Ue]=null,Ze=Ne[--Ue],Ne[Ue]=null}function vf(t,e){Ne[Ue++]=Ze,Ne[Ue++]=Ke,Ne[Ue++]=En,Ze=e.id,Ke=e.overflow,En=t}var te=null,Bt=null,vt=!1,xn=null,Be=!1,Wu=Error(c(519));function Mn(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Dl(Le(e,t)),Wu}function Sf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[It]=t,e[ce]=a,n){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(n=0;n<ti.length;n++)pt(ti[n],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),wr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),Lr(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Bh(e.textContent,n)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||Mn(t,!0)}function bf(t){for(te=t.return;te;)switch(te.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:te=te.return}}function Ga(t){if(t!==te)return!1;if(!vt)return bf(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ms(t.type,t.memoizedProps)),n=!n),n&&Bt&&Mn(t),bf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Bt=Qh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Bt=Qh(t)}else e===27?(e=Bt,Gn(t.type)?(t=Ss,Ss=null,Bt=t):Bt=e):Bt=te?je(t.stateNode.nextSibling):null;return!0}function la(){Bt=te=null,vt=!1}function Pu(){var t=xn;return t!==null&&(he===null?he=t:he.push.apply(he,t),xn=null),t}function Dl(t){xn===null?xn=[t]:xn.push(t)}var $u=T(null),ia=null,an=null;function An(t,e,n){V($u,e._currentValue),e._currentValue=n}function ln(t){t._currentValue=$u.current,H($u)}function Iu(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function tc(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){var f=i.child;o=o.firstContext;t:for(;o!==null;){var y=o;o=i;for(var _=0;_<e.length;_++)if(y.context===e[_]){o.lanes|=n,y=o.alternate,y!==null&&(y.lanes|=n),Iu(o.return,n,t),a||(f=null);break t}o=y.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(c(341));f.lanes|=n,o=f.alternate,o!==null&&(o.lanes|=n),Iu(f,n,t),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Ya(t,e,n,a){t=null;for(var i=e,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var y=i.type;Se(i.pendingProps.value,f.value)||(t!==null?t.push(y):t=[y])}}else if(i===lt.current){if(f=i.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(ii):t=[ii])}i=i.return}t!==null&&tc(e,t,n,a),e.flags|=262144}function Ki(t){for(t=t.firstContext;t!==null;){if(!Se(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oa(t){ia=t,an=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ee(t){return _f(ia,t)}function Ji(t,e){return ia===null&&oa(t),_f(t,e)}function _f(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},an===null){if(t===null)throw Error(c(308));an=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else an=an.next=e;return n}var Qy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Zy=l.unstable_scheduleCallback,Ky=l.unstable_NormalPriority,Qt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new Qy,data:new Map,refCount:0}}function Ll(t){t.refCount--,t.refCount===0&&Zy(Ky,function(){t.controller.abort()})}var Nl=null,nc=0,Va=0,Xa=null;function Jy(t,e){if(Nl===null){var n=Nl=[];nc=0,Va=is(),Xa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return nc++,e.then(Rf,Rf),e}function Rf(){if(--nc===0&&Nl!==null){Xa!==null&&(Xa.status="fulfilled");var t=Nl;Nl=null,Va=0,Xa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Fy(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Tf=O.S;O.S=function(t,e){oh=xt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Jy(t,e),Tf!==null&&Tf(t,e)};var ua=T(null);function ac(){var t=ua.current;return t!==null?t:Nt.pooledCache}function Fi(t,e){e===null?V(ua,ua.current):V(ua,e.pool)}function Ef(){var t=ac();return t===null?null:{parent:Qt._currentValue,pool:t}}var ka=Error(c(460)),lc=Error(c(474)),Wi=Error(c(542)),Pi={then:function(){}};function xf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Mf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Cf(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=a}},function(a){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Cf(t),t}throw sa=e,ka}}function ca(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sa=n,ka):n}}var sa=null;function Af(){if(sa===null)throw Error(c(459));var t=sa;return sa=null,t}function Cf(t){if(t===ka||t===Wi)throw Error(c(483))}var Qa=null,Ul=0;function $i(t){var e=Ul;return Ul+=1,Qa===null&&(Qa=[]),Mf(Qa,t,e)}function Bl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ii(t,e){throw e.$$typeof===b?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function zf(t){function e(x,R){if(t){var M=x.deletions;M===null?(x.deletions=[R],x.flags|=16):M.push(R)}}function n(x,R){if(!t)return null;for(;R!==null;)e(x,R),R=R.sibling;return null}function a(x){for(var R=new Map;x!==null;)x.key!==null?R.set(x.key,x):R.set(x.index,x),x=x.sibling;return R}function i(x,R){return x=en(x,R),x.index=0,x.sibling=null,x}function o(x,R,M){return x.index=M,t?(M=x.alternate,M!==null?(M=M.index,M<R?(x.flags|=67108866,R):M):(x.flags|=67108866,R)):(x.flags|=1048576,R)}function f(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function y(x,R,M,N){return R===null||R.tag!==6?(R=Zu(M,x.mode,N),R.return=x,R):(R=i(R,M),R.return=x,R)}function _(x,R,M,N){var nt=M.type;return nt===U?D(x,R,M.props.children,N,M.key):R!==null&&(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===L&&ca(nt)===R.type)?(R=i(R,M.props),Bl(R,M),R.return=x,R):(R=Qi(M.type,M.key,M.props,null,x.mode,N),Bl(R,M),R.return=x,R)}function A(x,R,M,N){return R===null||R.tag!==4||R.stateNode.containerInfo!==M.containerInfo||R.stateNode.implementation!==M.implementation?(R=Ku(M,x.mode,N),R.return=x,R):(R=i(R,M.children||[]),R.return=x,R)}function D(x,R,M,N,nt){return R===null||R.tag!==7?(R=aa(M,x.mode,N,nt),R.return=x,R):(R=i(R,M),R.return=x,R)}function j(x,R,M){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Zu(""+R,x.mode,M),R.return=x,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case E:return M=Qi(R.type,R.key,R.props,null,x.mode,M),Bl(M,R),M.return=x,M;case w:return R=Ku(R,x.mode,M),R.return=x,R;case L:return R=ca(R),j(x,R,M)}if(At(R)||St(R))return R=aa(R,x.mode,M,null),R.return=x,R;if(typeof R.then=="function")return j(x,$i(R),M);if(R.$$typeof===k)return j(x,Ji(x,R),M);Ii(x,R)}return null}function C(x,R,M,N){var nt=R!==null?R.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return nt!==null?null:y(x,R,""+M,N);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return M.key===nt?_(x,R,M,N):null;case w:return M.key===nt?A(x,R,M,N):null;case L:return M=ca(M),C(x,R,M,N)}if(At(M)||St(M))return nt!==null?null:D(x,R,M,N,null);if(typeof M.then=="function")return C(x,R,$i(M),N);if(M.$$typeof===k)return C(x,R,Ji(x,M),N);Ii(x,M)}return null}function z(x,R,M,N,nt){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return x=x.get(M)||null,y(R,x,""+N,nt);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case E:return x=x.get(N.key===null?M:N.key)||null,_(R,x,N,nt);case w:return x=x.get(N.key===null?M:N.key)||null,A(R,x,N,nt);case L:return N=ca(N),z(x,R,M,N,nt)}if(At(N)||St(N))return x=x.get(M)||null,D(R,x,N,nt,null);if(typeof N.then=="function")return z(x,R,M,$i(N),nt);if(N.$$typeof===k)return z(x,R,M,Ji(R,N),nt);Ii(R,N)}return null}function $(x,R,M,N){for(var nt=null,Rt=null,et=R,dt=R=0,gt=null;et!==null&&dt<M.length;dt++){et.index>dt?(gt=et,et=null):gt=et.sibling;var Tt=C(x,et,M[dt],N);if(Tt===null){et===null&&(et=gt);break}t&&et&&Tt.alternate===null&&e(x,et),R=o(Tt,R,dt),Rt===null?nt=Tt:Rt.sibling=Tt,Rt=Tt,et=gt}if(dt===M.length)return n(x,et),vt&&nn(x,dt),nt;if(et===null){for(;dt<M.length;dt++)et=j(x,M[dt],N),et!==null&&(R=o(et,R,dt),Rt===null?nt=et:Rt.sibling=et,Rt=et);return vt&&nn(x,dt),nt}for(et=a(et);dt<M.length;dt++)gt=z(et,x,dt,M[dt],N),gt!==null&&(t&&gt.alternate!==null&&et.delete(gt.key===null?dt:gt.key),R=o(gt,R,dt),Rt===null?nt=gt:Rt.sibling=gt,Rt=gt);return t&&et.forEach(function(Qn){return e(x,Qn)}),vt&&nn(x,dt),nt}function ot(x,R,M,N){if(M==null)throw Error(c(151));for(var nt=null,Rt=null,et=R,dt=R=0,gt=null,Tt=M.next();et!==null&&!Tt.done;dt++,Tt=M.next()){et.index>dt?(gt=et,et=null):gt=et.sibling;var Qn=C(x,et,Tt.value,N);if(Qn===null){et===null&&(et=gt);break}t&&et&&Qn.alternate===null&&e(x,et),R=o(Qn,R,dt),Rt===null?nt=Qn:Rt.sibling=Qn,Rt=Qn,et=gt}if(Tt.done)return n(x,et),vt&&nn(x,dt),nt;if(et===null){for(;!Tt.done;dt++,Tt=M.next())Tt=j(x,Tt.value,N),Tt!==null&&(R=o(Tt,R,dt),Rt===null?nt=Tt:Rt.sibling=Tt,Rt=Tt);return vt&&nn(x,dt),nt}for(et=a(et);!Tt.done;dt++,Tt=M.next())Tt=z(et,x,dt,Tt.value,N),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?dt:Tt.key),R=o(Tt,R,dt),Rt===null?nt=Tt:Rt.sibling=Tt,Rt=Tt);return t&&et.forEach(function(ov){return e(x,ov)}),vt&&nn(x,dt),nt}function Lt(x,R,M,N){if(typeof M=="object"&&M!==null&&M.type===U&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case E:t:{for(var nt=M.key;R!==null;){if(R.key===nt){if(nt=M.type,nt===U){if(R.tag===7){n(x,R.sibling),N=i(R,M.props.children),N.return=x,x=N;break t}}else if(R.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===L&&ca(nt)===R.type){n(x,R.sibling),N=i(R,M.props),Bl(N,M),N.return=x,x=N;break t}n(x,R);break}else e(x,R);R=R.sibling}M.type===U?(N=aa(M.props.children,x.mode,N,M.key),N.return=x,x=N):(N=Qi(M.type,M.key,M.props,null,x.mode,N),Bl(N,M),N.return=x,x=N)}return f(x);case w:t:{for(nt=M.key;R!==null;){if(R.key===nt)if(R.tag===4&&R.stateNode.containerInfo===M.containerInfo&&R.stateNode.implementation===M.implementation){n(x,R.sibling),N=i(R,M.children||[]),N.return=x,x=N;break t}else{n(x,R);break}else e(x,R);R=R.sibling}N=Ku(M,x.mode,N),N.return=x,x=N}return f(x);case L:return M=ca(M),Lt(x,R,M,N)}if(At(M))return $(x,R,M,N);if(St(M)){if(nt=St(M),typeof nt!="function")throw Error(c(150));return M=nt.call(M),ot(x,R,M,N)}if(typeof M.then=="function")return Lt(x,R,$i(M),N);if(M.$$typeof===k)return Lt(x,R,Ji(x,M),N);Ii(x,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,R!==null&&R.tag===6?(n(x,R.sibling),N=i(R,M),N.return=x,x=N):(n(x,R),N=Zu(M,x.mode,N),N.return=x,x=N),f(x)):n(x,R)}return function(x,R,M,N){try{Ul=0;var nt=Lt(x,R,M,N);return Qa=null,nt}catch(et){if(et===ka||et===Wi)throw et;var Rt=be(29,et,null,x.mode);return Rt.lanes=N,Rt.return=x,Rt}finally{}}}var ra=zf(!0),Of=zf(!1),Cn=!1;function ic(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(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 zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function On(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Mt&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=ki(t),hf(t,null,n),e}return Xi(t,a,e,n),ki(t)}function Hl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,br(t,n)}}function uc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=f:o=o.next=f,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var cc=!1;function jl(){if(cc){var t=Xa;if(t!==null)throw t}}function ql(t,e,n,a){cc=!1;var i=t.updateQueue;Cn=!1;var o=i.firstBaseUpdate,f=i.lastBaseUpdate,y=i.shared.pending;if(y!==null){i.shared.pending=null;var _=y,A=_.next;_.next=null,f===null?o=A:f.next=A,f=_;var D=t.alternate;D!==null&&(D=D.updateQueue,y=D.lastBaseUpdate,y!==f&&(y===null?D.firstBaseUpdate=A:y.next=A,D.lastBaseUpdate=_))}if(o!==null){var j=i.baseState;f=0,D=A=_=null,y=o;do{var C=y.lane&-536870913,z=C!==y.lane;if(z?(yt&C)===C:(a&C)===C){C!==0&&C===Va&&(cc=!0),D!==null&&(D=D.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var $=t,ot=y;C=e;var Lt=n;switch(ot.tag){case 1:if($=ot.payload,typeof $=="function"){j=$.call(Lt,j,C);break t}j=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=ot.payload,C=typeof $=="function"?$.call(Lt,j,C):$,C==null)break t;j=v({},j,C);break t;case 2:Cn=!0}}C=y.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=i.callbacks,z===null?i.callbacks=[C]:z.push(C))}else z={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},D===null?(A=D=z,_=j):D=D.next=z,f|=C;if(y=y.next,y===null){if(y=i.shared.pending,y===null)break;z=y,y=z.next,z.next=null,i.lastBaseUpdate=z,i.shared.pending=null}}while(!0);D===null&&(_=j),i.baseState=_,i.firstBaseUpdate=A,i.lastBaseUpdate=D,o===null&&(i.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=j}}function wf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function Df(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)wf(n[t],e)}var Za=T(null),to=T(0);function Lf(t,e){t=mn,V(to,t),V(Za,e),mn=t|e.baseLanes}function sc(){V(to,mn),V(Za,Za.current)}function rc(){mn=to.current,H(Za),H(to)}var _e=T(null),He=null;function wn(t){var e=t.alternate;V(Xt,Xt.current&1),V(_e,t),He===null&&(e===null||Za.current!==null||e.memoizedState!==null)&&(He=t)}function fc(t){V(Xt,Xt.current),V(_e,t),He===null&&(He=t)}function Nf(t){t.tag===22?(V(Xt,Xt.current),V(_e,t),He===null&&(He=t)):Dn()}function Dn(){V(Xt,Xt.current),V(_e,_e.current)}function Re(t){H(_e),He===t&&(He=null),H(Xt)}var Xt=T(0);function eo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gs(n)||vs(n)))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 on=0,rt=null,wt=null,Zt=null,no=!1,Ka=!1,fa=!1,ao=0,Gl=0,Ja=null,Wy=0;function Yt(){throw Error(c(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Se(t[n],e[n]))return!1;return!0}function hc(t,e,n,a,i,o){return on=o,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,O.H=t===null||t.memoizedState===null?gd:Cc,fa=!1,o=n(a,i),fa=!1,Ka&&(o=Bf(e,n,a,i)),Uf(t),o}function Uf(t){O.H=Xl;var e=wt!==null&&wt.next!==null;if(on=0,Zt=wt=rt=null,no=!1,Gl=0,Ja=null,e)throw Error(c(300));t===null||Kt||(t=t.dependencies,t!==null&&Ki(t)&&(Kt=!0))}function Bf(t,e,n,a){rt=t;var i=0;do{if(Ka&&(Ja=null),Gl=0,Ka=!1,25<=i)throw Error(c(301));if(i+=1,Zt=wt=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=vd,o=e(n,a)}while(Ka);return o}function Py(){var t=O.H,e=t.useState()[0];return e=typeof e.then=="function"?Yl(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(rt.flags|=1024),e}function mc(){var t=ao!==0;return ao=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function yc(t){if(no){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}no=!1}on=0,Zt=wt=rt=null,Ka=!1,Gl=ao=0,Ja=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?rt.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function kt(){if(wt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=Zt===null?rt.memoizedState:Zt.next;if(e!==null)Zt=e,wt=t;else{if(t===null)throw rt.alternate===null?Error(c(467)):Error(c(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},Zt===null?rt.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(t){var e=Gl;return Gl+=1,Ja===null&&(Ja=[]),t=Mf(Ja,t,e),e=rt,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,O.H=e===null||e.memoizedState===null?gd:Cc),t}function io(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Yl(t);if(t.$$typeof===k)return ee(t)}throw Error(c(438,String(t)))}function gc(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=rt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=lo(),rt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=ft;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function oo(t){var e=kt();return vc(e,wt,t)}function vc(t,e,n){var a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=n;var i=t.baseQueue,o=a.pending;if(o!==null){if(i!==null){var f=i.next;i.next=o.next,o.next=f}e.baseQueue=i=o,a.pending=null}if(o=t.baseState,i===null)t.memoizedState=o;else{e=i.next;var y=f=null,_=null,A=e,D=!1;do{var j=A.lane&-536870913;if(j!==A.lane?(yt&j)===j:(on&j)===j){var C=A.revertLane;if(C===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),j===Va&&(D=!0);else if((on&C)===C){A=A.next,C===Va&&(D=!0);continue}else j={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(y=_=j,f=o):_=_.next=j,rt.lanes|=C,Un|=C;j=A.action,fa&&n(o,j),o=A.hasEagerState?A.eagerState:n(o,j)}else C={lane:j,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},_===null?(y=_=C,f=o):_=_.next=C,rt.lanes|=j,Un|=j;A=A.next}while(A!==null&&A!==e);if(_===null?f=o:_.next=y,!Se(o,t.memoizedState)&&(Kt=!0,D&&(n=Xa,n!==null)))throw n;t.memoizedState=o,t.baseState=f,t.baseQueue=_,a.lastRenderedState=o}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Sc(t){var e=kt(),n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do o=t(o,f.action),f=f.next;while(f!==i);Se(o,e.memoizedState)||(Kt=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,a]}function Hf(t,e,n){var a=rt,i=kt(),o=vt;if(o){if(n===void 0)throw Error(c(407));n=n()}else n=e();var f=!Se((wt||i).memoizedState,n);if(f&&(i.memoizedState=n,Kt=!0),i=i.queue,Rc(Gf.bind(null,a,i,t),[t]),i.getSnapshot!==e||f||Zt!==null&&Zt.memoizedState.tag&1){if(a.flags|=2048,Fa(9,{destroy:void 0},qf.bind(null,a,i,n,e),null),Nt===null)throw Error(c(349));o||(on&127)!==0||jf(a,e,n)}return n}function jf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=lo(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function qf(t,e,n,a){e.value=n,e.getSnapshot=a,Yf(e)&&Vf(t)}function Gf(t,e,n){return n(function(){Yf(e)&&Vf(t)})}function Yf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Se(t,n)}catch{return!0}}function Vf(t){var e=na(t,2);e!==null&&me(e,t,2)}function bc(t){var e=oe();if(typeof t=="function"){var n=t;if(t=n(),fa){_n(!0);try{n()}finally{_n(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Xf(t,e,n,a){return t.baseState=n,vc(t,wt,typeof a=="function"?a:un)}function $y(t,e,n,a,i){if(so(t))throw Error(c(485));if(t=e.action,t!==null){var o={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){o.listeners.push(f)}};O.T!==null?n(!0):o.isTransition=!1,a(o),n=e.pending,n===null?(o.next=e.pending=o,kf(e,o)):(o.next=n.next,e.pending=n.next=o)}}function kf(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var o=O.T,f={};O.T=f;try{var y=n(i,a),_=O.S;_!==null&&_(f,y),Qf(t,e,y)}catch(A){_c(t,e,A)}finally{o!==null&&f.types!==null&&(o.types=f.types),O.T=o}}else try{o=n(i,a),Qf(t,e,o)}catch(A){_c(t,e,A)}}function Qf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Zf(t,e,a)},function(a){return _c(t,e,a)}):Zf(t,e,n)}function Zf(t,e,n){e.status="fulfilled",e.value=n,Kf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,kf(t,n)))}function _c(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Kf(e),e=e.next;while(e!==a)}t.action=null}function Kf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Jf(t,e){return e}function Ff(t,e){if(vt){var n=Nt.formState;if(n!==null){t:{var a=rt;if(vt){if(Bt){e:{for(var i=Bt,o=Be;i.nodeType!==8;){if(!o){i=null;break e}if(i=je(i.nextSibling),i===null){i=null;break e}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Bt=je(i.nextSibling),a=i.data==="F!";break t}}Mn(a)}a=!1}a&&(e=n[0])}}return n=oe(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jf,lastRenderedState:e},n.queue=a,n=md.bind(null,rt,a),a.dispatch=n,a=bc(!1),o=Ac.bind(null,rt,!1,a.queue),a=oe(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=$y.bind(null,rt,i,o,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function Wf(t){var e=kt();return Pf(e,wt,t)}function Pf(t,e,n){if(e=vc(t,e,Jf)[0],t=oo(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Yl(e)}catch(f){throw f===ka?Wi:f}else a=e;e=kt();var i=e.queue,o=i.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,Fa(9,{destroy:void 0},Iy.bind(null,i,n),null)),[a,o,t]}function Iy(t,e){t.action=e}function $f(t){var e=kt(),n=wt;if(n!==null)return Pf(e,n,t);kt(),e=e.memoizedState,n=kt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Fa(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=rt.updateQueue,e===null&&(e=lo(),rt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function If(){return kt().memoizedState}function uo(t,e,n,a){var i=oe();rt.flags|=t,i.memoizedState=Fa(1|e,{destroy:void 0},n,a===void 0?null:a)}function co(t,e,n,a){var i=kt();a=a===void 0?null:a;var o=i.memoizedState.inst;wt!==null&&a!==null&&dc(a,wt.memoizedState.deps)?i.memoizedState=Fa(e,o,n,a):(rt.flags|=t,i.memoizedState=Fa(1|e,o,n,a))}function td(t,e){uo(8390656,8,t,e)}function Rc(t,e){co(2048,8,t,e)}function tg(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=lo(),rt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ed(t){var e=kt().memoizedState;return tg({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function nd(t,e){return co(4,2,t,e)}function ad(t,e){return co(4,4,t,e)}function ld(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function id(t,e,n){n=n!=null?n.concat([t]):null,co(4,4,ld.bind(null,e,t),n)}function Tc(){}function od(t,e){var n=kt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function ud(t,e){var n=kt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),fa){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a}function Ec(t,e,n){return n===void 0||(on&1073741824)!==0&&(yt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ch(),rt.lanes|=t,Un|=t,n)}function cd(t,e,n,a){return Se(n,e)?n:Za.current!==null?(t=Ec(t,n,a),Se(t,e)||(Kt=!0),t):(on&42)===0||(on&1073741824)!==0&&(yt&261930)===0?(Kt=!0,t.memoizedState=n):(t=ch(),rt.lanes|=t,Un|=t,e)}function sd(t,e,n,a,i){var o=Q.p;Q.p=o!==0&&8>o?o:8;var f=O.T,y={};O.T=y,Ac(t,!1,e,n);try{var _=i(),A=O.S;if(A!==null&&A(y,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var D=Fy(_,a);Vl(t,e,D,xe(t))}else Vl(t,e,a,xe(t))}catch(j){Vl(t,e,{then:function(){},status:"rejected",reason:j},xe())}finally{Q.p=o,f!==null&&y.types!==null&&(f.types=y.types),O.T=f}}function eg(){}function xc(t,e,n,a){if(t.tag!==5)throw Error(c(476));var i=rd(t).queue;sd(t,i,e,Y,n===null?eg:function(){return fd(t),n(a)})}function rd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:Y},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function fd(t){var e=rd(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},xe())}function Mc(){return ee(ii)}function dd(){return kt().memoizedState}function hd(){return kt().memoizedState}function ng(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=xe();t=zn(n);var a=On(e,t,n);a!==null&&(me(a,e,n),Hl(a,e,n)),e={cache:ec()},t.payload=e;return}e=e.return}}function ag(t,e,n){var a=xe();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},so(t)?pd(e,n):(n=ku(t,e,n,a),n!==null&&(me(n,t,a),yd(n,e,a)))}function md(t,e,n){var a=xe();Vl(t,e,n,a)}function Vl(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(so(t))pd(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var f=e.lastRenderedState,y=o(f,n);if(i.hasEagerState=!0,i.eagerState=y,Se(y,f))return Xi(t,e,i,0),Nt===null&&Vi(),!1}catch{}finally{}if(n=ku(t,e,i,a),n!==null)return me(n,t,a),yd(n,e,a),!0}return!1}function Ac(t,e,n,a){if(a={lane:2,revertLane:is(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},so(t)){if(e)throw Error(c(479))}else e=ku(t,n,a,2),e!==null&&me(e,t,2)}function so(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function pd(t,e){Ka=no=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function yd(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,br(t,n)}}var Xl={readContext:ee,use:io,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};Xl.useEffectEvent=Yt;var gd={readContext:ee,use:io,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ee,useEffect:td,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,uo(4194308,4,ld.bind(null,e,t),n)},useLayoutEffect:function(t,e){return uo(4194308,4,t,e)},useInsertionEffect:function(t,e){uo(4,2,t,e)},useMemo:function(t,e){var n=oe();e=e===void 0?null:e;var a=t();if(fa){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=oe();if(n!==void 0){var i=n(e);if(fa){_n(!0);try{n(e)}finally{_n(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=ag.bind(null,rt,t),[a.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=bc(t);var e=t.queue,n=md.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Tc,useDeferredValue:function(t,e){var n=oe();return Ec(n,t,e)},useTransition:function(){var t=bc(!1);return t=sd.bind(null,rt,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=rt,i=oe();if(vt){if(n===void 0)throw Error(c(407));n=n()}else{if(n=e(),Nt===null)throw Error(c(349));(yt&127)!==0||jf(a,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,td(Gf.bind(null,a,o,t),[t]),a.flags|=2048,Fa(9,{destroy:void 0},qf.bind(null,a,o,n,e),null),n},useId:function(){var t=oe(),e=Nt.identifierPrefix;if(vt){var n=Ke,a=Ze;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ao++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Wy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Mc,useFormState:Ff,useActionState:Ff,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:gc,useCacheRefresh:function(){return oe().memoizedState=ng.bind(null,rt)},useEffectEvent:function(t){var e=oe(),n={impl:t};return e.memoizedState=n,function(){if((Mt&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},Cc={readContext:ee,use:io,useCallback:od,useContext:ee,useEffect:Rc,useImperativeHandle:id,useInsertionEffect:nd,useLayoutEffect:ad,useMemo:ud,useReducer:oo,useRef:If,useState:function(){return oo(un)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=kt();return cd(n,wt.memoizedState,t,e)},useTransition:function(){var t=oo(un)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Yl(t),e]},useSyncExternalStore:Hf,useId:dd,useHostTransitionStatus:Mc,useFormState:Wf,useActionState:Wf,useOptimistic:function(t,e){var n=kt();return Xf(n,wt,t,e)},useMemoCache:gc,useCacheRefresh:hd};Cc.useEffectEvent=ed;var vd={readContext:ee,use:io,useCallback:od,useContext:ee,useEffect:Rc,useImperativeHandle:id,useInsertionEffect:nd,useLayoutEffect:ad,useMemo:ud,useReducer:Sc,useRef:If,useState:function(){return Sc(un)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=kt();return wt===null?Ec(n,t,e):cd(n,wt.memoizedState,t,e)},useTransition:function(){var t=Sc(un)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Yl(t),e]},useSyncExternalStore:Hf,useId:dd,useHostTransitionStatus:Mc,useFormState:$f,useActionState:$f,useOptimistic:function(t,e){var n=kt();return wt!==null?Xf(n,wt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:hd};vd.useEffectEvent=ed;function zc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:v({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Oc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=xe(),i=zn(a);i.payload=e,n!=null&&(i.callback=n),e=On(t,i,a),e!==null&&(me(e,t,a),Hl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=xe(),i=zn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=On(t,i,a),e!==null&&(me(e,t,a),Hl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=xe(),a=zn(n);a.tag=2,e!=null&&(a.callback=e),e=On(t,a,n),e!==null&&(me(e,t,n),Hl(e,t,n))}};function Sd(t,e,n,a,i,o,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,o,f):e.prototype&&e.prototype.isPureReactComponent?!zl(n,a)||!zl(i,o):!0}function bd(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Oc.enqueueReplaceState(e,e.state,null)}function da(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=v({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function _d(t){Yi(t)}function Rd(t){console.error(t)}function Td(t){Yi(t)}function ro(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Ed(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function wc(t,e,n){return n=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){ro(t,e)},n}function xd(t){return t=zn(t),t.tag=3,t}function Md(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;t.payload=function(){return i(o)},t.callback=function(){Ed(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Ed(e,n,a),typeof i!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function lg(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Ya(e,n,i,!0),n=_e.current,n!==null){switch(n.tag){case 31:case 13:return He===null?To():n.alternate===null&&Vt===0&&(Vt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Pi?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ns(t,a,i)),!1;case 22:return n.flags|=65536,a===Pi?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),ns(t,a,i)),!1}throw Error(c(435,n.tag))}return ns(t,a,i),To(),!1}if(vt)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Wu&&(t=Error(c(422),{cause:a}),Dl(Le(t,n)))):(a!==Wu&&(e=Error(c(423),{cause:a}),Dl(Le(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=Le(a,n),i=wc(t.stateNode,a,i),uc(t,i),Vt!==4&&(Vt=2)),!1;var o=Error(c(520),{cause:a});if(o=Le(o,n),Pl===null?Pl=[o]:Pl.push(o),Vt!==4&&(Vt=2),e===null)return!0;a=Le(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=wc(n.stateNode,a,t),uc(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Bn===null||!Bn.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=xd(i),Md(i,t,n,a),uc(n,i),!1}n=n.return}while(n!==null);return!1}var Dc=Error(c(461)),Kt=!1;function ne(t,e,n,a){e.child=t===null?Of(e,null,n,a):ra(e,t.child,n,a)}function Ad(t,e,n,a,i){n=n.render;var o=e.ref;if("ref"in a){var f={};for(var y in a)y!=="ref"&&(f[y]=a[y])}else f=a;return oa(e),a=hc(t,e,n,f,o,i),y=mc(),t!==null&&!Kt?(pc(t,e,i),cn(t,e,i)):(vt&&y&&Ju(e),e.flags|=1,ne(t,e,a,i),e.child)}function Cd(t,e,n,a,i){if(t===null){var o=n.type;return typeof o=="function"&&!Qu(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,zd(t,e,o,a,i)):(t=Qi(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!Gc(t,i)){var f=o.memoizedProps;if(n=n.compare,n=n!==null?n:zl,n(f,a)&&t.ref===e.ref)return cn(t,e,i)}return e.flags|=1,t=en(o,a),t.ref=e.ref,t.return=e,e.child=t}function zd(t,e,n,a,i){if(t!==null){var o=t.memoizedProps;if(zl(o,a)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=a=o,Gc(t,i))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,cn(t,e,i)}return Lc(t,e,n,a,i)}function Od(t,e,n,a){var i=a.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,e.child=null;return wd(t,e,o,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Fi(e,o!==null?o.cachePool:null),o!==null?Lf(e,o):sc(),Nf(e);else return a=e.lanes=536870912,wd(t,e,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Fi(e,o.cachePool),Lf(e,o),Dn(),e.memoizedState=null):(t!==null&&Fi(e,null),sc(),Dn());return ne(t,e,i,n),e.child}function kl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function wd(t,e,n,a,i){var o=ac();return o=o===null?null:{parent:Qt._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&Fi(e,null),sc(),Nf(e),t!==null&&Ya(t,e,a,!0),e.childLanes=i,null}function fo(t,e){return e=mo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Dd(t,e,n){return ra(e,t.child,null,n),t=fo(e,e.pendingProps),t.flags|=2,Re(e),e.memoizedState=null,t}function ig(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=fo(e,a),e.lanes=536870912,kl(null,t);if(fc(e),(t=Bt)?(t=kh(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ze,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=pf(t),n.return=e,e.child=n,te=e,Bt=null)):t=null,t===null)throw Mn(e);return e.lanes=536870912,null}return fo(e,a)}var o=t.memoizedState;if(o!==null){var f=o.dehydrated;if(fc(e),i)if(e.flags&256)e.flags&=-257,e=Dd(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Kt||Ya(t,e,n,!1),i=(n&t.childLanes)!==0,Kt||i){if(a=Nt,a!==null&&(f=_r(a,n),f!==0&&f!==o.retryLane))throw o.retryLane=f,na(t,f),me(a,t,f),Dc;To(),e=Dd(t,e,n)}else t=o.treeContext,Bt=je(f.nextSibling),te=e,vt=!0,xn=null,Be=!1,t!==null&&vf(e,t),e=fo(e,a),e.flags|=4096;return e}return t=en(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ho(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Lc(t,e,n,a,i){return oa(e),n=hc(t,e,n,a,void 0,i),a=mc(),t!==null&&!Kt?(pc(t,e,i),cn(t,e,i)):(vt&&a&&Ju(e),e.flags|=1,ne(t,e,n,i),e.child)}function Ld(t,e,n,a,i,o){return oa(e),e.updateQueue=null,n=Bf(e,a,n,i),Uf(t),a=mc(),t!==null&&!Kt?(pc(t,e,o),cn(t,e,o)):(vt&&a&&Ju(e),e.flags|=1,ne(t,e,n,o),e.child)}function Nd(t,e,n,a,i){if(oa(e),e.stateNode===null){var o=Ha,f=n.contextType;typeof f=="object"&&f!==null&&(o=ee(f)),o=new n(a,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Oc,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=a,o.state=e.memoizedState,o.refs={},ic(e),f=n.contextType,o.context=typeof f=="object"&&f!==null?ee(f):Ha,o.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(zc(e,n,f,a),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(f=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),f!==o.state&&Oc.enqueueReplaceState(o,o.state,null),ql(e,a,o,i),jl(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){o=e.stateNode;var y=e.memoizedProps,_=da(n,y);o.props=_;var A=o.context,D=n.contextType;f=Ha,typeof D=="object"&&D!==null&&(f=ee(D));var j=n.getDerivedStateFromProps;D=typeof j=="function"||typeof o.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,D||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(y||A!==f)&&bd(e,o,a,f),Cn=!1;var C=e.memoizedState;o.state=C,ql(e,a,o,i),jl(),A=e.memoizedState,y||C!==A||Cn?(typeof j=="function"&&(zc(e,n,j,a),A=e.memoizedState),(_=Cn||Sd(e,n,_,a,C,A,f))?(D||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=A),o.props=a,o.state=A,o.context=f,a=_):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{o=e.stateNode,oc(t,e),f=e.memoizedProps,D=da(n,f),o.props=D,j=e.pendingProps,C=o.context,A=n.contextType,_=Ha,typeof A=="object"&&A!==null&&(_=ee(A)),y=n.getDerivedStateFromProps,(A=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f!==j||C!==_)&&bd(e,o,a,_),Cn=!1,C=e.memoizedState,o.state=C,ql(e,a,o,i),jl();var z=e.memoizedState;f!==j||C!==z||Cn||t!==null&&t.dependencies!==null&&Ki(t.dependencies)?(typeof y=="function"&&(zc(e,n,y,a),z=e.memoizedState),(D=Cn||Sd(e,n,D,a,C,z,_)||t!==null&&t.dependencies!==null&&Ki(t.dependencies))?(A||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,z,_),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,z,_)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),o.props=a,o.state=z,o.context=_,a=D):(typeof o.componentDidUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),a=!1)}return o=a,ho(t,e),a=(e.flags&128)!==0,o||a?(o=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&a?(e.child=ra(e,t.child,null,i),e.child=ra(e,null,n,i)):ne(t,e,n,i),e.memoizedState=o.state,t=e.child):t=cn(t,e,i),t}function Ud(t,e,n,a){return la(),e.flags|=256,ne(t,e,n,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uc(t){return{baseLanes:t,cachePool:Ef()}}function Bc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function Bd(t,e,n){var a=e.pendingProps,i=!1,o=(e.flags&128)!==0,f;if((f=o)||(f=t!==null&&t.memoizedState===null?!1:(Xt.current&2)!==0),f&&(i=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(i?wn(e):Dn(),(t=Bt)?(t=kh(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ze,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=pf(t),n.return=e,e.child=n,te=e,Bt=null)):t=null,t===null)throw Mn(e);return vs(t)?e.lanes=32:e.lanes=536870912,null}var y=a.children;return a=a.fallback,i?(Dn(),i=e.mode,y=mo({mode:"hidden",children:y},i),a=aa(a,i,n,null),y.return=e,a.return=e,y.sibling=a,e.child=y,a=e.child,a.memoizedState=Uc(n),a.childLanes=Bc(t,f,n),e.memoizedState=Nc,kl(null,a)):(wn(e),Hc(e,y))}var _=t.memoizedState;if(_!==null&&(y=_.dehydrated,y!==null)){if(o)e.flags&256?(wn(e),e.flags&=-257,e=jc(t,e,n)):e.memoizedState!==null?(Dn(),e.child=t.child,e.flags|=128,e=null):(Dn(),y=a.fallback,i=e.mode,a=mo({mode:"visible",children:a.children},i),y=aa(y,i,n,null),y.flags|=2,a.return=e,y.return=e,a.sibling=y,e.child=a,ra(e,t.child,null,n),a=e.child,a.memoizedState=Uc(n),a.childLanes=Bc(t,f,n),e.memoizedState=Nc,e=kl(null,a));else if(wn(e),vs(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var A=f.dgst;f=A,a=Error(c(419)),a.stack="",a.digest=f,Dl({value:a,source:null,stack:null}),e=jc(t,e,n)}else if(Kt||Ya(t,e,n,!1),f=(n&t.childLanes)!==0,Kt||f){if(f=Nt,f!==null&&(a=_r(f,n),a!==0&&a!==_.retryLane))throw _.retryLane=a,na(t,a),me(f,t,a),Dc;gs(y)||To(),e=jc(t,e,n)}else gs(y)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,Bt=je(y.nextSibling),te=e,vt=!0,xn=null,Be=!1,t!==null&&vf(e,t),e=Hc(e,a.children),e.flags|=4096);return e}return i?(Dn(),y=a.fallback,i=e.mode,_=t.child,A=_.sibling,a=en(_,{mode:"hidden",children:a.children}),a.subtreeFlags=_.subtreeFlags&65011712,A!==null?y=en(A,y):(y=aa(y,i,n,null),y.flags|=2),y.return=e,a.return=e,a.sibling=y,e.child=a,kl(null,a),a=e.child,y=t.child.memoizedState,y===null?y=Uc(n):(i=y.cachePool,i!==null?(_=Qt._currentValue,i=i.parent!==_?{parent:_,pool:_}:i):i=Ef(),y={baseLanes:y.baseLanes|n,cachePool:i}),a.memoizedState=y,a.childLanes=Bc(t,f,n),e.memoizedState=Nc,kl(t.child,a)):(wn(e),n=t.child,t=n.sibling,n=en(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Hc(t,e){return e=mo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function mo(t,e){return t=be(22,t,null,e),t.lanes=0,t}function jc(t,e,n){return ra(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Hd(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Iu(t.return,e,n)}function qc(t,e,n,a,i,o){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=i,f.treeForkCount=o)}function jd(t,e,n){var a=e.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var f=Xt.current,y=(f&2)!==0;if(y?(f=f&1|2,e.flags|=128):f&=1,V(Xt,f),ne(t,e,a,n),a=vt?wl:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hd(t,n,e);else if(t.tag===19)Hd(t,n,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(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&eo(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),qc(e,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&eo(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}qc(e,!0,n,null,o,a);break;case"together":qc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ya(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,n=en(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=en(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ki(t)))}function og(t,e,n){switch(e.tag){case 3:Gt(e,e.stateNode.containerInfo),An(e,Qt,t.memoizedState.cache),la();break;case 27:case 5:ue(e);break;case 4:Gt(e,e.stateNode.containerInfo);break;case 10:An(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,fc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(wn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Bd(t,e,n):(wn(e),t=cn(t,e,n),t!==null?t.sibling:null);wn(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Ya(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return jd(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(Xt,Xt.current),a)break;return null;case 22:return e.lanes=0,Od(t,e,n,e.pendingProps);case 24:An(e,Qt,t.memoizedState.cache)}return cn(t,e,n)}function qd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Gc(t,n)&&(e.flags&128)===0)return Kt=!1,og(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,vt&&(e.flags&1048576)!==0&&gf(e,wl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ca(e.elementType),e.type=t,typeof t=="function")Qu(t)?(a=da(t,a),e.tag=1,e=Nd(null,e,t,a,n)):(e.tag=0,e=Lc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===W){e.tag=11,e=Ad(null,e,t,a,n);break t}else if(i===G){e.tag=14,e=Cd(null,e,t,a,n);break t}}throw e=Ut(t)||t,Error(c(306,e,""))}}return e;case 0:return Lc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=da(a,e.pendingProps),Nd(t,e,a,i,n);case 3:t:{if(Gt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));a=e.pendingProps;var o=e.memoizedState;i=o.element,oc(t,e),ql(e,a,null,n);var f=e.memoizedState;if(a=f.cache,An(e,Qt,a),a!==o.cache&&tc(e,[Qt],n,!0),jl(),a=f.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=Ud(t,e,a,n);break t}else if(a!==i){i=Le(Error(c(424)),e),Dl(i),e=Ud(t,e,a,n);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(Bt=je(t.firstChild),te=e,vt=!0,xn=null,Be=!0,n=Of(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(la(),a===i){e=cn(t,e,n);break t}ne(t,e,a,n)}e=e.child}return e;case 26:return ho(t,e),t===null?(n=Wh(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,a=Oo(ut.current).createElement(n),a[It]=e,a[ce]=t,ae(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=Wh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ue(e),t===null&&vt&&(a=e.stateNode=Kh(e.type,e.pendingProps,ut.current),te=e,Be=!0,i=Bt,Gn(e.type)?(Ss=i,Bt=je(a.firstChild)):Bt=i),ne(t,e,e.pendingProps.children,n),ho(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((i=a=Bt)&&(a=Bg(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,te=e,Bt=je(a.firstChild),Be=!1,i=!0):i=!1),i||Mn(e)),ue(e),i=e.type,o=e.pendingProps,f=t!==null?t.memoizedProps:null,a=o.children,ms(i,o)?a=null:f!==null&&ms(i,f)&&(e.flags|=32),e.memoizedState!==null&&(i=hc(t,e,Py,null,null,n),ii._currentValue=i),ho(t,e),ne(t,e,a,n),e.child;case 6:return t===null&&vt&&((t=n=Bt)&&(n=Hg(n,e.pendingProps,Be),n!==null?(e.stateNode=n,te=e,Bt=null,t=!0):t=!1),t||Mn(e)),null;case 13:return Bd(t,e,n);case 4:return Gt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ra(e,null,a,n):ne(t,e,a,n),e.child;case 11:return Ad(t,e,e.type,e.pendingProps,n);case 7:return ne(t,e,e.pendingProps,n),e.child;case 8:return ne(t,e,e.pendingProps.children,n),e.child;case 12:return ne(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,An(e,e.type,a.value),ne(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,oa(e),i=ee(i),a=a(i),e.flags|=1,ne(t,e,a,n),e.child;case 14:return Cd(t,e,e.type,e.pendingProps,n);case 15:return zd(t,e,e.type,e.pendingProps,n);case 19:return jd(t,e,n);case 31:return ig(t,e,n);case 22:return Od(t,e,n,e.pendingProps);case 24:return oa(e),a=ee(Qt),t===null?(i=ac(),i===null&&(i=Nt,o=ec(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),e.memoizedState={parent:a,cache:i},ic(e),An(e,Qt,i)):((t.lanes&n)!==0&&(oc(t,e),ql(e,null,null,n),jl()),i=t.memoizedState,o=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),An(e,Qt,a)):(a=o.cache,An(e,Qt,a),a!==i.cache&&tc(e,[Qt],n,!0))),ne(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function sn(t){t.flags|=4}function Yc(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(dh())t.flags|=8192;else throw sa=Pi,lc}else t.flags&=-16777217}function Gd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!em(e))if(dh())t.flags|=8192;else throw sa=Pi,lc}function po(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?vr():536870912,t.lanes|=e,Ia|=e)}function Ql(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ht(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function ug(t,e,n){var a=e.pendingProps;switch(Fu(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(e),null;case 1:return Ht(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ln(Qt),bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ga(e)?sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Pu())),Ht(e),null;case 26:var i=e.type,o=e.memoizedState;return t===null?(sn(e),o!==null?(Ht(e),Gd(e,o)):(Ht(e),Yc(e,i,null,a,n))):o?o!==t.memoizedState?(sn(e),Ht(e),Gd(e,o)):(Ht(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&sn(e),Ht(e),Yc(e,i,t,a,n)),null;case 27:if(ze(e),n=ut.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&sn(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ht(e),null}t=K.current,Ga(e)?Sf(e):(t=Kh(i,a,n),e.stateNode=t,sn(e))}return Ht(e),null;case 5:if(ze(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&sn(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ht(e),null}if(o=K.current,Ga(e))Sf(e);else{var f=Oo(ut.current);switch(o){case 1:o=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=f.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}o[It]=e,o[ce]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)o.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=o;t:switch(ae(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&sn(e)}}return Ht(e),Yc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&sn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=ut.current,Ga(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=te,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[It]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Bh(t.nodeValue,n)),t||Mn(e,!0)}else t=Oo(t).createTextNode(a),t[It]=e,e.stateNode=t}return Ht(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ga(e),n!==null){if(t===null){if(!a)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[It]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),t=!1}else n=Pu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Re(e),e):(Re(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Ht(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Ga(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(c(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[It]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ht(e),i=!1}else i=Pu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Re(e),e):(Re(e),null)}return Re(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),po(e,e.updateQueue),Ht(e),null);case 4:return bt(),t===null&&ss(e.stateNode.containerInfo),Ht(e),null;case 10:return ln(e.type),Ht(e),null;case 19:if(H(Xt),a=e.memoizedState,a===null)return Ht(e),null;if(i=(e.flags&128)!==0,o=a.rendering,o===null)if(i)Ql(a,!1);else{if(Vt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=eo(t),o!==null){for(e.flags|=128,Ql(a,!1),t=o.updateQueue,e.updateQueue=t,po(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)mf(n,t),n=n.sibling;return V(Xt,Xt.current&1|2),vt&&nn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&xt()>bo&&(e.flags|=128,i=!0,Ql(a,!1),e.lanes=4194304)}else{if(!i)if(t=eo(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,po(e,t),Ql(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!vt)return Ht(e),null}else 2*xt()-a.renderingStartTime>bo&&n!==536870912&&(e.flags|=128,i=!0,Ql(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(t=a.last,t!==null?t.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=xt(),t.sibling=null,n=Xt.current,V(Xt,i?n&1|2:n&1),vt&&nn(e,a.treeForkCount),t):(Ht(e),null);case 22:case 23:return Re(e),rc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Ht(e),e.subtreeFlags&6&&(e.flags|=8192)):Ht(e),n=e.updateQueue,n!==null&&po(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&H(ua),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(Qt),Ht(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function cg(t,e){switch(Fu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(Qt),bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ze(e),null;case 31:if(e.memoizedState!==null){if(Re(e),e.alternate===null)throw Error(c(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Re(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Xt),null;case 4:return bt(),null;case 10:return ln(e.type),null;case 22:case 23:return Re(e),rc(),t!==null&&H(ua),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(Qt),null;case 25:return null;default:return null}}function Yd(t,e){switch(Fu(e),e.tag){case 3:ln(Qt),bt();break;case 26:case 27:case 5:ze(e);break;case 4:bt();break;case 31:e.memoizedState!==null&&Re(e);break;case 13:Re(e);break;case 19:H(Xt);break;case 10:ln(e.type);break;case 22:case 23:Re(e),rc(),t!==null&&H(ua);break;case 24:ln(Qt)}}function Zl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var o=n.create,f=n.inst;a=o(),f.destroy=a}n=n.next}while(n!==i)}}catch(y){zt(e,e.return,y)}}function Ln(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&t)===t){var f=a.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,i=e;var _=n,A=y;try{A()}catch(D){zt(i,_,D)}}}a=a.next}while(a!==o)}}catch(D){zt(e,e.return,D)}}function Vd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Df(e,n)}catch(a){zt(t,t.return,a)}}}function Xd(t,e,n){n.props=da(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){zt(t,e,a)}}function Kl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(i){zt(t,e,i)}}function Je(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){zt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){zt(t,e,i)}else n.current=null}function kd(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){zt(t,t.return,i)}}function Vc(t,e,n){try{var a=t.stateNode;Og(a,t.type,n,e),a[ce]=e}catch(i){zt(t,t.return,i)}}function Qd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gn(t.type)||t.tag===4}function Xc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Qd(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&&Gn(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 kc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ie));else if(a!==4&&(a===27&&Gn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(kc(t,e,n),t=t.sibling;t!==null;)kc(t,e,n),t=t.sibling}function yo(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Gn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(yo(t,e,n),t=t.sibling;t!==null;)yo(t,e,n),t=t.sibling}function Zd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ae(e,a,n),e[It]=t,e[ce]=n}catch(o){zt(t,t.return,o)}}var rn=!1,Jt=!1,Qc=!1,Kd=typeof WeakSet=="function"?WeakSet:Set,$t=null;function sg(t,e){if(t=t.containerInfo,ds=Ho,t=lf(t),ju(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var f=0,y=-1,_=-1,A=0,D=0,j=t,C=null;e:for(;;){for(var z;j!==n||i!==0&&j.nodeType!==3||(y=f+i),j!==o||a!==0&&j.nodeType!==3||(_=f+a),j.nodeType===3&&(f+=j.nodeValue.length),(z=j.firstChild)!==null;)C=j,j=z;for(;;){if(j===t)break e;if(C===n&&++A===i&&(y=f),C===o&&++D===a&&(_=f),(z=j.nextSibling)!==null)break;j=C,C=j.parentNode}j=z}n=y===-1||_===-1?null:{start:y,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(hs={focusedElem:t,selectionRange:n},Ho=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,o=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(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var $=da(n.type,i);t=a.getSnapshotBeforeUpdate($,o),a.__reactInternalSnapshotBeforeUpdate=t}catch(ot){zt(n,n.return,ot)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ys(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ys(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(c(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function Jd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n),a&4&&Zl(5,n);break;case 1:if(dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){zt(n,n.return,f)}else{var i=da(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){zt(n,n.return,f)}}a&64&&Vd(n),a&512&&Kl(n,n.return);break;case 3:if(dn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Df(t,e)}catch(f){zt(n,n.return,f)}}break;case 27:e===null&&a&4&&Zd(n);case 26:case 5:dn(t,n),e===null&&a&4&&kd(n),a&512&&Kl(n,n.return);break;case 12:dn(t,n);break;case 31:dn(t,n),a&4&&Pd(t,n);break;case 13:dn(t,n),a&4&&$d(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=vg.bind(null,n),jg(t,n))));break;case 22:if(a=n.memoizedState!==null||rn,!a){e=e!==null&&e.memoizedState!==null||Jt,i=rn;var o=Jt;rn=a,(Jt=e)&&!o?hn(t,n,(n.subtreeFlags&8772)!==0):dn(t,n),rn=i,Jt=o}break;case 30:break;default:dn(t,n)}}function Fd(t){var e=t.alternate;e!==null&&(t.alternate=null,Fd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&_u(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 qt=null,re=!1;function fn(t,e,n){for(n=n.child;n!==null;)Wd(t,e,n),n=n.sibling}function Wd(t,e,n){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 26:Jt||Je(n,e),fn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jt||Je(n,e);var a=qt,i=re;Gn(n.type)&&(qt=n.stateNode,re=!1),fn(t,e,n),ni(n.stateNode),qt=a,re=i;break;case 5:Jt||Je(n,e);case 6:if(a=qt,i=re,qt=null,fn(t,e,n),qt=a,re=i,qt!==null)if(re)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(n.stateNode)}catch(o){zt(n,e,o)}else try{qt.removeChild(n.stateNode)}catch(o){zt(n,e,o)}break;case 18:qt!==null&&(re?(t=qt,Vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ul(t)):Vh(qt,n.stateNode));break;case 4:a=qt,i=re,qt=n.stateNode.containerInfo,re=!0,fn(t,e,n),qt=a,re=i;break;case 0:case 11:case 14:case 15:Ln(2,n,e),Jt||Ln(4,n,e),fn(t,e,n);break;case 1:Jt||(Je(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Xd(n,e,a)),fn(t,e,n);break;case 21:fn(t,e,n);break;case 22:Jt=(a=Jt)||n.memoizedState!==null,fn(t,e,n),Jt=a;break;default:fn(t,e,n)}}function Pd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ul(t)}catch(n){zt(e,e.return,n)}}}function $d(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ul(t)}catch(n){zt(e,e.return,n)}}function rg(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Kd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Kd),e;default:throw Error(c(435,t.tag))}}function go(t,e){var n=rg(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=Sg.bind(null,t,a);a.then(i,i)}})}function fe(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=t,f=e,y=f;t:for(;y!==null;){switch(y.tag){case 27:if(Gn(y.type)){qt=y.stateNode,re=!1;break t}break;case 5:qt=y.stateNode,re=!1;break t;case 3:case 4:qt=y.stateNode.containerInfo,re=!0;break t}y=y.return}if(qt===null)throw Error(c(160));Wd(o,f,i),qt=null,re=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Id(e,t),e=e.sibling}var Xe=null;function Id(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),de(t),a&4&&(Ln(3,t,t.return),Zl(3,t),Ln(5,t,t.return));break;case 1:fe(e,t),de(t),a&512&&(Jt||n===null||Je(n,n.return)),a&64&&rn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Xe;if(fe(e,t),de(t),a&512&&(Jt||n===null||Je(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[bl]||o[It]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),ae(o,a,n),o[It]=t,Pt(o),a=o;break t;case"link":var f=Ih("link","href",i).get(a+(n.href||""));if(f){for(var y=0;y<f.length;y++)if(o=f[y],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(y,1);break e}}o=i.createElement(a),ae(o,a,n),i.head.appendChild(o);break;case"meta":if(f=Ih("meta","content",i).get(a+(n.content||""))){for(y=0;y<f.length;y++)if(o=f[y],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(y,1);break e}}o=i.createElement(a),ae(o,a,n),i.head.appendChild(o);break;default:throw Error(c(468,a))}o[It]=t,Pt(o),a=o}t.stateNode=a}else tm(i,t.type,t.stateNode);else t.stateNode=$h(i,a,t.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?tm(i,t.type,t.stateNode):$h(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Vc(t,t.memoizedProps,n.memoizedProps)}break;case 27:fe(e,t),de(t),a&512&&(Jt||n===null||Je(n,n.return)),n!==null&&a&4&&Vc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(fe(e,t),de(t),a&512&&(Jt||n===null||Je(n,n.return)),t.flags&32){i=t.stateNode;try{Oa(i,"")}catch($){zt(t,t.return,$)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,Vc(t,i,n!==null?n.memoizedProps:i)),a&1024&&(Qc=!0);break;case 6:if(fe(e,t),de(t),a&4){if(t.stateNode===null)throw Error(c(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch($){zt(t,t.return,$)}}break;case 3:if(Lo=null,i=Xe,Xe=wo(e.containerInfo),fe(e,t),Xe=i,de(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ul(e.containerInfo)}catch($){zt(t,t.return,$)}Qc&&(Qc=!1,th(t));break;case 4:a=Xe,Xe=wo(t.stateNode.containerInfo),fe(e,t),de(t),Xe=a;break;case 12:fe(e,t),de(t);break;case 31:fe(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,go(t,a)));break;case 13:fe(e,t),de(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(So=xt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,go(t,a)));break;case 22:i=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,A=rn,D=Jt;if(rn=A||i,Jt=D||_,fe(e,t),Jt=D,rn=A,de(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||_||rn||Jt||ha(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(o=_.stateNode,i)f=o.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=_.stateNode;var j=_.memoizedProps.style,C=j!=null&&j.hasOwnProperty("display")?j.display:null;y.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch($){zt(_,_.return,$)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=i?"":_.memoizedProps}catch($){zt(_,_.return,$)}}}else if(e.tag===18){if(n===null){_=e;try{var z=_.stateNode;i?Xh(z,!0):Xh(_.stateNode,!1)}catch($){zt(_,_.return,$)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,go(t,n))));break;case 19:fe(e,t),de(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,go(t,a)));break;case 30:break;case 21:break;default:fe(e,t),de(t)}}function de(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Qd(a)){n=a;break}a=a.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var i=n.stateNode,o=Xc(t);yo(t,o,i);break;case 5:var f=n.stateNode;n.flags&32&&(Oa(f,""),n.flags&=-33);var y=Xc(t);yo(t,y,f);break;case 3:case 4:var _=n.stateNode.containerInfo,A=Xc(t);kc(t,A,_);break;default:throw Error(c(161))}}catch(D){zt(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function th(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;th(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Jd(t,e.alternate,e),e=e.sibling}function ha(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ln(4,e,e.return),ha(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Xd(e,e.return,n),ha(e);break;case 27:ni(e.stateNode);case 26:case 5:Je(e,e.return),ha(e);break;case 22:e.memoizedState===null&&ha(e);break;case 30:ha(e);break;default:ha(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,o=e,f=o.flags;switch(o.tag){case 0:case 11:case 15:hn(i,o,n),Zl(4,o);break;case 1:if(hn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(A){zt(a,a.return,A)}if(a=o,i=a.updateQueue,i!==null){var y=a.stateNode;try{var _=i.shared.hiddenCallbacks;if(_!==null)for(i.shared.hiddenCallbacks=null,i=0;i<_.length;i++)wf(_[i],y)}catch(A){zt(a,a.return,A)}}n&&f&64&&Vd(o),Kl(o,o.return);break;case 27:Zd(o);case 26:case 5:hn(i,o,n),n&&a===null&&f&4&&kd(o),Kl(o,o.return);break;case 12:hn(i,o,n);break;case 31:hn(i,o,n),n&&f&4&&Pd(i,o);break;case 13:hn(i,o,n),n&&f&4&&$d(i,o);break;case 22:o.memoizedState===null&&hn(i,o,n),Kl(o,o.return);break;case 30:break;default:hn(i,o,n)}e=e.sibling}}function Zc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Ll(n))}function Kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ll(t))}function ke(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)eh(t,e,n,a),e=e.sibling}function eh(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:ke(t,e,n,a),i&2048&&Zl(9,e);break;case 1:ke(t,e,n,a);break;case 3:ke(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ll(t)));break;case 12:if(i&2048){ke(t,e,n,a),t=e.stateNode;try{var o=e.memoizedProps,f=o.id,y=o.onPostCommit;typeof y=="function"&&y(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){zt(e,e.return,_)}}else ke(t,e,n,a);break;case 31:ke(t,e,n,a);break;case 13:ke(t,e,n,a);break;case 23:break;case 22:o=e.stateNode,f=e.alternate,e.memoizedState!==null?o._visibility&2?ke(t,e,n,a):Jl(t,e):o._visibility&2?ke(t,e,n,a):(o._visibility|=2,Wa(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Zc(f,e);break;case 24:ke(t,e,n,a),i&2048&&Kc(e.alternate,e);break;default:ke(t,e,n,a)}}function Wa(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,f=e,y=n,_=a,A=f.flags;switch(f.tag){case 0:case 11:case 15:Wa(o,f,y,_,i),Zl(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Wa(o,f,y,_,i):Jl(o,f):(D._visibility|=2,Wa(o,f,y,_,i)),i&&A&2048&&Zc(f.alternate,f);break;case 24:Wa(o,f,y,_,i),i&&A&2048&&Kc(f.alternate,f);break;default:Wa(o,f,y,_,i)}e=e.sibling}}function Jl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:Jl(n,a),i&2048&&Zc(a.alternate,a);break;case 24:Jl(n,a),i&2048&&Kc(a.alternate,a);break;default:Jl(n,a)}e=e.sibling}}var Fl=8192;function Pa(t,e,n){if(t.subtreeFlags&Fl)for(t=t.child;t!==null;)nh(t,e,n),t=t.sibling}function nh(t,e,n){switch(t.tag){case 26:Pa(t,e,n),t.flags&Fl&&t.memoizedState!==null&&Wg(n,Xe,t.memoizedState,t.memoizedProps);break;case 5:Pa(t,e,n);break;case 3:case 4:var a=Xe;Xe=wo(t.stateNode.containerInfo),Pa(t,e,n),Xe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Fl,Fl=16777216,Pa(t,e,n),Fl=a):Pa(t,e,n));break;default:Pa(t,e,n)}}function ah(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 Wl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];$t=a,ih(a,t)}ah(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(t),t=t.sibling}function lh(t){switch(t.tag){case 0:case 11:case 15:Wl(t),t.flags&2048&&Ln(9,t,t.return);break;case 3:Wl(t);break;case 12:Wl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,vo(t)):Wl(t);break;default:Wl(t)}}function vo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];$t=a,ih(a,t)}ah(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ln(8,e,e.return),vo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,vo(e));break;default:vo(e)}t=t.sibling}}function ih(t,e){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:Ln(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ll(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,$t=a;else t:for(n=t;$t!==null;){a=$t;var i=a.sibling,o=a.return;if(Fd(a),a===n){$t=null;break t}if(i!==null){i.return=o,$t=i;break t}$t=o}}}var fg={getCacheForType:function(t){var e=ee(Qt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ee(Qt).controller.signal}},dg=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Nt=null,mt=null,yt=0,Ct=0,Te=null,Nn=!1,$a=!1,Jc=!1,mn=0,Vt=0,Un=0,ma=0,Fc=0,Ee=0,Ia=0,Pl=null,he=null,Wc=!1,So=0,oh=0,bo=1/0,_o=null,Bn=null,Ft=0,Hn=null,tl=null,pn=0,Pc=0,$c=null,uh=null,$l=0,Ic=null;function xe(){return(Mt&2)!==0&&yt!==0?yt&-yt:O.T!==null?is():Rr()}function ch(){if(Ee===0)if((yt&536870912)===0||vt){var t=Ci;Ci<<=1,(Ci&3932160)===0&&(Ci=262144),Ee=t}else Ee=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ee}function me(t,e,n){(t===Nt&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(el(t,0),jn(t,yt,Ee,!1)),Sl(t,n),((Mt&2)===0||t!==Nt)&&(t===Nt&&((Mt&2)===0&&(ma|=n),Vt===4&&jn(t,yt,Ee,!1)),Fe(t))}function sh(t,e,n){if((Mt&6)!==0)throw Error(c(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||vl(t,e),i=a?pg(t,e):es(t,e,!0),o=a;do{if(i===0){$a&&!a&&jn(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!hg(n)){i=es(t,e,!1),o=!1;continue}if(i===2){if(o=e,t.errorRecoveryDisabledLanes&o)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var y=t;i=Pl;var _=y.current.memoizedState.isDehydrated;if(_&&(el(y,f).flags|=256),f=es(y,f,!1),f!==2){if(Jc&&!_){y.errorRecoveryDisabledLanes|=o,ma|=o,i=4;break t}o=he,he=i,o!==null&&(he===null?he=o:he.push.apply(he,o))}i=f}if(o=!1,i!==2)continue}}if(i===1){el(t,0),jn(t,e,0,!0);break}t:{switch(a=t,o=i,o){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:jn(a,e,Ee,!Nn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(i=So+300-xt(),10<i)){if(jn(a,e,Ee,!Nn),Oi(a,0,!0)!==0)break t;pn=e,a.timeoutHandle=Gh(rh.bind(null,a,n,he,_o,Wc,e,Ee,ma,Ia,Nn,o,"Throttled",-0,0),i);break t}rh(a,n,he,_o,Wc,e,Ee,ma,Ia,Nn,o,null,-0,0)}}break}while(!0);Fe(t)}function rh(t,e,n,a,i,o,f,y,_,A,D,j,C,z){if(t.timeoutHandle=-1,j=e.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},nh(e,o,j);var $=(o&62914560)===o?So-xt():(o&4194048)===o?oh-xt():0;if($=Pg(j,$),$!==null){pn=o,t.cancelPendingCommit=$(vh.bind(null,t,e,o,n,a,i,f,y,_,D,j,null,C,z)),jn(t,o,f,!A);return}}vh(t,e,o,n,a,i,f,y,_)}function hg(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!Se(o(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 jn(t,e,n,a){e&=~Fc,e&=~ma,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var o=31-ve(i),f=1<<o;a[o]=-1,i&=~f}n!==0&&Sr(t,n,e)}function Ro(){return(Mt&6)===0?(Il(0),!1):!0}function ts(){if(mt!==null){if(Ct===0)var t=mt.return;else t=mt,an=ia=null,yc(t),Qa=null,Ul=0,t=mt;for(;t!==null;)Yd(t.alternate,t),t=t.return;mt=null}}function el(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Lg(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),pn=0,ts(),Nt=t,mt=n=en(t.current,null),yt=e,Ct=0,Te=null,Nn=!1,$a=vl(t,e),Jc=!1,Ia=Ee=Fc=ma=Un=Vt=0,he=Pl=null,Wc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-ve(a),o=1<<i;e|=t[i],a&=~o}return mn=e,Vi(),n}function fh(t,e){rt=null,O.H=Xl,e===ka||e===Wi?(e=Af(),Ct=3):e===lc?(e=Af(),Ct=4):Ct=e===Dc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,mt===null&&(Vt=1,ro(t,Le(e,t.current)))}function dh(){var t=_e.current;return t===null?!0:(yt&4194048)===yt?He===null:(yt&62914560)===yt||(yt&536870912)!==0?t===He:!1}function hh(){var t=O.H;return O.H=Xl,t===null?Xl:t}function mh(){var t=O.A;return O.A=fg,t}function To(){Vt=4,Nn||(yt&4194048)!==yt&&_e.current!==null||($a=!0),(Un&134217727)===0&&(ma&134217727)===0||Nt===null||jn(Nt,yt,Ee,!1)}function es(t,e,n){var a=Mt;Mt|=2;var i=hh(),o=mh();(Nt!==t||yt!==e)&&(_o=null,el(t,e)),e=!1;var f=Vt;t:do try{if(Ct!==0&&mt!==null){var y=mt,_=Te;switch(Ct){case 8:ts(),f=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var A=Ct;if(Ct=0,Te=null,nl(t,y,_,A),n&&$a){f=0;break t}break;default:A=Ct,Ct=0,Te=null,nl(t,y,_,A)}}mg(),f=Vt;break}catch(D){fh(t,D)}while(!0);return e&&t.shellSuspendCounter++,an=ia=null,Mt=a,O.H=i,O.A=o,mt===null&&(Nt=null,yt=0,Vi()),f}function mg(){for(;mt!==null;)ph(mt)}function pg(t,e){var n=Mt;Mt|=2;var a=hh(),i=mh();Nt!==t||yt!==e?(_o=null,bo=xt()+500,el(t,e)):$a=vl(t,e);t:do try{if(Ct!==0&&mt!==null){e=mt;var o=Te;e:switch(Ct){case 1:Ct=0,Te=null,nl(t,e,o,1);break;case 2:case 9:if(xf(o)){Ct=0,Te=null,yh(e);break}e=function(){Ct!==2&&Ct!==9||Nt!==t||(Ct=7),Fe(t)},o.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:xf(o)?(Ct=0,Te=null,yh(e)):(Ct=0,Te=null,nl(t,e,o,7));break;case 5:var f=null;switch(mt.tag){case 26:f=mt.memoizedState;case 5:case 27:var y=mt;if(f?em(f):y.stateNode.complete){Ct=0,Te=null;var _=y.sibling;if(_!==null)mt=_;else{var A=y.return;A!==null?(mt=A,Eo(A)):mt=null}break e}}Ct=0,Te=null,nl(t,e,o,5);break;case 6:Ct=0,Te=null,nl(t,e,o,6);break;case 8:ts(),Vt=6;break t;default:throw Error(c(462))}}yg();break}catch(D){fh(t,D)}while(!0);return an=ia=null,O.H=a,O.A=i,Mt=n,mt!==null?0:(Nt=null,yt=0,Vi(),Vt)}function yg(){for(;mt!==null&&!xi();)ph(mt)}function ph(t){var e=qd(t.alternate,t,mn);t.memoizedProps=t.pendingProps,e===null?Eo(t):mt=e}function yh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ld(n,e,e.pendingProps,e.type,void 0,yt);break;case 11:e=Ld(n,e,e.pendingProps,e.type.render,e.ref,yt);break;case 5:yc(e);default:Yd(n,e),e=mt=mf(e,mn),e=qd(n,e,mn)}t.memoizedProps=t.pendingProps,e===null?Eo(t):mt=e}function nl(t,e,n,a){an=ia=null,yc(e),Qa=null,Ul=0;var i=e.return;try{if(lg(t,i,e,n,yt)){Vt=1,ro(t,Le(n,t.current)),mt=null;return}}catch(o){if(i!==null)throw mt=i,o;Vt=1,ro(t,Le(n,t.current)),mt=null;return}e.flags&32768?(vt||a===1?t=!0:$a||(yt&536870912)!==0?t=!1:(Nn=t=!0,(a===2||a===9||a===3||a===6)&&(a=_e.current,a!==null&&a.tag===13&&(a.flags|=16384))),gh(e,t)):Eo(e)}function Eo(t){var e=t;do{if((e.flags&32768)!==0){gh(e,Nn);return}t=e.return;var n=ug(e.alternate,e,mn);if(n!==null){mt=n;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Vt===0&&(Vt=5)}function gh(t,e){do{var n=cg(t.alternate,t);if(n!==null){n.flags&=32767,mt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=n}while(t!==null);Vt=6,mt=null}function vh(t,e,n,a,i,o,f,y,_){t.cancelPendingCommit=null;do xo();while(Ft!==0);if((Mt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(o=e.lanes|e.childLanes,o|=Xu,Fp(t,n,o,f,y,_),t===Nt&&(mt=Nt=null,yt=0),tl=e,Hn=t,pn=n,Pc=o,$c=i,uh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,bg(Mi,function(){return Th(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,i=Q.p,Q.p=2,f=Mt,Mt|=4;try{sg(t,e,n)}finally{Mt=f,Q.p=i,O.T=a}}Ft=1,Sh(),bh(),_h()}}function Sh(){if(Ft===1){Ft=0;var t=Hn,e=tl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=Q.p;Q.p=2;var i=Mt;Mt|=4;try{Id(e,t);var o=hs,f=lf(t.containerInfo),y=o.focusedElem,_=o.selectionRange;if(f!==y&&y&&y.ownerDocument&&af(y.ownerDocument.documentElement,y)){if(_!==null&&ju(y)){var A=_.start,D=_.end;if(D===void 0&&(D=A),"selectionStart"in y)y.selectionStart=A,y.selectionEnd=Math.min(D,y.value.length);else{var j=y.ownerDocument||document,C=j&&j.defaultView||window;if(C.getSelection){var z=C.getSelection(),$=y.textContent.length,ot=Math.min(_.start,$),Lt=_.end===void 0?ot:Math.min(_.end,$);!z.extend&&ot>Lt&&(f=Lt,Lt=ot,ot=f);var x=nf(y,ot),R=nf(y,Lt);if(x&&R&&(z.rangeCount!==1||z.anchorNode!==x.node||z.anchorOffset!==x.offset||z.focusNode!==R.node||z.focusOffset!==R.offset)){var M=j.createRange();M.setStart(x.node,x.offset),z.removeAllRanges(),ot>Lt?(z.addRange(M),z.extend(R.node,R.offset)):(M.setEnd(R.node,R.offset),z.addRange(M))}}}}for(j=[],z=y;z=z.parentNode;)z.nodeType===1&&j.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<j.length;y++){var N=j[y];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Ho=!!ds,hs=ds=null}finally{Mt=i,Q.p=a,O.T=n}}t.current=e,Ft=2}}function bh(){if(Ft===2){Ft=0;var t=Hn,e=tl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=Q.p;Q.p=2;var i=Mt;Mt|=4;try{Jd(t,e.alternate,e)}finally{Mt=i,Q.p=a,O.T=n}}Ft=3}}function _h(){if(Ft===4||Ft===3){Ft=0,Ot();var t=Hn,e=tl,n=pn,a=uh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ft=5:(Ft=0,tl=Hn=null,Rh(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Bn=null),Su(n),e=e.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=O.T,i=Q.p,Q.p=2,O.T=null;try{for(var o=t.onRecoverableError,f=0;f<a.length;f++){var y=a[f];o(y.value,{componentStack:y.stack})}}finally{O.T=e,Q.p=i}}(pn&3)!==0&&xo(),Fe(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===Ic?$l++:($l=0,Ic=t):$l=0,Il(0)}}function Rh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ll(e)))}function xo(){return Sh(),bh(),_h(),Th()}function Th(){if(Ft!==5)return!1;var t=Hn,e=Pc;Pc=0;var n=Su(pn),a=O.T,i=Q.p;try{Q.p=32>n?32:n,O.T=null,n=$c,$c=null;var o=Hn,f=pn;if(Ft=0,tl=Hn=null,pn=0,(Mt&6)!==0)throw Error(c(331));var y=Mt;if(Mt|=4,lh(o.current),eh(o,o.current,f,n),Mt=y,Il(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(gl,o)}catch{}return!0}finally{Q.p=i,O.T=a,Rh(t,e)}}function Eh(t,e,n){e=Le(n,e),e=wc(t.stateNode,e,2),t=On(t,e,2),t!==null&&(Sl(t,2),Fe(t))}function zt(t,e,n){if(t.tag===3)Eh(t,t,n);else for(;e!==null;){if(e.tag===3){Eh(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bn===null||!Bn.has(a))){t=Le(n,t),n=xd(2),a=On(e,n,2),a!==null&&(Md(n,a,e,t),Sl(a,2),Fe(a));break}}e=e.return}}function ns(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new dg;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(Jc=!0,i.add(n),t=gg.bind(null,t,e,n),e.then(t,t))}function gg(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Nt===t&&(yt&n)===n&&(Vt===4||Vt===3&&(yt&62914560)===yt&&300>xt()-So?(Mt&2)===0&&el(t,0):Fc|=n,Ia===yt&&(Ia=0)),Fe(t)}function xh(t,e){e===0&&(e=vr()),t=na(t,e),t!==null&&(Sl(t,e),Fe(t))}function vg(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),xh(t,n)}function Sg(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),xh(t,n)}function bg(t,e){return bn(t,e)}var Mo=null,al=null,as=!1,Ao=!1,ls=!1,qn=0;function Fe(t){t!==al&&t.next===null&&(al===null?Mo=al=t:al=al.next=t),Ao=!0,as||(as=!0,Rg())}function Il(t,e){if(!ls&&Ao){ls=!0;do for(var n=!1,a=Mo;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var f=a.suspendedLanes,y=a.pingedLanes;o=(1<<31-ve(42|t)+1)-1,o&=i&~(f&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,zh(a,o))}else o=yt,o=Oi(a,a===Nt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||vl(a,o)||(n=!0,zh(a,o));a=a.next}while(n);ls=!1}}function _g(){Mh()}function Mh(){Ao=as=!1;var t=0;qn!==0&&Dg()&&(t=qn);for(var e=xt(),n=null,a=Mo;a!==null;){var i=a.next,o=Ah(a,e);o===0?(a.next=null,n===null?Mo=i:n.next=i,i===null&&(al=n)):(n=a,(t!==0||(o&3)!==0)&&(Ao=!0)),a=i}Ft!==0&&Ft!==5||Il(t),qn!==0&&(qn=0)}function Ah(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var f=31-ve(o),y=1<<f,_=i[f];_===-1?((y&n)===0||(y&a)!==0)&&(i[f]=Jp(y,e)):_<=e&&(t.expiredLanes|=y),o&=~y}if(e=Nt,n=yt,n=Oi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Ta(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||vl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Ta(a),Su(n)){case 2:case 8:n=yr;break;case 32:n=Mi;break;case 268435456:n=gr;break;default:n=Mi}return a=Ch.bind(null,t),n=bn(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Ta(a),t.callbackPriority=2,t.callbackNode=null,2}function Ch(t,e){if(Ft!==0&&Ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(xo()&&t.callbackNode!==n)return null;var a=yt;return a=Oi(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(sh(t,a,e),Ah(t,xt()),t.callbackNode!=null&&t.callbackNode===n?Ch.bind(null,t):null)}function zh(t,e){if(xo())return null;sh(t,e,!0)}function Rg(){Ng(function(){(Mt&6)!==0?bn(yl,_g):Mh()})}function is(){if(qn===0){var t=Va;t===0&&(t=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),qn=t}return qn}function Oh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ni(""+t)}function wh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Tg(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var o=Oh((i[ce]||null).action),f=a.submitter;f&&(e=(e=f[ce]||null)?Oh(e.formAction):f.getAttribute("formAction"),e!==null&&(o=e,f=null));var y=new ji("action","action",null,a,i);t.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(qn!==0){var _=f?wh(i,f):new FormData(i);xc(n,{pending:!0,data:_,method:i.method,action:o},null,_)}}else typeof o=="function"&&(y.preventDefault(),_=f?wh(i,f):new FormData(i),xc(n,{pending:!0,data:_,method:i.method,action:o},o,_))},currentTarget:i}]})}}for(var os=0;os<Vu.length;os++){var us=Vu[os],Eg=us.toLowerCase(),xg=us[0].toUpperCase()+us.slice(1);Ve(Eg,"on"+xg)}Ve(cf,"onAnimationEnd"),Ve(sf,"onAnimationIteration"),Ve(rf,"onAnimationStart"),Ve("dblclick","onDoubleClick"),Ve("focusin","onFocus"),Ve("focusout","onBlur"),Ve(Yy,"onTransitionRun"),Ve(Vy,"onTransitionStart"),Ve(Xy,"onTransitionCancel"),Ve(ff,"onTransitionEnd"),Ca("onMouseEnter",["mouseout","mouseover"]),Ca("onMouseLeave",["mouseout","mouseover"]),Ca("onPointerEnter",["pointerout","pointerover"]),Ca("onPointerLeave",["pointerout","pointerover"]),$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$n("onBeforeInput",["compositionend","keypress","textInput","paste"]),$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ti="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(" "),Mg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ti));function Dh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var o=void 0;if(e)for(var f=a.length-1;0<=f;f--){var y=a[f],_=y.instance,A=y.currentTarget;if(y=y.listener,_!==o&&i.isPropagationStopped())break t;o=y,i.currentTarget=A;try{o(i)}catch(D){Yi(D)}i.currentTarget=null,o=_}else for(f=0;f<a.length;f++){if(y=a[f],_=y.instance,A=y.currentTarget,y=y.listener,_!==o&&i.isPropagationStopped())break t;o=y,i.currentTarget=A;try{o(i)}catch(D){Yi(D)}i.currentTarget=null,o=_}}}}function pt(t,e){var n=e[bu];n===void 0&&(n=e[bu]=new Set);var a=t+"__bubble";n.has(a)||(Lh(e,t,2,!1),n.add(a))}function cs(t,e,n){var a=0;e&&(a|=4),Lh(n,t,a,e)}var Co="_reactListening"+Math.random().toString(36).slice(2);function ss(t){if(!t[Co]){t[Co]=!0,xr.forEach(function(n){n!=="selectionchange"&&(Mg.has(n)||cs(n,!1,t),cs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Co]||(e[Co]=!0,cs("selectionchange",!1,e))}}function Lh(t,e,n,a){switch(cm(e)){case 2:var i=tv;break;case 8:i=ev;break;default:i=Es}n=i.bind(null,e,n,t),i=void 0,!zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function rs(t,e,n,a,i){var o=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var y=a.stateNode.containerInfo;if(y===i)break;if(f===4)for(f=a.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;y!==null;){if(f=xa(y),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){a=o=f;continue t}y=y.parentNode}}a=a.return}Hr(function(){var A=o,D=Au(n),j=[];t:{var C=df.get(t);if(C!==void 0){var z=ji,$=t;switch(t){case"keypress":if(Bi(n)===0)break t;case"keydown":case"keyup":z=Sy;break;case"focusin":$="focus",z=Lu;break;case"focusout":$="blur",z=Lu;break;case"beforeblur":case"afterblur":z=Lu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Gr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=uy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Ry;break;case cf:case sf:case rf:z=ry;break;case ff:z=Ey;break;case"scroll":case"scrollend":z=iy;break;case"wheel":z=My;break;case"copy":case"cut":case"paste":z=dy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Vr;break;case"toggle":case"beforetoggle":z=Cy}var ot=(e&4)!==0,Lt=!ot&&(t==="scroll"||t==="scrollend"),x=ot?C!==null?C+"Capture":null:C;ot=[];for(var R=A,M;R!==null;){var N=R;if(M=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||M===null||x===null||(N=Rl(R,x),N!=null&&ot.push(ei(R,N,M))),Lt)break;R=R.return}0<ot.length&&(C=new z(C,$,null,n,D),j.push({event:C,listeners:ot}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&n!==Mu&&($=n.relatedTarget||n.fromElement)&&(xa($)||$[Ea]))break t;if((z||C)&&(C=D.window===D?D:(C=D.ownerDocument)?C.defaultView||C.parentWindow:window,z?($=n.relatedTarget||n.toElement,z=A,$=$?xa($):null,$!==null&&(Lt=d($),ot=$.tag,$!==Lt||ot!==5&&ot!==27&&ot!==6)&&($=null)):(z=null,$=A),z!==$)){if(ot=Gr,N="onMouseLeave",x="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(ot=Vr,N="onPointerLeave",x="onPointerEnter",R="pointer"),Lt=z==null?C:_l(z),M=$==null?C:_l($),C=new ot(N,R+"leave",z,n,D),C.target=Lt,C.relatedTarget=M,N=null,xa(D)===A&&(ot=new ot(x,R+"enter",$,n,D),ot.target=M,ot.relatedTarget=Lt,N=ot),Lt=N,z&&$)e:{for(ot=Ag,x=z,R=$,M=0,N=x;N;N=ot(N))M++;N=0;for(var nt=R;nt;nt=ot(nt))N++;for(;0<M-N;)x=ot(x),M--;for(;0<N-M;)R=ot(R),N--;for(;M--;){if(x===R||R!==null&&x===R.alternate){ot=x;break e}x=ot(x),R=ot(R)}ot=null}else ot=null;z!==null&&Nh(j,C,z,ot,!1),$!==null&&Lt!==null&&Nh(j,Lt,$,ot,!0)}}t:{if(C=A?_l(A):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var Rt=Wr;else if(Jr(C))if(Pr)Rt=jy;else{Rt=By;var et=Uy}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?A&&xu(A.elementType)&&(Rt=Wr):Rt=Hy;if(Rt&&(Rt=Rt(t,A))){Fr(j,Rt,n,D);break t}et&&et(t,C,A),t==="focusout"&&A&&C.type==="number"&&A.memoizedProps.value!=null&&Eu(C,"number",C.value)}switch(et=A?_l(A):window,t){case"focusin":(Jr(et)||et.contentEditable==="true")&&(Na=et,qu=A,Ol=null);break;case"focusout":Ol=qu=Na=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,of(j,n,D);break;case"selectionchange":if(Gy)break;case"keydown":case"keyup":of(j,n,D)}var dt;if(Uu)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else La?Zr(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(Xr&&n.locale!=="ko"&&(La||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&La&&(dt=jr()):(Tn=D,Ou="value"in Tn?Tn.value:Tn.textContent,La=!0)),et=zo(A,gt),0<et.length&&(gt=new Yr(gt,t,null,n,D),j.push({event:gt,listeners:et}),dt?gt.data=dt:(dt=Kr(n),dt!==null&&(gt.data=dt)))),(dt=Oy?wy(t,n):Dy(t,n))&&(gt=zo(A,"onBeforeInput"),0<gt.length&&(et=new Yr("onBeforeInput","beforeinput",null,n,D),j.push({event:et,listeners:gt}),et.data=dt)),Tg(j,t,A,n,D)}Dh(j,e)})}function ei(t,e,n){return{instance:t,listener:e,currentTarget:n}}function zo(t,e){for(var n=e+"Capture",a=[];t!==null;){var i=t,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Rl(t,n),i!=null&&a.unshift(ei(t,i,o)),i=Rl(t,e),i!=null&&a.push(ei(t,i,o))),t.tag===3)return a;t=t.return}return[]}function Ag(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Nh(t,e,n,a,i){for(var o=e._reactName,f=[];n!==null&&n!==a;){var y=n,_=y.alternate,A=y.stateNode;if(y=y.tag,_!==null&&_===a)break;y!==5&&y!==26&&y!==27||A===null||(_=A,i?(A=Rl(n,o),A!=null&&f.unshift(ei(n,A,_))):i||(A=Rl(n,o),A!=null&&f.push(ei(n,A,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Cg=/\r\n?/g,zg=/\u0000|\uFFFD/g;function Uh(t){return(typeof t=="string"?t:""+t).replace(Cg,`
9
- `).replace(zg,"")}function Bh(t,e){return e=Uh(e),Uh(t)===e}function Dt(t,e,n,a,i,o){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Oa(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Oa(t,""+a);break;case"className":Di(t,"class",a);break;case"tabIndex":Di(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(t,n,a);break;case"style":Ur(t,a,o);break;case"data":if(e!=="object"){Di(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ni(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&Dt(t,e,"name",i.name,i,null),Dt(t,e,"formEncType",i.formEncType,i,null),Dt(t,e,"formMethod",i.formMethod,i,null),Dt(t,e,"formTarget",i.formTarget,i,null)):(Dt(t,e,"encType",i.encType,i,null),Dt(t,e,"method",i.method,i,null),Dt(t,e,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ni(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ni(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":pt("beforetoggle",t),pt("toggle",t),wi(t,"popover",a);break;case"xlinkActuate":$e(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$e(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$e(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$e(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$e(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$e(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$e(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$e(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$e(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":wi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ay.get(n)||n,wi(t,n,a))}}function fs(t,e,n,a,i,o){switch(n){case"style":Ur(t,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Oa(t,a):(typeof a=="number"||typeof a=="bigint")&&Oa(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),o=t[ce]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):wi(t,n,a)}}}function ae(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var f=n[o];if(f!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,o,f,n,null)}}i&&Dt(t,e,"srcSet",n.srcSet,n,null),a&&Dt(t,e,"src",n.src,n,null);return;case"input":pt("invalid",t);var y=o=f=i=null,_=null,A=null;for(a in n)if(n.hasOwnProperty(a)){var D=n[a];if(D!=null)switch(a){case"name":i=D;break;case"type":f=D;break;case"checked":_=D;break;case"defaultChecked":A=D;break;case"value":o=D;break;case"defaultValue":y=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,e));break;default:Dt(t,e,a,D,n,null)}}wr(t,o,y,_,A,f,i,!1);return;case"select":pt("invalid",t),a=f=o=null;for(i in n)if(n.hasOwnProperty(i)&&(y=n[i],y!=null))switch(i){case"value":o=y;break;case"defaultValue":f=y;break;case"multiple":a=y;default:Dt(t,e,i,y,n,null)}e=o,n=f,t.multiple=!!a,e!=null?za(t,!!a,e,!1):n!=null&&za(t,!!a,n,!0);return;case"textarea":pt("invalid",t),o=i=a=null;for(f in n)if(n.hasOwnProperty(f)&&(y=n[f],y!=null))switch(f){case"value":a=y;break;case"defaultValue":i=y;break;case"children":o=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(c(91));break;default:Dt(t,e,f,y,n,null)}Lr(t,a,i,o);return;case"option":for(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Dt(t,e,_,a,n,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<ti.length;a++)pt(ti[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(A in n)if(n.hasOwnProperty(A)&&(a=n[A],a!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,A,a,n,null)}return;default:if(xu(e)){for(D in n)n.hasOwnProperty(D)&&(a=n[D],a!==void 0&&fs(t,e,D,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Dt(t,e,y,a,n,null))}function Og(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,f=null,y=null,_=null,A=null,D=null;for(z in n){var j=n[z];if(n.hasOwnProperty(z)&&j!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":_=j;default:a.hasOwnProperty(z)||Dt(t,e,z,null,a,j)}}for(var C in a){var z=a[C];if(j=n[C],a.hasOwnProperty(C)&&(z!=null||j!=null))switch(C){case"type":o=z;break;case"name":i=z;break;case"checked":A=z;break;case"defaultChecked":D=z;break;case"value":f=z;break;case"defaultValue":y=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:z!==j&&Dt(t,e,C,z,a,j)}}Tu(t,f,y,_,A,D,o,i);return;case"select":z=f=y=C=null;for(o in n)if(_=n[o],n.hasOwnProperty(o)&&_!=null)switch(o){case"value":break;case"multiple":z=_;default:a.hasOwnProperty(o)||Dt(t,e,o,null,a,_)}for(i in a)if(o=a[i],_=n[i],a.hasOwnProperty(i)&&(o!=null||_!=null))switch(i){case"value":C=o;break;case"defaultValue":y=o;break;case"multiple":f=o;default:o!==_&&Dt(t,e,i,o,a,_)}e=y,n=f,a=z,C!=null?za(t,!!n,C,!1):!!a!=!!n&&(e!=null?za(t,!!n,e,!0):za(t,!!n,n?[]:"",!1));return;case"textarea":z=C=null;for(y in n)if(i=n[y],n.hasOwnProperty(y)&&i!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Dt(t,e,y,null,a,i)}for(f in a)if(i=a[f],o=n[f],a.hasOwnProperty(f)&&(i!=null||o!=null))switch(f){case"value":C=i;break;case"defaultValue":z=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==o&&Dt(t,e,f,i,a,o)}Dr(t,C,z);return;case"option":for(var $ in n)if(C=n[$],n.hasOwnProperty($)&&C!=null&&!a.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:Dt(t,e,$,null,a,C)}for(_ in a)if(C=a[_],z=n[_],a.hasOwnProperty(_)&&C!==z&&(C!=null||z!=null))switch(_){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Dt(t,e,_,C,a,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 ot in n)C=n[ot],n.hasOwnProperty(ot)&&C!=null&&!a.hasOwnProperty(ot)&&Dt(t,e,ot,null,a,C);for(A in a)if(C=a[A],z=n[A],a.hasOwnProperty(A)&&C!==z&&(C!=null||z!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:Dt(t,e,A,C,a,z)}return;default:if(xu(e)){for(var Lt in n)C=n[Lt],n.hasOwnProperty(Lt)&&C!==void 0&&!a.hasOwnProperty(Lt)&&fs(t,e,Lt,void 0,a,C);for(D in a)C=a[D],z=n[D],!a.hasOwnProperty(D)||C===z||C===void 0&&z===void 0||fs(t,e,D,C,a,z);return}}for(var x in n)C=n[x],n.hasOwnProperty(x)&&C!=null&&!a.hasOwnProperty(x)&&Dt(t,e,x,null,a,C);for(j in a)C=a[j],z=n[j],!a.hasOwnProperty(j)||C===z||C==null&&z==null||Dt(t,e,j,C,a,z)}function Hh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,f=i.initiatorType,y=i.duration;if(o&&y&&Hh(f)){for(f=0,y=i.responseEnd,a+=1;a<n.length;a++){var _=n[a],A=_.startTime;if(A>y)break;var D=_.transferSize,j=_.initiatorType;D&&Hh(j)&&(_=_.responseEnd,f+=D*(_<y?1:(y-A)/(_-A)))}if(--a,e+=8*(o+f)/(i.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 ds=null,hs=null;function Oo(t){return t.nodeType===9?t:t.ownerDocument}function jh(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 qh(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 ms(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 ps=null;function Dg(){var t=window.event;return t&&t.type==="popstate"?t===ps?!1:(ps=t,!0):(ps=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,Lg=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,Ng=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(t){return Yh.resolve(null).then(t).catch(Ug)}:Gh;function Ug(t){setTimeout(function(){throw t})}function Gn(t){return t==="head"}function Vh(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(i),ul(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ni(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ni(n);for(var o=n.firstChild;o;){var f=o.nextSibling,y=o.nodeName;o[bl]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=f}}else n==="body"&&ni(t.ownerDocument.body);n=i}while(n);ul(e)}function Xh(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function ys(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ys(n),_u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Bg(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[bl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=je(t.nextSibling),t===null)break}return null}function Hg(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=je(t.nextSibling),t===null))return null;return t}function kh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=je(t.nextSibling),t===null))return null;return t}function gs(t){return t.data==="$?"||t.data==="$~"}function vs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jg(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function je(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ss=null;function Qh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return je(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Zh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Kh(t,e,n){switch(e=Oo(n),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function ni(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);_u(t)}var qe=new Map,Jh=new Set;function wo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=Q.d;Q.d={f:qg,r:Gg,D:Yg,C:Vg,L:Xg,m:kg,X:Zg,S:Qg,M:Kg};function qg(){var t=yn.f(),e=Ro();return t||e}function Gg(t){var e=Ma(t);e!==null&&e.tag===5&&e.type==="form"?fd(e):yn.r(t)}var ll=typeof document>"u"?null:document;function Fh(t,e,n){var a=ll;if(a&&typeof e=="string"&&e){var i=we(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Jh.has(i)||(Jh.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),ae(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Yg(t){yn.D(t),Fh("dns-prefetch",t,null)}function Vg(t,e){yn.C(t,e),Fh("preconnect",t,e)}function Xg(t,e,n){yn.L(t,e,n);var a=ll;if(a&&t&&e){var i='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+we(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+we(n.imageSizes)+'"]')):i+='[href="'+we(t)+'"]';var o=i;switch(e){case"style":o=il(t);break;case"script":o=ol(t)}qe.has(o)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),qe.set(o,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(ai(o))||e==="script"&&a.querySelector(li(o))||(e=a.createElement("link"),ae(e,"link",t),Pt(e),a.head.appendChild(e)))}}function kg(t,e){yn.m(t,e);var n=ll;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+we(a)+'"][href="'+we(t)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ol(t)}if(!qe.has(o)&&(t=v({rel:"modulepreload",href:t},e),qe.set(o,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(li(o)))return}a=n.createElement("link"),ae(a,"link",t),Pt(a),n.head.appendChild(a)}}}function Qg(t,e,n){yn.S(t,e,n);var a=ll;if(a&&t){var i=Aa(a).hoistableStyles,o=il(t);e=e||"default";var f=i.get(o);if(!f){var y={loading:0,preload:null};if(f=a.querySelector(ai(o)))y.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=qe.get(o))&&bs(t,n);var _=f=a.createElement("link");Pt(_),ae(_,"link",t),_._p=new Promise(function(A,D){_.onload=A,_.onerror=D}),_.addEventListener("load",function(){y.loading|=1}),_.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Do(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:y},i.set(o,f)}}}function Zg(t,e){yn.X(t,e);var n=ll;if(n&&t){var a=Aa(n).hoistableScripts,i=ol(t),o=a.get(i);o||(o=n.querySelector(li(i)),o||(t=v({src:t,async:!0},e),(e=qe.get(i))&&_s(t,e),o=n.createElement("script"),Pt(o),ae(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Kg(t,e){yn.M(t,e);var n=ll;if(n&&t){var a=Aa(n).hoistableScripts,i=ol(t),o=a.get(i);o||(o=n.querySelector(li(i)),o||(t=v({src:t,async:!0,type:"module"},e),(e=qe.get(i))&&_s(t,e),o=n.createElement("script"),Pt(o),ae(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Wh(t,e,n,a){var i=(i=ut.current)?wo(i):null;if(!i)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=il(n.href),n=Aa(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=il(n.href);var o=Aa(i).hoistableStyles,f=o.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,f),(o=i.querySelector(ai(t)))&&!o._p&&(f.instance=o,f.state.loading=5),qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qe.set(t,n),o||Jg(i,t,n,f.state))),e&&a===null)throw Error(c(528,""));return f}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ol(n),n=Aa(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function il(t){return'href="'+we(t)+'"'}function ai(t){return'link[rel="stylesheet"]['+t+"]"}function Ph(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Jg(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ae(e,"link",n),Pt(e),t.head.appendChild(e))}function ol(t){return'[src="'+we(t)+'"]'}function li(t){return"script[async]"+t}function $h(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+we(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var i=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ae(a,"style",i),Do(a,n.precedence,t),e.instance=a;case"stylesheet":i=il(n.href);var o=t.querySelector(ai(i));if(o)return e.state.loading|=4,e.instance=o,Pt(o),o;a=Ph(n),(i=qe.get(i))&&bs(a,i),o=(t.ownerDocument||t).createElement("link"),Pt(o);var f=o;return f._p=new Promise(function(y,_){f.onload=y,f.onerror=_}),ae(o,"link",a),e.state.loading|=4,Do(o,n.precedence,t),e.instance=o;case"script":return o=ol(n.src),(i=t.querySelector(li(o)))?(e.instance=i,Pt(i),i):(a=n,(i=qe.get(o))&&(a=v({},n),_s(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),Pt(i),ae(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Do(a,n.precedence,t));return e.instance}function Do(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,f=0;f<a.length;f++){var y=a[f];if(y.dataset.precedence===e)o=y;else if(o!==i)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function bs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _s(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lo=null;function Ih(t,e,n){if(Lo===null){var a=new Map,i=Lo=new Map;i.set(n,a)}else i=Lo,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var o=n[i];if(!(o[bl]||o[It]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var f=o.getAttribute(e)||"";f=t+f;var y=a.get(f);y?y.push(o):a.set(f,[o])}}return a}function tm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Fg(t,e,n){if(n===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 em(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Wg(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=il(a.href),o=e.querySelector(ai(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=No.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Pt(o);return}o=e.ownerDocument||e,a=Ph(a),(i=qe.get(i))&&bs(a,i),o=o.createElement("link"),Pt(o);var f=o;f._p=new Promise(function(y,_){f.onload=y,f.onerror=_}),ae(o,"link",a),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=No.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Rs=0;function Pg(t,e){return t.stylesheets&&t.count===0&&Bo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Bo(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Rs===0&&(Rs=62500*wg());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bo(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Rs?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function No(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Uo=null;function Bo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Uo=new Map,e.forEach($g,t),Uo=null,No.call(t))}function $g(t,e){if(!(e.state.loading&4)){var n=Uo.get(t);if(n)var a=n.get(null);else{n=new Map,Uo.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var f=i[o];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}i=e.instance,f=i.getAttribute("data-precedence"),o=n.get(f)||a,o===a&&n.set(null,i),n.set(f,i),this.count++,a=No.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var ii={$$typeof:k,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function Ig(t,e,n,a,i,o,f,y,_){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=gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.hiddenUpdates=gu(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function nm(t,e,n,a,i,o,f,y,_,A,D,j){return t=new Ig(t,e,n,f,_,A,D,j,y),e=1,o===!0&&(e|=24),o=be(3,null,null,e),t.current=o,o.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:e},ic(o),t}function am(t){return t?(t=Ha,t):Ha}function lm(t,e,n,a,i,o){i=am(i),a.context===null?a.context=i:a.pendingContext=i,a=zn(e),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=On(t,a,e),n!==null&&(me(n,t,e),Hl(n,t,e))}function im(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ts(t,e){im(t,e),(t=t.alternate)&&im(t,e)}function om(t){if(t.tag===13||t.tag===31){var e=na(t,67108864);e!==null&&me(e,t,67108864),Ts(t,67108864)}}function um(t){if(t.tag===13||t.tag===31){var e=xe();e=vu(e);var n=na(t,e);n!==null&&me(n,t,e),Ts(t,e)}}var Ho=!0;function tv(t,e,n,a){var i=O.T;O.T=null;var o=Q.p;try{Q.p=2,Es(t,e,n,a)}finally{Q.p=o,O.T=i}}function ev(t,e,n,a){var i=O.T;O.T=null;var o=Q.p;try{Q.p=8,Es(t,e,n,a)}finally{Q.p=o,O.T=i}}function Es(t,e,n,a){if(Ho){var i=xs(a);if(i===null)rs(t,e,a,jo,n),sm(t,a);else if(av(i,t,e,n,a))a.stopPropagation();else if(sm(t,a),e&4&&-1<nv.indexOf(t)){for(;i!==null;){var o=Ma(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var f=Pn(o.pendingLanes);if(f!==0){var y=o;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var _=1<<31-ve(f);y.entanglements[1]|=_,f&=~_}Fe(o),(Mt&6)===0&&(bo=xt()+500,Il(0))}}break;case 31:case 13:y=na(o,2),y!==null&&me(y,o,2),Ro(),Ts(o,2)}if(o=xs(a),o===null&&rs(t,e,a,jo,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else rs(t,e,a,null,n)}}function xs(t){return t=Au(t),Ms(t)}var jo=null;function Ms(t){if(jo=null,t=xa(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=g(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return jo=t,null}function cm(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(ye()){case yl:return 2;case yr:return 8;case Mi:case Vp:return 32;case gr:return 268435456;default:return 32}default:return 32}}var As=!1,Yn=null,Vn=null,Xn=null,oi=new Map,ui=new Map,kn=[],nv="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 sm(t,e){switch(t){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":oi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(e.pointerId)}}function ci(t,e,n,a,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},e!==null&&(e=Ma(e),e!==null&&om(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function av(t,e,n,a,i){switch(e){case"focusin":return Yn=ci(Yn,t,e,n,a,i),!0;case"dragenter":return Vn=ci(Vn,t,e,n,a,i),!0;case"mouseover":return Xn=ci(Xn,t,e,n,a,i),!0;case"pointerover":var o=i.pointerId;return oi.set(o,ci(oi.get(o)||null,t,e,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,ui.set(o,ci(ui.get(o)||null,t,e,n,a,i)),!0}return!1}function rm(t){var e=xa(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Tr(t.priority,function(){um(n)});return}}else if(e===31){if(e=g(n),e!==null){t.blockedOn=e,Tr(t.priority,function(){um(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=xs(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Mu=a,n.target.dispatchEvent(a),Mu=null}else return e=Ma(n),e!==null&&om(e),t.blockedOn=n,!1;e.shift()}return!0}function fm(t,e,n){qo(t)&&n.delete(e)}function lv(){As=!1,Yn!==null&&qo(Yn)&&(Yn=null),Vn!==null&&qo(Vn)&&(Vn=null),Xn!==null&&qo(Xn)&&(Xn=null),oi.forEach(fm),ui.forEach(fm)}function Go(t,e){t.blockedOn===e&&(t.blockedOn=null,As||(As=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,lv)))}var Yo=null;function dm(t){Yo!==t&&(Yo=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Yo===t&&(Yo=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!="function"){if(Ms(a||n)===null)continue;break}var o=Ma(n);o!==null&&(t.splice(e,3),e-=3,xc(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function ul(t){function e(_){return Go(_,t)}Yn!==null&&Go(Yn,t),Vn!==null&&Go(Vn,t),Xn!==null&&Go(Xn,t),oi.forEach(e),ui.forEach(e);for(var n=0;n<kn.length;n++){var a=kn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<kn.length&&(n=kn[0],n.blockedOn===null);)rm(n),n.blockedOn===null&&kn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],f=i[ce]||null;if(typeof o=="function")f||dm(n);else if(f){var y=null;if(o&&o.hasAttribute("formAction")){if(i=o,f=o[ce]||null)y=f.formAction;else if(Ms(i)!==null)continue}else y=f.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),dm(n)}}}function hm(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function Cs(t){this._internalRoot=t}Vo.prototype.render=Cs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var n=e.current,a=xe();lm(n,a,t,e,null,null)},Vo.prototype.unmount=Cs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;lm(t.current,2,null,t,null,null),Ro(),e[Ea]=null}};function Vo(t){this._internalRoot=t}Vo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Rr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<kn.length&&e!==0&&e<kn[n].priority;n++);kn.splice(n,0,t),n===0&&rm(t)}};var mm=s.version;if(mm!=="19.2.1")throw Error(c(527,mm,"19.2.1"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=h(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var iv={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{gl=Xo.inject(iv),ge=Xo}catch{}}return ri.createRoot=function(t,e){if(!r(t))throw Error(c(299));var n=!1,a="",i=_d,o=Rd,f=Td;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=nm(t,1,!1,null,null,n,a,null,i,o,f,hm),t[Ea]=e.current,ss(t),new Cs(e)},ri.hydrateRoot=function(t,e,n){if(!r(t))throw Error(c(299));var a=!1,i="",o=_d,f=Rd,y=Td,_=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=nm(t,1,!0,e,n??null,a,i,_,o,f,y,hm),e.context=am(null),n=e.current,a=xe(),a=vu(a),i=zn(a),i.callback=null,On(n,i,a),n=a,e.current.lanes=n,Sl(e,n),Fe(e),t[Ea]=e.current,ss(t),new Vo(e)},ri.version="19.2.1",ri}var Em;function pv(){if(Em)return Os.exports;Em=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Os.exports=mv(),Os.exports}var yv=pv();const gv=nr(yv),Ps=new WeakMap,vv=new WeakMap,tu={current:[]};let Us=!1,yi=0;const pi=new Set,ko=new Map;function tp(l){for(const s of l){if(tu.current.includes(s))continue;tu.current.push(s),s.recompute();const u=vv.get(s);if(u)for(const c of u){const r=Ps.get(c);r?.length&&tp(r)}}}function Sv(l){const s={prevVal:l.prevState,currentVal:l.state};for(const u of l.listeners)u(s)}function bv(l){const s={prevVal:l.prevState,currentVal:l.state};for(const u of l.listeners)u(s)}function ep(l){if(yi>0&&!ko.has(l)&&ko.set(l,l.prevState),pi.add(l),!(yi>0)&&!Us)try{for(Us=!0;pi.size>0;){const s=Array.from(pi);pi.clear();for(const u of s){const c=ko.get(u)??u.prevState;u.prevState=c,Sv(u)}for(const u of s){const c=Ps.get(u);c&&(tu.current.push(u),tp(c))}for(const u of s){const c=Ps.get(u);if(c)for(const r of c)bv(r)}}}finally{Us=!1,tu.current=[],ko.clear()}}function gi(l){yi++;try{l()}finally{if(yi--,yi===0){const s=pi.values().next().value;s&&ep(s)}}}function _v(l){return typeof l=="function"}class Rv{constructor(s,u){this.listeners=new Set,this.subscribe=c=>{var r,d;this.listeners.add(c);const m=(d=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:d.call(r,c,this);return()=>{this.listeners.delete(c),m?.()}},this.prevState=s,this.state=s,this.options=u}setState(s){var u,c,r;this.prevState=this.state,(u=this.options)!=null&&u.updateFn?this.state=this.options.updateFn(this.prevState)(s):_v(s)?this.state=s(this.prevState):this.state=s,(r=(c=this.options)==null?void 0:c.onUpdate)==null||r.call(c),ep(this)}}const Fn="__TSR_index",xm="popstate",Mm="beforeunload";function Tv(l){let s=l.getLocation();const u=new Set,c=m=>{s=l.getLocation(),u.forEach(g=>g({location:s,action:m}))},r=m=>{l.notifyOnIndexChange??!0?c(m):s=l.getLocation()},d=async({task:m,navigateOpts:g,...p})=>{if(g?.ignoreBlocker??!1){m();return}const S=l.getBlockers?.()??[],v=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&S.length&&v)for(const b of S){const E=eu(p.path,p.state);if(await b.blockerFn({currentLocation:s,nextLocation:E,action:p.type})){l.onBlocked?.();return}}m()};return{get location(){return s},get length(){return l.getLength()},subscribers:u,subscribe:m=>(u.add(m),()=>{u.delete(m)}),push:(m,g,p)=>{const h=s.state[Fn];g=Am(h+1,g),d({task:()=>{l.pushState(m,g),c({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:m,state:g})},replace:(m,g,p)=>{const h=s.state[Fn];g=Am(h,g),d({task:()=>{l.replaceState(m,g),c({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:m,state:g})},go:(m,g)=>{d({task:()=>{l.go(m),r({type:"GO",index:m})},navigateOpts:g,type:"GO"})},back:m=>{d({task:()=>{l.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{d({task:()=>{l.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>s.state[Fn]!==0,createHref:m=>l.createHref(m),block:m=>{if(!l.setBlockers)return()=>{};const g=l.getBlockers?.()??[];return l.setBlockers([...g,m]),()=>{const p=l.getBlockers?.()??[];l.setBlockers?.(p.filter(h=>h!==m))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:c}}function Am(l,s){s||(s={});const u=ar();return{...s,key:u,__TSR_key:u,[Fn]:l}}function Ev(l){const s=typeof document<"u"?window:void 0,u=s.history.pushState,c=s.history.replaceState;let r=[];const d=()=>r,m=L=>r=L,g=(L=>L),p=(()=>eu(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!s.history.state?.__TSR_key&&!s.history.state?.key){const L=ar();s.history.replaceState({[Fn]:0,key:L,__TSR_key:L},"")}let h=p(),S,v=!1,b=!1,E=!1,w=!1;const U=()=>h;let B,q;const J=()=>{B&&(G._ignoreSubscribers=!0,(B.isPush?s.history.pushState:s.history.replaceState)(B.state,"",B.href),G._ignoreSubscribers=!1,B=void 0,q=void 0,S=void 0)},k=(L,P,ft)=>{const ct=g(P);q||(S=h),h=eu(P,ft),B={href:ct,state:ft,isPush:B?.isPush||L==="push"},q||(q=Promise.resolve().then(()=>J()))},W=L=>{h=p(),G.notify({type:L})},at=async()=>{if(b){b=!1;return}const L=p(),P=L.state[Fn]-h.state[Fn],ft=P===1,ct=P===-1,St=!ft&&!ct||v;v=!1;const jt=St?"GO":ct?"BACK":"FORWARD",Ut=St?{type:"GO",index:P}:{type:ct?"BACK":"FORWARD"};if(E)E=!1;else{const At=d();if(typeof document<"u"&&At.length){for(const O of At)if(await O.blockerFn({currentLocation:h,nextLocation:L,action:jt})){b=!0,s.history.go(1),G.notify(Ut);return}}}h=p(),G.notify(Ut)},X=L=>{if(w){w=!1;return}let P=!1;const ft=d();if(typeof document<"u"&&ft.length)for(const ct of ft){const St=ct.enableBeforeUnload??!0;if(St===!0){P=!0;break}if(typeof St=="function"&&St()===!0){P=!0;break}}if(P)return L.preventDefault(),L.returnValue=""},G=Tv({getLocation:U,getLength:()=>s.history.length,pushState:(L,P)=>k("push",L,P),replaceState:(L,P)=>k("replace",L,P),back:L=>(L&&(E=!0),w=!0,s.history.back()),forward:L=>{L&&(E=!0),w=!0,s.history.forward()},go:L=>{v=!0,s.history.go(L)},createHref:L=>g(L),flush:J,destroy:()=>{s.history.pushState=u,s.history.replaceState=c,s.removeEventListener(Mm,X,{capture:!0}),s.removeEventListener(xm,at)},onBlocked:()=>{S&&h!==S&&(h=S)},getBlockers:d,setBlockers:m,notifyOnIndexChange:!1});return s.addEventListener(Mm,X,{capture:!0}),s.addEventListener(xm,at),s.history.pushState=function(...L){const P=u.apply(s.history,L);return G._ignoreSubscribers||W("PUSH"),P},s.history.replaceState=function(...L){const P=c.apply(s.history,L);return G._ignoreSubscribers||W("REPLACE"),P},G}function eu(l,s){const u=l.indexOf("#"),c=l.indexOf("?"),r=ar();return{href:l,pathname:l.substring(0,u>0?c>0?Math.min(u,c):u:c>0?c:l.length),hash:u>-1?l.substring(u):"",search:c>-1?l.slice(c,u===-1?void 0:u):"",state:s||{[Fn]:0,key:r,__TSR_key:r}}}function ar(){return(Math.random()+1).toString(36).substring(7)}function nu(l){return l[l.length-1]}function xv(l){return typeof l=="function"}function Kn(l,s){return xv(l)?l(s):l}const Mv=Object.prototype.hasOwnProperty;function Ge(l,s){if(l===s)return l;const u=s,c=Om(l)&&Om(u);if(!c&&!(au(l)&&au(u)))return u;const r=c?l:Cm(l);if(!r)return u;const d=c?u:Cm(u);if(!d)return u;const m=r.length,g=d.length,p=c?new Array(g):{};let h=0;for(let S=0;S<g;S++){const v=c?S:d[S],b=l[v],E=u[v];if(b===E){p[v]=b,(c?S<m:Mv.call(l,v))&&h++;continue}if(b===null||E===null||typeof b!="object"||typeof E!="object"){p[v]=E;continue}const w=Ge(b,E);p[v]=w,w===b&&h++}return m===g&&h===m?l:p}function Cm(l){const s=[],u=Object.getOwnPropertyNames(l);for(const r of u){if(!Object.prototype.propertyIsEnumerable.call(l,r))return!1;s.push(r)}const c=Object.getOwnPropertySymbols(l);for(const r of c){if(!Object.prototype.propertyIsEnumerable.call(l,r))return!1;s.push(r)}return s}function au(l){if(!zm(l))return!1;const s=l.constructor;if(typeof s>"u")return!0;const u=s.prototype;return!(!zm(u)||!u.hasOwnProperty("isPrototypeOf"))}function zm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Om(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ga(l,s,u){if(l===s)return!0;if(typeof l!=typeof s)return!1;if(Array.isArray(l)&&Array.isArray(s)){if(l.length!==s.length)return!1;for(let c=0,r=l.length;c<r;c++)if(!ga(l[c],s[c],u))return!1;return!0}if(au(l)&&au(s)){const c=u?.ignoreUndefined??!0;if(u?.partial){for(const m in s)if((!c||s[m]!==void 0)&&!ga(l[m],s[m],u))return!1;return!0}let r=0;if(!c)r=Object.keys(l).length;else for(const m in l)l[m]!==void 0&&r++;let d=0;for(const m in s)if((!c||s[m]!==void 0)&&(d++,d>r||!ga(l[m],s[m],u)))return!1;return r===d}return!1}function rl(l){let s,u;const c=new Promise((r,d)=>{s=r,u=d});return c.status="pending",c.resolve=r=>{c.status="resolved",c.value=r,s(r),l?.(r)},c.reject=r=>{c.status="rejected",u(r)},c}function Av(l){return typeof l?.message!="string"?!1:l.message.startsWith("Failed to fetch dynamically imported module")||l.message.startsWith("error loading dynamically imported module")||l.message.startsWith("Importing a module script failed")}function Wn(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function wm(l){try{return decodeURI(l)}catch{return l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}}function Dm(l,s){if(!l)return l;const u=/%25|%5C/gi;let c=0,r="",d;for(;(d=u.exec(l))!==null;)r+=wm(l.slice(c,d.index))+d[0],c=u.lastIndex;return r+wm(c?l.slice(c):l)}var Cv="Invariant failed";function vn(l,s){if(!l)throw new Error(Cv)}function lu(l){const s=new Map;let u,c;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,c&&(c.next=d,d.prev=c)):(d.next.prev=void 0,u=d.next,d.next=void 0,c&&(d.prev=c,c.next=d)),c=d)};return{get(d){const m=s.get(d);if(m)return r(m),m.value},set(d,m){if(s.size>=l&&u){const p=u;s.delete(p.key),p.next&&(u=p.next,p.next.prev=void 0),p===c&&(c=void 0)}const g=s.get(d);if(g)g.value=m,r(g);else{const p={key:d,value:m,prev:c};c&&(c.next=p),c=p,u||(u=p),s.set(d,p)}},clear(){s.clear(),u=void 0,c=void 0}}}const fl=0,ba=1,_a=2,Si=3,zv=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Ov=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,wv=/^([^{]*)\{\$\}([^}]*)$/;function lr(l,s,u=new Uint16Array(6)){const c=l.indexOf("/",s),r=c===-1?l.length:c,d=l.substring(s,r);if(!d||!d.includes("$"))return u[0]=fl,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u;if(d==="$"){const h=l.length;return u[0]=_a,u[1]=s,u[2]=s,u[3]=h,u[4]=h,u[5]=h,u}if(d.charCodeAt(0)===36)return u[0]=ba,u[1]=s,u[2]=s+1,u[3]=r,u[4]=r,u[5]=r,u;const m=d.match(wv);if(m){const S=m[1].length;return u[0]=_a,u[1]=s+S,u[2]=s+S+1,u[3]=s+S+2,u[4]=s+S+3,u[5]=l.length,u}const g=d.match(Ov);if(g){const h=g[1],S=g[2],v=g[3],b=h.length;return u[0]=Si,u[1]=s+b,u[2]=s+b+3,u[3]=s+b+3+S.length,u[4]=r-v.length,u[5]=r,u}const p=d.match(zv);if(p){const h=p[1],S=p[2],v=p[3],b=h.length;return u[0]=ba,u[1]=s+b,u[2]=s+b+2,u[3]=s+b+2+S.length,u[4]=r-v.length,u[5]=r,u}return u[0]=fl,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u}function fu(l,s,u,c,r,d,m){m?.(u);let g=c;{const p=u.fullPath??u.from,h=p.length,S=u.options?.caseSensitive??l;for(;g<h;){const v=lr(p,g,s);let b;const E=g,w=v[5];switch(g=w+1,d++,v[0]){case fl:{const B=p.substring(v[2],v[3]);if(S){const q=r.static?.get(B);if(q)b=q;else{r.static??=new Map;const J=bi(u.fullPath??u.from);J.parent=r,J.depth=d,b=J,r.static.set(B,J)}}else{const q=B.toLowerCase(),J=r.staticInsensitive?.get(q);if(J)b=J;else{r.staticInsensitive??=new Map;const k=bi(u.fullPath??u.from);k.parent=r,k.depth=d,b=k,r.staticInsensitive.set(q,k)}}break}case ba:{const B=p.substring(E,v[1]),q=p.substring(v[4],w),J=S&&!!(B||q),k=B?J?B:B.toLowerCase():void 0,W=q?J?q:q.toLowerCase():void 0,at=r.dynamic?.find(X=>X.caseSensitive===J&&X.prefix===k&&X.suffix===W);if(at)b=at;else{const X=Hs(ba,u.fullPath??u.from,J,k,W);b=X,X.depth=d,X.parent=r,r.dynamic??=[],r.dynamic.push(X)}break}case Si:{const B=p.substring(E,v[1]),q=p.substring(v[4],w),J=S&&!!(B||q),k=B?J?B:B.toLowerCase():void 0,W=q?J?q:q.toLowerCase():void 0,at=r.optional?.find(X=>X.caseSensitive===J&&X.prefix===k&&X.suffix===W);if(at)b=at;else{const X=Hs(Si,u.fullPath??u.from,J,k,W);b=X,X.parent=r,X.depth=d,r.optional??=[],r.optional.push(X)}break}case _a:{const B=p.substring(E,v[1]),q=p.substring(v[4],w),J=S&&!!(B||q),k=B?J?B:B.toLowerCase():void 0,W=q?J?q:q.toLowerCase():void 0,at=Hs(_a,u.fullPath??u.from,J,k,W);b=at,at.parent=r,at.depth=d,r.wildcard??=[],r.wildcard.push(at)}}r=b}if((u.path||!u.children)&&!u.isRoot){const v=p.endsWith("/");v||(r.notFound=u),(!r.route||!r.isIndex&&v)&&(r.route=u,r.fullPath=u.fullPath??u.from),r.isIndex||=v}}if(u.children)for(const p of u.children)fu(l,s,p,g,r,d,m)}function Bs(l,s){if(l.prefix&&s.prefix&&l.prefix!==s.prefix){if(l.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(l.prefix))return 1}if(l.suffix&&s.suffix&&l.suffix!==s.suffix){if(l.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(l.suffix))return 1}return l.prefix&&!s.prefix?-1:!l.prefix&&s.prefix?1:l.suffix&&!s.suffix?-1:!l.suffix&&s.suffix?1:l.caseSensitive&&!s.caseSensitive?-1:!l.caseSensitive&&s.caseSensitive?1:0}function ya(l){if(l.static)for(const s of l.static.values())ya(s);if(l.staticInsensitive)for(const s of l.staticInsensitive.values())ya(s);if(l.dynamic?.length){l.dynamic.sort(Bs);for(const s of l.dynamic)ya(s)}if(l.optional?.length){l.optional.sort(Bs);for(const s of l.optional)ya(s)}if(l.wildcard?.length){l.wildcard.sort(Bs);for(const s of l.wildcard)ya(s)}}function bi(l){return{kind:fl,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,isIndex:!1,notFound:null}}function Hs(l,s,u,c,r){return{kind:l,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,isIndex:!1,notFound:null,caseSensitive:u,prefix:c,suffix:r}}function Dv(l,s){const u=bi("/"),c=new Uint16Array(6);for(const r of l)fu(!1,c,r,1,u,0);ya(u),s.masksTree=u,s.flatCache=lu(1e3)}function Lv(l,s){l||="/";const u=s.flatCache.get(l);if(u)return u;const c=ir(l,s.masksTree);return s.flatCache.set(l,c),c}function Nv(l,s,u,c,r){l||="/",c||="/";const d=s?`case\0${l}`:l;let m=r.singleCache.get(d);if(!m){m=bi("/");const g=new Uint16Array(6);fu(s,g,{from:l},1,m,0),r.singleCache.set(d,m)}return ir(c,m,u)}function Uv(l,s,u=!1){const c=u?l:`nofuzz\0${l}`,r=s.matchCache.get(c);if(r!==void 0)return r;l||="/";const d=ir(l,s.segmentTree,u);return d&&(d.branch=qv(d.route)),s.matchCache.set(c,d),d}function Bv(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function Hv(l,s=!1,u){const c=bi(l.fullPath),r=new Uint16Array(6),d={},m={};let g=0;return fu(s,r,l,1,c,0,h=>{if(u?.(h,g),vn(!(h.id in d),`Duplicate routes found with id: ${String(h.id)}`),d[h.id]=h,g!==0&&h.path){const S=Bv(h.fullPath);(!m[S]||h.fullPath.endsWith("/"))&&(m[S]=h)}g++}),ya(c),{processedTree:{segmentTree:c,singleCache:lu(1e3),matchCache:lu(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:m}}function ir(l,s,u=!1){const c=l.split("/"),r=Yv(l,c,s,u);if(!r)return null;const d=jv(l,c,r),m="**"in r;return m&&(d["**"]=r["**"]),{route:m?r.node.notFound??r.node.route:r.node.route,params:d}}function jv(l,s,u){const c=Gv(u.node);let r=null;const d={};for(let m=0,g=0,p=0;g<c.length;m++,g++,p++){const h=c[g],S=s[m],v=p;if(S&&(p+=S.length),h.kind===ba){r??=u.node.fullPath.split("/");const b=r[g],E=h.prefix?.length??0;if(b.charCodeAt(E)===123){const U=h.suffix?.length??0,B=b.substring(E+2,b.length-U-1),q=S.substring(E,S.length-U);d[B]=decodeURIComponent(q)}else{const U=b.substring(1);d[U]=decodeURIComponent(S)}}else if(h.kind===Si){if(u.skipped&1<<g){m--;continue}r??=u.node.fullPath.split("/");const b=r[g],E=h.prefix?.length??0,w=h.suffix?.length??0,U=b.substring(E+3,b.length-w-1),B=h.suffix||h.prefix?S.substring(E,S.length-w):S;B&&(d[U]=decodeURIComponent(B))}else if(h.kind===_a){const b=h,E=l.substring(v+(b.prefix?.length??0),l.length-(b.suffix?.length??0)),w=decodeURIComponent(E);d["*"]=w,d._splat=w;break}}return d}function qv(l){const s=[l];for(;l.parentRoute;)l=l.parentRoute,s.push(l);return s.reverse(),s}function Gv(l){const s=Array(l.depth+1);do s[l.depth]=l,l=l.parent;while(l);return s}function Yv(l,s,u,c){const r=!nu(s),d=r&&l!=="/",m=s.length-(r?1:0),g=[{node:u,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,h=null,S=null;for(;g.length;){const v=g.pop();let{node:b,index:E,skipped:w,depth:U,statics:B,dynamics:q,optionals:J}=v;c&&b.notFound&&Qo(h,v)&&(h=v);const k=E===m;if(k){if(b.route&&(!d||b.isIndex)&&(Qo(S,v)&&(S=v),B===m&&b.isIndex))return S;if(!b.optional&&!b.wildcard)continue}const W=k?void 0:s[E];let at;if(b.wildcard&&Qo(p,v))for(const X of b.wildcard){const{prefix:G,suffix:L}=X;if(!(G&&(k||!(X.caseSensitive?W:at??=W.toLowerCase()).startsWith(G)))){if(L){if(k)continue;const P=s.slice(E).join("/").slice(-L.length);if((X.caseSensitive?P:P.toLowerCase())!==L)continue}p={node:X,index:E,skipped:w,depth:U,statics:B,dynamics:q,optionals:J};break}}if(b.optional){const X=w|1<<U,G=U+1;for(let L=b.optional.length-1;L>=0;L--){const P=b.optional[L];g.push({node:P,index:E,skipped:X,depth:G,statics:B,dynamics:q,optionals:J})}if(!k)for(let L=b.optional.length-1;L>=0;L--){const P=b.optional[L],{prefix:ft,suffix:ct}=P;if(ft||ct){const St=P.caseSensitive?W:at??=W.toLowerCase();if(ft&&!St.startsWith(ft)||ct&&!St.endsWith(ct))continue}g.push({node:P,index:E+1,skipped:w,depth:G,statics:B,dynamics:q,optionals:J+1})}}if(!k&&b.dynamic&&W)for(let X=b.dynamic.length-1;X>=0;X--){const G=b.dynamic[X],{prefix:L,suffix:P}=G;if(L||P){const ft=G.caseSensitive?W:at??=W.toLowerCase();if(L&&!ft.startsWith(L)||P&&!ft.endsWith(P))continue}g.push({node:G,index:E+1,skipped:w,depth:U+1,statics:B,dynamics:q+1,optionals:J})}if(!k&&b.staticInsensitive){const X=b.staticInsensitive.get(at??=W.toLowerCase());X&&g.push({node:X,index:E+1,skipped:w,depth:U+1,statics:B+1,dynamics:q,optionals:J})}if(!k&&b.static){const X=b.static.get(W);X&&g.push({node:X,index:E+1,skipped:w,depth:U+1,statics:B+1,dynamics:q,optionals:J})}}if(S&&p)return Qo(p,S)?S:p;if(S)return S;if(p)return p;if(c&&h){let v=h.index;for(let E=0;E<h.index;E++)v+=s[E].length;const b=v===l.length?"/":l.slice(v);return{node:h.node,skipped:h.skipped,"**":decodeURIComponent(b)}}return null}function Qo(l,s){return l?s.statics>l.statics||s.statics===l.statics&&(s.dynamics>l.dynamics||s.dynamics===l.dynamics&&(s.optionals>l.optionals||s.optionals===l.optionals&&(s.node.isIndex>l.node.isIndex||s.node.isIndex===l.node.isIndex&&s.depth>l.depth))):!0}function Po(l){return or(l.filter(s=>s!==void 0).join("/"))}function or(l){return l.replace(/\/{2,}/g,"/")}function np(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function va(l){const s=l.length;return s>1&&l[s-1]==="/"?l.replace(/\/{1,}$/,""):l}function $o(l){return va(np(l))}function iu(l,s){return l?.endsWith("/")&&l!=="/"&&l!==`${s}/`?l.slice(0,-1):l}function Vv(l,s,u){return iu(l,u)===iu(s,u)}function Xv({base:l,to:s,trailingSlash:u="never",cache:c}){const r=s.startsWith("/"),d=!r&&s===".";let m;if(c){m=r?s:d?l:l+"\0"+s;const v=c.get(m);if(v)return v}let g;if(d)g=l.split("/");else if(r)g=s.split("/");else{for(g=l.split("/");g.length>1&&nu(g)==="";)g.pop();const v=s.split("/");for(let b=0,E=v.length;b<E;b++){const w=v[b];w===""?b?b===E-1&&g.push(w):g=[w]:w===".."?g.pop():w==="."||g.push(w)}}g.length>1&&(nu(g)===""?u==="never"&&g.pop():u==="always"&&g.push(""));let p,h="";for(let v=0;v<g.length;v++){v>0&&(h+="/");const b=g[v];if(!b)continue;p=lr(b,0,p);const E=p[0];if(E===fl){h+=b;continue}const w=p[5],U=b.substring(0,p[1]),B=b.substring(p[4],w),q=b.substring(p[2],p[3]);E===ba?h+=U||B?`${U}{$${q}}${B}`:`$${q}`:E===_a?h+=U||B?`${U}{$}${B}`:"$":h+=`${U}{-$${q}}${B}`}h=or(h);const S=h||"/";return m&&c&&c.set(m,S),S}function js(l,s,u){const c=s[l];return typeof c!="string"?c:l==="_splat"?encodeURI(c):kv(c,u)}function qs({path:l,params:s,decodeCharMap:u}){let c=!1;const r={};if(!l||l==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:c};if(!l.includes("$"))return{interpolatedPath:l,usedParams:r,isMissingParams:c};const d=l.length;let m=0,g,p="";for(;m<d;){const S=m;g=lr(l,S,g);const v=g[5];if(m=v+1,S===v)continue;const b=g[0];if(b===fl){p+="/"+l.substring(S,v);continue}if(b===_a){const E=s._splat;r._splat=E,r["*"]=E;const w=l.substring(S,g[1]),U=l.substring(g[4],v);if(!E){c=!0,(w||U)&&(p+="/"+w+U);continue}const B=js("_splat",s,u);p+="/"+w+B+U;continue}if(b===ba){const E=l.substring(g[2],g[3]);!c&&!(E in s)&&(c=!0),r[E]=s[E];const w=l.substring(S,g[1]),U=l.substring(g[4],v),B=js(E,s,u)??"undefined";p+="/"+w+B+U;continue}if(b===Si){const E=l.substring(g[2],g[3]),w=s[E];if(w==null)continue;r[E]=w;const U=l.substring(S,g[1]),B=l.substring(g[4],v),q=js(E,s,u)??"";p+="/"+U+q+B;continue}}return l.endsWith("/")&&(p+="/"),{usedParams:r,interpolatedPath:p||"/",isMissingParams:c}}function kv(l,s){let u=encodeURIComponent(l);if(s)for(const[c,r]of s)u=u.replaceAll(c,r);return u}function Ye(l){return!!l?.isNotFound}function Qv(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ou="tsr-scroll-restoration-v1_3",Zv=(l,s)=>{let u;return(...c)=>{u||(u=setTimeout(()=>{l(...c),u=null},s))}};function Kv(){const l=Qv();if(!l)return null;const s=l.getItem(ou);let u=s?JSON.parse(s):{};return{state:u,set:c=>(u=Kn(c,u)||u,l.setItem(ou,JSON.stringify(u)))}}const Zo=Kv(),$s=l=>l.state.__TSR_key||l.href;function Jv(l){const s=[];let u;for(;u=l.parentNode;)s.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,l)+1})`),l=u;return`${s.reverse().join(" > ")}`.toLowerCase()}let uu=!1;function ap({storageKey:l,key:s,behavior:u,shouldScrollRestoration:c,scrollToTopSelectors:r,location:d}){let m;try{m=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(h){console.error(h);return}const g=s||window.history.state?.__TSR_key,p=m[g];uu=!0;t:{if(c&&p&&Object.keys(p).length>0){for(const v in p){const b=p[v];if(v==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:u});else if(v){const E=document.querySelector(v);E&&(E.scrollLeft=b.scrollX,E.scrollTop=b.scrollY)}}break t}const h=(d??window.location).hash.split("#",2)[1];if(h){const v=window.history.state?.__hashScrollIntoViewOptions??!0;if(v){const b=document.getElementById(h);b&&b.scrollIntoView(v)}break t}const S={top:0,left:0,behavior:u};if(window.scrollTo(S),r)for(const v of r){if(v==="window")continue;const b=typeof v=="function"?v():document.querySelector(v);b&&b.scrollTo(S)}}uu=!1}function Fv(l,s){if(!Zo&&!l.isServer||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isServer||l.isScrollRestorationSetup||!Zo))return;l.isScrollRestorationSetup=!0,uu=!1;const c=l.options.getScrollRestorationKey||$s;window.history.scrollRestoration="manual";const r=d=>{if(uu||!l.isScrollRestoring)return;let m="";if(d.target===document||d.target===window)m="window";else{const p=d.target.getAttribute("data-scroll-restoration-id");p?m=`[data-scroll-restoration-id="${p}"]`:m=Jv(d.target)}const g=c(l.state.location);Zo.set(p=>{const h=p[g]||={},S=h[m]||={};if(m==="window")S.scrollX=window.scrollX||0,S.scrollY=window.scrollY||0;else if(m){const v=document.querySelector(m);v&&(S.scrollX=v.scrollLeft||0,S.scrollY=v.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",Zv(r,100),!0),l.subscribe("onRendered",d=>{const m=c(d.toLocation);if(!l.resetNextScroll){l.resetNextScroll=!0;return}typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation})||(ap({storageKey:ou,key:m,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&Zo.set(g=>(g[m]||={},g)))})}function Wv(l){if(typeof document<"u"&&document.querySelector){const s=l.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&l.state.location.hash!==""){const u=document.getElementById(l.state.location.hash);u&&u.scrollIntoView(s)}}}function Pv(l,s=String){const u=new URLSearchParams;for(const c in l){const r=l[c];r!==void 0&&u.set(c,s(r))}return u.toString()}function Gs(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function $v(l){const s=new URLSearchParams(l),u={};for(const[c,r]of s.entries()){const d=u[c];d==null?u[c]=Gs(r):Array.isArray(d)?d.push(Gs(r)):u[c]=[d,Gs(r)]}return u}const Iv=e0(JSON.parse),t0=n0(JSON.stringify,JSON.parse);function e0(l){return s=>{s[0]==="?"&&(s=s.substring(1));const u=$v(s);for(const c in u){const r=u[c];if(typeof r=="string")try{u[c]=l(r)}catch{}}return u}}function n0(l,s){const u=typeof s=="function";function c(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(u&&typeof r=="string")try{return s(r),l(r)}catch{}return r}return r=>{const d=Pv(r,c);return d?`?${d}`:""}}const Me="__root__";function a0(l){if(l.statusCode=l.statusCode||l.code||307,!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const s=new Headers(l.headers);l.href&&s.get("Location")===null&&s.set("Location",l.href);const u=new Response(null,{status:l.statusCode,headers:s});if(u.options=l,l.throw)throw u;return u}function Qe(l){return l instanceof Response&&!!l.options}const Io=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},du=(l,s)=>!!(l.preload&&!l.router.state.matches.some(u=>u.id===s)),lp=(l,s)=>{const u=l.router.routesById[s.routeId??""]??l.router.routeTree;!u.options.notFoundComponent&&l.router.options?.defaultNotFoundComponent&&(u.options.notFoundComponent=l.router.options.defaultNotFoundComponent),vn(u.options.notFoundComponent);const c=l.matches.find(r=>r.routeId===u.id);vn(c,"Could not find match for route: "+u.id),l.updateMatch(c.id,r=>({...r,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&u.parentRoute&&(s.routeId=u.parentRoute.id,lp(l,s))},Jn=(l,s,u)=>{if(!(!Qe(u)&&!Ye(u))){if(Qe(u)&&u.redirectHandled&&!u.options.reloadDocument)throw u;if(s){s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const c=Qe(u)?"redirected":"notFound";s._nonReactive.error=u,l.updateMatch(s.id,r=>({...r,status:c,isFetching:!1,error:u})),Ye(u)&&!u.routeId&&(u.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()}throw Qe(u)?(l.rendered=!0,u.options._fromLocation=l.location,u.redirectHandled=!0,u=l.router.resolveRedirect(u),u):(lp(l,u),u)}},ip=(l,s)=>{const u=l.router.getMatch(s);return!!(!l.router.isServer&&u._nonReactive.dehydrated||l.router.isServer&&u.ssr===!1)},fi=(l,s,u,c)=>{const{id:r,routeId:d}=l.matches[s],m=l.router.looseRoutesById[d];if(u instanceof Promise)throw u;u.routerCode=c,l.firstBadMatchIndex??=s,Jn(l,l.router.getMatch(r),u);try{m.options.onError?.(u)}catch(g){u=g,Jn(l,l.router.getMatch(r),u)}l.updateMatch(r,g=>(g._nonReactive.beforeLoadPromise?.resolve(),g._nonReactive.beforeLoadPromise=void 0,g._nonReactive.loadPromise?.resolve(),{...g,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},l0=(l,s,u,c)=>{const r=l.router.getMatch(s),d=l.matches[u-1]?.id,m=d?l.router.getMatch(d):void 0;if(l.router.isShell()){r.ssr=c.id===Me;return}if(m?.ssr===!1){r.ssr=!1;return}const g=E=>E===!0&&m?.ssr==="data-only"?"data-only":E,p=l.router.options.defaultSsr??!0;if(c.options.ssr===void 0){r.ssr=g(p);return}if(typeof c.options.ssr!="function"){r.ssr=g(c.options.ssr);return}const{search:h,params:S}=r,v={search:Ko(h,r.searchError),params:Ko(S,r.paramsError),location:l.location,matches:l.matches.map(E=>({index:E.index,pathname:E.pathname,fullPath:E.fullPath,staticData:E.staticData,id:E.id,routeId:E.routeId,search:Ko(E.search,E.searchError),params:Ko(E.params,E.paramsError),ssr:E.ssr}))},b=c.options.ssr(v);if(Wn(b))return b.then(E=>{r.ssr=g(E??p)});r.ssr=g(b??p)},op=(l,s,u,c)=>{if(c._nonReactive.pendingTimeout!==void 0)return;const r=u.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!l.router.isServer&&!du(l,s)&&(u.options.loader||u.options.beforeLoad||sp(u))&&typeof r=="number"&&r!==1/0&&(u.options.pendingComponent??l.router.options?.defaultPendingComponent))){const m=setTimeout(()=>{Io(l)},r);c._nonReactive.pendingTimeout=m}},i0=(l,s,u)=>{const c=l.router.getMatch(s);if(!c._nonReactive.beforeLoadPromise&&!c._nonReactive.loaderPromise)return;op(l,s,u,c);const r=()=>{const d=l.router.getMatch(s);d.preload&&(d.status==="redirected"||d.status==="notFound")&&Jn(l,d,d.error)};return c._nonReactive.beforeLoadPromise?c._nonReactive.beforeLoadPromise.then(r):r()},o0=(l,s,u,c)=>{const r=l.router.getMatch(s),d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=rl(()=>{d?.resolve()});const{paramsError:m,searchError:g}=r;m&&fi(l,u,m,"PARSE_PARAMS"),g&&fi(l,u,g,"VALIDATE_SEARCH"),op(l,s,c,r);const p=new AbortController,h=l.matches[u-1]?.id,b={...(h?l.router.getMatch(h):void 0)?.context??l.router.options.context??void 0,...r.__routeContext};let E=!1;const w=()=>{E||(E=!0,l.updateMatch(s,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:p,context:b})))},U=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(s,G=>({...G,isFetching:!1}))};if(!c.options.beforeLoad){gi(()=>{w(),U()});return}r._nonReactive.beforeLoadPromise=rl();const{search:B,params:q,cause:J}=r,k=du(l,s),W={search:B,abortController:p,params:q,preload:k,context:b,location:l.location,navigate:G=>l.router.navigate({...G,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:k?"preload":J,matches:l.matches,...l.router.options.additionalContext},at=G=>{if(G===void 0){gi(()=>{w(),U()});return}(Qe(G)||Ye(G))&&(w(),fi(l,u,G,"BEFORE_LOAD")),gi(()=>{w(),l.updateMatch(s,L=>({...L,__beforeLoadContext:G,context:{...L.context,...G}})),U()})};let X;try{if(X=c.options.beforeLoad(W),Wn(X))return w(),X.catch(G=>{fi(l,u,G,"BEFORE_LOAD")}).then(at)}catch(G){w(),fi(l,u,G,"BEFORE_LOAD")}at(X)},u0=(l,s)=>{const{id:u,routeId:c}=l.matches[s],r=l.router.looseRoutesById[c],d=()=>{if(l.router.isServer){const p=l0(l,u,s,r);if(Wn(p))return p.then(g)}return g()},m=()=>o0(l,u,s,r),g=()=>{if(ip(l,u))return;const p=i0(l,u,r);return Wn(p)?p.then(m):m()};return d()},vi=(l,s,u)=>{const c=l.router.getMatch(s);if(!c||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const r={matches:l.matches,match:c,params:c.params,loaderData:c.loaderData};return Promise.all([u.options.head?.(r),u.options.scripts?.(r),u.options.headers?.(r)]).then(([d,m,g])=>{const p=d?.meta,h=d?.links,S=d?.scripts,v=d?.styles;return{meta:p,links:h,headScripts:S,headers:g,scripts:m,styles:v}})},up=(l,s,u,c)=>{const r=l.matchPromises[u-1],{params:d,loaderDeps:m,abortController:g,cause:p}=l.router.getMatch(s);let h=l.router.options.context??{};for(let v=0;v<=u;v++){const b=l.matches[v];if(!b)continue;const E=l.router.getMatch(b.id);E&&(h={...h,...E.__routeContext??{},...E.__beforeLoadContext??{}})}const S=du(l,s);return{params:d,deps:m,preload:!!S,parentMatchPromise:r,abortController:g,context:h,location:l.location,navigate:v=>l.router.navigate({...v,_fromLocation:l.location}),cause:S?"preload":p,route:c,...l.router.options.additionalContext}},Lm=async(l,s,u,c)=>{try{const r=l.router.getMatch(s);try{(!l.router.isServer||r.ssr===!0)&&cp(c);const d=c.options.loader?.(up(l,s,u,c)),m=c.options.loader&&Wn(d);if(!!(m||c._lazyPromise||c._componentsPromise||c.options.head||c.options.scripts||c.options.headers||r._nonReactive.minPendingPromise)&&l.updateMatch(s,v=>({...v,isFetching:"loader"})),c.options.loader){const v=m?await d:d;Jn(l,l.router.getMatch(s),v),v!==void 0&&l.updateMatch(s,b=>({...b,loaderData:v}))}c._lazyPromise&&await c._lazyPromise;const p=vi(l,s,c),h=p?await p:void 0,S=r._nonReactive.minPendingPromise;S&&await S,c._componentsPromise&&await c._componentsPromise,l.updateMatch(s,v=>({...v,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...h}))}catch(d){let m=d;const g=r._nonReactive.minPendingPromise;g&&await g,Ye(d)&&await c.options.notFoundComponent?.preload?.(),Jn(l,l.router.getMatch(s),d);try{c.options.onError?.(d)}catch(S){m=S,Jn(l,l.router.getMatch(s),S)}const p=vi(l,s,c),h=p?await p:void 0;l.updateMatch(s,S=>({...S,error:m,status:"error",isFetching:!1,...h}))}}catch(r){const d=l.router.getMatch(s);if(d){const m=vi(l,s,c);if(m){const g=await m;l.updateMatch(s,p=>({...p,...g}))}d._nonReactive.loaderPromise=void 0}Jn(l,d,r)}},c0=async(l,s)=>{const{id:u,routeId:c}=l.matches[s];let r=!1,d=!1;const m=l.router.looseRoutesById[c];if(ip(l,u)){if(l.router.isServer){const h=vi(l,u,m);if(h){const S=await h;l.updateMatch(u,v=>({...v,...S}))}return l.router.getMatch(u)}}else{const h=l.router.getMatch(u);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!l.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const S=l.router.getMatch(u),v=S._nonReactive.error||S.error;v&&Jn(l,S,v)}else{const S=Date.now()-h.updatedAt,v=du(l,u),b=v?m.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:m.options.staleTime??l.router.options.defaultStaleTime??0,E=m.options.shouldReload,w=typeof E=="function"?E(up(l,u,s,m)):E,U=!!v&&!l.router.state.matches.some(k=>k.id===u),B=l.router.getMatch(u);B._nonReactive.loaderPromise=rl(),U!==B.preload&&l.updateMatch(u,k=>({...k,preload:U}));const{status:q,invalid:J}=B;if(r=q==="success"&&(J||(w??S>b)),!(v&&m.options.preload===!1))if(r&&!l.sync)d=!0,(async()=>{try{await Lm(l,u,s,m);const k=l.router.getMatch(u);k._nonReactive.loaderPromise?.resolve(),k._nonReactive.loadPromise?.resolve(),k._nonReactive.loaderPromise=void 0}catch(k){Qe(k)&&await l.router.navigate(k.options)}})();else if(q!=="success"||r&&l.sync)await Lm(l,u,s,m);else{const k=vi(l,u,m);if(k){const W=await k;l.updateMatch(u,at=>({...at,...W}))}}}}const g=l.router.getMatch(u);d||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve()),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,d||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const p=d?g.isFetching:!1;return p!==g.isFetching||g.invalid!==!1?(l.updateMatch(u,h=>({...h,isFetching:p,invalid:!1})),l.router.getMatch(u)):g};async function Nm(l){const s=Object.assign(l,{matchPromises:[]});!s.router.isServer&&s.router.state.matches.some(u=>u._forcePending)&&Io(s);try{for(let r=0;r<s.matches.length;r++){const d=u0(s,r);Wn(d)&&await d}const u=s.firstBadMatchIndex??s.matches.length;for(let r=0;r<u;r++)s.matchPromises.push(c0(s,r));await Promise.all(s.matchPromises);const c=Io(s);Wn(c)&&await c}catch(u){if(Ye(u)&&!s.preload){const c=Io(s);throw Wn(c)&&await c,u}if(Qe(u))throw u}return s.matches}async function cp(l){if(!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(s=>{const{id:u,...c}=s.options;Object.assign(l.options,c),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0),!l._componentsLoaded&&l._componentsPromise===void 0){const s=()=>{const u=[];for(const c of rp){const r=l.options[c]?.preload;r&&u.push(r())}if(u.length)return Promise.all(u).then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0});l._componentsLoaded=!0,l._componentsPromise=void 0};l._componentsPromise=l._lazyPromise?l._lazyPromise.then(s):s()}return l._componentsPromise}function Ko(l,s){return s?{status:"error",error:s}:{status:"success",value:l}}function sp(l){for(const s of rp)if(l.options[s]?.preload)return!0;return!1}const rp=["component","errorComponent","pendingComponent","notFoundComponent"];function s0(l){return{input:({url:s})=>{for(const u of l)s=fp(u,s);return s},output:({url:s})=>{for(let u=l.length-1;u>=0;u--)s=dp(l[u],s);return s}}}function r0(l){const s=$o(l.basepath),u=`/${s}`,c=`${u}/`,r=l.caseSensitive?u:u.toLowerCase(),d=l.caseSensitive?c:c.toLowerCase();return{input:({url:m})=>{const g=l.caseSensitive?m.pathname:m.pathname.toLowerCase();return g===r?m.pathname="/":g.startsWith(d)&&(m.pathname=m.pathname.slice(u.length)),m},output:({url:m})=>(m.pathname=Po(["/",s,m.pathname]),m)}}function fp(l,s){const u=l?.input?.({url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function dp(l,s){const u=l?.output?.({url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function Sa(l){const s=l.resolvedLocation,u=l.location,c=s?.pathname!==u.pathname,r=s?.href!==u.href,d=s?.hash!==u.hash;return{fromLocation:s,toLocation:u,pathChanged:c,hrefChanged:r,hashChanged:d}}class f0{constructor(s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=u=>u(),this.update=u=>{u.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const c=this.options,r=this.basepath??c?.basepath??"/",d=this.basepath===void 0,m=c?.rewrite;this.options={...c,...u},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(b=>[encodeURIComponent(b),b])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Ev())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Rv(h0(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),Fv(this));let g=!1;const p=this.options.basepath??"/",h=this.options.rewrite;if(d||r!==p||m!==h){this.basepath=p;const b=[];$o(p)!==""&&b.push(r0({basepath:p})),h&&b.push(h),this.rewrite=b.length===0?void 0:b.length===1?b[0]:s0(b),this.history&&this.updateLatestLocation(),g=!0}g&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:u,routesByPath:c,processedTree:r}=Hv(this.routeTree,this.options.caseSensitive,(m,g)=>{m.init({originalIndex:g})});this.options.routeMasks&&Dv(this.options.routeMasks,r),this.routesById=u,this.routesByPath=c,this.processedTree=r;const d=this.options.notFoundRoute;d&&(d.init({originalIndex:99999999999}),this.routesById[d.id]=d)},this.subscribe=(u,c)=>{const r={eventType:u,fn:c};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=u=>{this.subscribers.forEach(c=>{c.eventType===u.type&&c.fn(u)})},this.parseLocation=(u,c)=>{const r=({href:p,state:h})=>{const S=new URL(p,this.origin),v=fp(this.rewrite,S),b=this.options.parseSearch(v.search),E=this.options.stringifySearch(b);v.search=E;const w=v.href.replace(v.origin,""),{pathname:U,hash:B}=v;return{href:w,publicHref:p,url:v.href,pathname:Dm(U),searchStr:E,search:Ge(c?.search,b),hash:B.split("#").reverse()[0]??"",state:Ge(c?.state,h)}},d=r(u),{__tempLocation:m,__tempKey:g}=d.state;if(m&&(!g||g===this.tempLocationKey)){const p=r(m);return p.state.key=d.state.key,p.state.__TSR_key=d.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:d}}return d},this.resolvePathCache=lu(1e3),this.resolvePathWithBase=(u,c)=>Xv({base:u,to:or(c),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,c,r)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:c},r):this.matchRoutesInternal(u,c),this.getMatchedRoutes=u=>m0({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const c=this.getMatch(u);c&&(c.abortController.abort(),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const u=this.state.matches.filter(d=>d.status==="pending"),c=this.state.matches.filter(d=>d.isFetching==="loader");new Set([...this.state.pendingMatches??[],...u,...c]).forEach(d=>{this.cancelMatch(d.id)})},this.buildLocation=u=>{const c=(d={})=>{const m=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutes(m,{_buildLocation:!0}),p=nu(g);d.from;const h=d.unsafeRelative==="path"?m.pathname:d.from??p.fullPath,S=this.resolvePathWithBase(h,"."),v=p.search,b={...p.params},E=d.to?this.resolvePathWithBase(S,`${d.to}`):this.resolvePathWithBase(S,"."),w=d.params===!1||d.params===null?{}:(d.params??!0)===!0?b:Object.assign(b,Kn(d.params,b)),U=qs({path:E,params:w}).interpolatedPath,B=this.matchRoutes(U,void 0,{_buildLocation:!0}).map(ft=>this.looseRoutesById[ft.routeId]);if(Object.keys(w).length>0)for(const ft of B){const ct=ft.options.params?.stringify??ft.options.stringifyParams;ct&&Object.assign(w,ct(w))}const q=u.leaveParams?E:Dm(qs({path:E,params:w,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let J=v;if(u._includeValidateSearch&&this.options.search?.strict){const ft={};B.forEach(ct=>{if(ct.options.validateSearch)try{Object.assign(ft,Is(ct.options.validateSearch,{...ft,...J}))}catch{}}),J=ft}J=p0({search:J,dest:d,destRoutes:B,_includeValidateSearch:u._includeValidateSearch}),J=Ge(v,J);const k=this.options.stringifySearch(J),W=d.hash===!0?m.hash:d.hash?Kn(d.hash,m.hash):void 0,at=W?`#${W}`:"";let X=d.state===!0?m.state:d.state?Kn(d.state,m.state):{};X=Ge(m.state,X);const G=`${q}${k}${at}`,L=new URL(G,this.origin),P=dp(this.rewrite,L);return{publicHref:P.pathname+P.search+P.hash,href:G,url:P.href,pathname:q,search:J,searchStr:k,state:X,hash:W??"",unmaskOnReload:d.unmaskOnReload}},r=(d={},m)=>{const g=c(d);let p=m?c(m):void 0;if(!p){const h={};if(this.options.routeMasks){const S=Lv(g.pathname,this.processedTree);if(S){Object.assign(h,S.params);const{from:v,params:b,...E}=S.route,w=b===!1||b===null?{}:(b??!0)===!0?h:Object.assign(h,Kn(b,h));m={from:u.from,...E,params:w},p=c(m)}}}return p&&(g.maskedLocation=p),g};return u.mask?r(u,{from:u.from,...u.mask}):r(u)},this.commitLocation=({viewTransition:u,ignoreBlocker:c,...r})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(S=>{r.state[S]=this.latestLocation.state[S]});const h=ga(r.state,this.latestLocation.state);return p.forEach(S=>{delete r.state[S]}),h},m=va(this.latestLocation.href)===va(r.href),g=this.commitLocationPromise;if(this.commitLocationPromise=rl(()=>{g?.resolve()}),m&&d())this.load();else{let{maskedLocation:p,hashScrollIntoView:h,...S}=r;p&&(S={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[r.replace?"replace":"push"](S.publicHref,S.state,{ignoreBlocker:c})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:c,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:m,href:g,...p}={})=>{if(g){const v=this.history.location.state.__TSR_index,b=eu(g,{__TSR_index:u?v:v+1});p.to=b.pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const h=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const S=this.commitLocation({...h,viewTransition:d,replace:u,resetScroll:c,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:u,reloadDocument:c,href:r,...d})=>{if(!c&&r)try{new URL(`${r}`),c=!0}catch{}if(c){if(r||(r=this.buildLocation({to:u,...d}).url),!d.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const p of g)if(p?.blockerFn&&await p.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:u,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const c=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=d=>{try{return encodeURI(decodeURI(d))}catch{return d}};if($o(r(this.latestLocation.href))!==$o(r(c.href))){let d=c.url;throw this.origin&&d.startsWith(this.origin)&&(d=d.replace(this.origin,"")||"/"),a0({href:d})}}const u=this.matchRoutes(this.latestLocation);this.__store.setState(c=>({...c,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:u,cachedMatches:c.cachedMatches.filter(r=>!u.some(d=>d.id===r.id))}))},this.load=async u=>{let c,r,d;for(d=new Promise(g=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Sa({resolvedLocation:h,location:p})}),this.emit({type:"onBeforeLoad",...Sa({resolvedLocation:h,location:p})}),await Nm({router:this,sync:u?.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=[],v=[],b=[];gi(()=>{this.__store.setState(E=>{const w=E.matches,U=E.pendingMatches||E.matches;return S=w.filter(B=>!U.some(q=>q.id===B.id)),v=U.filter(B=>!w.some(q=>q.id===B.id)),b=U.filter(B=>w.some(q=>q.id===B.id)),{...E,isLoading:!1,loadedAt:Date.now(),matches:U,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...S.filter(B=>B.status!=="error"&&B.status!=="notFound")]}}),this.clearExpiredCache()}),[[S,"onLeave"],[v,"onEnter"],[b,"onStay"]].forEach(([E,w])=>{E.forEach(U=>{this.looseRoutesById[U.routeId].options[w]?.(U)})})})})}})}catch(p){Qe(p)?(c=p,this.isServer||this.navigate({...c.options,replace:!0,ignoreBlocker:!0})):Ye(p)&&(r=p),this.__store.setState(h=>({...h,statusCode:c?c.status:r?404:h.matches.some(S=>S.status==="error")?500:200,redirect:c}))}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),g()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(g=>g.status==="error")&&(m=500),m!==void 0&&this.__store.setState(g=>({...g,statusCode:m}))},this.startViewTransition=u=>{const c=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,c&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof c=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,m=this.state.resolvedLocation,g=typeof c.types=="function"?c.types(Sa({resolvedLocation:m,location:d})):c.types;if(g===!1){u();return}r={update:u,types:g}}else r=u;document.startViewTransition(r)}else u()},this.updateMatch=(u,c)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(d=>d.id===u)?"pendingMatches":this.state.matches.some(d=>d.id===u)?"matches":this.state.cachedMatches.some(d=>d.id===u)?"cachedMatches":"";r&&this.__store.setState(d=>({...d,[r]:d[r]?.map(m=>m.id===u?c(m):m)}))})},this.getMatch=u=>{const c=r=>r.id===u;return this.state.cachedMatches.find(c)??this.state.pendingMatches?.find(c)??this.state.matches.find(c)},this.invalidate=u=>{const c=r=>u?.filter?.(r)??!0?{...r,invalid:!0,...u?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(c),cachedMatches:r.cachedMatches.map(c),pendingMatches:r.pendingMatches?.map(c)})),this.shouldViewTransition=!1,this.load({sync:u?.sync})},this.resolveRedirect=u=>{if(!u.options.href){const c=this.buildLocation(u.options);let r=c.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),u.options.href=c.href,u.headers.set("Location",r)}return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const c=u?.filter;c!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(d=>!c(d))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const u=c=>{const r=this.looseRoutesById[c.routeId];if(!r.options.loader)return!0;const d=(c.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return c.status==="error"?!0:Date.now()-c.updatedAt>=d};this.clearCache({filter:u})},this.loadRouteChunk=cp,this.preloadRoute=async u=>{const c=this.buildLocation(u);let r=this.matchRoutes(c,{throwOnError:!0,preload:!0,dest:u});const d=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(g=>g.id)),m=new Set([...d,...this.state.cachedMatches.map(g=>g.id)]);gi(()=>{r.forEach(g=>{m.has(g.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,g]}))})});try{return r=await Nm({router:this,matches:r,location:c,preload:!0,updateMatch:(g,p)=>{d.has(g)?r=r.map(h=>h.id===g?p(h):h):this.updateMatch(g,p)}}),r}catch(g){if(Qe(g))return g.options.reloadDocument?void 0:await this.preloadRoute({...g.options,_fromLocation:c});Ye(g)||console.error(g);return}},this.matchRoute=(u,c)=>{const r={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},d=this.buildLocation(r);if(c?.pending&&this.state.status!=="pending")return!1;const g=(c?.pending===void 0?!this.state.isLoading:c.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=Nv(d.pathname,c?.caseSensitive??!1,c?.fuzzy??!1,g.pathname,this.processedTree);return!p||u.params&&!ga(p.params,u.params,{partial:!0})?!1:c?.includeSearch??!0?ga(g.search,d.search,{partial:!0})?p.params:!1:p.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(u=>u.status==="notFound"||u.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??t0,parseSearch:s.parseSearch??Iv}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(s,u){const c=this.getMatchedRoutes(s.pathname),{foundRoute:r,routeParams:d}=c;let{matchedRoutes:m}=c,g=!1;(r?r.path!=="/"&&d["**"]:va(s.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:g=!0);const p=(()=>{if(g){if(this.options.notFoundMode!=="root")for(let v=m.length-1;v>=0;v--){const b=m[v];if(b.children)return b.id}return Me}})(),h=[],S=v=>v?.id?v.context??this.options.context??void 0:this.options.context??void 0;return m.forEach((v,b)=>{const E=h[b-1],[w,U,B]=(()=>{const jt=E?.search??s.search,Ut=E?._strictSearch??void 0;try{const At=Is(v.options.validateSearch,{...jt})??void 0;return[{...jt,...At},{...Ut,...At},void 0]}catch(At){let O=At;if(At instanceof cu||(O=new cu(At.message,{cause:At})),u?.throwOnError)throw O;return[jt,{},O]}})(),q=v.options.loaderDeps?.({search:w})??"",J=q?JSON.stringify(q):"",{interpolatedPath:k,usedParams:W}=qs({path:v.fullPath,params:d,decodeCharMap:this.pathParamsDecodeCharMap}),at=v.id+k+J,X=this.getMatch(at),G=this.state.matches.find(jt=>jt.routeId===v.id),L=X?._strictParams??W;let P;if(!X){const jt=v.options.params?.parse??v.options.parseParams;if(jt)try{Object.assign(L,jt(L))}catch(Ut){if(Ye(Ut)||Qe(Ut)?P=Ut:P=new d0(Ut.message,{cause:Ut}),u?.throwOnError)throw P}}Object.assign(d,L);const ft=G?"stay":"enter";let ct;if(X)ct={...X,cause:ft,params:G?Ge(G.params,d):d,_strictParams:L,search:Ge(G?G.search:X.search,w),_strictSearch:U};else{const jt=v.options.loader||v.options.beforeLoad||v.lazyFn||sp(v)?"pending":"success";ct={id:at,ssr:this.isServer?void 0:v.options.ssr,index:b,routeId:v.id,params:G?Ge(G.params,d):d,_strictParams:L,pathname:k,updatedAt:Date.now(),search:G?Ge(G.search,w):w,_strictSearch:U,searchError:void 0,status:jt,isFetching:!1,error:void 0,paramsError:P,__routeContext:void 0,_nonReactive:{loadPromise:rl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ft,loaderDeps:G?Ge(G.loaderDeps,q):q,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}u?.preload||(ct.globalNotFound=p===v.id),ct.searchError=B;const St=S(E);ct.context={...St,...ct.__routeContext,...ct.__beforeLoadContext},h.push(ct)}),h.forEach((v,b)=>{const E=this.looseRoutesById[v.routeId];if(!this.getMatch(v.id)&&u?._buildLocation!==!0){const U=h[b-1],B=S(U);if(E.options.context){const q={deps:v.loaderDeps,params:v.params,context:B??{},location:s,navigate:J=>this.navigate({...J,_fromLocation:s}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:h};v.__routeContext=E.options.context(q)??void 0}v.context={...B,...v.__routeContext,...v.__beforeLoadContext}}}),h}}class cu extends Error{}class d0 extends Error{}function h0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Is(l,s){if(l==null)return{};if("~standard"in l){const u=l["~standard"].validate(s);if(u instanceof Promise)throw new cu("Async validation not supported");if(u.issues)throw new cu(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in l?l.parse(s):typeof l=="function"?l(s):{}}function m0({pathname:l,routesById:s,processedTree:u}){const c={},r=va(l);let d;const m=Uv(r,u,!0);return m&&(d=m.route,Object.assign(c,m.params)),{matchedRoutes:m?.branch||[s[Me]],routeParams:c,foundRoute:d}}function p0({search:l,dest:s,destRoutes:u,_includeValidateSearch:c}){const r=u.reduce((g,p)=>{const h=[];if("search"in p.options)p.options.search?.middlewares&&h.push(...p.options.search.middlewares);else if(p.options.preSearchFilters||p.options.postSearchFilters){const S=({search:v,next:b})=>{let E=v;"preSearchFilters"in p.options&&p.options.preSearchFilters&&(E=p.options.preSearchFilters.reduce((U,B)=>B(U),v));const w=b(E);return"postSearchFilters"in p.options&&p.options.postSearchFilters?p.options.postSearchFilters.reduce((U,B)=>B(U),w):w};h.push(S)}if(c&&p.options.validateSearch){const S=({search:v,next:b})=>{const E=b(v);try{return{...E,...Is(p.options.validateSearch,E)??void 0}}catch{return E}};h.push(S)}return g.concat(h)},[])??[],d=({search:g})=>s.search?s.search===!0?g:Kn(s.search,g):{};r.push(d);const m=(g,p)=>{if(g>=r.length)return p;const h=r[g];return h({search:p,next:v=>m(g+1,v)})};return m(0,l)}const y0="Error preloading route! ☝️";class hp{constructor(s){if(this.init=u=>{this.originalIndex=u.originalIndex;const c=this.options,r=!c?.path&&!c?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Me:this.parentRoute||vn(!1);let d=r?Me:c?.path;d&&d!=="/"&&(d=np(d));const m=c?.id||d;let g=r?Me:Po([this.parentRoute.id===Me?"":this.parentRoute.id,m]);d===Me&&(d="/"),g!==Me&&(g=Po(["/",g]));const p=g===Me?"/":Po([this.parentRoute.fullPath,d]);this._path=d,this._id=g,this._fullPath=p,this._to=p},this.addChildren=u=>this._addFileChildren(u),this._addFileChildren=u=>(Array.isArray(u)&&(this.children=u),typeof u=="object"&&u!==null&&(this.children=Object.values(u)),this),this._addFileTypes=()=>this,this.updateLoader=u=>(Object.assign(this.options,u),this),this.update=u=>(Object.assign(this.options,u),this),this.lazy=u=>(this.lazyFn=u,this),this.options=s||{},this.isRoot=!s?.getParentRoute,s?.id&&s?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class g0 extends hp{constructor(s){super(s)}}var F=Ri();const dl=nr(F),v0=uv({__proto__:null,default:dl},[F]);function ur(l){const s=l.errorComponent??hu;return Z.jsx(S0,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:u,reset:c})=>u?F.createElement(s,{error:u,reset:c}):l.children})}class S0 extends F.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,u){u.error&&u.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,u){this.props.onCatch&&this.props.onCatch(s,u)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function hu({error:l}){const[s,u]=F.useState(!1);return Z.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[Z.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[Z.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),Z.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(c=>!c),children:s?"Hide Error":"Show Error"})]}),Z.jsx("div",{style:{height:".25rem"}}),s?Z.jsx("div",{children:Z.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?Z.jsx("code",{children:l.message}):null})}):null]})}function b0({children:l,fallback:s=null}){return _0()?Z.jsx(dl.Fragment,{children:l}):Z.jsx(dl.Fragment,{children:s})}function _0(){return dl.useSyncExternalStore(R0,()=>!0,()=>!1)}function R0(){return()=>{}}var Ys={exports:{}},Vs={},Xs={exports:{}},ks={};var Um;function T0(){if(Um)return ks;Um=1;var l=Ri();function s(v,b){return v===b&&(v!==0||1/v===1/b)||v!==v&&b!==b}var u=typeof Object.is=="function"?Object.is:s,c=l.useState,r=l.useEffect,d=l.useLayoutEffect,m=l.useDebugValue;function g(v,b){var E=b(),w=c({inst:{value:E,getSnapshot:b}}),U=w[0].inst,B=w[1];return d(function(){U.value=E,U.getSnapshot=b,p(U)&&B({inst:U})},[v,E,b]),r(function(){return p(U)&&B({inst:U}),v(function(){p(U)&&B({inst:U})})},[v]),m(E),E}function p(v){var b=v.getSnapshot;v=v.value;try{var E=b();return!u(v,E)}catch{return!0}}function h(v,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:g;return ks.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,ks}var Bm;function E0(){return Bm||(Bm=1,Xs.exports=T0()),Xs.exports}var Hm;function x0(){if(Hm)return Vs;Hm=1;var l=Ri(),s=E0();function u(h,S){return h===S&&(h!==0||1/h===1/S)||h!==h&&S!==S}var c=typeof Object.is=="function"?Object.is:u,r=s.useSyncExternalStore,d=l.useRef,m=l.useEffect,g=l.useMemo,p=l.useDebugValue;return Vs.useSyncExternalStoreWithSelector=function(h,S,v,b,E){var w=d(null);if(w.current===null){var U={hasValue:!1,value:null};w.current=U}else U=w.current;w=g(function(){function q(X){if(!J){if(J=!0,k=X,X=b(X),E!==void 0&&U.hasValue){var G=U.value;if(E(G,X))return W=G}return W=X}if(G=W,c(k,X))return G;var L=b(X);return E!==void 0&&E(G,L)?(k=X,G):(k=X,W=L)}var J=!1,k,W,at=v===void 0?null:v;return[function(){return q(S())},at===null?void 0:function(){return q(at())}]},[S,v,b,E]);var B=r(h,w[0],w[1]);return m(function(){U.hasValue=!0,U.value=B},[B]),p(B),B},Vs}var jm;function M0(){return jm||(jm=1,Ys.exports=x0()),Ys.exports}var A0=M0();function C0(l,s=c=>c,u={}){const c=u.equal??z0;return A0.useSyncExternalStoreWithSelector(l.subscribe,()=>l.state,()=>l.state,s,c)}function z0(l,s){if(Object.is(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;if(l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(const[c,r]of l)if(!s.has(c)||!Object.is(r,s.get(c)))return!1;return!0}if(l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(const c of l)if(!s.has(c))return!1;return!0}if(l instanceof Date&&s instanceof Date)return l.getTime()===s.getTime();const u=qm(l);if(u.length!==qm(s).length)return!1;for(let c=0;c<u.length;c++)if(!Object.prototype.hasOwnProperty.call(s,u[c])||!Object.is(l[u[c]],s[u[c]]))return!1;return!0}function qm(l){return Object.keys(l).concat(Object.getOwnPropertySymbols(l))}const Qs=F.createContext(null);function mp(){return typeof document>"u"?Qs:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Qs,Qs)}function Ae(l){const s=F.useContext(mp());return l?.warn,s}function pe(l){const s=Ae({warn:l?.router===void 0}),u=l?.router||s,c=F.useRef(void 0);return C0(u.__store,r=>{if(l?.select){if(l.structuralSharing??u.options.defaultStructuralSharing){const d=Ge(c.current,l.select(r));return c.current=d,d}return l.select(r)}return r})}const mu=F.createContext(void 0),O0=F.createContext(void 0);function We(l){const s=F.useContext(l.from?O0:mu);return pe({select:c=>{const r=c.matches.find(d=>l.from?l.from===d.routeId:d.id===s);if(vn(!((l.shouldThrow??!0)&&!r),`Could not find ${l.from?`an active match from "${l.from}"`:"a nearest match!"}`),r!==void 0)return l.select?l.select(r):r},structuralSharing:l.structuralSharing})}function cr(l){return We({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:s=>l.select?l.select(s.loaderData):s.loaderData})}function sr(l){const{select:s,...u}=l;return We({...u,select:c=>s?s(c.loaderDeps):c.loaderDeps})}function rr(l){return We({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:s=>{const u=l.strict===!1?s.params:s._strictParams;return l.select?l.select(u):u}})}function fr(l){return We({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:s=>l.select?l.select(s.search):s.search})}const Jo=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Zs(l){const s=F.useRef({value:l,prev:null}),u=s.current.value;return l!==u&&(s.current={value:l,prev:u}),s.current.prev}function w0(l,s,u={},c={}){F.useEffect(()=>{if(!l.current||c.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{s(d)},u);return r.observe(l.current),()=>{r.disconnect()}},[s,u,c.disabled,l])}function D0(l){const s=F.useRef(null);return F.useImperativeHandle(l,()=>s.current,[]),s}function dr(l){const s=Ae();return F.useCallback(u=>s.navigate({...u,from:u.from??l?.from}),[l?.from,s])}var pp=Im();const Hb=nr(pp);function L0(l,s){const u=Ae(),[c,r]=F.useState(!1),d=F.useRef(!1),m=D0(s),{activeProps:g,inactiveProps:p,activeOptions:h,to:S,preload:v,preloadDelay:b,hashScrollIntoView:E,replace:w,startTransition:U,resetScroll:B,viewTransition:q,children:J,target:k,disabled:W,style:at,className:X,onClick:G,onFocus:L,onMouseEnter:P,onMouseLeave:ft,onTouchStart:ct,ignoreBlocker:St,params:jt,search:Ut,hash:At,state:O,mask:Q,reloadDocument:Y,unsafeRelative:_t,from:Et,_fromLocation:T,...H}=l,V=pe({select:Ot=>Ot.location.search,structuralSharing:!0}),K=l.from,it=F.useMemo(()=>({...l,from:K}),[u,V,K,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),ut=F.useMemo(()=>u.buildLocation({...it}),[u,it]),lt=F.useMemo(()=>{if(W)return;let Ot=ut.maskedLocation?ut.maskedLocation.url:ut.url,xt=!1;return u.origin&&(Ot.startsWith(u.origin)?Ot=u.history.createHref(Ot.replace(u.origin,""))||"/":xt=!0),{href:Ot,external:xt}},[W,ut.maskedLocation,ut.url,u.origin,u.history]),Gt=F.useMemo(()=>{if(lt?.external)return lt.href;try{return new URL(S),S}catch{}},[S,lt]),bt=l.reloadDocument||Gt?!1:v??u.options.defaultPreload,ue=b??u.options.defaultPreloadDelay??0,ze=pe({select:Ot=>{if(Gt)return!1;if(h?.exact){if(!Vv(Ot.location.pathname,ut.pathname,u.basepath))return!1}else{const xt=iu(Ot.location.pathname,u.basepath),ye=iu(ut.pathname,u.basepath);if(!(xt.startsWith(ye)&&(xt.length===ye.length||xt[ye.length]==="/")))return!1}return(h?.includeSearch??!0)&&!ga(Ot.location.search,ut.search,{partial:!h?.exact,ignoreUndefined:!h?.explicitUndefined})?!1:h?.includeHash?Ot.location.hash===ut.hash:!0}}),le=F.useCallback(()=>{u.preloadRoute({...it}).catch(Ot=>{console.warn(Ot),console.warn(y0)})},[u,it]),Ti=F.useCallback(Ot=>{Ot?.isIntersecting&&le()},[le]);w0(m,Ti,j0,{disabled:!!W||bt!=="viewport"}),F.useEffect(()=>{d.current||!W&&bt==="render"&&(le(),d.current=!0)},[W,le,bt]);const Pe=Ot=>{const xt=Ot.currentTarget.getAttribute("target"),ye=k!==void 0?k:xt;if(!W&&!q0(Ot)&&!Ot.defaultPrevented&&(!ye||ye==="_self")&&Ot.button===0){Ot.preventDefault(),pp.flushSync(()=>{r(!0)});const yl=u.subscribe("onResolved",()=>{yl(),r(!1)});u.navigate({...it,replace:w,resetScroll:B,hashScrollIntoView:E,startTransition:U,viewTransition:q,ignoreBlocker:St})}};if(Gt)return{...H,ref:m,href:Gt,...J&&{children:J},...k&&{target:k},...W&&{disabled:W},...at&&{style:at},...X&&{className:X},...G&&{onClick:G},...L&&{onFocus:L},...P&&{onMouseEnter:P},...ft&&{onMouseLeave:ft},...ct&&{onTouchStart:ct}};const Ra=Ot=>{W||bt&&le()},pl=Ra,yu=Ot=>{if(!(W||!bt))if(!ue)le();else{const xt=Ot.target;if(di.has(xt))return;const ye=setTimeout(()=>{di.delete(xt),le()},ue);di.set(xt,ye)}},Ei=Ot=>{if(W||!bt||!ue)return;const xt=Ot.target,ye=di.get(xt);ye&&(clearTimeout(ye),di.delete(xt))},Sn=ze?Kn(g,{})??N0:Ks,bn=ze?Ks:Kn(p,{})??Ks,Ta=[X,Sn.className,bn.className].filter(Boolean).join(" "),xi=(at||Sn.style||bn.style)&&{...at,...Sn.style,...bn.style};return{...H,...Sn,...bn,href:lt?.href,ref:m,onClick:hi([G,Pe]),onFocus:hi([L,Ra]),onMouseEnter:hi([P,yu]),onMouseLeave:hi([ft,Ei]),onTouchStart:hi([ct,pl]),disabled:!!W,target:k,...xi&&{style:xi},...Ta&&{className:Ta},...W&&U0,...ze&&B0,...c&&H0}}const Ks={},N0={className:"active"},U0={role:"link","aria-disabled":!0},B0={"data-status":"active","aria-current":"page"},H0={"data-transitioning":"transitioning"},di=new WeakMap,j0={rootMargin:"100px"},hi=l=>s=>{for(const u of l)if(u){if(s.defaultPrevented)return;u(s)}},yp=F.forwardRef((l,s)=>{const{_asChild:u,...c}=l,{type:r,ref:d,...m}=L0(c,s),g=typeof c.children=="function"?c.children({isActive:m["data-status"]==="active"}):c.children;return u===void 0&&delete m.disabled,F.createElement(u||"a",{...m,ref:d},g)});function q0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}let G0=class extends hp{constructor(s){super(s),this.useMatch=u=>We({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>We({...u,from:this.id,select:c=>u?.select?u.select(c.context):c.context}),this.useSearch=u=>fr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>rr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>sr({...u,from:this.id}),this.useLoaderData=u=>cr({...u,from:this.id}),this.useNavigate=()=>dr({from:this.fullPath}),this.Link=dl.forwardRef((u,c)=>Z.jsx(yp,{ref:c,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}};function Y0(l){return new G0(l)}class V0 extends g0{constructor(s){super(s),this.useMatch=u=>We({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>We({...u,from:this.id,select:c=>u?.select?u.select(c.context):c.context}),this.useSearch=u=>fr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>rr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>sr({...u,from:this.id}),this.useLoaderData=u=>cr({...u,from:this.id}),this.useNavigate=()=>dr({from:this.fullPath}),this.Link=dl.forwardRef((u,c)=>Z.jsx(yp,{ref:c,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function X0(l){return new V0(l)}function _i(l){return typeof l=="object"?new Gm(l,{silent:!0}).createRoute(l):new Gm(l,{silent:!0}).createRoute}class Gm{constructor(s,u){this.path=s,this.createRoute=c=>{this.silent;const r=Y0(c);return r.isRoot=!1,r},this.silent=u?.silent}}class Ym{constructor(s){this.useMatch=u=>We({select:u?.select,from:this.options.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>We({from:this.options.id,select:c=>u?.select?u.select(c.context):c.context}),this.useSearch=u=>fr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useParams=u=>rr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useLoaderDeps=u=>sr({...u,from:this.options.id}),this.useLoaderData=u=>cr({...u,from:this.options.id}),this.useNavigate=()=>{const u=Ae();return dr({from:u.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function Vm(l){return typeof l=="object"?new Ym(l):s=>new Ym({id:l,...s})}function hr(l,s){let u,c,r,d;const m=()=>(u||(u=l().then(p=>{u=void 0,c=p[s]}).catch(p=>{if(r=p,Av(r)&&r instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const h=`tanstack_router_reload:${r.message}`;sessionStorage.getItem(h)||(sessionStorage.setItem(h,"1"),d=!0)}})),u),g=function(h){if(d)throw window.location.reload(),new Promise(()=>{});if(r)throw r;if(!c)throw m();return F.createElement(c,h)};return g.preload=m,g}function k0(){const l=Ae(),s=F.useRef({router:l,mounted:!1}),[u,c]=F.useState(!1),{hasPendingMatches:r,isLoading:d}=pe({select:v=>({isLoading:v.isLoading,hasPendingMatches:v.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),m=Zs(d),g=d||u||r,p=Zs(g),h=d||r,S=Zs(h);return l.startTransition=v=>{c(!0),F.startTransition(()=>{v(),c(!1)})},F.useEffect(()=>{const v=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return va(l.latestLocation.href)!==va(b.href)&&l.commitLocation({...b,replace:!0}),()=>{v()}},[l,l.history]),Jo(()=>{if(typeof window<"u"&&l.ssr||s.current.router===l&&s.current.mounted)return;s.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(b){console.error(b)}})()},[l]),Jo(()=>{m&&!d&&l.emit({type:"onLoad",...Sa(l.state)})},[m,l,d]),Jo(()=>{S&&!h&&l.emit({type:"onBeforeRouteMount",...Sa(l.state)})},[h,S,l]),Jo(()=>{if(p&&!g){const v=Sa(l.state);l.emit({type:"onResolved",...v}),l.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),v.hrefChanged&&Wv(l)}},[g,p,l]),null}function Q0(l){const s=pe({select:u=>`not-found-${u.location.pathname}-${u.status}`});return Z.jsx(ur,{getResetKey:()=>s,onCatch:(u,c)=>{if(Ye(u))l.onCatch?.(u,c);else throw u},errorComponent:({error:u})=>{if(Ye(u))return l.fallback?.(u);throw u},children:l.children})}function Z0(){return Z.jsx("p",{children:"Not Found"})}function sl(l){return Z.jsx(Z.Fragment,{children:l.children})}function gp(l,s,u){return s.options.notFoundComponent?Z.jsx(s.options.notFoundComponent,{...u}):l.options.defaultNotFoundComponent?Z.jsx(l.options.defaultNotFoundComponent,{...u}):Z.jsx(Z0,{})}function K0({children:l}){const s=Ae();return s.isServer?Z.jsx("script",{nonce:s.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:l+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function J0(){const l=Ae();if(!l.isScrollRestoring||!l.isServer||typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))return null;const u=(l.options.getScrollRestorationKey||$s)(l.latestLocation),c=u!==$s(l.latestLocation)?u:void 0,r={storageKey:ou,shouldScrollRestoration:!0};return c&&(r.key=c),Z.jsx(K0,{children:`(${ap.toString()})(${JSON.stringify(r)})`})}const vp=F.memo(function({matchId:s}){const u=Ae(),c=pe({select:q=>{const J=q.matches.find(k=>k.id===s);return vn(J),{routeId:J.routeId,ssr:J.ssr,_displayPending:J._displayPending}},structuralSharing:!0}),r=u.routesById[c.routeId],d=r.options.pendingComponent??u.options.defaultPendingComponent,m=d?Z.jsx(d,{}):null,g=r.options.errorComponent??u.options.defaultErrorComponent,p=r.options.onCatch??u.options.defaultOnCatch,h=r.isRoot?r.options.notFoundComponent??u.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=c.ssr===!1||c.ssr==="data-only",v=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??d??(r.options.errorComponent?.preload||S))?F.Suspense:sl,b=g?ur:sl,E=h?Q0:sl,w=pe({select:q=>q.loadedAt}),U=pe({select:q=>{const J=q.matches.findIndex(k=>k.id===s);return q.matches[J-1]?.routeId}}),B=r.isRoot?r.options.shellComponent??sl:sl;return Z.jsxs(B,{children:[Z.jsx(mu.Provider,{value:s,children:Z.jsx(v,{fallback:m,children:Z.jsx(b,{getResetKey:()=>w,errorComponent:g||hu,onCatch:(q,J)=>{if(Ye(q))throw q;p?.(q,J)},children:Z.jsx(E,{fallback:q=>{if(!h||q.routeId&&q.routeId!==c.routeId||!q.routeId&&!r.isRoot)throw q;return F.createElement(h,q)},children:S||c._displayPending?Z.jsx(b0,{fallback:m,children:Z.jsx(Xm,{matchId:s})}):Z.jsx(Xm,{matchId:s})})})})}),U===Me&&u.options.scrollRestoration?Z.jsxs(Z.Fragment,{children:[Z.jsx(F0,{}),Z.jsx(J0,{})]}):null]})});function F0(){const l=Ae(),s=F.useRef(void 0);return Z.jsx("script",{suppressHydrationWarning:!0,ref:u=>{u&&(s.current===void 0||s.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",...Sa(l.state)}),s.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const Xm=F.memo(function({matchId:s}){const u=Ae(),{match:c,key:r,routeId:d}=pe({select:p=>{const h=p.matches.find(w=>w.id===s),S=h.routeId,b=(u.routesById[S].options.remountDeps??u.options.defaultRemountDeps)?.({routeId:S,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:S,match:{id:h.id,status:h.status,error:h.error,_forcePending:h._forcePending,_displayPending:h._displayPending}}},structuralSharing:!0}),m=u.routesById[d],g=F.useMemo(()=>{const p=m.options.component??u.options.defaultComponent;return p?Z.jsx(p,{},r):Z.jsx(Sp,{})},[r,m.options.component,u.options.defaultComponent]);if(c._displayPending)throw u.getMatch(c.id)?._nonReactive.displayPendingPromise;if(c._forcePending)throw u.getMatch(c.id)?._nonReactive.minPendingPromise;if(c.status==="pending"){const p=m.options.pendingMinMs??u.options.defaultPendingMinMs;if(p){const h=u.getMatch(c.id);if(h&&!h._nonReactive.minPendingPromise&&!u.isServer){const S=rl();h._nonReactive.minPendingPromise=S,setTimeout(()=>{S.resolve(),h._nonReactive.minPendingPromise=void 0},p)}}throw u.getMatch(c.id)?._nonReactive.loadPromise}if(c.status==="notFound")return vn(Ye(c.error)),gp(u,m,c.error);if(c.status==="redirected")throw vn(Qe(c.error)),u.getMatch(c.id)?._nonReactive.loadPromise;if(c.status==="error"){if(u.isServer){const p=(m.options.errorComponent??u.options.defaultErrorComponent)||hu;return Z.jsx(p,{error:c.error,reset:void 0,info:{componentStack:""}})}throw c.error}return g}),Sp=F.memo(function(){const s=Ae(),u=F.useContext(mu),c=pe({select:h=>h.matches.find(S=>S.id===u)?.routeId}),r=s.routesById[c],d=pe({select:h=>{const v=h.matches.find(b=>b.id===u);return vn(v),v.globalNotFound}}),m=pe({select:h=>{const S=h.matches,v=S.findIndex(b=>b.id===u);return S[v+1]?.id}}),g=s.options.defaultPendingComponent?Z.jsx(s.options.defaultPendingComponent,{}):null;if(d)return gp(s,r,void 0);if(!m)return null;const p=Z.jsx(vp,{matchId:m});return c===Me?Z.jsx(F.Suspense,{fallback:g,children:p}):p});function W0(){const l=Ae(),u=l.routesById[Me].options.pendingComponent??l.options.defaultPendingComponent,c=u?Z.jsx(u,{}):null,r=l.isServer||typeof document<"u"&&l.ssr?sl:F.Suspense,d=Z.jsxs(r,{fallback:c,children:[!l.isServer&&Z.jsx(k0,{}),Z.jsx(P0,{})]});return l.options.InnerWrap?Z.jsx(l.options.InnerWrap,{children:d}):d}function P0(){const l=Ae(),s=pe({select:r=>r.matches[0]?.id}),u=pe({select:r=>r.loadedAt}),c=s?Z.jsx(vp,{matchId:s}):null;return Z.jsx(mu.Provider,{value:s,children:l.options.disableGlobalCatchBoundary?c:Z.jsx(ur,{getResetKey:()=>u,errorComponent:hu,onCatch:r=>{r.message||r.toString()},children:c})})}const $0=l=>new I0(l);class I0 extends f0{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=_i,globalThis.createLazyFileRoute=Vm):typeof window<"u"&&(window.createFileRoute=_i,window.createLazyFileRoute=Vm);function tS({router:l,children:s,...u}){Object.keys(u).length>0&&l.update({...l.options,...u,context:{...l.options.context,...u.context}});const c=mp(),r=Z.jsx(c.Provider,{value:l,children:s});return l.options.Wrap?Z.jsx(l.options.Wrap,{children:r}):r}function eS({router:l,...s}){return Z.jsx(tS,{router:l,...s,children:Z.jsx(W0,{})})}const nS="modulepreload",aS=function(l){return"/"+l},km={},mr=function(s,u,c){let r=Promise.resolve();if(u&&u.length>0){let p=function(h){return Promise.all(h.map(S=>Promise.resolve(S).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=m?.nonce||m?.getAttribute("nonce");r=p(u.map(h=>{if(h=aS(h),h in km)return;km[h]=!0;const S=h.endsWith(".css"),v=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":nS,S||(b.as="script"),b.crossOrigin="",b.href=h,g&&b.setAttribute("nonce",g),document.head.appendChild(b),S)return new Promise((E,w)=>{b.addEventListener("load",E),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function d(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return r.then(m=>{for(const g of m||[])g.status==="rejected"&&d(g.reason);return s().catch(d)})},lS=function(){return null},Ce=(function l(s){function u(r,d,m){var g,p={};if(Array.isArray(r))return r.concat(d);for(g in r)p[m?g.toLowerCase():g]=r[g];for(g in d){var h=m?g.toLowerCase():g,S=d[g];p[h]=h in p&&typeof S=="object"?u(p[h],S,h=="headers"):S}return p}function c(r,d,m,g,p){var h=typeof r!="string"?(d=r).url:r,S={config:d},v=u(s,d),b={};g=g||v.data,(v.transformRequest||[]).map(function(E){g=E(g,v.headers)||g}),v.auth&&(b.authorization=v.auth),g&&typeof g=="object"&&typeof g.append!="function"&&typeof g.text!="function"&&(g=JSON.stringify(g),b["content-type"]="application/json");try{b[v.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+v.xsrfCookieName+"=([^;]*)"))[2])}catch{}return v.baseURL&&(h=h.replace(/^(?!.*\/\/)\/?/,v.baseURL+"/")),v.params&&(h+=(~h.indexOf("?")?"&":"?")+(v.paramsSerializer?v.paramsSerializer(v.params):new URLSearchParams(v.params))),(v.fetch||fetch)(h,{method:(m||v.method||"get").toUpperCase(),body:g,headers:u(v.headers,b,!0),credentials:v.withCredentials?"include":p}).then(function(E){for(var w in E)typeof E[w]!="function"&&(S[w]=E[w]);return v.responseType=="stream"?(S.data=E.body,S):E[v.responseType||"text"]().then(function(U){S.data=U,S.data=JSON.parse(U)}).catch(Object).then(function(){return(v.validateStatus?v.validateStatus(E.status):E.ok)?S:Promise.reject(S)})})}return s=s||{},c.request=c,c.get=function(r,d){return c(r,d,"get")},c.delete=function(r,d){return c(r,d,"delete")},c.head=function(r,d){return c(r,d,"head")},c.options=function(r,d){return c(r,d,"options")},c.post=function(r,d,m){return c(r,m,"post",d)},c.put=function(r,d,m){return c(r,m,"put",d)},c.patch=function(r,d,m){return c(r,m,"patch",d)},c.all=Promise.all.bind(Promise),c.spread=function(r){return r.apply.bind(r,r)},c.CancelToken=typeof AbortController=="function"?AbortController:Object,c.defaults=s,c.create=l,c})();async function qb(){return(await Ce.get("/api/devices")).data}async function Gb(l){return(await Ce.post("/api/devices/connect_wifi",l)).data}async function Yb(l){return(await Ce.post("/api/devices/disconnect_wifi",{device_id:l})).data}async function Vb(l){return(await Ce.post("/api/init",l??{})).data}function Xb(l,s,u,c,r){const d=new AbortController;return fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:l,device_id:s}),signal:d.signal}).then(async m=>{if(!m.ok)throw new Error(`HTTP error! status: ${m.status}`);if(!m.body)throw new Error("Response body is null");const g=m.body.getReader(),p=new TextDecoder;let h="",S="message";for(;;){const{done:v,value:b}=await g.read();if(v)break;h+=p.decode(b,{stream:!0});const E=h.split(`
10
- `);h=E.pop()||"";for(const w of E)if(w.startsWith("event: "))S=w.slice(7).trim();else if(w.startsWith("data: "))try{const U=JSON.parse(w.slice(6));S==="step"?(console.log("[SSE] Received step event:",U),u(U)):S==="done"?(console.log("[SSE] Received done event:",U),c(U)):S==="error"&&(console.log("[SSE] Received error event:",U),r(U))}catch(U){console.error("Failed to parse SSE data:",w,U)}}}).catch(m=>{m.name!=="AbortError"&&r({type:"error",message:m.message})}),{close:()=>d.abort()}}async function iS(){return(await Ce.get("/api/status")).data}async function kb(l){return(await Ce.post("/api/reset",{device_id:l})).data}async function Qb(l){return(await Ce.post("/api/screenshot",{device_id:l??null},{})).data}async function Zb(l,s,u,c,r,d,m=0){const g={start_x:Math.round(l),start_y:Math.round(s),end_x:Math.round(u),end_y:Math.round(c),duration_ms:Math.round(r),device_id:d??null,delay:Math.round(m*1e3)/1e3};try{return(await Ce.post("/api/control/swipe",g)).data}catch(p){throw console.error("[API] Swipe request failed:",p),p}}async function Kb(l,s,u,c=0){return(await Ce.post("/api/control/touch/down",{x:Math.round(l),y:Math.round(s),device_id:u??null,delay:c})).data}async function Jb(l,s,u,c=0){return(await Ce.post("/api/control/touch/move",{x:Math.round(l),y:Math.round(s),device_id:u??null,delay:c})).data}async function Fb(l,s,u,c=0){return(await Ce.post("/api/control/touch/up",{x:Math.round(l),y:Math.round(s),device_id:u??null,delay:c})).data}async function Wb(){return(await Ce.get("/api/config")).data}async function Pb(l){return(await Ce.post("/api/config",l)).data}function Qm(l,s){if(typeof l=="function")return l(s);l!=null&&(l.current=s)}function bp(...l){return s=>{let u=!1;const c=l.map(r=>{const d=Qm(r,s);return!u&&typeof d=="function"&&(u=!0),d});if(u)return()=>{for(let r=0;r<c.length;r++){const d=c[r];typeof d=="function"?d():Qm(l[r],null)}}}}function $b(...l){return F.useCallback(bp(...l),l)}var oS=Symbol.for("react.lazy"),su=v0[" use ".trim().toString()];function uS(l){return typeof l=="object"&&l!==null&&"then"in l}function _p(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===oS&&"_payload"in l&&uS(l._payload)}function Rp(l){const s=cS(l),u=F.forwardRef((c,r)=>{let{children:d,...m}=c;_p(d)&&typeof su=="function"&&(d=su(d._payload));const g=F.Children.toArray(d),p=g.find(rS);if(p){const h=p.props.children,S=g.map(v=>v===p?F.Children.count(h)>1?F.Children.only(null):F.isValidElement(h)?h.props.children:null:v);return Z.jsx(s,{...m,ref:r,children:F.isValidElement(h)?F.cloneElement(h,void 0,S):null})}return Z.jsx(s,{...m,ref:r,children:d})});return u.displayName=`${l}.Slot`,u}var Ib=Rp("Slot");function cS(l){const s=F.forwardRef((u,c)=>{let{children:r,...d}=u;if(_p(r)&&typeof su=="function"&&(r=su(r._payload)),F.isValidElement(r)){const m=dS(r),g=fS(d,r.props);return r.type!==F.Fragment&&(g.ref=c?bp(c,m):m),F.cloneElement(r,g)}return F.Children.count(r)>1?F.Children.only(null):null});return s.displayName=`${l}.SlotClone`,s}var sS=Symbol("radix.slottable");function rS(l){return F.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===sS}function fS(l,s){const u={...s};for(const c in s){const r=l[c],d=s[c];/^on[A-Z]/.test(c)?r&&d?u[c]=(...g)=>{const p=d(...g);return r(...g),p}:r&&(u[c]=r):c==="style"?u[c]={...r,...d}:c==="className"&&(u[c]=[r,d].filter(Boolean).join(" "))}return{...l,...u}}function dS(l){let s=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,u=s&&"isReactWarning"in s&&s.isReactWarning;return u?l.ref:(s=Object.getOwnPropertyDescriptor(l,"ref")?.get,u=s&&"isReactWarning"in s&&s.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}var hS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mS=hS.reduce((l,s)=>{const u=Rp(`Primitive.${s}`),c=F.forwardRef((r,d)=>{const{asChild:m,...g}=r,p=m?u:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Z.jsx(p,{...g,ref:d})});return c.displayName=`Primitive.${s}`,{...l,[s]:c}},{}),pS="Separator",Zm="horizontal",yS=["horizontal","vertical"],Tp=F.forwardRef((l,s)=>{const{decorative:u,orientation:c=Zm,...r}=l,d=gS(c)?c:Zm,g=u?{role:"none"}:{"aria-orientation":d==="vertical"?d:void 0,role:"separator"};return Z.jsx(mS.div,{"data-orientation":d,...g,...r,ref:s})});Tp.displayName=pS;function gS(l){return yS.includes(l)}var Ep=Tp;function xp(l){var s,u,c="";if(typeof l=="string"||typeof l=="number")c+=l;else if(typeof l=="object")if(Array.isArray(l)){var r=l.length;for(s=0;s<r;s++)l[s]&&(u=xp(l[s]))&&(c&&(c+=" "),c+=u)}else for(u in l)l[u]&&(c&&(c+=" "),c+=u);return c}function vS(){for(var l,s,u=0,c="",r=arguments.length;u<r;u++)(l=arguments[u])&&(s=xp(l))&&(c&&(c+=" "),c+=s);return c}const SS=(l,s)=>{const u=new Array(l.length+s.length);for(let c=0;c<l.length;c++)u[c]=l[c];for(let c=0;c<s.length;c++)u[l.length+c]=s[c];return u},bS=(l,s)=>({classGroupId:l,validator:s}),Mp=(l=new Map,s=null,u)=>({nextPart:l,validators:s,classGroupId:u}),ru="-",Km=[],_S="arbitrary..",RS=l=>{const s=ES(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return TS(m);const g=m.split(ru),p=g[0]===""&&g.length>1?1:0;return Ap(g,p,s)},getConflictingClassGroupIds:(m,g)=>{if(g){const p=c[m],h=u[m];return p?h?SS(h,p):p:h||Km}return u[m]||Km}}},Ap=(l,s,u)=>{if(l.length-s===0)return u.classGroupId;const r=l[s],d=u.nextPart.get(r);if(d){const h=Ap(l,s+1,d);if(h)return h}const m=u.validators;if(m===null)return;const g=s===0?l.join(ru):l.slice(s).join(ru),p=m.length;for(let h=0;h<p;h++){const S=m[h];if(S.validator(g))return S.classGroupId}},TS=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=l.slice(1,-1),u=s.indexOf(":"),c=s.slice(0,u);return c?_S+c:void 0})(),ES=l=>{const{theme:s,classGroups:u}=l;return xS(u,s)},xS=(l,s)=>{const u=Mp();for(const c in l){const r=l[c];pr(r,u,c,s)}return u},pr=(l,s,u,c)=>{const r=l.length;for(let d=0;d<r;d++){const m=l[d];MS(m,s,u,c)}},MS=(l,s,u,c)=>{if(typeof l=="string"){AS(l,s,u);return}if(typeof l=="function"){CS(l,s,u,c);return}zS(l,s,u,c)},AS=(l,s,u)=>{const c=l===""?s:Cp(s,l);c.classGroupId=u},CS=(l,s,u,c)=>{if(OS(l)){pr(l(c),s,u,c);return}s.validators===null&&(s.validators=[]),s.validators.push(bS(u,l))},zS=(l,s,u,c)=>{const r=Object.entries(l),d=r.length;for(let m=0;m<d;m++){const[g,p]=r[m];pr(p,Cp(s,g),u,c)}},Cp=(l,s)=>{let u=l;const c=s.split(ru),r=c.length;for(let d=0;d<r;d++){const m=c[d];let g=u.nextPart.get(m);g||(g=Mp(),u.nextPart.set(m,g)),u=g}return u},OS=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,wS=l=>{if(l<1)return{get:()=>{},set:()=>{}};let s=0,u=Object.create(null),c=Object.create(null);const r=(d,m)=>{u[d]=m,s++,s>l&&(s=0,c=u,u=Object.create(null))};return{get(d){let m=u[d];if(m!==void 0)return m;if((m=c[d])!==void 0)return r(d,m),m},set(d,m){d in u?u[d]=m:r(d,m)}}},tr="!",Jm=":",DS=[],Fm=(l,s,u,c,r)=>({modifiers:l,hasImportantModifier:s,baseClassName:u,maybePostfixModifierPosition:c,isExternal:r}),LS=l=>{const{prefix:s,experimentalParseClassName:u}=l;let c=r=>{const d=[];let m=0,g=0,p=0,h;const S=r.length;for(let U=0;U<S;U++){const B=r[U];if(m===0&&g===0){if(B===Jm){d.push(r.slice(p,U)),p=U+1;continue}if(B==="/"){h=U;continue}}B==="["?m++:B==="]"?m--:B==="("?g++:B===")"&&g--}const v=d.length===0?r:r.slice(p);let b=v,E=!1;v.endsWith(tr)?(b=v.slice(0,-1),E=!0):v.startsWith(tr)&&(b=v.slice(1),E=!0);const w=h&&h>p?h-p:void 0;return Fm(d,E,b,w)};if(s){const r=s+Jm,d=c;c=m=>m.startsWith(r)?d(m.slice(r.length)):Fm(DS,!1,m,void 0,!0)}if(u){const r=c;c=d=>u({className:d,parseClassName:r})}return c},NS=l=>{const s=new Map;return l.orderSensitiveModifiers.forEach((u,c)=>{s.set(u,1e6+c)}),u=>{const c=[];let r=[];for(let d=0;d<u.length;d++){const m=u[d],g=m[0]==="[",p=s.has(m);g||p?(r.length>0&&(r.sort(),c.push(...r),r=[]),c.push(m)):r.push(m)}return r.length>0&&(r.sort(),c.push(...r)),c}},US=l=>({cache:wS(l.cacheSize),parseClassName:LS(l),sortModifiers:NS(l),...RS(l)}),BS=/\s+/,HS=(l,s)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:r,sortModifiers:d}=s,m=[],g=l.trim().split(BS);let p="";for(let h=g.length-1;h>=0;h-=1){const S=g[h],{isExternal:v,modifiers:b,hasImportantModifier:E,baseClassName:w,maybePostfixModifierPosition:U}=u(S);if(v){p=S+(p.length>0?" "+p:p);continue}let B=!!U,q=c(B?w.substring(0,U):w);if(!q){if(!B){p=S+(p.length>0?" "+p:p);continue}if(q=c(w),!q){p=S+(p.length>0?" "+p:p);continue}B=!1}const J=b.length===0?"":b.length===1?b[0]:d(b).join(":"),k=E?J+tr:J,W=k+q;if(m.indexOf(W)>-1)continue;m.push(W);const at=r(q,B);for(let X=0;X<at.length;++X){const G=at[X];m.push(k+G)}p=S+(p.length>0?" "+p:p)}return p},jS=(...l)=>{let s=0,u,c,r="";for(;s<l.length;)(u=l[s++])&&(c=zp(u))&&(r&&(r+=" "),r+=c);return r},zp=l=>{if(typeof l=="string")return l;let s,u="";for(let c=0;c<l.length;c++)l[c]&&(s=zp(l[c]))&&(u&&(u+=" "),u+=s);return u},qS=(l,...s)=>{let u,c,r,d;const m=p=>{const h=s.reduce((S,v)=>v(S),l());return u=US(h),c=u.cache.get,r=u.cache.set,d=g,g(p)},g=p=>{const h=c(p);if(h)return h;const S=HS(p,u);return r(p,S),S};return d=m,(...p)=>d(jS(...p))},GS=[],Wt=l=>{const s=u=>u[l]||GS;return s.isThemeGetter=!0,s},Op=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,YS=/^\d+\/\d+$/,VS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cl=l=>YS.test(l),ht=l=>!!l&&!Number.isNaN(Number(l)),Zn=l=>!!l&&Number.isInteger(Number(l)),Js=l=>l.endsWith("%")&&ht(l.slice(0,-1)),gn=l=>VS.test(l),KS=()=>!0,JS=l=>XS.test(l)&&!kS.test(l),Dp=()=>!1,FS=l=>QS.test(l),WS=l=>ZS.test(l),PS=l=>!I(l)&&!tt(l),$S=l=>hl(l,Up,Dp),I=l=>Op.test(l),pa=l=>hl(l,Bp,JS),Fs=l=>hl(l,ab,ht),Wm=l=>hl(l,Lp,Dp),IS=l=>hl(l,Np,WS),Fo=l=>hl(l,Hp,FS),tt=l=>wp.test(l),mi=l=>ml(l,Bp),tb=l=>ml(l,lb),Pm=l=>ml(l,Lp),eb=l=>ml(l,Up),nb=l=>ml(l,Np),Wo=l=>ml(l,Hp,!0),hl=(l,s,u)=>{const c=Op.exec(l);return c?c[1]?s(c[1]):u(c[2]):!1},ml=(l,s,u=!1)=>{const c=wp.exec(l);return c?c[1]?s(c[1]):u:!1},Lp=l=>l==="position"||l==="percentage",Np=l=>l==="image"||l==="url",Up=l=>l==="length"||l==="size"||l==="bg-size",Bp=l=>l==="length",ab=l=>l==="number",lb=l=>l==="family-name",Hp=l=>l==="shadow",ib=()=>{const l=Wt("color"),s=Wt("font"),u=Wt("text"),c=Wt("font-weight"),r=Wt("tracking"),d=Wt("leading"),m=Wt("breakpoint"),g=Wt("container"),p=Wt("spacing"),h=Wt("radius"),S=Wt("shadow"),v=Wt("inset-shadow"),b=Wt("text-shadow"),E=Wt("drop-shadow"),w=Wt("blur"),U=Wt("perspective"),B=Wt("aspect"),q=Wt("ease"),J=Wt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],at=()=>[...W(),tt,I],X=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],L=()=>[tt,I,p],P=()=>[cl,"full","auto",...L()],ft=()=>[Zn,"none","subgrid",tt,I],ct=()=>["auto",{span:["full",Zn,tt,I]},Zn,tt,I],St=()=>[Zn,"auto",tt,I],jt=()=>["auto","min","max","fr",tt,I],Ut=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],At=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...L()],Q=()=>[cl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Y=()=>[l,tt,I],_t=()=>[...W(),Pm,Wm,{position:[tt,I]}],Et=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",eb,$S,{size:[tt,I]}],H=()=>[Js,mi,pa],V=()=>["","none","full",h,tt,I],K=()=>["",ht,mi,pa],it=()=>["solid","dashed","dotted","double"],ut=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],lt=()=>[ht,Js,Pm,Wm],Gt=()=>["","none",w,tt,I],bt=()=>["none",ht,tt,I],ue=()=>["none",ht,tt,I],ze=()=>[ht,tt,I],le=()=>[cl,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[KS],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[PS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",ht],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",cl,I,tt,B]}],container:["container"],columns:[{columns:[ht,I,tt,g]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:at()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Zn,"auto",tt,I]}],basis:[{basis:[cl,"full","auto",g,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,cl,"auto","initial","none",I]}],grow:[{grow:["",ht,tt,I]}],shrink:[{shrink:["",ht,tt,I]}],order:[{order:[Zn,"first","last","none",tt,I]}],"grid-cols":[{"grid-cols":ft()}],"col-start-end":[{col:ct()}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":ft()}],"row-start-end":[{row:ct()}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":jt()}],"auto-rows":[{"auto-rows":jt()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Ut(),"normal"]}],"justify-items":[{"justify-items":[...At(),"normal"]}],"justify-self":[{"justify-self":["auto",...At()]}],"align-content":[{content:["normal",...Ut()]}],"align-items":[{items:[...At(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...At(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ut()}],"place-items":[{"place-items":[...At(),"baseline"]}],"place-self":[{"place-self":["auto",...At()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[g,"screen",...Q()]}],"min-w":[{"min-w":[g,"screen","none",...Q()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[m]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",u,mi,pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,tt,Fs]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Js,I]}],"font-family":[{font:[tb,I,s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,tt,I]}],"line-clamp":[{"line-clamp":[ht,"none",tt,Fs]}],leading:[{leading:[d,...L()]}],"list-image":[{"list-image":["none",tt,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tt,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...it(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",tt,pa]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ht,"auto",tt,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_t()}],"bg-repeat":[{bg:Et()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zn,tt,I],radial:["",tt,I],conic:[Zn,tt,I]},nb,IS]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...it(),"hidden","none"]}],"divide-style":[{divide:[...it(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...it(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,tt,I]}],"outline-w":[{outline:["",ht,mi,pa]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",S,Wo,Fo]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",v,Wo,Fo]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ht,pa]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",b,Wo,Fo]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ht,tt,I]}],"mix-blend":[{"mix-blend":[...ut(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ut()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":lt()}],"mask-image-linear-to-pos":[{"mask-linear-to":lt()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":lt()}],"mask-image-t-to-pos":[{"mask-t-to":lt()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":lt()}],"mask-image-r-to-pos":[{"mask-r-to":lt()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":lt()}],"mask-image-b-to-pos":[{"mask-b-to":lt()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":lt()}],"mask-image-l-to-pos":[{"mask-l-to":lt()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":lt()}],"mask-image-x-to-pos":[{"mask-x-to":lt()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":lt()}],"mask-image-y-to-pos":[{"mask-y-to":lt()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[tt,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":lt()}],"mask-image-radial-to-pos":[{"mask-radial-to":lt()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":lt()}],"mask-image-conic-to-pos":[{"mask-conic-to":lt()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_t()}],"mask-repeat":[{mask:Et()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tt,I]}],filter:[{filter:["","none",tt,I]}],blur:[{blur:Gt()}],brightness:[{brightness:[ht,tt,I]}],contrast:[{contrast:[ht,tt,I]}],"drop-shadow":[{"drop-shadow":["","none",E,Wo,Fo]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ht,tt,I]}],"hue-rotate":[{"hue-rotate":[ht,tt,I]}],invert:[{invert:["",ht,tt,I]}],saturate:[{saturate:[ht,tt,I]}],sepia:[{sepia:["",ht,tt,I]}],"backdrop-filter":[{"backdrop-filter":["","none",tt,I]}],"backdrop-blur":[{"backdrop-blur":Gt()}],"backdrop-brightness":[{"backdrop-brightness":[ht,tt,I]}],"backdrop-contrast":[{"backdrop-contrast":[ht,tt,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,tt,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,tt,I]}],"backdrop-invert":[{"backdrop-invert":["",ht,tt,I]}],"backdrop-opacity":[{"backdrop-opacity":[ht,tt,I]}],"backdrop-saturate":[{"backdrop-saturate":[ht,tt,I]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,tt,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tt,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",tt,I]}],ease:[{ease:["linear","initial",q,tt,I]}],delay:[{delay:[ht,tt,I]}],animate:[{animate:["none",J,tt,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[U,tt,I]}],"perspective-origin":[{"perspective-origin":at()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[tt,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:at()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tt,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tt,I]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[ht,mi,pa,Fs]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ob=qS(ib);function ub(...l){return ob(vS(l))}const er=F.forwardRef(({className:l,orientation:s="horizontal",...u},c)=>Z.jsx(Ep,{ref:c,decorative:!0,orientation:s,className:ub("shrink-0 bg-slate-200 dark:bg-slate-800",s==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...u}));er.displayName=Ep.displayName;const cb=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sb=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,u,c)=>c?c.toUpperCase():u.toLowerCase()),$m=l=>{const s=sb(l);return s.charAt(0).toUpperCase()+s.slice(1)},jp=(...l)=>l.filter((s,u,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===u).join(" ").trim(),rb=l=>{for(const s in l)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var fb={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"};const db=F.forwardRef(({color:l="currentColor",size:s=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:r="",children:d,iconNode:m,...g},p)=>F.createElement("svg",{ref:p,...fb,width:s,height:s,stroke:l,strokeWidth:c?Number(u)*24/Number(s):u,className:jp("lucide",r),...!d&&!rb(g)&&{"aria-hidden":"true"},...g},[...m.map(([h,S])=>F.createElement(h,S)),...Array.isArray(d)?d:[d]]));const qp=(l,s)=>{const u=F.forwardRef(({className:c,...r},d)=>F.createElement(db,{ref:d,iconNode:s,className:jp(`lucide-${cb($m(l))}`,`lucide-${l}`,c),...r}));return u.displayName=$m(l),u};const hb=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],mb=qp("github",hb);const pb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],yb=qp("globe",pb),gb={common:{save:"Save",cancel:"Cancel",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success"},footer:{starOnGitHub:"Star on GitHub"},chat:{welcomeTitle:"Welcome to AutoGLM",connectDevice:"Connect an ADB device to get started",configuration:"Configuration",configureApi:"Configure your API settings to get started",selectPreset:"Select a preset configuration",baseUrlRequired:"Base URL is required",baseUrl:"Base URL",apiKey:"API Key",modelName:"Model Name",cancel:"Cancel",saveConfig:"Save Configuration",noDevices:"No devices found"},deviceSidebar:{devices:"Devices",settings:"Settings",addDevice:"Add Device",connectWifi:"Connect WiFi",disconnectWifi:"Disconnect WiFi",noDevicesConnected:"No devices connected",clickToRefresh:"Click refresh to scan devices"},devicePanel:{noConfig:"Please configure your API settings first",configureNow:"Configure Now",connectDevice:"Please connect a device first",connectAdb:"Connect via ADB",startChat:"Start Chat",sendMessage:"Send a message...",running:"Running",waiting:"Waiting for input",readyToHelp:"Ready to help",describeTask:"Describe what you want to do on your phone",deviceNotReady:"Device is not ready",connectionError:"Connection error",screenshotError:"Screenshot error",actionError:"Action execution failed",initError:"Initialization failed",initializing:"Initialize",ready:"Ready",chatHistory:"Chat History",clearHistory:"Clear History",clearHistoryConfirm:"Are you sure you want to clear the chat history?",configureFirst:"Please configure first",initDeviceFirst:"Initialize device first",whatToDo:"What would you like to do? (Cmd+Enter to send)",stepsCompleted:"steps completed",processing:"Processing...",screenshotFailed:"Screenshot failed",loading:"Loading...",sensitiveContent:"Sensitive content",auto:"Auto",video:"Video",image:"Image",imageRefresh:"Image (0.5s refresh)",tapped:"Tapped",tapError:"Error: {error}",swiped:"Swiped",swipeError:"Swipe error: {error}"},deviceCard:{unknownDevice:"Unknown Device",connectViaWifi:"Connect via WiFi",disconnectWifi:"Disconnect WiFi",ready:"Ready",connectWifiTitle:"Connect via WiFi",connectWifiContent:"Switch to WiFi connection? Ensure your device and computer are on the same network.",disconnectWifiTitle:"Disconnect WiFi",disconnectWifiContent:"Are you sure you want to disconnect WiFi?"},presetConfigs:{bigmodel:{name:"Zhipu BigModel",description:"API service provided by Zhipu AI"},modelscope:{name:"ModelScope",description:"API service provided by ModelScope community"},custom:{name:"Custom Service",description:"Self-hosted vLLM / SGLang services"}},toasts:{configSaved:"Configuration saved",wifiConnected:"WiFi connected",wifiDisconnected:"WiFi disconnected",connectionFailed:"Connection failed",disconnectFailed:"Disconnect failed",wifiConnectionError:"WiFi connection error",wifiDisconnectError:"WiFi disconnect error"}},vb={common:{save:"保存",cancel:"取消",confirm:"确认",loading:"加载中...",error:"错误",success:"成功"},footer:{starOnGitHub:"在 GitHub 上Star"},chat:{welcomeTitle:"欢迎使用 AutoGLM",connectDevice:"连接 ADB 设备开始使用",configuration:"配置",configureApi:"配置您的 API 设置以开始使用",selectPreset:"选择预设配置",baseUrlRequired:"Base URL 为必填项",baseUrl:"Base URL",apiKey:"API Key",modelName:"模型名称",cancel:"取消",saveConfig:"保存配置",noDevices:"未找到设备"},deviceSidebar:{devices:"设备",settings:"设置",addDevice:"添加设备",connectWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",noDevicesConnected:"未连接设备",clickToRefresh:"点击刷新扫描设备"},devicePanel:{noConfig:"请先配置您的 API 设置",configureNow:"立即配置",connectDevice:"请先连接设备",connectAdb:"通过 ADB 连接",startChat:"开始对话",sendMessage:"发送消息...",running:"运行中",waiting:"等待输入",readyToHelp:"准备就绪",describeTask:"描述您想在手机上完成的任务",deviceNotReady:"设备未就绪",connectionError:"连接错误",screenshotError:"截图错误",actionError:"操作执行失败",initError:"初始化失败",initializing:"初始化",ready:"就绪",chatHistory:"聊天记录",clearHistory:"清除历史",clearHistoryConfirm:"确定要清除聊天记录吗?",configureFirst:"请先配置",initDeviceFirst:"请先初始化设备",whatToDo:"您想做什么?(Cmd+Enter 发送)",stepsCompleted:"步已完成",processing:"处理中...",screenshotFailed:"截图失败",loading:"加载中...",sensitiveContent:"敏感内容",auto:"自动",video:"视频",image:"图像",imageRefresh:"图像 (0.5秒刷新)",tapped:"已点击",tapError:"错误: {error}",swiped:"已滑动",swipeError:"滑动错误: {error}"},deviceCard:{unknownDevice:"未知设备",connectViaWifi:"连接 WiFi",disconnectWifi:"断开 WiFi",ready:"就绪",connectWifiTitle:"连接 WiFi",connectWifiContent:"切换到 WiFi 连接?请确保您的设备和电脑在同一网络。",disconnectWifiTitle:"断开 WiFi",disconnectWifiContent:"确定要断开 WiFi 连接吗?"},presetConfigs:{bigmodel:{name:"智谱 BigModel",description:"智谱 AI 提供的 API 服务"},modelscope:{name:"ModelScope",description:"魔搭社区提供的 API 服务"},custom:{name:"自建服务",description:"vLLM / SGLang 等自建服务"}},toasts:{configSaved:"配置已保存",wifiConnected:"WiFi 已连接",wifiDisconnected:"WiFi 已断开",connectionFailed:"连接失败",disconnectFailed:"断开连接失败",wifiConnectionError:"WiFi 连接错误",wifiDisconnectError:"WiFi 断开连接错误"}},Sb={en:gb,zh:vb},bb={en:"EN",zh:"中文"},Gp=F.createContext(void 0);function _b({children:l}){const[s,u]=F.useState("en");F.useEffect(()=>{const d=localStorage.getItem("locale");let m;d&&(d==="en"||d==="zh")?m=d:m=navigator.language.split("-")[0]==="zh"?"zh":"en",u(m)},[]);const c=d=>{u(d),localStorage.setItem("locale",d),document.documentElement.lang=d},r=F.useMemo(()=>({locale:s,setLocale:c,t:Sb[s],isRtl:!1}),[s]);return Z.jsx(Gp.Provider,{value:r,children:l})}function Yp(){const l=F.useContext(Gp);if(!l)throw new Error("useI18n must be used within an I18nProvider");return l}function Rb(){const{locale:l,setLocale:s}=Yp();return{locale:l,setLocale:s,localeName:bb[l]}}function t1(){const{t:l}=Yp();return l}const pu=X0({component:Eb});function Tb(){const[l,s]=F.useState("..."),{locale:u,setLocale:c,localeName:r}=Rb();F.useEffect(()=>{iS().then(m=>s(m.version)).catch(()=>s("unknown"))},[]);const d=()=>{c(u==="en"?"zh":"en")};return Z.jsx("footer",{className:"mt-auto border-t border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-950",children:Z.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-3 flex flex-col sm:flex-row items-center justify-between gap-2 text-sm",children:[Z.jsxs("div",{className:"flex items-center gap-2 text-slate-500 dark:text-slate-400",children:[Z.jsxs("span",{children:["v",l]}),Z.jsx(er,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),Z.jsxs("button",{onClick:d,className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",title:"Switch language",children:[Z.jsx(yb,{className:"w-4 h-4"}),r]}),Z.jsx(er,{orientation:"vertical",className:"h-4 bg-slate-200 dark:bg-slate-700"}),Z.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"hover:text-[#1d9bf0] transition-colors flex items-center gap-1",children:[Z.jsx(mb,{className:"w-4 h-4"}),"GitHub"]})]}),Z.jsx("div",{className:"text-center",children:Z.jsxs("a",{href:"https://github.com/suyiiyii/AutoGLM-GUI",target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 dark:text-slate-400 hover:text-[#1d9bf0] transition-colors",children:["Star"," ",Z.jsx("span",{className:"font-semibold",role:"img","aria-label":"star",children:"⭐"})," ","on GitHub"]})})]})})}function Eb(){return Z.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[Z.jsx("div",{className:"flex-1 overflow-auto",children:Z.jsx(Sp,{})}),Z.jsx(Tb,{}),Z.jsx(lS,{position:"bottom-right"})]})}const xb=()=>mr(()=>import("./chat-CZV3RByK.js"),[]),Mb=_i("/chat")({component:hr(xb,"component")}),Ab=()=>mr(()=>import("./about-kgOkkOWe.js"),[]),Cb=_i("/about")({component:hr(Ab,"component")}),zb=()=>mr(()=>import("./index-BPYHsweG.js"),[]),Ob=_i("/")({component:hr(zb,"component")}),wb=Mb.update({id:"/chat",path:"/chat",getParentRoute:()=>pu}),Db=Cb.update({id:"/about",path:"/about",getParentRoute:()=>pu}),Lb=Ob.update({id:"/",path:"/",getParentRoute:()=>pu}),Nb={IndexRoute:Lb,AboutRoute:Db,ChatRoute:wb},Ub=pu._addFileChildren(Nb)._addFileTypes(),Bb=$0({routeTree:Ub,defaultPreload:"intent",scrollRestoration:!0}),Ws=document.getElementById("app");Ws&&!Ws.innerHTML&&gv.createRoot(Ws).render(Z.jsx(_b,{children:Z.jsx(eS,{router:Bb})}));export{mS as P,v0 as R,Ib as S,vS as a,ub as b,qp as c,er as d,Fb as e,Jb as f,Qb as g,Kb as h,Vb as i,Z as j,Xb as k,kb as l,bp as m,pp as n,$b as o,Hb as p,Wb as q,F as r,Zb as s,qb as t,t1 as u,Pb as v,Yb as w,Gb as x,dr as y};